/* Highway Rush - all UI styles. rem based (root font size is set by game.js from the window size); safe-area insets + 100dvh keep phones tidy.
   Sections: base, top bar, HUD, touch controls, banner + hint, overlays (menu, route map, sheet, garage, cards, results), responsive */
:root { --acc: #FF8A3D; --sat: 0px; --sar: 0px; --sab: 0px; --sal: 0px; --gold: #FFD23F; --pn: linear-gradient(180deg, rgba(40, 32, 96, .94), rgba(20, 16, 58, .96)); }
html, body { margin: 0; height: 100%; height: 100dvh; overflow: hidden; background: #0F0C22; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-b); color: var(--paper); }
button { font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
svg.fill, .fill svg { fill: currentColor; stroke: none; }
#app, .hr { position: fixed; inset: 0; width: 100%; height: 100dvh; overflow: hidden; background: #0F0C22; }
.cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.btn { gap: .5em; white-space: nowrap; min-height: 2.6em; font-size: 1rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--ghost { --bg: rgba(255, 255, 255, .1); --sh: rgba(0, 0, 0, .38); }
.btn--big { font-size: 1.3rem; }
.btn--sm { font-size: .85rem; } .btn--xs { font-size: .72rem; padding: .45em .9em; min-height: 0; border-radius: 9px; }
.btn.ic { padding: .85em .9em; } .btn.ic svg { width: 1.4em; height: 1.4em; }
.shake { animation: hrshake .35s; } @keyframes hrshake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* ---------- top bar ---------- */
.bar { position: absolute; z-index: 45; left: 0; right: 0; top: 0; padding: calc(var(--sat) + .5rem) calc(var(--sar) + .6rem) 0 calc(var(--sal) + .6rem); display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.bar > * { pointer-events: auto; }
.home { display: none; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(15, 12, 34, .55); }
.home img { width: 2.2rem; height: 2.2rem; } .home b { font-family: var(--font-d); font-weight: 400; font-size: .95rem; } .home b i { font-style: normal; color: var(--lime); }
body:not(.playing) .home { display: inline-flex; }
.tools { display: flex; gap: .4rem; margin-left: auto; }
.tool { width: 2.7rem; height: 2.7rem; border: 0; padding: 0; display: grid; place-items: center; border-radius: .85rem; background: rgba(22, 18, 58, .78); color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset, 0 3px 0 rgba(0, 0, 0, .35); transition: transform .12s, background .15s; backdrop-filter: blur(6px); }
.tool:hover { background: rgba(60, 50, 130, .95); transform: translateY(-1px); } .tool:active { transform: translateY(2px); }
.tool svg { width: 1.35rem; height: 1.35rem; }
body:not(.playing) #bPause { display: none; }

/* ---------- HUD ---------- */
.hud { position: absolute; inset: 0; z-index: 20; pointer-events: none; display: none; }
body.playing .hud { display: block; }
.hud small { display: block; font-size: .56rem; font-weight: 800; letter-spacing: .16em; color: #CFC9F5; }
.hud b, .hud i { text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.hpos, .hcp, .htime { background: linear-gradient(180deg, rgba(34, 28, 80, .84), rgba(18, 14, 52, .84)); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset, 0 4px 0 rgba(0, 0, 0, .3); backdrop-filter: blur(5px); }
.hpos { position: absolute; left: calc(var(--sal) + .8rem); top: calc(var(--sat) + .5rem); padding: .3rem .8rem .35rem .7rem; border-radius: 1rem; }
.hpos b { font: 400 2.8rem/1 var(--font-d); color: #fff; } .hpos i { font: 400 1.1rem var(--font-d); font-style: normal; color: #B8B2E8; margin-left: .15rem; }
.hpos.first b { color: var(--sun); text-shadow: 0 0 1.2rem rgba(255, 210, 63, .55), 0 3px 0 rgba(0, 0, 0, .45); }
.hcp { position: absolute; left: calc(var(--sal) + .8rem); top: calc(var(--sat) + 5.8rem); padding: .25rem .8rem; border-radius: .8rem; }
.hcp > div { display: flex; align-items: baseline; } .hcp b { font: 400 1.4rem var(--font-d); } .hcp i { font: 400 .95rem var(--font-d); font-style: normal; color: #B8B2E8; }
body.norivals .hcp { top: calc(var(--sat) + .5rem); }
.htime { position: absolute; left: 50%; top: calc(var(--sat) + .5rem); transform: translateX(-50%); text-align: center; padding: .25rem 1.3rem .35rem; border-radius: 1rem; min-width: 8.4rem; }
.htime b { display: block; font: 400 2.5rem/1.05 var(--font-d); font-variant-numeric: tabular-nums; color: #fff; }
.htime.low b { color: #FF5B2E; animation: hrpulse .5s infinite alternate; } .htime.low { box-shadow: 0 0 0 2px rgba(255, 91, 46, .8) inset, 0 0 1.4rem rgba(255, 91, 46, .5); }
@keyframes hrpulse { to { transform: scale(1.08); } }
.htime em { position: absolute; left: 100%; top: 50%; margin-left: .6rem; transform: translateY(-50%); font: 400 1.3rem var(--font-d); font-style: normal; color: var(--lime); opacity: 0; white-space: nowrap; }
.htime em.pop { animation: hrbonus 1.6s ease-out; } @keyframes hrbonus { 0% { opacity: 0; transform: translate(-1rem, -50%) scale(.6); } 12% { opacity: 1; transform: translate(0, -50%) scale(1.2); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(0, -90%) scale(1); } }
.hprog { position: absolute; left: 50%; top: calc(var(--sat) + 5rem); transform: translateX(-50%); width: min(26rem, 52vw); height: 1.1rem; }
.hprog__bar { position: relative; height: .5rem; margin-top: .3rem; border-radius: 1rem; background: rgba(15, 12, 34, .72); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .15) inset; }
.hprog__bar #hProgFill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 1rem; background: linear-gradient(90deg, var(--acc), var(--lime)); }
.hprog u { position: absolute; top: -.25rem; width: 2px; height: 1rem; background: rgba(255, 255, 255, .55); } .hprog u.fin { width: 4px; background: repeating-linear-gradient(180deg, #fff 0 3px, #111 3px 6px); top: -.3rem; height: 1.1rem; }
.hprog .rvd { position: absolute; top: .02rem; width: .46rem; height: .46rem; margin-left: -.23rem; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(15, 12, 34, .8); }
#hMe { position: absolute; top: -.1rem; width: .85rem; height: .85rem; margin-left: -.42rem; margin-top: .3rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--lime), 0 0 .8rem var(--lime); }
.hspd { position: absolute; left: 50%; bottom: calc(var(--sab) + .7rem); transform: translateX(-50%); width: 14rem; text-align: center; }
.hs { display: inline-flex; align-items: baseline; gap: .4rem; padding: .05rem 1rem; border-radius: 1rem; background: rgba(18, 14, 52, .68); backdrop-filter: blur(5px); }
.hs b { font: 400 2.5rem/1.1 var(--font-d); font-variant-numeric: tabular-nums; } .hs small { margin: 0; letter-spacing: .08em; }
.hbst { position: relative; margin: .4rem auto 0; width: 11rem; height: .9rem; border-radius: 1rem; background: rgba(15, 12, 34, .75); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .15) inset; overflow: visible; }
.hbst i { display: block; height: 100%; width: 0; border-radius: 1rem; background: linear-gradient(90deg, #2F8CFF, #2FD6FF, #C6FF3D); transition: width .1s; }
.hbst span { position: absolute; left: -1.7rem; top: 50%; margin-top: -.75rem; width: 1.5rem; height: 1.5rem; color: #6C6A99; } .hbst span svg { width: 100%; height: 100%; }
.hbst.ready span { color: var(--lime); } .hbst.full { box-shadow: 0 0 0 1.5px var(--lime) inset, 0 0 1.2rem rgba(198, 255, 61, .55); } .hbst.use { box-shadow: 0 0 0 1.5px #2FD6FF inset, 0 0 1.4rem rgba(47, 214, 255, .8); }
.hcombo { position: absolute; left: 50%; bottom: calc(var(--sab) + 6.4rem); transform: translateX(-50%); font: 400 1.3rem var(--font-d); color: var(--lime); text-shadow: 0 2px 0 rgba(0, 0, 0, .55); opacity: 0; white-space: nowrap; }
.hcombo.show { opacity: 1; animation: hrcmb .3s; } @keyframes hrcmb { 0% { transform: translateX(-50%) scale(1.5); } 100% { transform: translateX(-50%) scale(1); } }

/* ---------- touch controls (touch devices only) ---------- */
.tc { position: absolute; inset: 0; z-index: 30; display: none; pointer-events: none; --tb: clamp(62px, 15vmin, 98px); }
body.is-touch.playing .tc { display: block; }
.pad { position: absolute; left: 0; bottom: 0; width: 56%; height: 58%; pointer-events: auto; touch-action: none; }
.pad .ring { position: absolute; left: var(--ox, 50%); top: var(--oy, 62%); width: 7.4rem; height: 7.4rem; margin: -3.7rem 0 0 -3.7rem; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .28); background: radial-gradient(circle, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 70%); transition: opacity .15s; }
.pad .knob { position: absolute; left: var(--ox, 50%); top: var(--oy, 62%); width: 3.4rem; height: 3.4rem; margin: -1.7rem 0 0 -1.7rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgba(198, 255, 61, .85)); box-shadow: 0 0 1.2rem rgba(198, 255, 61, .55); opacity: .75; }
.pad:not(.on) .ring { opacity: .3; } .pad:not(.on) .knob { opacity: .35; }
.pad .al, .pad .ar2 { position: absolute; top: 62%; margin-top: -1.1rem; width: 2.2rem; height: 2.2rem; color: rgba(255, 255, 255, .55); } .pad .al { left: calc(var(--ox, 50%) - 6rem); } .pad .ar2 { left: calc(var(--ox, 50%) + 3.8rem); } .pad.on .al, .pad.on .ar2 { display: none; }
.pad em { position: absolute; left: var(--ox, 50%); top: calc(62% + 4.4rem); transform: translateX(-50%); font: 800 .6rem var(--font-b); font-style: normal; letter-spacing: .16em; color: rgba(255, 255, 255, .55); white-space: nowrap; } .pad.on em { display: none; }
.tcb { position: absolute; width: var(--tb); height: var(--tb); border-radius: 50%; border: 0; pointer-events: auto; touch-action: none; color: #fff; display: grid; place-items: center; align-content: center; gap: .1rem; font: 400 .72rem var(--font-d); letter-spacing: .04em; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22) inset, 0 5px 0 rgba(0, 0, 0, .4); backdrop-filter: blur(4px); transition: transform .08s; }
.tcb svg { width: 1.6rem; height: 1.6rem; }
.tcb.brake { right: calc(var(--sar) + 4%); bottom: calc(var(--sab) + 5%); background: radial-gradient(circle at 35% 30%, #FF8A6A, #D8302A 70%); }
.tcb.boost { right: calc(var(--sar) + 4%); bottom: calc(var(--sab) + 5% + var(--tb) + .9rem); background: radial-gradient(circle at 35% 30%, #7FE9FF, #2F6FE0 70%); }
body:not(.portrait) .tcb.boost { right: calc(var(--sar) + 4% + var(--tb) + 1rem); bottom: calc(var(--sab) + 9%); }
.tcb.gas { display: none; right: calc(var(--sar) + 4% + var(--tb) + 1rem); bottom: calc(var(--sab) + 5%); background: radial-gradient(circle at 35% 30%, #C6FF3D, #4FA818 70%); color: #0F0C22; }
body.manual-gas .tcb.gas { display: grid; } body.manual-gas:not(.portrait) .tcb.boost { right: calc(var(--sar) + 4% + 2 * var(--tb) + 2rem); }
.tcb.hold { transform: scale(.92); filter: brightness(1.25); }
body.short .tcb.boost svg { display: none; }

/* ---------- banner + hint ---------- */
.ban { position: absolute; z-index: 40; left: 0; right: 0; top: 30%; text-align: center; pointer-events: none; opacity: 0; }
.ban b { display: block; font: 400 clamp(2.4rem, 10vmin, 7rem)/1 var(--font-d); color: #fff; text-shadow: 0 5px 0 rgba(0, 0, 0, .45), 0 0 2rem rgba(255, 255, 255, .25); letter-spacing: .02em; }
.ban small { display: block; margin-top: .6rem; font: 800 clamp(.8rem, 2.4vmin, 1.4rem) var(--font-b); letter-spacing: .2em; text-transform: uppercase; color: #E9E5FF; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.ban.show { animation: hrban var(--dur, 1400ms) ease-out forwards; }
@keyframes hrban { 0% { opacity: 0; transform: scale(1.5); } 12% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(.96) translateY(-.5rem); } }
.ban.cnt b { font-size: clamp(5rem, 22vmin, 14rem); } .ban.go b { color: var(--lime); text-shadow: 0 5px 0 rgba(0, 0, 0, .45), 0 0 3rem rgba(198, 255, 61, .6); }
.ban.bad b { color: #FF5B2E; } .ban.map { top: 22%; } .ban.map b { font-size: clamp(1.8rem, 6.5vmin, 4.4rem); }
.hint { position: absolute; z-index: 38; left: 50%; bottom: calc(var(--sab) + 10rem); transform: translateX(-50%) translateY(1rem); max-width: min(32rem, 88vw); padding: .7rem 1.1rem; border-radius: 1rem; background: rgba(15, 12, 34, .88); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .2) inset, 0 6px 0 rgba(0, 0, 0, .3); text-align: center; font-size: .95rem; line-height: 1.35; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.hint.show { opacity: 1; transform: translateX(-50%); } .hint b { color: var(--lime); }
body.portrait .hint { bottom: calc(var(--sab) + 18rem); } body:not(.is-touch) .hint { bottom: calc(var(--sab) + 9rem); }

/* ---------- overlays ---------- */
.ovl { position: absolute; inset: 0; z-index: 50; display: none; overflow: auto; padding: calc(var(--sat) + 3.6rem) calc(var(--sar) + 1rem) calc(var(--sab) + 1rem) calc(var(--sal) + 1rem); -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.ovl.show { display: flex; animation: hrfade .3s ease-out; } @keyframes hrfade { from { opacity: 0; } }
.ovl.center { align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 45%, rgba(10, 8, 30, .5), rgba(10, 8, 30, .78)); }
.ovl.menuov { align-items: center; justify-content: flex-start; padding-left: calc(var(--sal) + 6vw); background: linear-gradient(90deg, rgba(10, 8, 30, .82), rgba(10, 8, 30, .45) 48%, rgba(10, 8, 30, 0) 75%); }
.ovl.pageov { align-items: flex-start; justify-content: center; background: linear-gradient(180deg, rgba(10, 8, 30, .78), rgba(10, 8, 30, .9)); }
.kick { font: 800 .72rem var(--font-b); letter-spacing: .22em; text-transform: uppercase; color: var(--acc); } .kick span { color: #E9E5FF; margin-left: .5rem; } .kick.c { text-align: center; } .kick.bad { color: #FF5B2E; }
.menu { max-width: 33rem; }
.logo { margin: .3rem 0 .6rem; font: 400 clamp(3.2rem, 10vmin, 7.2rem)/.9 var(--font-d); text-transform: uppercase; letter-spacing: .01em; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .4)); }
.logo span { display: block; color: #fff; font-size: .62em; letter-spacing: .08em; } .logo b { display: block; font-weight: 400; color: transparent; background: linear-gradient(180deg, #FFE98A 15%, #FF8A3D 55%, #FF3D8B 95%); -webkit-background-clip: text; background-clip: text; }
.tag { margin: 0 0 1.2rem; font-size: 1.02rem; line-height: 1.5; color: #D9D4FA; max-width: 28rem; }
.cta { margin-bottom: .9rem; } .sub2 { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.1rem; }
.chips { display: flex; gap: .6rem; flex-wrap: wrap; } .chips > div, .stat { padding: .45rem .9rem; border-radius: .9rem; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; }
.chips small, .stat small { display: block; font-size: .56rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #B8B2E8; } .chips b, .stat b { font: 400 1.25rem var(--font-d); } .chips em, .stat em { font: 700 .75rem var(--font-b); font-style: normal; color: #B8B2E8; }
.card { width: min(30rem, 94vw); padding: 1.5rem 1.6rem 1.6rem; border-radius: 1.6rem; background: var(--pn); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14) inset, 0 20px 60px rgba(0, 0, 0, .5); text-align: center; max-height: 100%; overflow: auto; animation: hrpop .4s var(--ease); }
@keyframes hrpop { from { opacity: 0; transform: translateY(1.5rem) scale(.94); } }
.card.wide { width: min(38rem, 94vw); } .card h2 { margin: .2rem 0 .3rem; font: 400 2.1rem/1.05 var(--font-d); text-transform: uppercase; } .sub { margin: 0 0 1rem; color: #CFC9F5; font-weight: 600; }
.acts { display: flex; flex-direction: column; gap: .7rem; align-items: stretch; margin-top: 1.1rem; } .row2 { display: flex; gap: .6rem; justify-content: center; } .row2 .btn { flex: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0; } .stat { text-align: center; padding: .45rem .3rem; }
.tip { color: #D9D4FA; font-size: .92rem; line-height: 1.45; margin: .6rem 0 0; } .tip b { color: var(--lime); }
.rec { display: inline-block; margin: .2rem 0 .3rem; padding: .25rem .8rem; border-radius: 2rem; background: var(--lime); color: var(--ink); font: 400 .8rem var(--font-d); text-transform: uppercase; animation: hrpop .5s .6s both; }
.bigstars { display: flex; justify-content: center; gap: .6rem; margin: .5rem 0; } .bs { width: 4.4rem; height: 4.4rem; color: rgba(255, 255, 255, .14); } .bs svg { width: 100%; height: 100%; }
.bs.on { color: var(--gold); filter: drop-shadow(0 0 1rem rgba(255, 210, 63, .7)); animation: hrstar .6s var(--d, .3s) both cubic-bezier(.2, 1.6, .4, 1); } .bs:nth-child(2) { margin-top: -.7rem; }
@keyframes hrstar { 0% { transform: scale(0) rotate(-120deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.goals { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; text-align: left; } .goals li { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border-radius: .8rem; background: rgba(255, 255, 255, .07); font-weight: 600; font-size: .92rem; }
.goals li i { width: 1.4rem; height: 1.4rem; flex: none; color: rgba(255, 255, 255, .22); } .goals li i svg { width: 100%; height: 100%; } .goals li.ok { background: rgba(198, 255, 61, .13); } .goals li.ok i { color: var(--gold); filter: drop-shadow(0 0 .5rem rgba(255, 210, 63, .6)); } .goals li b { color: var(--lime); }
.goals.mini li { padding: .3rem .7rem; font-size: .82rem; }
.unl { display: flex; align-items: center; gap: .7rem; margin-top: .7rem; padding: .5rem .8rem; border-radius: .9rem; background: rgba(255, 210, 63, .12); box-shadow: 0 0 0 1.5px rgba(255, 210, 63, .5) inset; text-align: left; animation: hrpop .5s 1.6s both; } .unl i { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.prog { position: relative; height: 1.6rem; border-radius: 1rem; background: rgba(0, 0, 0, .35); overflow: hidden; margin: .5rem 0; } .prog i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #FF5B2E, #FFD23F); border-radius: 1rem; } .prog span { position: relative; font: 800 .75rem/1.6rem var(--font-b); letter-spacing: .08em; }
.trophy svg { width: 6rem; height: 6rem; margin: .4rem auto; fill: none; stroke: none; }
.rows { display: grid; gap: .6rem; margin: .8rem 0; } .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .8rem; border-radius: .9rem; background: rgba(255, 255, 255, .06); font-weight: 700; text-align: left; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 11rem; height: .6rem; border-radius: 1rem; background: linear-gradient(90deg, var(--lime) var(--v, 50%), rgba(255, 255, 255, .16) var(--v, 50%)); outline: none; touch-action: pan-x; } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--lime); cursor: pointer; } input[type=range]::-moz-range-thumb { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; border: 3px solid var(--lime); }
.howto { display: grid; gap: .8rem; text-align: left; margin-top: .6rem; } .howto h4 { margin: 0 0 .2rem; font: 400 .95rem var(--font-d); color: var(--acc); text-transform: uppercase; } .howto p, .howto li { margin: .2rem 0; font-size: .92rem; line-height: 1.45; color: #E2DEFA; } .howto ul { margin: 0; padding-left: 1.1rem; }
kbd { display: inline-block; padding: .05rem .45rem; border-radius: .4rem; background: rgba(255, 255, 255, .14); box-shadow: 0 2px 0 rgba(0, 0, 0, .4); font: 700 .8rem var(--font-b); }
body.is-touch .hk { display: none; } body:not(.is-touch) .ht { display: none; }

/* ---------- pages (route map, sheet, garage) ---------- */
.page { width: min(64rem, 100%); }
.phead { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; } .phead h2 { margin: 0; flex: 1; font: 400 1.7rem var(--font-d); text-transform: uppercase; }
.pst { display: flex; align-items: center; gap: .3rem; font: 400 1.2rem var(--font-d); } .pst .st { width: 1.4rem; height: 1.4rem; color: var(--gold); } .pst .st svg { width: 100%; height: 100%; } .pst em { font: 700 .8rem var(--font-b); font-style: normal; color: #B8B2E8; }
.stars { display: inline-flex; gap: .1rem; } .stars .st { width: 1.5rem; height: 1.5rem; color: rgba(255, 255, 255, .2); } .stars .st svg { width: 100%; height: 100%; } .stars .st.on { color: var(--gold); filter: drop-shadow(0 0 .35rem rgba(255, 210, 63, .6)); } .stars.sm .st { width: 1.05rem; height: 1.05rem; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-bottom: .8rem; }
.tab { position: relative; padding: 0; border: 0; border-radius: 1rem; overflow: hidden; color: #fff; text-align: left; background: #181338; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset, 0 4px 0 rgba(0, 0, 0, .35); transition: transform .12s, box-shadow .15s; }
.tab canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; filter: saturate(.8) brightness(.75); } .tab b { position: absolute; left: .6rem; bottom: 1.45rem; font: 400 .95rem/1 var(--font-d); text-shadow: 0 2px 0 rgba(0, 0, 0, .6); } .tab small { position: absolute; left: .6rem; bottom: .4rem; display: flex; align-items: center; gap: .25rem; font-weight: 800; font-size: .7rem; color: #E9E5FF; } .tab small svg { width: .9rem; height: .9rem; } .tab .tn { position: absolute; right: .5rem; top: .4rem; font: 400 1rem var(--font-d); color: rgba(255, 255, 255, .85); }
.tab.on { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--acc) inset, 0 7px 0 rgba(0, 0, 0, .35), 0 0 1.6rem color-mix(in srgb, var(--acc) 50%, transparent); } .tab.on canvas { filter: none; } .tab.lk canvas { filter: grayscale(1) brightness(.4); }
.stagebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; margin-bottom: .8rem; border-radius: 1.1rem; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 30%, #181338), #181338 80%); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; }
.stagebar small { font-weight: 800; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); } .stagebar h3 { margin: 0; font: 400 1.5rem var(--font-d); text-transform: uppercase; } .stagebar p { margin: .1rem 0 0; color: #CFC9F5; font-size: .88rem; }
.ssum { text-align: right; } .ssum b { display: block; font: 400 1.15rem var(--font-d); } .ssum em { font: 700 .75rem var(--font-b); font-style: normal; color: #B8B2E8; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.tile { position: relative; padding: 0; border: 0; border-radius: 1.1rem; overflow: hidden; color: #fff; text-align: left; background: #181338; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset, 0 5px 0 rgba(0, 0, 0, .35); transition: transform .12s, box-shadow .15s; }
.tile:hover:not(.lk) { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--acc) inset, 0 8px 0 rgba(0, 0, 0, .35); }
.tile canvas { display: block; width: 100%; height: auto; aspect-ratio: 300 / 170; } .tile .tn { position: absolute; left: .6rem; top: .5rem; min-width: 2rem; height: 2rem; padding: 0 .4rem; border-radius: .6rem; display: grid; place-items: center; font: 400 1.1rem var(--font-d); background: rgba(15, 12, 34, .8); box-shadow: 0 0 0 2px var(--acc) inset; }
.tile .tw { position: absolute; right: .5rem; top: .5rem; display: flex; gap: .25rem; padding: .25rem .45rem; border-radius: .6rem; background: rgba(15, 12, 34, .7); } .tile .tw svg { width: 1.05rem; height: 1.05rem; }
.tile .tt { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .7rem .5rem; background: linear-gradient(180deg, rgba(15, 12, 34, 0), rgba(15, 12, 34, .92)); display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; } .tile .tt b { font: 400 .95rem/1.1 var(--font-d); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.tile .tb { position: absolute; right: .6rem; top: 2.9rem; font: 800 .62rem var(--font-b); font-style: normal; color: #E9E5FF; background: rgba(15, 12, 34, .7); padding: .1rem .4rem; border-radius: .4rem; }
.tile.now { box-shadow: 0 0 0 3px var(--lime) inset, 0 5px 0 rgba(0, 0, 0, .35), 0 0 1.4rem rgba(198, 255, 61, .4); animation: hrnow 1.6s ease-in-out infinite; } @keyframes hrnow { 50% { box-shadow: 0 0 0 3px var(--lime) inset, 0 5px 0 rgba(0, 0, 0, .35), 0 0 2.2rem rgba(198, 255, 61, .7); } }
.tile.lk canvas { filter: grayscale(1) brightness(.35); } .tile .tl { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; } .tile .tl svg { width: 2.6rem; height: 2.6rem; opacity: .9; }
.hintp { text-align: center; color: #B8B2E8; font-size: .9rem; margin: 1rem 0 0; }
.sheetp { width: min(60rem, 100%); } .sheet { border-radius: 1.4rem; overflow: hidden; background: var(--pn); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14) inset, 0 20px 60px rgba(0, 0, 0, .5); }
.sh-art { position: relative; } .sh-art canvas { display: block; width: 100%; height: auto; aspect-ratio: 640 / 300; max-height: 42vh; object-fit: cover; } .sh-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.4rem 1rem; background: linear-gradient(180deg, transparent, rgba(15, 12, 34, .95)); }
.sh-t small { font-weight: 800; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); } .sh-t h3 { margin: .1rem 0 0; font: 400 clamp(1.5rem, 5vmin, 2.6rem) var(--font-d); text-transform: uppercase; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.sh-b { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; padding: 1.1rem 1.4rem 1.4rem; } .prof { display: block; width: 100%; height: auto; border-radius: .8rem; background: rgba(0, 0, 0, .25); }
.meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; } .meta span { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 2rem; background: rgba(255, 255, 255, .09); font-weight: 700; font-size: .78rem; } .meta svg { width: 1rem; height: 1rem; color: var(--acc); }
.best { margin: .8rem 0 0; color: #CFC9F5; font-size: .9rem; } .best b { color: #fff; }
.garage { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; align-items: center; } .gcar { position: relative; text-align: center; padding: 1.2rem; border-radius: 1.4rem; background: var(--pn); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14) inset; overflow: hidden; }
.gglow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 70%); } .gcar canvas { position: relative; width: min(100%, 22rem); height: auto; filter: drop-shadow(0 1rem 1rem rgba(0, 0, 0, .5)); } .gcar h3 { position: relative; margin: .4rem 0 0; font: 400 1.6rem var(--font-d); text-transform: uppercase; }
.gpaints { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; } .pnt { display: grid; grid-template-columns: 2.4rem 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: .6rem .8rem; border-radius: 1rem; border: 0; color: #fff; text-align: left; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; }
.pnt i { grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); } .pnt b { font: 400 .95rem var(--font-d); } .pnt small { display: flex; gap: .25rem; align-items: center; color: #B8B2E8; font-weight: 700; font-size: .7rem; } .pnt small svg { width: .85rem; height: .85rem; }
.pnt.on { box-shadow: 0 0 0 3px var(--lime) inset; background: rgba(198, 255, 61, .12); } .pnt.lk { opacity: .55; }

/* ---------- responsive ---------- */
body.portrait .ovl.menuov { justify-content: center; align-items: flex-start; padding-left: calc(var(--sal) + 1rem); padding-top: calc(var(--sat) + 4rem); background: linear-gradient(180deg, rgba(10, 8, 30, .88), rgba(10, 8, 30, .55) 55%, rgba(10, 8, 30, 0) 85%); }
body.portrait .menu { text-align: center; } body.portrait .sub2, body.portrait .chips { justify-content: center; } body.portrait .tag { margin-left: auto; margin-right: auto; font-size: .95rem; }
body.narrow .tiles { grid-template-columns: repeat(2, 1fr); } body.narrow .tabs { display: flex; overflow-x: auto; padding-bottom: .4rem; } body.narrow .tab { flex: 0 0 8.6rem; }
body.narrow .sh-b, body.narrow .garage { grid-template-columns: 1fr; } body.narrow .stagebar p { display: none; } body.narrow .hide-s { display: none; }
body.narrow .htime { min-width: 6.6rem; padding: .2rem .8rem .3rem; } body.narrow .htime b { font-size: 2rem; } body.narrow .hpos b { font-size: 2.2rem; } body.narrow .hprog { width: 62vw; top: calc(var(--sat) + 4.4rem); }
body.narrow .hcp { top: calc(var(--sat) + 4.9rem); } body.narrow .hspd { width: 11rem; } body.narrow .hs b { font-size: 2rem; }
body.portrait.is-touch.playing .hspd { bottom: auto; top: calc(var(--sat) + 7.2rem); left: auto; right: calc(var(--sar) + .8rem); transform: none; width: auto; text-align: right; }
body.portrait.is-touch.playing .hbst { width: 7rem; margin-left: auto; } body.portrait.is-touch.playing .hcombo { bottom: auto; top: calc(var(--sat) + 11.8rem); left: auto; right: calc(var(--sar) + .8rem); transform: none; font-size: 1.05rem; }
body.short .ovl { padding-top: calc(var(--sat) + 3.2rem); } body.short .logo { font-size: 2.8rem; } body.short .tag { display: none; } body.short .card { padding: 1rem 1.2rem 1.1rem; } body.short .card h2 { font-size: 1.6rem; } body.short .bs { width: 3rem; height: 3rem; }
body.short .hpos b { font-size: 2rem; } body.short .htime b { font-size: 1.8rem; } body.short .hcp { top: calc(var(--sat) + 4.4rem); } body.short .hspd { bottom: calc(var(--sab) + .3rem); } body.short .hs b { font-size: 1.7rem; } body.short .hprog { top: calc(var(--sat) + 3.9rem); }
body.short .hint { bottom: calc(var(--sab) + 4rem); font-size: .85rem; } body.short .sh-art canvas { max-height: 26vh; } body.short .stats { gap: .3rem; } body.short .stat b { font-size: 1rem; } body.short .goals li { padding: .25rem .6rem; } body.short .tile .tt b { font-size: .8rem; }
@media (max-width: 1100px) and (min-height: 540px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ban.show, .tile.now, .htime.low b { animation: none; } .ban.show { opacity: 1; } }
/* very short screens (phones held sideways): compact cards so every button stays on screen */
body.short .goals.mini, body.short .card .sub, body.short .trophy, body.short .card .tip, body.short .kick.c { display: none; }
body.short .card.finale .tip { display: block; }
body.short .card { padding: .7rem 1rem .8rem; } body.short .card h2 { margin: 0 0 .2rem; font-size: 1.45rem; }
body.short .stats { margin: .35rem 0; } body.short .stat { padding: .3rem .2rem; } body.short .bigstars { margin: .1rem 0; } body.short .bs { width: 2.6rem; height: 2.6rem; }
body.short .card .acts { margin-top: .5rem; gap: .4rem; } body.short .card .btn--big { font-size: 1.05rem; min-height: 2.3em; padding: .5em 1.4em; } body.short .row2 .btn { min-height: 2.2em; }
body.short .ovl.center { align-items: flex-start; padding-top: calc(var(--sat) + 2.6rem); } body.short .prog { margin: .3rem 0; height: 1.3rem; }
body.short .unl { margin-top: .3rem; padding: .25rem .6rem; }
