/* MetaSpotter — landing. Same system as the app: navy notebook, lime + amber accents,
   Inter Tight, no visible borders — depth comes from layered shadows, a translucent fill
   and a 1 px lit top edge. */

@font-face { font-family: 'Inter Tight'; src: url('/fonts/InterTight_400Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/fonts/InterTight_600SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --navy950: #070B1A; --navy900: #0B1020; --navy800: #121A33; --navy700: #1B2547; --navy600: #26335F;
  --lime: #C6F135; --lime400: #D7FF5C; --lime600: #9FC91B;
  --amber: #FFB020; --coral: #FF5C5C; --sky: #5AC8FA; --violet: #8B7CFF;
  --ink0: #FFFFFF; --ink100: #EAF0FF; --ink300: #B7C2E0; --ink500: #7F8BB0; --ink700: #4A5578;
  --glass: rgba(255,255,255,0.045); --glass-strong: rgba(255,255,255,0.085);
  --sheen: rgba(255,255,255,0.16); --track: rgba(255,255,255,0.08);
  --bg: var(--navy950); --bg-elev: var(--navy900); --text: var(--ink100); --muted: var(--ink300); --faint: var(--ink500);
  --r-xs: 10px; --r-sm: 14px; --r-md: 20px; --r-lg: 26px; --r-xl: 34px; --r-hero: 40px;
  --el1: 0 1px 2px rgba(0,0,0,.44), 0 10px 24px -10px rgba(0,0,0,.62);
  --el2: 0 2px 6px rgba(0,0,0,.48), 0 22px 44px -16px rgba(0,0,0,.74);
  --el3: 0 6px 14px rgba(0,0,0,.52), 0 38px 72px -22px rgba(0,0,0,.86);
  --glow-lime: 0 0 0 1px rgba(198,241,53,.22), 0 8px 28px -4px rgba(198,241,53,.55), 0 2px 8px rgba(0,0,0,.35);
  --lvl1: var(--sky); --lvl2: var(--lime); --lvl3: var(--amber); --lvl4: var(--coral); --lvl5: var(--violet);
  --wrap: 1180px; --gutter: 20px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px; line-height: 1.55; letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--ink0); }
::selection { background: var(--lime); color: var(--navy950); }

/* ---------- type ---------- */
.display { font-weight: 600; font-size: clamp(40px, 6.4vw, 78px); line-height: .98; letter-spacing: -.04em; margin: 0; color: var(--ink0); text-wrap: balance; }
.h1 { font-weight: 600; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.032em; margin: 0 0 .5em; color: var(--ink0); text-wrap: balance; }
.h2 { font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .4em; color: var(--ink0); text-wrap: balance; }
.h3 { font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -.012em; margin: 0 0 .35em; color: var(--ink0); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.amber { color: var(--amber); } .eyebrow.sky { color: var(--sky); } .eyebrow.coral { color: var(--coral); } .eyebrow.violet { color: var(--violet); }
.numeral { font-weight: 600; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.04em; color: var(--ink0); font-variant-numeric: tabular-nums; }
.prose { max-width: 66ch; }
.prose p { color: var(--muted); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; color: var(--muted); }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--lime); }
.prose a { color: var(--lime400); box-shadow: inset 0 -1px 0 rgba(215,255,92,.35); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1.5em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--track); vertical-align: top; }
.prose th { color: var(--faint); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.prose td { color: var(--muted); }
.prose td:first-child { color: var(--ink0); font-weight: 600; }
kbd { font: inherit; font-size: 13px; padding: 1px 7px; border-radius: 7px; background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--sheen); }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { gap: 40px; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.hairline { height: 1px; background: var(--track); border: 0; margin: 0; }

/* ---------- surface ---------- */
.surface {
  position: relative; border-radius: var(--r-lg); background: var(--glass); box-shadow: var(--el1);
  background-image: linear-gradient(165deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.012) 45%, rgba(255,255,255,0) 100%);
}
.surface::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, transparent 0, var(--sheen) 25%, var(--sheen) 75%, transparent 100%);
}
.surface.raised { background-color: var(--glass-strong); box-shadow: var(--el2); }
.surface.xl { border-radius: var(--r-xl); box-shadow: var(--el3); }
.surface.sunken { background: rgba(0,0,0,.26); background-image: none; box-shadow: none; }
.surface.sunken::before { display: none; }
.surface.pad { padding: 28px; }
.surface.pad-lg { padding: clamp(28px, 4vw, 48px); }
.veil { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }

/* ---------- ambient glow ---------- */
.ambient { position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none; overflow: hidden; z-index: 0; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.ambient .a1 { width: 720px; height: 720px; left: -180px; top: -320px; background: radial-gradient(closest-side, rgba(198,241,53,.22), transparent 70%); }
.ambient .a2 { width: 620px; height: 620px; right: -160px; top: -240px; background: radial-gradient(closest-side, rgba(90,200,250,.2), transparent 70%); }
.ambient .a3 { width: 520px; height: 520px; left: 30%; top: 120px; background: radial-gradient(closest-side, rgba(255,176,32,.09), transparent 70%); }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px;
  border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; letter-spacing: -.005em; cursor: pointer;
  border: 0; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(.965); }
.btn.primary { background: var(--lime); color: var(--navy950); box-shadow: var(--glow-lime); }
.btn.primary:hover { background: var(--lime400); }
.btn.secondary { background: var(--glass-strong); color: var(--ink0); box-shadow: inset 0 1px 0 var(--sheen), var(--el1); }
.btn.secondary:hover { background: rgba(255,255,255,.12); }
.btn.ghost { background: transparent; color: var(--muted); height: 44px; padding: 0 14px; }
.btn.ghost:hover { color: var(--ink0); }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .01em; background: var(--glass-strong); color: var(--ink100); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); white-space: nowrap; }
.pill.l1 { background: rgba(90,200,250,.16); color: #9BDDFF; }
.pill.l2 { background: rgba(198,241,53,.16); color: #DCFF7A; }
.pill.l3 { background: rgba(255,176,32,.16); color: #FFD27A; }
.pill.l4 { background: rgba(255,92,92,.16); color: #FFA3A3; }
.pill.l5 { background: rgba(139,124,255,.18); color: #C4BBFF; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 1px 0 var(--sheen), var(--el1); font-size: 14.5px; font-weight: 600; color: var(--ink100); cursor: pointer; border: 0; font-family: inherit; transition: background .15s; }
.chip:hover { background: var(--glass-strong); }
.chip[aria-pressed='true'] { background: var(--lime); color: var(--navy950); box-shadow: var(--glow-lime); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); background: rgba(7,11,26,.72); }
.nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--track); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; color: var(--ink0); }
.brand .mark { width: 34px; height: 34px; flex: none; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); }
.brand .word { font-weight: 600; font-size: 20px; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.brand .word em { font-style: normal; color: var(--lime); }
.brand:hover .word em { color: var(--lime400); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink0); background: var(--glass); }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 1px 0 var(--sheen); }
.lang a { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current='true'] { background: var(--glass-strong); color: var(--ink0); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--glass); border-radius: 12px; color: var(--ink0); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; padding: 12px 20px 20px; background: rgba(7,11,26,.96); gap: 2px; }
  .nav.open .nav-links a { font-size: 18px; padding: 12px 14px; }
}

/* ---------- deck card (mirror of app DeckCard: 168×214, r 26, art bleeds, level veil from bottom) ---------- */
.deck-card {
  --lvl: var(--lvl3);
  position: relative; width: 168px; height: 214px; flex: 0 0 auto; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-elev); box-shadow: var(--el2); color: #fff; display: flex; flex-direction: column;
  transform: translateZ(0); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  isolation: isolate;
}
a.deck-card:hover { transform: translateY(-4px) scale(1.015); box-shadow: var(--el3); }
.deck-card .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.deck-card .field { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(120% 80% at 20% 10%, color-mix(in srgb, var(--lvl) 28%, transparent), transparent 60%),
  repeating-radial-gradient(circle at 70% 80%, transparent 0 14px, color-mix(in srgb, var(--lvl) 14%, transparent) 15px 16px), var(--navy800); }
.deck-card .veil { z-index: 1; background: linear-gradient(to top, color-mix(in srgb, var(--lvl) 42%, transparent) 0%, color-mix(in srgb, var(--lvl) 16%, transparent) 38%, transparent 72%); }
.deck-card .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(7,11,26,.72) 0%, rgba(7,11,26,.28) 45%, rgba(7,11,26,0) 75%); }
.deck-card .body { position: relative; z-index: 2; flex: 1; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.deck-card .row { display: flex; justify-content: space-between; align-items: flex-start; }
.deck-card .glyph { width: 32px; height: 32px; border-radius: var(--r-sm); background: rgba(7,11,26,.32); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); display: grid; place-items: center; font-size: 17px; line-height: 1; }
.deck-card .cloud { color: rgba(234,240,255,.78); margin-top: 4px; width: 14px; height: 14px; }
.deck-card .name { font-weight: 600; font-size: 15.5px; line-height: 1.22; letter-spacing: -.012em; text-shadow: 0 1px 8px rgba(7,11,26,.7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck-card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: rgba(234,240,255,.78); margin-top: 8px; padding-bottom: 4px; }
.deck-card .pill { height: 22px; font-size: 11px; padding: 0 8px; }
.deck-card .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.16); z-index: 3; }
.deck-card .progress i { display: block; height: 100%; background: var(--lvl); width: var(--p, 0%); }
.deck-card.lg { width: 220px; height: 280px; }
.deck-card.lg .name { font-size: 18px; }

.shelf { display: flex; gap: 16px; overflow-x: auto; padding: 8px var(--gutter) 28px; margin: 0 calc(-1 * var(--gutter)); scroll-snap-type: x proximity; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
.shelf::after { content: ''; flex: 0 0 4px; }

/* ---------- rating bar (mirror of the app's RatingBar) ---------- */
.rating { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r-md); overflow: hidden; background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--sheen), var(--el1); }
.rating button { position: relative; border: 0; background: transparent; color: var(--ink0); font: inherit; font-weight: 600; font-size: 15px; padding: 14px 8px 12px; cursor: pointer; display: grid; gap: 4px; justify-items: center; transition: background .15s; font-family: inherit; }
.rating button + button::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--track); }
.rating button:hover { background: rgba(255,255,255,.06); }
.rating button i { width: 8px; height: 8px; border-radius: 50%; }
.rating button small { font-weight: 400; font-size: 12.5px; color: var(--faint); }
.rating .again i { background: var(--coral); } .rating .hard i { background: var(--amber); } .rating .good i { background: var(--lime); } .rating .easy i { background: var(--sky); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); min-height: calc(100vh - 68px); display: flex; align-items: center; overflow: hidden; }
.hero .grid-2 { grid-template-columns: 1.05fr .95fr; }
.hero-copy .display { margin-bottom: 26px; }
.hero-copy .lede { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats b { font-weight: 600; font-size: 26px; letter-spacing: -.03em; color: var(--ink0); font-variant-numeric: tabular-nums; line-height: 1; }
.hero-stats span { font-size: 12px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

/* The hand of cards: five real deck cards fanned like a hand, over the clue diorama.
   GSAP spreads them on scroll. */
.hand { position: relative; height: 620px; }
.hand .diorama { position: absolute; left: 50%; top: 38%; width: min(720px, 135%); max-width: none; transform: translate(-50%, -50%); filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); z-index: 0; pointer-events: none; }
.hand .halo { position: absolute; left: 50%; top: 40%; width: 640px; height: 640px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(198,241,53,.22), rgba(90,200,250,.06) 55%, transparent 72%); filter: blur(10px); z-index: -1; }
.hand .deck-card { position: absolute; left: 50%; top: 74%; margin: -107px 0 0 -84px; transform-origin: 50% 130%; will-change: transform; }
@media (max-width: 900px) {
  .hero .grid-2 { grid-template-columns: 1fr; }
  .hand { height: 560px; margin-top: 8px; }
  .hand .deck-card { transform-origin: 50% 120%; }
  .hero { min-height: 0; }
}

/* ---------- world map ---------- */
.map-wrap { position: relative; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-wrap path { fill: rgba(255,255,255,.06); stroke: rgba(7,11,26,.9); stroke-width: .6; transition: fill .5s var(--ease), filter .5s; }
.map-wrap path.dim { fill: rgba(255,176,32,.35); }
.map-wrap path.lit { fill: rgba(198,241,53,.55); }
.map-wrap path.mastered { fill: var(--lime); filter: drop-shadow(0 0 6px rgba(198,241,53,.8)); }
.map-wrap path.flash { fill: rgba(255,92,92,.6); }
.map-numerals { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; justify-content: start; margin-top: 28px; }
.map-numerals div { display: grid; gap: 4px; }
.map-numerals b { font-weight: 600; font-size: 40px; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.map-numerals span { font-size: 13px; color: var(--muted); }
.map-numerals .alive b { color: var(--lime); } .map-numerals .fading b { color: var(--amber); } .map-numerals .mastered b { color: var(--ink0); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }

/* ---------- forgetting curve ---------- */
.curve { width: 100%; height: auto; }
.curve .axis { stroke: var(--track); stroke-width: 1; }
.curve .lbl { fill: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.curve .forget { stroke: var(--coral); stroke-width: 3; fill: none; stroke-dasharray: 6 8; stroke-linecap: round; }
.curve .keep { stroke: var(--lime); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.curve .keep-fill { fill: url(#keepFill); opacity: .9; }
.curve .dot { fill: var(--lime); }

/* ---------- interval demo ---------- */
.demo { display: grid; gap: 20px; }
.demo .next { display: flex; align-items: baseline; gap: 12px; }
.demo .next b { font-weight: 600; font-size: clamp(44px, 6vw, 72px); letter-spacing: -.045em; line-height: 1; color: var(--ink0); font-variant-numeric: tabular-nums; }
.demo .next span { color: var(--muted); }
.demo .ladder { display: flex; gap: 6px; align-items: flex-end; height: 56px; }
.demo .ladder i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--glass-strong); height: var(--h); transition: background .3s; box-shadow: inset 0 1px 0 var(--sheen); }
.demo .ladder i.on { background: var(--lime); box-shadow: var(--glow-lime); }
.demo .hint { font-size: 14px; color: var(--faint); }

/* ---------- steps / features ---------- */
.feature { display: grid; gap: 14px; padding: 26px; }
.feature img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.feature .h3 { margin-top: 6px; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }
.feature .icon { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--lime)) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--lime)) 30%, transparent); color: var(--c, var(--lime)); }
.feature .icon svg { width: 22px; height: 22px; }

/* ---------- clue family tiles (metas) ---------- */
.clue-tile { position: relative; padding: 22px; display: grid; gap: 10px; overflow: hidden; }
.clue-tile img { width: 68%; max-width: 230px; margin: 4px auto 6px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0,0,0,.55)); }
.clue-tile .h3 { margin: 0; }
.clue-tile p { margin: 0; color: var(--muted); font-size: 15px; }
.clue-tile .count { position: absolute; top: 18px; right: 18px; }

/* ---------- a real card (study screen replica) ---------- */
.study { border-radius: var(--r-xl); padding: 18px; display: grid; gap: 14px; max-width: 420px; background: var(--navy900); box-shadow: var(--el3); position: relative; }
.study .top { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--faint); font-weight: 600; }
.study .top .bar { flex: 1; height: 3px; border-radius: 3px; background: var(--track); overflow: hidden; }
.study .top .bar i { display: block; width: 60%; height: 100%; background: var(--lime); }
.study .img { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--navy800); aspect-ratio: 4/3; }
.study .img img { width: 100%; height: 100%; object-fit: contain; }
.study .img small { position: absolute; left: 8px; bottom: 6px; font-size: 10.5px; color: rgba(255,255,255,.7); background: rgba(7,11,26,.5); padding: 2px 6px; border-radius: 6px; }
.study .q { font-weight: 600; font-size: 19px; letter-spacing: .01em; color: var(--ink0); }
.study .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.study .choices span { padding: 12px 12px; border-radius: var(--r-sm); background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--sheen); font-weight: 600; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.study .choices span.ok { background: rgba(198,241,53,.2); box-shadow: inset 0 0 0 1px rgba(198,241,53,.6); }
.study .choices span.no { background: rgba(255,92,92,.16); box-shadow: inset 0 0 0 1px rgba(255,92,92,.5); }
.study .answer { border-radius: var(--r-md); background: var(--glass); box-shadow: inset 0 1px 0 var(--sheen); padding: 14px; font-size: 14.5px; color: var(--muted); }
.study .answer b { display: block; font-size: 18px; color: var(--ink0); margin-bottom: 4px; }

/* ---------- rank ladder ---------- */
.ranks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.rank { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 22px 12px 18px; }
.rank img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.6)); }
.rank b { font-weight: 600; font-size: 16px; color: var(--ink0); }
.rank p { margin: 0; font-size: 13.5px; color: var(--muted); }
.rank.top { background-image: radial-gradient(80% 60% at 50% 20%, rgba(255,176,32,.18), transparent 70%), linear-gradient(165deg, rgba(255,255,255,.08), rgba(255,255,255,0) 60%); }
@media (max-width: 1000px) { .ranks { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ranks { grid-template-columns: repeat(2, 1fr); } .rank img { width: 84px; height: 84px; } }

/* ---------- medals ---------- */
.medals { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.medal { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.medal span { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--ring, var(--lime)); background: var(--glass); }
.medal img { width: 84px; height: 84px; object-fit: contain; }
.medal.legend span { box-shadow: inset 0 0 0 2px var(--violet), 0 0 24px -6px var(--violet); }
@media (max-width: 900px) { .medals { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .medals { grid-template-columns: repeat(3, 1fr); } .medal span { width: 80px; height: 80px; } }

/* ---------- catalogue ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 32px; position: sticky; top: 68px; z-index: 5; padding: 12px 0; background: linear-gradient(var(--bg) 80%, transparent); }
.collection { padding: 22px 0 8px; }
.collection-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.collection-head .h2 { margin: 0; }
.collection-head .faint { font-size: 14px; }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, 168px); gap: 16px; justify-content: start; }
.deck-card[hidden] { display: none; }
.collection[hidden] { display: none; }

/* ---------- deck page ---------- */
.deck-hero { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.deck-hero .poster { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--el3); aspect-ratio: 2/3; background: var(--navy800); }
.deck-hero .poster img { width: 100%; height: 100%; object-fit: cover; }
.deck-hero .poster .veil { background: linear-gradient(to top, color-mix(in srgb, var(--lvl) 40%, transparent), transparent 60%); }
.deck-hero .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 26px 0; }
.deck-hero .kv div { padding: 14px 16px; }
.deck-hero .kv b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.03em; color: var(--ink0); }
.deck-hero .kv span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; }
.deck-hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.deck-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 760px) { .deck-hero { grid-template-columns: 1fr; } .deck-hero .poster { max-width: 260px; } }
.breadcrumb { font-size: 13.5px; color: var(--faint); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink0); }

/* ---------- platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform { display: grid; gap: 10px; padding: 28px; align-content: start; }
.platform .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--sheen); color: var(--ink0); }
.platform .icon svg { width: 26px; height: 26px; }
.platform p { color: var(--muted); margin: 0; font-size: 15px; }
.platform .soon { color: var(--amber); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 800px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: clamp(48px, 7vw, 88px) 24px; border-radius: var(--r-hero); overflow: hidden; }
.cta-band .display { font-size: clamp(34px, 5vw, 60px); margin-bottom: 20px; }
.cta-band .lede { margin-inline: auto; margin-bottom: 30px; }
.cta-band .glow { position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(198,241,53,.25), transparent 70%); pointer-events: none; }

/* ---------- footer ---------- */
.footer { padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.footer h4 { margin: 0 0 12px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--ink0); }
.footer .fine { font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--track); }
@media (max-width: 800px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .hand .deck-card { position: relative; left: auto; top: auto; margin: 0; }
  .hand { display: flex; gap: 12px; flex-wrap: wrap; height: auto; justify-content: center; }
  .hand .diorama, .hand .halo { display: none; }
}

/* ---------- sticky cards hero (scroll-pinned 3D flip + one-by-one dismiss) ---------- */
.hero-sticky { position: relative; width: 100%; height: 100svh; overflow: hidden; background: var(--bg); z-index: 3; }
.hero-sticky .ambient { height: 100%; }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; will-change: transform; z-index: 1; padding: 0 var(--gutter); }
.hero-content .hero-copy { max-width: 860px; display: grid; justify-items: center; }
.hero-content .display { font-size: clamp(42px, 7vw, 92px); margin-bottom: 22px; }
.hero-content .lede { margin: 0 auto 30px; text-align: center; }
.hero-content .hero-actions { justify-content: center; }
.sticky-cards { position: absolute; inset: 0; overflow: hidden; transform-style: preserve-3d; perspective: 1100px; z-index: 2; }
.sticky-cards .card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, 50%);
  width: 24%; min-width: 300px; max-width: 380px; aspect-ratio: 4 / 5; padding: 1.6rem;
  border-radius: var(--r-xl); display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
  will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #fff; overflow: hidden;
  box-shadow: var(--el3); isolation: isolate;
}
.sticky-cards .card h3 { font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.sticky-cards .card p { font-size: 15px; line-height: 1.35; color: rgba(234,240,255,.82); margin: 8px 0 0; }
.card-front { transform: translate(-50%, 50%) rotateY(0deg); background: var(--navy900); box-shadow: var(--glow-lime), var(--el3);
  background-image: radial-gradient(80% 60% at 50% 0%, rgba(198,241,53,.22), transparent 70%), linear-gradient(165deg, rgba(255,255,255,.08), rgba(255,255,255,0) 60%); }
.card-front::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--sheen) 25%, var(--sheen) 75%, transparent); }
.card-front .pill { background: var(--lime); color: var(--navy950); }
.card-front .front-mark img { width: 96px; height: 96px; border-radius: 28px; box-shadow: var(--el2); }
.card-front .icon { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.card-front .icon svg { width: 26px; height: 26px; }
.card-back { transform: translate(-50%, 50%) rotateY(180deg); background: var(--bg-elev); align-items: stretch; text-align: left; }
.card-back .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card-back .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(7,11,26,.82) 0%, rgba(7,11,26,.35) 45%, rgba(7,11,26,0) 75%); }
.card-back .veil { z-index: 1; background: linear-gradient(to top, color-mix(in srgb, var(--lvl) 46%, transparent) 0%, color-mix(in srgb, var(--lvl) 14%, transparent) 40%, transparent 72%); }
.card-back .card-top, .card-back .card-bottom { position: relative; z-index: 2; }
.card-back .card-top { display: flex; justify-content: space-between; align-items: center; }
.card-back .glyph { width: 44px; height: 44px; border-radius: var(--r-sm); background: rgba(7,11,26,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); display: grid; place-items: center; font-size: 22px; }
.card-back .card-index { font-weight: 600; font-size: 13px; letter-spacing: .14em; color: rgba(234,240,255,.8); }
.card-back h3 { text-shadow: 0 2px 10px rgba(7,11,26,.7); }
.card-back .meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: rgba(234,240,255,.8); }
.hero-outro { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 26px; padding: 0 var(--gutter); opacity: 0; pointer-events: none; }
.hero-outro .hero-stats { margin: 0; justify-content: center; }
.hero-outro.on { pointer-events: auto; }
.hero-spacer-note { display: none; }
@media (max-width: 900px) {
  .sticky-cards .card { width: 72%; min-width: 260px; max-width: 320px; padding: 1.3rem; }
  .hero-content .display { font-size: clamp(38px, 10vw, 60px); }
  .hero-content { align-items: flex-start; padding-top: 96px; }
  .hero-content .lede { font-size: 16px; margin-bottom: 22px; }
}
/* No JS or reduced motion: a static fan of the four deck cards, headline above */
.reduced .hero-sticky, .no-js .hero-sticky { height: auto; padding: 80px 0 60px; }
.reduced .hero-content, .no-js .hero-content { position: static; margin-bottom: 40px; }
.reduced .sticky-cards, .no-js .sticky-cards { position: relative; height: 520px; }
.reduced .card-front, .no-js .card-front { display: none; }
.reduced .card-back, .no-js .card-back { transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)); }
.reduced #card-1, .no-js #card-1 { --tilt: -10deg; } .reduced #card-2, .no-js #card-2 { --tilt: -20deg; } .reduced #card-3, .no-js #card-3 { --tilt: -5deg; } .reduced #card-4, .no-js #card-4 { --tilt: 10deg; }
.reduced .hero-outro, .no-js .hero-outro { position: static; opacity: 1; pointer-events: auto; }

/* ---------- infinite marquee shelves ---------- */
.marquees { display: grid; gap: 4px; }
.marquee {
  display: flex; gap: 16px; overflow: hidden; padding: 10px 0 26px; width: 100vw; margin-left: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.marquee .track { display: flex; gap: 16px; flex: none; padding-right: 16px; animation: marquee var(--dur, 70s) linear infinite; will-change: transform; }
.marquee.right .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee .track { animation: none; }
  .marquee .track[aria-hidden] { display: none; }
}
