/* Kai · Season 1 — the "Neon Opulence" system of Fail or Not v1, plus the golden portal from the Kai videos. */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
[hidden] { display: none !important; }
:root {
  --bg: #07020F;
  --ink: #FFFFFF;
  --ink2: rgba(255, 255, 255, .74);
  --ink3: rgba(255, 255, 255, .5);
  --a1: #00E5FF; --a2: #3B82F6;
  --b1: #FF2BD6; --b2: #8B5CF6;
  --g2: #FFC53D;
  --lose: #FF3B5C;
  --glass: rgba(14, 6, 30, .58);
  --line: rgba(255, 255, 255, .16);
  --ff-d: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --ff: 'Inter', system-ui, -apple-system, sans-serif;
  --spring: cubic-bezier(.2, 1.4, .4, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --gold: linear-gradient(180deg, #FFFBE6 0%, #FFE27A 30%, #FFC53D 52%, #B8860B 72%, #FFE9A0 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--ff); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
.num { font-variant-numeric: tabular-nums; }

/* desktop backdrop */
.ambient { position: fixed; inset: 0; overflow: hidden; filter: blur(80px) saturate(140%); opacity: .5; }
.ambient i { position: absolute; border-radius: 50%; width: 60vmax; height: 60vmax; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.ambient i:nth-child(1) { background: radial-gradient(circle, var(--b1), transparent 65%); left: -15%; top: -20%; }
.ambient i:nth-child(2) { background: radial-gradient(circle, var(--a1), transparent 65%); right: -20%; top: 20%; animation-delay: -6s; }
.ambient i:nth-child(3) { background: radial-gradient(circle, var(--g2), transparent 65%); left: 10%; bottom: -30%; animation-delay: -11s; }
@keyframes drift { to { transform: translate(8%, 6%) scale(1.15); } }

/* 9:16 stage */
#app { height: 100%; display: grid; place-items: center; position: relative; }
#stage { position: relative; overflow: hidden; isolation: isolate; background: #000; width: 100vw; height: 100dvh; container-type: size; }
@media (min-aspect-ratio: 10/16) {
  #stage { height: min(96dvh, calc(100vw * 16 / 9)); width: calc(min(96dvh, calc(100vw * 16 / 9)) * 9 / 16); border-radius: 30px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 120px rgba(255, 43, 214, .25), 0 0 200px rgba(0, 229, 255, .12); }
}
video, #freeze { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
video.layer { opacity: 0; z-index: 0; }
video.layer.on { opacity: 1; z-index: 1; }
#freeze { z-index: 2; transition: filter .7s var(--out), transform .9s var(--out); }
#freeze.blur { filter: blur(6px) saturate(1.25) brightness(.62); transform: scale(1.06); }

#fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s; }
#fx.on { opacity: 1; }
#fx .vign { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,2,15,.6) 0%, transparent 16%, transparent 50%, rgba(7,2,15,.88) 100%); }
#fx .flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
#fx.hit .flash { animation: flash .2s ease-out; }
@keyframes flash { 0% { opacity: .6 } 100% { opacity: 0 } }

.vignette { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; }
.vignette.win { box-shadow: inset 0 0 120px 30px rgba(255,197,61,.75); animation: pulseIn 1.4s var(--out) both; }
.vignette.lose { box-shadow: inset 0 0 120px 30px rgba(255,59,92,.7); animation: pulseIn 1.4s var(--out) both; }
.vignette.win::after, .vignette.lose::after { content: ''; position: absolute; inset: 0; animation: flash .55s ease-out both; }
.vignette.win::after { background: radial-gradient(circle at 50% 45%, #FFF3B0, rgba(255,197,61,.5) 50%, transparent 80%); }
.vignette.lose::after { background: radial-gradient(circle at 50% 45%, rgba(255,59,92,.8), transparent 75%); }
@keyframes pulseIn { 0% { opacity: 0 } 15% { opacity: 1 } 100% { opacity: .5 } }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }
#stage.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%,90% { translate: -2px 0 } 20%,80% { translate: 4px 1px } 30%,50%,70% { translate: -7px -1px } 40%,60% { translate: 7px 1px } }

/* HUD */
#hud { position: absolute; z-index: 20; top: calc(14px + var(--sat)); left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; }
.wallet { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 99px; background: var(--glass);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border: 1px solid var(--line); font: 800 15px var(--ff-d); }
.wallet.bump { animation: bump .6s var(--spring); }
.wallet.drop { animation: drop .5s ease; }
@keyframes bump { 40% { transform: scale(1.18); box-shadow: 0 0 30px rgba(255,197,61,.8); } }
@keyframes drop { 30% { transform: translateY(3px); color: var(--lose); } }
.coin { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--ff-d); color: #fff; background: radial-gradient(circle at 35% 30%, #7FF0CF, #26A17B 55%, #0E6B4F); box-shadow: inset 0 0 0 2px rgba(0,60,40,.4), 0 0 12px rgba(38,161,123,.6); }
.w-cur { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink2); margin-left: -3px; }
.r-amt .cur, .f-title .cur { font-size: .32em; margin-left: .25em; letter-spacing: .04em; }
.rounds { display: flex; gap: 6px; margin-left: auto; }
.rounds i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); transition: background .3s, box-shadow .3s; }
.rounds i.cur { background: #fff; box-shadow: 0 0 10px #fff; }
.rounds i.ok { background: var(--g2); box-shadow: 0 0 10px var(--g2); }
.rounds i.miss { background: var(--lose); }
.rounds i.none { background: rgba(255,255,255,.5); }

/* bet ticket */
.ticket { position: absolute; z-index: 20; top: calc(62px + var(--sat)); left: 14px; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center;
  padding: 10px 14px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,197,61,.6);
  box-shadow: 0 0 24px rgba(255,197,61,.25); animation: slideIn .5s var(--spring) both; }
.t-label { grid-column: 1 / -1; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.t-pick { font: 800 14px var(--ff-d); }
.t-amt { font-size: 12px; color: var(--ink2); grid-column: 1; }
.t-state { grid-column: 2; grid-row: 2 / 4; display: flex; gap: 3px; }
.t-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--g2); animation: dots 1s infinite; }
.t-state i:nth-child(2) { animation-delay: .15s } .t-state i:nth-child(3) { animation-delay: .3s }
@keyframes dots { 0%,100% { opacity: .25; transform: scale(.7) } 50% { opacity: 1; transform: scale(1) } }
.ticket.won { border-color: var(--g2); box-shadow: 0 0 30px rgba(255,197,61,.6); }
.ticket.lost { border-color: var(--lose); box-shadow: none; opacity: .85; }
.ticket.won .t-state, .ticket.lost .t-state { display: none; }
@keyframes slideIn { from { transform: translateX(-120%); } }

/* bet panel */
#bet { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; padding: 18px 16px calc(14px + var(--sab)); animation: rise .6s var(--spring) both; }
#bet.closing { animation: sink .4s var(--out) forwards; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes sink { to { transform: translateY(110%); opacity: 0; } }
.timer { height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; margin: 0 4px 16px; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--a1), var(--b1)); transform-origin: left; }
.q-kicker { text-align: center; font: 700 11px var(--ff-d); letter-spacing: .2em; text-transform: uppercase; color: var(--g2); }
.q { margin: 8px 0 18px; text-align: center; font: 900 min(30px, 7.2cqw) / 1.12 var(--ff-d); text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.opt { position: relative; display: grid; gap: 4px; justify-items: center; padding: 16px 10px 14px; border-radius: 22px; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  transition: transform .2s var(--spring), opacity .3s, filter .3s; animation: optIn .6s var(--spring) both; }
.opt.b { animation-delay: .08s; }
@keyframes optIn { from { transform: translateY(30px) scale(.9); opacity: 0; } }
.opt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--c1), var(--c2), var(--c1)); animation: spin 3s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.opt::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, var(--glow), transparent 70%); opacity: .35; pointer-events: none; }
.opt.a { --c1: var(--a1); --c2: var(--a2); --glow: rgba(0,229,255,.55); }
.opt.b { --c1: var(--b1); --c2: var(--b2); --glow: rgba(255,43,214,.55); }
@keyframes spin { to { --ang: 360deg; } }
.opt:active { transform: scale(.95); }
.o-key { font: 800 10px var(--ff-d); letter-spacing: .1em; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c1); color: #07020F; }
.o-label { font: 800 15px/1.15 var(--ff-d); text-align: center; min-height: 2.3em; display: grid; place-items: center; }
.o-mult { font: 900 26px/1 var(--ff-d); background: linear-gradient(180deg, #fff, var(--c1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.o-win { font-size: 12px; color: var(--ink2); }
.opt.picked { transform: scale(1.06); filter: brightness(1.25); box-shadow: 0 0 40px var(--glow); }
.opt.picked::after { opacity: .8; }
.opt.dim { opacity: .25; filter: grayscale(.8); transform: scale(.94); }
.chips { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.chips button { min-width: 58px; height: 38px; padding: 0 10px; border-radius: 99px; font: 800 13px var(--ff-d); background: rgba(255,255,255,.08); border: 1px solid var(--line); transition: all .2s var(--spring); }
.chips button.on { background: var(--gold); color: #3A2400; border-color: transparent; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,197,61,.5); }
.chips button:disabled { opacity: .3; }
.chips button small { margin-left: 4px; font-size: 9px; letter-spacing: .04em; opacity: .75; }
.skip { display: block; margin: 6px auto 0; height: 40px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--ink3); }

/* portal: the golden whirlpool the videos use for every world change */
#portal { position: absolute; z-index: 18; inset: 0; background: #140A00; animation: fadeIn .35s both; overflow: hidden; }
#portal::before { content: ''; position: absolute; inset: 0; background: radial-gradient(75% 50% at 50% 45%, rgba(20,10,0,0) 45%, rgba(10,4,0,.7) 100%); z-index: 1; pointer-events: none; }
#portal.leaving { animation: portalOut .45s var(--out) forwards; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.92); } }
@keyframes portalOut { to { opacity: 0; transform: scale(1.6); } }
.vx { position: absolute; left: 50%; top: 45%; width: 0; height: 0; }
.vx > *, .vx-breathe > * { position: absolute; left: 0; top: 0; }
.vx-halo { width: 460px; height: 460px; margin: -230px; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,50,.55) 0%, rgba(255,140,0,.2) 40%, rgba(0,0,0,0) 68%); }
.vx-breathe { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1) } 50% { transform: scale(1.07) } }
.vx-disc, .vx-inner { border-radius: 50%; object-fit: cover; animation: vxSpin var(--d) linear infinite; }
.vx-disc { --d: 1.3s; width: 250px; height: 250px; margin: -125px; filter: saturate(1.2) contrast(1.15);
  -webkit-mask: radial-gradient(circle, #000 62%, transparent 71%); mask: radial-gradient(circle, #000 62%, transparent 71%); }
.vx-inner { --d: .7s; width: 140px; height: 140px; margin: -70px; mix-blend-mode: screen;
  -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%); mask: radial-gradient(circle, #000 35%, transparent 70%); }
@keyframes vxSpin { to { transform: rotate(-360deg) } }
.vx-rim { width: 262px; height: 262px; margin: -131px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,226,122,.95), 0 0 18px 4px rgba(255,197,61,.85), inset 0 0 24px 6px rgba(255,197,61,.7); }
.vx-streaks { width: 300px; height: 300px; margin: -150px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,236,150,.9) 0deg 3deg, rgba(0,0,0,0) 3deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 86%, #000 89%, #000 94%, transparent 100%); mask: radial-gradient(circle, transparent 86%, #000 89%, #000 94%, transparent 100%);
  filter: drop-shadow(0 0 6px #FFC53D); animation: vxSpin 2.4s linear infinite; }
.vx-core { width: 70px; height: 70px; margin: -35px; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, #FFFFFF 0%, #FFF6D0 22%, rgba(255,226,122,.75) 45%, rgba(255,197,61,0) 75%); animation: corePulse 1.6s ease-in-out infinite; }
@keyframes corePulse { 0%,100% { opacity: .85; transform: scale(1) } 50% { opacity: 1; transform: scale(1.12) } }
.vx-glyphs { animation: spinRaw 22s linear infinite; }
@keyframes spinRaw { to { transform: rotate(360deg) } }
.vx-glyphs span { position: absolute; left: 0; top: 0; font: 700 14px var(--ff-d); color: #FFF3B0; text-shadow: 0 0 8px #FFC53D, 0 0 18px rgba(255,160,0,.9);
  transform-origin: 0 0; animation: flicker 1.8s ease-in-out infinite; }
@keyframes flicker { 0%,100% { opacity: .95 } 50% { opacity: .4 } }
.vx-dust i { position: absolute; left: 0; top: 0; border-radius: 50%; background: #FFF3B0; box-shadow: 0 0 8px #FFC53D; transform-origin: 0 0; opacity: 0;
  animation: suck var(--dur) var(--delay) cubic-bezier(.5,0,.9,.6) infinite; }
@keyframes suck { 0% { transform: rotate(var(--a)) translateX(var(--r)) scale(1); opacity: 0 } 15% { opacity: 1 } 100% { transform: rotate(calc(var(--a) - 320deg)) translateX(6px) scale(.3); opacity: 0 } }
.vx-pct { transform: translate(-50%, -50%); display: flex; align-items: baseline; font: 900 20px var(--ff-d); color: #3A2400; z-index: 2; }
.vx-pct small { font-size: 10px; margin-left: 1px; }
.vx-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(13cqh + var(--sab)); display: grid; justify-items: center; gap: 10px; text-align: center; }
.w-title { font: 900 22px var(--ff-d); letter-spacing: .02em; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.w-step { font-size: 14px; color: rgba(255,255,255,.8); }
.w-bar { width: 200px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 6px; }
.w-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #B86A00, #FFC53D, #FFFBE6); box-shadow: 0 0 12px #FFC53D; }

/* result */
#verdict { position: absolute; z-index: 22; left: 0; right: 0; top: 50%; text-align: center; pointer-events: none; animation: resIn .7s var(--spring) both; }
#verdict.out { animation: resOut .5s forwards; }
@keyframes resIn { from { transform: translateY(-50%) scale(.3); opacity: 0; } to { transform: translateY(-50%); } }
@keyframes resOut { from { transform: translateY(-50%); } to { transform: translateY(-80%) scale(.8); opacity: 0; } }
.r-kicker { font: 900 min(40px, 9cqw) / 1 var(--ff-d); letter-spacing: .02em; }
.r-amt { margin: 6px 0 4px; font: 900 min(76px, 17cqw) / 1 var(--ff-d); }
.r-sub { font-size: 15px; color: var(--ink2); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
#verdict.ok .r-kicker, #verdict.ok .r-amt { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 20px rgba(255,197,61,.6)) drop-shadow(0 2px 0 #6B4500); }
#verdict.miss .r-kicker { color: var(--lose); text-shadow: 0 0 30px rgba(255,59,92,.7); }
#verdict.miss .r-amt { color: #fff; opacity: .9; text-shadow: 0 4px 24px rgba(0,0,0,.7); }

/* lobby, episodes, final */
#intro, #end, #eps { position: absolute; inset: 0; z-index: 40; }
#intro { display: flex; flex-direction: column; text-align: center; padding: calc(24px + var(--sat)) 22px calc(24px + var(--sab)); background: rgba(7,2,15,.55); overflow: hidden auto; }
#intro.leaving { animation: portalOut .5s forwards; }
.lobby-bg { position: fixed; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(14px) brightness(.5) saturate(1.4); z-index: -1; }
.brand-top { margin-bottom: 6px; filter: drop-shadow(0 0 18px rgba(0,229,255,.5)) drop-shadow(0 0 4px rgba(59,130,246,.6)); pointer-events: none; }
.brand-top i { display: block; width: min(132px, 32vw); height: min(65.5px, 15.9vw);
  background: linear-gradient(180deg, #fff 0%, #D6F4FF 40%, #5FD8FF 62%, #3B82F6 100%);
  -webkit-mask: url(media/stake-logo.svg) center / contain no-repeat; mask: url(media/stake-logo.svg) center / contain no-repeat; }
.lobby-in { display: grid; justify-items: center; gap: 14px; margin: auto 0; flex-shrink: 0; }
.l-kicker { font: 700 11px var(--ff-d); letter-spacing: .22em; text-transform: uppercase; color: var(--g2); }
.logo { font: 900 min(74px, 17cqw) / .92 var(--ff-d); letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 0%, #FFD6F6 45%, #FF7AE6 65%, #B07CFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(255,43,214,.55)); }
.logo em { font-style: normal; font-size: .5em; vertical-align: middle; background: var(--gold); -webkit-background-clip: text; background-clip: text; }
.l-tag { max-width: 300px; color: var(--ink2); font-size: 15px; line-height: 1.4; }
.l-how { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.l-how li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.l-how b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--ff-d); background: rgba(255,255,255,.1); border: 1px solid var(--line); }
.play { position: relative; margin-top: 10px; width: min(300px, 80cqw); height: 64px; border-radius: 20px; font: 900 20px var(--ff-d); letter-spacing: .06em; text-transform: uppercase; color: #2A1800;
  background: var(--gold); box-shadow: 0 10px 40px rgba(255,197,61,.45), inset 0 -4px 0 rgba(120,70,0,.35), inset 0 2px 0 rgba(255,255,255,.7); animation: glow 2.2s ease-in-out infinite; }
.play:active { transform: scale(.96); }
@keyframes glow { 50% { box-shadow: 0 10px 60px rgba(255,197,61,.75), inset 0 -4px 0 rgba(120,70,0,.35), inset 0 2px 0 rgba(255,255,255,.7); } }
.ghost { height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--ink2); font: 700 12px var(--ff-d); letter-spacing: .06em; }
.l-bal { font-size: 13px; color: var(--ink3); }

#eps { display: flex; flex-direction: column; gap: 12px; padding: calc(56px + var(--sat)) 16px calc(20px + var(--sab)); background: rgba(7,2,15,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow-y: auto; }
#eps h2 { font: 900 30px var(--ff-d); }
#eps .ghost { align-self: center; }
.dir { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.dir input { accent-color: var(--g2); width: 18px; height: 18px; }
.ep-list { display: grid; gap: 8px; }
.ep-sub { font-size: 13px; line-height: 1.45; color: var(--ink2); }
.ep-head { margin-top: 6px; font: 700 10px var(--ff-d); letter-spacing: .16em; text-transform: uppercase; color: var(--g2); }
.ep-item { display: grid; grid-template-columns: auto 1fr; justify-items: start; gap: 2px 12px; text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.ep-item:active { transform: scale(.98); }
.ep-item .n { grid-row: span 2; align-self: center; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--ff-d); background: var(--gold); color: #3A2400; }
.ep-item .w { font: 800 15px var(--ff-d); }
.ep-item .eq { font-size: 12px; color: var(--ink3); }

#end { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: calc(24px + var(--sat)) 22px calc(24px + var(--sab)); text-align: center; overflow: hidden auto;
  background: rgba(7,2,15,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: fadeIn .5s both; }
.f-ending { font: 800 18px var(--ff-d); color: var(--ink2); }
.f-title { font: 900 min(80px, 18cqw) / 1 var(--ff-d); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f-title.neg { background: none; color: var(--lose); }
.f-sub { color: var(--ink2); }
.f-list { display: grid; gap: 8px; width: min(320px, 86cqw); margin: 10px 0; }
.f-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 14px; text-align: left; }
.f-row b { font-family: var(--ff-d); white-space: nowrap; }
.f-row .ok { color: var(--g2); } .f-row .miss { color: var(--lose); } .f-row .none { color: var(--ink3); }
#end > * { flex-shrink: 0; }
#end > :first-child { margin-top: auto; }
#end > :last-child { margin-bottom: auto; }
#again { font-size: min(20px, 5.4cqw); letter-spacing: .03em; }

/* short screens (SE, in-app browsers with toolbars): tighten the lobby so Play and the 18+ line stay on screen */
@media (max-height: 640px) {
  .lobby-in { gap: 9px; }
  .brand-top i { width: min(104px, 28vw); height: min(51.7px, 13.9vw); }
  .l-how { margin: 2px 0; gap: 5px; }
  .l-how li, .l-tag { font-size: 14px; }
  .play { margin-top: 4px; height: 56px; }
  .ghost { height: 40px; }
  #end { gap: 8px; }
  .f-row { padding: 9px 12px; }
}
/* the game is portrait-only: a phone on its side gets a hint instead of a 200px-wide stage */
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  #app::after { content: 'Rotate your phone to portrait'; position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
    background: var(--bg); color: var(--ink2); font: 800 16px var(--ff-d); text-align: center; }
}

@media (prefers-reduced-motion: reduce) { .opt::before, .vx-disc, .vx-inner, .vx-streaks, .vx-glyphs { animation-duration: 6s; } }
