/* Games uses neutral charcoal in both reading modes. Keep these page tokens
   independent of editorial paper so visiting Games never changes a preference. */
:root {
  --gg-store-bg: #222225;
  --gg-store-stock: linear-gradient(#252528, #222225);
  --gg-store-ink: #e6e3dd;
  --gg-store-subtle: #bdbbc2;
  --gg-store-label: #bdbbc2;
  --gg-store-muted: #aaa7b0;
  --gg-store-empty: #9a97a1;
  --gg-store-rule: #3e3e44;
  --gg-store-edge: #3e3e44;
  --gg-store-rule-strong: #46464d;
  --gg-store-field: #2b2b30;
  --gg-store-field-border: #3e3e44;
  --gg-store-field-hover: #303035;
  --gg-store-hover-border: #5b5b65;
  --gg-store-accent: #c0b1f1;
  --gg-store-selected: #393344;
  --gg-store-selected-line: #827398;
  --gg-store-selected-ink: #e0d5f7;
  --gg-store-pip: rgba(230,227,221,.18);
  --gg-store-track: rgba(230,227,221,.18);
  --gg-store-icon-filter: invert(1);
  --gg-store-ticket: #eee6d6;
  --gg-store-ticket-mobile: #f0e8d9;
  --gg-store-ticket-ink: #29251f;
  --gg-store-ticket-muted: #70675b;
  --gg-store-ticket-rule: #c7bba5;
  --gg-store-ticket-mobile-rule: #c7bba5;
  --gg-store-ticket-divider: #d2c6b2;
  --gg-store-sale: #9a3328;
  --gg-games-backdrop: #161618;
  --gg-games-container: #1c1c1f;
  --gg-games-board: #1c1c1f;
  --gg-games-heading: linear-gradient(110deg, #242427, #1b1b1e);
  --gg-games-frame: #3c3c42;
  --gg-games-rule: #333338;
}
/* The collection sits on an opaque shelf; the selected artwork frames it. */
html:root body.games-page {
  --gg-tag: #e1ded7;
  --gg-tag-ink: #18181b;
  background-color: var(--gg-games-backdrop) !important;
}
/* Neutral Lights down belongs to Games, not the shared editorial stock.
   Preserve its controls and dialogs as well as the store cards. */
html[data-paper="carbon"] body.games-page {
  --gg-room: #111113; --gg-room-2: #1a1a1d; --gg-room-3: #242428;
  --gg-room-line: #323236; --gg-room-line-2: #424248;
  --gg-room-tx-2: #c6c3c9; --gg-room-tx-3: #aaa7b0;
  --gg-paper: #222225; --gg-paper-2: #2b2b30; --gg-paper-field: #29292d;
  --gg-paper-raised: #303035; --gg-paper-raised-rule: #46464d;
  --gg-ink: #e6e3dd; --gg-ink-2: #bdbbc2; --gg-ink-3: #aaa7b0; --gg-rule: #3e3e44;
  --gg-gloss: #222225; --gg-gloss-ink: #e6e3dd; --gg-gloss-ink-2: #bdbbc2; --gg-gloss-rule: #3e3e44;
}
html body.games-page main.games-shelf {
  width: calc(100% - 64px);
  max-width: var(--gg-content-width);
  margin: 24px auto 32px;
  padding: 0;
  background: var(--gg-games-container);
  border: 1px solid #49424f;
  border-radius: 14px;
  box-shadow: inset 1px 0 #332e3b, inset -1px 0 #332e3b;
}
html body.games-page main.games-shelf::before {
  content: none;
}
html body.games-page .games-background {
  /* Plain artwork and a tint avoid filtering a viewport-sized layer. The
     shelf covers its center, including behind titles, grades and controls. */
  opacity: 1 !important;
  height: 100vh !important;
  height: 100lvh !important;
  filter: none !important;
  -webkit-mask-image: none;
  mask-image: none;
  transform: none;
}
html:root body.games-page .games-background::after {
  background: rgba(18, 18, 20, .55) !important;
}
html body.games-page .gg-noart {
  background: linear-gradient(160deg, #27272c, #18181b);
  color: var(--gg-store-muted);
}
@media (max-width: 768px) {
  html body.games-page main.games-shelf {
    width: 100%;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  /* The shelf fills a phone, leaving no side margins to decorate. */
  html body.games-page .games-background { display: none !important; }
  /* ...so a control that changes it would change nothing anyone can see. The
     account menu hides its own copy at the same widths. */
  html body.games-page .games-background-button { display: none; }
}
html body.games-page .gg-phead-row .games-intro { flex: 1; min-width: 0; }
.games-background-button {
  margin-top: 12px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #d7cbf4;
  font: 600 13px/1.4 var(--gg-font-case);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.games-background-button:hover { color: #fff; }
.games-back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid #75628f;
  border-radius: 999px;
  background: #383041;
  color: #f5efff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
  font: 600 13px/1 var(--gg-font-case);
  cursor: pointer;
}
.games-back-top[hidden] { display: none; }
.games-back-top:hover { background: #4b3c5c; }
.games-back-top:focus-visible, .games-background-button:focus-visible {
  outline: 2px solid #d7cbf4;
  outline-offset: 4px;
}
@media (max-width: 768px) {
  .games-back-top { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Printed store cards collect the information underneath each case. */
/* Lay out cards before scrolling reaches them. Skipping their contents caused
   layout stalls and replaced guessed heights mid-scroll on long shelves.
   Artwork keeps its native lazy loading, independent of card layout. */
html body.games-page .grid.gg-grid > .card.gg-item {
  gap: 0 !important;
  content-visibility: visible;
}
html body.games-page .games-shelf > .gg-grid {
  --gg-shelf-row-gap: 40px;
}
html body.games-page .gg-store-card {
  --gg-room-line: var(--gg-store-rule);
  --gg-room-tx-2: var(--gg-store-label);
  --gg-room-tx-3: var(--gg-store-muted);
  --gg-text-2: var(--gg-store-subtle);
  --gg-text-3: var(--gg-store-muted);
  --gg-accent-light: var(--gg-store-accent);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 12px 10px;
  border: 1px solid var(--gg-store-rule);
  border-top: 1px solid var(--gg-store-rule-strong);
  border-radius: 0 0 6px 6px;
  background: var(--gg-store-bg);
  color: var(--gg-store-ink);
  box-sizing: border-box;
}
html body.games-page .gg-store-card .gg-title { color: var(--gg-store-ink); }
html body.games-page .gg-store-card .gg-title a { color: inherit; text-decoration: none; }
html body.games-page .gg-store-card .gg-title a:hover { text-decoration: underline; }
.gg-mobile-count { display: none; }
html body.games-page .gg-store-card .game-tag {
  background: var(--gg-store-field);
  border-color: var(--gg-store-field-border);
  color: var(--gg-store-subtle);
}
html body.games-page .gg-store-card .game-tag:is(:hover, :focus-visible, .is-active) {
  background: var(--gg-store-selected);
  border-color: var(--gg-store-selected-line);
  color: var(--gg-store-selected-ink);
}
html body.games-page .gg-store-card .game-tag-menu {
  background: var(--gg-store-bg);
  border-color: var(--gg-store-field-border);
  color: var(--gg-store-ink);
}
html body.games-page .gg-store-card .gg-pscore b { color: var(--c); }
html body.games-page .gg-store-card .gg-pscore .pb { background: var(--gg-store-track); }
html body.games-page .gg-store-card .gg-pscore .pb i { background: var(--c); }
html body.games-page .gg-store-card .gg-pscore.na b { color: var(--gg-store-empty); }
html body.games-page .gg-store-card .gg-pscore.p10 b {
  background: var(--gg-gold-metallic);
  -webkit-background-clip: text;
  background-clip: text;
}
html body.games-page .gg-store-card .gg-pscore.p10 .pb i {
  background: linear-gradient(90deg, #d4b44c 0%, #fbf2d4 50%, #d4b44c 100%) !important;
}
html body.games-page .gg-store-card .community-attr .k { color: var(--gg-store-muted); }
html body.games-page .gg-store-card .community-attr :is(.v, .scale-word) { color: var(--gg-store-subtle); }
html body.games-page .gg-store-card .community-attr .v.is-empty { color: var(--gg-store-empty); }
html body.games-page .gg-store-card .attr-scale i { background: var(--gg-store-pip); }
html body.games-page .gg-store-card .attr-scale.is-average i {
  background: linear-gradient(90deg, var(--gg-store-subtle) 0 var(--fill, 0%), var(--gg-store-pip) var(--fill, 0%) 100%);
}
html body.games-page .gg-store-card .gg-card-actions .btn:not(.is-primary):not(.is-state) {
  background: var(--gg-store-field);
  border-color: var(--gg-store-field-border);
  color: var(--gg-store-subtle);
}
html body.games-page .gg-store-card .gg-card-actions .btn:not(.is-primary):not(.is-state):hover {
  background: var(--gg-store-field-hover);
  border-color: var(--gg-store-hover-border);
}
html body.games-page .gg-store-card .gg-icon-btn img { filter: var(--gg-store-icon-filter) !important; }
html body.games-page .gg-store-card :is(a, button):focus-visible {
  outline-color: var(--gg-store-accent);
}
@media (min-width: 601px) {
  html body.games-page .gg-grid > .gg-item > .gg-case-link,
  html body.games-page .gg-grid > .gg-item > .gg-case-link .gg-case {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  html body.games-page .gg-store-card .gg-tagline {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "title title" "sub chips";
    gap: 6px 8px;
  }
  html body.games-page .gg-store-card .gg-title { grid-area: title; }
  html body.games-page .gg-store-card .gg-sub { grid-area: sub; flex-wrap: nowrap; }
  html body.games-page .gg-store-card .gg-sub b { font-size: 10px; }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-chips { grid-area: chips; min-height: 26px; margin: 0; }
  html body.games-page .gg-grid .gg-store-card .game-tag { min-height: 26px; padding: 3px 8px; }
  html body.games-page .gg-grid .gg-store-card .gg-grades { gap: 5px; }
  html body.games-page .gg-grid .gg-store-card .gg-grades-row { padding: 7px 0 6px; }
  html body.games-page .gg-grid .gg-store-card .gg-grade { gap: 3px; }
  html body.games-page .gg-grid .gg-store-card .gg-pscore { font-size: 19px; }
}
@media (min-width: 601px) and (max-width: 767px) {
  html body.games-page .games-shelf > .gg-grid { --gg-shelf-row-gap: 32px; }
}
@media (max-width: 600px) {
  html body.games-page .games-shelf > .gg-grid { background-image: none; }
  html body.games-page .gg-grid .gg-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "case" "info";
  }
  html body.games-page .gg-store-card {
    grid-area: info;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "title title count" "sub chips chips" "grades grades grades" "attrs attrs attrs" "acts acts acts";
    gap: 0 10px;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--gg-store-rule-strong);
    border-radius: 0 0 7px 7px;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card > .gg-card-actions {
    grid-area: acts;
    padding: 8px 14px 10px;
    flex-wrap: nowrap;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-sub b { display: none; }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-card-act {
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 6px;
    font-size: 13px !important;
    white-space: normal;
    line-height: 1.15;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-icon-btn {
    flex: 0 0 44px;
    max-width: 44px;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-title { margin-top: 8px; }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-grades-row { margin-top: 6px; }
  html body.games-page .gg-grid .gg-item .gg-store-card .community-attrs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 6px;
    min-height: 44px;
    margin-inline: 14px;
    padding: 5px 0;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .community-attr {
    flex-direction: column;
    gap: 3px;
    width: 100%;
    white-space: normal;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .attr-scale {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .attr-scale.is-open .scale-word {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* One genre line per card. The remaining genres open in the top layer so
   card containment and adjacent rows cannot clip the dropdown. */
html body.games-page .gg-grid .gg-item .gg-chips {
  flex-wrap: nowrap;
  overflow: visible !important;
  min-width: 0;
}
html body.games-page .gg-grid .gg-item .gg-chips .game-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100% !important;
}
html body.games-page .gg-grid .game-tags-inner {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}
html body.games-page .gg-grid .game-tags-inner > .game-tag {
  display: block;
  min-width: 0;
  flex-shrink: 1;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body.games-page .gg-grid .game-tag-more {
  position: static;
  transform: none;
  flex: none;
  box-shadow: none;
  font-family: inherit;
  white-space: nowrap;
}
html body.games-page .game-tag-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  width: max-content;
  max-width: min(300px, calc(100vw - 24px));
  max-height: min(320px, calc(100dvh - 24px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--gg-room-line, #3a3a3a);
  border-radius: 12px;
  background: var(--gg-room-bg, #100f14);
  color: var(--gg-room-tx, #e5e7eb);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .6);
}
html body.games-page .game-tag-menu:popover-open {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
html body.games-page .game-tag-menu .game-tag {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal !important;
  box-sizing: border-box;
  line-height: 1.3;
  padding: 8px 10px;
  min-height: 36px;
}

/* Cases stand on a continuous metal shelf. Each segment is part of its card,
   so rows stay together when filters or pagination replace the selection.
   The price rides in the shelf's label channel; the grade stays on the box. */
@media (min-width: 601px) {
  html body.games-page main.games-shelf {
    background: var(--gg-games-board);
    border-color: var(--gg-games-frame);
    border-radius: 6px;
    box-shadow: inset 6px 0 0 #302c34, inset -6px 0 0 #302c34,
      0 20px 50px -30px #000;
  }
  html body.games-page .games-shelf > .gg-grid {
    --gg-shelf-front: linear-gradient(to bottom,
      transparent 0 var(--gg-shelf-case-height, 375px),
      #716771 var(--gg-shelf-case-height, 375px),
      #4e4650 calc(var(--gg-shelf-case-height, 375px) + 2px),
      #332e37 calc(var(--gg-shelf-case-height, 375px) + 9px),
      #a59b9e calc(var(--gg-shelf-case-height, 375px) + 10px),
      #6d6269 calc(var(--gg-shelf-case-height, 375px) + 12px),
      #4b424d calc(var(--gg-shelf-case-height, 375px) + 13px),
      #322c35 calc(var(--gg-shelf-case-height, 375px) + 16px),
      #2b252e calc(var(--gg-shelf-case-height, 375px) + 71px),
      #554b57 calc(var(--gg-shelf-case-height, 375px) + 72px),
      #17131b calc(var(--gg-shelf-case-height, 375px) + 74px),
      transparent calc(var(--gg-shelf-case-height, 375px) + 76px));
    background-image: var(--gg-shelf-front), radial-gradient(circle, #0d0c10 1px, transparent 1.5px);
    background-size: 100% calc(var(--gg-grid-row-height, 750px) + 48px), 18px 18px;
    background-origin: content-box, border-box;
    background-clip: content-box, border-box;
    background-position: 0 0, 9px 9px;
    border-top: 1px solid var(--gg-games-rule);
    padding-top: 32px !important;
    row-gap: 48px !important;
  }
  html body.games-page .grid.gg-grid > .card.gg-item::before {
    /* A pool of display lighting behind each box, with fixed proportions. */
    left: -14px !important;
    right: -14px !important;
    top: -32px !important;
    aspect-ratio: 1 !important;
    opacity: 1 !important;
    background: radial-gradient(ellipse at 50% 0,
      rgba(232, 211, 178, .12), transparent 70%) !important;
  }
  html body.games-page .gg-grid > .gg-item > .gg-case-link {
    margin-inline: 14px;
    border-radius: 3px 7px 7px 3px;
    align-self: end;
  }
  html body.games-page .gg-grid > .gg-item > .gg-case-link .gg-case {
    border-radius: 3px 7px 7px 3px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22),
      5px 0 0 -1px #09080b, 7px 1px 0 -1px #49434c,
      9px 2px 0 -2px #0a090c, 12px 12px 18px -8px #000;
  }
  html body.games-page .gg-grid .gg-case::before {
    width: 6%;
    background: linear-gradient(90deg, #141217,
      rgba(255,255,255,.28) 35%, rgba(0,0,0,.3) 58%, transparent);
  }
  html body.games-page .gg-grid .gg-case .gg-plabel { display: none; }
}
/* The shelf channel and its printed price ticket are shared by every size. */
  html body.games-page .gg-shelf-edge {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 76px;
    min-height: 76px;
    padding: 8px 12px 10px;
    box-sizing: border-box;
    isolation: isolate;
  }
  html body.games-page .gg-shelf-edge::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(to bottom,
      #716771 0, #4e4650 2px, #332e37 9px,
      #a59b9e 10px, #6d6269 12px, #4b424d 13px,
      #322c35 16px, #2b252e calc(100% - 5px),
      #554b57 calc(100% - 4px), #17131b calc(100% - 2px));
    box-shadow: 0 14px 18px -10px rgba(0,0,0,.8);
    pointer-events: none;
  }
  html body.games-page .gg-shelf-edge::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 29px;
    width: 22px;
    height: 12px;
    border-block: 1px solid #655b69;
    background: repeating-linear-gradient(90deg, #665c6a 0 1px, transparent 1px 5px);
    opacity: .5;
    pointer-events: none;
  }
  html body.games-page .gg-shelf-edge .gg-plabel {
    position: static;
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: calc(100% - 38px);
    border: 1px solid var(--gg-store-ticket-rule);
    border-radius: 2px;
    background: var(--gg-store-ticket);
    color: var(--gg-store-ticket-ink);
    box-shadow: 0 1px 0 rgba(255,255,255,.3), 0 3px 5px rgba(0,0,0,.35);
  }
  html body.games-page .gg-shelf-edge .gg-plabel .pr {
    padding: 7px 10px;
    gap: 4px;
  }
  html body.games-page .gg-shelf-edge .gg-plabel .pr b { font-size: 21px; }
  html body.games-page .gg-shelf-edge .gg-plabel .pr s { font-size: 10px; }
  html body.games-page .gg-shelf-edge .gg-plabel .was { gap: 4px; }
  html body.games-page .gg-shelf-edge .gg-plabel .off {
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 1px;
  }
  html body.games-page .gg-shelf-edge .gg-plabel .pv {
    display: grid;
    justify-items: end;
    gap: 3px;
    border-top: 0;
    border-left: 1px solid var(--gg-store-ticket-divider);
    padding: 6px 10px;
    font-size: 11px;
  }
  html body.games-page .gg-shelf-edge .gg-plabel .pv small {
    font-size: 9px;
    letter-spacing: .08em;
  }
  html body.games-page .gg-shelf-edge .gg-plabel .pv s { margin-right: 3px; }
@media (min-width: 601px) {
  html body.games-page .gg-store-card {
    position: relative;
    margin: 12px 6px 0;
    border: 1px solid var(--gg-store-edge);
    border-radius: 2px;
    background: var(--gg-store-stock);
    box-shadow: 0 2px 0 #a69b8c, 0 8px 14px -6px rgba(0,0,0,.6);
  }
}
  html body.games-page .gg-store-card::before {
    /* Two little retaining clips make the printed product card feel hung. */
    content: "";
    position: absolute;
    top: -5px;
    left: 18px;
    right: 18px;
    height: 8px;
    background: linear-gradient(90deg, #817785 0 8px,
      transparent 8px calc(100% - 8px), #817785 calc(100% - 8px));
    pointer-events: none;
  }
@media (min-width: 601px) {
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-card-act {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 6px;
    font-size: 13px !important;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-icon-btn {
    flex: 0 0 44px;
    max-width: 44px;
  }
}
@media (min-width: 769px) {
  html body.games-page .gg-phead-row {
    padding-top: 28px;
    padding-bottom: 24px;
    background: var(--gg-games-heading);
    border-radius: 5px 5px 0 0;
    box-shadow: inset 0 1px rgba(255,255,255,.05);
  }
  html body.games-page .games-intro .gg-phead h1 { font-size: 44px; }
  html body.games-page .games-intro .gg-phead p { max-width: 470px; }
}

/* Mobile gives the artwork a full portrait alongside the title and grades.
   The compact printed details keep the whole game visible while browsing. */
@media (max-width: 600px) {
  html body.games-page .gg-phead-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    padding: 12px 16px !important;
    background: var(--gg-games-heading);
    border-bottom: 1px solid var(--gg-games-rule);
  }
  html body.games-page .gg-phead-row .gg-phead p { display: none; }
  html body.games-page .gg-phead-row .gg-phead h1 {
    font-size: 34px !important;
    line-height: 1.1;
    margin-bottom: 0;
    white-space: nowrap;
  }
  html body.games-page .gg-phead-row .gg-ey { display: none; }
  html body.games-page .gg-phead-row .gg-controls { min-width: 0; width: auto; }
  html body.games-page .gg-phead-row .gg-controls-line { justify-content: flex-end; }
  html body.games-page .gg-phead-row .gg-filter-btn {
    min-width: 0;
    padding-inline: 12px;
  }
  html body.games-page .games-shelf > .gg-grid {
    background: radial-gradient(circle, rgba(0,0,0,.26) .75px, transparent 1px) 10px 10px / 20px 20px var(--gg-games-board);
    padding: 14px 8px 24px !important;
    row-gap: 18px !important;
  }
  html body.games-page .grid.gg-grid > .card.gg-item {
    --gg-crate: 1;
    --gg-room-line: var(--gg-store-rule);
    --gg-room-tx-2: var(--gg-store-label);
    --gg-room-tx-3: var(--gg-store-muted);
    grid-template-columns: clamp(112px, 44vw, 196px) minmax(0, 1fr);
    grid-template-areas: "case title" "case price"
      "case grades" "attrs attrs" "acts acts";
    grid-template-rows: auto 44px auto auto auto;
    column-gap: 10px !important;
    row-gap: 0 !important;
    padding: 10px !important;
    background: var(--gg-store-stock) !important;
    color: var(--gg-store-ink);
    border: 1px solid var(--gg-store-edge) !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 0 rgba(80,67,51,.25), 0 7px 14px -9px rgba(0,0,0,.55) !important;
    overflow: visible !important;
  }
  html body.games-page .gg-grid .gg-item > .gg-case-link {
    margin: 0 0 8px;
    aspect-ratio: 135 / 190;
    align-self: start;
    overflow: visible;
    border-bottom: 0;
    border-radius: 2px 4px 4px 2px;
    /* The closed case has one seam and a contact shadow, not stacked slabs. */
    box-shadow: 0 1px 2px rgba(0,0,0,.2), 2px 5px 9px -5px rgba(0,0,0,.45);
  }
  html body.games-page .gg-grid .gg-item > .gg-case-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: -3px;
    right: -3px;
    height: 2px;
    background: linear-gradient(#827b76, #514c49);
    box-shadow: 0 2px 3px -1px rgba(41,37,31,.28);
    clip-path: polygon(1.5% 0, 98.5% 0, 100% 100%, 0 100%);
    pointer-events: none;
  }
  html body.games-page :is(.gg-grid .gg-item > .gg-case-link, .gg-fly.from-grid .cov) .gg-case {
    border-radius: 2px 4px 4px 2px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  }
  html body.games-page .gg-grid .gg-item .gg-case > .gg-art {
    -webkit-mask-image: none;
    mask-image: none;
  }
  html body.games-page .gg-grid .gg-item .gg-case > .gg-sleeve {
    display: none;
  }
  html body.games-page :is(.gg-grid .gg-item > .gg-case-link, .gg-fly.from-grid .cov) .gg-case::before {
    left: 1px;
    width: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(0,0,0,.12));
  }
  html body.games-page :is(.gg-grid .gg-item > .gg-case-link, .gg-fly.from-grid .cov) .gg-case::after {
    background: linear-gradient(135deg, rgba(255,255,255,.07), transparent 38%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset -1px 0 rgba(0,0,0,.22);
  }
  html body.games-page .gg-grid .gg-case .gg-plabel { display: none; }
  html body.games-page .gg-grid .gg-item .gg-case .gg-tags {
    bottom: 4%;
    left: 7%;
    right: 5%;
  }
  html body.games-page .gg-grid .gg-case .gg-rbox { gap: 3px; padding: 3px 4px; border-width: 1px; }
  html body.games-page .gg-grid .gg-case .gg-rbox .n { font-size: 20px; }
  html body.games-page .gg-grid .gg-case .gg-rbox .g { font-size: 8px; }
  html body.games-page .gg-grid .gg-case .gg-yr { display: none; }
  html body.games-page .gg-shelf-edge {
    grid-area: price;
    align-self: end;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: flex-start;
  }
  html body.games-page .gg-shelf-edge::before,
  html body.games-page .gg-shelf-edge::after { content: none; }
  html body.games-page .gg-shelf-edge .gg-plabel {
    max-width: 100%;
    border-color: var(--gg-store-ticket-mobile-rule);
    background: var(--gg-store-ticket-mobile);
    box-shadow: 0 1px 0 rgba(255,255,255,.65) inset, 0 1px 2px rgba(80,67,51,.1);
  }
  html body.games-page .gg-shelf-edge .gg-plabel .pr { padding: 4px; }
  html body.games-page .gg-shelf-edge .gg-plabel .pr b { font-size: 16px; }
  html body.games-page .gg-shelf-edge .gg-plabel .pr s { font-size: 9px; }
  html body.games-page .gg-shelf-edge .gg-plabel .was { gap: 2px; }
  html body.games-page .gg-shelf-edge .gg-plabel .off { font-size: 9px; padding: 2px; }
  html body.games-page .gg-shelf-edge .gg-plabel .pv { padding: 4px; font-size: 9px; }
  html body.games-page .gg-shelf-edge .gg-plabel .pv small { font-size: 8px; }
  html body.games-page .gg-shelf-edge .gg-plabel .pv s { display: none; }
  html body.games-page .gg-grid .gg-item .gg-store-card {
    display: contents;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card::before { content: none; }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-tagline {
    grid-area: title;
    display: grid;
    grid-template-areas: "title" "sub" "chips";
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-self: start;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-title {
    grid-area: title;
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    -webkit-line-clamp: 3;
  }
  html body.games-page .gg-store-card .gg-title a { color: inherit; text-decoration: none; }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-sub {
    grid-area: sub;
    margin: 0;
    min-height: 0;
    font-size: 11px;
    align-self: center;
    flex-wrap: wrap;
    gap: 2px 6px;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-mobile-count {
    display: inline;
    font-size: 10px;
    white-space: nowrap;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-chips {
    grid-area: chips;
    margin: 0;
    padding: 0 !important;
    min-height: 26px;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .game-tag {
    min-height: 24px;
    font-size: 11px !important;
    padding: 2px 6px;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-grades-k {
    display: none;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-grades-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    margin: 4px 0 0;
    padding: 4px 0;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-grade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    min-height: 18px;
    border-left: 0;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-grade .k { font-size: 11px; }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-pscore { font-size: 17px; }
  html body.games-page .gg-grid .gg-item .gg-store-card .gg-pscore { justify-items: end; gap: 2px; }
  html body.games-page .gg-grid .gg-item .gg-store-card .community-attrs {
    margin: 0;
    min-height: 42px;
  }
  html body.games-page .gg-grid .gg-item .gg-store-card > .gg-card-actions {
    padding: 6px 0 0;
  }
}
@media (max-width: 374px) {
  html body.games-page .gg-phead-row .gg-phead h1 { font-size: 28px !important; }
  html body.games-page .gg-phead-row .gg-filter-btn {
    font-size: 12px;
    padding-inline: 10px;
    gap: 6px;
  }
}

html:root body.games-page .gg-shelf-edge .gg-plabel :is(s, .pv small) { color: var(--gg-store-ticket-muted); }
html:root body.games-page .gg-shelf-edge .gg-plabel.sale .pr b { color: var(--gg-store-sale); }
html:root body.games-page .gg-shelf-edge .gg-plabel {
  box-shadow: inset 0 1px rgba(255,255,255,.45), 0 2px 4px rgba(0,0,0,.18);
}
/* Short phones still show one complete card above the navigation. Taller
   phones can devote the extra space to a larger portrait. */
@media (max-width: 600px) and (max-height: 700px) {
  html body.games-page .grid.gg-grid > .card.gg-item {
    grid-template-columns: clamp(112px, 44vw, 156px) minmax(0, 1fr);
  }
}
html:root body.games-page .games-back-top {
  background: #242428;
  border-color: #424248;
}
html:root body.games-page .games-back-top:hover { background: #303035; }
@media (min-width: 601px) {
  html:root body.games-page .games-shelf {
    box-shadow: inset 6px 0 #29292d, inset -6px 0 #29292d, 0 20px 50px -30px #000;
  }
  html:root body.games-page .games-shelf > .gg-grid {
    --gg-shelf-front: linear-gradient(to bottom,
      transparent 0 var(--gg-shelf-case-height, 375px),
      #68686f var(--gg-shelf-case-height, 375px),
      #414147 calc(var(--gg-shelf-case-height, 375px) + 2px),
      #303035 calc(var(--gg-shelf-case-height, 375px) + 9px),
      #8d8d94 calc(var(--gg-shelf-case-height, 375px) + 10px),
      #595960 calc(var(--gg-shelf-case-height, 375px) + 12px),
      #38383e calc(var(--gg-shelf-case-height, 375px) + 16px),
      #242428 calc(var(--gg-shelf-case-height, 375px) + 71px),
      #44444b calc(var(--gg-shelf-case-height, 375px) + 72px),
      #161619 calc(var(--gg-shelf-case-height, 375px) + 74px),
      transparent calc(var(--gg-shelf-case-height, 375px) + 76px));
  }
  html:root body.games-page .gg-shelf-edge::before {
    background: linear-gradient(to bottom, #68686f, #414147 2px, #303035 9px,
      #8d8d94 10px, #595960 12px, #38383e 16px,
      #242428 calc(100% - 5px), #44444b calc(100% - 4px), #161619 calc(100% - 2px));
  }
  html:root body.games-page .gg-store-card {
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 6px 12px -6px rgba(0,0,0,.6);
  }
}
