:root{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;font-synthesis:none;color:#172c42;background:#f6f7f2;--body:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;--mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}
*{box-sizing:border-box}body{margin:0}button,a,select,input{-webkit-tap-highlight-color:transparent}button,select,input{font:inherit}button{color:inherit;border:0;cursor:pointer;touch-action:manipulation}button,a{transition:background-color .16s,color .16s,border-color .16s,box-shadow .16s,transform .16s}a{color:inherit;text-decoration:none}button:disabled{opacity:.42;cursor:wait;box-shadow:none;transform:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}
#app{--ink:#172c42;--muted:#52667a;--faint:#65768a;--paper:#f7f8f2;--surface:rgba(247,248,242,.96);--line:rgba(23,44,66,.2);--accent:#315abb;--accent-soft:#e6ecfa;--action:#ed8150;--action-ink:#162c42;--shadow:#183a55;--radius-sm:4px;--radius-md:8px;--radius-lg:12px;--gutter:clamp(20px,3.75vw,56px);position:relative;width:100%;height:100svh;min-height:440px;overflow:hidden;color:var(--ink);background:var(--paper)}
#scene{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}.shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(247,248,242,.97),rgba(247,248,242,.78) 25%,rgba(247,248,242,0) 56%),linear-gradient(0deg,rgba(247,248,242,.86),transparent 22%)}
.icon{display:inline-block;flex:none;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;pointer-events:none}
.site-header{position:absolute;inset:24px var(--gutter) auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px}.brand>.icon{width:34px;height:34px;stroke-width:1.8}.brand>span{font:700 20px/1 var(--mono);letter-spacing:-1px}
.top-tools{display:flex;gap:8px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm)}.icon-button .icon{width:21px;height:21px}.icon-button:hover{background:var(--paper);border-color:var(--ink);box-shadow:2px 2px 0 var(--line)}.icon-button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}
.lobby{position:absolute;left:calc(var(--gutter) + 24px);top:25%;width:min(440px,42%)}.eyebrow{display:flex;gap:12px;align-items:center;font-size:11px;font-weight:600;line-height:1.4;letter-spacing:.06em;margin:0 0 22px;color:var(--muted)}.index-label{font:600 12px var(--mono);color:var(--accent)}h1{font-size:clamp(52px,5.4vw,84px);font-weight:750;line-height:1.08;letter-spacing:-.055em;margin:0;text-wrap:balance}h1 span{color:var(--accent)}.story{font-size:14px;line-height:1.85;color:var(--muted);margin:24px 0 26px;text-wrap:pretty}.start-row{display:flex;align-items:center}.primary{display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:52px;padding:12px 20px;border:1px solid var(--action-ink);border-radius:var(--radius-sm);background:var(--action);color:var(--action-ink);box-shadow:3px 3px 0 var(--shadow);font-size:14px;font-weight:650}.primary .icon{width:22px;height:22px}.primary:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--shadow)}.primary:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px 0 var(--shadow)}.trip-note{display:flex;flex-direction:column;gap:6px;font-size:11px;line-height:1.5;margin:22px 0 0;color:var(--muted)}#route-length{font-variant-numeric:tabular-nums}.trip-note>span:last-child{font-size:10px;color:var(--faint)}
.weather-card{position:absolute;right:var(--gutter);top:120px;width:252px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md)}.weather-heading{display:flex;gap:12px;align-items:center;margin-bottom:16px}.weather-heading>.icon{width:28px;height:28px;color:var(--accent)}.weather-heading small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-bottom:4px}.weather-heading b{display:block;font-size:13px;line-height:1.4;font-weight:600}.weather-options{display:flex;gap:4px;padding:3px;background:var(--accent-soft);border:1px solid var(--line);border-radius:6px}.weather-options button{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;min-height:40px;padding:7px 8px;border-radius:3px;background:transparent;font-size:12px;white-space:nowrap;color:var(--muted)}.weather-options .icon{width:17px;height:17px}.weather-options button:hover{color:var(--ink);background:var(--paper)}.weather-options button[aria-pressed=true]{background:var(--accent);color:#fff;box-shadow:0 1px 2px #14273f24}.snow-choice{display:flex;align-items:center;gap:10px;margin-top:10px}.snow-choice button{display:flex;align-items:center;gap:7px;min-height:42px;padding:0 9px;background:transparent;border:1px solid transparent;border-radius:4px;font-size:12px}.snow-choice .icon{width:17px;height:17px}.snow-choice button:hover{border-color:var(--line)}.snow-choice small{font-size:10px;color:var(--muted);line-height:1.5}.switch-track{display:inline-flex;align-items:center;width:25px;height:14px;padding:2px;background:var(--line);border-radius:9px;margin-left:2px}.switch-track:after{content:"";display:block;width:10px;height:10px;background:var(--paper);border-radius:50%;transition:transform .16s}.snow-choice button[aria-pressed=true] .switch-track{background:var(--accent)}.snow-choice button[aria-pressed=true] .switch-track:after{transform:translateX(11px)}
.lobby-footer{position:absolute;left:var(--gutter);right:var(--gutter);bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted);min-height:24px}.footer-divider{padding:0 12px;color:var(--faint)}.lobby-footer>span:nth-child(2){display:flex;align-items:center;gap:7px;font-size:10px}.lobby-footer>span:nth-child(2) kbd:not(:first-child){margin-left:9px}.lobby-footer #metrics-toggle{width:32px;height:32px;border:0;background:transparent;color:var(--faint)}.lobby-footer #metrics-toggle .icon{width:17px;height:17px}kbd{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:23px;padding:1px 5px;background:var(--paper);border:1px solid var(--line);border-bottom-width:2px;border-radius:3px;font:11px/1 var(--mono);color:var(--ink)}
/* The gameplay HUD leaves the centre of the snowfield open. */
#app:not([data-mode=lobby]) .lobby,#app:not([data-mode=lobby]) .weather-card,#app:not([data-mode=lobby]) .lobby-footer>span{display:none}#app:not([data-mode=lobby]) .site-header{border:0;padding:0}#app:not([data-mode=lobby]) .brand{padding:8px 10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm)}#app:not([data-mode=lobby]) .brand>.icon{width:24px;height:24px}#app:not([data-mode=lobby]) .brand>span{font-size:17px}#app:not([data-mode=lobby]) .shade{background:none}#app:not([data-mode=lobby]) .lobby-footer{left:auto;bottom:24px}
.journey-stack{position:absolute;top:92px;left:var(--gutter);width:272px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;pointer-events:none}.route-top{padding:11px 14px;background:var(--surface);border-left:2px solid var(--accent);border-radius:0 var(--radius-sm) var(--radius-sm) 0;min-width:184px}.route-top>#location{display:block;font-size:12px;font-weight:600;line-height:1.4;margin-bottom:8px}.route-top>div{display:flex;gap:10px;align-items:baseline}.route-top strong{font:500 18px/1 var(--mono);letter-spacing:-.055em;font-variant-numeric:tabular-nums}.route-top small{font-size:10px;color:var(--muted)}
.route-map{position:absolute;right:var(--gutter);top:92px;width:128px;padding:12px 9px 9px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);pointer-events:none}.map-heading{display:flex;justify-content:space-between;gap:8px;align-items:baseline;padding:0 3px;font-size:11px;font-weight:600}.map-heading small{font:500 11px var(--mono);color:var(--accent)}.route-map>svg{width:100%;height:auto;display:block;margin:9px 0 4px;overflow:visible}.map-route{fill:none;stroke:var(--line);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.map-route.selected{stroke:var(--accent)}.map-endpoint{fill:var(--paper);stroke:var(--muted);stroke-width:2}.map-finish{fill:var(--action);stroke:var(--paper);stroke-width:2}.map-challenge{fill:var(--action);stroke:var(--paper);stroke-width:1.5}#map-rider{fill:var(--ink)}.map-rider-halo{fill:var(--paper);stroke:var(--accent);stroke-width:1}.route-map text{font-size:8px;fill:var(--muted)}.map-key{display:flex;justify-content:space-between;gap:3px;font-size:8px;color:var(--muted)}.map-key span{display:flex;align-items:center;gap:3px}.map-key i{width:4px;height:4px;background:var(--accent);border-radius:50%}.map-key .icon{width:10px;height:10px;color:var(--accent)}
.route-cue{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);box-shadow:0 4px 12px #172c4209;color:var(--ink)}.route-cue>.icon{width:27px;height:27px;color:var(--accent)}.route-cue>div{min-width:0}.route-cue small{font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted)}.route-cue p{font-size:12px;font-weight:550;line-height:1.55;margin:4px 0 0;text-wrap:pretty}.route-cue[data-phase=enter]{animation:cue-in .18s ease-out both}.route-cue[data-phase=exit]{animation:cue-out .3s ease-in both}@keyframes cue-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes cue-out{to{opacity:0;transform:translateY(-3px)}}
.speed{position:absolute;bottom:28px;left:var(--gutter);padding:13px 16px 12px;background:var(--surface);border-left:2px solid var(--accent);border-radius:0 var(--radius-sm) var(--radius-sm) 0;min-width:176px;font-variant-numeric:tabular-nums;pointer-events:none}.speed small{display:block;font-size:10px;color:var(--muted);line-height:1}.speed strong{display:inline-block;font:600 62px/1.12 var(--mono);letter-spacing:-.07em;min-width:1.25em;margin:3px 9px 3px 0}.speed>span{font:11px var(--mono);color:var(--muted)}.speed p{font-size:10px;color:var(--muted);margin:0;line-height:1.5;max-width:210px}.technique{position:absolute;left:var(--gutter);bottom:174px;font-size:12px;font-weight:550;line-height:1.6;padding:8px 12px;border-radius:4px;background:var(--surface);max-width:320px;margin:0;pointer-events:none}.technique:empty{display:none}
.challenge-card{width:100%;padding:15px;background:var(--surface);border:1px solid var(--line);border-top:2px solid var(--action);border-radius:var(--radius-md);pointer-events:auto}.challenge-card small{font-size:10px;color:var(--muted)}.challenge-card h2{font-size:19px;line-height:1.3;letter-spacing:-.03em;margin:7px 0 9px;font-weight:650}.challenge-card p{font-size:12px;line-height:1.65;margin:0 0 12px;color:var(--muted)}.challenge-card>div{display:flex;gap:6px;flex-wrap:wrap}.challenge-card button{min-height:40px;padding:8px 12px;background:var(--accent);color:#fff;font-size:11px;font-weight:600;border:1px solid transparent;border-radius:4px}.challenge-card button:hover{box-shadow:2px 2px 0 var(--line)}.challenge-card #challenge-exit{background:transparent;color:var(--ink);border-color:var(--line)}
#ride-controls{position:absolute;left:var(--gutter);right:var(--gutter);bottom:22px;display:flex;justify-content:space-between;gap:20px;pointer-events:none}.left-controls,.right-controls{display:flex;align-items:stretch;gap:6px}#ride-controls button,.press-controls button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;min-width:58px;min-height:70px;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-bottom-width:3px;border-radius:6px}#ride-controls .icon{width:23px;height:23px}#ride-controls b,.press-controls b{font-size:12px;font-weight:600}#ride-controls small{font-size:9px;color:var(--muted)}.right-controls button{min-width:91px!important}#ride-controls button.held,.press-controls button.held{background:var(--accent);border-color:var(--accent);color:#fff;transform:translateY(2px);border-bottom-width:1px}#ride-controls button.held small{color:#e0eaff}.press-controls{position:absolute;right:var(--gutter);bottom:111px}.press-controls>span{display:block;margin-bottom:7px;font-size:10px;color:var(--ink);text-align:right;background:var(--surface);border-radius:3px;padding:4px 7px;width:max-content;margin-left:auto}.press-controls>div{display:flex;gap:6px}.press-controls button{flex-direction:row;min-height:48px;min-width:91px;padding:9px}.press-controls .icon{width:19px;height:19px}#app[data-touch-controls=false] #ride-controls,#app[data-touch-controls=false] #press-controls{display:none}#app[data-touch-controls=true] .speed{bottom:111px}#app[data-touch-controls=true] .technique{bottom:252px}#app[data-touch-controls=true]:not([data-mode=lobby]) .lobby-footer{display:none}
/* Shared panels are quiet paper surfaces, not frosted cards. */
dialog{border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:6px 6px 0 #172c422b,0 18px 60px #132b4333;background:var(--paper);color:var(--ink);width:min(500px,calc(100% - 40px));max-height:calc(100svh - 40px);padding:30px;overflow:auto}dialog::backdrop{background:#10243b70;backdrop-filter:blur(2px)}dialog[open]{animation:panel-in .18s ease-out}@keyframes panel-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}dialog h2{font-size:30px;line-height:1.25;letter-spacing:-.055em;font-weight:650;margin:0 0 16px}dialog p:not(.eyebrow){font-size:13px;line-height:1.8;color:var(--muted);text-wrap:pretty}dialog .primary{width:100%;margin:22px 0 10px}dialog .secondary{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;font-size:12px;padding:10px 0;background:transparent;border-bottom:1px solid var(--line);text-align:left}dialog .secondary:hover{color:var(--accent)}dialog a{display:inline-flex;align-items:center;gap:7px;min-height:40px;font-size:12px;border-bottom:1px solid transparent}dialog a:hover{border-bottom-color:var(--ink)}.muted{color:var(--muted);font-size:11px!important}.touch-option{display:flex;align-items:center;gap:10px;min-height:48px;font-size:12px}.touch-option input{width:18px;height:18px;accent-color:var(--accent)}.menu-links{display:flex;align-items:center;flex-wrap:wrap;column-gap:18px;row-gap:5px}.menu-links .secondary{width:auto;border:0;font-size:11px}
#toast{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);max-width:min(420px,calc(100% - 40px));margin:0;padding:11px 16px;background:var(--ink);color:var(--paper);border-radius:6px;font-size:12px;line-height:1.6;text-align:center;pointer-events:none;box-shadow:0 3px 12px #14273f20}#app[data-touch-controls=true] #toast{bottom:202px}#loading,#error{position:absolute;inset:0;background:var(--paper);display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:10;padding:32px;text-align:center}.loading-logo{display:flex;align-items:center;gap:13px}.loading-logo .icon{width:47px;height:47px;color:var(--accent)}.loading-logo b{font:700 31px var(--mono);letter-spacing:-2px}#loading p{font-size:12px;color:var(--muted);margin:28px 0 20px}#loading>div{height:3px;width:180px;background:var(--line);border-radius:2px;overflow:hidden}#loading i{display:block;height:100%;background:var(--accent);width:5%;transition:width .2s}#error h2{font-size:27px;letter-spacing:-.04em}#error p{font-size:13px;line-height:1.8;max-width:390px;margin-bottom:24px}#app[data-recovery=true] #scene{opacity:.65;transition:opacity .2s}
#metrics{position:absolute;left:50%;top:84px;transform:translateX(-50%);white-space:pre;background:#142b40f5;color:#e2edf6;padding:12px 16px;border-radius:6px;font:10px/1.75 var(--mono);pointer-events:none}#record-tools{position:absolute;left:50%;top:325px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:400px;font-size:10px;padding:7px;background:var(--surface);border:1px solid var(--line);border-radius:6px}#record-tools button{min-height:40px;padding:8px 12px;background:var(--ink);color:var(--paper);border-radius:4px;white-space:nowrap}#record-note{font-size:9px;max-width:120px;line-height:1.5}#record-note a{text-decoration:underline}#inspect-view{min-height:36px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:4px;font-size:11px;padding:5px}
#app[data-time=night]{--ink:#ecf1fa;--muted:#b6c5d9;--faint:#a0b4cd;--paper:#192d43;--surface:rgba(23,43,64,.96);--line:rgba(196,214,235,.25);--accent:#a9bdff;--accent-soft:#243d59;--action:#ed976a;--action-ink:#14273f;--shadow:#0c1c30}#app[data-time=night][data-mode=lobby] .shade{background:linear-gradient(90deg,#172b40ef,#172b40b0 25%,transparent 58%),linear-gradient(0deg,#172b40d9,transparent 22%)}#app[data-time=night] .weather-options button[aria-pressed=true],#app[data-time=night] #ride-controls button.held,#app[data-time=night] .press-controls button.held,#app[data-time=night] .challenge-card button:not(#challenge-exit){background:#385abb;color:white}#app[data-time=night] .snow-choice button[aria-pressed=true] .switch-track{background:#7796ed}#app[data-time=sunset]{--paper:#fbf6ec;--surface:rgba(251,246,236,.96);--accent-soft:#edece8}
@media(min-width:1450px){.lobby{left:calc(var(--gutter) + 40px);top:26%}.weather-card{top:140px}}
@media(max-width:950px){.lobby{left:var(--gutter);width:43%;top:24%}.lobby h1{font-size:clamp(48px,6.5vw,65px)}.story{font-size:13px}.weather-card{width:228px;padding:14px}.weather-options button{padding:6px;font-size:11px}.weather-options .icon{width:15px;height:15px}.lobby-footer>span:nth-child(2){display:none}.journey-stack{width:245px}}
@media(max-width:700px) and (min-height:701px){.lobby{top:144px;width:calc(100% - 2*var(--gutter))}.lobby h1{font-size:clamp(46px,9vw,62px)}.story{margin:18px 0 22px;font-size:13px}.trip-note{margin-top:17px}.weather-card{left:var(--gutter);right:auto;top:auto;bottom:88px;width:268px}.weather-heading{margin-bottom:11px}.weather-card .snow-choice{margin-top:5px}.shade{background:linear-gradient(180deg,#f7f8f2db,rgba(247,248,242,.72) 27%,transparent 52%),linear-gradient(0deg,#f7f8f2db,transparent 30%)}#app[data-time=night][data-mode=lobby] .shade{background:linear-gradient(180deg,#172b40e6,#172b40ad 28%,transparent 53%),linear-gradient(0deg,#172b40dd,transparent 30%)}}
@media(max-width:600px){#app{--gutter:18px;min-height:580px}.site-header{top:18px;gap:12px;padding-bottom:15px}.brand>span{font-size:18px}.brand>.icon{width:29px;height:29px}.top-tools{gap:5px}.icon-button{width:42px;height:42px}.lobby{top:125px;left:24px;width:calc(100% - 48px)}.lobby h1{font-size:48px}.eyebrow{margin-bottom:15px;font-size:10px}.story{font-size:12px;margin:18px 0 20px}.primary{min-height:49px;font-size:13px;padding:10px 16px}.trip-note{font-size:10px;gap:4px;margin-top:18px}.weather-card{top:auto;bottom:70px;left:24px;width:256px;padding:13px}.weather-heading{margin-bottom:10px}.weather-heading b{font-size:12px}.weather-heading small{font-size:9px}.weather-heading>.icon{width:24px;height:24px}.weather-options button{min-height:38px}.snow-choice{margin-top:4px}.snow-choice button{min-height:35px}.lobby-footer{bottom:17px;left:24px;right:24px;font-size:10px}.journey-stack{top:84px;width:calc(100% - 138px);gap:8px}.route-top{min-width:0;width:100%;padding:10px 11px}.route-top>#location{font-size:11px;margin-bottom:7px}.route-top strong{font-size:16px}.route-top>div{gap:7px;flex-wrap:wrap}.route-top small{font-size:9px}.route-map{top:84px;width:98px;padding:10px 6px 8px}.map-heading{font-size:10px}.map-heading small{font-size:10px}.map-key{font-size:7px}.route-map text{font-size:9px}.route-cue{padding:10px;gap:8px}.route-cue>.icon{width:23px;height:23px}.route-cue p{font-size:11px;line-height:1.5}.route-cue small{font-size:9px}.challenge-card{padding:12px}.challenge-card h2{font-size:17px}.challenge-card p{font-size:11px}.challenge-card button{font-size:10px;min-height:38px;padding:7px 9px}.speed{bottom:22px;min-width:156px;padding:11px 12px}.speed strong{font-size:54px}.speed p{max-width:180px;font-size:9px}.technique{bottom:150px;max-width:250px;font-size:11px}.left-controls,.right-controls{gap:5px}#ride-controls{bottom:17px;gap:9px;left:14px;right:14px}#ride-controls button{min-width:47px;min-height:66px;padding:8px 9px}.right-controls button{min-width:70px!important}#ride-controls b{font-size:11px}#ride-controls small{font-size:8px}#ride-controls .icon{width:21px;height:21px}.press-controls{right:14px;bottom:99px}.press-controls button{min-width:70px;min-height:44px;padding:8px}.press-controls b{font-size:11px}.press-controls>span{font-size:9px}.press-controls>div{gap:5px}#app[data-touch-controls=true] .speed{bottom:99px}#app[data-touch-controls=true] .technique{bottom:232px}#app[data-touch-controls=true] #toast{bottom:160px;max-width:230px;left:auto;right:14px;transform:none;font-size:11px}dialog{padding:24px;width:calc(100% - 28px);max-height:calc(100svh - 28px)}dialog h2{font-size:27px}#metrics{top:80px;font-size:9px;padding:10px}#record-tools{top:299px;max-width:calc(100% - 32px);width:max-content;gap:5px}#record-note{max-width:90px}#record-tools button{padding:7px 9px;font-size:10px}}
@media(max-height:700px) and (min-width:601px){.site-header{top:18px;padding-bottom:14px}.lobby{top:132px}.lobby h1{font-size:54px}.lobby .eyebrow{margin-bottom:16px}.story{margin:19px 0 22px}.trip-note{margin-top:17px}.weather-card{top:114px}.journey-stack,.route-map{top:82px}.route-map{width:112px}.journey-stack{width:250px}.challenge-card{padding:12px}.challenge-card h2{font-size:17px;margin:6px 0}.challenge-card p{font-size:11px;margin-bottom:8px}.route-cue{padding:10px 12px}.speed strong{font-size:54px}.speed{bottom:22px}.technique{bottom:150px}#app[data-touch-controls=true] .speed{bottom:106px}#app[data-touch-controls=true] .technique{bottom:236px}}
@media(max-height:560px) and (min-width:601px){.lobby{top:107px}.lobby h1{font-size:42px}.eyebrow{margin-bottom:10px}.story{font-size:12px;margin:12px 0 17px}.trip-note{margin-top:14px}.weather-card{top:108px;width:238px}.lobby-footer{bottom:14px}.route-map{width:90px}.journey-stack{width:225px}.journey-stack:has(.challenge-card:not([hidden])) .route-cue{display:none}.speed{bottom:16px}.speed strong{font-size:45px}.speed p{display:none}.technique{left:50%;bottom:25px;transform:translateX(-50%);font-size:11px}.challenge-card{padding:10px}#app[data-touch-controls=true] .speed{bottom:104px}#app[data-touch-controls=true] .technique{bottom:20px;max-width:200px}.press-controls{bottom:100px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Shared dialog structure: the action remains visible while long guidance scrolls. */
dialog{padding:0;overflow:hidden;opacity:0;transform:translateY(6px);transition:opacity .16s ease,transform .16s ease,display .16s allow-discrete,overlay .16s allow-discrete}dialog[open]{display:flex;flex-direction:column;opacity:1;transform:translateY(0);animation:none}@starting-style{dialog[open]{opacity:0;transform:translateY(6px)}}.panel-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px 10px 24px;flex:none;background:var(--accent-soft);border-bottom:1px solid var(--line)}.panel-bar>span{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:600;color:var(--ink)}.panel-bar>span>.icon{width:17px;height:17px;color:var(--accent)}.panel-bar>.icon-button{border:0;background:transparent;width:36px;height:36px}.panel-bar>.icon-button:hover{background:var(--paper);box-shadow:none}.panel-bar>.icon-button>.icon{width:18px;height:18px}.dialog-body{padding:25px 28px;overflow:auto;min-height:0;overscroll-behavior:contain}.dialog-body>h2{margin-bottom:12px}.dialog-body>p{margin:0}.dialog-footer{padding:16px 28px 22px;border-top:1px solid var(--line);flex:none}.dialog-footer>.primary{margin:0 0 9px;min-height:48px}.dialog-footer>.primary:last-child{margin:0}.dialog-footer>.secondary:last-child{border:0}.dialog-footer .secondary .icon{width:18px;height:18px}.weather-field{border:0;padding:0;margin:25px 0 0}.weather-field legend{font-size:11px;color:var(--muted);margin-bottom:12px}.weather-field .weather-options{width:100%;max-width:320px}.weather-field .snow-choice{margin-top:10px}#pause-dialog{width:min(430px,calc(100% - 32px))}#help-dialog{width:min(640px,calc(100% - 32px))}.guide-intro{margin-bottom:24px!important}.guide-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:28px;row-gap:24px}.guide-item{border-top:1px solid var(--line);padding-top:15px}.guide-item h3{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;line-height:1.5;margin:0 0 10px}.guide-item h3>.icon{width:19px;height:19px;color:var(--accent)}.key-line{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-height:24px;margin-bottom:8px}.key-line>span{font-size:10px;color:var(--muted)}.guide-item p{font-size:12px!important;line-height:1.75!important;margin:0}.guide-wide{grid-column:1/-1}.guide-footnote{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:10px!important;padding-top:23px;margin:0!important}.guide-footnote>span{margin-left:auto;color:var(--muted)}.touch-option{padding:18px 0 14px;border-bottom:1px solid var(--line);margin-top:6px;cursor:pointer}.touch-option small{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:4px}.extra-tools{font-size:11px;margin-top:14px}.extra-tools summary{cursor:pointer;min-height:35px;line-height:35px;outline-offset:3px}.extra-tools summary:focus-visible{outline:3px solid var(--accent)}.extra-tools .menu-links{padding:7px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:2px 14px}.menu-links .secondary,.menu-links a{justify-content:flex-start;gap:8px;font-size:11px;text-align:left}.menu-links .icon{width:17px;height:17px}.menu-links button[aria-pressed=true]{color:var(--accent)}.arrival-mark{display:flex;align-items:center;gap:13px;margin:2px 0 22px;color:var(--accent);font-size:11px}.arrival-mark>.icon{width:34px;height:34px;stroke-width:1.5}.lobby-footer{justify-content:space-between}
@media(max-width:600px){.panel-bar{padding:8px 10px 8px 20px}.dialog-body{padding:22px 20px}.dialog-footer{padding:14px 20px 18px}.guide-grid{grid-template-columns:1fr;gap:18px}.guide-wide{grid-column:auto}.guide-item{padding-top:13px}.guide-item h3{font-size:14px;margin-bottom:8px}.guide-intro{font-size:12px!important;margin-bottom:20px!important}.guide-footnote{gap:6px}.guide-footnote>span{flex-basis:100%;margin:6px 0 0}.extra-tools .menu-links{grid-template-columns:1fr}.weather-field{margin-top:20px}dialog h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){dialog{transition:none!important;transform:none!important}}

/* Stable distance columns and comfortably sized touch targets. */
.route-top strong{min-width:7.5ch}.panel-bar>.icon-button{width:44px;height:44px}.weather-options button,.snow-choice button{min-height:44px}
@media(max-width:600px){.top-tools>.icon-button{width:44px;height:44px}.weather-card{padding:12px 13px}.weather-heading{margin-bottom:8px}.snow-choice button{min-height:40px}}
@media(any-pointer:coarse){.snow-choice button{min-height:44px}.extra-tools summary,.menu-links a,.menu-links button{min-height:44px}}
/* Short windows keep controls inside the viewport instead of stretching the page. */
@media(max-height:560px) and (min-width:601px){#app{min-height:0}.challenge-card{position:fixed;top:82px;right:var(--gutter);width:225px;max-height:calc(100svh - 100px);overflow:auto}#hud:has(.challenge-card:not([hidden])) .route-map{visibility:hidden}}
@media(max-height:450px) and (min-width:601px){.lobby{top:96px}.lobby h1{font-size:36px}.lobby .eyebrow{font-size:10px;margin-bottom:10px}.lobby .story{font-size:11px;line-height:1.6;margin:10px 0 12px}.lobby .primary{min-height:44px;padding:9px 16px;font-size:12px}.lobby .trip-note{margin-top:12px;font-size:10px}.lobby .trip-note>span:last-child{display:none}.weather-card{top:102px;padding:12px;width:224px}.weather-heading{margin-bottom:10px}.lobby-footer{bottom:12px;font-size:10px}}
@media(max-width:600px) and (max-height:760px){.lobby{top:108px}.lobby h1{font-size:40px}.lobby .eyebrow{margin-bottom:12px}.lobby .story{margin:14px 0 18px}.lobby .trip-note{margin-top:14px}.weather-card{bottom:58px;padding:10px 13px}.weather-heading{display:none}.weather-card .snow-choice small{display:none}}
@media(max-width:600px) and (max-height:650px){.lobby{top:96px}.lobby h1{font-size:36px}.lobby .story{display:none}.lobby .start-row{margin-top:23px}}

/* The challenge card owns its route instructions; avoid duplicate notices. */
.journey-stack:has(.challenge-card:not([hidden])) .route-cue{display:none}
@media(max-height:560px) and (min-width:601px){.journey-stack>.route-cue{position:fixed;top:82px;left:calc(var(--gutter) + 210px);width:225px}.route-map{width:76px;padding:8px 5px}.route-map>svg{margin:4px 0 0}.route-map .map-key{display:none}#ride-controls{bottom:16px}#ride-controls button{min-height:58px;padding:6px 9px}.right-controls button small{display:none}#app[data-touch-controls=true] .speed,.press-controls{bottom:84px}}
