/* ============================================================
   GGWhatNext — CINEMATIC redesign layer  (AAA / premium)
   Loaded AFTER styles.css + screens.css. Pure visual overrides:
   no markup class is renamed, no logic/routing touched. Deepens
   the existing twilight palette into a Steam/Riot/Epic-grade,
   dark, atmospheric, glow-lit interface. Fully reversible —
   delete this file + its <link> to restore the old look.
   Fonts: Chakra Petch (cinematic display) · Space Grotesk (UI)
          · Space Mono (data) — all already loaded.
   ============================================================ */

:root {
  /* deepen the ink, add a navy undertone */
  --bg:        #05060d;
  --bg-2:      #0a0b16;
  --surface:   #10121f;
  --surface-2: #171a2b;
  --surface-3: #1f2338;
  --border:        rgba(150,160,230,.10);
  --border-strong: rgba(160,170,235,.20);
  --text:      #f3f3fb;
  --text-dim:  #b7b9d4;
  --text-faint:#8f92b6;

  /* glass */
  --glass:      rgba(20,22,38,.62);
  --glass-hi:   rgba(255,255,255,.06);

  /* cinematic display face */
  --hero: 'Chakra Petch', 'Space Grotesk', system-ui, sans-serif;

  /* richer glow */
  --glow: 0 0 0 1px rgba(var(--a1-rgb),.35), 0 10px 50px -10px rgba(var(--a1-rgb),.55);
  --radius: 18px;
  --radius-sm: 12px;
}

/* smooth in-page scrolling (reduced-motion query below reverts it) */
html { scroll-behavior: smooth; }

/* ---------------- ATMOSPHERE ---------------- */
body {
  background:
    radial-gradient(80% 55% at 82% -12%, rgba(var(--a1-rgb),.30), transparent 62%),
    radial-gradient(65% 48% at 8% 2%, rgba(var(--a2-rgb),.20), transparent 60%),
    radial-gradient(120% 90% at 50% 120%, rgba(var(--a1-rgb),.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* grid + scanline + soft-noise field; masked so it never fights content */
.app-bg {
  background-image:
    linear-gradient(rgba(160,170,240,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,170,240,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(115% 85% at 50% -5%, #000 26%, transparent 78%);
  mask-image: radial-gradient(115% 85% at 50% -5%, #000 26%, transparent 78%);
}
.app-bg::before {
  /* faint film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .05;
  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='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.app-bg::after {
  /* top vignette bloom so the nav/hero sit in a pool of light */
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 40% at 50% -8%, rgba(var(--a1-rgb),.10), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35) 100%);
}

/* ---------------- NAV ---------------- */
.nav {
  background: linear-gradient(180deg, rgba(6,7,14,.86), rgba(6,7,14,.36));
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--a1-rgb),.55), rgba(var(--a2-rgb),.45), transparent);
  opacity: .7;
}
.brand-mark {
  box-shadow: none;
}
.brand-mark::after {
  content: none;
}
.nav-link { transition: color .16s, background .16s; }
.nav-link:hover { background: rgba(var(--a1-rgb),.10); color: var(--text); }

/* ---------------- BUTTONS (tactile, glow, sheen) ---------------- */
.btn { border-radius: 13px; position: relative; overflow: hidden;
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, background .24s ease, border-color .2s ease; }
.btn-lg { border-radius: 15px; }

.btn-primary {
  color: #060713;
  background: linear-gradient(135deg, var(--a2) 0%, var(--a1) 52%, var(--a3) 120%);
  box-shadow:
    0 12px 34px -10px rgba(var(--a1-rgb),calc(.8 * var(--glow-strength))),
    inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary::after {
  /* moving sheen sweep on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-18deg); opacity: 0; transition: opacity .1s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 48px -10px rgba(var(--a1-rgb),calc(1 * var(--glow-strength))),
    inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-primary:hover::after { opacity: 1; animation: btn-sheen .7s ease; }
@keyframes btn-sheen { from { left: -60%; } to { left: 130%; } }

.btn-ghost { background: var(--glass); border-color: var(--border-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(var(--a1-rgb),.12); border-color: rgba(var(--a1-rgb),.5);
  box-shadow: 0 10px 30px -14px rgba(var(--a1-rgb),.6); transform: translateY(-2px); }
.btn-outline:hover { box-shadow: 0 10px 30px -16px rgba(var(--a1-rgb),.6); transform: translateY(-2px); }

/* ---------------- CHIPS / TAGS ---------------- */
.chip, .tag { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.chip-a1 { box-shadow: inset 0 0 0 1px rgba(var(--a1-rgb),.12); }
.chip-a2 { box-shadow: inset 0 0 0 1px rgba(var(--a2-rgb),.12); }

/* ---------------- CARDS (glass depth) ---------------- */
.card {
  background:
    linear-gradient(180deg, var(--glass-hi), transparent 40%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ============================================================
   HERO — cinematic dashboard (matches AAA concept)
   ============================================================ */
.hero.cine { padding: 0; position: relative; overflow: hidden; }
.hero.cine .cine-wrap { position: relative; z-index: 1; padding-top: 74px; padding-bottom: 66px; }

/* full-bleed atmospheric backdrop */
.cine-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cine-bg::before {
  /* environment glow + horizon ridge */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 46% at 62% 24%, rgba(var(--a1-rgb),.30), transparent 66%),
    radial-gradient(50% 42% at 22% 30%, rgba(var(--a2-rgb),.18), transparent 66%),
    radial-gradient(80% 60% at 50% 118%, rgba(var(--a1-rgb),.20), transparent 62%),
    linear-gradient(180deg, transparent 40%, rgba(3,4,10,.55) 78%, rgba(2,2,7,.9));
}
.cine-bg::after {
  /* cinematic vignette + central light shaft */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 55% 40%, rgba(255,255,255,.05), transparent 55%),
    radial-gradient(130% 120% at 50% 30%, transparent 52%, rgba(0,0,0,.6));
}

.hero-badge {
  background: var(--glass); border-color: var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 26px -14px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  letter-spacing: .02em; text-transform: uppercase; font-size: 11.5px; font-weight: 600;
  font-family: var(--mono);
}

/* brushed-metal headline + neon accent word */
.hero h1 {
  font-family: var(--hero);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: 0;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #eceefb 46%, #c3c6ec 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.22)) drop-shadow(0 20px 46px rgba(var(--a1-rgb),.30));
}
.hero h1 .grad {
  background: linear-gradient(112deg, var(--a2), var(--a1) 52%, var(--a3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 28px rgba(var(--a1-rgb),.6));
}
.cine-title { font-size: clamp(46px, 6.4vw, 82px) !important; line-height: .9 !important; letter-spacing: -.01em; margin-top: 20px; }
.hero-sub { font-size: 16.5px; color: var(--text-dim); max-width: 30em; margin: 22px 0 26px; }

/* ---- main 3-zone row: lead | stats | floating deck ---- */
.cine-main { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(196px,.66fr) minmax(300px,.96fr);
  gap: 34px; align-items: center; }
.cine-lead .hero-cta { margin-top: 4px; }
.hero-surprise { background: transparent; border: none; color: var(--text-dim); padding: 8px 4px; font-size: 14px; font-weight: 500; gap: 8px; }
.hero-surprise:hover { color: var(--text); transform: none; box-shadow: none; }
.hero-surprise svg { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.hero-surprise:hover svg { transform: rotate(180deg); }

/* stat panel — one rounded glass card, three divided cells */
.cine-stats {
  display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px;
  border-radius: 20px; text-align: center;
  background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06);
}
.cine-stat { padding: 18px 14px; border-radius: 14px; }
.cine-stat + .cine-stat { border-top: 1px solid var(--border); }
.cine-stat-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 10px;
  border-radius: 14px; color: var(--a1); background: rgba(var(--a1-rgb),.13);
  border: 1px solid rgba(var(--a1-rgb),.28); box-shadow: inset 0 0 16px -6px rgba(var(--a1-rgb),.8); }
.cine-stat:nth-child(2) .cine-stat-ico { color: var(--a2); background: rgba(var(--a2-rgb),.13);
  border-color: rgba(var(--a2-rgb),.28); box-shadow: inset 0 0 16px -6px rgba(var(--a2-rgb),.8); }
.cine-stat .n { font-family: var(--hero); font-weight: 700; font-size: 30px; line-height: 1; }
.cine-stat .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); margin-top: 6px; }

/* floating game cards — vertical fanned stack */
.cine-deck { display: flex; flex-direction: column; gap: 14px; }
.cine-gcard { display: grid; grid-template-columns: 62px 1fr; gap: 13px; align-items: center;
  text-align: left; padding: 12px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, var(--glass-hi), transparent 40%), linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong); transform: rotate(var(--r,0deg));
  box-shadow: 0 34px 70px -34px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .2s; }
.cine-gcard.g1 { margin-left: auto; width: calc(100% + 26px); border-color: rgba(var(--a1-rgb),.35);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 46px -10px rgba(var(--a1-rgb),.55), inset 0 1px 0 rgba(255,255,255,.09); }
.cine-gcard.g2 { margin-right: 14px; }
.cine-gcard.g3 { margin-left: 22px; }
.cine-gcard:hover { transform: translateY(-3px) rotate(0deg); border-color: rgba(var(--a1-rgb),.6);
  box-shadow: 0 48px 100px -28px rgba(0,0,0,.95), 0 0 62px -8px rgba(var(--a1-rgb),.6); z-index: 4; }
.cine-gcard-art { display: block; width: 62px; aspect-ratio: 2/3; border-radius: 11px; overflow: hidden; position: relative;
  border: 1px solid var(--border); background: linear-gradient(140deg, rgba(var(--a1-rgb),.4), rgba(var(--a2-rgb),.3)); }
.cine-gcard-body { min-width: 0; }
.cine-gcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cine-gcard-name { font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cine-match { flex: none; font-family: var(--mono); font-weight: 700; font-size: 10.5px; color: #060713;
  background: linear-gradient(135deg, var(--a2), var(--a1)); padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(var(--a2-rgb),.8); }
.cine-gcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; align-items: center; }

/* ---- welcome + saved band ---- */
.cine-band { display: grid; grid-template-columns: minmax(240px,.82fr) 1.7fr; gap: 22px; margin-top: 44px; align-items: stretch; }
.cine-welcome { padding: 20px 22px; display: flex; flex-direction: column; gap: 11px; }
.cine-welcome-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a2); }
.cine-welcome-when { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.cine-welcome-copy { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); margin: 0; }
.cine-replay { margin-top: auto; justify-content: center; }
.cine-saved { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cine-saved-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cine-saved-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.cine-saved-title svg { color: var(--amber); }
.cine-seeall { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.cine-rail { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cine-rail-card { flex: 0 0 auto; width: 112px; display: flex; flex-direction: column; gap: 8px;
  padding: 0; background: none; border: none; text-align: left; cursor: pointer; }
.cine-rail-art { display: block; width: 112px; aspect-ratio: 2/3; border-radius: 13px; overflow: hidden; position: relative;
  border: 1px solid var(--border); background: linear-gradient(140deg, rgba(var(--a1-rgb),.4), rgba(var(--a2-rgb),.3));
  transition: transform .16s, border-color .16s, box-shadow .28s; }
.cine-rail-card:hover .cine-rail-art { transform: translateY(-4px); border-color: rgba(var(--a1-rgb),.55);
  box-shadow: 0 20px 42px -22px rgba(var(--a1-rgb),.7); }
.cine-rail-name { font-size: 12.5px; font-weight: 600; color: var(--text-dim); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cine-rail-card:hover .cine-rail-name { color: var(--text); }

@keyframes cfloat { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-9px) rotate(var(--r,0deg)); } }

/* ---- responsive ---- */
@media (max-width: 1040px) {
  .cine-main { grid-template-columns: 1fr 1fr; }
  .cine-lead { grid-column: 1 / -1; }
  .cine-deck { order: 3; }
  .cine-gcard.g1, .cine-gcard.g2, .cine-gcard.g3 { margin: 0; width: 100%; }
  .cine-band { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero.cine .cine-wrap { padding-top: 44px; padding-bottom: 48px; }
  .cine-main { grid-template-columns: 1fr; }
  .cine-stat { padding: 15px 12px; }
  .cine-title { font-size: clamp(40px, 12vw, 60px) !important; }
}

/* ============================================================
   SECTIONS · STEPS
   ============================================================ */
.section-head h2, .results-head h1 {
  font-family: var(--hero); text-transform: uppercase; letter-spacing: .01em;
  font-weight: 700;
}
.kicker { color: var(--a2); text-shadow: 0 0 20px rgba(var(--a2-rgb),.4); }

.step {
  background:
    linear-gradient(180deg, var(--glass-hi), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform .18s, border-color .18s, box-shadow .28s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(var(--a1-rgb),.4);
  box-shadow: 0 30px 66px -34px rgba(var(--a1-rgb),.55); }
.step-ico { box-shadow: inset 0 0 18px -8px rgba(var(--a1-rgb),.8); }

/* ============================================================
   RESULTS · BEST MATCH · ALT CARDS
   ============================================================ */
.best {
  border: 1px solid rgba(var(--a1-rgb),.4);
  box-shadow: 0 40px 100px -46px rgba(var(--a1-rgb),calc(.9 * var(--glow-strength))),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.best::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(var(--a1-rgb),.18);
}
.best-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(5,6,13,.5));
}
.gcard {
  background:
    linear-gradient(180deg, var(--glass-hi), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
}
.gcard-score { color: var(--a2); text-shadow: 0 0 16px rgba(var(--a2-rgb),.5); }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  background:
    linear-gradient(180deg, var(--glass-hi), transparent 30%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong);
  box-shadow: 0 60px 150px -30px #000, 0 0 0 1px rgba(var(--a1-rgb),.12),
    0 0 90px -20px rgba(var(--a1-rgb),.4);
}
.modal-headline h2 { font-family: var(--hero); text-transform: uppercase; letter-spacing: .01em; }

/* ============================================================
   WIZARD
   ============================================================ */
.opt { background: var(--glass); transition: border-color .16s, background .16s, transform .14s, box-shadow .24s; }
.opt:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -28px rgba(var(--a1-rgb),.5); }
.opt.sel { box-shadow: inset 0 0 0 1px rgba(var(--a1-rgb),.5), 0 18px 44px -26px rgba(var(--a1-rgb),.7); }
.progress-fill { box-shadow: 0 0 20px rgba(var(--a1-rgb),.75); }
.wz-q { font-family: var(--hero); text-transform: uppercase; letter-spacing: .01em; }

/* ============================================================
   RESUME / SAVED
   ============================================================ */
.saved-art, .night-card { transition: transform .16s, border-color .16s, box-shadow .28s; }

/* ============================================================
   MOTION — load-in + scroll reveals (progressive enhancement)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* hero elements rise in on load */
  .hero-badge, .hero h1, .hero-sub, .hero-cta, .hero > .container .hero-grid > div > div[style],
  .hero-stats, .preview-deck {
    animation: heroIn .7s cubic-bezier(.2,.8,.2,1) both;
  }
  .hero h1 { animation-delay: .06s; }
  .hero-sub { animation-delay: .12s; }
  .hero-cta { animation-delay: .18s; }
  .hero-stats { animation-delay: .26s; }
  .preview-deck { animation-delay: .2s; animation-name: deckIn; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes deckIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
}

/* ============================================================
   FORCED COLORS / REDUCED MOTION safeguards
   ============================================================ */
@media (forced-colors: active) {
  .hero h1, .hero h1 .grad { -webkit-text-fill-color: CanvasText; color: CanvasText; filter: none; }
  .section-head h2, .results-head h1, .modal-headline h2, .wz-q { color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary::after { display: none; }
  .hero-badge, .hero h1, .hero-sub, .hero-cta, .hero-stats, .preview-deck {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .cine-gcard { animation: none !important; transform: rotate(var(--r,0deg)) !important; }
  .cine-gcard-art::before { animation: none !important; opacity: 0 !important; }
  .cine-orb, .cine-stats-live::before { animation: none !important; }
}

/* ============================================================
   HERO ENRICHMENT (depth pass) — additive overrides only.
   Ambient drifting orbs · live "engine" HUD stat panel ·
   poster-forward floating deck. Nothing renamed or removed.
   ============================================================ */

/* --- ambient drifting glow orbs behind the hero --- */
.cine-orb { position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(52px); opacity: .5; mix-blend-mode: screen; will-change: transform; }
.cine-orb-1 { width: 360px; height: 360px; left: 47%; top: 0%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--a1-rgb),.55), transparent 68%);
  animation: cine-orb-drift 20s ease-in-out infinite; }
.cine-orb-2 { width: 300px; height: 300px; left: 9%; top: 24%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--a2-rgb),.42), transparent 68%);
  animation: cine-orb-drift 27s ease-in-out infinite reverse; }
.cine-orb-3 { width: 240px; height: 240px; right: 3%; top: 38%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--a1-rgb),.38), transparent 70%);
  animation: cine-orb-drift 33s ease-in-out infinite; }
@keyframes cine-orb-drift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  33%     { transform: translate3d(30px,-26px,0) scale(1.07); }
  66%     { transform: translate3d(-24px,20px,0) scale(.95); }
}

/* --- stat panel → live "engine" HUD --- */
.cine-stats { position: relative; padding: 0 8px 8px;
  background:
    radial-gradient(120% 62% at 50% 0%, rgba(var(--a2-rgb),.09), transparent 60%),
    linear-gradient(180deg, var(--glass-hi), transparent 40%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2)); }
/* HUD corner brackets */
.cine-stats::before, .cine-stats::after { content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid rgba(var(--a2-rgb),.45); pointer-events: none; }
.cine-stats::before { top: 9px; left: 9px; border-right: 0; border-bottom: 0; border-radius: 7px 0 0 0; }
.cine-stats::after  { bottom: 9px; right: 9px; border-left: 0; border-top: 0; border-radius: 0 0 7px 0; }
.cine-stats-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 10px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint); }
.cine-stats-live { display: inline-flex; align-items: center; gap: 7px; color: var(--a2); font-weight: 700; }
.cine-stats-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a2);
  box-shadow: 0 0 10px 0 rgba(var(--a2-rgb),.9); animation: cine-live-pulse 2s ease-out infinite; }
@keyframes cine-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--a2-rgb),.6), 0 0 10px 0 rgba(var(--a2-rgb),.9); }
  70%  { box-shadow: 0 0 0 9px rgba(var(--a2-rgb),0), 0 0 10px 0 rgba(var(--a2-rgb),.9); }
  100% { box-shadow: 0 0 0 0 rgba(var(--a2-rgb),0), 0 0 10px 0 rgba(var(--a2-rgb),.9); }
}
.cine-stat { padding: 14px 14px; }
.cine-stat .n { background: linear-gradient(180deg, #ffffff, #c9cbef);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cine-stat:nth-of-type(2) .n { background: linear-gradient(112deg, var(--a2), var(--a1));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* --- poster-forward floating deck --- */
/* drop backdrop-filter: on an animated (transformed) card Chromium rasterises the
   card THROUGH its own blur, smearing the whole thing (the "blurred middle card"
   bug). The glass gradient below is already near-opaque, so nothing is lost. */
.cine-gcard { position: relative; grid-template-columns: 88px 1fr; gap: 15px; padding: 13px 16px 13px 13px;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background:
    linear-gradient(180deg, var(--glass-hi), transparent 42%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2)); }
.cine-gcard-art { width: 88px;
  box-shadow: 0 16px 32px -16px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,255,255,.07); }
.cine-gcard-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(158deg, rgba(255,255,255,.16), transparent 44%); }
.cine-gcard-name { font-size: 16px; }
.cine-gcard-tags { margin-top: 10px; }
/* featured card gets a neon spine */
.cine-gcard.g1::after { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--a2), var(--a1));
  box-shadow: 0 0 14px -2px rgba(var(--a1-rgb),.9); }

@media (forced-colors: active) {
  .cine-stat .n, .cine-stat:nth-of-type(2) .n { -webkit-text-fill-color: CanvasText; color: CanvasText; }
}

/* ============================================================
   FLOATING DECK — "alive" pass. The three side cards were flat,
   uniform, near-black slabs (only the featured one had colour).
   Give each its OWN accent hue and let it breathe: tinted border
   + ambient glow, a colour-matched neon spine, an accent-ringed
   poster with a slow light sheen sweeping across it, and a poster
   zoom on hover. Additive only — nothing renamed. Sheen is gated
   behind the reduced-motion block above.
   ============================================================ */
.cine-gcard.g1 { --cc: var(--a1); --cc-rgb: 139,92,246; }
.cine-gcard.g2 { --cc: var(--a2); --cc-rgb: 34,211,238; }
.cine-gcard.g3 { --cc: #fbbf24; --cc-rgb: 251,191,36; }

/* accent-tinted frame + soft coloured halo so no card reads as dead grey */
.cine-gcard { border-color: rgba(var(--cc-rgb),.30);
  box-shadow: 0 34px 70px -34px rgba(0,0,0,.95), 0 0 30px -12px rgba(var(--cc-rgb),.45),
    inset 0 1px 0 rgba(255,255,255,.08); }
.cine-gcard.g1 { box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 46px -10px rgba(var(--cc-rgb),.6),
    inset 0 1px 0 rgba(255,255,255,.10); }
.cine-gcard:hover { border-color: rgba(var(--cc-rgb),.7);
  box-shadow: 0 48px 100px -28px rgba(0,0,0,.95), 0 0 66px -8px rgba(var(--cc-rgb),.65); }

/* colour-matched neon spine on EVERY card (was featured-only) */
.cine-gcard::after { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--cc), transparent 92%);
  box-shadow: 0 0 14px -1px rgba(var(--cc-rgb),.9); opacity: .95; }

/* poster picks up the card's accent as a ring + glow */
.cine-gcard-art { border-color: rgba(var(--cc-rgb),.55) !important;
  box-shadow: 0 16px 32px -16px rgba(0,0,0,.95), 0 0 22px -9px rgba(var(--cc-rgb),.7),
    inset 0 0 0 1px rgba(var(--cc-rgb),.4) !important; }
.cine-gcard-art > * { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.cine-gcard:hover .cine-gcard-art > * { transform: scale(1.09); }

/* slow light sheen sweeping across the poster — the "alive" motion, staggered per card */
.cine-gcard-art::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.5) 50%, transparent 66%);
  transform: translateX(-150%); animation: cSheen 6s cubic-bezier(.5,0,.5,1) infinite; }
.cine-gcard.g2 .cine-gcard-art::before { animation-delay: 1.6s; }
.cine-gcard.g3 .cine-gcard-art::before { animation-delay: 3.2s; }
@keyframes cSheen { 0%, 60% { transform: translateX(-150%); } 84%, 100% { transform: translateX(150%); } }

/* the featured card's live match badge gets a gentle breathing pulse */
.cine-match { animation: cMatchPulse 3.2s ease-in-out infinite; }
@keyframes cMatchPulse {
  0%, 100% { box-shadow: 0 6px 16px -6px rgba(var(--a2-rgb),.8), 0 0 0 0 rgba(var(--a2-rgb),.5); }
  50%      { box-shadow: 0 6px 16px -6px rgba(var(--a2-rgb),.9), 0 0 0 5px rgba(var(--a2-rgb),0); }
}
@media (prefers-reduced-motion: reduce) { .cine-match { animation: none !important; } }

/* ============================================================
   VIBRANCY PASS — colour + life beyond the hero. The "How it
   works" steps read as three identical dead-grey slabs on grey.
   Give each its OWN accent (cyan / violet / amber, echoing the
   hero deck): a lit icon tile, a colour top-edge, an accent step
   number + hover glow, and a soft accent wash rising from the
   floor. Plus more energy on section kickers. Additive/reversible.
   ============================================================ */
.steps .step { position: relative; overflow: hidden; --sc: var(--a1); --sc-rgb: 139,92,246; }
.steps .step:nth-child(1) { --sc: var(--a2);  --sc-rgb: 34,211,238; }
.steps .step:nth-child(2) { --sc: var(--a1);  --sc-rgb: 139,92,246; }
.steps .step:nth-child(3) { --sc: #fbbf24;    --sc-rgb: 251,191,36; }

/* colour top-edge bar */
.steps .step::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--sc), transparent 82%);
  box-shadow: 0 0 16px -2px rgba(var(--sc-rgb),.85); opacity: .92; }

/* soft accent wash rising from the card floor */
.steps .step::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(130% 82% at 50% 132%, rgba(var(--sc-rgb),.13), transparent 60%);
  opacity: .85; transition: opacity .3s; }
.steps .step:hover::before { opacity: 1; }
.steps .step > * { position: relative; z-index: 1; }

/* per-step lit icon tile (overrides the inline violet) */
.steps .step .step-ico { color: var(--sc) !important;
  background: rgba(var(--sc-rgb),.14) !important;
  border: 1px solid rgba(var(--sc-rgb),.36) !important;
  box-shadow: inset 0 0 20px -7px rgba(var(--sc-rgb),.95), 0 8px 22px -12px rgba(var(--sc-rgb),.7) !important;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .28s; }
.steps .step:hover .step-ico { transform: translateY(-2px) scale(1.06);
  box-shadow: inset 0 0 22px -6px rgba(var(--sc-rgb),1), 0 14px 30px -12px rgba(var(--sc-rgb),.9) !important; }

/* accent step number */
.steps .step .step-n { color: var(--sc);
  text-shadow: 0 0 14px rgba(var(--sc-rgb),.55); letter-spacing: .12em; }

/* accent-matched hover glow (was generic violet) */
.steps .step:hover { border-color: rgba(var(--sc-rgb),.5) !important;
  box-shadow: 0 30px 66px -34px rgba(var(--sc-rgb),.6), 0 0 42px -16px rgba(var(--sc-rgb),.5) !important; }

/* section kicker — pill-lit label with a glowing underline for a bit more life */
.section-head .kicker { display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(var(--a2-rgb),.10); border: 1px solid rgba(var(--a2-rgb),.28);
  box-shadow: inset 0 0 18px -8px rgba(var(--a2-rgb),.9); }
.section-head .kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--a2); box-shadow: 0 0 10px 0 rgba(var(--a2-rgb),.9); }

/* ============================================================
   GAMER KEY-ART BACKDROP — blend the cinematic fantasy key art
   into the hero. Scrimmed hard on the left (headline column) and
   left visible on the right (castle + volcano) so it also fills
   the dead space there, then faded into the page at the bottom.
   Sits on the hero's own atmosphere layer (.cine-bg) so it's
   clipped to the hero and painted UNDER the copy. Reversible —
   drop this block to restore the plain gradient hero.
   ============================================================ */
.cine-bg {
  background-image:
    /* fade matched to the results screen (.results::before) so the key-art reads
       through at the same strength, still melting into the section below at 92% */
    linear-gradient(180deg, rgba(5,6,13,.17), rgba(5,6,13,.12) 22%, rgba(5,6,13,.16) 50%, var(--bg) 92%),
    /* brand duotone wash keeps the art on-palette */
    linear-gradient(118deg, rgba(var(--a1-rgb),.20), transparent 52%, rgba(var(--a2-rgb),.22)),
    url("data/art/keyart-hero.png");
  background-size: cover, cover, cover;
  background-position: center, center, 68% 28%;
  background-repeat: no-repeat;
  background-blend-mode: normal, screen, normal;
}
/* keep the environment glow subtle so it doesn't lift the readability scrim */
.cine-bg::before { opacity: .55; }
/* readability scrim OVER the glow (::after paints above ::before, still under the copy):
   solid dark on the left copy column, opening up to the art on the right */
.cine-bg::after {
  background:
    /* GENTLE left-column wash only — the art is now as visible as the results
       screen; the headline leans on its drop-shadow/text halos (below) for the
       rest of its contrast, so this is far lighter than the old hard scrim. */
    linear-gradient(90deg, rgba(5,6,13,.24) 0%, rgba(5,6,13,.16) 40%, transparent 68%),
    radial-gradient(130% 120% at 50% 30%, transparent 60%, rgba(0,0,0,.32));
}
/* the copy now sits over visible art on the left, so give it a soft dark halo for legibility */
.cine-lead .hero-badge,
.cine-lead .hero-sub { text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 2px 14px rgba(0,0,0,.6); }
/* NB: the title has a gradient clipped into the text (transparent fill), so text-shadow
   would paint a solid dark silhouette behind the glyphs. Use drop-shadow (respects the
   clip) to add a dark halo for legibility over the now-visible art. */
.cine-lead .cine-title {
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.22)) drop-shadow(0 2px 6px rgba(0,0,0,.85)) drop-shadow(0 2px 20px rgba(0,0,0,.6));
}
@media (forced-colors: active) { .cine-bg { background-image: none; } }
@media (max-width: 620px) {
  /* on phones the copy stacks full-width, so darken the art more for contrast */
  .cine-bg { background-image:
    linear-gradient(118deg, rgba(var(--a1-rgb),.22), transparent 55%, rgba(var(--a2-rgb),.18)),
    url("data/art/keyart-hero.png");
    background-size: cover, cover;
    background-position: center, 64% 24%;
    background-repeat: no-repeat;
    background-blend-mode: screen, normal; }
  .cine-bg::after { background:
    linear-gradient(180deg, rgba(5,6,13,.34) 0%, rgba(5,6,13,.2) 42%, rgba(5,6,13,.5) 100%); }
}
