:root{--ink:#243d36;--cream:#fffaf0;--orange:#eb6948;--muted:#778178;--line:rgba(41,64,54,.16);font-family:Arial,Helvetica,sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{background:#c3ded9;user-select:none;-webkit-user-select:none;touch-action:none}button,a{-webkit-user-select:none;user-select:none;touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #d54f2c;outline-offset:5px}button:disabled{cursor:wait}button,svg{flex-shrink:0}button svg{pointer-events:none}button>span,button>i{pointer-events:none}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button{transition:background .2s,transform .15s,box-shadow .2s}button:active{transform:translateY(1px)}[hidden]{display:none!important}#world{position:fixed;inset:0;display:block;width:100%;height:100%;touch-action:none}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(245,244,221,.8),rgba(245,244,221,.2) 37%,transparent 60%),linear-gradient(0deg,rgba(41,61,46,.1),transparent 18%);transition:opacity 1s}body:not([data-phase="menu"]):not([data-phase="loading"]) .vignette{opacity:0}.header{height:104px;padding:30px 42px;position:fixed;top:0;left:0;right:0;display:flex;align-items:center;gap:25px;z-index:5}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}.brand svg{width:42px;height:42px;stroke-width:3.2;color:var(--orange)}.brand svg circle{fill:var(--orange);stroke:none}.brand>span{font-size:21px;letter-spacing:3px;font-weight:800}.brand small{display:block;margin-top:4px;font-size:8px;letter-spacing:2.1px;font-weight:600}.park-status{font-size:9px;letter-spacing:1.8px;display:flex;gap:8px;align-items:center;margin-left:auto}.status-dot{background:#548264;width:5px;height:5px;border-radius:50%}.utilities{display:flex;gap:8px;margin-left:auto}.icon-button{width:42px;height:42px;display:grid;place-items:center;background:rgba(255,250,240,.85);border:1px solid rgba(255,255,255,.55);border-radius:50%;box-shadow:0 2px 8px #25443806;backdrop-filter:blur(10px)}.icon-button:hover{background:var(--cream);transform:translateY(-2px)}.icon-button svg{width:18px;height:18px}.sound-on{display:none}.sound-enabled .sound-on{display:initial}.sound-enabled .sound-off{display:none}.welcome{position:absolute;left:60px;top:50%;transform:translateY(-45%);width:355px;z-index:2}.eyebrow{font-size:9px;font-weight:600;letter-spacing:2.1px;display:flex;align-items:center;gap:9px}.line{width:20px;height:1px;background:var(--orange)}h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:80px;letter-spacing:-4px;line-height:.97;margin:25px 0 23px}h1 em{font-weight:400;color:#e26644}p.intro{font-size:13px;line-height:1.9;color:#51655b;margin:0 0 27px}.mode-picker{display:flex;gap:8px;margin-bottom:17px}.mode{display:flex;align-items:center;gap:7px;text-align:left;border:1px solid #39523b28;background:#fffaed90;padding:13px 9px 13px 11px;border-radius:10px;width:50%;backdrop-filter:blur(10px)}.mode.active{border:1px solid #2f5344;background:#fffaf0df;box-shadow:0 2px 8px #20473407}.mode-icon{font-size:22px;color:#547361}.mode>span:nth-child(2){font-size:11px;font-weight:700;line-height:1.6}.mode small{display:block;color:#738176;font-weight:400;font-size:8px;white-space:nowrap}.mode-radio{margin-left:auto;border:1px solid #79887a;width:10px;height:10px;border-radius:50%}.mode.active .mode-radio{background:#3c6853;border-color:#3c6853;box-shadow:inset 0 0 0 2px #fffaf0}.primary-button{background:var(--orange);color:#fffaf0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 22px;width:100%;border-radius:9px;font-size:11px;letter-spacing:2px;font-weight:700;box-shadow:0 8px 25px #a6472920}.primary-button:hover{background:#de5837;box-shadow:0 8px 25px #a6472940}.primary-button svg{width:23px;height:23px}.primary-button:disabled{opacity:.5}.start-note{margin:15px 0 0;display:flex;gap:6px;justify-content:center;font-size:9px;letter-spacing:.4px;color:#78836f}.tiny-sun{color:#da8452;font-size:13px;margin-top:-2px}.track-card{position:absolute;right:40px;top:135px;width:251px;background:rgba(255,250,239,.92);backdrop-filter:blur(15px);border-radius:12px;padding:22px 21px 16px;box-shadow:0 10px 30px #25443810;transform:rotate(2deg)}.card-kicker{display:flex;justify-content:space-between;font-size:8px;font-weight:700;letter-spacing:1.8px;color:#808272}.card-kicker>span:last-child{color:#e06848}h2{font-family:Georgia,'Times New Roman',serif;font-weight:400}.track-card h2{font-size:28px;letter-spacing:-.7px;margin:18px 0 25px;display:flex;justify-content:space-between;align-items:center}.track-card h2 span{font-family:Arial;font-size:21px;color:var(--orange)}.track-stats{display:flex;gap:24px}.track-stats>div{display:flex;flex-direction:column;gap:7px}.track-stats b{font-weight:500;font-size:24px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.track-stats span{font-size:7px;letter-spacing:1px;color:#7f8375;white-space:nowrap}.card-foot{border-top:1px solid var(--line);margin-top:22px;padding-top:13px;display:flex;align-items:center;justify-content:space-between;font-size:7px;letter-spacing:1.4px;color:#6f7e72}.little-dots{color:var(--orange);font-size:9px;letter-spacing:1px}.little-dots i{color:#d4d6c7;font-style:normal}.menu-footer{position:fixed;bottom:28px;left:42px;right:42px;display:flex;justify-content:space-between;font-size:8px;font-weight:600;letter-spacing:1.9px;color:#506653}.footer-coordinates{margin-right:245px}.map-panel{position:fixed;right:40px;bottom:38px;width:215px;padding:16px 15px 12px;background:rgba(255,250,239,.91);border:1px solid #fff5;border-radius:12px;backdrop-filter:blur(14px);z-index:2;box-shadow:0 5px 30px #30473510}.map-heading,.map-footer{display:flex;justify-content:space-between;align-items:center;font-size:7px;font-weight:600;letter-spacing:1.2px}.map-heading{color:#4b6756}.map-heading span:last-child{color:#899081;font-size:6px}#minimap{display:block;width:100%;height:111px;margin:7px 0 5px}.map-footer{font-size:6px;letter-spacing:.6px;color:#8b8c7a}.map-footer i{display:inline-block;background:var(--orange);width:5px;height:5px;border-radius:50%;margin-right:4px}.map-footer span:last-child{font-size:5.8px}.ride-only{display:none!important}body[data-phase="riding"] .ride-only,body[data-phase="paused"] .ride-only{display:flex!important}body[data-phase="riding"] #welcome,body[data-phase="paused"] #welcome,body[data-phase="results"] #welcome,body[data-phase="riding"] #track-card,body[data-phase="paused"] #track-card,body[data-phase="results"] #track-card,body:not([data-phase="menu"]):not([data-phase="loading"]) .menu-footer{display:none}body:not([data-phase="menu"]):not([data-phase="loading"]) .park-status{visibility:hidden}.ride-hud{position:fixed;top:28px;left:50%;transform:translateX(-50%);gap:0;background:rgba(255,250,240,.92);border:1px solid #fff9;border-radius:12px;padding:16px 18px 13px;backdrop-filter:blur(12px);z-index:4;box-shadow:0 4px 25px #24453709}.hud-stat{padding:0 20px;border-left:1px solid var(--line);min-width:106px}.hud-stat:first-child{padding-left:0;border:0}.hud-stat:last-child{padding-right:0}.hud-stat>span{font-size:7px;letter-spacing:1.5px;font-weight:700;color:#758478;display:block;margin-bottom:7px}.hud-stat>div{display:flex;align-items:baseline;gap:6px}.hud-stat b{font-size:27px;font-weight:500;letter-spacing:-1.2px;line-height:1;font-variant-numeric:tabular-nums}.hud-stat small{font-size:7px;letter-spacing:.5px;color:#889381}.speed-stat{min-width:118px}.speed-stat b{color:#d9603d}.speed-track{height:2px;background:#dcdfd1;margin-top:7px;overflow:hidden;max-width:85px}.speed-track i{height:2px;display:block;width:0;background:var(--orange)}.stage-label{position:fixed;top:121px;left:50%;transform:translateX(-50%);gap:6px;align-items:center;padding:7px 12px;border-radius:20px;background:#fff9eec7;backdrop-filter:blur(10px);font-size:8px;letter-spacing:1.3px;font-weight:600;z-index:2;white-space:nowrap}.stage-label>span:first-child{width:5px;height:5px;border-radius:50%;background:var(--orange)}.gate-target{position:absolute;top:180px;right:40px;min-width:198px;background:#fff9eef0;border-radius:12px;flex-direction:column;padding:16px 18px;z-index:3;box-shadow:0 10px 30px #2445370a}.gate-target>span{font-size:7px;letter-spacing:1.3px;color:#778473}.gate-target>b{font-size:28px;font-weight:500;letter-spacing:-1px;margin:9px 0 11px}.gate-target>b small{font-size:8px;letter-spacing:1px;color:#819080}.gate-target>div{display:flex;align-items:center;gap:6px;font-size:9px;color:#82917c}.gate-target i{width:5px;height:5px;border-radius:50%;background:#cc9c55}.gate-target.in-range{border:1px solid #548264}.gate-target.in-range>div{color:#397452}.gate-target.in-range i{background:#398859}.camera-controls{position:fixed;left:40px;bottom:39px;gap:2px;background:#fff9ede8;padding:5px;border-radius:11px;backdrop-filter:blur(15px);z-index:4}.camera{display:flex;align-items:center;gap:7px;background:transparent;padding:12px 13px;border-radius:7px;color:#7c887a;font-size:9px;white-space:nowrap}.camera svg{width:16px;height:16px}.camera.active{background:#294f40;color:#fff9e9}.drive-controls{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);gap:15px;align-items:center;z-index:4}.drive-button{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;min-width:110px;height:68px;border-radius:12px;color:#fff9e9;box-shadow:0 5px 20px #2544381a;overflow:hidden;touch-action:none}.drive-button>svg{width:20px;height:20px}.drive-button>span{font-size:10px;letter-spacing:1.4px;line-height:1.4;text-align:left}.drive-button small{font-size:7px;letter-spacing:1.2px;font-weight:400;display:block;opacity:.55;margin-top:4px}.brake{background:#244b3d}.boost{background:var(--orange)}.drive-button.pressed{transform:scale(.95);box-shadow:inset 0 3px 10px #0003}.boost.pressed{background:#f8904e}.boost>i{position:absolute;bottom:0;left:0;height:4px;background:#ffda94;width:100%;pointer-events:none}.drive-hint{display:flex;align-items:center;flex-direction:column;gap:7px;color:#2e5541;width:80px;text-shadow:0 1px 4px #fff9}.drive-hint svg{width:20px;height:20px}.drive-hint span{font-size:6px;letter-spacing:.8px;font-weight:700}.toast{position:fixed;top:30%;left:50%;transform:translate(-50%,12px);padding:15px 24px;background:#fff8ebed;color:#34513e;border:1px solid #fff8;border-radius:12px;backdrop-filter:blur(15px);z-index:6;text-align:center;opacity:0;transition:opacity .25s,transform .25s;pointer-events:none;font-size:13px;letter-spacing:.3px}.toast.show{opacity:1;transform:translate(-50%,0)}.toast strong{color:var(--orange);font-size:20px;margin-right:8px}.toast small{display:block;color:#7c8778;margin-top:6px;font-size:9px;letter-spacing:.6px}.modal-backdrop{position:fixed;inset:0;background:#132b2360;backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;z-index:20;padding:24px}.dialog{background:#fffaf0;max-width:420px;width:100%;padding:35px;border-radius:20px;box-shadow:0 25px 100px #142d2330;text-align:center;position:relative;max-height:calc(100dvh - 32px);overflow:auto;touch-action:pan-y}.dialog .eyebrow{justify-content:center;font-size:8px;color:#89907e}.dialog-icon{font-size:40px;color:#df714e;margin-bottom:24px;line-height:1}.dialog h2{font-size:35px;letter-spacing:-1.3px;line-height:1.08;margin:15px 0}.dialog p{font-size:12px;line-height:1.8;color:#87907e;margin:0 0 25px}.dialog .primary-button{margin-top:25px}.dialog-actions{display:flex;gap:20px;justify-content:center;margin-top:22px}.dialog-actions button,.text-button{font-size:10px;color:#7b8979;background:transparent;text-decoration:underline;text-underline-offset:4px}.close-button{position:absolute;top:14px;right:17px;background:transparent;font-size:25px;color:#a0a58f}.help-dialog{max-width:460px;text-align:left;padding:32px}.help-dialog .eyebrow{justify-content:flex-start}.help-row{display:grid;grid-template-columns:100px 1fr;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:11px;line-height:1.6}.help-row b{font-weight:600}.help-row span{color:#7c8978}kbd{font-family:inherit;font-size:10px;padding:1px 4px;border:1px solid #b9bfa7;border-radius:3px;color:#526853}.result-score{display:flex;flex-direction:column;gap:8px;margin:8px 0 25px}.result-score b{font-size:67px;letter-spacing:-3px;font-weight:400;color:var(--orange);line-height:1}.result-score span,.result-grid span{font-size:7px;letter-spacing:1.4px;color:#8b9480}.result-grid{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:21px}.result-grid>div{display:flex;flex-direction:column;gap:8px}.result-grid b{font-size:24px;font-weight:400;letter-spacing:-1px}.personal-best{font-size:9px;color:#8c9b7b;margin-top:19px;min-height:12px}.results-dialog .text-button{margin-top:19px}.loading{position:fixed;inset:0;z-index:40;background:#fff9ed;display:flex;align-items:center;justify-content:center;flex-direction:column;transition:opacity .6s}.loading.fade{opacity:0;pointer-events:none}.loading-brand{font-size:22px;letter-spacing:4px;font-weight:800;display:flex;align-items:center;gap:18px}.loading-brand span{color:var(--orange);font-size:35px;animation:spin 9s linear infinite}.loading p{font-size:11px;color:#8d9881;margin-top:20px}.loading-line{height:2px;background:#e4e8d8;width:180px;margin-top:12px;overflow:hidden}.loading-line i{display:block;background:var(--orange);width:45%;height:100%;animation:load 1.5s ease-in-out infinite}.fatal{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px;background:#fff8e9}.fatal h2{font-size:35px}.fatal p{max-width:440px;line-height:1.8}.fatal button{padding:18px 25px;background:var(--orange);color:white;border-radius:8px;font-size:12px;letter-spacing:1px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes load{0%{transform:translateX(-110%)}100%{transform:translateX(330%)}}
#gate-target[hidden]{display:none!important}
.menu-footer a{color:inherit;text-decoration:none;pointer-events:auto;letter-spacing:1px}.menu-footer a:hover{text-decoration:underline}.welcome #learning-menu{margin:0 0 13px}.help-dialog{max-height:calc(100dvh - 32px)}
@media(orientation:landscape) and (max-height:600px){body .welcome{top:77px}body .welcome h1{font-size:43px;margin:10px 0}body .welcome .intro{display:none}body .welcome #learning-menu{margin:10px 0}body .start-note{display:none}}
@media(min-width:1600px){.welcome{left:80px;width:390px}h1{font-size:94px}.intro{font-size:14px!important}.mode>span:nth-child(2){font-size:12px}.mode small{font-size:9px}.track-card{right:60px;top:155px;width:270px}.map-panel{right:60px;bottom:50px;width:240px}#minimap{height:130px}}
@media(max-width:1150px){.header{padding:23px 28px;height:90px}.welcome{left:40px;width:320px}h1{font-size:74px}.park-status{display:none}.track-card{right:28px;width:226px;top:115px;padding:20px 18px 15px}.track-stats{gap:20px}.track-stats b{font-size:22px}.map-panel{right:28px;bottom:35px;width:190px}.menu-footer{left:28px;right:28px}.footer-coordinates{margin-right:215px;font-size:7px}.ride-hud{padding:13px 14px;top:24px}.hud-stat{padding:0 13px;min-width:85px}.hud-stat b{font-size:25px}.speed-stat{min-width:90px}.brand>span{font-size:18px;letter-spacing:2px}.brand small{font-size:6px;letter-spacing:1.8px}.brand svg{width:34px}.camera-controls{left:28px;bottom:35px}.camera{padding:11px 10px}.camera span{display:none}.drive-controls{gap:10px;bottom:30px}.drive-hint{width:68px}.drive-button{min-width:100px;height:63px}.gate-target{right:28px;top:153px}.stage-label{top:111px}}
@media(max-width:760px){.header{height:80px;padding:17px 20px;padding-top:max(17px,env(safe-area-inset-top))}.brand>span{font-size:16px;letter-spacing:2px}.brand small{font-size:5.7px;letter-spacing:1.5px}.brand svg{width:32px;height:34px}.utilities{gap:6px}.icon-button{width:35px;height:35px}.icon-button svg{width:16px;height:16px}.park-status,.footer-coordinates{display:none}.welcome{left:26px;top:auto;bottom:90px;transform:none;width:310px}h1{font-size:67px;letter-spacing:-3px;margin:17px 0}.eyebrow{font-size:7px;letter-spacing:1.5px}p.intro{font-size:11px;line-height:1.8;margin-bottom:20px}.mode{padding:11px 8px}.mode>span:nth-child(2){font-size:10px}.mode small{font-size:7px}.primary-button{padding:17px 19px;font-size:10px}.start-note{font-size:8px;margin-top:12px}.track-card{top:105px;right:22px;width:180px;padding:16px 14px 12px}.track-card h2{font-size:22px;margin:13px 0 15px}.card-kicker{font-size:6px;letter-spacing:1.1px}.track-stats{gap:17px}.track-stats b{font-size:18px}.track-stats span{font-size:5px;letter-spacing:.7px}.card-foot{font-size:5px;margin-top:15px;padding-top:10px}.little-dots{font-size:7px}.map-panel{display:none}.menu-footer{bottom:26px;left:26px;font-size:6px;letter-spacing:1.5px}.ride-hud{top:83px;left:20px;right:20px;transform:none;padding:12px;justify-content:space-between;border-radius:10px}.hud-stat{padding:0 12px;min-width:auto}.hud-stat>span{font-size:6px;letter-spacing:.8px;margin-bottom:6px}.hud-stat b{font-size:22px}.hud-stat small{font-size:6px}.speed-stat{min-width:80px}.time-stat{min-width:52px}.speed-track{max-width:65px;margin-top:5px}.stage-label{top:171px;font-size:7px;padding:6px 10px}.gate-target{top:211px;right:20px;padding:12px 14px;min-width:152px;border-radius:9px}.gate-target>span{font-size:6px;letter-spacing:1px}.gate-target>b{font-size:23px;margin:8px 0}.gate-target>b small{font-size:6px}.gate-target>div{font-size:8px}.camera-controls{left:50%;transform:translateX(-50%);bottom:128px;padding:4px}.camera{padding:10px 12px;gap:5px}.camera span{display:inline;font-size:8px}.camera svg{width:13px;height:13px}.drive-controls{left:20px;right:20px;bottom:max(27px,env(safe-area-inset-bottom));transform:none;justify-content:space-between;gap:10px}.drive-button{min-width:113px;height:74px;border-radius:14px}.drive-button>span{font-size:11px}.drive-button small{display:none}.drive-hint{color:#214c39;width:70px}.drive-hint span{font-size:6px}.drive-hint svg{width:22px;height:22px}.toast{top:40%;max-width:80%;width:max-content;font-size:12px}.toast strong{font-size:19px}.dialog{padding:28px}.dialog h2{font-size:32px}.dialog-icon{margin-bottom:20px}.result-score b{font-size:60px}.help-row{grid-template-columns:84px 1fr;font-size:10px}.help-dialog{padding:25px}.vignette{background:linear-gradient(0deg,rgba(245,244,221,.94),rgba(245,244,221,.75) 42%,rgba(245,244,221,0) 80%)}body:not([data-phase="menu"]):not([data-phase="loading"]) .brand small{display:block}}
@media(max-width:390px){.welcome{width:calc(100% - 44px);left:22px;bottom:70px}.track-card{top:95px;width:163px;padding:13px}.track-card h2{font-size:20px}.track-stats{gap:13px}.track-stats b{font-size:16px}h1{font-size:59px}.brand>span{font-size:14px}.brand svg{width:26px}.header{padding-left:18px;padding-right:18px}.icon-button{width:32px;height:32px}.utilities{gap:4px}.hud-stat{padding:0 8px}.hud-stat b{font-size:20px}.hud-stat>span{font-size:5.5px}.speed-stat{min-width:65px}.ride-hud{left:14px;right:14px}.camera span{font-size:7px}.drive-button{min-width:103px}.gate-target{top:206px}.intro{margin-bottom:16px!important}}
@media(orientation:landscape) and (max-height:600px){.header{height:65px;padding:12px 22px}.brand>span{font-size:15px}.brand svg{width:30px;height:30px}.brand small{font-size:5px}.icon-button{width:32px;height:32px}.welcome{left:32px;width:285px;top:89px;bottom:auto;transform:none}.eyebrow{font-size:6px}h1{font-size:49px;letter-spacing:-2px;line-height:.93;margin:12px 0}p.intro{font-size:10px;line-height:1.5;margin-bottom:13px}.mode{padding:8px}.mode>span:nth-child(2){font-size:9px}.mode small{font-size:6.5px}.mode-icon{font-size:18px}.mode-picker{margin-bottom:12px}.primary-button{padding:12px 16px;font-size:9px}.primary-button svg{width:19px;height:19px}.start-note{margin-top:9px;font-size:7px}.track-card{top:82px;right:24px;width:195px;padding:15px}.track-card h2{font-size:23px;margin:13px 0 16px}.track-stats{gap:18px}.track-stats b{font-size:20px}.card-kicker{font-size:6px}.track-stats span{font-size:6px}.card-foot{margin-top:15px;padding-top:11px;font-size:6px}.map-panel{right:24px;bottom:25px;width:165px;padding:12px;display:block}#minimap{height:72px}.map-heading{font-size:6px}.map-heading span:last-child{font-size:5px}.map-footer{font-size:5px}.map-footer span:last-child{font-size:4.5px}.menu-footer{bottom:15px;left:32px;font-size:5px}.footer-coordinates{display:none}.ride-hud{top:12px;left:50%;right:auto;transform:translateX(-50%);padding:9px 12px}.hud-stat{padding:0 13px;min-width:65px}.hud-stat>span{font-size:5px;margin-bottom:5px}.hud-stat b{font-size:20px}.hud-stat small{font-size:5px}.time-stat{display:none}.speed-track{margin-top:4px}.stage-label{top:85px;font-size:6px}.gate-target{top:113px;right:24px;min-width:150px;padding:11px 13px}.gate-target>span{font-size:5px}.gate-target>b{font-size:21px;margin:6px 0}.gate-target>div{font-size:7px}.camera-controls{left:25px;bottom:25px;transform:none}.camera{padding:10px}.camera span{display:none}.camera svg{width:14px;height:14px}.drive-controls{left:50%;right:auto;bottom:21px;transform:translateX(-50%);gap:15px}.drive-button{min-width:90px;height:57px}.drive-button>span{font-size:9px}.drive-button svg{width:16px;height:16px}.drive-button small{display:none}.drive-hint{width:65px}.drive-hint span{font-size:5px}.drive-hint svg{width:17px;height:17px}.toast{top:34%;font-size:10px;padding:10px 15px}.toast strong{font-size:16px}.toast small{font-size:7px}.dialog{padding:25px;max-width:390px}.dialog-icon{font-size:25px;margin-bottom:15px}.dialog h2{font-size:29px;margin:10px 0}.dialog p{font-size:11px;margin-bottom:16px}.dialog .primary-button{margin-top:18px}.result-score{margin:10px 0 16px}.result-score b{font-size:42px}.result-grid{padding-top:13px}.result-grid b{font-size:19px}.personal-best{margin-top:14px}.results-dialog .text-button{margin-top:14px}.vignette{background:linear-gradient(90deg,rgba(245,244,221,.9),rgba(245,244,221,.3) 40%,transparent 70%)}}

/* A choice of real circuits; the launch button stays outside the scrolling menu. */
.welcome{display:flex;flex-direction:column;max-height:calc(100dvh - 166px)}
.welcome-content{min-height:0;overflow:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#a5b299 transparent;padding:4px 5px 0 0}
.welcome>.primary-button,.welcome>.start-note{flex-shrink:0}
.ride-menu-button{display:flex;align-items:center;width:100%;gap:11px;padding:12px 13px;margin:0 0 13px;text-align:left;background:#fffaf0eb;border:1px solid #36564035;border-radius:10px;min-height:69px}
.ride-menu-button:hover{background:#fffdf5;border-color:var(--ride-color,#eb6948)}
.ride-menu-icon{display:grid;place-items:center;width:35px;height:38px;color:var(--ride-color,#eb6948)}
.ride-menu-icon svg{width:32px;height:32px;stroke-width:2}
.ride-menu-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}
.ride-menu-copy small{font-size:6.8px;color:#75816c;letter-spacing:1px;font-weight:600}
.ride-menu-copy b{font-size:14px;line-height:1.2;font-weight:600}
.ride-menu-copy>span{font-size:9px;color:#7a876f}
.ride-menu-arrow{font-size:22px;color:var(--ride-color,#eb6948)}
.track-card #track-title{font-family:Georgia,'Times New Roman',serif;font-size:inherit;color:var(--ink)}
.track-card h2{gap:10px;margin-bottom:11px}
.track-description{font-size:10px;line-height:1.65;color:#7e8b76;margin:0 0 19px}
.rides-dialog{max-width:940px;padding:30px;text-align:left;display:flex;flex-direction:column;height:min(760px,calc(100dvh - 48px));overflow:hidden}
.rides-dialog-header{flex-shrink:0}
.rides-dialog .eyebrow{justify-content:flex-start;margin-right:25px}
.rides-dialog h2{margin-bottom:12px;font-size:40px}
.rides-dialog-header>p{max-width:640px;margin-bottom:18px}
.rides-dialog .close-button{height:40px;width:40px;top:11px;right:12px}
.ride-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;grid-auto-rows:max-content;align-items:stretch;align-content:start;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#9fae95 transparent;padding:5px 7px 7px 5px;margin:0 -7px 0 -5px}
.ride-option{position:relative;display:flex;flex-direction:column;text-align:left;border:1px solid #d7ddc9;border-radius:12px;padding:0;background:#f6f5e9;min-width:0;overflow:hidden;color:#294b3d;touch-action:pan-y}
.ride-option:hover{background:#fffdf5;border-color:var(--route-color)}
.ride-option.selected{border:2px solid var(--route-color);background:#fffdf5;box-shadow:0 4px 18px #243d3610}
.ride-option-map{display:block;width:100%;height:112px;background:linear-gradient(160deg,#e2eddc,#cfdfd6);flex-shrink:0;color:var(--route-color)}
.ride-option[data-theme="night"] .ride-option-map{background:radial-gradient(ellipse at 70% 20%,#4b577c,#192c48)}
.ride-option[data-theme="sunset"] .ride-option-map{background:linear-gradient(145deg,#f0d5b5,#dcaf8c)}
.ride-option[data-ride="tidal"] .ride-option-map{background:linear-gradient(145deg,#c3e9e3,#a8d8dc)}
.ride-option-map path{stroke:currentColor;stroke-width:4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ride-option-copy{display:flex;flex-direction:column;gap:8px;padding:16px;flex:1;width:100%}
.ride-option-intensity{color:var(--route-color);font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px}
.ride-option-badges{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:17px}
.ride-option-new{padding:4px 6px;border-radius:4px;background:#e6eddc;color:#3c6449;font-size:7px;letter-spacing:1px;font-weight:700}
.ride-option-copy strong{font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:400;letter-spacing:-.5px}
.ride-option-description{font-size:11px;color:#77886f;line-height:1.65;flex:1}
.ride-option-features{display:flex;flex-wrap:wrap;gap:4px;margin:2px 0}
.ride-option-features>span{font-size:8px;line-height:1.25;padding:4px 6px;border:1px solid #d7ddc9;border-radius:5px;color:#526c56;background:#fff9ec}
.ride-option-stats{font-size:10px;color:#49694d;margin-top:3px}
.ride-option-action{display:block;margin-top:7px;padding-top:12px;border-top:1px solid #d7ddc9;font-size:10px;font-weight:600;color:var(--route-color)}
.rides-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:12px;padding-top:9px;border-top:1px solid #d7ddc9;color:#78866d;font-size:10px;line-height:1.5;flex-shrink:0}
.rides-dialog-footer .text-button{padding:10px 12px;min-height:40px}
@media(max-width:760px){
  .header{gap:8px}.brand>span{font-size:14px;letter-spacing:1.4px}
  .welcome{left:24px;right:24px;width:auto;bottom:max(60px,calc(env(safe-area-inset-bottom) + 30px));max-height:calc(100dvh - 152px)}
  .welcome h1{font-size:57px;margin:15px 0 13px}.welcome .intro{margin-bottom:14px;font-size:11px}.welcome .eyebrow{font-size:6.5px}
  .welcome-content{padding-right:3px}.welcome .mode-picker{margin-bottom:12px}
  .ride-menu-button{padding:10px 12px;min-height:65px;margin-bottom:11px}.ride-menu-copy b{font-size:14px}.ride-menu-copy small{font-size:7px}
  body[data-phase="menu"] .track-card,body[data-phase="loading"] .track-card{display:none}
  .rides-dialog{padding:26px 20px 16px;max-width:480px;height:min(790px,calc(100dvh - 32px))}.rides-dialog h2{font-size:32px;margin-top:12px}.rides-dialog-header>p{font-size:11px;margin-bottom:14px;line-height:1.6}
  .ride-options{grid-template-columns:1fr;gap:9px}.ride-option{flex-direction:row;align-items:stretch;min-height:123px}.ride-option-map{width:104px;height:auto;min-height:123px}
  .ride-option-copy{padding:11px 12px;gap:5px}.ride-option-copy strong{font-size:23px}.ride-option-description{font-size:10px;line-height:1.45}.ride-option-intensity{font-size:7px}.ride-option-stats{font-size:9px;margin:0}.ride-option-action{font-size:9px;margin:2px 0 0;padding:6px 0 0}
  .rides-dialog-footer{font-size:9px;margin-top:11px}
}
@media(max-width:390px){.header{padding-left:14px;padding-right:14px}.utilities{gap:3px}.icon-button{width:30px;height:32px}.brand{gap:6px}.brand>span{font-size:12px;letter-spacing:1px}.brand svg{width:25px}.brand small{letter-spacing:1px;font-size:5px}.welcome h1{font-size:49px}.ride-option-map{width:84px}.rides-dialog{padding-left:15px;padding-right:15px}}
@media(orientation:landscape) and (max-height:600px){
  body .welcome{top:72px;bottom:24px;left:30px;width:292px;right:auto;max-height:none;transform:none}
  body .welcome h1{font-size:37px;line-height:1;margin:5px 0 9px;letter-spacing:-1.7px}body .welcome h1 br{display:none}body .welcome h1 em::before{content:' '}
  .welcome .eyebrow,.welcome .intro,.welcome .start-note{display:none}.welcome #learning-menu{margin:0 0 7px}.welcome .gl-menu-summary{margin:0;height:33px}
  .ride-menu-button{min-height:58px;padding:7px 10px;margin-bottom:8px;gap:9px}.ride-menu-copy{gap:3px}.ride-menu-copy b{font-size:12px}.ride-menu-copy small{font-size:6px}.ride-menu-copy>span{font-size:8px}.ride-menu-icon{height:32px;width:30px}.ride-menu-icon svg{width:28px;height:28px}
  .welcome .mode{padding:8px 7px}.welcome .mode-picker{margin-bottom:9px}.welcome>.primary-button{padding:12px 16px;min-height:43px}
  .rides-dialog{max-width:890px;padding:18px 22px 10px;height:calc(100dvh - 32px)}.rides-dialog .eyebrow{font-size:6px}.rides-dialog h2{font-size:29px;margin:9px 0}.rides-dialog-header>p{font-size:10px;line-height:1.5;margin-bottom:10px}
  .ride-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.ride-option{flex-direction:column;min-height:0}.ride-option-map{width:100%;height:64px;min-height:0}.ride-option-copy{padding:10px;gap:5px}.ride-option-copy strong{font-size:21px}.ride-option-description{font-size:9px;line-height:1.45}.ride-option-action{padding-top:7px;margin-top:3px;font-size:9px}.ride-option-stats{font-size:8px}.rides-dialog-footer{margin-top:7px;font-size:9px}.rides-dialog-footer .text-button{min-height:32px;padding:7px 10px}
  .track-description{font-size:9px;line-height:1.5;margin-bottom:13px}
}
@media(orientation:landscape) and (max-height:440px) and (max-width:760px){body:not([data-phase="menu"]) #fullscreen,body:not([data-phase="menu"]) #help{display:none}.ride-hud{left:47%}.rides-dialog-header>p{display:none}.rides-dialog{padding-top:18px}.ride-option-map{height:53px}.ride-option-description{min-height:27px}}

.welcome .mode{width:calc((100% - 8px)/2);min-width:0}
@media(orientation:landscape) and (max-height:600px){body[data-phase="menu"] .map-panel,body[data-phase="loading"] .map-panel{display:none}}

/* Moonlight stays readable while the cards retain their familiar warm surfaces. */
body[data-theme="night"] .vignette{background:linear-gradient(90deg,#111e39ed,#111e3960 40%,transparent 70%),linear-gradient(0deg,#101c3550,transparent 25%)}
body[data-theme="night"] .brand,body[data-theme="night"] .park-status,body[data-theme="night"] .welcome-content>h1,body[data-theme="night"] .welcome-content>.eyebrow{color:#f6eedc}
body[data-theme="night"] .welcome-content h1 em{color:#bfc5ff}
body[data-theme="night"] .welcome-content>.intro,body[data-theme="night"] .start-note,body[data-theme="night"] .menu-footer{color:#c3cce0}
body[data-theme="night"] .drive-hint{color:#f1e8d1;text-shadow:0 1px 5px #101f39}
body[data-theme="night"] .mode{background:#fffaf0dc}
@media(max-width:760px){body[data-theme="night"] .vignette{background:linear-gradient(0deg,#111e39f2,#111e39c9 48%,#111e3910 90%)}}
@media(orientation:landscape) and (max-height:600px){body[data-theme="night"] .vignette{background:linear-gradient(90deg,#111e39ed,#111e3960 40%,transparent 70%)}}
