/* Star Tower - full-window canvas + floating HUD + menu / cards. Everything scales with rem / clamp from phones to 4K. */
:root { --st-sun: #FFD23F; --st-ink: #0F0C22; }
html { font-size: clamp(14px, calc(9px + .45vw), 26px); height: 100%; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; background: #0F0C22; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
button, a { -webkit-tap-highlight-color: transparent; }

.st { position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #0F0C22; --safe-t: env(safe-area-inset-top, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); }
.st-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- top bar ---------- */
.st-top { position: absolute; z-index: 45; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: max(12px, var(--safe-t)) max(14px, var(--safe-r)) 0 max(14px, var(--safe-l)); pointer-events: none; }
.st-top > * { pointer-events: auto; }
.st-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(15, 12, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; transition: background .15s, transform .12s; }
.st-brand:hover { background: rgba(15, 12, 34, .8); transform: translateY(-1px); }
.st-brand img { width: 34px; height: 34px; }
.st-brand b { font-family: var(--font-d); font-size: .95rem; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.st-brand b i { font-style: normal; color: var(--lime); }
.st.is-play .st-brand { display: none; }
.st-tools { display: flex; gap: 8px; margin-left: auto; }
.st-tool { width: 46px; height: 46px; border: 0; padding: 0; display: grid; place-items: center; border-radius: 13px; background: rgba(15, 12, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; transition: background .15s, transform .12s; text-decoration: none; color: #fff; }
.st-tool:hover { background: rgba(15, 12, 34, .85); transform: translateY(-1px); }
.st-tool svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st-tool.is-hidden, .st.is-menu .st-tool--home, .st.is-menu #bPause { display: none; }
.st.is-play .st-tool--home { display: grid; }
@media (pointer: coarse) { .st-tool { width: 50px; height: 50px; } .st-tool--full { display: none; } }

/* ---------- HUD ---------- */
.st-hud { --zc: #FFD23F; position: absolute; inset: 0; z-index: 10; pointer-events: none; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto; align-items: start; align-content: start; padding: max(12px, var(--safe-t)) max(14px, var(--safe-r)) max(14px, var(--safe-b)) max(14px, var(--safe-l)); color: #fff; font-size: 1rem; }
.st-hud[hidden] { display: none; }
.st-hud__l { display: grid; gap: .5em; justify-items: start; grid-column: 1; grid-row: 1; }
.st-hud__c { display: grid; gap: .5em; justify-items: center; grid-column: 2; grid-row: 1; }
.st-hud__r { grid-column: 3; grid-row: 1; justify-self: end; margin-top: 58px; }
.st-pill { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; padding: .5em 1em; border-radius: 14px; background: rgba(15, 12, 34, .58); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; line-height: 1; min-width: 7em; }
.st-pill small { font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.st-pill b { font-family: var(--font-d); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-alt b { font-size: 1.05rem; color: #CDE6FF; }
.st-pill--sm { min-width: 0; padding: .4em .9em; } .st-pill--sm b { font-size: 1.05rem; }
.st-zone { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t c" "p p"; gap: .35em .9em; align-items: center; min-width: 17em; padding: .55em 1em .7em; border-radius: 16px; background: rgba(15, 12, 34, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset, 0 0 1.2em color-mix(in srgb, var(--zc) 22%, transparent); }
.st-zone__t { grid-area: t; display: grid; line-height: 1.05; min-width: 0; }
.st-zone__t small { font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--zc); }
.st-zone__t b { font-family: var(--font-d); font-weight: 400; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-zone em { grid-area: c; font-style: normal; font-family: var(--font-d); font-size: .95rem; color: #fff; font-variant-numeric: tabular-nums; }
.st-prog { grid-area: p; position: relative; height: .55em; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.st-prog i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--zc), #fff); box-shadow: 0 0 .9em var(--zc); transition: width .35s var(--ease); }
.st-wind { display: none; align-items: center; gap: .5em; padding: .3em .9em; border-radius: 99px; background: rgba(15, 12, 34, .7); box-shadow: 0 0 0 1.5px rgba(47, 214, 255, .5) inset; font-family: var(--font-d); font-size: .8rem; letter-spacing: .08em; }
.st-wind.on { display: inline-flex; animation: stpop .3s var(--ease); }
.st-wind.warn { box-shadow: 0 0 0 1.5px var(--sun) inset; animation: stblink .5s steps(2) infinite; }
.st-wind.gust { box-shadow: 0 0 0 1.5px #2FD6FF inset, 0 0 1.2em rgba(47, 214, 255, .5); }
.st-wind.l .st-wind__a { transform: scaleX(-1); }
.st-wind__a svg { width: 1.6em; height: 1.6em; fill: none; stroke: #2FD6FF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: stslide .7s linear infinite; }
.st-wind i { font-style: normal; color: #2FD6FF; letter-spacing: .1em; min-width: 2.4em; }
.st-combo { position: absolute; left: max(14px, var(--safe-l)); bottom: max(18px, calc(var(--safe-b) + 8px)); display: grid; gap: .25em; padding: .5em 1em .6em; border-radius: 16px; background: rgba(15, 12, 34, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .25s, transform .25s var(--ease); min-width: 8.5em; }
.st-combo.on { opacity: 1; transform: none; }
.st-combo small { font-size: .58rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.st-combo b { font-family: var(--font-d); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--sun); text-shadow: 0 .08em 0 rgba(0, 0, 0, .4); }
.st-combo.hot b { color: #FF8FD0; text-shadow: 0 0 .6em rgba(255, 90, 200, .7), 0 .08em 0 rgba(0, 0, 0, .4); }
.st-combo.pop b { animation: stcombo .35s var(--ease); }
.st-combo__bar { height: .4em; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.st-combo__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #FFD23F, #FF3D8B); transition: width .2s; }
@keyframes stcombo { 0% { transform: scale(1.7) rotate(-6deg); } 100% { transform: none; } }
@keyframes stpop { from { transform: scale(.7); opacity: 0; } }
@keyframes stblink { 50% { opacity: .45; } }
@keyframes stslide { from { transform: translateX(-3px); opacity: .5; } 50% { opacity: 1; } to { transform: translateX(3px); opacity: .5; } }

/* ---------- banner / toast / tap hint ---------- */
.st-banner { --bc: #FFD23F; position: absolute; z-index: 20; left: 50%; top: 20%; width: min(92vw, 40em); transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; }
.st-banner small { display: block; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; font-size: clamp(.7rem, .6rem + .5vw, 1rem); color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.st-banner h2 { margin: .1em 0 .12em; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .95; font-size: clamp(2.2rem, 1.2rem + 5vw, 5.4rem); color: var(--bc); text-shadow: 0 .05em 0 rgba(0, 0, 0, .5), 0 0 .5em color-mix(in srgb, var(--bc) 55%, transparent), 0 .1em .4em rgba(0, 0, 0, .5); }
.st-banner p { display: inline-block; margin: .2em 0 0; padding: .35em 1.1em; border-radius: 99px; background: rgba(15, 12, 34, .6); font-weight: 800; font-size: clamp(.8rem, .6rem + .6vw, 1.15rem); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; }
.st-banner.show { animation: stbanner 3s var(--ease) forwards; }
.st-banner.quick { top: 17%; } .st-banner.quick h2 { font-size: clamp(1.8rem, 1rem + 3vw, 3.4rem); } .st-banner.quick.show { animation-duration: 2.2s; }
@keyframes stbanner { 0% { opacity: 0; transform: translate(-50%, 24px) scale(.82); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 20% { transform: translate(-50%, 0) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px) scale(1); } }
.st-toast { position: absolute; z-index: 22; left: 50%; bottom: max(22%, calc(var(--safe-b) + 90px)); transform: translate(-50%, 12px); max-width: min(92vw, 34em); padding: .6em 1.3em; border-radius: 99px; text-align: center; font-weight: 800; font-size: clamp(.85rem, .6rem + .6vw, 1.2rem); background: rgba(15, 12, 34, .82); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16) inset; pointer-events: none; opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.st-toast.show { opacity: 1; transform: translate(-50%, 0); }
.st-toast.new { box-shadow: 0 0 0 2px var(--sun) inset, 0 0 1.4em rgba(255, 210, 63, .35); }
.st-tap { position: absolute; z-index: 18; left: 50%; top: 79%; transform: translate(-50%, -50%); display: grid; justify-items: center; pointer-events: none; text-shadow: 0 .06em 0 rgba(0, 0, 0, .5); }
.st-tap[hidden] { display: none; }
.st-tap b { font-family: var(--font-d); font-weight: 400; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); color: #fff; line-height: 1; margin-top: .1em; animation: sttap 1.1s ease-in-out infinite; }
.st-tap span { margin-top: .3em; padding: .3em 1em; border-radius: 99px; background: rgba(15, 12, 34, .7); font-weight: 800; font-size: clamp(.8rem, .6rem + .5vw, 1.1rem); }
.st-tap__f { width: clamp(3rem, 2rem + 4vw, 5.5rem); height: auto; filter: drop-shadow(0 .15em 0 rgba(0, 0, 0, .4)); animation: sttapf 1.1s ease-in-out infinite; }
.st-tap__r { position: absolute; top: -.2em; width: 5em; height: 5em; border-radius: 50%; border: 4px solid var(--sun); opacity: 0; animation: sttapr 1.1s ease-out infinite; }
@keyframes sttap { 50% { transform: scale(1.12); } }
@keyframes sttapf { 0%, 100% { transform: translateY(0) rotate(-8deg); } 45% { transform: translateY(-.35em) rotate(-8deg); } 55% { transform: translateY(.1em) rotate(-8deg); } }
@keyframes sttapr { 0% { transform: scale(.4); opacity: 0; } 50% { opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- overlays ---------- */
.st-ov { position: absolute; inset: 0; z-index: 40; display: none; overflow: auto; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; }
.st-ov::-webkit-scrollbar { display: none; }
.st-ov.show { display: block; animation: stfade .3s ease; }
.st-ov--screen.show { background: rgba(10, 8, 28, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.st-ov--center.show { background: rgba(15, 12, 34, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.st-ov--final.show { background: radial-gradient(ellipse at 50% 40%, rgba(40, 14, 90, .18), rgba(15, 12, 34, .4)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.st-ov--menu.show { background: linear-gradient(90deg, rgba(15, 12, 34, .9) 0%, rgba(15, 12, 34, .62) 34%, rgba(15, 12, 34, .08) 56%, rgba(15, 12, 34, 0) 70%), linear-gradient(0deg, rgba(15, 12, 34, .5), rgba(15, 12, 34, 0) 28%); overflow: hidden; }
@keyframes stfade { from { opacity: 0; } }
@keyframes stpop2 { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.st-fade { position: absolute; inset: 0; z-index: 60; background: #0F0C22; opacity: 0; pointer-events: none; transition: opacity .4s; }
.st-fade.on { opacity: 1; }

/* ---------- menu ---------- */
.st-menu { position: absolute; inset: 0; display: flex; align-items: center; padding: clamp(64px, 9vh, 120px) clamp(20px, 5vw, 110px) clamp(16px, 3vh, 40px) max(clamp(20px, 5vw, 110px), var(--safe-l)); }
.st-menu__l { animation: stpop2 .5s var(--ease); max-width: min(38em, 100%, 52vw); min-width: 0; }
.st-kicker { display: inline-flex; align-items: center; gap: .6em; flex-wrap: wrap; font-weight: 800; font-size: clamp(.7rem, .55vw + .45rem, 1rem); letter-spacing: .16em; text-transform: uppercase; color: var(--st-sun); }
.st-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.st-kicker span { color: #CFC9F5; letter-spacing: .1em; padding: .15em .7em; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.st-title { margin: .08em 0 .14em; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .86; font-size: clamp(3rem, min(7vw, 14vh), 9.5rem); letter-spacing: .005em; display: grid; justify-items: start; }
.st-title b { font-weight: 400; display: block; background: linear-gradient(100deg, #FFF3A8 0%, #FFD23F 30%, #FF9A3D 55%, #FFD23F 78%, #FFF3A8 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: stslide2 7s linear infinite; filter: drop-shadow(0 .05em 0 rgba(0, 0, 0, .5)) drop-shadow(0 0 .45em rgba(255, 190, 60, .3)); }
.st-title b.b2 { margin-left: .35em; animation-delay: -1.2s; }
@keyframes stslide2 { to { background-position: -220% 0; } }
.st-tag { margin: 0 0 clamp(14px, 2.4vh, 28px); font-size: clamp(.95rem, .5vw + .75rem, 1.35rem); font-weight: 600; color: #DCD7FF; max-width: 28em; line-height: 1.45; }
.st-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(6px, 1.6vh, 20px); }
.st-cta .btn, .st-sub .btn, .st-acts .btn { gap: .55em; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.f { fill: currentColor; stroke: none; }
.st-cta .btn--big { font-size: clamp(1.05rem, .5vw + .9rem, 1.6rem); }
.st-btn-inf { --bg: #3B2F85; }
.st-sub { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.st-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(14px, 2.4vh, 28px); }
.st-chip { padding: .5em 1em; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; line-height: 1.05; text-align: left; }
.st-chip small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.st-chip b { font-family: var(--font-d); font-weight: 400; font-size: 1.3rem; }
.st-chip b i { font-style: normal; font-size: .62em; color: var(--mute); }

/* ---------- altitude map ---------- */
.st-screen { position: relative; min-height: 100%; padding: max(72px, calc(var(--safe-t) + 64px)) max(16px, var(--safe-r)) max(30px, var(--safe-b)) max(16px, var(--safe-l)); }
.st-screen--center { display: grid; place-items: center; padding-top: max(24px, var(--safe-t)); }
.st-head { position: sticky; top: calc(-1 * max(56px, calc(var(--safe-t) + 48px))); z-index: 5; padding: .5rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(46em, 100%); margin: 0 auto 1.1rem; }
.st-head h2 { margin: 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1.8vw, 3rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .4); }
.st-ladder { position: relative; width: min(46em, 100%); margin: 0 auto; display: grid; gap: .5rem; }
.st-ladder::before { content: ""; position: absolute; left: 2.15em; top: 1em; bottom: 2.5em; width: 4px; margin-left: -2px; border-radius: 4px; background: repeating-linear-gradient(180deg, rgba(255, 210, 63, .8) 0 10px, transparent 10px 18px); opacity: .55; }
.st-rung { --acc: #FFD23F; --g0: #333; --g1: #555; --g2: #777; position: relative; isolation: isolate; display: grid; grid-template-columns: 3.6em 1fr auto; align-items: center; gap: .9em; padding: .65em 1em .65em .6em; border: 0; border-radius: 18px; color: #fff; text-align: left; overflow: hidden; background: linear-gradient(100deg, var(--g0), var(--g1) 55%, var(--g2)); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset, 0 .35em 0 rgba(0, 0, 0, .35); transition: transform .14s var(--ease), box-shadow .2s; }
.st-rung::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 12, 34, .78), rgba(15, 12, 34, .4) 60%, rgba(15, 12, 34, .15)); }
.st-rung:hover { transform: translateX(6px); box-shadow: 0 0 0 2.5px var(--acc) inset, 0 .35em 0 rgba(0, 0, 0, .35), 0 0 1.6em color-mix(in srgb, var(--acc) 40%, transparent); }
.st-rung .n { width: 3em; height: 3em; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-d); font-size: 1.25rem; color: var(--st-ink); background: radial-gradient(circle at 35% 28%, #fff, color-mix(in srgb, var(--acc) 80%, #fff) 35%, var(--acc) 72%); box-shadow: 0 4px 0 rgba(0, 0, 0, .4), 0 0 0 3px rgba(15, 12, 34, .75), 0 0 18px color-mix(in srgb, var(--acc) 55%, transparent); justify-self: center; }
.st-rung .n svg { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st-rung .tx { display: grid; gap: .1em; min-width: 0; }
.st-rung .tx b { font-family: var(--font-d); font-weight: 400; font-size: clamp(1rem, .8rem + .6vw, 1.5rem); text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); line-height: 1.05; }
.st-rung .tx small { font-size: .78rem; font-weight: 700; color: #D8D3FF; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.tps { display: flex; gap: .3em; flex-wrap: wrap; margin-top: .15em; }
.tp { font-style: normal; font-weight: 800; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: .15em .6em; border-radius: 99px; background: rgba(255, 255, 255, .14); color: #fff; }
.tp.gold { background: #FFD23F; color: #3B2A00; } .tp.surge { background: #2FD6FF; color: #002B38; } .tp.wind { background: #C6FF3D; color: #263800; } .tp.tandem { background: #FF8FD0; color: #3C0A2A; }
.st-rung .sts { display: flex; gap: 1px; } .st-rung .sts svg { width: 1.5em; height: 1.5em; } .st-rung .sts.go { font-family: var(--font-d); font-size: .95rem; color: var(--st-sun); }
.st-rung.cur .n { animation: stpulse 1.4s ease-in-out infinite; }
.st-rung.cur { box-shadow: 0 0 0 2.5px var(--acc) inset, 0 .35em 0 rgba(0, 0, 0, .35); }
.st-rung.lock { filter: saturate(.35) brightness(.72); cursor: not-allowed; } .st-rung.lock:hover { transform: none; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset, 0 .35em 0 rgba(0, 0, 0, .35); }
.st-rung.lock .n { background: #3a3566; color: #9a94c7; box-shadow: 0 4px 0 rgba(0, 0, 0, .4), 0 0 0 3px rgba(15, 12, 34, .75); }
.st-rung--end { --g0: #3B2F85; --g1: #5A2D9A; --g2: #8B2D8F; margin-bottom: .6rem; }
@keyframes stpulse { 50% { box-shadow: 0 4px 0 rgba(0, 0, 0, .4), 0 0 0 3px rgba(15, 12, 34, .75), 0 0 0 10px color-mix(in srgb, var(--acc) 45%, transparent), 0 0 30px var(--acc); } }
.st-ground { text-align: center; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; color: var(--mute); padding: .5rem 0 0; }
.st-shake { animation: stshake .35s; }
@keyframes stshake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
star-on { color: inherit; }
.star { width: 1.5em; height: 1.5em; fill: rgba(255, 255, 255, .2); stroke: none; }
.star.on { fill: #FFD23F; filter: drop-shadow(0 0 .35em rgba(255, 200, 40, .6)); }

/* ---------- cards ---------- */
.st-card { width: min(34em, 100%); text-align: center; padding: 1.8rem 1.8rem 1.5rem; border-radius: 28px; background: linear-gradient(180deg, #2A2260, #1B1540); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset, 0 30px 80px rgba(0, 0, 0, .55); animation: stpop2 .4s var(--ease); margin: auto; }
.st-card h2 { font-family: var(--font-d); font-weight: 400; font-size: clamp(1.7rem, 1.1rem + 1.7vw, 3rem); line-height: 1; margin: .1em 0 .3em; text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.st-card h3 { font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: 1rem; color: var(--st-sun); margin: 1.1em 0 .5em; text-align: left; }
.st-k { display: block; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; color: var(--acc, var(--st-sun)); }
.st-sub2 { margin: 0 0 1rem; color: #CFC9F5; font-weight: 600; }
.st-note { margin: .8rem 0 0; font-size: .82rem; color: var(--mute); font-weight: 600; }
.st-acts { display: grid; gap: .65rem; margin-top: 1.1rem; }
.st-acts .row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.st-acts .btn { width: 100%; }
.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.4em, 1fr)); gap: .6rem; margin: 1rem 0 .4rem; }
.st-stats .st-chip { text-align: center; padding: .6em .4em; }
.st-big { font-family: var(--font-d); font-size: clamp(3.2rem, 2rem + 5vw, 5.4rem); line-height: 1; color: var(--st-sun); text-shadow: 0 5px 0 rgba(0, 0, 0, .4); } .st-big i { font-style: normal; font-size: .45em; color: var(--mute); }
.st-biglab { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-top: 2px; }
.st-over__bar { height: .7em; margin: .8rem 1.5rem 0; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; } .st-over__bar i { display: block; height: 100%; background: linear-gradient(90deg, #FF5B2E, #FFD23F); border-radius: inherit; }
.st-rec { display: inline-block; margin: .6rem 0 0; padding: .35em 1em; border-radius: 99px; background: var(--st-sun); color: var(--st-ink); font-family: var(--font-d); font-size: .9rem; transform: rotate(-3deg); box-shadow: 0 3px 0 #B68A00; animation: stpop2 .5s .3s both var(--ease); }
.st-bigstars { display: flex; justify-content: center; gap: .4rem; margin: .5rem 0 .2rem; }
.st-bigstars .bs { display: inline-block; transform: scale(0); animation: ststar .6s var(--d) forwards cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .3)); }
.st-bigstars .bs:nth-child(2) { margin-top: -.9rem; }
.st-bigstars .bs svg { width: clamp(3.4rem, 2.4rem + 3vw, 5.2rem); height: clamp(3.4rem, 2.4rem + 3vw, 5.2rem); }
.st-bigstars--sm .bs svg { width: 3rem; height: 3rem; }
@keyframes ststar { 0% { transform: scale(0) rotate(-60deg); } 100% { transform: scale(1) rotate(0); } }
.st-zonebox { display: inline-grid; gap: .1em; margin: .3rem 0 .2rem; padding: .55em 1.4em; border-radius: 18px; --zc: #fff; background: color-mix(in srgb, var(--zc) 16%, rgba(15, 12, 34, .6)); box-shadow: 0 0 0 2px var(--zc) inset, 0 0 1.4em color-mix(in srgb, var(--zc) 35%, transparent); animation: stpop2 .5s 1s both var(--ease); }
.st-zonebox small { font-size: .62rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--zc); }
.st-zonebox b { font-family: var(--font-d); font-weight: 400; font-size: 1.35rem; text-transform: uppercase; } .st-zonebox span { font-weight: 800; font-size: .85rem; color: #D8D3FF; }
.st-trophy .trophy { width: 6rem; height: 6rem; margin: -.4rem auto .2rem; filter: drop-shadow(0 .5em 0 rgba(0, 0, 0, .3)) drop-shadow(0 0 1em rgba(255, 200, 60, .5)); animation: sttrophy 2.4s ease-in-out infinite; }
@keyframes sttrophy { 50% { transform: translateY(-.3em) rotate(2deg); } }
.st-card--final { width: min(36em, 100%); box-shadow: 0 0 0 3px #FFD23F inset, 0 30px 80px rgba(0, 0, 0, .55), 0 0 100px rgba(255, 200, 60, .35); }
.st-card--how { text-align: left; width: min(40em, 100%); } .st-card--how h2 { text-align: center; }
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.st-steps li { display: grid; grid-template-columns: 2.2em 1fr; gap: .8rem; align-items: center; } .st-steps li b { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: var(--st-sun); color: var(--st-ink); font-family: var(--font-d); font-weight: 400; }
.st-steps p, .st-twists p { margin: 0; font-weight: 600; color: #E2DEFF; font-size: .95rem; line-height: 1.35; }
.st-twists { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; } .st-twists li { display: grid; grid-template-columns: 5.2em 1fr; gap: .8rem; align-items: center; } .st-twists .tp { text-align: center; padding: .35em .4em; font-size: .72rem; }
.st-opt { text-align: left; margin: .7rem 0; display: grid; gap: .35rem; } .st-opt small { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.st-seg { display: flex; gap: 6px; flex-wrap: wrap; } .st-seg button { flex: 1; min-width: 4.4em; min-height: 44px; padding: .55em .9em; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: .9rem; color: #D6D1FA; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; transition: background .15s, transform .1s; }
.st-seg button:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); } .st-seg button.on { background: var(--st-sun); color: var(--st-ink); box-shadow: none; }
.st-setbox--mini { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .st-setbox--mini .st-opt { margin: 0; }

/* ---------- responsive ---------- */
@media (max-aspect-ratio: 1/1) {
  .st-ov--menu.show { background: linear-gradient(0deg, rgba(15, 12, 34, .94) 0%, rgba(15, 12, 34, .7) 38%, rgba(15, 12, 34, 0) 62%), linear-gradient(180deg, rgba(15, 12, 34, .6), rgba(15, 12, 34, 0) 30%); }
  .st-menu { padding: max(70px, calc(var(--safe-t) + 60px)) max(18px, var(--safe-r)) max(20px, var(--safe-b)) max(18px, var(--safe-l)); text-align: center; }
  .st-menu__l { display: flex; flex-direction: column; align-items: center; height: 100%; width: 100%; max-width: 30em; margin: 0 auto; }
  .st-title { justify-items: center; font-size: clamp(3.2rem, 17vw, 6.4rem); } .st-title b.b2 { margin-left: 0; }
  .st-kicker { justify-content: center; } .st-kicker span { display: none; }
  .st-tag { font-size: .95rem; margin-bottom: 0; }
  .st-cta { margin-top: auto; flex-direction: column; width: 100%; } .st-cta .btn { width: 100%; }
  .st-sub { justify-content: center; } .st-chips { justify-content: center; margin-top: .9rem; }
  .st-brand b { display: none; } .st-brand { padding: 6px; }
  .st-hud { grid-template-columns: auto 1fr; padding-top: max(10px, var(--safe-t)); }
  .st-hud__l { grid-column: 1; grid-row: 1; } .st-hud__r { display: none; }
  .st-hud__c { grid-column: 1 / 3; grid-row: 2; margin-top: .6em; width: 100%; }
  .st-zone { min-width: 0; width: min(100%, 22em); }
  .st-pill { min-width: 0; padding: .4em .8em; } .st-pill b { font-size: 1.25rem; } .st-alt b { font-size: .95rem; }
  .st-combo { left: 50%; bottom: max(14px, calc(var(--safe-b) + 6px)); transform: translate(-50%, 10px) scale(.92); min-width: 7em; text-align: center; padding: .35em .9em .45em; } .st-combo.on { transform: translateX(-50%); } .st-combo b { font-size: 1.5rem; }
  .st-tap { top: 80%; }
  .st-toast { bottom: max(16%, calc(var(--safe-b) + 90px)); }
}
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .st-menu { padding-top: 56px; align-items: center; } .st-tag, .st-chips, .st-kicker span { display: none; } .st-title { font-size: clamp(2.4rem, 17vh, 4.4rem); } .st-sub { margin-top: .6rem; }
  .st-cta .btn--big { font-size: 1rem; padding: .6em 1.2em; }
  .st-hud__r { display: none; } .st-pill b { font-size: 1.15rem; } .st-alt b { font-size: .9rem; } .st-zone { min-width: 13em; }
  .st-card { padding: 1rem 1.2rem; border-radius: 22px; } .st-acts { margin-top: .6rem; } .st-bigstars svg { width: 2.6rem !important; height: 2.6rem !important; } .st-bigstars .bs:nth-child(2) { margin-top: -.5rem; }
  .st-stats { margin: .5rem 0 .2rem; } .st-trophy .trophy { width: 3.6rem; height: 3.6rem; } .st-big { font-size: 2.6rem; } .st-card h2 { margin-bottom: .1em; } .st-sub2 { margin-bottom: .4rem; font-size: .85rem; }
  .st-zonebox { padding: .3em 1em; } .st-tap { top: 66%; } .st-banner { top: 14%; }
  .st-screen { padding-top: 60px; } .st-head { margin-bottom: .6rem; } .st-rung { padding-top: .4em; padding-bottom: .4em; }
}
@media (prefers-reduced-motion: reduce) { .st-title b, .st-rung.cur .n, .st-trophy .trophy, .st-tap b, .st-tap__f, .st-tap__r { animation: none; } }
@media (max-width: 520px) { .st-stats { grid-template-columns: 1fr 1fr; } .st-setbox--mini { grid-template-columns: 1fr; } }
