:root{color-scheme:dark;--paper:#f4f0e9;--muted:#a9b5bc;--faint:#6d7f8b;--accent:#efbd85;--line:rgba(228,237,242,.17);--mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace;--sans:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-family:var(--sans);color:var(--paper);background:#111b24;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{min-width:320px}button{font:inherit;color:inherit;border:0;cursor:pointer;background:none;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid var(--accent);outline-offset:6px}button:disabled{cursor:wait;opacity:.55}button,dialog{touch-action:manipulation}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}#world{touch-action:none;position:fixed;top:var(--sgh-top,0px);left:0;right:0;bottom:var(--ad-space,0px);background:linear-gradient(#344b62,#b4a795 64%,#253545)}#world canvas{display:block;width:100%;height:100%;outline:0}.cinematic-shade{position:fixed;top:var(--sgh-top,0px);left:0;right:0;bottom:var(--ad-space,0px);pointer-events:none;background:linear-gradient(90deg,rgba(8,18,28,.89) 0%,rgba(8,18,28,.77) 24%,rgba(8,18,28,.23) 53%,rgba(8,18,28,.04) 78%),linear-gradient(0deg,rgba(7,16,24,.87),transparent 24%,transparent 80%,rgba(8,16,25,.3));transition:background .6s}body:not([data-phase=title]) .cinematic-shade{background:linear-gradient(0deg,rgba(5,14,23,.76),transparent 30%,transparent 70%,rgba(5,14,23,.57))}#danger-vignette{position:fixed;top:var(--sgh-top,0px);left:0;right:0;bottom:var(--ad-space,0px);pointer-events:none;box-shadow:inset 0 0 180px 45px #ac372070;opacity:0}#flash{position:fixed;top:var(--sgh-top,0px);left:0;right:0;bottom:var(--ad-space,0px);background:#a8e9ff;pointer-events:none;opacity:0;z-index:8}#flash.active{animation:flash .5s ease-out}@keyframes flash{0%{opacity:.9}20%{opacity:.12}33%{opacity:.55}100%{opacity:0}}
.header{position:fixed;top:var(--sgh-top,0px);left:0;width:100%;padding:27px 48px;display:flex;justify-content:space-between;align-items:center;z-index:10}.wordmark{display:flex;text-align:left;gap:11px;align-items:center;padding:0;letter-spacing:2.7px;font-size:12px;font-weight:650}.wordmark>svg{width:33px;height:33px;stroke:var(--accent);stroke-width:1.7}.brand-caption{display:block;font-family:var(--mono);font-size:8px;font-weight:400;letter-spacing:2.3px;color:var(--muted);margin-top:5px}nav{display:flex;align-items:center;gap:27px}.nav-link{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:1px;color:#d7dde0;padding:8px 0;transition:color .2s}.nav-link:hover,.icon-button:hover{color:var(--accent)}.nav-link svg{width:17px;height:17px}.nav-divider{width:1px;height:20px;background:var(--line);margin:0 -8px}.icon-button{display:grid;place-items:center;width:27px;height:31px;padding:0;color:#c3cdd3}.icon-button svg{width:20px;height:20px}.icon-button[aria-pressed=false]{color:#637785}.header:after{content:'';height:1px;background:linear-gradient(90deg,var(--line),transparent 38%,transparent 64%,var(--line));position:absolute;bottom:0;left:48px;right:48px}
.title-screen{position:fixed;top:var(--sgh-top,0px);left:0;right:0;bottom:var(--ad-space,0px)}.title-copy{position:absolute;left:8%;top:50%;transform:translateY(-45%);width:510px}.eyebrow{display:flex;gap:9px;align-items:center;font-family:var(--mono);font-size:10px;letter-spacing:2.15px;color:var(--accent)}.live-dot{width:5px;height:5px;box-shadow:0 0 8px #efbd8570;background:var(--accent);border-radius:50%}h1{font-size:clamp(52px,5vw,80px);line-height:1.1;font-weight:800;letter-spacing:.01em;margin:22px 0 0;text-shadow:0 3px 40px #09172530}h1>span{display:block;font-size:12px;font-weight:450;letter-spacing:10px;margin:7px 0 27px 4px;color:#c2cbd1}.tagline{font-size:20px;letter-spacing:2px;font-weight:450;margin:0 0 17px}.intro{font-size:12px;line-height:2.15;letter-spacing:1.15px;color:#afbdc6;margin:0}.specs{display:flex;margin:30px 0 31px;gap:0}.specs>div{display:flex;flex-direction:column;padding:0 29px;border-right:1px solid var(--line)}.specs>div:first-child{padding-left:0}.specs>div:last-child{border-right:0}.spec-label{font-size:8px;font-family:var(--mono);letter-spacing:1.4px;color:#a9b4bc}.specs strong{font-family:var(--mono);font-size:34px;line-height:1.45;font-weight:400;letter-spacing:-1.5px}.specs strong>span{font-family:var(--sans);font-size:13px;letter-spacing:0;margin-left:5px;color:#b6c0c7}.spec-caption{font-size:9px;letter-spacing:1px;color:#8d9ea9}.primary-button{height:55px;width:348px;display:flex;justify-content:space-between;align-items:center;padding:0 23px;background:var(--accent);color:#182028;font-size:14px;font-weight:650;letter-spacing:2px;transition:background .2s,transform .2s;box-shadow:0 3px 30px #b6814020}.primary-button:hover{background:#ffd4a1;transform:translateY(-1px)}.primary-button svg{width:22px}.start-note{margin-top:15px;display:flex;align-items:center;gap:7px;font-size:9px;color:#94a5b0;letter-spacing:.4px}.key-small{border:1px solid #7b8b9655;border-radius:2px;font-family:var(--mono);font-size:8px;padding:3px 5px;color:#c5cdd2}.note-dot{margin:0 3px}.scene-info{position:absolute;right:48px;top:126px;text-align:right}.scene-location{display:block;font-size:9px;font-family:var(--mono);letter-spacing:2px;color:#f2d0a8}.scene-weather{display:flex;align-items:center;justify-content:flex-end;gap:9px;font-family:var(--mono);font-size:11px;color:#cdd1d2;margin-top:13px}.scene-weather span{font-family:var(--sans);font-size:10px}.scene-weather i{width:2px;height:2px;border-radius:100%;background:currentColor}.best-preview{position:absolute;right:48px;bottom:165px;display:flex;gap:13px;align-items:center;border-top:1px solid #d4dce02b;padding-top:17px;width:225px}.best-preview>svg{color:var(--accent);width:21px}.best-preview div>span{display:block;font-family:var(--mono);font-size:8px;letter-spacing:1.6px;color:#aebdc6}.best-preview strong{display:block;font-family:var(--mono);font-size:18px;font-weight:400;margin-top:9px;color:#e6edf0}.voltage-label{position:absolute;left:65%;bottom:25%;display:flex;gap:9px;align-items:center;color:#efc38f;transform:translateX(-50%);text-shadow:0 2px 12px #000}.voltage-label svg{width:21px;height:25px;stroke-width:1.2}.voltage-label>span{font-family:var(--mono);font-size:8px;letter-spacing:1.5px}.voltage-label strong{display:block;font-family:var(--sans);font-size:9px;font-weight:400;letter-spacing:.8px;margin-top:6px;color:#c3c5c0}.title-bottom{position:absolute;bottom:79px;left:48px;right:48px;display:flex;align-items:center;gap:14px;font-family:var(--mono);font-size:8px;letter-spacing:1.7px;color:#8597a3}.bottom-rule{width:26px;height:1px;background:var(--accent)}.bottom-coordinate{margin-left:auto;font-size:9px;letter-spacing:1px;color:#9baab3}.footer{position:fixed;bottom:var(--ad-space,0px);width:100%;height:49px;border-top:1px solid #d3e2ed14;display:flex;align-items:center;justify-content:space-between;padding:0 48px;z-index:5;font-size:9px;color:#81949f;letter-spacing:1px}.footer small{font-family:var(--mono);font-size:8px;margin-left:7px;color:#566d7b}.footer-note{font-family:var(--mono);font-size:7px;letter-spacing:1.9px;position:absolute;left:50%;transform:translateX(-50%)}.footer-credit{display:flex;align-items:center;gap:14px;white-space:nowrap}.footer-copy a{color:inherit;text-decoration:none;transition:color .2s}.footer-copy a:hover{color:var(--accent)}.footer button{display:flex;align-items:center;gap:10px;font-family:var(--mono);font-size:8px;letter-spacing:1.2px;color:#94a7b3;padding:8px 0}.footer svg{width:13px;height:13px}
#game-hud{position:fixed;top:var(--sgh-top,0px);left:0;right:0;bottom:var(--ad-space,0px);pointer-events:none}.timer-block{position:absolute;top:28px;left:50%;transform:translateX(-50%);text-align:center}.hud-label{font-family:var(--mono);font-size:9px;letter-spacing:1.8px;color:#b1bdc7}.timer-block>strong{display:block;font-family:var(--mono);font-weight:350;font-size:38px;letter-spacing:-1px;margin-top:6px;text-shadow:0 2px 20px #13202d}.hud-best{display:block;font-family:var(--mono);font-size:9px;letter-spacing:1px;color:var(--accent);margin-top:8px}.hud-best span{margin-left:8px;color:#c1cbd2}.altitude-hud{position:absolute;left:48px;top:145px;display:flex;flex-direction:column}.altitude-hud>strong{font-family:var(--mono);font-weight:400;font-size:35px;letter-spacing:-2px;margin-top:5px}.altitude-hud>strong span{font-size:15px;letter-spacing:0;margin-left:4px;color:#9aabb7}.energized{color:var(--accent);font-family:var(--mono);font-size:8px;letter-spacing:1px;margin-top:15px}.energized i{display:inline-block;width:4px;height:4px;background:var(--accent);border-radius:50%;margin-right:6px;box-shadow:0 0 8px #efbd85}.route-hud{position:absolute;right:48px;top:146px;width:205px}.route-hud>div:first-child{display:flex;align-items:center;justify-content:space-between;font-family:var(--mono);font-size:10px;color:#a8b9c3}.route-hud strong{font-size:18px;color:var(--paper);font-weight:400}.route-line{height:2px;background:#c6d4df33;margin:15px 0 11px;position:relative}.route-line i{display:block;width:0;height:100%;background:var(--accent)}.route-line b{position:absolute;right:0;top:-3px;width:2px;height:8px;background:var(--accent)}#distance-note{display:block;text-align:right;font-size:9px;letter-spacing:.7px;color:#b6c5d0}#crosshair{position:absolute;left:50%;top:48%;width:3px;height:3px;background:#fff8;border-radius:50%;box-shadow:0 0 2px #123}.balance-panel{position:absolute;left:50%;bottom:132px;transform:translateX(-50%);width:360px}.balance-heading{display:flex;justify-content:space-between;font-family:var(--mono);font-size:9px;color:#c1cdd4;letter-spacing:.5px;margin-bottom:14px}.balance-heading span:nth-child(2){font-size:8px;color:var(--accent);letter-spacing:2px}.balance-track{height:5px;background:linear-gradient(90deg,#d56657a0,#d5665740 20%,#d6dbe333 30%,#d6dbe333 70%,#d5665740 80%,#d56657a0);position:relative}.balance-safe{position:absolute;inset:0 38%;background:#b9d1c178}.balance-center{position:absolute;top:-6px;left:50%;width:1px;height:17px;background:#ffffff59}.balance-track>i{position:absolute;left:50%;top:-4px;width:3px;height:13px;background:#fff;box-shadow:0 0 9px #fff8;transition:left .06s linear}.balance-labels{margin-top:13px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:.5px;color:#93a7b5}.balance-labels span:nth-child(2){color:#cbd5dc}.desktop-controls{position:absolute;bottom:74px;left:50%;transform:translateX(-50%);display:flex;gap:23px;white-space:nowrap;font-size:9px;color:#bdc9d0}.desktop-controls>span{display:flex;align-items:center;gap:4px}kbd{font:8px var(--mono);border:1px solid #99acba50;border-bottom-width:2px;min-width:18px;padding:3px 5px;border-radius:2px;text-align:center;color:#d9e0e5}.touch-controls{display:none;pointer-events:auto}.countdown{position:fixed;top:calc(var(--sgh-top,0px) + 40%);left:50%;transform:translate(-50%,-30%);text-align:center;pointer-events:none;text-shadow:0 2px 25px #0a1627}.countdown>span{font-size:15px;letter-spacing:3px}.countdown>strong{font-family:var(--mono);font-weight:300;font-size:112px;display:block;margin:8px 0;color:var(--accent)}.countdown>small{font-size:11px;letter-spacing:1px;white-space:nowrap;color:#d0dbe3}.toast{position:fixed;left:50%;top:calc(var(--sgh-top,0px) + 26%);transform:translate(-50%,-10px);color:#fff2df;font-size:12px;letter-spacing:1px;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;text-shadow:0 2px 6px #000}.toast.show{opacity:1;transform:translate(-50%,0)}
.overlay-screen{position:fixed;top:var(--sgh-top,0px);left:0;right:0;bottom:var(--ad-space,0px);z-index:11;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#081420b3;backdrop-filter:blur(9px);padding:30px}.result-card{width:430px;margin:auto;text-align:center}.result-card>.eyebrow{justify-content:center}.result-card h2{font-size:39px;letter-spacing:4px;margin:21px 0 13px;font-weight:600}.result-card>p{font-size:12px;line-height:2;color:#aebdc8;letter-spacing:1px;margin:0 0 28px}.result-time{font-family:var(--mono);font-size:49px;letter-spacing:-2px;font-weight:300;color:var(--accent)}.result-badge{font-family:var(--mono);font-size:9px;letter-spacing:2px;margin:13px 0 28px;color:var(--accent);min-height:12px}.result-stats{display:flex;justify-content:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:21px 0;margin:0 0 30px}.result-stats>div{width:50%;display:flex;flex-direction:column;gap:10px}.result-stats>div+div{border-left:1px solid var(--line)}.result-stats span{color:#aabac7;font-size:10px;letter-spacing:1px}.result-stats strong{font-family:var(--mono);font-size:17px;font-weight:400}.result-card .primary-button{width:100%}.result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 32px;margin-top:22px}.result-actions button,.subtle-button{font-size:11px;color:#b7c4ce;letter-spacing:1px;padding:10px;white-space:nowrap}.pause-card .subtle-button{margin-top:16px}.pause-card .primary-button{margin-top:40px}.footer,[data-open],#brand{transition:opacity .3s}body:not([data-phase=title]) .footer-note{display:none}
dialog{position:fixed;top:var(--sgh-top,0px);bottom:var(--ad-space,0px);margin:auto;color:var(--paper);border:1px solid #bdcbd32b;background:linear-gradient(135deg,#1b2a35,#111e29);padding:28px 34px 35px;max-width:540px;width:calc(100% - 36px);max-height:min(85dvh,calc(100dvh - var(--sgh-top,0px) - var(--ad-space,0px) - 40px));box-shadow:0 20px 100px #0006}dialog::backdrop{background:#06111bba;backdrop-filter:blur(8px)}.modal-heading{display:flex;align-items:center;justify-content:space-between}.modal-heading .icon-button{font-size:26px;font-weight:200}.modal-title{font-size:26px;font-weight:550;letter-spacing:3px;margin:17px 0 20px}.modal-description{font-size:12px;line-height:2;color:#b2c1cd;margin:0 0 25px;letter-spacing:.6px}.guide-row{display:flex;gap:20px;padding:19px 0;border-top:1px solid var(--line)}.guide-number{color:var(--accent);font:11px var(--mono);padding-top:2px}.guide-row strong{font-size:13px;letter-spacing:1px;font-weight:500}.guide-row p{font-size:11px;color:#9fB1bf;line-height:1.9;margin:9px 0 0}.guide-row kbd{display:inline-block;margin-right:3px}.guide-warning{background:#eeb8800b;border-left:2px solid var(--accent);padding:13px 15px;font-size:10px;line-height:1.8;letter-spacing:.7px;color:#d9bc98}.empty-records{padding:36px 10px 30px;text-align:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.empty-records>svg{width:35px;height:35px;color:var(--accent)}.empty-records h3{font-size:15px;font-weight:500;letter-spacing:1px}.empty-records p{font-size:11px;line-height:1.8;color:#9aafbd}.record-table{width:100%;border-collapse:collapse;font-family:var(--mono);font-size:12px}.record-table th{text-align:left;color:#8fa4b4;font-size:8px;letter-spacing:1px;font-weight:400;padding:5px 0 13px}.record-table td{padding:14px 0;border-top:1px solid var(--line)}.record-table th:last-child,.record-table td:last-child{text-align:right;color:#899eac;font-size:10px}.record-table tr:first-child td{color:var(--accent)}.record-table td:first-child{width:58px;color:#94a7b5}.record-footnote{font-size:9px;color:#7f96a7;line-height:1.8;margin:21px 0 0}.setting-row{padding:23px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line)}.setting-row strong{display:block;font-weight:500;font-size:13px;letter-spacing:1px}.setting-row p{font-size:10px;line-height:1.8;color:#91a7b7;margin:9px 0 0}.setting-row select{font:11px var(--sans);color:var(--paper);background:#213441;border:1px solid #51616c;border-radius:0;padding:9px;max-width:155px}.switch{border:1px solid #71818c;padding:9px 12px;min-width:64px;font:10px var(--mono);letter-spacing:1px}.switch[aria-pressed=true]{color:var(--accent);border-color:#a28a70}.modal-primary{margin-top:20px;width:100%;height:45px}
@media(min-width:1600px){.title-copy{left:10%;width:570px}.specs{margin-top:38px;margin-bottom:36px}.tagline{font-size:23px}.intro{font-size:13px}.primary-button{height:60px;width:380px}.specs strong{font-size:40px}}
@media(max-height:834px) and (min-width:761px){.title-copy{transform:translateY(-43%)}h1{font-size:72px;margin-top:13px}h1>span{margin-bottom:22px}.tagline{font-size:17px;margin-bottom:12px}.intro{font-size:11px}.specs{margin:22px 0}.specs strong{font-size:30px}.title-bottom{bottom:69px}.best-preview{bottom:130px}.primary-button{height:50px}.start-note{margin-top:12px}}
@media(max-width:1000px){.title-copy{left:6%;width:450px}h1{font-size:72px}.header{padding:24px 30px}.header:after{left:30px;right:30px}.scene-info,.best-preview{right:30px}.footer{padding:0 30px}.title-bottom{left:30px;right:30px}.best-preview{width:196px}.best-preview strong{font-size:14px;letter-spacing:-1px;white-space:nowrap}.voltage-label{left:75%;bottom:34%}.timer-block{top:100px}.altitude-hud{top:180px;left:30px}.route-hud{right:30px;top:180px;width:170px}.timer-block>strong{font-size:34px}}
@media(max-width:760px){.header{padding:20px 22px}.header:after{left:22px;right:22px}.wordmark{font-size:9px;letter-spacing:1.7px;gap:7px}.wordmark>svg{width:27px;height:29px}.brand-caption{font-size:6px;letter-spacing:1.6px}nav{gap:12px}.nav-link{font-size:10px;letter-spacing:0;white-space:nowrap}.wordmark{white-space:nowrap}.nav-link svg{display:none}.nav-link--ranking svg{display:block}.nav-link--ranking span{display:none}.nav-divider{display:none}.icon-button{width:21px}.icon-button svg{width:17px}.title-copy{left:26px;top:47%;transform:translateY(-43%);width:calc(100% - 52px)}.eyebrow{font-size:8px;letter-spacing:1.65px}h1{font-size:clamp(44px,12vw,64px);margin-top:16px;letter-spacing:0}h1>span{font-size:9px;letter-spacing:7px;margin:5px 0 24px 3px}.tagline{font-size:16px;letter-spacing:1.1px;margin-bottom:13px}.intro{font-size:10px;letter-spacing:.6px;line-height:2}.specs{margin:26px 0;max-width:370px}.specs>div{padding:0 24px}.spec-label{font-size:7px;letter-spacing:1px}.specs strong{font-size:31px}.specs strong>span{font-size:11px}.spec-caption{font-size:8px;letter-spacing:.4px}.primary-button{width:min(100%,348px);height:52px;font-size:13px}.start-note{font-size:8px;letter-spacing:0;gap:5px}.scene-info{right:22px;top:99px}.scene-location{font-size:7px;letter-spacing:1px}.scene-weather{font-size:9px;margin-top:8px;gap:7px}.scene-weather span{font-size:8px}.best-preview{bottom:100px;right:24px;width:auto;border:0;padding:0;gap:8px}.best-preview>svg{width:17px}.best-preview div>span{font-size:7px;letter-spacing:1px}.best-preview strong{font-size:13px;margin-top:6px}.voltage-label{bottom:101px;left:26px;transform:none;gap:5px}.voltage-label svg{width:15px}.voltage-label>span{font-size:6px;letter-spacing:1px}.voltage-label strong{font-size:7px;letter-spacing:.2px}.title-bottom{left:26px;bottom:65px;font-size:6px;letter-spacing:1px;gap:9px}.bottom-rule{width:15px}.bottom-coordinate{display:none}.footer{height:42px;padding:0 24px;font-size:8px}.footer-note{display:none}.footer-credit{flex-direction:column;align-items:flex-start;gap:2px;line-height:1.35}.footer button{font-size:7px}.cinematic-shade{background:linear-gradient(90deg,#08131ddd,rgba(8,18,28,.58) 58%,rgba(8,18,28,.15)),linear-gradient(0deg,#07121df2,transparent 38%,#07121d20)}.timer-block{top:98px}.timer-block>strong{font-size:31px}.hud-label{font-size:8px;letter-spacing:1px}.hud-best{font-size:8px}.altitude-hud{left:23px;top:193px}.altitude-hud>strong{font-size:27px}.energized{font-size:6px;letter-spacing:.3px}.route-hud{right:23px;top:195px;width:133px}.route-hud strong{font-size:14px}.route-hud>div:first-child{font-size:8px}#distance-note{font-size:8px}.balance-panel{bottom:200px;width:calc(100% - 76px);max-width:360px}.balance-labels{font-size:7px}.desktop-controls{display:none}.touch-controls{display:flex;position:absolute;bottom:65px;left:23px;right:23px;justify-content:space-between;align-items:center}.touch-balance{display:flex;gap:10px}.touch-controls button{touch-action:none;user-select:none;-webkit-user-select:none;border:1px solid #b4c6d447;background:#1326349e;backdrop-filter:blur(6px);height:56px;width:56px;color:#e3ebf1;font-family:var(--mono);font-size:22px;border-radius:4px}.touch-controls button.held{border-color:var(--accent);background:#efbd8533;color:#ffe0bb}.touch-movement{display:flex;gap:8px;align-items:center}.touch-controls .touch-forward{width:65px;height:75px;border-color:#dab78580;background:#b0845230;font:12px var(--sans);letter-spacing:2px}.touch-forward span{display:block;font-size:7px;letter-spacing:.5px;color:#b8c7d1;margin-top:7px}.touch-controls .touch-steady,.touch-controls .touch-sprint{width:44px;height:49px;font:10px var(--sans)}.touch-sprint{position:absolute;bottom:86px;right:10px}.result-card{width:min(380px,100%)}.result-actions{gap:10px 16px}.result-actions button{padding:10px 6px}.result-card h2{font-size:32px}.result-time{font-size:39px}.result-card>p{font-size:11px}.result-stats strong{font-size:15px}.result-stats{padding:20px 0}.result-badge{font-size:8px}dialog{padding:22px 23px 27px}.modal-title{font-size:23px}.modal-description{font-size:11px}.guide-row{gap:14px}.guide-row p{font-size:10px}.guide-row strong{font-size:12px}.toast{top:calc(var(--sgh-top,0px) + 32%);font-size:10px;width:90%;text-align:center}.countdown>strong{font-size:88px}}
@media(pointer:coarse) and (min-width:761px){.touch-controls{display:flex;position:absolute;bottom:65px;left:40px;right:40px;justify-content:space-between}.touch-balance,.touch-movement{display:flex;gap:14px;align-items:center}.touch-controls button{touch-action:none;border:1px solid #b4c6d477;background:#132634ad;width:65px;height:60px;font-size:16px}.touch-controls button.held{background:#b0845270}.touch-controls button span{display:block;font-size:9px}.desktop-controls{display:none}.balance-panel{bottom:105px}}
@media(max-height:790px) and (max-width:760px){.title-copy{top:45%;transform:translateY(-42%)}.eyebrow{font-size:7px}h1{font-size:53px;margin-top:12px}h1>span{margin-bottom:18px;font-size:8px}.tagline{font-size:14px}.intro{font-size:9px}.specs{margin:17px 0}.specs strong{font-size:28px}.primary-button{height:47px}.start-note{margin-top:9px;font-size:7px}.best-preview,.voltage-label{bottom:90px}.scene-info{top:88px}.title-bottom{bottom:61px}.balance-panel{bottom:170px}.timer-block{top:90px}.altitude-hud,.route-hud{top:169px}}
@media(max-height:640px){.header{padding-top:14px;padding-bottom:14px}.title-copy{top:48%;left:6%;width:420px}.title-copy>.eyebrow,.intro,.spec-caption,.start-note{display:none}h1{font-size:51px;margin-top:0}h1>span{font-size:8px;margin:0 0 14px;letter-spacing:6px}.tagline{font-size:13px;margin-bottom:0}.specs{margin:14px 0}.specs strong{font-size:25px}.primary-button{height:42px;width:290px}.best-preview{bottom:105px}.scene-info{top:88px}.title-bottom{bottom:60px}.timer-block{top:74px}.timer-block>strong{font-size:27px}.altitude-hud,.route-hud{top:102px}.balance-panel{bottom:106px;width:270px}.balance-labels{font-size:7px}.touch-controls{bottom:47px}.touch-controls button{height:44px;width:50px}.touch-controls .touch-forward{height:49px}.touch-controls .touch-sprint{position:static;height:42px}.touch-controls .touch-steady{height:42px}.desktop-controls{bottom:62px}.result-card h2{font-size:26px;margin:12px 0}.result-card>p{margin-bottom:12px}.result-time{font-size:35px}.result-badge{margin:9px 0 12px}.result-stats{padding:12px 0;margin-bottom:17px}.result-card .primary-button{height:42px}.result-actions{margin-top:9px}.countdown{top:calc(var(--sgh-top,0px) + 43%)}.countdown>strong{font-size:65px}.footer{height:35px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

@media(pointer:coarse){.start-note .key-small,.start-note .key-small+span,.start-note .note-dot{display:none}.start-note{font-size:9px}}
@media(max-width:360px){.header{padding-left:18px;padding-right:18px}nav{gap:12px}.wordmark{font-size:8px;letter-spacing:1.25px}.brand-caption{font-size:5px;letter-spacing:1.35px}.wordmark>svg{width:24px}.nav-link{font-size:9px}.touch-controls{left:18px;right:18px}.touch-controls button{width:48px}.touch-balance{gap:8px}.touch-controls .touch-forward{width:57px}.touch-controls .touch-steady{width:39px}.touch-movement{gap:7px}}
@media(max-width:760px){.toast{top:calc(var(--sgh-top,0px) + 35%);padding:8px 12px;background:#0b182255;backdrop-filter:blur(3px);width:max-content;max-width:90%}.spec-caption{white-space:nowrap}.spec-label{white-space:nowrap}}
@media(max-width:360px){.specs>div{padding-left:17px;padding-right:17px}.spec-label{font-size:6px;letter-spacing:.7px}.spec-caption{font-size:7px}.specs strong{font-size:28px}}
@media(max-height:790px) and (max-width:760px) and (orientation:portrait){.start-note{display:none}.balance-panel{bottom:218px}.toast{top:calc(var(--sgh-top,0px) + 44%);font-size:9px}.title-copy{top:100px;transform:none}.title-copy h1{margin-top:11px}.title-copy h1>span{margin-bottom:16px}.title-copy .specs{margin:16px 0}.title-copy .tagline{margin-bottom:10px}.title-copy .intro{line-height:1.85}.scene-info{display:none}.best-preview,.voltage-label{bottom:84px}}
@media(max-height:640px) and (min-width:761px){.voltage-label{left:53%;bottom:117px}.best-preview{bottom:98px}.toast{top:calc(var(--sgh-top,0px) + 46%);padding:6px 12px;background:#0b18224d;backdrop-filter:blur(3px);font-size:10px}}

.gust-warning{position:absolute;top:32%;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);padding:12px 22px;text-align:center;background:#13212be8;border:1px solid #efbd854d;border-left:3px solid #efbd85;box-shadow:0 8px 28px #07131d30;backdrop-filter:blur(8px);pointer-events:none}.gust-warning strong{display:block;color:#ffcf91;font-size:13px;font-weight:600;letter-spacing:1.4px}.gust-warning>span{display:block;margin-top:7px;font-size:10px;letter-spacing:.6px;color:#e9e4dd;white-space:nowrap}.gust-warning[data-phase=active]{border-color:#f6987b70;border-left-color:#f6987b;background:#302324e8}.gust-warning[data-phase=active] strong{color:#ffad94}.balance-heading #balance-status{letter-spacing:.4px}.balance-heading #balance-status.bracing{color:#c4e3d4}
@media(max-width:1000px){.gust-warning{top:260px}}
@media(max-width:760px){.gust-warning{top:280px;padding:10px 14px}.gust-warning strong{font-size:12px;letter-spacing:.8px}.gust-warning>span{font-size:9px;letter-spacing:.2px;margin-top:6px}.balance-heading{gap:5px}.balance-heading #balance-status{font-size:7px;letter-spacing:0}}
@media(max-height:790px) and (max-width:760px) and (orientation:portrait){.gust-warning{top:242px;padding:6px 12px}.gust-warning strong{font-size:11px;line-height:1.3}.gust-warning>span{margin-top:5px;line-height:1.3}}
@media(max-height:640px){.gust-warning{top:171px;padding:6px 13px}.gust-warning strong{font-size:11px;letter-spacing:.6px}.gust-warning>span{font-size:9px;letter-spacing:.2px;margin-top:4px}}

/* 見出し・クレジットなど、画面には出さないが読み上げ・クローラには渡すもの */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* 共通ヘッダーのメニューから click() されるフック（画面には出さない） */
.sgh-hooks{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}

/* ==========================================================================
   フッター固定バナー広告（スマホ表示時のみ / js/ad-banner.js が挿入する）
   --ad-h    : 広告そのものの高さ。広告なしのときは 0px
   --ad-space: レイアウトが空けるべき高さ（広告 + セーフエリア）
   ========================================================================== */
:root{--ad-h:0px;--ad-space:0px}
html.has-ad-banner{--ad-space:calc(var(--ad-h, 0px) + env(safe-area-inset-bottom, 0px))}
.ad-banner{box-sizing:content-box;position:fixed;left:0;right:0;bottom:0;z-index:2147482000;display:flex;align-items:flex-start;justify-content:center;height:var(--ad-h, 0px);padding-bottom:env(safe-area-inset-bottom, 0px);overflow:hidden;background:rgba(14,16,20,.86);box-shadow:inset 0 1px 0 rgba(255,255,255,.14);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.ad-banner__frame{display:block;width:100%;height:var(--ad-h, 0px);border:0;color-scheme:light}
@media print{.ad-banner{display:none}}
/* 横向きのスマホ（共通ヘッダーを引くと描画領域が 350px 前後）: 下端の帯を消し、本文を少し上げて重なりを避ける */
@media(max-height:460px){.title-bottom{display:none}.title-copy{top:46%}}

/* ==========================================================================
   全国ランキング（js/ranking.js が生成するオーバーレイと、リザルトに差し込む登録CTA）
   見た目はこのゲームのモーダル（dialog）に合わせる
   ========================================================================== */
.sgr-hidden{display:none!important}
.sgr-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));background:#06111bba;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-family:var(--sans);color:var(--paper)}
.sgr-panel{width:min(440px,100%);max-height:min(82dvh,640px);box-sizing:border-box;display:flex;flex-direction:column;gap:12px;background:linear-gradient(135deg,#1b2a35,#111e29);border:1px solid #bdcbd32b;padding:24px 24px 22px;box-shadow:0 20px 100px #0006}
.sgr-title{margin:0;font-size:20px;font-weight:550;letter-spacing:3px;text-align:center;color:var(--paper)}
.sgr-tabs{display:flex;gap:6px;justify-content:center}
.sgr-tab{border:1px solid #71818c;padding:7px 12px;font:10px var(--mono);letter-spacing:1px;color:var(--muted);background:none;cursor:pointer}
.sgr-tab-active{color:var(--accent);border-color:#a28a70}
.sgr-register-msg{margin:0 0 8px;font-size:12px;font-weight:500;letter-spacing:.6px;text-align:center;color:var(--accent)}
.sgr-form{display:flex;gap:8px}
.sgr-name{flex:1;min-width:0;box-sizing:border-box;font:16px var(--sans);padding:9px 11px;border:1px solid #51616c;border-radius:0;background:#0d1822;color:var(--paper)}
.sgr-name:focus{outline:none;border-color:var(--accent)}
.sgr-submit{border:0;padding:9px 18px;font-size:12px;font-weight:650;letter-spacing:2px;background:var(--accent);color:#182028;cursor:pointer;transition:background .2s}
.sgr-submit:hover{background:#ffd4a1}
.sgr-submit:disabled{opacity:.55;cursor:default}
.sgr-error{margin:6px 0 0;font-size:11px;color:#f6987b}
.sgr-status{margin:0;font-size:12px;letter-spacing:.6px;text-align:center;color:var(--muted)}
.sgr-list{margin:0;padding:0;list-style:none;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1;border-top:1px solid var(--line)}
.sgr-row{display:flex;align-items:center;gap:10px;padding:9px 6px;border-bottom:1px solid var(--line);font-size:13px}
.sgr-row.sgr-row-me{background:#efbd8522;color:#ffe0bb}
.sgr-rank{width:2.2em;text-align:right;font:12px var(--mono);color:var(--muted);flex-shrink:0}
.sgr-rank-top1,.sgr-rank-top2,.sgr-rank-top3{font-size:15px}
.sgr-row-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.5px}
.sgr-row-score{flex-shrink:0;font:13px var(--mono);color:var(--accent);font-variant-numeric:tabular-nums}
.sgr-close{border:1px solid #71818c;padding:11px;font-size:11px;letter-spacing:2px;color:#d7dde0;background:none;cursor:pointer;transition:color .2s,border-color .2s}
.sgr-close:hover{color:var(--accent);border-color:#a28a70}
.sgr-cta{margin:0 0 22px;text-align:center}
.sgr-cta-msg{margin:0 0 9px;font-family:var(--mono);font-size:10px;letter-spacing:1.5px;color:var(--accent)}
.sgr-cta-btn{border:1px solid #a28a70;padding:11px 22px;font-size:12px;font-weight:650;letter-spacing:1.5px;color:var(--accent);background:#efbd8514;cursor:pointer;transition:background .2s,color .2s}
.sgr-cta-btn:hover{background:var(--accent);color:#182028}
.sgr-cta-link{border:0;background:none;padding:6px;font-size:11px;letter-spacing:1px;color:#b7c4ce;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sgr-cta-link:hover{color:var(--accent)}
@media(max-width:760px){.sgr-panel{padding:20px 18px 18px}.sgr-title{font-size:18px}.sgr-row{font-size:12px}}
