/* Светлая витрина карточек Steam (/apps/steam/…/id…/) — синий вариант ios-card.css
   (владелец 01.12: «оформляем как iOS и Nintendo, но с логотипом Steam и тонами Steam»).
   Палитра и градиент кнопки — фирменный синий Steam (#66c0f4 / #1b2838); в двойном кольце
   кнопки — знак Steam (инлайн-SVG в белом, бинарного файла нет).
   Структурные правила (сетка карточки, скругления, галерея) 1:1 как у App Store и Nintendo. */
#casing.sales-material-page {
  --st-card-bg: #f4f9fe;
  --st-card-tint: #e6f2fb;
  --st-card-line: #cfe3f3;
  --st-card-ink: #16324a;
  --st-card-muted: #5c7391;
  --st-card-accent: #1c6fa8;
  --ios-card-radius: 19px;
}

#casing .s-material { font: inherit; color: inherit; }
.s-material > :is(.s-material-card, .s-material-preview, .s-material-gallery, .s-material-official, .s-material-history, .s-material-similar) {
  margin: 0 0 24px;
  border-radius: var(--ios-card-radius);
  background: #fff;
}
.s-material-card {
  align-items: start;
  row-gap: 0;
}
.s-material-card > div:first-child { display: contents; }
.s-material-card .s-material-identity { grid-area: 1 / 1; }
.s-material-card .s-facts { grid-area: 2 / 1; }
.s-material-card .s-material-price-panel { grid-area: 1 / 2 / 3; }
.s-material-card .s-material-about { grid-area: 3 / 1 / 4 / -1; }
.s-material-identity {
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--st-card-line);
}
.s-material-identity .s-material-icon {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  box-shadow: 0 4px 16px #1c6fa826;
}
.s-material-identity :is(.s-material-icon, .s-material-icon img) { border-radius: var(--ios-card-radius); }
.s-material-identity h1 { color: var(--st-card-ink); }
.s-material-identity .s-rating-line {
  color: var(--st-card-ink);
  font: 720 .87rem/1.5 "Segoe UI", system-ui, sans-serif;
}
.s-material h2 { color: var(--st-card-ink); }
.s-material :is(.s-material-about, .s-material-official) p {
  font: inherit;
  color: inherit;
  max-width: 76ch;
  overflow-wrap: anywhere;
}
.s-material .s-material-about p { margin-top: 6px; max-width: none; }
.s-material-official h2::after { background: var(--st-card-line); }
.s-facts {
  margin-top: 16px;
  gap: 5px;
  font: .845rem/1.38 "Segoe UI", system-ui, sans-serif;
}
.s-material :is(.s-facts dt, .s-muted, .s-material-history th, .s-material-check, .s-genre) { color: var(--st-card-muted); }
.s-material .s-facts dd { color: var(--st-card-ink); }
#casing .s-material :is(.s-facts a, .s-material-history summary, .s-material-buy, .s-name) { color: var(--st-card-accent); }

.s-material-price-panel {
  padding: 15px;
  background: #fff;
  border: 1px solid var(--st-card-line);
  border-radius: var(--ios-card-radius);
}
.s-material-price strong {
  color: var(--st-card-accent);
  overflow-wrap: anywhere;
}
.s-material-price del { color: var(--st-card-muted); }
.s-material-off { background: var(--st-card-tint); color: var(--st-card-accent); }
#casing .s-material-buy:is(:link, :visited) {
  --store-button-top: #4fa8dd;
  --store-button-bottom: #1b5f92;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: min(8em, 100%);
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  max-width: 100%;
  padding: 8px 64px 8px 12px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--st-card-line);
  border-radius: 12px;
  background: var(--st-card-tint);
  color: var(--st-card-accent);
  font: 700 .86rem/1.25 "Segoe UI", system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
}
.s-material-buy::before,
.s-material-buy::after {
  position: absolute;
  pointer-events: none;
  content: "";
}
.s-material-buy::before {
  z-index: -1;
  inset: 0 0 0 auto;
  width: 67px;
  background: linear-gradient(135deg, var(--store-button-top), var(--store-button-bottom));
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.s-material-buy::after {
  box-sizing: border-box;
  top: 50%;
  right: 10px;
  width: 35px;
  height: 35px;
  transform: translateY(-50%);
  padding: 2px;
  border: 3px double #fff;
  border-radius: 50%;
  /* Знак Steam — инлайн-SVG, белый (simple-icons, CC0). Бинарного файла нет. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M11.979%200C5.678%200%20.511%204.86.022%2011.037l6.432%202.658c.545-.371%201.203-.59%201.912-.59.063%200%20.125.004.188.006l2.861-4.142V8.91c0-2.495%202.028-4.524%204.524-4.524%202.494%200%204.524%202.031%204.524%204.527s-2.03%204.525-4.524%204.525h-.105l-4.076%202.911c0%20.052.004.105.004.159%200%201.875-1.515%203.396-3.39%203.396-1.635%200-3.016-1.173-3.331-2.727L.436%2015.27C1.862%2020.307%206.486%2024%2011.979%2024c6.627%200%2011.999-5.373%2011.999-12S18.605%200%2011.979%200zM7.54%2018.21l-1.473-.61c.262.543.714.999%201.314%201.251.297.539%202.793-.076%203.332-1.375.263-.63.264-1.319.005-1.949s-.75-1.121-1.377-1.383c-.624-.26-1.29-.249-1.878-.03l1.523.63c.956.4%201.409%201.5%201.009%202.455-.397.957-1.497%201.41-2.454%201.012H7.54zm11.415-9.303c0-1.662-1.353-3.015-3.015-3.015-1.665%200-3.015%201.353-3.015%203.015%200%201.665%201.35%203.015%203.015%203.015%201.663%200%203.015-1.35%203.015-3.015zm-5.273-.005c0-1.252%201.013-2.266%202.265-2.266%201.249%200%202.266%201.014%202.266%202.266%200%201.251-1.017%202.265-2.266%202.265-1.253%200-2.265-1.014-2.265-2.265z'/%3E%3C/svg%3E") center / 112% auto no-repeat content-box;
}
#casing .s-material-buy:is(:hover, :focus-visible) {
  --store-button-top: #63bceb;
  --store-button-bottom: #216ea4;
  border-color: #a8d4ee;
  background: #dceefb;
  color: #155a8a;
  box-shadow: 0 2px 7px #1b5f9233;
  text-decoration: none;
}
#casing .s-material-buy:focus-visible {
  outline: 2px solid var(--st-card-accent);
  outline-offset: 3px;
}
.s-material-check { margin-top: 6px; font-size: .75rem; line-height: 1.36; }
.s-material-history {
  margin-top: 12px;
  padding-top: 11px;
  border-color: var(--st-card-line);
}
.s-material > .s-material-history { padding-top: 0; border-top: 0; }
.s-material-price-panel .s-material-history h2 { font-size: .95rem; }
.s-material-history table { font-size: .81rem; }
.s-material-history :is(th, td) { padding: 6px 5px; overflow-wrap: anywhere; }
.s-material-latest tr:first-child > * { background: var(--st-card-bg); color: var(--st-card-ink); }

.s-gallery-grid a, .s-gallery-grid img { border-radius: 5px; }
.s-gallery-grid > .s-gallery-more { background: var(--st-card-tint); color: var(--st-card-accent); }
.s-gallery-grid > .s-gallery-more:is(:hover, :focus-visible) { color: var(--st-card-accent); background: #dceefb; }
.s-gallery-grid > .s-gallery-more > .s-gallery-more-image { opacity: .48; }
.s-gallery-more-label {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--st-card-bg);
  text-shadow: none;
}

.s-gallery-dialog {
  background: #fff;
  border-color: var(--st-card-line);
  color: var(--st-card-ink);
  box-shadow: 0 18px 55px #1c6fa840;
}
.s-gallery-dialog::backdrop { background: #b9d3e5ad; backdrop-filter: blur(5px); }
.s-gallery-dialog :is(.s-gallery-close, .s-gallery-prev, .s-gallery-next, .s-gallery-count) {
  border-color: var(--st-card-line);
  background: var(--st-card-tint);
  color: var(--st-card-accent);
}
.s-gallery-dialog :is(.s-gallery-close, .s-gallery-prev, .s-gallery-next):hover { background: #dceefb; }
.s-gallery-dialog .s-gallery-stage figcaption { color: var(--st-card-muted); }
.s-gallery-dialog button:focus-visible { outline-color: var(--st-card-accent); }
.s-gallery-dialog .s-gallery-thumbs button:is(:hover, [aria-pressed="true"]) { border-color: var(--st-card-accent); }

/* «Похожие игры» — блок weekly-news со своей таблицей стилей (грузится ПОСЛЕ steam-card.css),
   поэтому specificity повышена, чтобы синяя палитра не зависела от порядка подключения. */
.s-material-similar.s-weekly-similar .weekly-news h2 { color: var(--st-card-ink); }
.s-weekly-similar .weekly-news-grid a.weekly-news-card { background: var(--st-card-bg); }
.s-weekly-similar .weekly-news-grid > li:nth-child(even) a.weekly-news-card { background: var(--st-card-tint); }
.s-weekly-similar .weekly-news a.weekly-news-card:focus-visible { outline-color: var(--st-card-accent); }

@media (max-width: 620px) {
  .s-material-card .s-material-price-panel { grid-area: 3 / 1; margin-top: 16px; }
  .s-material-card .s-material-about { grid-area: 4 / 1; }
  .s-material-identity .s-material-icon { width: 60px; height: 60px; flex-basis: 60px; }
}
