:root{font-family:Bahnschrift,Microsoft YaHei UI,Segoe UI,sans-serif;color:#eeede7;background:#191d21;font-synthesis:none;--ink:#14181c;--panel:rgb(20 24 28 / 92%);--line:#7a858b55;--muted:#a6aeb5;--orange:#df7b39;--inset:40px}*{box-sizing:border-box}body{margin:0;overflow:hidden}canvas{display:block}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #66717b;color:#eeede7;background:#ffffff06;padding:13px 21px;border-radius:0;font-weight:600;letter-spacing:.03em;transition:background .12s}button:hover{background:#ffffff18}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--orange);outline-offset:4px}.primary{background:var(--orange);color:#171b1e;border:1px solid var(--orange);font-weight:700}.primary:hover{background:#ed965a}.primary span{margin-left:40px}kbd{display:inline-block;font-family:inherit;font-size:11px;font-weight:600;color:#e8e8e2;border:1px solid #747e8655;padding:1px 5px;line-height:1.6;white-space:nowrap}#hud{position:absolute;inset:0;pointer-events:none;z-index:1}.brand{position:absolute;top:32px;left:var(--inset);padding:10px 14px;background:var(--panel);font-size:18px;font-weight:700;letter-spacing:.13em;border-left:3px solid var(--orange)}.brand b{color:var(--orange)}.brand span{display:inline-block;font-size:9px;color:var(--muted);margin-left:18px;letter-spacing:.13em}.course{position:absolute;left:var(--inset);top:86px;font-size:12px;letter-spacing:.1em;background:var(--panel);padding:8px 12px}.course span{color:var(--orange);margin:0 7px}.label{font-size:10px;letter-spacing:.12em;color:var(--muted);font-weight:600}.value{font-variant-numeric:tabular-nums;font-weight:600;line-height:1.05}.time-block{position:absolute;top:32px;left:50%;transform:translate(-50%);background:var(--panel);padding:12px 24px 13px;border-top:2px solid #8b959c;min-width:240px;text-align:center}#time{font-size:36px;letter-spacing:.03em;margin-top:7px}.progress{position:absolute;top:32px;right:var(--inset);text-align:right;background:var(--panel);padding:12px 17px;border-top:2px solid var(--orange);min-width:162px}.progress .value{font-size:29px;margin-top:8px}.speed-block{position:absolute;bottom:var(--inset);right:var(--inset);width:185px;background:var(--panel);border-bottom:3px solid var(--orange);padding:16px 20px;text-align:right}#speed{font-size:64px;font-style:italic;letter-spacing:-.04em}.speed-block .label{margin-top:5px}#gear{position:absolute;right:calc(var(--inset) + 136px);bottom:calc(var(--inset) + 29px);font-size:27px;color:var(--orange);border-right:1px solid var(--line);padding-right:13px;font-variant-numeric:tabular-nums}#direction{position:absolute;right:var(--inset);top:132px;max-width:285px;background:var(--panel);padding:10px 14px;border-left:2px solid var(--orange);font-size:12px;line-height:1.65;color:#ece7dc}.controls{position:absolute;bottom:var(--inset);left:var(--inset);background:var(--panel);font-size:11px;color:var(--muted);padding:10px 12px;word-spacing:4px}#mute{position:absolute;left:var(--inset);bottom:calc(var(--inset) + 52px);pointer-events:auto;padding:7px 10px;background:var(--panel);font-size:10px;color:var(--muted);border-color:var(--line)}#stagebar{position:absolute;left:50%;bottom:var(--inset);transform:translate(-50%);width:min(340px,30vw);height:28px;background:linear-gradient(transparent 24px,#182025b0 24px);font-size:9px;letter-spacing:.16em;color:#f1f0e9;text-shadow:0 1px 3px #000}#stagebar i{position:absolute;left:0;bottom:0;height:3px;width:0;background:var(--orange);transition:width .15s}#message{position:absolute;top:130px;left:50%;transform:translate(-50%);background:var(--panel);border-left:2px solid var(--orange);max-width:400px;padding:10px 16px;color:#e8b791;font-size:12px;z-index:2;text-align:center;pointer-events:none}#message:empty{display:none}.overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;padding:5vh 7vw;background:linear-gradient(90deg,#10151aeb,#11161b99 37%,#11161b10 78%)}.card{width:min(570px,100%);padding:34px 36px;background:#171c21f5;border:1px solid #616d754d;border-left:3px solid var(--orange);box-shadow:0 16px 65px #0004}.eyebrow{font-size:10px;letter-spacing:.17em;color:var(--orange);font-weight:600}.wordmark{font-size:54px;letter-spacing:-.035em;font-weight:700;line-height:1;margin-top:29px}.wordmark b{color:var(--orange)}h1{font-size:30px;font-weight:500;letter-spacing:.13em;margin:13px 0 8px}h2{font-size:36px;font-weight:600;margin:22px 0 12px;letter-spacing:.02em}.subtitle{font-size:10px;letter-spacing:.18em;color:var(--muted);margin:8px 0 25px}p{font-size:13px;color:#bec5cb;line-height:1.8}.stage-spec{display:grid;grid-template-columns:1fr .9fr 1.6fr;padding:21px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:18px}.stage-spec span{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}.stage-spec strong{font-size:23px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}.stage-spec small{font-size:9px;color:var(--muted)}.keyhelp{font-size:11px;color:#bdc6cc;line-height:2;margin:22px 0 10px}.keyhelp div+div{margin-top:5px}.brief{font-size:12px;color:#bac2c8;margin:14px 0 23px}.row{display:flex;gap:10px;flex-wrap:wrap}.card-footer{border-top:1px solid var(--line);margin-top:27px;padding-top:15px;font-size:9px;letter-spacing:.14em;color:#89969f;display:flex;justify-content:space-between}.pause-card{width:480px}.home{display:block;padding:0;margin-top:24px;border:0;border-bottom:1px solid #6b757b;background:none;color:#bac3c9;font-size:11px;letter-spacing:.03em}.home:hover{background:none;color:#fff}.times{padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:26px 0 16px;display:grid;gap:24px;font-variant-numeric:tabular-nums}.times span{font-size:10px;color:var(--muted);letter-spacing:.08em}.times strong{display:block;font-size:47px;line-height:1.2;font-weight:500;margin-top:7px}.times>div+div strong{font-size:28px;color:#c9cdd0}.result-detail{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:18px 0 27px}.result-card{width:500px}#countdown{position:absolute;left:50%;top:42%;transform:translate(-50%);width:180px;height:160px;display:grid;place-items:center;z-index:2;font-size:112px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;color:#f4f0e6;text-shadow:0 3px 12px #0008;pointer-events:none;border-bottom:2px solid var(--orange);background:#13191f80}#countdown:before{content:"START SEQUENCE";position:absolute;top:13px;left:0;width:100%;text-align:center;font-size:9px;letter-spacing:.2em;color:#d9dce0}#debug{position:absolute;z-index:4;top:200px;right:var(--inset);width:235px;padding:16px;background:#171d22f5;border:1px solid var(--line);font-size:11px}#debug label{display:block;margin:10px 0}#debug input{width:100%}#debug button{padding:6px 10px;font-size:11px}#debug pre{white-space:pre-wrap;line-height:1.7}#debug summary{cursor:pointer}#overlay[hidden],#countdown[hidden],#debug[hidden]{display:none!important}body[data-phase=menu] #hud,body[data-phase=paused] #hud,body[data-phase=finished] #hud{opacity:0}body[data-phase=menu] #message,body[data-phase=paused] #message,body[data-phase=finished] #message{display:none}@media(max-height:800px){:root{--inset:24px}.card{padding:27px 30px}.wordmark{font-size:44px;margin-top:22px}.stage-spec{padding:15px 0}.card-footer{margin-top:20px}.times{gap:16px;padding:16px 0}.times strong{font-size:40px}.brand,.time-block,.progress{top:24px}.course{top:76px}#direction{top:125px}#countdown{top:42%;height:140px;font-size:96px}}@media(max-width:1000px){.brand span{display:none}.card{width:510px}.overlay{padding:24px 5vw}.time-block{min-width:210px}#time{font-size:30px}.progress{min-width:130px}.course{font-size:10px}#stagebar{width:230px}.controls{font-size:10px}}@media(max-width:600px){:root{--inset:14px}.overlay{padding:16px}.card{padding:24px;width:100%;max-height:calc(100vh - 32px);overflow:auto}.wordmark{font-size:40px}.stage-spec{gap:10px}.stage-spec strong{font-size:19px}.controls,.brand,.course{display:none}.time-block{left:14px;transform:none;min-width:190px;padding:10px}.progress{right:14px;min-width:100px}.progress .value{font-size:24px}.label{font-size:8px}#direction{max-width:220px}#speed{font-size:52px}.speed-block{width:160px}#gear{right:calc(var(--inset) + 116px)}#stagebar{left:14px;transform:none;width:32vw}#mute{bottom:70px}}.brand{top:24px;left:24px;background:transparent;border:0;padding:8px 23px 9px 18px;font-size:30px;font-style:italic;width:350px;line-height:1.05;letter-spacing:-.03em}.brand:before{content:"";position:absolute;inset:-4px -28px -3px -24px;background:linear-gradient(105deg,#14191ef5,#252e35c7);clip-path:polygon(0 0,100% 0,89% 100%,0 100%);border-bottom:1px solid #c2c7c999;z-index:-1}.brand:after{content:"";position:absolute;top:12px;right:20px;width:38px;height:24px;background:repeating-conic-gradient(var(--orange) 0 25%,transparent 0 50%) 0 0/16px 16px;transform:skew(-18deg)}.brand span{display:block;margin:5px 0 0 47px;font-size:8px;letter-spacing:.43em;color:#e6e8e9}.course{top:101px;left:24px;background:linear-gradient(105deg,#14191eee,#30363ac7);clip-path:polygon(5% 0,100% 0,95% 100%,0 100%);border-left:3px solid var(--orange);padding:7px 27px 7px 18px;display:flex;align-items:center;gap:10px;font-size:15px;font-style:italic;font-weight:600}.course svg{width:28px;height:20px}.course b{color:var(--orange)}.course span{margin:0;color:#a4abb0}.time-block{top:30px;background:none;border:0;min-width:292px;padding:0 24px 14px}.time-block:before,.progress:before{content:"";position:absolute;inset:14px -9px 0;background:linear-gradient(110deg,#181d22f0,#282e32b5);clip-path:polygon(7% 0,100% 0,93% 100%,0 100%);border-bottom:1px solid #d5d6cfaa;z-index:-1}.time-block:after,.progress:after{content:"";position:absolute;left:4px;top:14px;bottom:0;width:4px;background:var(--orange);transform:skew(-18deg)}.time-block .label{color:#f2f1e9;font-size:14px;font-style:italic;letter-spacing:.04em}#time{font-size:43px;font-style:italic;letter-spacing:.02em;font-weight:600;margin-top:8px}.progress{top:29px;right:31px;min-width:195px;background:none;border:0;padding:0 19px 12px}.progress:before{inset:0 -13px 0 0}.progress:after{left:5px;top:26px}.progress .label{padding:5px 3px;border-bottom:1px solid #d1d2cb80;font-size:13px;color:#efeee8;font-style:italic;letter-spacing:.04em}.progress .value{font-size:37px;font-style:italic;margin-top:9px}.speed-block{bottom:calc(var(--inset) + 8px);right:calc(var(--inset) + 12px);width:204px;height:104px;background:none;border:0;padding:0 14px 13px;text-align:right;z-index:2;display:flex;align-items:flex-end;justify-content:flex-end;gap:10px}#speed{font-size:70px;font-weight:700;line-height:.9}.speed-block .label{font-size:13px;font-style:italic;color:#eeede7;margin-bottom:3px}#speedDial{position:absolute;right:var(--inset);bottom:var(--inset);width:250px;height:214px;z-index:0}#speedDial svg{width:100%;height:100%;overflow:visible}.dial-shell{fill:#151a1ee6;stroke:#b5bcc1aa;stroke-width:1}.dial-track{fill:none;stroke:#d9dedc80;stroke-width:3}#speed-arc{fill:none;stroke:var(--orange);stroke-width:5;stroke-dasharray:0 100}#gear{right:calc(var(--inset) + 176px);bottom:calc(var(--inset) + 15px);padding:1px 8px;border:1px solid var(--orange);font-size:27px;font-style:italic;z-index:2;line-height:1.1}.controls{display:grid;grid-template-columns:1fr 1fr;gap:4px 20px;bottom:var(--inset);left:24px;padding:13px 30px 13px 17px;background:linear-gradient(100deg,#161c21db,#161c2160);clip-path:polygon(5% 0,100% 0,94% 100%,0 100%);font-size:12px;word-spacing:0;line-height:1.5;width:260px;color:#e1e2dc}.controls kbd{min-width:31px;text-align:center;font-size:13px;font-style:italic;line-height:1.4;margin-right:7px;transform:skew(-7deg);border-color:#c6cbcbcc}body[data-phase=racing] .controls{opacity:.75}#mute{left:37px;bottom:calc(var(--inset) + 124px);border:0;background:#171d22a0;font-style:italic}#stagebar{bottom:calc(var(--inset) + 4px);width:min(470px,35vw);height:47px;background:linear-gradient(100deg,#18202790,transparent);font-size:12px;font-style:italic;letter-spacing:.04em;padding:0 12px}#stagebar:before{content:"";position:absolute;left:12px;right:27px;bottom:8px;height:7px;border:1px solid #e1e2debb}#stagebar:after{content:"";position:absolute;right:0;bottom:7px;width:17px;height:10px;background:repeating-conic-gradient(#eee 0 25%,transparent 0 50%) 0 0/8px 8px;transform:skew(-16deg)}#stagebar i{bottom:9px;left:13px;max-width:calc(100% - 42px);height:5px}#countdown{top:38.5%;height:160px;background:none;border:0;font-size:142px;font-style:italic;font-weight:700;text-shadow:0 5px 14px #0009}#countdown:before,#countdown:after{content:"";position:absolute;top:23px;height:111px;width:43px;border-radius:50%;border:0;border-left:4px solid #eab236bc;left:-8px;transform:rotate(6deg)}#countdown:after{left:auto;right:-8px;border:0;border-right:4px solid #eab236bc;transform:rotate(-6deg)}body[data-phase=menu] #speedDial,body[data-phase=paused] #speedDial,body[data-phase=finished] #speedDial{display:none}@media(max-height:800px){.brand{top:18px;font-size:25px;width:315px}.brand:after{right:22px;width:30px}.brand span{font-size:7px;margin-left:37px}.course{top:83px;font-size:12px}.time-block{top:24px;min-width:254px}.time-block .label{font-size:12px}#time{font-size:36px}.progress{top:20px;min-width:168px}.progress .value{font-size:31px}.progress .label{font-size:11px}#speedDial{width:215px;height:184px}.speed-block{width:181px;height:86px}#speed{font-size:60px}.speed-block .label{font-size:11px}#gear{right:calc(var(--inset) + 147px);font-size:24px}.controls{font-size:10px;gap:3px 12px;padding:10px 23px 10px 17px;width:230px}.controls kbd{font-size:11px}#mute{bottom:calc(var(--inset) + 111px)}#countdown{top:38%;font-size:116px;height:140px}#countdown:before,#countdown:after{height:95px;top:17px}#stagebar{font-size:10px;width:340px;height:37px}}@media(max-width:1000px){.brand{font-size:22px;width:280px}.brand span{font-size:7px}.brand:after{width:30px}.course{font-size:11px}.time-block{min-width:210px}#time{font-size:29px}.time-block .label{font-size:10px}.progress{min-width:135px}.progress .value{font-size:25px}.progress .label{font-size:10px}#stagebar{width:260px}}@media(max-width:600px){.brand,.course{display:none}.time-block{left:14px;transform:none;min-width:180px}.progress{right:15px;min-width:115px}.controls{display:none}#speedDial{width:190px;height:162px}.speed-block{width:159px;height:78px;right:24px}#speed{font-size:52px}#gear{right:calc(var(--inset) + 133px);font-size:21px}#stagebar{left:12px;width:32vw}#mute{bottom:69px;left:14px}}#stagebar:before{display:none}#stagebar .stage-track{position:absolute;left:12px;right:27px;bottom:8px;height:7px;border:1px solid #e1e2debb}#stagebar .stage-track i{left:0;bottom:0;height:5px;max-width:100%}#hud .time-block{background:none!important;border:0!important;box-shadow:none;padding:0 18px;min-width:292px;font-synthesis:style;text-shadow:0 2px 8px #0009,0 1px 2px #0009}#hud .time-block:before,#hud .time-block:after{display:none;content:none}#hud .time-block .label{font-size:14px;color:#fff;letter-spacing:.04em}#hud #time{font-size:46px;font-weight:700;font-style:italic;color:#fff;margin-top:10px}#hud .progress{right:83px}#hud #direction{right:83px;max-width:255px}#minimap{position:absolute;right:var(--inset);top:187px;width:185px;height:204px;pointer-events:none;background:none;border:0;outline:none;overflow:hidden;filter:drop-shadow(0 1px 2px #0008)}.map-outline,.map-route{fill:none;stroke-linecap:round;stroke-linejoin:round}.map-outline{stroke:#152027b8;stroke-width:6}.map-route{stroke:#fffef5;stroke-width:3}.map-finish{stroke:#fff;stroke-width:1.5}#map-car path{fill:#eb8738;stroke:#fff6e2;stroke-width:1.3;stroke-linejoin:round}#hud #mute{left:auto;bottom:auto;right:var(--inset);top:26px;padding:5px;width:38px;height:38px;background:transparent;border:0;color:#fff;filter:drop-shadow(0 1px 3px #000a);pointer-events:auto;z-index:2}#mute svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#hud #mute:hover{background:#ffffff15}#hud #mute[aria-pressed=true]{color:#ece9e2}#hud .controls{left:auto;right:var(--inset);bottom:var(--inset);width:270px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:9px 18px;clip-path:none;background:none!important;border:0;box-shadow:none;font-size:14px;color:#fff;font-synthesis:style;text-shadow:0 2px 5px #000c,0 1px 2px #000a}#hud .controls kbd{font-size:15px;min-width:38px;border:1px solid #ffffffe0;background:#1720281a;box-shadow:none;line-height:1.5;margin-right:8px}body[data-phase=racing] #hud .controls{opacity:.9}#hud .speed-block{left:var(--inset);right:auto;bottom:var(--inset);width:320px;height:122px;justify-content:flex-start;padding:37px 56px 12px 25px;gap:12px;background:none;border:0;box-shadow:none;font-synthesis:style;text-shadow:0 2px 7px #0009,0 1px 2px #000a}#hud .speed-caption{position:absolute;top:6px;left:27px;font-size:15px;font-weight:700;font-style:italic;letter-spacing:.04em}#hud #speed{font-size:76px;line-height:.95;min-width:132px;font-weight:700;font-style:italic}#hud .speed-block .label{font-size:15px;color:var(--orange);margin-bottom:5px}#hud .speed-block:before{content:"";position:absolute;left:4px;top:8px;bottom:7px;width:5px;background:var(--orange);transform:skew(-20deg)}#hud .speed-block:after{content:"";position:absolute;left:13px;bottom:0;width:224px;height:3px;background:var(--orange)}#hud #gear{left:calc(var(--inset) + 264px);right:auto;bottom:calc(var(--inset) + 14px);font-size:29px;font-style:italic;border:1px solid var(--orange);text-shadow:0 2px 5px #0008;padding:2px 9px;font-synthesis:style}body[data-phase=menu] #hud,body[data-phase=paused] #hud,body[data-phase=finished] #hud{visibility:hidden}@media(max-height:800px){#hud .time-block{min-width:250px}#hud #time{font-size:38px}#hud .time-block .label{font-size:12px}#minimap{top:177px;width:165px;height:182px}#hud .controls{width:235px;font-size:12px;gap:6px 12px}#hud .controls kbd{font-size:13px;min-width:34px}#hud .speed-block{width:284px;height:111px;padding:34px 40px 10px 23px}#hud #speed{font-size:66px;min-width:116px}#hud .speed-caption,#hud .speed-block .label{font-size:13px}#hud #gear{left:calc(var(--inset) + 235px);font-size:26px;bottom:calc(var(--inset) + 12px)}#hud .speed-block:after{width:200px}}@media(max-width:1000px){#hud .time-block{min-width:215px}#hud #time{font-size:32px}#hud .progress{right:70px}#hud #direction{right:70px;max-width:210px}#hud #mute{right:20px;width:34px;height:34px}#minimap{width:148px;height:163px}}@media(max-width:600px){#hud .time-block{left:14px;transform:none;min-width:170px;padding:0 5px}#hud #time{font-size:28px}#hud .time-block .label{font-size:10px}#hud .progress{right:59px;min-width:108px}#hud #direction{right:59px;max-width:200px}#hud #mute{right:12px;top:22px;width:32px;height:32px}#minimap{right:14px;top:173px;width:135px;height:149px}#hud .controls{right:14px;width:155px;font-size:10px;gap:5px 6px}#hud .controls kbd{font-size:10px;min-width:27px;margin-right:4px}#hud .speed-block{left:14px;width:204px;height:94px;padding:31px 20px 7px 18px;gap:6px}#hud #speed{font-size:54px;min-width:92px}#hud .speed-block .label{font-size:10px}#hud .speed-caption{left:20px;font-size:11px}#hud #gear{left:calc(var(--inset) + 174px);font-size:22px}#hud .speed-block:after{width:150px}}#route-readout{position:absolute;right:var(--inset);top:132px;width:300px;max-width:calc(100vw - 28px);display:flex;flex-direction:column;align-items:flex-end;gap:18px;background:none;pointer-events:none}#hud #route-readout #direction{position:static;max-width:255px;margin-right:43px}#hud #route-readout #minimap{position:static;flex:none}@media(max-height:800px){#route-readout{top:125px}}@media(max-width:1000px){#hud #route-readout #direction{max-width:210px;margin-right:50px}}@media(max-width:600px){#hud #route-readout #direction{max-width:200px;margin-right:45px}}#hud .speed-block{isolation:isolate}#hud .speed-block:before{z-index:-1;left:0;top:2px;bottom:0;width:100%;transform:none;background:linear-gradient(105deg,#20282fdd,#252d35a6);clip-path:polygon(12% 0,100% 0,89% 100%,0 100%)}#hud .speed-block:after{z-index:1}#hud .speed-caption{left:31px}canvas,#hud{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}#hud .progress{display:none}#route-readout{top:91px}#hud #route-readout #direction{margin-right:0}#hud #mute{top:25px}@media(max-height:800px){#route-readout{top:85px}}#settings-button{position:absolute;right:var(--inset);top:25px;width:38px;height:38px;padding:6px;border:0;background:transparent;color:#fff;z-index:5;filter:drop-shadow(0 1px 3px #000a)}#settings-button:hover{background:#ffffff15}#settings-button svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}#hud #mute{right:calc(var(--inset) + 48px)}#settings-dialog{width:min(1040px,calc(100vw - 48px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #68757f70;border-top:3px solid var(--orange);background:#181e24f5;color:#eeede7;box-shadow:0 20px 70px #0008}#settings-dialog[open]{display:flex;flex-direction:column}#settings-dialog::backdrop{background:#080d13b3}.settings-heading{padding:22px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);flex:none}.settings-heading h2{margin:8px 0 0;font-size:25px}.settings-heading button{padding:9px 12px;font-size:12px}.settings-content{padding:0 28px 20px;overflow-y:auto;overscroll-behavior:contain}.settings-content h3{font-size:12px;letter-spacing:.09em;color:#d9dfe1;margin:22px 0 14px;font-weight:600}.settings-content section{min-width:0}.settings-columns{display:grid;grid-template-columns:1fr 1fr;gap:32px}.settings-note{font-size:11px;line-height:1.7;color:#aeb8c0;margin:10px 0}.route-cards{display:grid;grid-template-columns:1fr 1fr .65fr;gap:12px}.route-card{padding:12px 16px;text-align:left;position:relative;min-height:122px;background:#252c334a;border:1px solid #66717b60;font-weight:400;overflow:hidden}.route-card.selected{border-color:var(--orange);background:#dc793617}.route-card strong{display:block;font-size:16px;margin:3px 0 10px}.route-card span,.route-card small{display:block;font-size:10px;color:#b4bec5;line-height:1.8}.route-card svg{float:right;width:90px;height:70px;margin-left:7px}.route-card path{fill:none;stroke:#f2eee4;stroke-width:1.6;stroke-linecap:round}.route-card.unavailable{opacity:.4;display:flex;flex-direction:column;justify-content:center}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;border-bottom:1px solid #74818b20;font-size:12px}.setting-row>span:first-child{flex:1}.setting-row input[type=range]{width:125px;accent-color:var(--orange);cursor:pointer}.setting-row output{width:35px;text-align:right;font-size:11px;color:#db9b69;font-variant-numeric:tabular-nums}.setting-row input[type=checkbox]{appearance:auto;width:17px;height:17px;accent-color:var(--orange);cursor:pointer}.setting-row select{background:#202830;color:#e6e8e7;border:1px solid #68757b70;padding:5px 9px;font-size:11px;min-width:100px}.setting-row.disabled{font-size:10px;color:#89949c}.setting-row.disabled>span:last-child{color:#89949c}#settings-scene{margin-top:14px;padding:9px 13px;font-size:12px}.settings-footer{padding:16px 28px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);flex:none;background:#141a20}.settings-footer span{font-size:10px;color:#acb6bd}.settings-footer button{padding:9px 13px;font-size:11px}button:disabled,input:disabled,select:disabled{opacity:.4;cursor:not-allowed}body[data-shortcuts=false] #hud .controls{display:none!important}body[data-mode=free] #hud #time{font-size:30px;letter-spacing:.06em}@media(max-width:800px){#settings-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.settings-heading{padding:15px 18px}.settings-content{padding:0 18px 16px}.settings-columns{gap:20px}.route-cards{grid-template-columns:1fr 1fr}.route-card.unavailable{display:none}.setting-row{flex-wrap:wrap;gap:8px}.setting-row input[type=range]{width:95px}.settings-footer{padding:12px 18px}}@media(max-width:560px){.settings-columns{grid-template-columns:1fr;gap:0}.settings-heading h2{font-size:20px}.settings-footer span{max-width:150px}.route-card svg{display:none}}#hud .controls{font-size:12px;width:236px;gap:7px 15px;color:#f2f2edc7}#hud .controls kbd{font-size:13px;min-width:32px;border-color:#f5f5ef9c;background:#17202812}body[data-phase=racing] #hud .controls{opacity:.62}#hud .speed-block{width:286px;height:105px;padding:32px 45px 10px 26px;gap:9px}#hud #speed{font-size:67px;min-width:116px}#hud .speed-caption{font-size:12px;top:7px;left:31px}#hud .speed-block .label{font-size:13px}#hud #gear{left:calc(var(--inset) + 239px);font-size:25px;bottom:calc(var(--inset) + 10px)}#hud .speed-block:before{background:linear-gradient(105deg,#20282fd6,#252d3580)}#hud .speed-block:after{width:209px;height:2px}#route-readout{gap:12px;top:88px;width:250px}#hud #route-readout #direction{background:transparent;border-left:2px solid var(--orange);font-size:11px;padding:4px 9px;text-shadow:0 1px 4px #000d;max-width:230px;line-height:1.7}#minimap{width:165px;height:182px}#hud #mute,#settings-button{top:27px;width:35px;height:35px}#hud #mute{right:calc(var(--inset) + 45px)}@media(max-height:800px){#hud .controls{font-size:11px;width:210px;gap:5px 10px}#hud .controls kbd{font-size:12px;min-width:30px}#hud .speed-block{width:255px;height:96px;padding:30px 35px 8px 23px}#hud #speed{font-size:60px;min-width:102px}#hud #gear{left:calc(var(--inset) + 213px);font-size:23px}#hud .speed-block:after{width:185px}#route-readout{top:79px}#minimap{width:145px;height:160px}}@media(max-width:800px){#hud .brand{width:245px;font-size:24px}.brand:after{width:28px}#hud .course{font-size:10px}#hud #time{font-size:31px}#hud .time-block{min-width:195px}#hud #mute,#settings-button{width:32px;height:32px}}@media(max-width:600px){#hud .speed-block{width:200px;height:90px;padding:29px 18px 7px}#hud #speed{font-size:51px;min-width:89px}#hud .speed-block .label{font-size:10px}#hud #gear{left:calc(var(--inset) + 174px);font-size:21px}#hud .speed-block:after{width:150px}#hud .controls{width:155px;font-size:10px}#hud .controls kbd{font-size:10px;min-width:27px}#route-readout{top:88px;width:200px}#minimap{width:120px;height:132px}#settings-button{right:14px}#hud #mute{right:53px}}#settings-dialog{width:min(1100px,calc(100vw - 64px));height:min(760px,calc(100dvh - 48px));max-height:calc(100dvh - 48px)}.settings-heading{padding:22px 28px}.settings-heading h2{font-size:28px}.settings-heading>.settings-note{font-size:13px}.settings-body{display:flex;min-height:0;flex:1}.settings-nav{width:205px;flex:none;background:#12191f80;border-right:1px solid var(--line);padding:24px 14px;display:flex;flex-direction:column;gap:8px}.settings-nav button{display:flex;align-items:center;gap:13px;text-align:left;font-size:15px;padding:18px 13px;border:1px solid transparent;color:#b7c1c9}.settings-nav small{font-size:11px;color:#83929e}.settings-nav button[aria-selected=true]{color:#fff;background:#dc793619;border-color:#a2643b80;border-left:3px solid var(--orange)}.settings-nav button[aria-selected=true] small{color:var(--orange)}#settings-pane{flex:1;padding:24px 32px;overflow:auto;min-width:0}#settings-pane h3{font-size:23px;letter-spacing:.03em;margin:0 0 12px;color:#eeede7}#settings-pane .settings-note{font-size:14px;line-height:1.7;margin:10px 0 22px}#settings-pane .setting-row{min-height:58px;font-size:15px;gap:18px}#settings-pane .setting-row input[type=range]{width:210px;height:26px}#settings-pane .setting-row output{font-size:14px;width:43px}#settings-pane .setting-row input[type=checkbox]{width:21px;height:21px}#settings-pane .setting-row select{min-width:158px;font-size:14px;padding:9px 12px}#settings-pane .setting-row.disabled{font-size:13px}#settings-pane .route-cards{grid-template-columns:1fr 1fr;margin-top:24px}#settings-pane .route-card{padding:20px;min-height:140px}#settings-pane .route-card small{font-size:12px}#settings-pane .route-card.unavailable{margin-top:22px;min-height:90px}#settings-dialog .settings-footer{padding:18px 24px;gap:20px;min-height:78px}#settings-dialog .settings-footer>div{display:flex;gap:10px;flex:none}#settings-dialog .settings-footer button{font-size:14px;padding:12px 18px}#settings-dialog .settings-footer>span{font-size:12px;line-height:1.5}#settings-scene{font-size:14px;padding:12px 18px}@media(max-height:800px){#settings-dialog{height:calc(100dvh - 40px);max-height:calc(100dvh - 40px)}.settings-heading{padding:17px 24px}.settings-heading h2{font-size:25px}#settings-pane{padding:20px 28px}#settings-pane .setting-row{min-height:52px}#settings-dialog .settings-footer{padding:13px 20px;min-height:70px}}@media(max-width:800px){#settings-dialog{width:calc(100vw - 24px)}.settings-nav{width:150px;padding:18px 8px}.settings-nav button{font-size:13px;padding:16px 9px;gap:8px}#settings-pane{padding:20px}.settings-heading>.settings-note{display:none}#settings-pane .setting-row input[type=range]{width:120px}#settings-pane .route-cards{grid-template-columns:1fr}#settings-dialog .settings-footer{gap:8px}#settings-dialog .settings-footer button{font-size:12px;padding:10px}#settings-dialog .settings-footer>span{font-size:10px}}#settings-pane input[type=number]{width:210px;max-width:45%;padding:10px 12px;color:#f1f0e9;background:#202830;border:1px solid #68757b70;font-size:16px}#settings-pane h4{font-size:15px;font-weight:500;margin:22px 0 12px}.map-options{display:flex;gap:12px;flex-wrap:wrap}.map-options button{font-size:14px;padding:13px 17px}.map-options button[aria-pressed=true]{border-color:var(--orange);color:#f3b180}#settings-new-seed{padding:9px 15px;margin:12px 0;font-size:13px}#settings-pane .session-cards{grid-template-columns:1fr 1fr}.session-cards .route-card{padding-right:44px}.selection-mark{position:absolute;right:16px;top:18px;width:22px;height:22px;border:1px solid #77828c;color:var(--orange);text-align:center;line-height:20px!important;font-size:18px!important}.selected .selection-mark{border-color:var(--orange)}.environment-choice{padding:15px 18px;background:#242b31;border-left:3px solid var(--orange);font-size:16px}.environment-choice small{margin-left:18px;color:#aeb8c0}.route-card:disabled{opacity:.45;cursor:not-allowed}#settings-pane .session-cards .route-card{min-height:170px;padding-right:148px}.session-cards .route-preview{position:absolute;right:16px;top:52px;width:120px;height:70px;margin:0;float:none}.session-cards .route-length{position:absolute;right:20px;bottom:16px;color:#e0b88a}.session-cards .unavailable-preview{border:1px dashed #63717b;display:flex;align-items:center;justify-content:center;font-size:11px;color:#9da6ae}.session-cards .route-preview path{stroke:#efeee5;stroke-width:2;fill:none}.results-shell{width:min(1220px,calc(100vw - 64px));height:min(800px,calc(100dvh - 48px));display:flex;flex-direction:column;background:linear-gradient(125deg,#141e24f7,#10171cf7);border:1px solid #64717b80;border-top:3px solid var(--orange);box-shadow:0 18px 80px #0009;text-align:left;pointer-events:auto}.results-heading{padding:24px 30px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.results-heading h2{font-size:32px;margin:7px 0 0}.result-badges{display:flex;gap:10px;font-size:13px}.result-badges span{padding:10px;border:1px solid var(--line)}.result-badges .valid{color:#a1dd9f;border-color:#569653}.result-badges .neutral{color:#d2bc93}.results-body{display:grid;grid-template-columns:1.15fr 1fr .85fr;gap:28px;overflow:auto;min-height:0;padding:28px 30px;flex:1}.result-caption{font-size:13px;letter-spacing:.07em;color:#adb9c1}.result-time{font-size:clamp(42px,4.4vw,72px);font-weight:700;letter-spacing:-.025em;font-variant-numeric:tabular-nums;margin:18px 0 22px;white-space:nowrap}.personal-best{color:var(--orange);font-size:16px;margin:10px 0 25px}.personal-best b{display:block;font-size:25px;margin-top:8px}.results-shell dl{display:grid;grid-template-columns:1fr auto;gap:16px 10px;font-size:14px;margin:20px 0}.results-shell dt{color:#aeb9c0}.results-shell dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.result-explanation,.save-state{font-size:12px;color:#adbac1;line-height:1.7}.save-state{color:#d2ba92}.result-route{border-left:1px solid var(--line);border-right:1px solid var(--line);padding:0 12px;display:flex;flex-direction:column;justify-content:center}.result-map{width:100%;max-height:360px}.result-map>path{fill:none;stroke:#ee964b;stroke-width:2.5;stroke-linejoin:round}.result-map text{font-size:12px;fill:#d8e1e4}.result-map .start{fill:#84ba79}.result-map .finish{fill:#eee}.route-legend{display:flex;justify-content:space-between;font-size:11px;color:#aeb8bf;padding:12px 0}.result-info h3{font-size:16px;margin:0 0 20px}.result-info details{font-size:12px;line-height:1.8;overflow-wrap:anywhere;color:#aeb9c0;border-top:1px solid var(--line);padding-top:16px}.results-actions{padding:20px 30px;display:flex;gap:12px;border-top:1px solid var(--line);flex-shrink:0}.results-actions button{min-width:130px;font-size:15px;padding:13px 22px}.result-metrics{display:flex;gap:24px}.result-metrics span{display:block;font-size:12px;color:#aeb9c0;margin-bottom:8px}.result-metrics b{font-size:23px}.lap-list{font-size:13px;max-height:150px;overflow:auto;margin:16px 0}.lap-list>div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:10px 0}button:focus-visible,summary:focus-visible,textarea:focus-visible{outline:2px solid var(--orange);outline-offset:3px}#share-area{padding:15px 30px;border-top:1px solid var(--line);max-height:220px;overflow:auto}#share-area textarea{width:100%;height:100px;background:#10161c;color:#eee;padding:12px;border:1px solid var(--line)}@media(max-height:800px){.results-heading{padding:17px 24px}.results-body{padding:20px 24px;gap:20px}.result-time{font-size:52px;margin:13px 0}.results-actions{padding:14px 24px}.results-shell dl{gap:12px;font-size:13px}.results-heading h2{font-size:28px}}@media(max-width:900px){.results-shell{width:calc(100vw - 24px)}.results-body{grid-template-columns:1fr 1fr}.result-info{grid-column:1/-1}.result-info dl{grid-template-columns:1fr auto 1fr auto}.result-badges{flex-direction:column}.results-actions{flex-wrap:wrap}.results-actions button{min-width:100px}.result-time{font-size:44px}}#challenge-dialog{width:min(800px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;background:#162027;color:#eee;border:1px solid #65717a;border-top:3px solid var(--orange);padding:25px}#challenge-dialog::backdrop{background:#000a}#challenge-dialog h2{font-size:28px;margin:10px 0 22px}#challenge-dialog label{font-size:14px;color:#bec7cd}#challenge-code{display:block;width:100%;height:115px;background:#0f171d;color:#eee;border:1px solid #64717b;padding:12px;margin-top:12px;resize:vertical;font:13px Consolas,monospace}#challenge-dialog footer{display:flex;gap:10px;margin-top:16px;position:sticky;bottom:-25px;background:#162027;padding:16px 0}#challenge-status,#copy-status{font-size:13px;line-height:1.7;color:#d2bf9a}#challenge-preview-map{max-width:340px;margin:auto}#challenge-preview-map .result-map{height:180px}#share-area label{display:block;font-size:12px;margin-bottom:8px;color:#b8c2c8}.free-route-identity{display:block;color:#b9c4ca!important;font-size:10px!important;margin-top:10px;overflow-wrap:anywhere;max-width:165px}.menu-card{width:min(650px,calc(100vw - 40px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px 30px}.menu-card .wordmark{font-size:44px;margin-top:16px}.menu-card h1{font-size:24px;margin:12px 0 6px;letter-spacing:.03em}.menu-card .subtitle{margin-bottom:14px}.home-route-summary{display:grid;grid-template-columns:1fr 180px;align-items:center;border-block:1px solid var(--line);padding:10px 0;gap:16px}.home-route-summary .result-map{height:125px}.home-route-summary strong{display:block;font-size:32px;margin:8px 0}.home-route-summary small{font-size:14px;color:var(--muted)}.home-route-summary p{font-size:12px;margin:4px 0;line-height:1.6}.session-label{font-size:12px;color:#b7c2c8}.home-config{display:flex;flex-wrap:wrap;gap:7px 17px;font-size:11px;line-height:1.5;color:#b9c4ca;padding-top:12px}.home-record{font-size:12px;padding:10px 0;color:#e2c4a4}.home-record b{color:var(--orange);margin-left:8px}.menu-card .keyhelp{margin:10px 0}.menu-card .brief{margin:8px 0 15px;font-size:11px}.menu-card .home,.menu-card .card-footer{margin-top:15px}.menu-card .row button{font-size:14px;padding:12px 16px}#settings-dialog .settings-footer{gap:12px;align-items:center}#settings-dialog .settings-footer>span{max-width:220px;font-size:11px}#settings-dialog .settings-footer>div{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}#settings-dialog .settings-footer button{font-size:13px;padding:11px 14px}#settings-dialog #settings-apply{background:#ffffff08;color:#eee}#free-session-stats{display:none;position:absolute;top:148px;left:var(--inset);color:#f5f5ee;text-shadow:0 1px 4px #000;font-size:12px;line-height:1.8;pointer-events:none}#free-session-stats span{display:block}#free-session-stats b{display:inline-block;min-width:75px;margin-left:12px;font-variant-numeric:tabular-nums}body[data-mode=free] #free-session-stats{display:block}body[data-phase=menu] #free-session-stats,body[data-phase=finished] #free-session-stats{display:none}#share-area button{margin:10px 10px 0 0;font-size:13px;padding:9px 15px}.result-primary .personal-best{font-size:13px}@media(max-height:800px){.menu-card{padding:20px 26px}.menu-card .wordmark{font-size:36px;margin-top:12px}.menu-card h1{font-size:22px}.home-route-summary .result-map{height:100px}.home-route-summary strong{font-size:28px;margin:4px 0}.menu-card .brief{margin:7px 0 12px}#free-session-stats{top:134px}#settings-dialog .settings-footer{padding:12px 20px}.results-actions button{padding:10px 15px;min-width:110px}}@media(max-width:700px){.home-route-summary{grid-template-columns:1fr 120px}.menu-card .row button{font-size:12px}.menu-card .home-config{font-size:10px}#free-session-stats{font-size:10px;top:126px}#settings-dialog .settings-footer{flex-wrap:wrap}#settings-dialog .settings-footer>span{max-width:100%}}.menu-card{width:min(720px,calc(100vw - 48px));padding:26px 32px}.menu-card .eyebrow{font-size:12px}.menu-card h1{font-size:27px}.menu-card .home-config,.menu-card .home-record{font-size:14px;line-height:1.65}.menu-card .keyhelp{font-size:13px;line-height:1.9}.menu-card .brief{font-size:13px;line-height:1.7}.menu-card .row button{font-size:16px;min-height:48px}.menu-card #start{min-width:180px}.menu-card .home-links{display:flex;gap:24px;align-items:center}.menu-card .home{font-size:14px}.menu-card .card-footer{font-size:11px;letter-spacing:.05em}.home-route-summary p,.session-label{font-size:14px;line-height:1.65}.home-route-summary .result-map{height:118px}.first-guide{border-left:2px solid var(--orange);background:#ffffff05;padding:10px 14px;margin:12px 0 15px}.first-guide strong{font-size:14px}.first-guide p{font-size:13px;margin:7px 0;line-height:1.9}.first-guide p b{color:#f1a360}.first-guide button{font-size:12px;padding:6px 11px}.advanced-info{margin-top:14px;color:#bfc9d0;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.advanced-info summary{cursor:pointer;min-height:28px}.advanced-info p{font-size:12px}.home-config{color:#d4dce0}.home-record{color:#e4c8a6}#settings-pane .settings-note{font-size:15px;line-height:1.75;color:#c2cbd1}#settings-pane .setting-row{font-size:16px}#settings-pane .route-card strong{font-size:20px}#settings-pane .route-card small{font-size:13px;line-height:1.65}#settings-pane .free-route-identity{position:absolute;top:12px;left:20px;font-size:11px!important;margin:0;max-width:none}#settings-dialog .settings-footer>span{font-size:12px;color:#c4cdd3}#settings-dialog .settings-footer button{font-size:14px;min-height:44px}#settings-start{min-width:160px}#share-area{max-height:310px;flex-shrink:0}#share-area h3{margin:0;font-size:18px}#share-area p{font-size:14px;margin:8px 0;line-height:1.6}.share-actions{display:flex;flex-wrap:wrap;gap:9px}#share-area .share-actions button{font-size:14px;margin:0}.result-info summary{font-size:13px}.results-shell:has(#continue-free) #again{background:#ffffff06;color:#eee}#challenge-dialog h2{font-size:30px}#challenge-dialog label{font-size:16px;color:#e1e5e7}#challenge-code{font-size:15px}#challenge-dialog footer button{font-size:16px;min-height:46px}#challenge-dialog .advanced-info{border-top:1px solid var(--line);padding-top:14px}#challenge-dialog .advanced-info button{font-size:13px;margin:10px 0}@media(max-height:850px){.menu-card{padding:20px 28px}.menu-card h1{font-size:24px}.menu-card .wordmark{font-size:36px;margin-top:12px}.menu-card .subtitle{margin-bottom:10px}.home-route-summary{padding:8px 0}.home-route-summary .result-map{height:95px}.menu-card .keyhelp{margin:8px 0}.menu-card .brief{margin:8px 0 12px}.menu-card .advanced-info{margin-top:8px}.menu-card .card-footer{margin-top:10px}.first-guide{padding:8px 12px;margin:10px 0}.first-guide p{margin:5px 0}.menu-card .home{margin-top:12px}}@media(max-width:1100px){#settings-dialog{width:calc(100vw - 32px)}.settings-nav{width:175px}.settings-nav button{font-size:14px;padding:15px 10px}#settings-pane{padding:20px}#settings-pane .session-cards .route-card{padding-right:120px;min-height:172px}#settings-pane .session-cards .route-preview{width:100px;right:10px}#settings-pane .session-cards .route-card strong{font-size:18px}.settings-footer{flex-wrap:wrap}#settings-dialog .settings-footer>span{max-width:none}}@media(max-width:850px){#settings-pane .session-cards{grid-template-columns:1fr}.menu-card{max-height:calc(100dvh - 32px)}.home-route-summary{grid-template-columns:1fr 150px}.menu-card .home-config{font-size:13px}.menu-card .row button{font-size:14px}.menu-card .home-links{gap:18px}#settings-dialog .settings-footer>div{gap:6px}#settings-dialog .settings-footer button{font-size:12px;padding:9px 10px}#settings-start{min-width:130px}}.menu-card .card-footer a{color:#dce4e8;text-decoration:underline;text-underline-offset:3px}
