/* GAME CARD: the one copy of the .game-card family (the list row, tile, compact, badge, date, go button and their states).
   Home, training, booking, the evergreen page and the design system all link it. Edit it here only.
   Moved out of templates/home.html, where it sat in four blocks; the blocks are kept in their old order. */
/* THE BASE ROW. `.game-card` IS the row a game has in a month's list. Everything else is this row plus a
   variant, and a variant only sets the tokens below (or a surface):
     --row-bg    the row's fill              --tile-bg / --tile-ink   the date square and its label
     --go-bg / --go-ink (and -hover)         the button         --badge-bg / --badge-ink   the badge
   The month panel is context, not a style: it supplies the white container and the hairlines, so a row
   inside it has no fill, border or radius of its own. Standalone tiles keep theirs. */
.game-card{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:26px;
  padding:22px 26px;border-radius:22px;
  background:var(--row-bg,var(--surface));border:1px solid var(--border);
  position:relative;overflow:hidden;box-shadow:var(--shadow-md);
  text-decoration:none;color:inherit;
  transition:background 160ms var(--out),border-color 220ms var(--out),transform 220ms var(--out);
}
.game-list .game-card{--row-bg:transparent;border:0;border-radius:0}
.game-list .game-card + .game-card{border-top:1px solid var(--border)}
/* VARIANT game-card--tile: the row on its own — a deeper lavender, white date square and button, no border.
   Used by the home page's training tile and the training page's "Ready for a game?" card. */
/* In dark mode the tile takes the list's own colours (surface fill, grey date square, violet button): the
   lavender recipe below only works on the light ground, where it separates cleanly from the page. */
.game-card--tile{
  /* The zest badge (see .game-badge--solid): a .34 zest wash, laid over --surface rather than the tile's own
     lavender, because on the lavender its ink falls to ~4.0:1 and over --surface it holds ~5.1:1. */
  --badge-bg:linear-gradient(rgb(var(--zest-rgb) / .34),rgb(var(--zest-rgb) / .34)),var(--surface);--badge-ink:var(--on-zest);
}
@media(prefers-color-scheme:light){
  .game-card--tile{
    --row-bg:color-mix(in srgb,var(--lav-mid) 75%,var(--surface));
    --tile-bg:var(--surface);--tile-ink:var(--lav);
    --go-bg:var(--surface);--go-ink:var(--ink);--go-bg-hover:var(--accent);--go-ink-hover:var(--on-accent);
    border:0;
  }
}
.game-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* The hero badge's treatment, not a solid pill. A filled violet chip competed
   with the button beneath it and read louder than the game's own name — the
   badge is a footnote on the session, not a second call to action.
   --lav-light / --lav-mid rather than the hero's literal rgba, so the chip
   follows the palette into light mode instead of staying a dark-mode tint. */
.game-badge{
  display:inline-flex;align-items:center;gap:8px;
  height:30px;padding:0 14px;border-radius:999px;margin-bottom:10px;
  background:var(--lav-light);border:1px solid var(--lav-mid);
  font-family:var(--cond);font-size:var(--xs);font-weight:700;
  letter-spacing:.09em;text-transform:uppercase;color:var(--lav);
}
/* The loud variant: a solid --lav chip, no stroke.
   A zest wash with zest ink — the colour carries the signal, the fill only
   hints at a shape. This is the one form zest can take on both grounds: as a
   solid fill it is invisible on white (1.08:1) and needs the ring, but as a
   wash behind its own ink it works, provided the ink flips to the olive.
   .34 is the ceiling, not a preference: the ink is zest and the wash is zest,
   so every point of alpha closes the gap between them. 5.37:1 dark at .34,
   4.43:1 at .40. Light mode barely moves at any alpha — zest over white stays
   within ~1.03:1 of the card even when solid, which is the same reason it
   needed a ring as a fill. */
.game-badge--solid{
  background:rgb(var(--zest-rgb) / .34);
  border-color:transparent;
  color:var(--on-zest);
}
/* An outline rather than a fill: for a label that names the kind of page ("Training session"), not a fact about it. */
.game-badge--outline{background:transparent;border-color:var(--lav)}
/* Large: the row of badges under a page title (All levels, Casual, Boots needed). A step up in size, quieter fill. */
.game-badge--lg{height:auto;margin-bottom:0;padding:5px 13px;font-size:14.5px;letter-spacing:.045em;background:var(--chip);border-color:var(--border)}
/* Section: the label above a section heading (Why Playce, Built for community). Bigger, airier, with a lilac dot in place of
   the live dot. Sits on --bg or --surface; the border keeps it defined on either. */
.game-badge--section{height:auto;margin-bottom:0;gap:12px;padding:10px 22px 10px 12px;line-height:1;letter-spacing:.18em;background:var(--bg);border-color:var(--border)}
.game-badge--section .badge-dot{width:20px;height:20px;background:var(--lav-mid);box-shadow:none;animation:none}
.game-badge--section .badge-dot::after{display:none}
/* Perk: the one badge that is a gift, not a fact. A solid violet pill (--perk-fill / --perk-ink, colour-tokens.css) against the
   translucent lavender ones, so it reads as special by fill and weight, not by a new hue. The ring and the emoji's shrug run
   twice and stop: five runs read as a page asking for attention. Transform and opacity only. */
.game-badge--perk{position:relative;color:var(--perk-ink);background:var(--perk-fill);border-color:var(--perk-fill)}
.game-badge--perk::after{content:'';position:absolute;inset:-1px;border-radius:inherit;border:1px solid rgb(var(--accent-rgb) / .55);opacity:0;pointer-events:none}
.game-badge--perk .e{font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;font-size:13px;letter-spacing:0;margin-right:5px;display:inline-block;transform-origin:50% 70%}
@media(prefers-reduced-motion:no-preference){
  .game-badge--perk .e{animation:badge-shrug 3.6s var(--out) 1.1s 2 both}
  .game-badge--perk::after{animation:badge-ring 3.6s var(--out) 1.1s 2 both}
}
@keyframes badge-shrug{
  0%{transform:rotate(0deg) scale(1)}
  4%{transform:rotate(-17deg) scale(1.24)}
  9%{transform:rotate(13deg) scale(1.22)}
  13%{transform:rotate(-9deg) scale(1.14)}
  17%{transform:rotate(4deg) scale(1.06)}
  21%,100%{transform:rotate(0deg) scale(1)}
}
@keyframes badge-ring{0%{opacity:.85;transform:scale(1)}21%,100%{opacity:0;transform:scale(1.22)}}
/* The live dot inside a badge: zest, with a ring that ripples out behind it. */
.badge-dot{
  width:10px;height:10px;border-radius:50%;background:var(--zest);
  box-shadow:0 0 0 1.5px var(--zest-ring);
  position:relative;flex-shrink:0;
  animation:bdot-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}
.badge-dot::after{
  content:'';position:absolute;inset:-4px;border-radius:50%;
  background:var(--zest);opacity:0;
  animation:bdot-ring 2s cubic-bezier(0.4,0,0.6,1) infinite;
}
.game-note{margin-top:9px;font-family:var(--ui);font-size:var(--xs);color:var(--lav)}
@media(hover:hover) and (pointer:fine){
  .game-card:hover .game-go:not(.btn--outline){background:var(--go-bg-hover,var(--accent-hover));color:var(--go-ink-hover,var(--on-accent))}
    .game-card:hover .game-go-arrow{transform:translateX(3px)}
}

.game-body{flex:1 1 auto;min-width:0}
.game-name{
  font-family:var(--display);font-style:italic;font-weight:700;
  font-size:clamp(var(--lg),2vw,var(--xl));line-height:1.15;letter-spacing:-.02em;margin-bottom:9px;
}
.game-meta{display:flex;flex-wrap:wrap;gap:6px 8px;list-style:none}
.game-meta li{
  font-family:var(--mono);font-size:var(--xs);letter-spacing:.02em;color:var(--ink2);
  background:var(--surface2);padding:5px 10px;border-radius:8px;
}

/* Pinned, not sized by content: a max-content column here gets its width
   from its widest child and pushes the row past the card's content box,
   wrapping it below the body. */
.game-side{flex:0 0 auto;display:flex;align-items:center;gap:16px}
/* Same pair as every other filled button — .btn here and on the booking
   page, .site-nav-cta, .join-next: --accent at rest, --accent-hover on hover.
   This sat on --accent-hover at rest and so read as permanently pressed next
   to them.
   Note white on --accent is 3.02:1 in dark mode. That is true of all five
   buttons, not this one, and is a system-wide fix rather than a local dodge. */
.game-go:not(.btn--outline){background:var(--go-bg,var(--accent));color:var(--go-ink,var(--on-accent))}   /* the one button (buttons.css); a card only re-tones it */
.game-go-arrow{display:inline-block;transition:transform 220ms var(--out)}

.game-card .game-date{
  flex:none;width:64px;padding:10px 0 11px;border-radius:14px;background:var(--tile-bg,var(--surface2));
  text-align:center;line-height:1;
}
.game-card .game-mon{
  display:block;font-family:var(--ui);font-size:var(--xs);font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--tile-ink,var(--ink2));margin-bottom:6px;
}
.game-card .game-day{display:block;font-family:var(--display);font-size:30px;font-weight:400;color:var(--ink)}

.game-card .game-name{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;
  font-style:normal;font-weight:400;letter-spacing:-.01em;
  font-size:clamp(22px,2.4vw,28px);margin-bottom:6px;
}
.game-card .game-badge{margin:0;height:26px;padding:0 11px;font-family:var(--cond);font-size:var(--xs);letter-spacing:.12em;border:0;background:var(--badge-bg,var(--lav-light));color:var(--badge-ink,var(--lav))}
.game-line{
  display:flex;flex-wrap:wrap;align-items:center;gap:2px 0;
  font-family:var(--ui);font-size:var(--base);color:var(--ink2);
}
.game-line strong{font-weight:700;color:var(--ink)}
.game-line > * + *::before{content:'·';margin:0 10px;color:var(--ink3)}
/* A featured badge sits ABOVE the name (featured_parts() in tools/build.py), so it keeps a gap, and the loud
   one keeps its zest wash. Both lost to .game-card .game-badge above (margin:0; background:--lav-light),
   which is written for the badges that sit inline after the area name. Zest wash ink: 5.37:1 dark, 5.18:1 light. */
.game-card.game-card--featured .game-badge{display:flex;width:fit-content;margin-bottom:8px}
.game-card .game-badge--solid{background:rgb(var(--zest-rgb) / .34);--badge-ink:var(--on-zest)}   /* .game-card .game-badge sets the ink to lavender, 2.55:1 on the wash in dark; --on-zest is 5.37:1 dark, 5.18:1 light */

/* The compact (phone) row follows the width of the column it sits in, not the window, so the training page's
   narrow column gets it too. A column opts in as a `row` container (.game-group here, .sec on the training page). */
@container row (max-width:560px){
  .game-card{grid-template-columns:auto minmax(0,1fr);gap:12px 14px;padding:18px 16px}
  .game-card .game-date{width:54px;padding:9px 0 10px}
  .game-card .game-day{font-size:26px}
  .game-card .game-side{grid-column:2;justify-self:start;margin:0}
  .game-card .game-go{height:44px;padding:0 20px;font-size:var(--sm)}
  .game-line{font-size:var(--sm)}
  .game-line > * + *::before{margin:0 6px}
  .game-line-opt{display:none}   /* a wrapped line strands its separator; optional extras drop out */
}
/* ── The rest of the game card family, moved out of templates/home.html in its old order: past, soon, special, social, week groups, panels, tile. ── */
@keyframes bdot-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(0.85)}}
@keyframes bdot-ring{0%{transform:scale(0.6);opacity:.45}60%,100%{transform:scale(1.9);opacity:0}}
.game-groups{display:flex;flex-direction:column;gap:14px;list-style:none}
/* ── PAST — tools/build.py's PAST_BADGE and PAST_THANKS still compute this
   card's markup for every past session (see derive()), but write_home() has
   not rendered a past session on the home page since 2026-09-27 — see its
   UPDATE note. Kept rather than deleted: a future session might want a home
   page appearance again without reintroducing this styling from scratch.
   Muted through colour and the rail, not opacity, for whenever it is used:
   this card carries real information — the venue, the thank-you — and
   opacity would drag its contrast below AA for a decorative effect that
   isn't the point here. */
.game-card--past{background:var(--surface2)}
.game-card--past .game-go{background:var(--surface);color:var(--ink3)}
/* .game-name holds PAST_THANKS here, not the session name — the one text on
   this card sized as "large text" under WCAG (21px+, bold), so it's the one
   place the muting can go past --ink2 to --ink3 and still clear AA on
   --surface2 — 3:1 needed, ~4.1:1 (light) / ~3.5:1 (dark) measured.
   Everything else on the card (the venue chip) is body-sized text, where
   --ink3 on --surface2 drops to ~4.1:1/3.5:1 and fails the 4.5:1 body-text
   floor — --ink2 is already the muted end of what's legal there, so it
   stays. */
.game-card--past .game-name{color:var(--ink3)}
@media(hover:hover) and (pointer:fine){
  .game-card--past:hover{border-color:var(--border);transform:none}
  .game-card--past:hover .game-go{background:var(--surface)}
}
.game-badge--past{background:var(--surface);border-color:var(--border);color:var(--ink3)}
/* ── COMING SOON — announced, not on sale (no Payment Link yet; see
   SOON_BADGE in tools/build.py). Still a live link, to the page where you
   join its waitlist. The booking page's language carried over: a dashed
   outline for "not yet" rather than a colour. The pill stays the solid
   accent one: "Save your spot" is the card's only action, and a ghosted
   primary is the one thing the research says not to do. */
.game-badge--soon{background:transparent;border-style:dashed;border-color:var(--lav)}
/* ── SPECIAL EVENTS — /events/<occasion>-<year>, see SPECIAL EVENTS in
   tools/build.py. A special's card wears its own theme's palette by
   redefining this page's tokens on the card itself, so every .game-* rule
   inside it picks the themed values up with no new selectors. Stays in its
   theme in light mode too: a night card on a light page is the point.
   Graphics come from THEMES in tools/build.py and colour themselves only
   through these tokens. */
.game-card--special{isolation:isolate}
.game-card--special .game-badge{margin-right:6px}
.sp-badge{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.game-card--special .game-go{gap:9px;padding:0 12px 0 18px}
/* The venue pill's pin — OUTSIDE the pill rather than its first character,
   so the pill keeps its normal compact padding instead of stretching to
   make room for an emoji inside it. gap, not the pill's own left padding,
   is what puts space between the two. */
.game-venue{display:flex;align-items:center;gap:6px}
.game-venue-pin{font-size:var(--sm);line-height:1;flex-shrink:0}
/* ── REACTION — "want more games here", nested in a past card's own body,
   right after the venue. A row, not a tile of its own: it used to be a
   standalone tile next to the card and had to repeat the venue name to
   make sense on its own — now it can just say "here", because the card
   around it already said where. Top border stands in for the tile boundary
   that used to separate it. */
.game-reaction{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-top:16px;padding-top:16px;border-top:1px solid var(--border);
}
/* ── MONTH GROUPS — regular games, grouped by write_home() in
   tools/build.py: a month heading with a count, then one panel whose rows
   are the games, split by hairlines. Everything below is scoped to
   .game-list so a standalone card keeps the card treatment above. */
.game-groups{gap:44px}
.game-group{container:row / inline-size}
.game-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 6px 16px}
.game-group-name{font-family:var(--display);font-weight:400;font-size:clamp(var(--xl),2.6vw,var(--2xl));line-height:1.1;letter-spacing:-.01em;color:var(--ink)}
.game-group-count{font-family:var(--ui);font-size:var(--sm);font-weight:600;color:var(--ink2);white-space:nowrap}
.game-group-week-name{display:inline}
.game-group-week-range{margin-left:10px;font-family:var(--ui);font-size:var(--sm);font-weight:400;color:var(--ink2);letter-spacing:0}
.game-group-name:has(.game-group-week-name){font-size:var(--lg);line-height:1.2}
   /* a week label, a step below the game names */
.game-group-head:has(.game-group-week-name){margin:0 0 12px}
   /* a week label sits on its panel: aligned to its left edge, close below, space above */
.game-groups > .game-group:first-child{margin-top:12px}
.game-card .game-badge--weekly{--badge-bg:var(--badge-weekly-bg);--badge-ink:var(--badge-weekly-ink)}
.game-list{background:var(--surface);border:1px solid var(--border);border-radius:24px;overflow:hidden;box-shadow:var(--shadow-md)}
.game-list .game-card{box-shadow:none}
.game-list .game-card:focus-visible{outline-offset:-3px}
@media(hover:hover) and (pointer:fine){
  .game-list .game-card:hover{background:var(--chip)}
}
/* A special is a night tile in the month panel: the site's own dark violet
   (the dark theme's --surface / --surface2 / --lav, already audited) as the
   ground, with the theme's orange accent kept for the name, badge and button.
   Declared on the row so it looks the same in light and dark mode. */
.game-list .game-card--special{position:relative;border-top:1px solid var(--border);
  --surface:#1D1931;--surface2:#292442;--lav:#ABA7D9;--ink2:#A4A2B7;
  --border:rgba(167,169,219,.22);--lav-light:rgba(167,169,219,.12);--lav-mid:rgba(167,169,219,.28);
  background:radial-gradient(60% 140% at 100% 0%, rgb(var(--sp-accent-rgb) / .18), transparent 60%),var(--surface);
  box-shadow:inset 5px 0 0 var(--accent)}
.game-list .game-card--special:first-child{border-top:0}
@media(hover:hover) and (pointer:fine){
  .game-list .game-card--special:hover{background:radial-gradient(60% 140% at 100% 0%, rgb(var(--sp-accent-rgb) / .26), transparent 60%),var(--surface2)}
}
.game-list .game-card--special .game-date{background:var(--surface2)}
.game-list .game-card--special .game-mon{color:var(--accent)}
.game-list .game-card--special .game-day{color:var(--ink)}
.game-list .game-card--special .game-meta li{background:var(--surface2);color:var(--ink2)}
.game-list .game-card--special .sp-badge{background:var(--accent);color:var(--on-accent)}
/* A social session is its own tile, broken out of the month's list by
   write_home(): a light-orange wash instead of the white panel, an eyebrow over the
   name, and a frosted date tile. The orange is #EF8442 as split
   channels at low alpha: a tint over the ground, never a fill, so it does not
   darken to olive in light mode and --ink stays the text. */
.game-list + .game-list{margin-top:12px}
/* Home placement of the training tile (variant game-card--tile): under its month's heading, or above the list. */
.game-group > .game-card--tile{margin:0 0 14px}
/* When a panel (the social tile) leads the month, the training tile follows it: same 12px gap as panel to panel. */
.game-list + .game-card--tile{margin-top:12px}
.games-tile{container:row / inline-size}
.games-tile:empty{display:none}
.games-tile .game-card--tile{margin:0 0 22px}
.game-list--social{border-color:transparent;
  background:linear-gradient(rgb(var(--orange-rgb) / .22), rgb(var(--orange-rgb) / .22)),var(--surface)}
.game-list--social .game-card--social .game-date{background:color-mix(in srgb,var(--surface) 60%,transparent)}
.game-list--social .game-mon{color:var(--ink)}
.game-eyebrow{display:block;margin-bottom:6px;font-family:var(--ui);font-size:var(--xs);font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:var(--ink)}
.game-list.game-list--social .game-name,.game-list.game-list--social .game-area{font-style:italic}
@media(hover:hover) and (pointer:fine){
  .game-list--social .game-card:hover{background:rgb(var(--orange-rgb) / .10)}
}
:is(.game-list--social.game-list--social-special,.game-list .game-card--social-special){
  /* A social special: its own palette, scoped to the tile, with a value set per theme. Light: ground is a soft peach (L 92.5,
     C .025, H 54); brown accent at 80% of its ceiling. The ground is 55% of its
     ceiling: above the 20-40% grounds tier, since gamut narrows near white. Contrast on the ground: accent
     6.1:1, body 8.6:1, name 13.2:1; white on the accent 7.6:1. The date tile is a pale lime, the one zest echo. */
  --ss-ground:#2F2017;--ss-accent:#F1995D;--ss-name:#F7E8DF;--ss-body:#D3B7A6;--ss-date:#413025;
  --ss-tint:241 153 93;
  /* Dark: same hue band as the light tile (H 52-54, within the 8 degree drift limit), so one
     token keeps one hue. Ground L 26 C .028 (42% of ceiling), date L 32.5 (dE 6.6 from the
     ground), accent L 76 C .13 (80%). Contrast on the ground: accent 7.1:1, body 8.3:1,
     name 13.1:1; on the date tile accent 5.7:1. Light values are in the media query below. */
  --ink:var(--ss-name);--ink2:var(--ss-body);--ink3:var(--ss-body);--lav:var(--ss-accent);
  --surface:var(--ss-ground);--surface2:var(--ss-ground);--border:transparent;
  --accent:var(--ss-accent);--accent-hover:var(--ss-accent);--on-accent:#FFFFFF;
  background:var(--ss-ground);
  /* body's colour is computed once and inherited, so re-pointing --ink here does not reach
     text that sets no colour of its own (the name): without this it stays pale in dark mode. */
  color:var(--ss-name)}
:is(.game-list--social.game-list--social-special,.game-list .game-card--social-special) .game-date{background:var(--ss-date)}
:is(.game-list--social.game-list--social-special,.game-list .game-card--social-special) .game-mon,:is(.game-list--social.game-list--social-special,.game-list .game-card--social-special) .game-eyebrow{color:var(--ss-accent)}
:is(.game-list--social.game-list--social-special,.game-list .game-card--social-special) .game-badge{background:rgb(var(--ss-tint) / .14);color:var(--ss-accent)}
:is(.game-list--social.game-list--social-special,.game-list .game-card--social-special) .game-go:not(.btn--outline){background:var(--pill);color:var(--on-accent)}
:is(.game-list--social.game-list--social-special,.game-list .game-card--social-special) .btn--outline{box-shadow:inset 0 0 0 1.5px var(--ss-accent);color:var(--ss-accent)}
@media(prefers-color-scheme:light){
  :is(.game-list--social.game-list--social-special,.game-list .game-card--social-special){
    /* Light: soft peach ground (L 92.5, C .025, H 54), brown accent. Contrast on the ground:
       accent 6.1:1, body 8.6:1, name 13.2:1; white on the accent 7.6:1. Date tile is the zest echo. */
    --ss-ground:#F4E2D7;--ss-accent:#84411F;--ss-name:#301810;--ss-body:#5A3328;--ss-date:#FBFFE6;
    --ss-tint:132 65 31}
}
@media(hover:hover) and (pointer:fine){
  .game-list--social.game-list--social-special .game-card:hover,.game-list .game-card--social-special:hover{background:rgb(var(--ss-tint) / .08)}
  .game-list--social.game-list--social-special .game-card:hover .game-go:not(.btn--outline),.game-list .game-card--social-special:hover .game-go:not(.btn--outline){background:var(--pill-hover)}
  .game-list--social.game-list--social-special .game-card:hover .btn--outline,.game-list .game-card--social-special:hover .btn--outline{background:rgb(var(--ss-tint) / .14)}
}
.game-date--blank{visibility:hidden}
/* What differs from a weekly game's usual setup (another format or venue): coloured text in the line, not a badge. */
.game-line-diff{color:var(--note)}
   /* weight is inherited, so it matches the rest of the line */
/* The weeks layout is one connected list per week: a social is a tinted row inside the panel (the same orange wash,
   italic name and eyebrow as its old panel), not a panel of its own. */
.game-list .game-card--social:not(.game-card--social-special){--row-bg:linear-gradient(rgb(var(--orange-rgb) / .22),rgb(var(--orange-rgb) / .22)),var(--surface)}
.game-list .game-card--social:not(.game-card--social-special) .game-date{background:color-mix(in srgb,var(--surface) 60%,transparent)}
.game-list .game-card--social:not(.game-card--social-special) .game-mon{color:var(--ink)}
.game-list .game-card--social .game-name,.game-list .game-card--social .game-area{font-style:italic}
@media(hover:hover) and (pointer:fine){.game-list .game-card--social:not(.game-card--social-special):hover{background:rgb(var(--orange-rgb) / .10)}}
/* Not on sale yet: nothing to book, so the pill steps back to an outline —
   the row's badge already says why. */
@media(hover:hover) and (pointer:fine){
  .game-card:hover .btn--outline{background:var(--surface2);color:var(--ink)}
}
@media(max-width:600px){
  .game-groups{gap:36px}
  .game-list{border-radius:20px}
}
body.gm-open .game-groups{display:none}
.gm-side .game-group-head{margin:0 0 2px;padding:0 4px}
.gm-side .game-group-name{font-size:var(--lg);line-height:1.2}
.gm-side .game-group-count{font-size:var(--xs);font-weight:500}

/* ── COMPACT TILE: .game-card--compact, the list's card re-cut for a narrow column (templates/game-card-compact.html).
   The map's bottom sheet and side panel, and the booking page's "Book a different game" list. Date chip | time and
   details | the list's own .game-go button, so colour and hover are the same. ── */
/* .game-card--compact: the list's card re-cut for a narrow column (templates/game-card-compact.html).
   Date chip | time and details | the list's own .game-go button, so colour and hover are the same. */
.game-card--compact{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;
  padding:12px 14px;border:0;border-radius:22px;background:var(--surface2);transition:background 160ms var(--out);
}
.game-card--compact > *{order:0}                       /* the page's mobile rules re-order card children */
.game-card--compact .game-date{grid-column:1;display:grid;place-items:center;align-content:center;gap:5px;width:56px;height:60px;padding:0;border-radius:14px;background:var(--surface);text-align:center;line-height:1}
.game-card--compact .game-body{grid-column:2;min-width:0;line-height:1.3}
.game-card--compact .game-go{grid-column:3;height:42px;padding:0 20px;font-size:var(--sm)}
.game-card--compact .game-mon{font-family:var(--ui);font-size:var(--xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink2);margin:0}
.game-card--compact .game-day{font-family:var(--display);font-size:var(--xl);font-weight:400;line-height:1}
/* trim each line to cap height / baseline so the pair is centred by its ink, not by font metrics */
.game-card--compact .game-mon,.game-card--compact .game-day{text-box:trim-both cap alphabetic}
@supports not (text-box:trim-both cap alphabetic){.game-card--compact .game-date{padding-top:5px}}
.game-card--compact .game-tag{display:block;font-family:var(--ui);font-size:var(--xs);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--lav);margin:0 0 4px}
.game-card--compact .game-time{display:block;font-family:var(--ui);font-weight:700;font-size:var(--base);letter-spacing:-.005em;color:var(--ink);white-space:nowrap}
.game-card--compact .game-sub{display:flex;gap:0 6px;white-space:nowrap;margin-top:3px;font-size:var(--xs);font-weight:400;color:var(--ink2)}
.game-card--compact .game-sub > span + span::before{content:'\00b7';margin-right:6px}
@media(hover:hover) and (pointer:fine){.game-card--compact:hover{background:var(--lav-light)}}
/* size by the room the tile has (the side panel is narrow on small desktops too), not by the viewport */
@container (max-width:360px){
  .game-card--compact{gap:8px;padding:10px}
  .game-card--compact .game-date{width:48px;height:54px}
  .game-card--compact .game-go{padding:0 12px;height:40px}
  .game-card--compact .game-tag{font-size:var(--xs);letter-spacing:.04em}
  .game-card--compact .game-sub{font-size:var(--xs);gap:0 4px}
  .game-card--compact .game-sub > span + span::before{margin-right:4px}
}
