/* ==========================================================================
   Football Runner : Design System
   Brand: black header · amber accents · white content cards on soft grey
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Brand */
  --amber:        #f5c542;
  --amber-soft:   #ffd970;
  --amber-deep:   #e0a92b;
  --amber-tint:   #fdf4dc;
  --ink:          #0b0b0c;
  --ink-soft:     #17181c;
  --pitch:        #1e7b4d;
  --pitch-soft:   #2a9c63;

  /* Surfaces */
  --page:         #f2f3f6;
  --card:         #ffffff;
  --card-alt:     #fafbfc;
  --line:         #e5e7eb;
  --line-soft:    #f0f1f4;

  /* Text */
  --text:         #16181d;
  --text-muted:   #5c626d;
  --text-faint:   #8b919c;
  --on-amber:     #1a1300;

  /* Game shell */
  --stage:        #101119;
  --stage-2:      #1b1d2b;
  --stage-line:   #2c2f42;

  /* Type */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Space + shape */
  --shell:      1200px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 17, 25, .06), 0 1px 3px rgba(16, 17, 25, .04);
  --shadow:    0 4px 6px -1px rgba(16, 17, 25, .07), 0 2px 4px -2px rgba(16, 17, 25, .05);
  --shadow-md: 0 12px 20px -8px rgba(16, 17, 25, .12), 0 4px 8px -4px rgba(16, 17, 25, .06);
  --shadow-lg: 0 24px 48px -12px rgba(16, 17, 25, .18);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Links sit in the brand's warm range instead of stock browser blue, which
   read as spammy against the amber/black palette. */
a { color: #9a5a06; text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: var(--amber); color: var(--on-amber);
  padding: 12px 20px; border-radius: 0 0 12px 12px;
  font-family: var(--font); font-weight: 700;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* --- Layout ------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .01em;
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--amber); }

.brand__mark {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__mark::after {
  content: "";
  position: absolute; inset: -4px;
  background: radial-gradient(circle, rgba(245, 197, 66, .35) 0%, transparent 68%);
  z-index: -1;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }

.nav__link {
  display: block;
  padding: 11px 17px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: .96rem;
  color: #f0f1f4;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
}
.nav__link[aria-current="page"],
.nav__link.is-active {
  background: var(--amber);
  color: var(--on-amber);
}

/* Dropdown */
.nav__item { position: relative; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 11px 17px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: .96rem;
  color: #f0f1f4;
  transition: background .18s var(--ease);
}
.nav__toggle:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav__toggle svg { width: 11px; height: 11px; transition: transform .22s var(--ease); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 232px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__toggle[aria-expanded="true"] + .nav__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: .93rem;
}
.nav__menu a:hover { background: var(--amber-tint); color: var(--on-amber); text-decoration: none; }

/* Burger */
.burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  border-radius: 10px;
  color: var(--amber);
}
.burger:hover { background: rgba(255, 255, 255, .1); }
.burger svg { width: 26px; height: 26px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 1000px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 78px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 14px 20px 24px;
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link, .nav__toggle { width: 100%; text-align: left; border-radius: 12px; padding: 14px 16px; }
  .nav__toggle { justify-content: space-between; }
  .nav__menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1);
    margin: 4px 0 6px;
    display: none;
  }
  .nav__toggle[aria-expanded="true"] + .nav__menu { display: block; }
  .nav__menu a { color: #e8e9ed; }
  .nav__menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background:
    radial-gradient(circle at 85% 8%, rgba(245, 197, 66, .16), transparent 52%),
    linear-gradient(165deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: #fff;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 44px;
  padding: 60px 0 68px;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 44px; text-align: center; }
  .hero__actions, .hero__facts { justify-content: center; }
  .hero__art { max-width: 440px; margin-inline: auto; }
}

.hero__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}
.hero__title {
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 20px;
}
.hero__title span { color: var(--amber); }
.hero__lede {
  max-width: 54ch;
  margin: 0 0 30px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #b6bccb;
}
@media (max-width: 900px) { .hero__lede { margin-inline: auto; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__facts li { font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; color: #8b91a2; }
.hero__facts b {
  display: block;
  font-family: var(--font);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.hero__art {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__art svg { width: 100%; height: auto; display: block; }

/* When a hero leads the page, let the first .page card lift over it */
.hero + .shell .page:first-child { margin-top: -34px; position: relative; z-index: 2; }
@media (max-width: 720px) { .hero + .shell .page:first-child { margin-top: 14px; } }

/* ==========================================================================
   Page card : the white sheet that holds page content
   ========================================================================== */
.page {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 26px auto;
  padding: 44px 44px 48px;
  max-width: var(--shell);
  overflow: hidden;
}

/* The home page stacks several of these. Keep the seam between them tight,
   and only open the gap up before the footer. */
main > .shell:last-child > .page:last-child { margin-bottom: 54px; }

@media (max-width: 720px) {
  .page { margin: 14px auto; padding: 26px 18px 32px; border-radius: 18px; }
  main > .shell:last-child > .page:last-child { margin-bottom: 34px; }
}

/* Hero heading */
.page-title {
  font-size: clamp(1.75rem, 4.4vw, 2.85rem);
  text-align: center;
  margin-bottom: 10px;
}

.page-lede {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: .88rem;
  color: var(--text-faint);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   Signature amber pill heading
   ========================================================================== */
.pill-head {
  position: relative;
  background: linear-gradient(180deg, var(--amber-soft) 0%, var(--amber) 100%);
  color: var(--on-amber);
  border-radius: var(--radius);
  padding: 15px 28px;
  margin: 44px 0 20px;
  font-size: clamp(1.25rem, 2.6vw, 1.72rem);
  text-align: center;
  box-shadow: 0 2px 0 var(--amber-deep), var(--shadow-sm);
}
.pill-head:first-child { margin-top: 0; }

/* Left-aligned variant for tighter blocks */
.pill-head--left { text-align: left; }

/* ==========================================================================
   Prose
   ========================================================================== */
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; color: #22252c; }
.prose strong { font-weight: 650; color: var(--text); }

/* Inline links in body copy: warm and clearly underlined, so they read as
   links without the stock-blue look. */
.prose a,
.note a,
.page-lede a,
.crumbs a:hover {
  color: #8c5205;
  text-decoration: underline;
  text-decoration-color: rgba(224, 169, 43, .8);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.prose a:hover,
.note a:hover,
.page-lede a:hover {
  color: var(--on-amber);
  background: var(--amber-tint);
  text-decoration-color: var(--amber-deep);
  border-radius: 4px;
}

/* Sub-headings inside prose wear a smaller version of the amber pill, so the
   hierarchy is obvious and nothing reads as stray bold text. */
.prose h3 {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  margin-top: 1.9em;
  background: linear-gradient(180deg, var(--amber-soft) 0%, var(--amber) 100%);
  color: var(--on-amber);
  border-radius: var(--radius);
  padding: 11px 20px;
  box-shadow: 0 2px 0 var(--amber-deep), var(--shadow-sm);
}
.prose h3 + * { margin-top: 1em; }

.prose h4 {
  font-size: 1.02rem;
  margin-top: 1.6em;
  color: #2f2708;
}

.prose ul, .prose ol {
  margin: 0;
  padding-left: 1.35em;
  display: grid;
  gap: .5em;
}
.prose li { color: #22252c; }
.prose li::marker { color: var(--amber-deep); font-weight: 700; }

.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  background: var(--amber-tint);
  border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0;
  color: #3a3320;
  font-size: 1.02rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .97rem;
}
.prose table th,
.prose table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.prose table th {
  background: var(--card-alt);
  font-family: var(--font);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), color .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: var(--on-amber);
  box-shadow: 0 2px 0 var(--amber-deep), var(--shadow);
}
.btn--primary:hover { box-shadow: 0 4px 0 var(--amber-deep), var(--shadow-md); color: var(--on-amber); }

.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--dark:hover { background: var(--ink-soft); color: #fff; box-shadow: var(--shadow-md); }

/* Ghost buttons only ever sit on dark bands (hero, CTA, game stage),
   so their text and outline are light for clear contrast. */
.btn--ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

/* ==========================================================================
   Game stage : dark shell that wraps every playable canvas
   ========================================================================== */
.stage {
  position: relative;
  background: linear-gradient(165deg, var(--stage-2) 0%, var(--stage) 100%);
  border: 1px solid var(--stage-line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 8px;
}

/* Toolbar above the canvas */
.stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--stage-line);
  background: rgba(0, 0, 0, .28);
  flex-wrap: wrap;
}

.stage__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber);
}
.stage__title svg { width: 17px; height: 17px; }

/* HUD chips (score / best / lives) */
.hud { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--font);
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #a8adbd;
  white-space: nowrap;
}
.chip b {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.chip--amber b { color: var(--amber); }
.chip--green b { color: #4ade80; }

/* Icon buttons */
.stage__tools { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  color: #d5d8e2;
  transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.icon-btn:hover { background: var(--amber); border-color: var(--amber); color: var(--on-amber); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.icon-btn .is-off { display: none; }
.icon-btn.muted .is-on  { display: none; }
.icon-btn.muted .is-off { display: block; }

/* Canvas holder: keeps a fixed aspect so layout never jumps */
.stage__view {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0b10;
}
.stage__view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

@media (max-width: 620px) {
  .stage__view { aspect-ratio: 4 / 5; }
  .stage__bar { padding: 10px; }
  .chip { padding: 5px 10px; font-size: .7rem; }
}

/* Overlay: menu / paused / game-over screens */
.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(12, 13, 20, .82) 0%, rgba(8, 9, 14, .95) 100%);
  backdrop-filter: blur(3px);
  z-index: 5;
}
.overlay[hidden] { display: none; }

.overlay__kicker {
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
}
.overlay__title {
  font-family: var(--font);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.overlay__text {
  max-width: 44ch;
  margin-inline: auto;
  color: #b3b8c6;
  font-size: .98rem;
  line-height: 1.6;
}
.overlay__stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.overlay .btn-row { margin-top: 6px; }

/* Keyboard / control hint strip under the stage */
.controls-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 0 34px;
  padding: 13px 18px;
  background: var(--card-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .9rem;
  color: var(--text-muted);
}
.controls-hint span { display: inline-flex; align-items: center; gap: 7px; }

kbd {
  display: inline-block;
  min-width: 26px;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

/* ==========================================================================
   Game grid : the hub that turns this into a multi-game portal
   ========================================================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Four-card sets (the guides index) sit on one row instead of leaving a lone
   card stranded on a second. Steps straight to two columns so no width ever
   produces a 3 + 1 orphan. */
.game-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .game-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .game-grid--four { grid-template-columns: 1fr; } }

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
}

/* Art panel: inline SVG scene, no image files to load */
.game-card__art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(165deg, var(--stage-2), var(--stage));
  overflow: hidden;
}
.game-card__art svg { width: 100%; height: 100%; }

.game-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--on-amber);
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
}
.game-card__badge--new   { background: #4ade80; color: #04240f; }
.game-card__badge--hot   { background: #fb7185; color: #3d0713; }

.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.game-card__title {
  font-size: 1.16rem;
  margin-bottom: 7px;
}
.game-card__title a { color: inherit; }
.game-card__title a:hover { color: var(--amber-deep); text-decoration: none; }

.game-card__text {
  margin: 0 0 16px;
  font-size: .95rem;
  color: var(--text-muted);
  flex: 1;
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.tag {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--amber-tint);
  border: 1px solid #f3e4b8;
  font-family: var(--font);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7a5f10;
}
.tag--grey { background: var(--card-alt); border-color: var(--line); color: var(--text-muted); }

/* Make the whole card clickable while keeping the real link accessible */
.game-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ==========================================================================
   Feature / stat strips
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 24px 22px;
  background: var(--card-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.feature:hover { border-color: var(--amber); transform: translateY(-3px); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 15px;
  border-radius: 13px;
  background: linear-gradient(160deg, var(--amber-soft), var(--amber));
  color: var(--on-amber);
  box-shadow: 0 2px 0 var(--amber-deep);
}
.feature__icon svg { width: 23px; height: 23px; }

.feature__title { font-size: 1.05rem; margin-bottom: 7px; }
.feature__text { margin: 0; font-size: .94rem; color: var(--text-muted); }

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 26px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  list-style: none;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: .84rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #9aa0b0;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.faq__item + .faq__item { border-top: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 22px;
  background: var(--card-alt);
  border: 0;
  text-align: left;
  font-family: var(--font);
  font-weight: 650;
  font-size: 1.01rem;
  color: var(--text);
  transition: background .16s var(--ease);
}
.faq__q:hover { background: var(--amber-tint); }
/* Only the label flexes. Scoping this to the first child matters: a bare
   `.faq__q span` also caught .faq__sign, which split the row 50/50 and left
   the icon floating mid-row instead of sitting at the right edge. */
.faq__q > span:first-child { flex: 1; }

/* Clean, lightweight plus that eases to a minus when open.
   No heavy filled box, thin strokes in pure black, pinned to the right edge.
   The +/- rotation carries the open state, so the colour never changes. */
.faq__sign {
  position: relative;
  flex: 0 0 20px;
  margin-left: auto;
  width: 20px; height: 20px;
  color: var(--ink);
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .26s var(--ease);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: translate(-50%, -50%) rotate(0); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease);
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  margin: 0;
  padding: 4px 22px 22px;
  color: var(--text-muted);
  font-size: .98rem;
}

/* ==========================================================================
   Callout / CTA band
   ========================================================================== */
.cta {
  position: relative;
  margin-top: 48px;
  padding: 40px 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 197, 66, .18), transparent 55%),
    linear-gradient(160deg, var(--ink-soft), var(--ink));
  text-align: center;
  overflow: hidden;
}
.cta h2 { color: #fff; font-size: clamp(1.35rem, 3.4vw, 1.95rem); margin-bottom: 12px; }
.cta p { max-width: 60ch; margin: 0 auto 24px; color: #a9aeba; }

/* Inline note box */
.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--amber-tint);
  border: 1px solid #f3e4b8;
  border-radius: var(--radius);
  font-size: .96rem;
  color: #4a3d14;
}
.note svg { width: 21px; height: 21px; flex-shrink: 0; margin-top: 2px; color: var(--amber-deep); }
.note p { margin: 0; }
.note strong { color: #2f2708; }

/* Contact form */
.form { margin: 22px 0 8px; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__row { margin-bottom: 18px; }
.form__grid .form__row { margin-bottom: 0; }
.form__label {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  margin-bottom: 7px;
}
.form__opt { font-family: var(--font-body); font-weight: 400; color: var(--text-faint); }
.form__control {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.form__control::placeholder { color: var(--text-faint); }
.form__control:focus {
  outline: none;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, .28);
}
textarea.form__control { resize: vertical; min-height: 120px; }
@media (max-width: 560px) {
  .form__grid { grid-template-columns: 1fr; gap: 18px; }
  .form__grid .form__row { margin-bottom: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 52px 0 28px;
  font-size: .94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px 32px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-about p { margin: 16px 0 0; max-width: 44ch; line-height: 1.65; }

/* Now that the links are pure white too, weight is the only thing separating a
   column heading from the list under it, so these run at the heaviest Poppins
   weight we load (800), matching the wordmark. */
.footer-col h3 {
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #fff; }
.footer-col a:hover { color: var(--amber); text-decoration: none; }

/* The footer wordmark is an <a> inside .footer-col, so `.footer-col a` outranks
   .brand's amber. Stating white here makes that deliberate instead of accidental. */
.footer-about .brand { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .heart { color: #fb7185; }

/* ==========================================================================
   Quiz panel (DOM-based game inside the stage)
   ========================================================================== */
.stage__view--quiz {
  aspect-ratio: auto;
  min-height: 480px;
  display: block;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 38px);
}

.quiz-kicker {
  margin: 0 0 8px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}

.quiz-headline {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.2;
  color: #fff;
}

.quiz-sub {
  margin: 0 auto 22px;
  max-width: 52ch;
  color: #a9b0c0;
  font-size: .96rem;
  line-height: 1.65;
}

.quiz-menu, .quiz-result {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(10px, 3vw, 30px) 0;
}

.quiz-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.quiz-facts span {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--stage-line);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: .84rem;
  color: #b6bccb;
}
.quiz-facts b { color: var(--amber); font-size: 1rem; }

/* --- Playing ------------------------------------------------------------ */
.quiz-play { max-width: 720px; margin: 0 auto; }

.quiz-timer {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  margin-bottom: 20px;
}
.quiz-timer__bar {
  height: 100%;
  background: #4ade80;
  border-radius: 99px;
  transition: width .1s linear, background-color .3s ease;
}
.quiz-timer__bar.is-low { background: var(--amber); }
.quiz-timer__bar.is-critical { background: #fb7185; }

.quiz-progress {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7b8496;
}

.quiz-question {
  margin: 0 0 22px;
  font-family: var(--font);
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  line-height: 1.35;
  color: #fff;
}

.quiz-options { display: grid; gap: 10px; }
@media (min-width: 700px) {
  .quiz-options { grid-template-columns: 1fr 1fr; }
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid var(--stage-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: #e6e9f0;
  font: inherit;
  font-size: .96rem;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--amber);
  background: rgba(245, 197, 66, .1);
  transform: translateY(-1px);
}
.quiz-option:disabled { cursor: default; }

.quiz-option__key {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
  font-weight: 800;
  font-size: .84rem;
  color: var(--amber);
}
.quiz-option__text { flex: 1; }

.quiz-option.is-correct {
  border-color: #4ade80;
  background: rgba(74, 222, 128, .16);
  color: #fff;
}
.quiz-option.is-correct .quiz-option__key { background: #4ade80; color: #06301a; }

.quiz-option.is-wrong {
  border-color: #fb7185;
  background: rgba(251, 113, 133, .14);
}
.quiz-option.is-wrong .quiz-option__key { background: #fb7185; color: #3d0713; }

/* --- Feedback ----------------------------------------------------------- */
.quiz-feedback {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  border-left: 4px solid var(--stage-line);
  background: rgba(255, 255, 255, .05);
  text-align: left;
}
.quiz-feedback.is-ok { border-left-color: #4ade80; background: rgba(74, 222, 128, .09); }
.quiz-feedback.is-no { border-left-color: #fb7185; background: rgba(251, 113, 133, .08); }

.quiz-feedback__head {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
}
.quiz-feedback__body {
  margin: 0 0 14px;
  color: #a9b0c0;
  font-size: .92rem;
  line-height: 1.6;
}

/* --- Results / review --------------------------------------------------- */
.quiz-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: var(--on-amber);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.quiz-review {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  text-align: left;
}
.quiz-review__row {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border-left: 3px solid var(--stage-line);
}
.quiz-review__row.is-ok { border-left-color: #4ade80; }
.quiz-review__row.is-no { border-left-color: #fb7185; }

.quiz-review__n {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  font-size: .78rem;
  font-weight: 800;
  color: #9aa2b3;
}
.quiz-review__q { margin: 0 0 4px; font-weight: 700; color: #eceff5; font-size: .93rem; line-height: 1.45; }
.quiz-review__a { margin: 0 0 4px; font-size: .88rem; color: #b6bccb; }
.quiz-review__a b { color: #4ade80; }
.quiz-review__e { margin: 0; font-size: .86rem; color: #838b9c; line-height: 1.55; font-style: italic; }

/* ==========================================================================
   Motion / print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .stage, .controls-hint, .cta { display: none !important; }
  .page { box-shadow: none; margin: 0; padding: 0; }
}
