/* Public presentation, September 2026. No dependency on pricing, SEO or analytics. */
body:not(.admin-page) {
  --polish-surface: #11171d;
  --polish-line: #293039;
  --polish-muted: #a7b0bb;
  background: #0a0f13;
}

body:not(.admin-page)::before { display: none; }

body:not(.admin-page) :is(a, button, select):focus-visible {
  outline: 2px solid var(--gvs-lime);
  outline-offset: 4px;
}

body:not(.admin-page) .site-header {
  gap: clamp(14px, 2vw, 30px);
  background: #0a0f13;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.admin-page) .main-nav { gap: clamp(20px, 2.6vw, 38px); }
body:not(.admin-page) .main-nav a { font-size: 14px; }
body:not(.admin-page) .platform-nav a { font-size: 13px; font-weight: 700; }
body:not(.admin-page) .header-tools { gap: 12px; }

body:not(.admin-page) .deals-hero {
  min-height: 320px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 36px;
  padding: 36px max(24px, calc((100vw - 1312px) / 2));
}

body:not(.admin-page) .deals-hero h1 {
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

body:not(.admin-page) .deals-hero p { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
body:not(.admin-page) .country-label { border-radius: 6px; font-size: 10px; letter-spacing: .1em; }
body:not(.admin-page) .score-info-link { min-width: 0; min-height: 44px; font-size: 13px; }

body:not(.admin-page) .deals-hero .hero-score-card {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 22px;
  min-height: 0;
  padding: 26px;
  border-radius: 16px;
  background: rgba(13, 19, 24, .92);
  box-shadow: 0 12px 40px #0003;
}

body:not(.admin-page) .score-ring { width: 118px; height: 118px; }
body:not(.admin-page) .score-ring::before { inset: 6px; background: #10171c; }
body:not(.admin-page) .score-ring span { font-size: 10px; }
body:not(.admin-page) .score-ring strong { font-size: 36px; font-variant-numeric: tabular-nums; }
body:not(.admin-page) .score-ring em { font-size: 10px; }
body:not(.admin-page) .deal-count span { font-size: 11px; line-height: 1.5; }
body:not(.admin-page) .deal-count strong { font-size: 34px; }
body:not(.admin-page) .trend-line { display: none; }
body:not(.admin-page) .trend-caption { padding-top: 16px; border-top: 1px solid var(--polish-line); gap: 10px; font-size: 11px; }

body:not(.admin-page) :is(.deals-controls, .deals-section) {
  width: min(1360px, 100%);
  padding-left: 24px;
  padding-right: 24px;
}

body:not(.admin-page) .deals-controls { gap: 12px; padding-top: 24px; }
body:not(.admin-page) .deals-section { padding-top: 28px; }
body:not(.admin-page) .filter-bar { border-color: var(--polish-line); border-radius: 12px; background: var(--polish-surface); }
body:not(.admin-page) .filter-bar label { color: var(--polish-muted); font-size: 11px; }
body:not(.admin-page) :is(.filter-bar, .sort-view-tools) select { min-height: 44px; font-size: 13px; font-weight: 600; }
body:not(.admin-page) .sort-view-tools label { white-space: nowrap; }
body:not(.admin-page) .section-heading { align-items: center; margin-bottom: 20px; }
body:not(.admin-page) .section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
body:not(.admin-page) .section-heading > span { color: var(--polish-muted); font-size: 12px; }

body:not(.admin-page) .deal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
body:not(.admin-page) .deal-grid[data-view="list"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Explicit selectors override the earlier platform-specific list rules. */
body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  grid-template-rows: none;
  min-width: 0;
  border: 1px solid var(--polish-line);
  border-radius: 14px;
  background: var(--polish-surface);
  box-shadow: 0 4px 16px #0002;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card[hidden] { display: none; }

@media (hover: hover) {
  body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card:hover {
    transform: none;
    border-color: #657e37;
    box-shadow: 0 8px 24px #0004;
  }
  body:not(.admin-page) .polished-card .deal-title:hover { color: #d1ec8a; }
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .cover-frame {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-width: 0;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .cover-link {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: var(--art-ratio, 16 / 9);
  border: 0;
  background: #0c1116;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .cover-art,
body:not(.admin-page) .polished-detail .detail-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: none;
  filter: none;
  transform: none;
}

body:not(.admin-page) :is(.cover-backdrop, .detail-backdrop) { display: none; }

body:not(.admin-page) .polished-card .story-feature-badge {
  position: static;
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--polish-line);
  border-radius: 0;
  padding: 6px 8px;
  background: #202b1b;
  box-shadow: none;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}

body:not(.admin-page) .polished-detail .story-feature-badge {
  max-width: calc(100% - 16px);
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .rank-pill {
  top: 10px;
  left: 10px;
  min-width: 30px;
  border: 1px solid #c3df8199;
  border-radius: 6px;
  padding: 5px 7px;
  background: #0a1014ed;
  color: #d4ef9c;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .deal-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .deal-body h2 {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  min-height: 2.7em;
  margin: 0;
  padding: 0;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .deal-title {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  color: #f3f5f7;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .price-row {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 9px;
  margin: auto 0 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .price-row strong { margin-left: auto; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .discount { padding: 5px 7px; background: #412129; color: #ffb6bd; font-size: 12px; font-weight: 800; }
body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .original { color: #9aa6b1; font-size: 12px; }

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .card-stats {
  grid-column: auto;
  grid-row: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--polish-line);
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .card-stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .card-stats span {
  display: block;
  margin: 0 0 7px;
  color: var(--polish-muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .card-stats strong {
  display: block;
  max-width: 100%;
  margin: 0;
  color: #f4f6f8;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 750;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .card-gvs strong { color: #bee46b; }
body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .card-playtime strong { font-size: 16px; line-height: 1.7; }
body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .card-gvs em {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 600;
  font-style: normal;
  letter-spacing: .04em;
  color: #bee46b;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .deal-cta {
  grid-column: auto;
  grid-row: auto;
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  margin: 0;
  border: 1px solid #3e4d2f;
  border-radius: 8px;
  padding: 10px 12px;
  background: #202b1b;
  color: #d2eba4;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
}

body:not(.admin-page) :is(.deal-grid, .deal-grid[data-view]) .deal-card.polished-card .deal-cta span { flex-shrink: 0; width: 8px; height: 8px; border-color: currentColor; }

body:not(.admin-page) .value-strip { gap: 20px; padding: 22px; border-radius: 12px; border-color: var(--polish-line); background: #10171b; }
body:not(.admin-page) .value-strip div { grid-template-columns: 32px minmax(0, 1fr); gap: 5px 12px; }
body:not(.admin-page) .value-icon { width: 32px; height: 32px; border: 0; border-radius: 8px; }
body:not(.admin-page) .value-icon::before { font-size: 20px; }
body:not(.admin-page) .value-strip strong { font-size: 13px; }
body:not(.admin-page) .value-strip p { font-size: 12px; line-height: 1.6; }

/* The detail page keeps the complete artwork and gives the offer its own hierarchy. */
body:not(.admin-page) .detail-layout.polished-detail {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 40px;
  width: min(1220px, 100%);
  padding: 40px 24px 32px;
}

body:not(.admin-page) .polished-detail .detail-media {
  align-self: start;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: var(--art-ratio, 16 / 9);
  border: 0;
  border-radius: 14px;
  background: #10161b;
  box-shadow: 0 0 0 1px var(--polish-line), 0 12px 32px #0004;
}

body:not(.admin-page) .polished-detail .detail-copy {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.admin-page) .polished-detail .deal-meta { order: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
body:not(.admin-page) .polished-detail .deal-meta span { padding: 6px 9px; color: #cad4df; background: #171f26; border-color: var(--polish-line); font-size: 11px; }
body:not(.admin-page) .polished-detail .detail-copy h1 { order: 1; margin: 0 0 22px; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
body:not(.admin-page) .polished-detail .detail-copy > p { order: 5; max-width: 68ch; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--polish-line); color: #bec7d0; font-size: 16px; line-height: 1.8; }

body:not(.admin-page) .polished-detail .detail-buy-box {
  order: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: normal;
  gap: 20px;
  margin: 0 0 20px;
  padding: 22px;
  border: 1px solid #4d5f2f;
  border-radius: 14px;
  background: linear-gradient(120deg, #1d281b, #151e1b);
}

body:not(.admin-page) .polished-detail .detail-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; font-variant-numeric: tabular-nums; }
body:not(.admin-page) .polished-detail .detail-price strong { color: #f3f6ee; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.035em; }
body:not(.admin-page) .polished-detail .detail-price .discount { padding: 6px 9px; background: #412129; color: #ffb6bd; font-size: 14px; }
body:not(.admin-page) .polished-detail .detail-price .original { font-size: 14px; color: #adb6a8; }
body:not(.admin-page) .polished-detail .primary-action { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 50px; padding: 12px 18px; border: 1px solid #c1df72; border-radius: 8px; background: #b7de59; color: #111c04; font-size: 16px; line-height: 1.4; font-weight: 750; text-align: center; }

body:not(.admin-page) .polished-detail .score-breakdown { order: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
body:not(.admin-page) .polished-detail .score-breakdown > div { min-width: 0; padding: 16px; border-color: var(--polish-line); border-radius: 10px; background: var(--polish-surface); }
body:not(.admin-page) .polished-detail .score-breakdown .gvs-stat { border-color: #4b5c31; background: #1b2417; }
body:not(.admin-page) .polished-detail .score-breakdown span { font-size: 11px; color: var(--polish-muted); }
body:not(.admin-page) .polished-detail .score-breakdown strong { margin-top: 8px; font-size: 28px; line-height: 1.2; color: #f4f6f8; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
body:not(.admin-page) .polished-detail .score-breakdown .gvs-stat strong { color: #bee46b; }
body:not(.admin-page) .polished-detail .facts { order: 4; gap: 12px; margin: 16px 0 0; }
body:not(.admin-page) .polished-detail .facts div { min-width: 0; padding: 14px 16px; border-radius: 10px; border-color: var(--polish-line); background: var(--polish-surface); }
body:not(.admin-page) .polished-detail .facts dt { margin-bottom: 7px; color: var(--polish-muted); font-size: 11px; }
body:not(.admin-page) .polished-detail .facts dd { margin: 0; color: #e6ebf0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
body.game-detail-page > main > .content-shell { width: min(1220px, 100%); padding: 20px 24px 56px; }

body:not(.admin-page) .site-footer { border-color: var(--polish-line); background: #0a0e12; }
body:not(.admin-page) .cookie-notice { border-radius: 12px; border-color: #3c464f; box-shadow: 0 8px 32px #0005; }

/* Preserve the approved compact tablet home. Desktop uses image-first cards. */
@media (min-width: 641px) and (max-width: 979px) {
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(54px, auto) minmax(58px, auto) 1fr auto;
    gap: 0 20px;
    padding: 20px;
  }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .cover-frame { grid-column: 1; grid-row: 1 / 3; align-self: center; border-radius: 8px; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .deal-body { display: contents; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .deal-body h2 { grid-column: 2; grid-row: 1; min-height: 0; font-size: 20px; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .price-row { grid-column: 2; grid-row: 2; margin: 14px 0 0; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .price-row strong { margin-left: 0; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .card-stats { grid-column: 1 / -1; grid-row: 3; margin-top: 20px; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .deal-cta { grid-column: 1 / -1; grid-row: 4; margin-top: 16px; }
}

/* Wide screens retain a true list: artwork, offer and metrics on one row. */
@media (min-width: 980px) {
  /* Three home cards per row; the full-width information strip must not leave holes. */
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; }
  body:not(.admin-page) .deal-grid.playstation-art-grid { grid-auto-flow: row dense; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .deal-body { padding: 20px; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .deal-body h2 { font-size: 20px; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .price-row strong { font-size: 28px; }

  /* A fixed media slot prevents mixed source ratios from moving titles around.
     Only desktop listings are cropped; mobile and full detail artwork stay intact. */
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .cover-link { aspect-ratio: 16 / 9; }
  body:not(.admin-page) .deal-grid[data-deals-grid]:not(.mixed-art-grid) .deal-card.polished-card[data-platform="playstation"] .cover-link { aspect-ratio: 1; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .cover-art,
  body:not(.admin-page) .deal-grid[data-deals-grid]:not(.mixed-art-grid) .deal-card.polished-card[data-platform="playstation"] .cover-art { object-fit: cover; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .cover-art { object-position: center 30%; }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) .deal-card.polished-card .story-feature-badge,
  body:not(.admin-page) .deal-grid[data-deals-grid]:not(.mixed-art-grid) .deal-card.polished-card[data-platform="playstation"] .story-feature-badge {
    position: absolute;
    z-index: 1;
    left: 10px;
    right: auto;
    bottom: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    border: 1px solid #698347;
    border-radius: 6px;
    padding: 6px 9px;
    background: #182216f2;
  }
  body:not(.admin-page) .deal-grid[data-view="list"] { grid-template-columns: minmax(0, 1fr); }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 16px;
  }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card .cover-frame { height: auto; align-self: center; border-radius: 8px; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card .deal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr) minmax(110px, .45fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 12px 24px;
    padding: 0;
  }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card .deal-body h2 { grid-column: 1; grid-row: 1; min-height: 0; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card .price-row { grid-column: 1; grid-row: 2; margin: 0; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card .price-row strong { margin-left: 0; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card .card-stats { grid-column: 2; grid-row: 1 / 3; align-self: center; border: 0; border-left: 1px solid var(--polish-line); padding: 0 0 0 20px; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card .deal-cta { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}

@media (max-width: 1279px) {
  body:not(.admin-page) .deal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(.admin-page) .site-header { grid-template-columns: 1fr auto auto; gap: 12px 24px; padding: 12px 24px; }
  body:not(.admin-page) .site-header .brand { grid-column: 1; grid-row: 1; }
  body:not(.admin-page) .site-header .main-nav { grid-column: 2; grid-row: 1; min-width: 0; height: 44px; }
  body:not(.admin-page) .site-header .main-nav a { min-height: 44px; }
  body:not(.admin-page) .site-header .header-tools { grid-column: 3; grid-row: 1; }
  body:not(.admin-page) .site-header .platform-nav { grid-column: 1 / -1; grid-row: 2; }
  body:not(.admin-page) .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(.admin-page) .value-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 979px) {
  body:not(.admin-page) .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.admin-page) .deal-grid.mixed-art-grid:not([data-view="list"]) { grid-template-columns: minmax(0, 1fr); }
  body:not(.admin-page) .deals-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 28px 24px; }
  body:not(.admin-page) .deals-hero .hero-score-card { display: none; }
  body:not(.admin-page) .detail-layout.polished-detail { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; }
  body:not(.admin-page) .site-header .brand { gap: 10px; font-size: 14px; }
  body:not(.admin-page) .site-header .brand-mark { font-size: 28px; }
}

@media (max-width: 720px) {
  body:not(.admin-page) .site-header { position: relative; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 10px 16px 0; }
  body:not(.admin-page) .site-header .brand { gap: 6px; font-size: clamp(11px, 3.45vw, 14px); }
  body:not(.admin-page) .site-header .brand-mark { font-size: clamp(26px, 7.2vw, 28px); }
  body:not(.admin-page) .site-header .header-tools { grid-column: 2; }
  body:not(.admin-page) .site-header .main-nav { grid-column: 1 / -1; grid-row: 3; justify-content: center; justify-self: stretch; gap: 30px; }
  body:not(.admin-page) .site-header .platform-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  body:not(.admin-page) .site-header .platform-nav a { justify-content: center; min-height: 40px; padding: 0 8px; }
  body:not(.admin-page) .header-country-form { grid-template-columns: 72px; }
  body:not(.admin-page) .header-country-form select { min-height: 40px; padding: 0 10px; }
  body:not(.admin-page) .header-country-form label { display: none; }
  body:not(.admin-page) .search-button { width: 40px; height: 40px; min-height: 40px; }
  body:not(.admin-page) .search-button::before { top: 11px; left: 11px; width: 12px; height: 12px; }
  body:not(.admin-page) .search-button::after { top: 25px; left: 25px; width: 7px; }

  body:not(.admin-page) .detail-layout.polished-detail {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 14px;
    padding: 16px 16px 24px;
  }
  body:not(.admin-page) .polished-detail .detail-copy { display: contents; }
  body:not(.admin-page) .polished-detail .deal-meta { grid-column: 2; grid-row: 1; gap: 5px; margin: 0 0 6px; }
  body:not(.admin-page) .polished-detail .deal-meta span { padding: 4px 6px; font-size: 10px; }
  /* The same Metacritic value remains visible in the metrics strip below. */
  body:not(.admin-page) .polished-detail .deal-meta span:nth-child(3) { display: none; }
  body:not(.admin-page) .polished-detail .detail-copy h1 { grid-column: 2; grid-row: 2; margin: 0 0 14px; font-size: clamp(22px, 6vw, 28px); line-height: 1.15; }
  body:not(.admin-page) .polished-detail .detail-media { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; align-self: center; aspect-ratio: auto; margin: 0 0 14px; border-radius: 10px; }
  body:not(.admin-page) .polished-detail .detail-art { position: static; height: auto; aspect-ratio: var(--art-ratio, 16 / 9); }
  /* A featured Story stays accessible without covering the compact artwork. */
  body:not(.admin-page) .polished-detail .story-feature-badge { position: static; order: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; max-width: none; border: 0; border-top: 1px solid var(--polish-line); border-radius: 0; padding: 6px; background: #202b1b; box-shadow: none; font-size: 11px; line-height: 1.4; text-align: center; }
  body:not(.admin-page) .polished-detail[data-art-shape="wide"] { grid-template-columns: 128px minmax(0, 1fr); }
  body:not(.admin-page) .polished-detail :is(.detail-buy-box, .score-breakdown, .facts, .detail-copy > p) { grid-column: 1 / -1; }
  body:not(.admin-page) .polished-detail .detail-buy-box {
    grid-row: 3;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 10px;
  }
  body:not(.admin-page) .polished-detail .detail-price { min-width: 0; gap: 5px 7px; }
  body:not(.admin-page) .polished-detail .detail-price strong { order: 0; width: 100%; font-size: clamp(20px, 5.6vw, 23px); overflow-wrap: anywhere; }
  body:not(.admin-page) .polished-detail .detail-price .discount { order: 1; padding: 3px 5px; font-size: 11px; }
  body:not(.admin-page) .polished-detail .detail-price .original { order: 2; font-size: 11px; }
  body:not(.admin-page) .polished-detail .detail-price .sale-status { font-size: 11px; }
  body:not(.admin-page) .polished-detail .primary-action { min-width: 0; min-height: 44px; padding: 8px 10px; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
  body:not(.admin-page) .polished-detail .score-breakdown { grid-row: 4; gap: 0; border: 1px solid var(--polish-line); border-radius: 10px; background: var(--polish-surface); }
  body:not(.admin-page) .polished-detail .score-breakdown > div { padding: 8px 10px; border: 0; border-radius: 0; background: none; }
  body:not(.admin-page) .polished-detail .score-breakdown > div:first-child { border-radius: 9px 0 0 9px; }
  body:not(.admin-page) .polished-detail .score-breakdown > div + div { border-left: 1px solid var(--polish-line); }
  body:not(.admin-page) .polished-detail .score-breakdown span { font-size: 10px; }
  body:not(.admin-page) .polished-detail .score-breakdown strong { margin-top: 3px; font-size: 20px; }
  body:not(.admin-page) .polished-detail .facts { grid-row: 5; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin: 12px 0 0; }
  body:not(.admin-page) .polished-detail .facts div { padding: 0; border: 0; border-radius: 0; background: none; }
  body:not(.admin-page) .polished-detail .facts dt { margin-bottom: 4px; font-size: 10px; }
  body:not(.admin-page) .polished-detail .facts dd { font-size: 13px; line-height: 1.45; }
  body:not(.admin-page) .polished-detail .detail-copy > p { grid-row: 6; margin: 14px 0 0; padding-top: 14px; }
  body.game-detail-page > main > .content-shell { padding: 12px 16px 40px; }
}

@media (max-width: 640px) {
  body:not(.admin-page) .deals-hero { padding: 24px 16px; }
  body:not(.admin-page) .deals-hero h1 { font-size: clamp(34px, 10vw, 44px); margin-bottom: 12px; }
  body:not(.admin-page) .deals-hero p { font-size: 14px; margin-bottom: 16px; }
  body:not(.admin-page) .country-label { margin-bottom: 12px; }
  body:not(.admin-page) .deals-controls { padding: 20px 16px 0; }
  body:not(.admin-page) .deals-section { padding: 24px 16px 40px; }
  body:not(.admin-page) .section-heading h2 { font-size: 22px; }
  body:not(.admin-page) .controls-topline { min-width: 0; }
  body:not(.admin-page) .sort-view-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-width: 0; width: 100%; align-items: end; }
  body:not(.admin-page) .sort-view-tools label { flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; font-size: 12px; }
  body:not(.admin-page) .sort-view-tools select { min-width: 0; width: 100%; padding: 0 12px; }
  body:not(.admin-page) .view-toggle { gap: 8px; }
  body:not(.admin-page) .view-toggle button { width: 44px; height: 44px; }
  body:not(.admin-page) .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  body:not(.admin-page) .filter-toggle { border-color: var(--polish-line); background: var(--polish-surface); }
  body:not(.admin-page) .deal-grid,
  body:not(.admin-page) .deal-grid[data-view="list"] { grid-template-columns: minmax(0, 1fr); gap: 18px; }

  /* Square / portrait covers sit next to the title; wide store banners keep their width. */
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card:not([data-art-shape="wide"]) {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 0 16px;
    padding: 16px;
  }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card:not([data-art-shape="wide"]) .cover-frame { grid-column: 1; grid-row: 1 / 3; align-self: start; border-radius: 8px; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card:not([data-art-shape="wide"]) .deal-body { display: contents; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card:not([data-art-shape="wide"]) h2 { grid-column: 2; grid-row: 1; align-self: start; min-height: 0; font-size: 17px; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card:not([data-art-shape="wide"]) .price-row { grid-column: 2; grid-row: 2; align-self: end; padding-top: 12px; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card:not([data-art-shape="wide"]) .price-row strong { width: 100%; margin-left: 0; font-size: 24px; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card:not([data-art-shape="wide"]) .card-stats { grid-column: 1 / -1; grid-row: 3; margin-top: 16px; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card:not([data-art-shape="wide"]) .deal-cta { grid-column: 1 / -1; grid-row: 4; margin-top: 14px; }
  body:not(.admin-page) .deal-grid[data-view="list"] .deal-card.polished-card:not([data-art-shape="wide"]) .rank-pill { top: 6px; left: 6px; font-size: 10px; padding: 4px 5px; min-width: 25px; }
  body:not(.admin-page) .value-strip { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-page) .deal-card.polished-card,
  body:not(.admin-page) .hero-score-link { transition: none; transform: none; }
}

/* Search is an independent, on-demand dialog. Closed dialogs occupy no layout space. */
body:not(.admin-page).game-search-open { overflow: hidden; }
body:not(.admin-page) .game-search-dialog {
  --search-top-gap: clamp(12px, 6vh, 64px);
  position: fixed;
  inset: calc(var(--search-viewport-top, 0px) + var(--search-top-gap)) 0 auto;
  width: min(640px, calc(100% - 32px));
  max-width: none;
  max-height: min(720px, calc(var(--search-viewport-height, 100vh) - 2 * var(--search-top-gap)));
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #3b4650;
  border-radius: 16px;
  background: #11171d;
  color: #f3f5f7;
  box-shadow: 0 24px 80px #0009;
  overflow: auto;
  overscroll-behavior: contain;
}
body:not(.admin-page) .game-search-dialog[open] { display: flex; flex-direction: column; }
body:not(.admin-page) .game-search-dialog::backdrop { background: #000b; }
body:not(.admin-page) .game-search-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; flex: 0 0 auto; }
body:not(.admin-page) .game-search-heading h2 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
body:not(.admin-page) .game-search-heading p { margin: 6px 0 0; color: var(--polish-muted); font-size: 12px; line-height: 1.5; }
body:not(.admin-page) .game-search-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #3b4650; border-radius: 8px; background: #1b232c; color: #edf2f6; font-size: 28px; line-height: 1; }
body:not(.admin-page) .game-search-form { flex: 0 0 auto; margin: 18px 0 0; }
body:not(.admin-page) .game-search-form input { display: block; width: 100%; min-width: 0; min-height: 50px; margin: 0; border: 1px solid #607d38; border-radius: 10px; padding: 12px; background: #0b1116; color: #f3f5f7; font: inherit; font-size: 16px; line-height: 1.5; }
body:not(.admin-page) .game-search-form input:focus-visible { outline: 2px solid var(--gvs-lime); outline-offset: 2px; }
body:not(.admin-page) .game-search-form input::placeholder { color: #9da8b4; opacity: 1; }
body:not(.admin-page) .game-search-status { flex: 0 0 auto; margin: 14px 0 10px; color: var(--polish-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
body:not(.admin-page) .game-search-results { min-height: 0; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
body:not(.admin-page) .game-search-results[hidden],
body:not(.admin-page) .game-search-retry[hidden] { display: none; }
body:not(.admin-page) .game-search-results li + li { border-top: 1px solid var(--polish-line); }
body:not(.admin-page) .game-search-result { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 92px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #f3f5f7; }
body:not(.admin-page) .game-search-result:hover,
body:not(.admin-page) .game-search-result[aria-selected="true"] { background: #23301b; }
body:not(.admin-page) .game-search-art { display: flex; align-items: center; justify-content: center; width: 80px; }
body:not(.admin-page) .game-search-art img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80px; border-radius: 6px; object-fit: contain; }
body:not(.admin-page) .game-search-copy { display: flex; flex-direction: column; min-width: 0; gap: 6px; overflow-wrap: anywhere; }
body:not(.admin-page) .game-search-copy > strong { color: #f3f5f7; font-size: 16px; line-height: 1.4; }
body:not(.admin-page) .game-search-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #bac4ce; font-size: 12px; line-height: 1.5; }
body:not(.admin-page) .game-search-price { color: #c9e993; font-weight: 700; font-variant-numeric: tabular-nums; }
body:not(.admin-page) .game-search-copy small { color: var(--polish-muted); font-size: 11px; line-height: 1.4; }
body:not(.admin-page) .game-search-retry { align-self: start; min-height: 44px; border: 1px solid #607d38; border-radius: 8px; padding: 10px 16px; background: #23301b; color: #d2eba4; }
@media (max-width: 640px) {
  body:not(.admin-page) .game-search-dialog { --search-top-gap: 12px; width: calc(100% - 24px); padding: 16px; border-radius: 12px; }
  body:not(.admin-page) .game-search-heading h2 { font-size: 21px; }
  body:not(.admin-page) .game-search-result { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; min-height: 84px; padding: 10px 4px; }
  body:not(.admin-page) .game-search-art { width: 64px; }
  body:not(.admin-page) .game-search-art img { max-height: 72px; }
}
