:root{font-family:Arial,Helvetica,sans-serif;color:#18343a;background:#e7f1f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}#game{display:block;width:100vw;height:100dvh;position:fixed;top:0;right:0;bottom:0;left:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ed693d;outline-offset:5px}header{position:absolute;top:32px;left:42px;right:42px;display:flex;align-items:center;justify-content:space-between}.brand{color:#18343a;font-size:36px;letter-spacing:-2px;font-weight:800;text-decoration:none}.brand span{font-weight:400}.brand i{color:#e66b42;font-style:normal;display:inline-block;margin-left:9px;font-size:32px}.trail-label{font-size:11px;letter-spacing:2px;font-weight:700;display:flex;align-items:center;gap:10px}.trail-label small{border-left:1px solid #9bafb1;padding-left:14px;margin-left:4px;font-size:9px;color:#657b7e}.dot{width:7px;height:7px;border-radius:50%;background:#e8754a}#pause{border:1px solid #a7bbbe;background:#f5fafb99;border-radius:50%;width:42px;height:42px;color:#18343a;font-weight:700}.intro{position:absolute;left:7%;top:23%;max-width:390px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.5px;color:#59777b}h1{font-size:clamp(48px,5.4vw,82px);line-height:1.02;letter-spacing:-4px;font-weight:500;margin:24px 0}h1 em{font-style:normal;color:#427e82}.intro p{font-size:14px;color:#657b7e;line-height:1.8;margin:22px 0 30px}.primary{display:flex;justify-content:space-between;align-items:center;gap:45px;background:#183e43;color:#fff;padding:17px 22px;border:0;border-radius:5px;font-size:13px}.primary:hover{background:#27575c}.primary span{font-size:21px}.start-hint{font-size:8px;letter-spacing:2px;color:#698286;margin-top:14px}.telemetry{position:absolute;right:44px;bottom:105px;width:200px;background:#f7fcfcba;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid #fff;border-radius:12px;padding:20px 23px;box-shadow:0 12px 40px #24474c08}.speed{display:flex;align-items:baseline;gap:10px}.speed strong{font-size:56px;letter-spacing:-3px;font-weight:400;font-variant-numeric:tabular-nums}.speed span{font-size:10px;color:#6c8789}.stats{display:flex;justify-content:space-between;border-top:1px solid #d7e3e5;padding-top:14px;margin-top:9px}.stats div{display:flex;flex-direction:column;gap:7px}.stats span{font-size:8px;letter-spacing:1.2px;color:#758b8d}.stats strong{font-size:17px;font-weight:500;font-variant-numeric:tabular-nums}.stats small{font-size:10px}.speed-track{height:3px;background:#dce8e9;margin-top:19px;border-radius:3px;overflow:hidden}#speed-bar{height:100%;width:0;background:#e8754a}.telemetry p{font-size:10px;color:#718789;margin:12px 0 0}footer{position:absolute;bottom:29px;left:42px;right:42px;display:flex;justify-content:space-between;align-items:center}.controls{display:flex;gap:20px;font-size:10px;color:#526f75}.controls span{display:flex;align-items:center;gap:5px}kbd{font-family:inherit;border:1px solid #b1c5c8;background:#f8ffff66;border-radius:4px;min-width:23px;height:23px;display:inline-flex;align-items:center;justify-content:center;color:#33565d}.edition{font-size:8px;letter-spacing:1.3px;color:#829a9c}.edition b{margin-left:20px;color:#48666d}.panel{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:40px;background:#f4fafaee;border:1px solid white;border-radius:14px;box-shadow:0 20px 90px #12383b22;min-width:300px}.panel h2{font-size:42px;line-height:1.1;font-weight:400;letter-spacing:-1px}.text-button{display:block;background:none;border:0;color:#527479;font-size:12px;margin:20px auto 0}.hidden{display:none!important}.touch-controls{display:none}#error{position:absolute;top:20%;right:20%;bottom:20%;left:20%;background:#fff;padding:32px;line-height:1.8;border-radius:12px}@media(max-width:700px){header{top:20px;left:22px;right:22px}.brand{font-size:30px}.trail-label{display:none}.intro{left:25px;top:21%}h1{font-size:54px;letter-spacing:-2px}.intro p{font-size:12px;max-width:220px}.telemetry{right:20px;bottom:100px;width:150px;padding:14px}.speed strong{font-size:40px}.stats strong{font-size:14px}footer{left:22px;bottom:20px}.controls{display:none}.edition{font-size:7px}.edition b{display:none}.touch-controls{position:absolute;left:20px;bottom:46px;display:flex;gap:8px}.touch-controls button{width:45px;height:44px;border:1px solid #a6bdc1;background:#f5fcfcd9;border-radius:8px;color:#23494e;font-size:22px;touch-action:none;-webkit-user-select:none;user-select:none}.touch-controls button.active{background:#27575c;color:#fff}.telemetry p{font-size:9px}.panel{padding:28px;min-width:275px}}@media(pointer:coarse)and (min-width:701px){.touch-controls{position:absolute;bottom:75px;left:40px;display:flex;gap:10px}.touch-controls button{width:55px;height:50px;touch-action:none;border:1px solid #a6bdc1;border-radius:8px;background:#f5fcfccc}}.intro:before{content:"";position:absolute;top:-30px;right:-25px;bottom:-30px;left:-25px;z-index:-1;background:radial-gradient(ellipse,#e7f1f3ee 35%,#e7f1f300 72%);pointer-events:none}.intro{isolation:isolate}.score-label{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1px}.score-label strong{font-size:24px;letter-spacing:0}#finish-panel{z-index:3;max-width:420px}#result{line-height:1.8;color:#527479}.header-actions{display:flex;align-items:center;gap:10px}#sound{border:1px solid #a7bbbe;background:#f5fafbcc;border-radius:20px;padding:12px;color:#18343a;font-size:11px}.chase{position:absolute;top:100px;left:50%;transform:translate(-50%);background:#183e43;color:#fff;padding:13px 22px;border-radius:24px;font-size:13px;max-width:90vw;text-align:center}.chase.danger{background:#a94327}.records{position:absolute;right:44px;top:90px;font-size:11px;color:#426368;background:#f5fafbbb;padding:10px;border-radius:8px}.panel{z-index:4;max-height:80dvh;overflow:auto}.panel p{font-size:14px}@media(max-width:700px){.records{top:76px;right:20px;left:20px;text-align:center;font-size:10px}.chase{top:119px;width:90%;font-size:11px;padding:10px}.intro{top:22%}.intro p{max-width:270px}.telemetry{bottom:104px}.header-actions{gap:6px}#sound{padding:10px;font-size:10px}body:has(.intro:not(.hidden)) .telemetry{display:none}}.intro .challenge-rules{font-size:11px;margin:0 0 20px;color:#426368}.medal{color:#a45d17!important;font-size:21px!important;font-weight:700}#gates{color:#27575c;font-weight:700}#gate-hint{color:#27575c}@media(max-width:700px){.intro{top:17%;max-height:calc(100dvh - 220px);overflow:auto}.intro h1{margin:15px 0;font-size:48px}.intro p{margin:12px 0}.intro .challenge-rules{margin-bottom:15px}.panel{width:calc(100% - 40px);min-width:0}}.run-track{position:absolute;top:0;left:0;right:0;height:4px;background:#c9dcdf}#run-progress{height:100%;background:#e8754a;width:0}.feedback{position:absolute;top:150px;left:50%;transform:translate(-50%);padding:12px 20px;border-radius:8px;background:#245e54;color:#fff;font-size:14px;font-weight:700;box-shadow:0 4px 20px #18343a15;pointer-events:none;text-align:center;max-width:90vw}.feedback[data-kind=miss]{background:#904325}#personal-best{font-weight:700;color:#246457}#next-goal{line-height:1.6;color:#426368;border-top:1px solid #cbdcdf;padding-top:14px}#pause:disabled{opacity:.4;cursor:default}body[data-mode=skiing] .records,body[data-mode=skiing] .edition{display:none}body:not([data-mode=skiing]) .touch-controls{display:none}body[data-mode=paused] .telemetry,body[data-mode=finished] .telemetry,body[data-mode=caught] .telemetry{visibility:hidden}.panel .primary{width:100%}.panel h2{margin:20px 0}.panel{width:min(420px,calc(100% - 32px))}@media(max-width:700px){.telemetry{top:88px;left:12px;right:auto;bottom:auto;width:158px;padding:10px 12px;background:#f7fcfce8;pointer-events:none}.telemetry .speed,.telemetry .stats,.telemetry .speed-track,.telemetry #status{display:none}.telemetry p{margin-top:7px;font-size:10px}.score-label strong{font-size:21px}.chase{top:auto;bottom:120px;border-radius:10px}.feedback{top:auto;bottom:173px;font-size:12px;padding:10px 14px;width:max-content}.touch-controls{left:12px;right:12px;bottom:24px;justify-content:space-between;gap:10px}.touch-controls button{width:64px;height:60px;background:#f5fcfcf0;font-size:26px}body[data-mode=skiing] footer{display:none}.intro{top:140px;max-height:calc(100dvh - 166px)}.panel{max-height:calc(100dvh - 145px);top:55%;padding:22px}.panel h2{font-size:32px}.panel p{font-size:12px}}@media(max-height:500px){header{top:12px}.records{display:none}.intro{top:80px;max-height:calc(100dvh - 100px);overflow:auto}.intro h1{font-size:36px;margin:12px 0}.panel{top:53%;max-height:86dvh}.feedback{top:75px;bottom:auto}.chase{top:auto;bottom:20px}.telemetry{bottom:50px;padding:10px}.telemetry .stats,.telemetry .speed-track{display:none}}@media(min-width:701px){.chase{left:32px;top:105px;transform:none;max-width:300px;border-radius:10px}.feedback{left:32px;top:165px;transform:none;max-width:300px}}.ski-options{display:grid;gap:7px;margin:15px 0 20px;max-width:330px}.ski-options label{font-size:12px;font-weight:700}.ski-options select{width:100%;padding:10px;border:1px solid #a7bbbe;border-radius:6px;background:#f7fcfc;color:#18343a;font:inherit;font-size:13px}.ski-options small{font-size:10px;line-height:1.5;color:#426368}.pointer-option{display:flex;align-items:center;gap:8px}.intro{top:15%;max-height:calc(100dvh - 150px);overflow:auto;padding:8px}.intro h1{font-size:54px;margin:15px 0}.intro p{margin:12px 0;font-size:13px;line-height:1.6}.intro .primary{width:100%}#gate-hint{line-height:1.5}@media(max-width:700px){.intro{top:115px;left:20px;right:20px;max-width:350px;max-height:calc(100dvh - 140px);background:#e7f1f3e8;border-radius:10px;padding:15px}.intro h1{font-size:36px;margin:8px 0}.intro p{font-size:12px;max-width:none}.ski-options{margin:12px 0;gap:5px}.ski-options select{padding:8px}.intro .eyebrow{font-size:9px}}.intro{width:365px;overflow-x:hidden;background:#e7f1f3e8;border-radius:10px;padding:12px}.intro:before{display:none}.intro h1{font-size:44px}.ski-options{max-width:100%;min-width:0}.ski-options select{min-width:0}body[data-mode=ready] .telemetry{display:none}@media(min-width:701px){.intro{top:105px;max-height:calc(100dvh - 165px)}.intro p{font-size:12px}.ski-options{margin:10px 0}.ski-options select{padding:8px}.intro .primary{padding:12px 18px}.start-hint{margin-top:8px}}@media(max-width:700px){.intro{width:auto}.intro h1{font-size:36px}}@media(max-width:700px){.touch-controls button{min-width:44px;flex:1;font-size:22px}.touch-controls button[data-action=spin]{font-size:16px}}.intro .creator-credit,.panel .creator-credit{font-size:11px;line-height:1.5;color:#426368;margin:16px 0 0}.creator-credit a{color:#245e54;text-decoration:underline;text-underline-offset:2px}select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ed693d;outline-offset:3px}.ski-options button{min-height:44px;border:1px solid #a7bbbe;border-radius:6px;background:#f7fcfc;color:#18343a}.ski-options details{font-size:12px;line-height:1.6}.ski-options summary{cursor:pointer;min-height:32px}#skill-goals{padding:8px 0}.text-button{min-height:44px;margin-top:8px}#mountain-identity{font-variant-numeric:tabular-nums}.intro .primary{position:sticky;bottom:0;z-index:1}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}#seed-code{width:100%;min-height:44px;border:1px solid #a7bbbe;border-radius:6px;padding:8px;background:#f7fcfc;color:#18343a}#daily-best:empty{display:none}#ghost-status{color:#28608a}.ski-options select{min-height:44px}.steering-control{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;gap:3px;padding:6px 10px;background:#f5fcfcee;border:1px solid #a6bdc1;border-radius:12px}.steering-control label{font-size:11px;font-weight:700}.steering-control span{font-size:9px;text-align:center;color:#526f75}#steering-slider{width:100%;height:36px;margin:0;accent-color:#27575c;touch-action:none;cursor:ew-resize}@media(max-width:700px),(pointer:coarse){.touch-controls{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));gap:8px;align-items:center;display:flex}.touch-controls button[data-action=spin]{flex:0 0 56px;width:56px;height:64px;min-width:44px;font-size:15px}.controls{display:none}}@media(max-width:700px),(pointer:coarse){.touch-controls{align-items:flex-end;gap:10px}.steering-control{position:relative;height:158px;padding:6px 0 0;gap:0;background:#f5fcfcd9;border-radius:18px}.mobile-control-label{font-size:9px;font-weight:700;letter-spacing:1px;color:#45666a;margin-bottom:5px}.speed-buttons{display:flex;justify-content:center;gap:6px;z-index:1}.touch-controls .speed-buttons button{flex:none;width:64px;height:48px;font-size:21px;display:flex;align-items:center;justify-content:center;gap:3px}.speed-buttons small{font-size:9px}#steering-slider{width:100%;height:86px;touch-action:none;outline-offset:-3px}#steering-slider svg{width:100%;height:100%;overflow:visible}.arc-track{fill:none;stroke:#b5cdce;stroke-width:13;stroke-linecap:round}#steering-thumb{fill:#27575c;stroke:#f8ffff;stroke-width:3}#steering-slider text{fill:#25464e;font-size:20px;text-anchor:middle;dominant-baseline:middle;pointer-events:none}.touch-controls button[data-action=spin]{height:158px;margin-bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.spin-icon{width:24px;height:24px;flex-shrink:0;pointer-events:none}.telemetry{top:70px;left:12px;right:12px;bottom:auto;width:auto;padding:5px 10px;border-radius:9px;display:flex;align-items:center;gap:10px;background:#f7fcfcc9;box-shadow:none}.telemetry .score-label{display:flex;align-items:center;gap:6px;white-space:nowrap;margin:0}.telemetry .score-label strong{font-size:18px}.telemetry p{margin:0;font-size:10px}.telemetry #gates,.telemetry #gate-hint,.telemetry #ghost-status,.telemetry .speed,.telemetry .stats,.telemetry .speed-track,.telemetry #status{display:none}.feedback{bottom:190px}.chase{bottom:245px}}@media(max-width:700px),(pointer:coarse){.speed-buttons{flex-direction:column;gap:4px;position:absolute;top:23px;left:50%;transform:translate(-50%)}.touch-controls .speed-buttons button{height:44px;width:112px}.steering-control #steering-slider{position:absolute;bottom:0;left:0}}@media(max-width:700px),(pointer:coarse){.speed-buttons{width:min(136px,70%);gap:0;border:1px solid #a6bdc1;border-radius:10px;overflow:hidden;background:#f5fcfc}.touch-controls .speed-buttons button{width:100%;height:30px;min-height:30px;border:0;border-radius:0;background:transparent;font-size:18px;gap:7px}.touch-controls .speed-buttons button+button{border-top:1px solid #b9cdcf}.touch-controls .speed-buttons button.active{background:#27575c;color:#fff}.speed-buttons small{font-size:11px}}.speed-buttons small{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1.5px}@media(max-width:700px),(pointer:coarse){.run-messages{position:absolute;top:108px;left:12px;right:12px;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}.run-messages .feedback,.run-messages .chase{position:static;transform:none;width:auto;max-width:100%;margin:0;padding:7px 12px;border-radius:8px;font-size:11px;line-height:1.35}}@media(max-width:700px),(pointer:coarse){.touch-controls{height:100px;padding:7px;gap:4px;align-items:center;border:1px solid #a6bdc1;border-radius:24px;background:#f5fcfcf0;-webkit-user-select:none;user-select:none}.touch-controls button[data-action=spin]{flex:0 0 48px;width:48px;height:56px;gap:3px;border:0;border-radius:50%;background:transparent;font-size:11px}.touch-controls button[data-action=spin].active{background:#27575c;color:#fff}.spin-icon{width:22px;height:22px}.steering-control{height:84px;padding:0;border:0;border-radius:0;background:transparent}.speed-buttons{top:0;left:50%;width:170px;max-width:100%;height:44px;flex-direction:row;align-items:center;gap:0;border:0;border-radius:0;overflow:visible;background:transparent}.touch-controls .speed-buttons button{flex:0 0 44px;width:44px;height:44px;min-height:44px;border:0;border-radius:12px;font-size:23px}.touch-controls .speed-buttons button+button{border:0}.touch-speed{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;pointer-events:none}.steering-control .touch-speed span{font-size:10px;letter-spacing:1.4px;color:#27575c}.speed-dots{display:flex;gap:4px}.speed-dots i{width:7px;height:7px;border-radius:50%;background:#bed2d3}.speed-dots i.lit{background:#27575c}.speed-dots i:last-child.lit{background:#e8754a}.steering-control #steering-slider{height:68px;bottom:0;left:0}.arc-track{stroke-width:8}#steering-thumb{stroke-width:3}#steering-arrow{pointer-events:none}}.options-content{display:grid;gap:8px;margin-top:12px}.more-options>summary{padding:12px 0;cursor:pointer}.learn-hint{position:absolute;left:32px;top:225px;max-width:300px;background:#f5fcfcf2;color:#23494e;border:1px solid #a6bdc1;padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.5;pointer-events:none}@media(max-width:700px),(pointer:coarse){.run-messages .learn-hint{position:static;max-width:100%;font-size:11px;padding:7px 12px;text-align:center}.touch-controls .speed-buttons button{flex-direction:column;gap:0;line-height:1;font-size:19px}.touch-controls .speed-buttons button small{font-size:9px;letter-spacing:0;line-height:1.4}}.race-hud{position:absolute;top:105px;left:50%;transform:translate(-50%);display:grid;grid-template-columns:auto 1fr;gap:4px 12px;padding:10px 16px;border:1px solid #b6ccce;border-radius:12px;background:#f5fcfcf0;color:#23494e;pointer-events:none;min-width:270px}.race-hud strong{grid-row:span 2;font-size:28px;align-self:center}.race-hud span{font-size:12px}.race-hud small{font-size:11px}.race-countdown{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%);background:#183e43ed;color:#fff;padding:20px;border-radius:14px;font-size:28px;pointer-events:none}#race-order{white-space:pre-line;line-height:1.7;font-size:12px;padding:12px;background:#e6eff0;border-radius:8px;margin-bottom:14px}@media(max-width:700px),(pointer:coarse){.race-hud{top:108px;max-width:calc(100% - 24px);width:calc(100% - 24px)}body:has(.race-hud:not(.hidden)) .run-messages{top:174px}}
