:root {
  --navy: #0b1626; --gold: #f6b73c; --amber: #ff8a3d; --magenta: #ff7a59; --cyan: #1fc8c0; --sand: #ffd9a0; --ivory: #fff4ec; --trim: #d4b56a;
  --glass: rgba(12, 28, 46, 0.48); --glass-strong: rgba(10, 24, 40, 0.72); --line: rgba(244, 185, 66, 0.26); --line-teal: rgba(31, 200, 192, 0.28);
  --display: "Syne", "Outfit", system-ui, sans-serif; --ui: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --r: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--navy); color: var(--ivory); font-family: var(--ui); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--magenta); color: #fff; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; outline: none; touch-action: none; }
#fade { position: fixed; inset: 0; background: #08121f; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
#fade.on { opacity: 1; }
body.booting #game-ui { visibility: hidden; }

/* ---------- glass + buttons ---------- */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); }
.glass-hud { background: rgba(10, 24, 40, 0.42); border: 1px solid rgba(255, 244, 236, 0.1); border-radius: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; user-select: none; transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, #ffd27a 0%, var(--gold) 35%, var(--amber) 100%); color: #1a0e06; box-shadow: 0 8px 30px rgba(255, 138, 61, .35), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(255, 138, 61, .55), 0 0 0 1px rgba(255, 210, 122, .6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { background: rgba(255, 244, 236, .06); border-color: rgba(255, 244, 236, .18); color: var(--ivory); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 244, 236, .12); border-color: rgba(244, 185, 66, .55); box-shadow: 0 0 24px rgba(244, 185, 66, .18); }
.btn-outline { background: transparent; border-color: rgba(212, 181, 106, .55); color: var(--sand); }
.btn-outline:hover { border-color: var(--gold); color: var(--ivory); }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 17px; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-xs { --h: 30px; padding: 0 14px; font-size: 12.5px; }
.btn .arrow { font-style: normal; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,244,236,.18); background: rgba(10,24,40,.45); backdrop-filter: blur(10px); display: grid; place-items: center; cursor: pointer; transition: transform .18s var(--ease), border-color .2s; padding: 0; }
.icon-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.sound-toggle .snd-off { display: none; }
body.muted .sound-toggle .snd-on { display: none; }
body.muted .sound-toggle .snd-off { display: block; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: radial-gradient(1200px 600px at 50% 110%, rgba(255, 122, 89, .18), transparent 60%), radial-gradient(900px 500px at 50% -10%, rgba(244, 185, 66, .12), transparent 60%), #08121f; transition: opacity .9s var(--ease), visibility .9s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-card { width: min(420px, 86vw); padding: 36px 34px 30px; text-align: center; border-radius: 24px; background: rgba(255,255,255,.035); border: 1px solid rgba(244,185,66,.22); backdrop-filter: blur(20px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.logo-mark { width: 74px; height: 74px; filter: drop-shadow(0 10px 30px rgba(255, 122, 89, .35)); animation: float 3.2s ease-in-out infinite; }
.loader-word { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .02em; margin: 14px 0 22px; }
.loader-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--amber), var(--magenta)); box-shadow: 0 0 16px var(--gold); transition: width .35s var(--ease); }
.loader-row { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: rgba(255,244,236,.7); font-family: var(--mono); }
.loader-tip { margin: 22px 0 0; font-size: 13.5px; color: rgba(255,217,160,.75); min-height: 2.6em; transition: opacity .4s; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- landing ---------- */
#landing { position: fixed; inset: 0; z-index: 10; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
#landing.leaving { opacity: 0; pointer-events: none; transition: opacity .7s var(--ease); }
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100vw - 32px)); height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; z-index: 20; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .01em; }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; color: rgba(255,244,236,.82); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(255,244,236,.08); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 max(28px, 6vw) 9vh; background: linear-gradient(90deg, rgba(10,22,38,.55) 0%, rgba(10,22,38,.25) 38%, rgba(10,22,38,0) 62%), linear-gradient(180deg, rgba(10,22,38,.3) 0%, rgba(10,22,38,0) 25%, rgba(10,22,38,0) 55%, rgba(10,22,38,.6) 100%); }
.hero-inner { max-width: 980px; animation: rise 1.2s var(--ease) both .2s; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sand); padding: 8px 14px; border-radius: 999px; background: rgba(10,24,40,.35); border: 1px solid rgba(255,217,160,.2); backdrop-filter: blur(8px); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6.6vw, 104px); line-height: .94; letter-spacing: -.035em; margin: 22px 0 18px; text-shadow: none; filter: drop-shadow(0 6px 30px rgba(10,22,38,.45)); background: linear-gradient(180deg, #fff 30%, #fff0d0 65%, #ffcf6a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: rgba(255,244,236,.88); max-width: 560px; margin: 0 0 30px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.ca { margin-top: 28px; padding: 14px 16px 14px 18px; display: inline-block; min-width: min(560px, 100%); }
.ca-label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ca-row { display: flex; align-items: center; gap: 12px; }
.ca-row code { font-family: var(--mono); font-size: 14.5px; color: var(--ivory); word-break: break-all; flex: 1; }
.ca.empty .ca-row code { color: rgba(255,244,236,.6); }
.btn-copy { --h: 34px; padding: 0 16px; font-size: 13px; background: rgba(31,200,192,.12); border-color: var(--line-teal); color: var(--cyan); }
.btn-copy.copied { background: var(--cyan); color: #04201d; }
.ca-note { margin-top: 6px; font-size: 12.5px; color: rgba(255,244,236,.6); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; border: 1.5px solid rgba(255,244,236,.35); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
#nogl { position: absolute; right: max(28px, 6vw); bottom: 9vh; max-width: 380px; padding: 22px 24px; }
#nogl h3 { font-family: var(--display); margin: 0 0 8px; }
#nogl p { margin: 0 0 14px; color: rgba(255,244,236,.8); line-height: 1.55; font-size: 15px; }
body.nogl { overflow: auto; background: radial-gradient(700px 500px at 75% 30%, rgba(255,220,150,.75), transparent 60%), linear-gradient(180deg, #2f6fc0 0%, #7fb4ec 45%, #f3d9a8 72%, #1fa6a6 100%); }
body.nogl #gl { display: none; }
body.nogl [data-play], body.nogl [data-cab-play] { display: none; }

.sections { position: relative; background: linear-gradient(180deg, rgba(10,22,38,.65) 0%, rgba(10,22,38,.86) 18%, rgba(10,22,38,.93) 100%); backdrop-filter: blur(3px); }
.section { width: min(1180px, calc(100vw - 48px)); margin: 0 auto; padding: 110px 0 30px; }
.section-head { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; margin-bottom: 34px; }
.kicker { font-family: var(--mono); color: var(--gold); font-size: 14px; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.03em; margin: 0; }
.section-head p { grid-column: 2; margin: 10px 0 0; color: rgba(255,244,236,.72); font-size: 18px; max-width: 620px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); border-color: rgba(244,185,66,.6); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 40px rgba(255,122,89,.15); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #1f4a6a, #10243a); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media .tag { position: absolute; top: 12px; left: 12px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(10,22,38,.6); border: 1px solid rgba(255,244,236,.15); backdrop-filter: blur(8px); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-family: var(--display); font-size: 26px; margin: 0; letter-spacing: -.01em; }
.card-body p { margin: 0 0 8px; color: rgba(255,244,236,.75); line-height: 1.55; font-size: 15.5px; flex: 1; }
.card-body .btn { align-self: flex-start; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.how { padding: 26px 28px; }
.how h4 { margin: 0 0 16px; font-family: var(--display); font-size: 22px; }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.keys li { display: grid; grid-template-columns: 190px 1fr; align-items: center; color: rgba(255,244,236,.82); font-size: 15px; }
.keys.compact li { grid-template-columns: 130px 1fr; font-size: 14px; }
.keys li > span { color: var(--sand); font-size: 14px; }
kbd { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 8px; margin-right: 4px; border-radius: 7px; background: rgba(255,244,236,.08); border: 1px solid rgba(255,244,236,.2); border-bottom-width: 2px; font-family: var(--mono); font-size: 12.5px; color: var(--ivory); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.feature b { font-family: var(--display); font-size: 18px; color: var(--ivory); }
.feature span { color: rgba(255,244,236,.7); font-size: 14.5px; line-height: 1.5; }
.footer { width: min(1180px, calc(100vw - 48px)); margin: 90px auto 0; padding: 26px 0 34px; border-top: 1px solid rgba(212,181,106,.25); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 14px; }
.foot-left { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-center a { color: var(--sand); text-decoration: none; }
.foot-right { justify-self: end; }
.muted { color: rgba(255,244,236,.55); }

/* ---------- game ui ---------- */
#game-ui { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#game-ui > * { pointer-events: auto; }
#game-ui .hud, #game-ui #countdown, #game-ui #banner, #game-ui #popups, #game-ui #crosshair, #game-ui #intro-skip { pointer-events: none; }
.screen { position: absolute; inset: 0; display: grid; place-items: center; }
.game-sound { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 70px; z-index: 5; }
.hint-pill { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: rgba(10,22,38,.45); border: 1px solid rgba(255,244,236,.14); font-size: 13.5px; color: rgba(255,244,236,.75); backdrop-filter: blur(8px); animation: rise .8s var(--ease) both 1s; }
#title { pointer-events: none; }
#title .title-lockup { text-align: center; animation: lockup 1.4s var(--ease) both; }
#title .ui-block, #title .back-link { pointer-events: auto; }
.title-logo { width: 96px; height: 96px; filter: drop-shadow(0 16px 50px rgba(255, 122, 89, .5)); }
.title-word { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 11vw, 150px); letter-spacing: -.045em; line-height: .9; margin: 12px 0 8px; background: linear-gradient(180deg, #fff 25%, #fff0d0 60%, #ffc04a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 30px rgba(10,22,38,.55)); }
.title-tag { font-size: clamp(18px, 2vw, 24px); color: #fff4e0; font-weight: 500; margin: 0 0 34px; letter-spacing: .02em; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.title-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.press { margin-top: 26px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,244,236,.6); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes lockup { from { opacity: 0; transform: translateY(20px) scale(.97); filter: blur(8px); } }
.back-link { position: absolute; top: max(22px, env(safe-area-inset-top)); left: 24px; text-decoration: none; font-size: 14px; color: rgba(255,244,236,.75); padding: 9px 14px; border-radius: 999px; background: rgba(10,22,38,.35); border: 1px solid rgba(255,244,236,.12); backdrop-filter: blur(8px); }
.back-link:hover { color: #fff; border-color: var(--gold); }

#menu { padding: 20px; }
.menu-panel { width: min(1040px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px 26px 24px; animation: panelIn .5s var(--ease) both; background: rgba(10,24,40,.6); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.back-btn { background: none; border: 0; color: rgba(255,244,236,.7); cursor: pointer; font-size: 14px; padding: 8px 4px; }
.back-btn:hover { color: #fff; }
.tabs { display: flex; gap: 4px; background: rgba(255,244,236,.05); padding: 4px; border-radius: 999px; border: 1px solid rgba(255,244,236,.1); }
.tab { border: 0; background: none; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; color: rgba(255,244,236,.7); transition: background .25s, color .25s; }
.tab.active { background: linear-gradient(135deg, rgba(244,185,66,.95), rgba(255,138,61,.95)); color: #1a0e06; }
.tickets-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(244,185,66,.3); background: rgba(244,185,66,.08); color: var(--sand); }
.tk { width: 14px; height: 14px; transform: rotate(45deg); background: linear-gradient(135deg, #fff1c9, var(--gold)); box-shadow: 0 0 10px var(--gold); border-radius: 2px; display: inline-block; }
.row-label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 16px 0 10px; }
.seg { display: inline-flex; gap: 4px; background: rgba(255,244,236,.05); padding: 4px; border-radius: 12px; border: 1px solid rgba(255,244,236,.1); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 9px; cursor: pointer; color: rgba(255,244,236,.75); font-weight: 500; transition: background .2s, color .2s; }
.seg button.on { background: rgba(255,244,236,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(244,185,66,.5); }
.seg.small button { padding: 7px 12px; font-size: 13.5px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pick { text-align: left; border-radius: 14px; border: 1px solid rgba(255,244,236,.12); background: rgba(255,244,236,.04); padding: 14px; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .25s; position: relative; overflow: hidden; }
.pick:hover { transform: translateY(-2px); border-color: rgba(244,185,66,.45); }
.pick.on { border-color: var(--gold); background: rgba(244,185,66,.1); box-shadow: 0 0 0 1px var(--gold), 0 10px 40px rgba(244,185,66,.15); }
.pick.locked { opacity: .55; cursor: not-allowed; }
.pick h4 { margin: 0 0 4px; font-family: var(--display); font-size: 19px; display: flex; align-items: center; gap: 8px; }
.pick p { margin: 0; font-size: 13.5px; color: rgba(255,244,236,.7); line-height: 1.45; }
.pick .meta { margin-top: 10px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--sand); }
.pick img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 10px; display: block; background: #10243a; }
.pick .lock { position: absolute; top: 10px; right: 10px; font-size: 11.5px; padding: 4px 8px; border-radius: 999px; background: rgba(10,22,38,.75); border: 1px solid rgba(255,244,236,.2); }
.bars { display: grid; gap: 6px; margin-top: 10px; }
.bar { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,244,236,.65); }
.bar i { height: 5px; border-radius: 4px; background: rgba(255,244,236,.1); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; width: var(--v); background: linear-gradient(90deg, var(--gold), var(--magenta)); border-radius: 4px; }
.medal-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.m1 { background: #c9814a; box-shadow: 0 0 8px #c9814a; } .m2 { background: #d8dde6; box-shadow: 0 0 8px #d8dde6; } .m3 { background: var(--gold); box-shadow: 0 0 10px var(--gold); } .m4 { background: conic-gradient(var(--cyan), var(--magenta), var(--gold), var(--cyan)); box-shadow: 0 0 12px var(--magenta); }
.menu-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; flex-wrap: wrap; }
.cab-title { font-family: var(--display); font-size: 40px; margin: 10px 0 6px; }
.cab-desc { max-width: 640px; color: rgba(255,244,236,.8); line-height: 1.6; font-size: 16px; }
.stat-row { display: flex; gap: 14px; margin-top: 16px; }
.stat-row > div { padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255,244,236,.12); background: rgba(255,244,236,.04); min-width: 150px; }
.stat-row small { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.stat-row b { font-family: var(--mono); font-size: 26px; font-weight: 500; }

/* HUD */
.hud { position: absolute; inset: 0; }
.hud-tl { position: absolute; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); padding: 12px 16px 12px; min-width: 200px; }
.hud-mode { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.hud-big { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hud-big small { font-family: var(--ui); font-size: 12px; color: rgba(255,244,236,.6); letter-spacing: .1em; text-transform: uppercase; }
.hud-time { font-family: var(--mono); font-size: 22px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.hud-sub { font-family: var(--mono); font-size: 13px; color: rgba(255,244,236,.6); margin-top: 4px; font-variant-numeric: tabular-nums; }
.hud-score { font-family: var(--mono); font-size: 40px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hud-tc { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pos-pill { padding: 8px 18px; display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-size: 30px; font-weight: 800; }
.pos-pill small { font-family: var(--mono); font-size: 14px; color: rgba(255,244,236,.6); font-weight: 400; }
.split { font-family: var(--mono); font-size: 18px; padding: 4px 12px; border-radius: 10px; opacity: 0; }
.split.pulse { animation: splitIn 2.2s var(--ease) both; }
.split.good { color: #6dffc7; text-shadow: 0 0 12px rgba(109,255,199,.6); }
.split.bad { color: #ff7aa8; text-shadow: 0 0 12px rgba(255,122,168,.6); }
@keyframes splitIn { 0% { opacity: 0; transform: translateY(-6px) scale(1.2); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.hud-tr { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 122px; }
.hud-tr .tickets-pill { padding: 10px 14px; font-size: 16px; }
.minimap { position: absolute; left: max(16px, env(safe-area-inset-left)); top: 170px; width: 150px; height: 150px; padding: 0; }
.hud-br { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); padding: 14px 18px 16px; min-width: 230px; }
.speed { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.speed span { font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.speed small { font-size: 13px; color: rgba(255,244,236,.6); }
.boost { position: relative; margin-top: 10px; height: 12px; border-radius: 8px; background: rgba(255,244,236,.08); overflow: hidden; border: 1px solid rgba(255,244,236,.1); }
.boost-fill { position: absolute; inset: 0; width: var(--v, 0%); background: linear-gradient(90deg, var(--amber), var(--magenta)); box-shadow: 0 0 14px var(--magenta); transition: width .12s linear; }
.boost::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), rgba(10,22,38,.7) calc(20% - 2px) 20%); }
.boost.on .boost-fill { background: linear-gradient(90deg, #fff, var(--cyan)); box-shadow: 0 0 20px var(--cyan); }
.boost-label { position: absolute; right: 6px; top: -1px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); z-index: 1; display: none; }
.drift-tier { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; height: 8px; }
.drift-tier i { width: 26px; border-radius: 4px; background: rgba(255,244,236,.1); transition: background .15s, box-shadow .15s; }
.drift-tier.t0 i:nth-child(1), .drift-tier.t1 i:nth-child(1) { background: rgba(255,255,255,.4); }
.drift-tier.t1 i:nth-child(1), .drift-tier.t2 i:nth-child(-n+2), .drift-tier.t3 i { box-shadow: 0 0 10px currentColor; }
.drift-tier.t1 i:nth-child(1) { background: var(--cyan); color: var(--cyan); }
.drift-tier.t2 i:nth-child(-n+2) { background: var(--gold); color: var(--gold); }
.drift-tier.t3 i { background: var(--magenta); color: var(--magenta); }
.timer { font-family: var(--mono); font-size: 34px; padding: 6px 20px; font-variant-numeric: tabular-nums; }
.timer.low { color: #ff7aa8; animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.06); } }
.combo { font-family: var(--display); font-weight: 800; font-size: calc(18px + var(--m, 1) * 2.5px); color: var(--gold); text-shadow: 0 0 20px rgba(244,185,66,.6); transition: font-size .2s var(--ease); min-height: 1em; }
.hud-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,244,236,.6); }
#crosshair { position: absolute; left: 0; top: 0; width: 0; height: 0; display: none; z-index: 3; }
#crosshair i { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,244,236,.9); box-shadow: 0 0 12px rgba(31,200,192,.7), inset 0 0 8px rgba(31,200,192,.4); }
#crosshair i::before, #crosshair i::after { content: ""; position: absolute; background: var(--cyan); left: 50%; top: 50%; transform: translate(-50%, -50%); }
#crosshair i::before { width: 4px; height: 4px; border-radius: 50%; box-shadow: 0 0 8px var(--cyan); }
#crosshair.hit i { animation: xhit .25s var(--ease); border-color: var(--gold); }
@keyframes xhit { 40% { transform: scale(1.35) rotate(45deg); } }
body.aiming { cursor: none; }

#countdown { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(90px, 16vw, 220px); color: #fff; text-shadow: 0 0 40px rgba(255,138,61,.8), 0 0 90px rgba(255,122,89,.6); opacity: 0; pointer-events: none; }
#countdown.show { animation: count .9s var(--ease) both; }
@keyframes count { 0% { opacity: 0; transform: scale(1.8); filter: blur(10px); } 20% { opacity: 1; transform: scale(1); filter: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(.85); } }
#banner { position: absolute; top: 28%; left: 50%; transform: translateX(-50%); font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.01em; color: var(--ivory); text-shadow: 0 0 30px rgba(244,185,66,.7); opacity: 0; white-space: nowrap; pointer-events: none; }
#banner.show { animation: banner 1.6s var(--ease) both; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.9); letter-spacing: .2em; } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); letter-spacing: -.01em; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
#popups { position: absolute; inset: 0; overflow: hidden; }
.popup { position: absolute; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 800; font-size: calc(22px * var(--s, 1)); color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); white-space: nowrap; animation: pop 0.95s var(--ease) both; pointer-events: none; }
.popup:not([class*="pop-"]) { display: none; }
.popup.small { font-size: calc(15px * var(--s, 1)); font-family: var(--ui); font-weight: 600; }
.pop-gold { color: #ffe2a0; text-shadow: 0 0 18px rgba(244,185,66,.9); }
.pop-pink { color: #ffd0e2; text-shadow: 0 0 18px rgba(255,122,89,.9); }
.pop-cyan { color: #c8fff8; text-shadow: 0 0 18px rgba(31,200,192,.9); }
.pop-dim { color: rgba(255,244,236,.7); }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(1.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -140%) scale(.95); } }

#pause-btn { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); width: 44px; height: 44px; font-size: 13px; letter-spacing: -1px; z-index: 5; }
#pause { background: rgba(5,5,10,.45); backdrop-filter: blur(6px); }
.pause-panel { width: min(480px, calc(100vw - 32px)); padding: 26px; animation: panelIn .35s var(--ease) both; max-height: calc(100vh - 32px); overflow: auto; background: rgba(10,24,40,.7); }
.pause-panel h2 { font-family: var(--display); margin: 0 0 18px; font-size: 32px; }
.pause-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pause-actions .btn-primary { grid-column: 1 / -1; }
.settings { margin-top: 22px; border-top: 1px solid rgba(255,244,236,.1); padding-top: 16px; display: grid; gap: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; color: rgba(255,244,236,.85); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 200px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--p, 50%), rgba(255,244,236,.15) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 3px rgba(244,185,66,.5), 0 2px 8px rgba(0,0,0,.4); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ivory); border: 0; box-shadow: 0 0 0 3px rgba(244,185,66,.5); cursor: pointer; }
.switch { width: 46px; height: 26px; border-radius: 999px; border: 1px solid rgba(255,244,236,.2); background: rgba(255,244,236,.08); position: relative; cursor: pointer; padding: 0; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ivory); transition: transform .25s var(--ease); }
.switch.on { background: var(--magenta); }
.switch.on i { transform: translateX(20px); }
.controls-sheet { margin-top: 18px; border-top: 1px solid rgba(255,244,236,.1); padding-top: 16px; }

#results { background: radial-gradient(800px 500px at 50% 50%, rgba(10,22,38,.25), rgba(10,22,38,.6)); }
.results-panel { width: min(520px, calc(100vw - 32px)); padding: 30px 30px 26px; text-align: center; animation: panelIn .5s var(--ease) both; background: rgba(10,24,40,.66); }
.medal { width: 92px; height: 92px; margin: -6px auto 12px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #1a0e06; animation: medal .9s var(--ease) both .15s; }
.medal.none { display: none; }
.medal.m1 { background: radial-gradient(circle at 30% 30%, #ffd2a8, #b8703d); box-shadow: 0 0 40px rgba(201,129,74,.6); }
.medal.m2 { background: radial-gradient(circle at 30% 30%, #fff, #a8b0bd); box-shadow: 0 0 40px rgba(216,221,230,.5); }
.medal.m3 { background: radial-gradient(circle at 30% 30%, #fff3c6, #e0a43a); box-shadow: 0 0 50px rgba(244,185,66,.7); }
.medal.m4 { background: conic-gradient(from 0deg, var(--cyan), var(--magenta), var(--gold), var(--cyan)); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); box-shadow: 0 0 60px rgba(255,122,89,.6); }
@keyframes medal { from { opacity: 0; transform: scale(.3) rotate(-30deg); } 60% { transform: scale(1.12); } }
.results-panel h2 { font-family: var(--display); font-size: 38px; margin: 0; letter-spacing: -.02em; }
.r-sub { color: var(--sand); margin: 6px 0 18px; }
.r-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.r-stats div { padding: 12px 10px; border-radius: 12px; background: rgba(255,244,236,.05); border: 1px solid rgba(255,244,236,.1); }
.r-stats small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.r-stats b { font-family: var(--mono); font-weight: 500; font-size: 17px; font-variant-numeric: tabular-nums; }
.r-note { margin: 14px 0 0; font-size: 14px; color: rgba(255,244,236,.75); min-height: 1em; }
.r-note .new { color: var(--cyan); font-weight: 600; }
.r-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

#photo { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }
.photo-panel { padding: 16px 18px; display: grid; gap: 12px; width: min(620px, calc(100vw - 24px)); background: rgba(10,24,40,.62); }
.photo-title { font-family: var(--display); font-weight: 800; font-size: 18px; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.ph-help { font-size: 12.5px; color: rgba(255,244,236,.6); }
.ph-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
body.photo-hidden #photo, body.photo-hidden .game-sound { opacity: 0; pointer-events: none; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 90; padding: 11px 18px; border-radius: 999px; background: rgba(10,24,40,.8); border: 1px solid var(--line); color: var(--ivory); font-size: 14px; opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; backdrop-filter: blur(10px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* touch */
#touch { position: absolute; inset: auto 0 0 0; height: 0; }
#stick { position: absolute; left: max(22px, env(safe-area-inset-left)); bottom: max(26px, env(safe-area-inset-bottom)); width: 136px; height: 136px; border-radius: 50%; background: rgba(255,244,236,.06); border: 1px solid rgba(255,244,236,.2); backdrop-filter: blur(8px); touch-action: none; }
#stick-knob { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffd9a0 40%, #f6b73c); box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 0 20px rgba(244,185,66,.5); }
.touch-btns { position: absolute; right: max(22px, env(safe-area-inset-right)); bottom: max(26px, env(safe-area-inset-bottom)); display: flex; gap: 14px; align-items: flex-end; }
.touch-btns button { width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(255,244,236,.25); background: rgba(10,24,40,.45); backdrop-filter: blur(8px); font-weight: 700; font-size: 14px; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .1s, background .1s; }
#btn-boost { width: 96px; height: 96px; background: radial-gradient(circle at 35% 30%, rgba(255,122,89,.55), rgba(255,138,61,.35)); border-color: rgba(255,122,89,.6); margin-bottom: 40px; }
.touch-btns button.down { transform: scale(.92); background: rgba(31,200,192,.35); }
.rotate-hint { display: none; position: absolute; left: 50%; bottom: 180px; transform: translateX(-50%); font-size: 12px; color: rgba(255,244,236,.55); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
body.touch.in-sunloop .hud-br, body.touch.in-strike .hud-br { bottom: auto; top: 86px; right: 12px; min-width: 0; padding: 8px 12px; }
body.touch .hud-br .speed span { font-size: 34px; }
body.touch .minimap { display: none; }
body.touch .hud-tr { right: 116px; }
body.touch.mode-stack #stick, body.touch.mode-stack #btn-boost { display: none; }
body.touch.mode-strike #btn-boost { display: none; }
@media (orientation: portrait) { body.touch .rotate-hint { display: block; } }

/* og capture */
body.og .nav, body.og .ca, body.og .hero-ctas, body.og .scroll-cue, body.og .sections, body.og .eyebrow { display: none !important; }
body.og .hero { align-items: center; padding-bottom: 0; }
body.og .hero-inner::before { content: ""; display: block; width: 120px; height: 120px; margin-bottom: 18px; background: url(../assets/emblem-256.png) center / contain no-repeat; filter: drop-shadow(0 12px 40px rgba(255,122,89,.5)); }

/* responsive */
@media (max-width: 980px) {
  .cards, .features { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .pick-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { height: 56px; top: 10px; }
  .nav-links { display: none; }
  .brand span { display: none; }
  .hero { padding: 0 20px 12vh; }
  .ca { min-width: 0; width: 100%; }
  .ca-row code { font-size: 12.5px; }
  .cards, .features { grid-template-columns: 1fr; }
  .section { padding-top: 80px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p { grid-column: 1; }
  .keys li { grid-template-columns: 130px 1fr; font-size: 14px; }
  .footer { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .foot-right { justify-self: start; }
  .pick-grid { grid-template-columns: 1fr; }
  .pick img { display: none; }
  .menu-panel { padding: 16px; }
  .tabs .tab { padding: 8px 12px; font-size: 14px; }
  .hud-tl { min-width: 0; padding: 8px 12px; }
  .hud-big { font-size: 22px; } .hud-time { font-size: 16px; } .hud-score { font-size: 30px; }
  .pos-pill { font-size: 22px; padding: 6px 12px; }
  .hud-tr { display: none; }
  .r-stats { grid-template-columns: 1fr 1fr; }
  .pause-actions { grid-template-columns: 1fr; }
  input[type=range] { width: 150px; }
}
@media (max-height: 520px) {
  .title-logo { width: 60px; height: 60px; }
  .title-word { font-size: 64px; }
  .title-tag { margin-bottom: 18px; }
}
#btn-gas { width: 104px; height: 104px; background: radial-gradient(circle at 35% 30%, rgba(31,200,192,.6), rgba(20,48,79,.4)); border-color: rgba(31,200,192,.7); }
body.touch.mode-strike #btn-gas, body.touch.mode-stack #btn-gas { display: none; }
.brand-img { width: 34px; height: 34px; border-radius: 50%; display: block; }
.title-logo-img { width: min(560px, 70vw); height: auto; display: block; margin: 0 auto -6px; filter: drop-shadow(0 18px 40px rgba(10,22,38,.55)); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nogl-fallback, body.nogl { background-image: linear-gradient(90deg, rgba(10,22,38,.75), rgba(10,22,38,.15)), url(../assets/keyart.jpg) !important; background-size: cover !important; background-position: center !important; }
#loader { background: linear-gradient(180deg, rgba(10,22,38,.82), rgba(10,22,38,.94)), url(../assets/keyart.jpg) center / cover no-repeat; }

/* ---------- landing: about / modes / token / faq ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
.about-copy { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.about-copy p { color: rgba(255,244,236,.78); line-height: 1.65; font-size: 15.5px; margin: 0; }
.about-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.about-art { padding: 0; overflow: hidden; min-height: 280px; }
.about-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mode { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.mode::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--mc, #ff7a59); }
.mode h3 { margin: 0; font-family: var(--display); font-size: 21px; color: var(--ivory); }
.mode p { margin: 0; color: rgba(255,244,236,.72); font-size: 14.5px; line-height: 1.55; flex: 1; }
.mode .btn { align-self: flex-start; }
.mode-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mc, #ff7a59); }
.m-free { --mc: #ffd27a; } .m-race { --mc: #ff7a59; } .m-sprint { --mc: #1fc8c0; } .m-rush { --mc: #f6b73c; } .m-stunt { --mc: #b39cff; }
.ca-wide { display: block; max-width: 760px; margin-top: 0; }
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { padding: 16px 20px; }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 17px; color: var(--ivory); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: rgba(255,244,236,.75); line-height: 1.6; margin: 10px 0 0; font-size: 15px; }
@media (max-width: 1100px) { .modes { grid-template-columns: repeat(2, 1fr); } .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .modes { grid-template-columns: 1fr; } .features { grid-template-columns: 1fr; } }

/* ---------- city HUD ---------- */
.cy-map { position: absolute; left: max(16px, env(safe-area-inset-left)); top: max(16px, env(safe-area-inset-top)); width: 176px; height: 176px; border-radius: 50%; border: 3px solid rgba(255,244,236,.85); box-shadow: 0 8px 30px rgba(0,0,0,.35); background: #2a9cc0; }
.cy-act { position: absolute; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translateX(-50%); padding: 10px 18px 12px; min-width: 260px; text-align: center; display: none; }
.cy-act.show { display: block; }
.cy-act-top { display: flex; justify-content: center; gap: 14px; align-items: baseline; }
.cy-act-top b { font-family: var(--display); font-size: 18px; color: var(--ivory); }
.cy-act-top span { font-family: var(--mono); font-size: 22px; color: var(--gold); }
.cy-act-mid { display: flex; justify-content: center; gap: 16px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 20px; margin-top: 2px; }
.cy-act-sub { font-size: 12.5px; color: rgba(255,244,236,.65); margin-top: 3px; }
.cy-tr { position: absolute; right: max(74px, calc(env(safe-area-inset-right) + 74px)); top: max(16px, env(safe-area-inset-top)); display: flex; gap: 10px; }
.cy-pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-family: var(--mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.cy-pill small { font-family: var(--ui, inherit); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,244,236,.6); }
.cy-pill b { color: rgba(255,244,236,.5); font-weight: 500; }
#cy-style-wrap.hot b { color: #ffd27a; text-shadow: 0 0 12px rgba(246,183,60,.8); }
.cy-prompt { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%) translateY(10px); opacity: 0; pointer-events: none; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(255,244,236,.3); background: rgba(255,122,89,.92); color: #fff; font-size: 16px; font-weight: 600; transition: opacity .2s, transform .2s; cursor: pointer; }
.cy-prompt.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.cy-speedo { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); padding: 12px 18px 14px; min-width: 210px; }
.cy-nitro { position: relative; margin-top: 8px; height: 10px; border-radius: 8px; background: rgba(255,244,236,.08); overflow: hidden; border: 1px solid rgba(255,244,236,.1); }
.cy-nitro div { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, #1fc8c0, #7fd8ff); transform: scaleX(0); }
.cy-nitro span { position: absolute; right: 6px; top: -1px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.cy-keys { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); font-size: 12px; color: rgba(255,244,236,.7); background: rgba(10,24,40,.35); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
body.touch .cy-keys { display: none; }
body.touch .cy-map { width: 120px; height: 120px; }
body.touch .cy-speedo { bottom: auto; top: 70px; min-width: 150px; }
body.touch .cy-speedo .speed span { font-size: 34px; }

/* ---------- instant landing: poster + lazy 3D ---------- */
#poster { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10,22,38,.15), rgba(10,22,38,0) 40%, rgba(10,22,38,.35)), url(../assets/keyart.jpg) center / cover no-repeat, #0b1626; transition: opacity 1.2s var(--ease), visibility 1.2s; }
body.gl-ready #poster, body.nogl #poster { opacity: 0; visibility: hidden; }
body.nogl #poster { opacity: 1; visibility: visible; }
#loader { opacity: 0; visibility: hidden; }
body.want-play #loader:not(.done) { opacity: 1; visibility: visible; }
.hero { padding-top: 118px; }
.brand { color: #fff6e6; }
.brand span { background: linear-gradient(180deg, #fffaf0 35%, #ffd98a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 6px rgba(10,22,38,.5)); }
@media (max-width: 760px) { .hero { padding-top: 92px; } }
@media (max-height: 760px) and (min-width: 761px) { .hero { padding-bottom: 6vh; } .hero-title { margin: 16px 0 12px; } .hero-sub { margin-bottom: 20px; } .ca { margin-top: 18px; } }

/* ===== pro footer ===== */
.pro-footer{position:relative;display:block!important;margin-top:80px;padding:64px max(28px,6vw) 28px;border-top:1px solid rgba(244,185,66,.25);background:linear-gradient(180deg,rgba(10,22,38,.0),rgba(10,22,38,.85) 40%,#081424);overflow:hidden}
.pf-glow{position:absolute;left:50%;top:-180px;width:900px;height:360px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(255,170,60,.28),transparent);pointer-events:none}
.pf-top{position:relative;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:40px}
.pf-brand{display:flex;align-items:center;gap:16px}
.pf-emblem{width:64px;height:64px;border-radius:50%;box-shadow:0 0 30px rgba(244,185,66,.45)}
.pf-name{font-family:var(--display);font-weight:800;font-size:28px;background:linear-gradient(180deg,#fffaf0 30%,#ffc25e);-webkit-background-clip:text;background-clip:text;color:transparent}
.pf-tag{font-size:14px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,230,190,.75);margin-top:4px}
.pf-cols{display:flex;gap:56px;flex-wrap:wrap}
.pf-col{display:flex;flex-direction:column;gap:10px;min-width:120px}
.pf-col h4{margin:0 0 4px;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:#f4b942}
.pf-col a{color:rgba(255,244,236,.8);text-decoration:none;font-size:15px;transition:color .2s}
.pf-col a:hover{color:#fff}
.pf-cta{align-self:center}
.pf-bottom{position:relative;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:48px;padding-top:20px;border-top:1px solid rgba(255,244,236,.08);font-size:13px;color:rgba(255,244,236,.55)}
@media(max-width:760px){.pf-top{flex-direction:column}.pf-cols{gap:32px}.pf-cta{align-self:flex-start}}
/* hero below nav */
.hero{padding-top:120px!important;box-sizing:border-box}
.hero-inner{position:relative;z-index:1}
@media(max-width:760px){.hero{padding-top:100px!important}}
