/* Worst Games Ever — studio site, v2. Hand-written, no framework.
   Type: Geist (display + text), Geist Mono (labels, numbers), Fraunces italic (the accent words). */

@font-face { font-family: 'Geist'; src: url(../fonts/Geist-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(../fonts/GeistMono-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(../fonts/Fraunces-300-italic.woff2) format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(../fonts/Fraunces-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #0b0b0b;
  --bg2: #111110;
  --panel: #151514;
  --ink: #f2efe8;
  --ink2: #d9d5cc;
  --mute: rgba(242, 239, 232, .62);
  --dim: rgba(242, 239, 232, .38);
  --line: rgba(242, 239, 232, .1);
  --line2: rgba(242, 239, 232, .2);
  --accent: #ff5b3a;
  --acc: #ff5b3a;
  --acc2: #ffb59f;
  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease2: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(20px, 4vw, 64px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1320px, 100% - 2 * var(--pad)); margin-inline: auto; }
::selection { background: var(--ink); color: var(--bg); }

/* film grain, barely there */
body::after { content: ''; position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(5) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-2%, 1%); } 50% { transform: translate(1%, -2%); } 75% { transform: translate(-1%, 2%); } }

/* ---------- type ---------- */
.label { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.label .n { color: var(--ink); }
.label .n::after { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--line2); vertical-align: middle; margin-left: 12px; }
.label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.display { font: 600 clamp(42px, 6.4vw, 104px)/.94 var(--sans); letter-spacing: -.045em; margin: 0 0 .25em; color: var(--ink); }
.display em { font-weight: 300; letter-spacing: -.03em; color: var(--ink2); }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--mute); max-width: 560px; margin: 0 0 1.6em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 500 14.5px/1 var(--sans); letter-spacing: -.005em; transition: background .3s var(--ease), color .3s, border-color .3s, transform .4s var(--ease); }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-light { background: var(--ink); color: #0b0b0b; }
.btn-light:hover { background: #fff; }
.btn-line { border-color: var(--line2); color: var(--ink); background: rgba(11, 11, 11, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn.full { width: 100%; justify-content: center; }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; }
.intro-shutter { position: absolute; left: 0; right: 0; height: 50.5%; background: #070707; z-index: 0; transition: transform 1.1s var(--ease2); }
.intro-shutter.top { top: 0; } .intro-shutter.bottom { bottom: 0; }
.intro-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; width: min(520px, 84vw); transition: opacity .5s, transform .8s var(--ease); }
.intro-brand { margin: 0; font: 500 11.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.intro-num { font: 200 clamp(110px, 18vw, 220px)/.85 var(--sans); letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: var(--ink); }
.intro-label { margin: 0; font: 300 italic 22px/1 var(--serif); color: var(--mute); min-height: 1em; }
.intro-bar { width: 100%; height: 1px; background: var(--line); margin-top: 18px; }
.intro-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .12s linear; }
.intro-skip { margin-top: 6px; background: none; border: 0; color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.intro-skip:hover { color: var(--ink); }
.intro.is-out .intro-inner { opacity: 0; transform: translateY(-20px); }
.intro.is-out .intro-shutter.top { transform: translateY(-101%); }
.intro.is-out .intro-shutter.bottom { transform: translateY(101%); }
.intro.is-gone { display: none; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 800; height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 var(--pad);
  transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(11, 11, 11, .6); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--line); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px/1 var(--sans); letter-spacing: -.03em; justify-self: start; }
.nav-brand i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.nav-links { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 11, 11, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-links a { text-decoration: none; padding: 9px 16px; border-radius: 999px; font: 450 13.5px/1 var(--sans); color: var(--mute); transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); background: rgba(242, 239, 232, .08); }
.nav-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(11, 11, 11, .4); cursor: pointer; position: relative; }
.nav-burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.nav-burger i:first-child { top: 17px; } .nav-burger i:last-child { top: 23px; }
.nav-burger[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 790; background: rgba(11, 11, 11, .97); backdrop-filter: blur(14px); padding: 14px var(--pad) 28px; display: grid; border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); font: 500 26px/1.2 var(--sans); letter-spacing: -.03em; color: var(--ink); }

/* ---------- side rail ---------- */
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 700; display: grid; gap: 12px; opacity: 0; transition: opacity .5s; }
.rail.is-on { opacity: 1; }
.rail a { display: block; width: 14px; height: 1px; background: var(--line2); position: relative; transition: background .3s, width .4s var(--ease); justify-self: end; }
.rail a::before { content: ''; position: absolute; inset: -6px -4px; }
.rail a span { position: absolute; right: 26px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.rail a:hover span { opacity: 1; transform: translate(0, -50%); }
.rail a:hover { background: var(--ink); width: 22px; }
.rail a.is-active { background: var(--ink); width: 30px; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hbg { position: absolute; inset: -4%; background-size: cover, cover; background-position: 50% 62%, 50% 0; opacity: 0; transform: scale(1.06); transition: opacity 1.4s var(--ease), transform 9s linear;
  filter: brightness(.24) saturate(.55) contrast(1.1) blur(2px); }
.hbg.is-on { opacity: 1; transform: scale(1.0); }
.hero-light { position: absolute; inset: 0; background:
  radial-gradient(42% 62% at 60% 58%, rgba(255, 228, 196, .12), transparent 70%),
  radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(11, 11, 11, .78) 78%, #0b0b0b 100%),
  linear-gradient(180deg, rgba(11, 11, 11, .55), transparent 22%, transparent 62%, rgba(11, 11, 11, .9) 92%, #0b0b0b); }
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .7; }
.hero-word { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--nav-h) + 1.5vh); display: flex; justify-content: center; pointer-events: none;
  font: 800 min(27vw, 46vh)/.8 var(--sans); letter-spacing: -.07em; color: var(--ink); white-space: nowrap;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, .25) 100%); mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, .25) 100%); }
.hero-word span { display: inline-block; opacity: 0; transform: translateY(18%); filter: blur(12px); }
.is-ready .hero-word span { animation: wordIn 1.4s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }

.hero-cast { position: absolute; z-index: 2; left: 50%; bottom: 0; height: 84vh; width: min(1000px, 90vw); transform: translateX(-42%); }
.cast { position: absolute; inset: 0; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateX(3%) scale(.97); pointer-events: none; }
.cast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cast .char-spine, .cast .char-poster { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; }
.cast:focus-visible { outline: 1px dashed var(--line2); outline-offset: -20px; }
.hero:not(.is-in-view) .cast { transition: none; }
.char-spine { position: absolute; inset: 0; display: block; z-index: 1; }
.char-spine .spine-player { background: none !important; }
.char-spine canvas { display: block; }
.char-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: opacity .6s; }
.cast { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.is-ready .hero-cast { animation: castIn 1.6s var(--ease) .35s both; }
@keyframes castIn { from { opacity: 0; transform: translateX(-42%) translateY(6%); } to { opacity: 1; transform: translateX(-42%); } }
.hero-fade { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 26vh; background: linear-gradient(180deg, transparent, rgba(11, 11, 11, .85) 70%, #0b0b0b); pointer-events: none; }

.hero-copy { position: absolute; z-index: 4; left: var(--pad); bottom: max(5.5vh, 40px); width: min(520px, 38vw); }
.hero-title { margin: 0 0 18px; font: 600 clamp(40px, 4.6vw, 78px)/.95 var(--sans); letter-spacing: -.05em; }
.hero-title em { font-weight: 300; letter-spacing: -.035em; color: var(--ink2); }
.hero-sub { margin: 0 0 26px; color: var(--mute); max-width: 420px; font-size: 16px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-copy > * { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-ready .hero-copy > * { opacity: 1; transform: none; }
.is-ready .hero-copy > :nth-child(1) { transition-delay: .7s; } .is-ready .hero-copy > :nth-child(2) { transition-delay: .8s; } .is-ready .hero-copy > :nth-child(3) { transition-delay: .9s; } .is-ready .hero-copy > :nth-child(4) { transition-delay: 1s; }

.hero-switch { position: absolute; z-index: 4; right: var(--pad); bottom: max(5.5vh, 40px); display: grid; gap: 4px; width: 260px; opacity: 0; transition: opacity 1s 1.1s; }
.is-ready .hero-switch { opacity: 1; }
.hero-switch button { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; padding: 12px 0 14px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--dim); transition: color .3s; }
.hero-switch button:hover, .hero-switch button.is-on { color: var(--ink); }
.hs-n { font: 500 11px/1 var(--mono); letter-spacing: .1em; }
.hs-t b { display: block; font: 500 15px/1.15 var(--sans); letter-spacing: -.02em; }
.hs-t small { display: block; font: 400 12.5px/1.3 var(--sans); color: var(--dim); }
.hs-bar { position: absolute; left: 40px; right: 0; bottom: 0; height: 1px; background: var(--line); overflow: hidden; }
.hs-bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hero-switch button.is-on .hs-bar i { animation: hsBar var(--dur, 8s) linear forwards; }
.hero-switch.is-paused button.is-on .hs-bar i { animation: none; transform: scaleX(1); }
@keyframes hsBar { to { transform: scaleX(1); } }
.hero-hint { position: absolute; z-index: 4; left: 50%; bottom: max(5.5vh, 40px); transform: translateX(-50%); margin: 0; font: 300 italic 15px/1 var(--serif); color: var(--dim); opacity: 0; transition: opacity 1s 1.6s; white-space: nowrap; }
.hero-hint span { color: var(--mute); }
.is-ready .hero-hint { opacity: 1; }

/* ---------- subtitles (the heroes speak like film) ---------- */
.subs { position: fixed; z-index: 850; left: 50%; bottom: 15vh; transform: translate(-50%, 8px); width: max-content; max-width: min(520px, 88vw); text-align: center; pointer-events: none; opacity: 0; transition: opacity .35s, transform .5s var(--ease); }
.subs.is-on { opacity: 1; transform: translate(-50%, 0); }
.subs small { display: block; margin-bottom: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }

/* asleep: z z Z over his head */
.zzz { position: absolute; z-index: 3; left: 58%; top: 12%; pointer-events: none; font: 300 italic clamp(22px, 2.4vw, 40px)/1 var(--serif); color: var(--ink); opacity: 0; transition: opacity .6s; }
.zzz.is-on { opacity: 1; }
.zzz i { position: absolute; left: 0; top: 0; font-style: inherit; opacity: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.zzz.is-on i { animation: zzz 3s ease-out infinite; }
.zzz i:nth-child(2) { animation-delay: 1s !important; font-size: 1.3em; } .zzz i:nth-child(3) { animation-delay: 2s !important; font-size: 1.7em; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(2.2em, -2.6em) rotate(10deg); } }
/* the notice: for heroes leaving the website and other stupid news */
.notice { position: fixed; z-index: 860; left: 50%; top: calc(var(--nav-h) + 14px); transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: opacity .4s, transform .6s var(--ease);
  padding: 12px 20px 13px; border-radius: 14px; background: rgba(16, 16, 16, .82); border: 1px solid var(--line2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-align: center; max-width: 88vw; }
.egg-rain { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 870; pointer-events: none; }
.notice.is-on { opacity: 1; transform: translate(-50%, 0); }
.notice b { display: block; font: 600 15px/1.25 var(--sans); color: var(--ink); }
.notice small { display: block; margin-top: 4px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.subs span { display: inline; padding: .08em .35em; font: 400 italic clamp(19px, 1.7vw, 26px)/1.4 var(--serif); letter-spacing: -.01em; color: #fff; background: rgba(8, 8, 8, .55); -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 3px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }

/* ---------- studio ---------- */
.studio { padding: clamp(120px, 18vh, 220px) 0 clamp(90px, 12vh, 160px); }
.manifesto { margin: 0; max-width: 1220px; font: 500 clamp(30px, 4.1vw, 66px)/1.08 var(--sans); letter-spacing: -.04em; }
.manifesto .w { color: rgba(242, 239, 232, .12); transition: color .4s; }
.manifesto .w.on { color: var(--ink); }
.manifesto em.w { font-weight: 300; }
.manifesto em.w.on { color: var(--acc2); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(70px, 11vh, 130px); border-top: 1px solid var(--line); }
.stat { padding: 26px 22px 0 0; display: grid; gap: 12px; align-content: start; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat b { font: 250 clamp(38px, 3.8vw, 62px)/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat span { font: 400 13.5px/1.4 var(--sans); color: var(--dim); }

/* ---------- games intro: the knockout word ---------- */
.games-intro { padding: 40px 0 90px; text-align: center; overflow: hidden; }
.games-intro .label { justify-content: center; }
.gi-pre { margin: 10px 0 0; font: 300 italic clamp(28px, 3.4vw, 54px)/1 var(--serif); color: var(--mute); }
.knock { margin: 0 0 30px; font: 800 min(26vw, 420px)/.82 var(--sans); letter-spacing: -.07em; white-space: nowrap; filter: saturate(1.05) contrast(1.05); }
/* the painted worlds, looping one way only (the loop image tiles seamlessly; app.js moves it) */
.paint, .paint > span { color: transparent; background-image: url(../img/brand/worlds_loop.webp); background-repeat: repeat-x; background-size: auto 140%; background-position: 0 50%;
  -webkit-background-clip: text; background-clip: text; }
.hero-word.paint { background: none; }
.knock.paint { position: relative; background-position: var(--bpx, 0px) 50%; }
/* the lens: the same worlds at night, only inside a circle under the cursor (app.js sets --lx, --ly, --lr) */
.paint .night > span, .knock.paint::after { color: transparent; background-image: url(../img/brand/worlds_loop_night.webp); background-repeat: repeat-x; background-size: auto 140%;
  -webkit-background-clip: text; background-clip: text; }
.hero-word .night { position: absolute; inset: 0; display: flex; justify-content: center; pointer-events: none; }
.hero-word .night, .knock.paint::after {
  -webkit-mask-image: radial-gradient(circle var(--lr, 0px) at var(--lx, 50%) var(--ly, 50%), #000 calc(100% - 1.5px), transparent 100%);
  mask-image: radial-gradient(circle var(--lr, 0px) at var(--lx, 50%) var(--ly, 50%), #000 calc(100% - 1.5px), transparent 100%); }
.knock.paint::after { content: attr(data-text); position: absolute; inset: 0; background-position: var(--bpx, 0px) 50%; pointer-events: none; }
.lens-ring { position: absolute; z-index: 2; left: var(--lx, 50%); top: var(--ly, 50%); width: calc(var(--lr, 0px) * 2); height: calc(var(--lr, 0px) * 2); transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(242, 239, 232, .5); box-shadow: inset 0 0 40px rgba(160, 190, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 40px rgba(0, 0, 0, .35); opacity: var(--lo, 0); }
.games-intro .lede { margin-inline: auto; }

/* ---------- WORLDS ---------- */
.world { position: relative; height: 320vh; }
#dictator { height: 420vh; }
.world-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: #0b0b0b; }
.scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.world.is-off .scene { visibility: hidden; } /* worlds off screen give their graphics memory back */
.plate { position: absolute; left: 50%; top: 50%; aspect-ratio: var(--ar); width: max(112vw, 112vh * (var(--ar))); transform: translate(-50%, -50%) translate(var(--camx, 0px), var(--camy, 0px)) scale(var(--zoom, 1.1)); transform-origin: 50% 60%; will-change: transform; }
.L { position: absolute; will-change: transform; }
img.L { object-fit: fill; }
.drift { overflow: hidden; display: flex; }
.drift img { width: 100%; height: 100%; flex: 0 0 100%; object-fit: fill; animation: drift 90s linear infinite; }
.drift.slow img { animation-duration: 160s; }
@keyframes drift { to { transform: translateX(-100%); } }
.scene-shade { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(9, 9, 9, .94) 0%, rgba(9, 9, 9, .78) 24%, rgba(9, 9, 9, .2) 48%, transparent 60%),
              linear-gradient(0deg, rgba(9, 9, 9, .7), transparent 26%), linear-gradient(180deg, rgba(9, 9, 9, .6), transparent 20%); }
.world-copy { position: absolute; z-index: 5; left: var(--pad); top: 50%; transform: translateY(-46%); width: min(470px, 38vw); }
.world-copy > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.world.is-in .world-copy > * { opacity: 1; transform: none; }
.world.is-in .world-copy > :nth-child(2) { transition-delay: .08s; } .world.is-in .world-copy > :nth-child(3) { transition-delay: .16s; } .world.is-in .world-copy > :nth-child(4) { transition-delay: .22s; } .world.is-in .world-copy > :nth-child(5) { transition-delay: .28s; } .world.is-in .world-copy > :nth-child(6) { transition-delay: .34s; }
.world-logo { width: min(250px, 60%); height: auto; margin: 0 0 18px -6px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .6)); }
.world-tag { margin: 0 0 12px; font: 600 clamp(26px, 2.4vw, 38px)/1.02 var(--sans); letter-spacing: -.045em; }
.world-pitch { margin: 0 0 26px; color: var(--mute); font-size: 16px; max-width: 420px; }
.world-stats { display: grid; grid-template-columns: repeat(4, auto); margin: 0 0 28px; border-top: 1px solid var(--line2); }
.world-stats div { padding: 14px 16px 0 0; }
.world-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.world-stats dt { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.world-stats dd { margin: 0; font: 500 clamp(16px, 1.4vw, 21px)/1 var(--sans); letter-spacing: -.03em; white-space: nowrap; }
.world-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.world-hero { position: absolute; z-index: 4; right: 5%; bottom: 0; height: min(76vh, 46vw); aspect-ratio: .806; cursor: pointer; transform: translateY(14%); opacity: 0; transition: transform 1.2s var(--ease), opacity .8s; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.world.is-in .world-hero.is-aside { transform: translateX(42%); opacity: 0; pointer-events: none; transition: transform 1s var(--ease), opacity .6s; }
.world-hero[data-world-hero="dictator"], .world-hero[data-world-hero="pirates"] { aspect-ratio: .93; height: min(72vh, 44vw); }
.world.is-in .world-hero { transform: none; opacity: 1; }
.world-progress { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.world-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--ink); }

/* knight: the joust */
.moment { inset: 0; pointer-events: none; }
.rider { position: absolute; top: 44%; width: 34%; transform-origin: 50% 80%; will-change: transform; filter: drop-shadow(0 18px 14px rgba(0, 0, 0, .35)); }
.rider-k { left: 50%; margin-left: -34%; transform: translateX(-120vw); }
.rider-r { left: 50%; top: 40.5%; width: 30%; transform: translateX(120vw); }
.rider.gallop { animation: gallop .32s ease-in-out infinite alternate; }
@keyframes gallop { from { translate: 0 0; rotate: -1deg; } to { translate: 0 -2.5%; rotate: 1.5deg; } }
.clash { position: absolute; left: 50%; top: 52%; width: 2px; height: 2px; }
.clash i { position: absolute; left: 0; top: 0; width: 10px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #fff, #f3d9a8); }
.clash .flash { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(255, 236, 200, .5), transparent); animation: flash .5s ease-out forwards; }
@keyframes flash { from { transform: scale(.2); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.joust-banner { position: absolute; z-index: 4; left: 50%; top: calc(var(--nav-h) + 6vh); transform: translate(-50%, -10px); opacity: 0; text-align: center; pointer-events: none; transition: opacity .4s, transform .6s var(--ease); }
.joust-banner small { display: block; margin-bottom: 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.joust-banner b { display: block; font: 600 clamp(30px, 3.8vw, 60px)/1 var(--sans); letter-spacing: -.045em; color: #fff; white-space: nowrap; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.joust-banner.is-on { opacity: 1; transform: translate(-50%, 0); }
.world-sticky.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); }
/* the tank: it fires at you, the screen takes it */
.gun { pointer-events: none; }
.tank-hit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 9; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.tank-hit.is-on { opacity: 1; transition: none; }
.tank-flash { position: absolute; inset: 0; z-index: 10; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 70%) var(--fy, 50%), #fff 0, rgba(255, 244, 226, .92) 18%, rgba(255, 196, 140, .35) 48%, transparent 78%); }
.tank-flash.go { animation: tankFlash .7s ease-out; }
@keyframes tankFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
.world-sticky.shake-hard { animation: shakeHard .6s cubic-bezier(.36, .07, .19, .97); }
@keyframes shakeHard { 10% { transform: translate(-6px, 4px) rotate(-.4deg); } 20% { transform: translate(9px, -5px) rotate(.5deg); } 30% { transform: translate(-11px, 6px) rotate(-.4deg); } 40% { transform: translate(8px, -4px); } 55% { transform: translate(-5px, 3px); } 70% { transform: translate(3px, -2px); } 85% { transform: translate(-1px, 1px); } }
@keyframes shake { 10%, 90% { transform: translate(-1px, 1px); } 20%, 80% { transform: translate(3px, -1px); } 30%, 50%, 70% { transform: translate(-5px, 2px); } 40%, 60% { transform: translate(5px, -2px); } }
.splats, .stamps, .shots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.splat { position: absolute; width: 150px; transform: translate(-50%, -50%); animation: splatIn .35s cubic-bezier(.3, 1.6, .5, 1) both, fadeOut .8s 2.6s forwards; }
.tomato { position: absolute; width: 52px; transform: translate(-50%, -50%); }
@keyframes splatIn { from { transform: translate(-50%, -50%) scale(.2) rotate(-30deg); } to { transform: translate(-50%, -50%) scale(1) rotate(var(--r, 0deg)); } }
@keyframes fadeOut { to { opacity: 0; } }

/* dictator */
.planes img { position: absolute; width: 4.2%; top: 6%; left: -10%; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .25)); animation: fly 22s linear infinite; }
.planes img:nth-child(2) { top: 9.5%; margin-left: -3.2%; width: 3.6%; }
.planes img:nth-child(3) { top: 2.8%; margin-left: -3.6%; width: 3.6%; }
@keyframes fly { 0% { transform: translate(0, 0) rotate(-3deg); } 100% { transform: translate(130vw, -4vh) rotate(-3deg); } }
.crowd { transform-origin: 50% 100%; animation: crowd 2.4s ease-in-out infinite; }
@keyframes crowd { 0%, 100% { scale: 1 1; } 50% { scale: 1 1.008; } }
.banner { transform-origin: 50% 0; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.4deg; } }
.dcloud { position: absolute; background-repeat: no-repeat; animation: dcloud linear infinite; will-change: transform; }
@keyframes dcloud { from { transform: translateX(0); } to { transform: translateX(var(--run)); } }
.paper { position: absolute; z-index: 4; left: 60%; top: 52%; width: min(500px, 36vw); padding: 22px 24px 26px; background: #ece4d2; color: #1d1813; border-radius: 2px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 0 80px rgba(120, 90, 40, .22); transform: translate(-50%, -50%) translate(60vw, -70vh) rotate(540deg) scale(.1); opacity: 0; will-change: transform;
  background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px); background-size: 4px 4px; }
.paper-mast { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px double #1d1813; padding-bottom: 8px; font: 600 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.paper-mast b { font: 700 clamp(22px, 2.8vw, 34px)/1 Georgia, 'Times New Roman', serif; letter-spacing: -.01em; text-transform: none; }
.paper-head { font: 900 clamp(38px, 5.4vw, 72px)/.9 var(--sans); text-transform: uppercase; text-align: center; margin: 14px 0 8px; letter-spacing: -.05em; color: #a8141a; }
.paper-deck { font: 400 italic 15px/1.3 var(--serif); text-align: center; border-bottom: 1px solid #1d1813; padding-bottom: 12px; margin-bottom: 12px; }
.paper-body { display: grid; grid-template-columns: 42% 1fr; gap: 14px; }
.paper-photo { background: #d9cdb4; filter: grayscale(1) contrast(1.4) sepia(.25); aspect-ratio: 1; overflow: hidden; }
.paper-photo img { width: 100%; height: 100%; object-fit: cover; }
.paper-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; align-content: start; }
.paper-cols i { display: block; height: 6px; background: repeating-linear-gradient(90deg, #1d1813 0 70%, transparent 70% 100%); opacity: .45; border-radius: 1px; }
.paper-cols i:nth-child(4n) { width: 70%; }
.stamp { position: absolute; transform: translate(-50%, -50%) rotate(var(--r)); padding: 8px 16px; border: 4px solid #c4201c; border-radius: 6px; color: #c4201c; font: 900 clamp(20px, 2.2vw, 32px)/1 var(--sans); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap;
  mix-blend-mode: multiply; animation: stamp .35s cubic-bezier(.2, 1.6, .4, 1) both, fadeOut .8s 2.8s forwards; -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8'/><feComponentTransfer><feFuncA type='discrete' tableValues='0 1 1 1 1'/></feComponentTransfer></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"); }
.stamp small { display: block; font: 600 9.5px/1.2 var(--mono); letter-spacing: .16em; text-align: center; margin-top: 4px; }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(var(--r)) scale(2.6); opacity: 0; } to { transform: translate(-50%, -50%) rotate(var(--r)) scale(1); opacity: .92; } }

/* pirate */
.storm { inset: 0; opacity: 0; pointer-events: none; }
.storm img { width: 100%; height: 100%; object-fit: cover; }
.storm .bolt { position: absolute; inset: 0; }
.storm.flash .bolt { animation: bolt .6s ease-out; }
@keyframes bolt { 0% { background: rgba(220, 235, 255, .7); } 20% { background: rgba(220, 235, 255, 0); } 30% { background: rgba(220, 235, 255, .45); } 100% { background: rgba(220, 235, 255, 0); } }
.tentacles { inset: 0; pointer-events: none; }
.tent { position: absolute; width: 26%; transform-origin: 0% 50%; will-change: transform; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4)); }
.t1 { left: 40%; top: 58%; } .t2 { left: 84%; top: 60%; width: 24%; } .t3 { left: 60%; top: 62%; width: 19%; }
.sea { animation: sea 7s ease-in-out infinite; }
@keyframes sea { 0%, 100% { translate: 0 0; } 50% { translate: -.6% .4%; } }
.ship { animation: ship 6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes ship { 0%, 100% { rotate: -1.5deg; translate: 0 0; } 50% { rotate: 1.5deg; translate: 0 -2%; } }
.sail { transform-origin: 50% 0; animation: sway 4s ease-in-out infinite; }
.mult { position: absolute; z-index: 4; right: max(6%, 60px); top: calc(var(--nav-h) + 3vh); display: grid; gap: 6px; min-width: 150px; padding: 16px 20px; border-radius: 16px;
  background: rgba(11, 11, 11, .45); border: 1px solid var(--line2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mult small, .mult em { font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-style: normal; }
.mult b { font: 300 clamp(36px, 3.4vw, 54px)/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.mult.pop b { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.18); color: #fff; } 100% { transform: scale(1); } }
.boom { position: absolute; width: 140px; height: 140px; transform: translate(-50%, -50%); pointer-events: none; }
.boom::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, #fff8e0, #ffb36b 40%, rgba(255, 90, 0, .35) 60%, transparent); animation: flash .5s ease-out forwards; }
.boom b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 600 40px/1 var(--sans); letter-spacing: -.04em; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); animation: rise 1.1s var(--ease) forwards; }
@keyframes rise { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 25% { transform: translate(-50%, -70%) scale(1.05); opacity: 1; } 100% { transform: translate(-50%, -180%) scale(1); opacity: 0; } }
.smoke { position: absolute; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(220, 220, 220, .45), transparent); transform: translate(-50%, -50%); animation: smoke 1.4s ease-out forwards; pointer-events: none; }
@keyframes smoke { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(3); opacity: 0; } }

/* ---------- dossier ---------- */
.files { padding: clamp(120px, 16vh, 200px) 0 70px; }
.dossier > * { min-width: 0; }
.dossier { margin-top: 56px; display: grid; grid-template-columns: 240px 1fr; gap: 0; border-top: 1px solid var(--line); }
.dossier-games { display: grid; align-content: start; position: sticky; top: calc(var(--nav-h) + 20px); padding-top: 18px; padding-right: 28px; }
.dossier-games button { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 14px; padding: 14px 0; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: 500 15px/1.2 var(--sans); letter-spacing: -.02em; color: var(--dim); transition: color .3s; }
.dossier-games button img { width: 54px; height: 46px; object-fit: contain; opacity: .55; filter: grayscale(.6); transition: opacity .3s, filter .3s; }
.dossier-games button:hover { color: var(--ink); }
.dossier-games button[aria-selected="true"] { color: var(--ink); }
.dossier-games button[aria-selected="true"] img { opacity: 1; filter: none; }
.dossier-sheet { --acc: #ff5b3a; border-left: 1px solid var(--line); min-height: 640px; }
.ds-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 26px 0 26px 40px; border-bottom: 1px solid var(--line); }
.ds-kicker { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.ds-name { margin: 0; font: 600 clamp(32px, 3.2vw, 50px)/.95 var(--sans); letter-spacing: -.05em; }
.ds-tag { margin: 10px 0 0; color: var(--mute); font: 300 italic 19px/1.3 var(--serif); }
.ds-head-right { display: grid; justify-items: end; gap: 12px; }
.ds-badge { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ds-tabs { display: flex; gap: 26px; padding: 0 0 0 40px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ds-tabs button { background: none; border: 0; padding: 18px 0 16px; cursor: pointer; font: 450 14px/1 var(--sans); color: var(--dim); position: relative; white-space: nowrap; transition: color .25s; }
.ds-tabs button:hover { color: var(--ink); }
.ds-tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.ds-tabs button[aria-selected="true"] { color: var(--ink); }
.ds-tabs button[aria-selected="true"]::after { transform: none; }
.ds-panel { padding: 34px 0 40px 40px; animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ds-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; }
.ds-pitch { font-size: 19px; line-height: 1.5; color: var(--ink2); margin: 0 0 26px; }
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 500 10.5px/1.8 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.specs dd { margin: 0; font-size: 15.5px; }
.hooks { display: grid; gap: 0; border-top: 1px solid var(--line); align-content: start; }
.hook { padding: 20px 0; border-bottom: 1px solid var(--line); }
.hook h4, .card h4 { margin: 0 0 6px; font: 600 18px/1.15 var(--sans); letter-spacing: -.03em; }
.hook p, .card p { margin: 0; color: var(--mute); font-size: 15.5px; line-height: 1.5; }
.feat { display: grid; border-top: 1px solid var(--line); }
.feat-row { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feat-row b { font: 600 17px/1.2 var(--sans); letter-spacing: -.03em; }
.feat-row p { margin: 0; color: var(--mute); font-size: 15.5px; line-height: 1.5; }
.odds { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.bonus-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bonus-card { border-radius: 14px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); display: grid; grid-template-rows: 190px 1fr; transition: border-color .3s, transform .5s var(--ease); }
.bonus-card:hover { border-color: var(--line2); transform: translateY(-4px); }
.bonus-card .bc-art { background-size: cover; background-position: center; position: relative; filter: saturate(.9); transition: filter .4s; }
.bonus-card:hover .bc-art { filter: none; }
.bonus-card .bc-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(17, 17, 16, .96)); }
.bonus-card .bc-art span { position: absolute; z-index: 1; left: 16px; bottom: 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.bonus-card .bc-body { padding: 16px 18px 22px; }
.bonus-card h4 { margin: 0 0 4px; font: 600 21px/1.1 var(--sans); letter-spacing: -.04em; }
.bonus-card .bc-meta { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 8px 0 12px; }
.bonus-card p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.5; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.tbl th, .tbl td { padding: 13px 14px 13px 0; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl thead th { font: 500 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border-top: 1px solid var(--line); }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(242, 239, 232, .025); }
.tbl td { font-family: var(--mono); font-size: 13.5px; color: var(--ink2); }
.tbl td:first-child { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.tbl .cost { color: var(--ink); }
.buy-name { display: flex; align-items: center; gap: 12px; }
.buy-name img { width: 38px; height: 38px; object-fit: contain; }
.bar { display: inline-block; vertical-align: middle; width: 60px; height: 2px; background: var(--line); margin-left: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); }
.tag { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.tag::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: currentColor; vertical-align: 1px; }
.tag.Ultra { color: #ff8a73; } .tag.High { color: #f3c27a; } .tag.Medium { color: #8fd3c4; } .tag.Low { color: #a9b8ff; }
.foot-note { color: var(--dim); font-size: 13.5px; line-height: 1.5; margin: 16px 0 0; max-width: 820px; }
.syms { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sym { padding: 18px 12px 16px; background: var(--bg); text-align: center; transition: background .3s; }
.sym:hover { background: var(--bg2); }
.sym img { width: 88px; height: 88px; object-fit: contain; margin: 0 auto 10px; transition: transform .6s var(--ease); }
.sym:hover img { transform: scale(1.08) rotate(-3deg); }
.sym b { display: block; font: 500 14px/1.2 var(--sans); letter-spacing: -.02em; margin-bottom: 4px; }
.sym span { font: 500 11.5px/1.3 var(--mono); color: var(--dim); }
.hero-tab { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: center; }
.hero-tab .ht-char { height: 440px; position: relative; cursor: pointer; }
.quotes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.quote { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); font: 300 italic 21px/1.35 var(--serif); color: var(--ink); opacity: 0; transform: translateY(8px); animation: quoteIn .6s var(--ease) forwards; }
@keyframes quoteIn { to { opacity: 1; transform: none; } }
.quote small { display: block; margin-bottom: 6px; font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---------- compare ---------- */
.compare { padding: 70px 0 40px; }
.cmp-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 860px; }
.cmp th, .cmp td { padding: 16px 20px 16px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp thead th { padding: 10px 20px 18px 0; border-bottom-color: var(--line2); }
.cmp thead img { height: 74px; width: auto; }
.cmp tbody th { font: 500 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); width: 170px; }
.cmp td { font-size: 15.5px; color: var(--ink2); }
.cmp td.big { font: 300 30px/1 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.cmp td.big small { display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--dim); margin-top: 6px; }

/* ---------- craft ---------- */
.craft { padding: clamp(120px, 16vh, 200px) 0 80px; }
.craft-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; }
.pillar { padding: 28px 30px 30px 0; border-bottom: 1px solid var(--line); }
.pillar:nth-child(even) { padding-left: 30px; border-left: 1px solid var(--line); }
.pi { font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--dim); }
.pillar h3 { margin: 14px 0 10px; font: 600 21px/1.1 var(--sans); letter-spacing: -.035em; }
.pillar p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.55; }
.patch { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 540px; }
.patch-head { display: flex; align-items: center; gap: 10px; padding: 22px 0 18px 30px; border-bottom: 1px solid var(--line); }
.patch-head .dot { display: none; }
.patch-head b { font: 500 12px/1 var(--mono); color: var(--ink); }
.patch-head b::before { content: '●'; color: var(--accent); margin-right: 8px; font-size: 9px; vertical-align: 2px; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .2; } }
.patch-head em { margin-left: auto; font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.patch-body { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 82%, transparent); }
.patch-feed { position: absolute; left: 0; right: 0; top: 0; padding: 10px 0 10px 30px; animation: feed 80s linear infinite; }
.patch:hover .patch-feed { animation-play-state: paused; }
@keyframes feed { to { transform: translateY(-50%); } }
.pn { padding: 15px 0; border-bottom: 1px solid var(--line); font: 400 14px/1.55 var(--mono); color: var(--ink2); }
.pn b { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }

/* ---------- play ---------- */
.play { padding: clamp(120px, 16vh, 200px) 0 110px; }
.cabs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 50px; perspective: 1400px; }
.cabs > .cab { grid-column: span 3; }
.cabs > .cab-lr, .cabs > .cab-hb { grid-column: span 6; aspect-ratio: 1.7; }
.cab-gh .cab-art { filter: saturate(1.1); }
.cab { position: relative; aspect-ratio: .8; border-radius: 18px; border: 1px solid var(--line); background: #0b0b0b; overflow: hidden; cursor: pointer; padding: 0; text-align: left;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), border-color .4s; }
.cab:hover { border-color: var(--line2); }
.cab-art { position: absolute; inset: 0; background-size: cover; background-position: 50% 60%; transform: scale(1.1); filter: brightness(.62) saturate(.85); transition: transform 1.4s var(--ease), filter .6s; }
.cab-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 11, .2), transparent 35%, rgba(11, 11, 11, .92)); }
.cab:hover .cab-art { transform: scale(1.02); filter: brightness(.8) saturate(1); }
.cab-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(420px 320px at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .12), transparent 60%); opacity: 0; transition: opacity .4s; }
.cab:hover .cab-glare { opacity: 1; }
.cab-logo { position: absolute; z-index: 2; left: 50%; top: 42%; width: 64%; transform: translate(-50%, -50%); filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .6)); transition: transform .9s var(--ease); }
.cab:hover .cab-logo { transform: translate(-50%, -53%) scale(1.04); }
.cab-info { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 74px; display: grid; gap: 6px; }
.cab-info b { font: 600 22px/1 var(--sans); letter-spacing: -.04em; }
.cab-info small { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cab-play { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line2); font: 500 14px/1 var(--sans); }
.cab-play .arr { transition: transform .35s var(--ease); }
.cab:hover .cab-play .arr { transform: translateX(5px); }

/* ---------- contact ---------- */
.contact { padding: clamp(110px, 14vh, 170px) 0; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact .display { font-size: clamp(42px, 5.4vw, 86px); }
.contact-points { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.contact-points li { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-points b { font: 500 15px/1.3 var(--sans); letter-spacing: -.02em; }
.contact-points span { color: var(--mute); font-size: 14.5px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.form label { display: grid; gap: 4px; }
.form label span { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.form input, .form select, .form textarea { width: 100%; padding: 12px 0 13px; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; background: transparent; color: var(--ink); font: 400 18px/1.3 var(--sans); letter-spacing: -.01em; transition: border-color .25s; -webkit-appearance: none; appearance: none; }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: #111; }
.form textarea { resize: vertical; min-height: 90px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; margin: 0; min-height: 1.4em; color: var(--mute); font-size: 15px; }
.form .is-bad { border-bottom-color: var(--accent); }

/* ---------- footer ---------- */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 30px; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-cols b { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.foot-cols a { text-decoration: none; color: var(--ink2); font-size: 15px; }
.foot-cols a:hover { color: var(--ink); }
.foot-legal { display: flex !important; gap: 14px; align-items: flex-start; color: var(--dim); font-size: 13.5px; line-height: 1.55; }
.foot-legal p { margin: 0; }
.age { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); font: 500 11px/1 var(--mono); color: var(--mute); }
.foot-mark { margin: 70px 0 14px; font: 700 min(11.2vw, 166px)/.82 var(--sans); letter-spacing: -.07em; white-space: nowrap; color: var(--ink);
  background: linear-gradient(180deg, var(--ink) 30%, rgba(242, 239, 232, .08)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.foot-copy { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- cabinet ---------- */
.cabinet { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 20px; background: rgba(5, 5, 5, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: cabFade .4s var(--ease); }
.cabinet[hidden] { display: none; }
@keyframes cabFade { from { opacity: 0; } to { opacity: 1; } }
.cab-shell { --acc: #ff5b3a; width: min(1520px, 100%); height: min(910px, 100%); display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line2); box-shadow: 0 50px 120px rgba(0, 0, 0, .7); animation: cabIn .7s var(--ease); }
@keyframes cabIn { from { transform: translateY(24px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.cab-top { display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); background: #0d0d0d; }
.cab-top-logo { height: 36px; width: auto; }
.cab-title { display: grid; gap: 4px; margin-right: auto; min-width: 0; }
.cab-title b { font: 600 15px/1 var(--sans); letter-spacing: -.03em; white-space: nowrap; }
.cab-title span { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-switch { display: flex; padding: 4px; gap: 2px; border-radius: 999px; border: 1px solid var(--line); }
.cab-switch button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; cursor: pointer; font: 450 13px/1 var(--sans); color: var(--dim); transition: color .2s, background .2s; }
.cab-switch button:hover { color: var(--ink); }
.cab-switch button.is-on { background: var(--ink); color: #0b0b0b; }
.cab-actions { display: flex; gap: 6px; }
.cab-actions > * { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; text-decoration: none; font-size: 15px; color: var(--mute); transition: color .2s, border-color .2s, background .2s; }
.cab-actions > *:hover { color: var(--ink); border-color: var(--line2); }
.cab-close:hover { background: var(--ink) !important; color: #0b0b0b !important; }
.cab-screen { position: relative; background: #000; }
.cab-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.cab-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 20px; background: #0b0b0b; transition: opacity .6s; }
.cab-loading.is-done { opacity: 0; pointer-events: none; }
.cab-loading img { width: min(300px, 60vw); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.cab-loading p { margin: 0; font: 300 italic 22px/1.35 var(--serif); max-width: 460px; color: var(--ink); }
.cab-loading small { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cab-spin { width: 160px; height: 1px; background: var(--line); overflow: hidden; display: block; }
.cab-spin i { display: none; }
.cab-spin::after { content: ''; display: block; width: 40%; height: 100%; background: var(--ink); animation: load 1.2s var(--ease2) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.cab-shell:fullscreen { width: 100%; height: 100%; border-radius: 0; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9500; pointer-events: none; display: none; mix-blend-mode: difference; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .6); display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), background .3s, border-color .3s; }
.cursor-ring b { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor-ring { width: 54px; height: 54px; }
.cursor.has-label .cursor-ring { width: 74px; height: 74px; background: #fff; border-color: #fff; }
.cursor.has-label .cursor-ring b { opacity: 1; }
.cursor.has-label .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { transform: translate(-50%, -50%) scale(.85); }
/* ---------------------------------------------------------------- Stake status */
.stake-chip { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; border: 1px solid var(--line2); font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; text-decoration: none; }
.stake-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.stake-chip.is-live { color: #b8f7c8; border-color: rgba(70, 230, 120, .45); background: rgba(40, 200, 100, .08); }
.stake-chip.is-live i { background: #3fe07a; box-shadow: 0 0 0 0 rgba(63, 224, 122, .7); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(63, 224, 122, .65); } 70% { box-shadow: 0 0 0 9px rgba(63, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 224, 122, 0); } }
a.stake-chip:hover { border-color: #3fe07a; color: #e6ffec; }
.btn-stake { background: #1fdc6b; color: #04120a; font-weight: 600; }
.btn-stake:hover { background: #4cf08a; }
.cmp .stake-chip { margin: 0; }
.cab-live { position: absolute; z-index: 4; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 999px; font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #04120a; background: #3fe07a; }
.cab-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #04120a; }
.cab-live.is-wip { color: var(--ink); background: rgba(11, 11, 11, .6); border: 1px solid var(--line2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cab-live.is-wip::before { background: #ffc24a; }
.cab-word { position: absolute; z-index: 2; left: 50%; top: 40%; transform: translate(-50%, -50%) skewX(-8deg); display: flex; flex-direction: column; align-items: center; font: 800 clamp(34px, 4vw, 58px)/.86 var(--sans); letter-spacing: -.05em; text-transform: uppercase; text-shadow: 0 14px 30px rgba(0, 0, 0, .55); }
.cab-word em { font-style: normal; color: var(--acc); }
.cab-stake { flex: 0 0 auto; white-space: nowrap; height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: #1fdc6b; color: #04120a; font: 600 12.5px/1 var(--sans); text-decoration: none; }
.cab-stake[hidden] { display: none; }
.cab-top-logo[hidden], #cabLoadLogo[hidden] { display: none; }
.cab-actions .cab-stake { width: auto; padding: 0 14px; border-radius: 999px; background: #1fdc6b; color: #04120a; font: 600 12.5px/1 var(--sans); border: 0; }
.cab-actions .cab-stake:hover { background: #4cf08a; }
.cab-out { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%), #070707; }
.cab-out p { margin: 0; font: 600 clamp(22px, 2.4vw, 34px)/1.1 var(--sans); letter-spacing: -.04em; }
.cab-out small { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------------------------------------------------------------- more games */
.more { padding: clamp(120px, 16vh, 200px) 0 40px; position: relative; }
.more-head { margin-bottom: clamp(40px, 6vh, 70px); }
/* Lane Rush: a road you can drive on */
.lr { --nitro: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); align-items: center; width: min(1500px, 100% - 2 * var(--pad)); margin: 0 auto clamp(90px, 13vh, 150px); }
.lr-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #110906; touch-action: pan-y; user-select: none; -webkit-user-select: none; isolation: isolate; }
.lr-road { position: absolute; inset: -4%; background: url(../img/more/lanerush_road.webp) center 64% / cover no-repeat; transform: scale(calc(1.04 + var(--nitro) * .07)); filter: saturate(calc(1 + var(--nitro) * .25)) blur(calc(var(--nitro) * 1.2px)); transition: filter .3s; }
.lr-road::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 8, 6, .1), transparent 40%, rgba(11, 8, 6, .55)), radial-gradient(70% 60% at 50% 42%, transparent 40%, rgba(5, 4, 3, .55)); }
.lr-wind { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.lr-car { position: absolute; left: 50%; bottom: -4%; width: 82%; margin-left: -41%; transform-origin: 50% 90%; will-change: transform; z-index: 2; }
.lr-car img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); }
.lr-shadow { position: absolute; left: 8%; right: 8%; bottom: 3%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(6px); z-index: -1; }
.lr-lamp { position: absolute; top: 50%; width: 22%; height: 18%; border-radius: 50%; mix-blend-mode: screen; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 246, 225, calc(.45 + var(--nitro) * .5)), transparent); filter: blur(4px); animation: lamp 2.6s ease-in-out infinite; }
.lr-lamp.l { left: 21%; } .lr-lamp.r { right: 15%; }
@keyframes lamp { 50% { opacity: .75; } }
.lr-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 calc(40px + var(--nitro) * 120px) rgba(255, 120, 40, calc(var(--nitro) * .35)); }
.lr-hint { position: absolute; z-index: 4; left: 50%; top: 18px; transform: translateX(-50%); margin: 0; padding: 9px 14px; border-radius: 999px; background: rgba(11, 11, 11, .55); border: 1px solid var(--line2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; transition: opacity .6s; }
.lr-hint kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-right: 4px; border-radius: 5px; border: 1px solid var(--line2); font: 600 11px/1 var(--sans); color: var(--ink); }
.lr-hint span { margin: 0 6px; color: var(--dim); }
.lr-stage.is-driven .lr-hint { opacity: 0; }
.lr-title { display: flex; flex-wrap: wrap; gap: 0 .18em; margin: 0 0 14px; font: 800 clamp(54px, 7vw, 112px)/.84 var(--sans); letter-spacing: -.06em; text-transform: uppercase; transform: skewX(-8deg); transform-origin: 0 100%; }
.lr-title em { font-style: normal; color: var(--acc); }
.lr-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 26px; }
.lr-lane { position: relative; display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.lr-lane b { font: 600 15px/1 var(--sans); letter-spacing: -.02em; }
.lr-lane span { font: 300 italic 22px/1 var(--serif); color: var(--ink2); }
.lr-lane small { font: 500 9.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.lr-lane:hover { border-color: var(--ink); }
.lr-lane.is-on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); transform: translateY(-2px); }
.lr-lane.is-on span { color: var(--acc); }
/* the workshop */
.workshop-label { margin-top: 10px; }
.wip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wip-grid.is-one { grid-template-columns: 1fr; }
.wip-grid.is-one .wip { grid-template-rows: none; grid-template-columns: 1.35fr 1fr; align-items: stretch; }
.wip-grid.is-one .wip-stage { aspect-ratio: auto; min-height: 380px; }
.wip-grid.is-one .wip-copy { align-content: center; padding: 34px 36px; }
.wip { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #121212, #0c0c0c); }
.wip-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer; }
.wip-ghost .wip-stage { background: radial-gradient(70% 80% at 50% 60%, rgba(150, 120, 255, .22), transparent 70%), radial-gradient(40% 40% at 72% 22%, rgba(255, 255, 255, .06), transparent), linear-gradient(180deg, #17121f, #0d0b12); }
.wip-ghost canvas { position: absolute; left: 50%; top: 52%; height: 118%; width: auto; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0; transition: opacity 1s; }
.wip-ghost .is-live canvas { opacity: 1; }
.wip-poke { position: absolute; right: 16px; bottom: 14px; margin: 0; font: 300 italic 18px/1 var(--serif); color: var(--mute); }
.wip-horde .wip-stage { background: #0f2a33; }
.horde-key { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); filter: blur(5px) brightness(.55) saturate(.9); transition: transform .5s var(--ease); }
.horde-fg { position: absolute; left: 50%; bottom: -6%; height: 108%; width: auto; margin-left: -27%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .55)); transition: transform .5s var(--ease); }
.horde-flash { position: absolute; left: 33%; top: 47%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #fff7d6, rgba(255, 196, 80, .8) 35%, rgba(255, 120, 30, 0)); mix-blend-mode: screen; opacity: 0; pointer-events: none; }
.horde-flash.go { animation: hflash .35s steps(2) 3; }
@keyframes hflash { 0% { opacity: 1; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.1); } }
.wip-stage.kick .horde-fg { animation: kick .35s var(--ease); }
@keyframes kick { 30% { translate: -6px 3px; } 60% { translate: 3px -1px; } }
.wip-copy { padding: 24px 26px 28px; display: grid; align-content: start; gap: 4px; }
.wip-copy h3 { margin: 4px 0 6px; font: 600 clamp(26px, 2.3vw, 36px)/1 var(--sans); letter-spacing: -.045em; }
.wip-copy .world-tag { font-size: clamp(18px, 1.5vw, 22px); font-weight: 300; font-family: var(--serif); font-style: italic; letter-spacing: -.01em; color: var(--ink2); margin-bottom: 10px; }
.wip-copy > p:not([class]) { margin: 0 0 16px; color: var(--mute); font-size: 15px; max-width: 560px; }
.wip-copy .btn { justify-self: start; margin-top: 6px; }
.wip-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #ffd27a; }
.wip-status i { width: 7px; height: 7px; border-radius: 50%; background: #ffc24a; box-shadow: 0 0 10px #ffc24a; animation: livePulse 2.4s infinite; }
.wip-stats { display: flex; flex-wrap: wrap; margin: 0 0 12px; border-top: 1px solid var(--line); }
.wip-stats div { padding: 12px 18px 0 0; }
.wip-stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.wip-stats dt { font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.wip-stats dd { margin: 0; font: 500 16px/1 var(--sans); letter-spacing: -.02em; }

@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor * { cursor: none !important; }
  .has-cursor .cursor { display: block; }
}

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+4) { margin-top: 30px; }
  .rail { display: none; }
  .bonus-cards { grid-template-columns: 1fr 1fr; }
  .hero-switch { width: 220px; }
}
@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .hero-cast { height: 66vh; width: 100vw; transform: none; left: 0; bottom: 24vh; }
  .is-ready .hero-cast { animation: castInM 1.6s var(--ease) .35s both; }
  @keyframes castInM { from { opacity: 0; transform: translateY(6%); } to { opacity: 1; transform: none; } }
  .hero-fade { height: 48vh; background: linear-gradient(180deg, transparent, rgba(11, 11, 11, .9) 45%, #0b0b0b 60%); }
  .hero-copy { width: auto; right: var(--pad); bottom: 92px; }
  .subs { bottom: 44vh; }
  .hero-sub { display: none; }
  .hero-switch { left: var(--pad); right: var(--pad); width: auto; bottom: 22px; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .hero-switch button { grid-template-columns: 1fr; gap: 4px; padding: 10px 0 12px; }
  .hs-t small { display: none; }
  .hs-bar { left: 0; }
  .hero-hint { display: none; }
  .world-copy { left: var(--pad); right: var(--pad); top: auto; bottom: 30px; transform: none; width: auto; }
  .world-pitch { display: none; }
  .world-logo { width: min(180px, 42vw); margin-bottom: 10px; }
  .world-hero { right: -6%; top: calc(var(--nav-h) + 3vh); bottom: auto; height: 44vh; }
  .world-hero[data-world-hero="dictator"], .world-hero[data-world-hero="pirates"] { height: 38vh; }
  .scene-shade { background: linear-gradient(0deg, rgba(9, 9, 9, .97) 0%, rgba(9, 9, 9, .84) 38%, rgba(9, 9, 9, .1) 62%, transparent 75%), linear-gradient(180deg, rgba(9, 9, 9, .55), transparent 20%); }
  .mult { right: auto; left: var(--pad); top: calc(var(--nav-h) + 2vh); min-width: 0; padding: 12px 14px; }
  .mult em { display: none; }
  .paper { left: 50%; top: 32%; width: min(440px, 84vw); }
  .dossier { grid-template-columns: 1fr; }
  .dossier > * { min-width: 0; }
  .dossier-games { position: static; grid-template-columns: repeat(3, 1fr); padding: 0; gap: 0; }
  .dossier-games button { grid-template-columns: 1fr; justify-items: center; text-align: center; font-size: 12.5px; border-bottom: 0; }
  .dossier-sheet { border-left: 0; }
  .ds-head, .ds-tabs, .ds-panel { padding-left: 0; }
  .ds-grid, .hero-tab, .craft-grid, .contact-grid { grid-template-columns: 1fr; }
  .patch { border-left: 0; }
  .patch-head, .patch-feed { padding-left: 0; }
  .hero-tab .ht-char { height: 340px; }
  .lr, .wip-grid { grid-template-columns: 1fr; }
  .lr-stage { aspect-ratio: 4 / 3.4; }
  .lr-car { width: 100%; margin-left: -50%; }
  .cabs { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .cabs > .cab, .cabs > .cab-lr, .cabs > .cab-hb { grid-column: auto; aspect-ratio: .95; }
  .cabs > .cab-lr, .cabs > .cab-hb { aspect-ratio: 1.25; }
  .feat-row { grid-template-columns: 1fr; gap: 6px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-legal { grid-column: 1 / -1; }
  .cab-switch { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .hero { min-height: 600px; }
  .hero-word { font-size: 26.5vw; top: calc(var(--nav-h) + 1vh); }
  .hero-cast { height: 60vh; bottom: 26vh; }
  .hero-title { font-size: 38px; }
  .hero-copy { bottom: 88px; }
  .hero-ctas .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 14px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { margin-top: 26px; }
  .world { height: 280vh; }
  #dictator { height: 370vh; }
  .world-stats { grid-template-columns: repeat(2, 1fr); }
  .world-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .world-stats div:nth-child(n+3) { margin-top: 10px; }
  .world-tag { font-size: 24px; }
  .world-btns .btn { height: 42px; padding: 0 16px; font-size: 13.5px; }
  .joust-banner b { font-size: 8vw; white-space: normal; }
  .ds-head { flex-direction: column; align-items: flex-start; }
  .ds-head-right { justify-items: start; }
  .bonus-cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(even) { padding-left: 0; border-left: 0; }
  .form { grid-template-columns: 1fr; }
  .contact-points li { grid-template-columns: 1fr; gap: 2px; }
  .foot-copy { flex-direction: column; }
  .cabinet { padding: 0; }
  .cab-shell { border-radius: 0; height: 100%; }
  .cab-title span { display: none; }
  .syms { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .sym img { width: 68px; height: 68px; }
  .subs { bottom: 46vh; }
  .subs span { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .hero-word span { opacity: 1; transform: none; filter: none; }
  .patch-feed { position: static; }
}

/* ---------- v3.1: the cat, the ghost's world, the hero swap ---------- */
.char-canvas { position: absolute; inset: 0; display: block; z-index: 1; }
.char-canvas canvas { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: block; }
.cast-cat .char-canvas { inset: 9% 2% 0 2%; }
.cast-cat .char-canvas canvas { bottom: -2%; }
.hero-sweep { position: absolute; z-index: 1; top: -10%; bottom: -10%; left: 108%; width: 30%; opacity: 0; pointer-events: none; transform: skewX(-10deg); mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 196, .08) 28%, rgba(255, 238, 212, .42) 47%, rgba(255, 250, 238, .9) 50%, rgba(255, 238, 212, .42) 53%, rgba(255, 232, 196, .08) 72%, transparent); filter: blur(6px); }
.hero-sweep::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: rgba(255, 250, 240, .9); box-shadow: 0 0 24px 6px rgba(255, 232, 196, .45); filter: blur(.5px); }
.hero-caption { position: absolute; z-index: 4; right: var(--pad); bottom: calc(max(5.5vh, 40px) + 300px); margin: 0; width: 260px; opacity: 0; pointer-events: none; text-align: left; white-space: nowrap; }
.hero-caption small { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.hero-caption b { display: block; font: 300 italic clamp(30px, 3vw, 52px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); text-shadow: 0 6px 30px rgba(0, 0, 0, .7); }
.stake-chip.is-wip { color: #d9d0ff; border-color: rgba(169, 155, 255, .45); background: rgba(169, 155, 255, .08); }
.stake-chip.is-wip i { background: #a99bff; }
.pn.g b { color: #c4b8ff; }
.ds-empty { margin: 10px 0; max-width: 620px; font: 300 italic 22px/1.45 var(--serif); color: var(--ink2); }

.world-hero[data-world-hero="ghost"] { aspect-ratio: 1; height: min(74vh, 46vw); right: 3%; }
.g-night { opacity: 0; transition: opacity .25s linear; }
.haunt { position: absolute; z-index: 4; right: max(5%, 48px); top: 50%; width: min(600px, 44vw); padding: 18px 18px 14px; border-radius: 22px; transform: translateY(-46%) scale(.96); opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 16, 34, .78), rgba(10, 9, 16, .86)); border: 1px solid rgba(169, 155, 255, .22); box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.haunt.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.haunt-top { display: flex; justify-content: space-between; gap: 12px; margin: 0 4px 10px; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.haunt-top em { font-style: normal; color: #c9bdff; }
.haunt-mults, .haunt-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.hm { justify-self: center; min-width: 52px; padding: 6px 8px; border-radius: 999px; text-align: center; font: 600 13px/1 var(--mono); color: var(--dim); border: 1px solid var(--line); opacity: .35; transition: opacity .4s, color .4s, border-color .4s, background .4s; }
.hm.is-on { opacity: 1; color: #1a1205; background: linear-gradient(180deg, #ffe08a, #f2b632); border-color: transparent; box-shadow: 0 0 22px rgba(242, 193, 78, .35); }
.hm.pop { animation: pop .5s var(--ease); }
.haunt-board { margin-top: 10px; }
.hr { position: relative; display: grid; gap: 8px; padding: 6px; border-radius: 14px; cursor: pointer; transition: background .4s, box-shadow .4s; }
.hr:hover { background: rgba(255, 255, 255, .035); }
.hr.is-haunted { background: linear-gradient(180deg, rgba(169, 155, 255, .2), rgba(169, 155, 255, .05)); box-shadow: inset 0 0 0 1px rgba(169, 155, 255, .4), 0 0 32px rgba(150, 130, 255, .18); }
.hr.flash::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(60% 40% at 50% 50%, rgba(220, 210, 255, .55), transparent 70%); animation: hauntFlash .8s ease-out forwards; pointer-events: none; }
@keyframes hauntFlash { from { opacity: 1; } to { opacity: 0; } }
.hc { position: relative; aspect-ratio: .86; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.hc img { width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.hc.is-h { background: var(--hb, #1d2a4a); box-shadow: inset 0 0 0 2px rgba(214, 170, 82, .75), inset 0 0 18px rgba(0, 0, 0, .45); }
.hc.h1 { --hb: linear-gradient(180deg, #2b4f86, #172a4d); } .hc.h2 { --hb: linear-gradient(180deg, #7a5532, #43301c); } .hc.h3 { --hb: linear-gradient(180deg, #2a6d63, #163b36); } .hc.h4 { --hb: linear-gradient(180deg, #4e3a78, #281d42); }
.hc.is-g { background: radial-gradient(70% 70% at 50% 40%, rgba(255, 214, 110, .35), rgba(120, 80, 10, .2)); box-shadow: inset 0 0 0 2px #f2c14e, 0 0 24px rgba(242, 193, 78, .4); }
.hc.is-gh { background: radial-gradient(60% 60% at 50% 45%, rgba(220, 210, 255, .28), transparent 75%); }
.hc.is-w { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(214, 170, 82, .4); }
.hc.land img { animation: ghostLand .9s cubic-bezier(.2,.8,.2,1); }
@keyframes ghostLand { from { transform: translateY(-120%) scale(.7); opacity: 0; filter: blur(6px); } 60% { opacity: 1; filter: none; } to { transform: none; opacity: 1; } }
.hc.fright img { animation: fright .5s linear; }
@keyframes fright { 0%, 100% { transform: none; } 20% { transform: translateX(-5%) rotate(-4deg); } 40% { transform: translateX(5%) rotate(4deg); } 60% { transform: translateX(-4%) rotate(-3deg); } 80% { transform: translateX(3%) rotate(2deg); } }
.hc.gold img { animation: goldPop .6s var(--ease); }
@keyframes goldPop { 0% { transform: scale(.8); filter: brightness(2.2); } 60% { transform: scale(1.08); } 100% { transform: none; filter: none; } }
.hc.shrug img { animation: shrugIt .55s ease; }
@keyframes shrugIt { 0%, 100% { transform: none; } 40% { transform: translateY(-6%) rotate(3deg); } }
.haunt-foot { display: flex; align-items: center; gap: 14px; margin: 12px 4px 2px; }
.haunt-foot b { font: 500 14px/1 var(--sans); letter-spacing: -.01em; transition: color .4s; }
.haunt.is-hot .haunt-foot b { color: #ffd36b; }
.haunt-foot em { margin-left: auto; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--dim); }
.haunt-foot button { display: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: none; color: var(--ink2); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.haunt.is-manual .haunt-foot button { display: inline-block; }
.haunt.is-manual .haunt-foot em { display: none; }
@media (max-width: 980px) {
  .haunt { left: var(--pad); right: var(--pad); width: auto; top: calc(var(--nav-h) + 2vh); transform: translateY(-3%) scale(.97); padding: 12px 12px 10px; }
  .haunt.is-on { transform: none; }
  .haunt-top { display: none; }
  .hc { aspect-ratio: 1; }
  .world.is-haunting .world-copy > .label { opacity: 0 !important; }
  .haunt-mults, .haunt-board, .hr { gap: 5px; }
  .hm { min-width: 0; padding: 5px 4px; font-size: 11px; }
  .world-hero[data-world-hero="ghost"] { height: 40vh; right: -4%; }
  .hero-caption { display: none; }
  .wip-grid.is-one .wip { grid-template-columns: 1fr; }
  .wip-grid.is-one .wip-stage { min-height: 0; aspect-ratio: 16 / 10; }
}
