/* ---------- board games: a wall of game covers behind the section, darkened so the content pops ---------- */
.games-wall {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* the section always uses the night colours, since it sits on a dark wall in both modes */
  --bg: #14171b;
  --surface: #171030;
  --ink: #f0ebff;
  --muted: #b3a8d6;
  --hair: #33285a;
  --edge: #f0ebff;
  --photo: #120c26;
  --yellow: #ffd731;
  --on-yellow: #0b0717;
  --blue: #4fa6ff;
  --on-blue: #0b0717;
  --red: #ff5b52;
  --on-red: #0b0717;
  --green: #35e08b;
  --on-green: #0b0717;
  --purple: #b977ff;
  --on-purple: #0b0717;
  color: var(--ink);
  color-scheme: dark;
  background: #14171b;
}
.gw-tiles {
  position: absolute;
  inset: -12px -112px; /* wider than the section, so rows drifting sideways (js/games-wall.js) never show an edge */
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  align-content: start;
}
.gw-tiles img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  transform: translateX(var(--gw-x, 0px));
}
.gw-tiles img.gw-alt {
  transform: translateX(calc(-1 * var(--gw-x, 0px)));
}
.games-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 23, 27, 0.82), rgba(20, 23, 27, 0.74) 45%, rgba(20, 23, 27, 0.86)),
    radial-gradient(120% 80% at 25% 50%, rgba(20, 23, 27, 0.55), transparent 70%);
}
@media (max-width: 640px) {
  /* phones: the covers stack three across */
  .gw-tiles {
    inset: -12px -64px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .games-wall::before {
    background: rgba(20, 23, 27, 0.8);
  }
}
/* by day the shade is 25% lighter, so more of the covers show; night keeps the full shade (owner, 9 November 2026) */
[data-mode="day"] .games-wall::before {
  opacity: 0.75;
}
/* board games photo row: one moving row like Video games, on phones in place of the single shelf photo */
.bg-roster {
  display: none;
}
.vg-card.bg-wide {
  width: calc(var(--h) * 1.34);
}
[data-mode="night"] .games-wall .vg-card {
  border: 1.5px solid #33285a;
  box-shadow: none;
}
[data-mode="night"] .games-wall .vg-card:hover {
  box-shadow: none;
}
@media (max-width: 640px) {
  .games-wall .gw-photo {
    display: none;
  }
  .bg-roster {
    display: flex;
    --h: 230px;
    margin-top: 30px;
  }
  .bg-roster .vg-card {
    margin: 0 7px;
  }
  .bg-roster .vg-card figcaption {
    font-size: 13px;
    padding: 3px 9px;
  }
}
/* the big bold title, like Visit us and FAQ (.big-title, css/page/02-sections.css) */
#games-h {
  --big: clamp(min(72px, 22.5vw), 19vw, 140px);
}
/* by day, black outlines keep the white text readable over the lighter wall (night has none). paint-order puts the
   stroke under the letters, so only its outer half shows: a 10px stroke reads as a 5px outline and the letters keep
   their full weight */
[data-mode="day"] #games-h,
[data-mode="day"] .games-wall .lead {
  -webkit-text-stroke: 10px #000;
  paint-order: stroke fill;
}
[data-mode="day"] .games-wall .lead {
  -webkit-text-stroke-width: 4px; /* a 2px outline: thinner text needs a thinner edge */
}

/* the 100+ unique games tile: no border (the wall's light --edge above would paint it near-white); the dark shadow
   and night glow from .tile stay */
.games-wall .stat {
  border: 0;
}

/* the kinds of games: outlined in their colour with coloured text (no fill), tipped a little either way, like the
   Unfold design's Board games (owner, 3 November 2026) */
.games-wall .chips {
  gap: 8px;
}
.games-wall .chip {
  min-height: 0;
  padding: 4px 12px;
  border: 2px solid var(--c);
  border-radius: 10px;
  background: transparent;
  color: var(--c);
  font-size: 0.875rem;
}
.games-wall .chips > :nth-child(odd) {
  transform: rotate(1.2deg);
}
.games-wall .chips > :nth-child(even) {
  transform: rotate(-1.5deg);
}
/* Browse the full game list: a red button with dark text, lifting a little on hover (its
   btn--color class keeps the night rule in css/page/01-base.css from painting it the page colour) */
.games-wall .btn {
  border-color: var(--red);
  border-radius: 12px;
  background: var(--red);
  color: var(--on-red);
  box-shadow: none;
}
.games-wall .btn:hover,
.games-wall .btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: none;
}
.games-wall .btn:active {
  transform: scale(0.96);
  box-shadow: none;
}
