/* ==========================================================================
   MGE Digital — design system
   Single stylesheet. Mobile-first. Breakpoints: 480 / 768 / 1024 / 1440.
   No external fonts, no CDN assets, no third-party code.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces — deep blue-graphite */
  --c-bg:            #0E1621;
  --c-surface:       #16212F;
  --c-surface-2:     #1D2937;
  --c-surface-3:     #24313F;
  --c-border:        #2A3A4E;
  --c-border-strong: #3A4E66;

  /* Text — contrast checked against --c-bg and --c-surface
     #E8EDF3 on #0E1621 = 15.4:1 | #A9B6C6 on #0E1621 = 8.8:1 (both AA/AAA) */
  --c-text:          #E8EDF3;
  --c-text-muted:    #A9B6C6;
  --c-text-inverse:  #0E1621;

  /* Cool accent — #2E9BE6 on #0E1621 = 6.0:1 */
  --c-accent:        #2E9BE6;
  --c-accent-hover:  #57B2EE;
  --c-accent-press:  #1F82C6;
  --c-accent-soft:   rgba(46, 155, 230, 0.12);

  /* Muted gold — secondary accents only, never a "jackpot" treatment.
     #C9A227 on #0E1621 = 7.5:1 */
  --c-gold:          #C9A227;
  --c-gold-soft:     rgba(201, 162, 39, 0.12);

  /* Status — all AA on --c-bg */
  --c-danger:        #FF6B5E;
  --c-danger-soft:   rgba(255, 107, 94, 0.12);
  --c-success:       #4FD18B;
  --c-success-soft:  rgba(79, 209, 139, 0.12);

  --c-focus:         #FFD166;

  /* Typography — system stacks only; no font may be fetched from anywhere.
     Two voices: a transitional serif carries headings and the wordmark, the
     humanist sans carries everything you actually read. The pairing is what
     separates this from a default-sans interface without loading a byte. */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
                  "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas,
               "Liberation Mono", monospace;

  --fs-sm:   0.8rem;      /* 12.8px */
  --fs-base: 1rem;        /* 16px   */
  --fs-md:   1.25rem;     /* 20px   — h3 */
  --fs-lg:   1.5625rem;   /* 25px   — h2 */
  --fs-xl:   1.953rem;    /* 31.25px — h1 */

  --lh-tight: 1.2;
  --lh-snug:  1.4;
  --lh-base:  1.6;

  /* Spacing — 8px vertical rhythm */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  32px;
  --sp-6:  48px;
  --sp-7:  64px;
  --sp-8:  96px;

  /* Layout */
  --container: 1200px;
  --gutter: var(--sp-3);
  --grid-cols: 12;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 12px 32px -12px rgba(0, 0, 0, 0.7);

  /* A hairline that fades at both ends reads as drawn rather than as a border. */
  --rule: linear-gradient(90deg, transparent, var(--c-border-strong) 12%,
                          var(--c-border-strong) 88%, transparent);

  --header-h: 64px;
  --transition: 160ms ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-3));
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--c-bg);
  /* Two very wide, very low-opacity pools of light keep a long dark page from
     reading as a flat slab. Fixed, so they behave like a room rather than
     scrolling wallpaper. */
  background-image:
    radial-gradient(60rem 40rem at 12% -10%, rgba(46, 155, 230, 0.10), transparent 70%),
    radial-gradient(48rem 34rem at 92% 4%, rgba(201, 162, 39, 0.05), transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain. Barely there — it exists to break up the flat fills, not to be seen.
   Inline SVG turbulence, so nothing is fetched. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

/* `address` is included deliberately: unlike `p`, it has no default margin in
   any browser, so without this it sits flush against whatever follows it. */
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote, table, address {
  margin: 0 0 var(--sp-3);
}

h1, h2, h3, h4 {
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* The serif carries the two loudest levels. Large serif type wants tighter
   tracking and a shorter leading than the sans does. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

h1 {
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, var(--fs-xl));
  margin-bottom: var(--sp-4);
}
h2 { font-size: var(--fs-lg); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
h3 {
  font-size: var(--fs-md);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.005em;
}
h4 { font-size: var(--fs-base); margin-top: var(--sp-3); text-transform: none; }

h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }

p { max-width: 72ch; text-wrap: pretty; }

small, .text-sm { font-size: var(--fs-sm); }
.text-muted { color: var(--c-text-muted); }

ul, ol { padding-left: var(--sp-4); }
li { margin-bottom: var(--sp-1); }
li > ul, li > ol { margin-top: var(--sp-1); }

strong { font-weight: 700; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-5) 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
}

/* --------------------------------------------------------------------------
   3. Links and focus
   -------------------------------------------------------------------------- */

a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
a:hover { color: var(--c-accent-hover); }
a:active { color: var(--c-accent-press); }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: -100px;
  z-index: 200;
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-accent);
  color: var(--c-text-inverse);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top var(--transition);
}
.skip-link:focus-visible {
  top: var(--sp-2);
  color: var(--c-text-inverse);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 840px; }

/* The modifier is deliberately more specific than `.section`: the breakpoints
   below re-declare `.section` padding, and at equal specificity the later rule
   would win and silently kill every `--tight` section. */
.section { padding-block: var(--sp-6); }
.section.section--tight { padding-block: var(--sp-5); }
.section--alt { background: var(--c-surface); }

.section__head { margin-bottom: var(--sp-4); }
.section__head p { color: var(--c-text-muted); max-width: 62ch; }

/* A short accent rule above a section heading — a typographic cue that a new
   block has started, cheaper than a border across the whole width. */
.section__head h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: var(--sp-3);
  background: var(--c-accent);
  border-radius: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  gap: var(--sp-3);
}

/* Column spans collapse to full width below 768px (see media queries). */
.col-3, .col-4, .col-6, .col-8, .col-9, .col-12 { grid-column: span 12; }

.stack > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-5); }

/* Grid-based components contribute no margin of their own, so anything placed
   after one lands flush against it. Only applied when something actually
   follows, to avoid padding out the end of a section. */
.grid:not(:last-child),
.tools:not(:last-child),
.trust:not(:last-child),
.rail__grid:not(:last-child) { margin-bottom: var(--sp-5); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}

main { flex: 1 0 auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-text-inverse);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.btn--primary:hover {
  background: var(--c-accent-hover);
  color: var(--c-text-inverse);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset,
              0 8px 20px -10px rgba(46, 155, 230, 0.9);
}
.btn--primary:active { background: var(--c-accent-press); transform: none; }

.btn--secondary {
  background: transparent;
  border-color: var(--c-border-strong);
  color: var(--c-text);
}
.btn--secondary:hover { border-color: var(--c-accent); color: var(--c-accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--c-text-muted);
  padding-inline: var(--sp-3);
}
.btn--ghost:hover { color: var(--c-text); }

.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. Cards, badges, notices
   -------------------------------------------------------------------------- */

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  /* A one-pixel highlight along the top edge reads as a lit surface rather
     than a flat rectangle, and costs nothing. */
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.card--flat { background: var(--c-surface-2); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px var(--sp-2);
  border-radius: 999px;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface-2);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--accent { border-color: var(--c-accent); color: var(--c-accent-hover); background: var(--c-accent-soft); }
.badge--gold { border-color: var(--c-gold); color: var(--c-gold); background: var(--c-gold-soft); }

/* Standalone blocks carry their own vertical rhythm rather than relying on a
   neighbour to provide it. Without this they sit flush against anything with no
   margin of its own — a grid of tiles, for instance. Adjacent margins collapse,
   so existing spacing does not double up. */
.notice {
  border: 1px solid var(--c-border-strong);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--c-surface-2);
  padding: var(--sp-3);
  margin-block: var(--sp-4);
}
.notice > :last-child { margin-bottom: 0; }
.notice--info { border-left-color: var(--c-accent); }
.notice--warn { border-left-color: var(--c-gold); }
.notice--error { border-left-color: var(--c-danger); background: var(--c-danger-soft); }
.notice--legal {
  border-left-color: var(--c-gold);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* Help card — ConnexOntario / PlaySmart. Visually distinct on every page. */
.help-card {
  border: 2px solid var(--c-gold);
  border-radius: var(--radius-lg);
  background: var(--c-gold-soft);
  padding: var(--sp-4);
  margin-block: var(--sp-4);
}
.help-card h2, .help-card h3 { margin-top: 0; color: var(--c-text); }
.help-card > :last-child { margin-bottom: 0; }
/* Lighter accent keeps links above 4.5:1 on the gold-tinted card background. */
.help-card a { color: var(--c-accent-hover); }
.help-card a:hover { color: var(--c-text); }
/* Logos of the independent help services. White cards, because these marks are
   drawn in their own colours and several go dark — the card guarantees each one
   is legible without recolouring anybody's trademark. */
.help-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) 0 0;
  border-top: 1px solid rgba(201, 162, 39, 0.35);
}
/* Sized so a square emblem still gets usable height: the wordmarks are limited
   by width, the round marks by height, and a short chip starves the latter. */
.help-logos li {
  width: 120px;
  height: 58px;
  margin: 0;
}
/* The whole chip is the tap target, not just the artwork inside it. */
.help-logos li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 7px 10px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.help-logos li > a:hover,
.help-logos li > a:focus-visible {
  box-shadow: 0 0 0 2px var(--c-gold);
  transform: translateY(-1px);
}
.help-logos img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.help-card .help-phone {
  font-size: var(--fs-md);
  font-weight: 700;
  white-space: nowrap;
}

/* The help line is the most important tap on the page. Keep it comfortably
   larger than the 24px minimum wherever it appears, footer included. */
.help-phone {
  display: inline-block;
  min-height: 28px;
  padding: 4px 2px;
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. Compliance icons (19+ / RG)
   -------------------------------------------------------------------------- */

.rg-icons {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.rg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--c-text);
}
.rg-icon svg { width: 40px; height: 40px; display: block; }

a.rg-icon {
  border-radius: 50%;
  text-decoration: none;
  transition: color var(--transition);
}
a.rg-icon:hover { color: var(--c-accent-hover); }

.rg-icon--age { color: var(--c-gold); }

/* --------------------------------------------------------------------------
   8. Site header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 22, 33, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  border-image: var(--rule) 1;
}

/* Browsers without backdrop-filter get the solid ground instead of a
   translucent panel over moving content. */
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--c-bg); }
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-right: auto;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--c-text); }
.brand__mark {
  color: var(--c-accent);
  display: inline-flex;
  transition: transform var(--transition), color var(--transition);
}
.brand:hover .brand__mark { transform: rotate(-8deg); color: var(--c-accent-hover); }
.brand__mark svg { width: 28px; height: 28px; }
.brand__name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand__name span { color: var(--c-accent); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

.site-nav {
  display: none;
  flex: 1 0 100%;
  width: 100%;
  padding-bottom: var(--sp-3);
}
.site-nav.is-open { display: block; }

.site-nav__list {
  list-style: none;
  margin: 0 0 var(--sp-3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.site-nav__link {
  display: block;
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--radius);
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
}
.site-nav__link:hover { background: var(--c-surface-2); color: var(--c-text); }
.site-nav__link[aria-current="page"] {
  color: var(--c-accent);
  box-shadow: inset 3px 0 0 var(--c-accent);
}

.site-nav__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* Persistent 19+ marker in the header */
.header-age {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--c-gold);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.header-age svg { width: 32px; height: 32px; }

/* --------------------------------------------------------------------------
   9. Site footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--c-surface);
  border-top: 1px solid transparent;
  border-image: var(--rule) 1;
  margin-top: var(--sp-6);
  padding-block: var(--sp-5) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* First band of the footer — age restriction + help, no scrolling required. */
.footer-compliance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-lg);
  background: var(--c-surface-2);
  margin-bottom: var(--sp-5);
}
.footer-compliance__text { flex: 1 1 260px; margin: 0; }
.footer-compliance__text strong { color: var(--c-text); }
.footer-compliance a { font-weight: 600; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

/* Footer headings are labels, not headlines: small caps-style sans, so the
   serif voice stays reserved for the content above. */
.footer-col h2,
.footer-payments h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-3);
  color: var(--c-text);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: var(--sp-1); }
.footer-links a {
  display: inline-block;
  padding: 2px 0;
  color: var(--c-text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--c-accent-hover); text-decoration: underline; }

.footer-company address {
  font-style: normal;
  line-height: var(--lh-snug);
}
.footer-company dl { margin: 0; }
.footer-company dt {
  color: var(--c-text-muted);
  font-weight: 600;
}
.footer-company dd { margin: 0 0 var(--sp-2); color: var(--c-text); }

.footer-payments {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}
.footer-payments h2 {
  font-size: var(--fs-base);
  margin: 0 0 var(--sp-2);
  color: var(--c-text);
}
.footer-payments p { margin: var(--sp-2) 0 0; }

.footer-bottom {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.legal-placeholder {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--c-gold);
  background: var(--c-gold-soft);
  border: 1px dashed var(--c-gold);
  border-radius: var(--radius-sm);
  padding: 0 4px;
}

/* --------------------------------------------------------------------------
   10. Age gate
   -------------------------------------------------------------------------- */

.age-gate[hidden] { display: none; }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  background: rgba(6, 11, 17, 0.92);
  overflow-y: auto;
}

.age-gate__dialog {
  width: 100%;
  max-width: 520px;
  margin: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: var(--sp-4);
}

.age-gate__icons {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.age-gate__icons svg { width: 40px; height: 40px; }

.age-gate__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.age-gate__question { font-weight: 600; color: var(--c-text); }
.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
/* The location note sits below the buttons; without this it crowds them. */
.age-gate__actions + p {
  margin-top: var(--sp-3);
}
.age-gate__fine {
  margin-top: var(--sp-3);
  margin-bottom: 0;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.age-gate__denied[hidden] { display: none; }
.age-gate__denied { margin-top: var(--sp-4); }

html.age-gate-open,
html.age-gate-open body { overflow: hidden; }

/* --------------------------------------------------------------------------
   10b. Modal — the dialog a game tile opens
   -------------------------------------------------------------------------- */

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  background: rgba(6, 11, 17, 0.86);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  overflow-y: auto;
  animation: fade 180ms var(--ease-out) both;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

.modal__close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--c-text-muted);
  cursor: pointer;
}
.modal__close:hover { color: var(--c-text); }
.modal__close svg { width: 20px; height: 20px; }

.modal__eyebrow {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.modal__eyebrow:empty { display: none; }

.modal__title { margin: 0 0 var(--sp-3); font-size: var(--fs-lg); }

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.modal__actions .btn { flex: 1 1 0; }

.modal__fine {
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

html.modal-open,
html.modal-open body { overflow: hidden; }

@media (min-width: 480px) {
  .modal__actions { flex-direction: row; }
}

/* --------------------------------------------------------------------------
   11. Accordion (FAQ)
   -------------------------------------------------------------------------- */

.accordion { border-top: 1px solid var(--c-border); }

.accordion__item { border-bottom: 1px solid var(--c-border); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3) var(--sp-1);
  background: transparent;
  border: 0;
  color: var(--c-text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.accordion__trigger:hover { color: var(--c-accent-hover); }
.accordion__trigger svg {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  transition: transform var(--transition);
}
.accordion__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.accordion__panel { padding: 0 var(--sp-1) var(--sp-3); }
.accordion__panel[hidden] { display: none; }
.accordion__panel > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */

.field { margin-bottom: var(--sp-3); }

.field > label,
.fieldset__legend {
  display: block;
  margin-bottom: var(--sp-1);
  font-weight: 600;
  color: var(--c-text);
}

.field__hint {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.field__error {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-danger);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  color: var(--c-text);
  font: inherit;
}
input::placeholder, textarea::placeholder { color: #8A9AAE; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-text-muted) 50%),
                    linear-gradient(135deg, var(--c-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--sp-6);
}
select:disabled,
input:disabled {
  background: var(--c-surface);
  color: var(--c-text-muted);
  cursor: not-allowed;
}

input:hover, select:hover, textarea:hover { border-color: var(--c-accent); }

[aria-invalid="true"] { border-color: var(--c-danger) !important; }

.checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--sp-2);
  align-items: start;
  margin-bottom: var(--sp-3);
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--c-accent);
  cursor: pointer;
}
.checkbox span { line-height: var(--lh-snug); }

/* Honeypot — hidden from humans, still present for bots. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   13. Legal document pages
   -------------------------------------------------------------------------- */

.doc { max-width: 840px; }
.doc__meta {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}
.doc h2 { scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }

.toc {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
}
.toc h2 { font-size: var(--fs-base); margin: 0 0 var(--sp-2); }
.toc ol { margin: 0; padding-left: var(--sp-4); }
.toc a { color: var(--c-text); }
.toc a:hover { color: var(--c-accent-hover); }

/* --------------------------------------------------------------------------
   14. Game category tiles (static placeholders — no real game engines)
   -------------------------------------------------------------------------- */

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}
.tile__label { font-weight: 700; color: var(--c-text); }
.tile__note { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
.tile__glyph {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface-2);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   15. Tables
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td {
  border: 1px solid var(--c-border);
  padding: var(--sp-2);
  text-align: left;
  vertical-align: top;
}
th { background: var(--c-surface-2); color: var(--c-text); }

/* --------------------------------------------------------------------------
   16. Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 480px) {
  :root { --gutter: var(--sp-4); }

  .age-gate__actions { flex-direction: row; }
  .age-gate__actions .btn { flex: 1 1 0; }
  .site-nav__actions { flex-direction: row; }
  .site-nav__actions .btn { flex: 1 1 0; }
}

@media (min-width: 768px) {
  h1 { font-size: var(--fs-xl); }

  .col-3 { grid-column: span 6; }
  .col-4 { grid-column: span 6; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 12; }
  .col-9 { grid-column: span 12; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .section { padding-block: var(--sp-7); }
  .section.section--tight { padding-block: var(--sp-5); }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .site-header__bar { flex-wrap: nowrap; }

  .site-nav {
    display: flex !important;
    align-items: center;
    gap: var(--sp-4);
    flex: 0 1 auto;
    width: auto;
    padding-bottom: 0;
  }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-1);
    margin-bottom: 0;
  }
  .site-nav__link { padding: var(--sp-2) var(--sp-3); }
  .site-nav__link[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--c-accent);
  }
  .site-nav__actions { flex-direction: row; flex: 0 0 auto; }
  .site-nav__actions .btn {
    white-space: nowrap;
    padding-inline: var(--sp-3);
  }

  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }

  .footer-cols { grid-template-columns: 1.5fr 1fr 1fr 0.8fr 0.8fr; }

  .grid { gap: var(--sp-4); }
}

@media (min-width: 1440px) {
  :root { --gutter: var(--sp-5); }
  /* Section rhythm stops growing here on purpose. It used to step up to
     var(--sp-8), which stacked into ~190px of dead space between two adjacent
     sections on a wide screen. */
}

/* --------------------------------------------------------------------------
   17. Motion, print, forced colors
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  /* The load reveal must not leave anything mid-transform when motion is off.
     The fan tiles are excluded: their transform is layout, not animation. */
  .hero__copy > *,
  .hero__facts,
  .hero__art { opacity: 1 !important; transform: none !important; }
  .game-tile:hover { transform: none; }
  .game-tile:hover .game-tile__art { transform: none; }
  .btn--primary:hover { transform: none; }
  .brand:hover .brand__mark { transform: none; }
}

@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
}

@media print {
  .site-header, .site-nav, .age-gate, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   18. Registration form
   -------------------------------------------------------------------------- */

.reg-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.reg-header h1 { margin-bottom: var(--sp-1); }
.reg-header p { margin-bottom: 0; }

/* Progress indicator */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  counter-reset: step;
}
.steps__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--sp-2);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--c-border-strong);
  font-variant-numeric: tabular-nums;
}
.steps__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.steps__item.is-current {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-text);
}
.steps__item.is-current .steps__num {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-text-inverse);
}
.steps__item.is-done { color: var(--c-text); }
.steps__item.is-done .steps__num {
  border-color: var(--c-success);
  color: var(--c-success);
}

.reg-form > h2 { margin-top: 0; }

.fieldset {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.fieldset__legend { padding: 0 var(--sp-1); }
.fieldset .field:last-of-type { margin-bottom: 0; }

.grid-2, .grid-3, .dob-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.dob-group label {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}
.form-actions .btn--primary { margin-left: auto; }

/* Password strength */
.strength { margin-top: var(--sp-2); }
.strength__track {
  height: 6px;
  border-radius: 999px;
  background: var(--c-surface-3);
  overflow: hidden;
}
.strength__bar {
  height: 100%;
  width: 0;
  background: var(--c-danger);
  transition: width var(--transition), background-color var(--transition);
}
.strength[data-level="3"] .strength__bar { background: var(--c-gold); }
.strength[data-level="4"] .strength__bar,
.strength[data-level="5"] .strength__bar { background: var(--c-success); }
.strength__label {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.steps-list { padding-left: var(--sp-4); }
.steps-list li { margin-bottom: var(--sp-3); }

/* --------------------------------------------------------------------------
   19. Home page — product layout
   -------------------------------------------------------------------------- */

/* The backdrop is a photograph, so the copy needs a scrim rather than luck.
   Layer order top to bottom: horizontal scrim (heaviest under the text),
   vertical scrim (blends into the page), then the image itself. */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-6);
  background-color: var(--c-bg);
  background-image:
    linear-gradient(96deg,
      rgba(14, 22, 33, 0.96) 0%,
      rgba(14, 22, 33, 0.92) 36%,
      rgba(14, 22, 33, 0.66) 62%,
      rgba(14, 22, 33, 0.44) 100%),
    linear-gradient(180deg,
      rgba(14, 22, 33, 0.72) 0%,
      rgba(14, 22, 33, 0) 24%,
      rgba(14, 22, 33, 0) 62%,
      var(--c-bg) 100%),
    url("../img/hero/hero-backdrop-sm.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid transparent;
  border-image: var(--rule) 1;
}

/* The full-size backdrop is only worth fetching where it is actually seen. */
@media (min-width: 900px) {
  .hero {
    background-image:
      linear-gradient(96deg,
        rgba(14, 22, 33, 0.96) 0%,
        rgba(14, 22, 33, 0.92) 36%,
        rgba(14, 22, 33, 0.66) 62%,
        rgba(14, 22, 33, 0.44) 100%),
      linear-gradient(180deg,
        rgba(14, 22, 33, 0.72) 0%,
        rgba(14, 22, 33, 0) 24%,
        rgba(14, 22, 33, 0) 62%,
        var(--c-bg) 100%),
      url("../img/hero/hero-backdrop.jpg");
  }
}

.hero h1 { margin-bottom: var(--sp-3); }
.hero__lede {
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--c-text);
}

/* Copy on the left, artwork on the right, facts spanning underneath both. */
.hero__grid { display: grid; gap: var(--sp-5); }

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    column-gap: var(--sp-6);
  }
  .hero__facts { grid-column: 1 / -1; }
}

/* The fan: three covers overlapped and rotated, the middle one forward. Sizes
   and offsets are in percentages of the stage, so it scales with the column
   instead of needing a breakpoint of its own. */
.hero__art { display: none; }

@media (min-width: 1024px) {
  .hero__art {
    display: block;
    position: relative;
    height: 340px;
    animation: fade 700ms var(--ease-out) 380ms both;
  }

  /* A pool of light behind the fan, so the tiles sit in the scene. */
  .hero__art::before {
    content: "";
    position: absolute;
    inset: -12% -6%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(46, 155, 230, 0.18), transparent 72%);
    pointer-events: none;
  }

  .hero__art-tile {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border-strong);
    box-shadow: var(--shadow-2);
    background: var(--c-surface-2);
  }

  .hero__art-tile--left  { transform: translate(-112%, -42%) rotate(-9deg); z-index: 1; }
  .hero__art-tile--right { transform: translate(12%,   -42%) rotate(9deg);  z-index: 2; }
  .hero__art-tile--mid {
    width: 46%;
    transform: translate(-50%, -58%);
    z-index: 3;
    box-shadow: var(--shadow-lift), var(--shadow-2);
  }
}

@media (min-width: 1440px) {
  .hero__art { height: 380px; }
}

/* One orchestrated reveal on load. Staggered, short, and it never runs twice. */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__copy > *,
.hero__facts {
  animation: rise 620ms var(--ease-out) both;
}
.hero__copy > *:nth-child(1) { animation-delay:  40ms; }
.hero__copy > *:nth-child(2) { animation-delay: 110ms; }
.hero__copy > *:nth-child(3) { animation-delay: 180ms; }
.hero__copy > *:nth-child(4) { animation-delay: 250ms; }
.hero__facts { animation-delay: 320ms; }

.hero__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding: 0;
  list-style: none;
}
.hero__facts li {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: rgba(22, 33, 47, 0.6);
  font-size: var(--fs-sm);
  margin: 0;
}
.hero__facts strong { display: block; color: var(--c-text); }
.hero__facts span { color: var(--c-text-muted); }

/* Category chips — in-page anchors, never links to pages that do not exist. */
.chips-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(14, 22, 33, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  border-image: var(--rule) 1;
  padding-block: var(--sp-2);
}
@supports not (backdrop-filter: blur(1px)) {
  .chips-bar { background: var(--c-bg); }
}
.chips {
  display: flex;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  /* The row scrolls on narrow screens; fade the trailing edge so it is obvious
     there is more to the right without adding a scrollbar to the chrome. */
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 2rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 2rem), transparent);
}
.chips::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
  .chips { mask-image: none; -webkit-mask-image: none; }
}
.chips li { margin: 0; flex: 0 0 auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { border-color: var(--c-accent); color: var(--c-accent-hover); }
.chip svg { width: 18px; height: 18px; color: var(--c-accent); }
.chip.is-current {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-text-inverse);
}

/* Breadcrumbs */
.breadcrumbs { margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { margin: 0; color: var(--c-text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--c-border-strong); }
.breadcrumbs a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent-hover); text-decoration: underline; }

/* Payment acceptance marks. Each mark sits centred on a white card, so logos of
   any aspect ratio — a wide wordmark, a square badge — line up as one strip. */
.payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.payments li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 40px;
  margin: 0;
  padding: 6px 8px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
}
.payments img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* Game category rails */
.rail { margin-bottom: var(--sp-6); scroll-margin-top: calc(var(--header-h) * 2 + var(--sp-3)); }
.rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid transparent;
  border-image: var(--rule) 1;
}
.rail__head h2 { margin: 0; }
.rail__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
}
.rail__count { font-size: var(--fs-sm); color: var(--c-text-muted); white-space: nowrap; }
.rail__more {
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 0;
}

.rail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

/* A tile is a link, so the whole card is one target rather than a small label. */
.game-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), border-color var(--transition),
              box-shadow 220ms var(--ease-out);
}
.game-tile:hover { color: inherit; }

/* The art is clipped by the frame, so it can scale inside its own bounds on
   hover without pushing the grid around. */
.game-tile__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}

.game-tile__art {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: var(--c-surface-2);
  transition: transform 420ms var(--ease-out);
}

/* Play affordance: it appears on hover and on keyboard focus, so the tile
   reads as actionable to both. */
.game-tile__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  background: rgba(14, 22, 33, 0.45);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.game-tile__play svg {
  width: 48px;
  height: 48px;
  transform: scale(0.86);
  transition: transform 260ms var(--ease-out);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.game-tile:hover,
.game-tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-lift);
}
.game-tile:hover .game-tile__art,
.game-tile:focus-visible .game-tile__art { transform: scale(1.045); }
.game-tile:hover .game-tile__play,
.game-tile:focus-visible .game-tile__play { opacity: 1; }
.game-tile:hover .game-tile__play svg,
.game-tile:focus-visible .game-tile__play svg { transform: scale(1); }

.game-tile__body { display: block; padding: var(--sp-3); }
.game-tile__name {
  display: block;
  font-weight: 700;
  color: var(--c-text);
  line-height: var(--lh-snug);
  letter-spacing: -0.005em;
}
.game-tile__meta {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
}

/* Player control cards */
.tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.tool {
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  background: var(--c-surface);
  transition: border-left-color var(--transition), background-color var(--transition);
}
.tool:hover { border-left-color: var(--c-accent-hover); background: var(--c-surface-2); }
.tool h3 { margin-top: 0; }
.tool > :last-child { margin-bottom: 0; }

/* Trust block */
.trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  margin: 0;
}
.trust__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--c-accent);
}
.trust strong { display: block; margin-bottom: 2px; }
.trust p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }

.cta-band {
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  padding: var(--sp-5);
  text-align: left;
}
.cta-band h2 { margin-top: 0; }

@media (min-width: 480px) {
  .rail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dob-group { grid-template-columns: 1fr 1.6fr 1fr; }

  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__item { font-size: var(--fs-sm); }
}

@media (min-width: 1024px) {
  .hero { padding-block: var(--sp-7); }
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
  }
  .cta-band > div { max-width: 60ch; }
}
