@font-face{font-family:Fredoka;src:url(/fonts/fredoka-bold.ttf)format("truetype");font-weight:700;font-display:swap}@font-face{font-family:Instrument;src:url(/fonts/instrument-sans.woff2)format("woff2");font-weight:400 700;font-display:swap}:root{color:#151618;font-synthesis:none;--ink:#151618;--paper:#f7f5f0;--yellow:#e9e26a;--shadow:0 12px 35px #15161829;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#a6dfdb;font-family:Instrument,sans-serif}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button,select,input{outline-offset:4px}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #2851a3}button:disabled{opacity:.5;cursor:wait}button svg{flex:none;width:24px;height:24px}button:hover{filter:brightness(1.035)}button:active{transform:translateY(2px)}::selection{background:var(--yellow);color:var(--ink)}::-webkit-scrollbar{width:7px}::-webkit-scrollbar-thumb{background:#737374;border-radius:8px}#game{touch-action:none;width:100%;height:100%;display:block;position:fixed;inset:0}#ui{pointer-events:none;position:fixed;inset:0}#ui button,#ui input,#ui select,#ui label{pointer-events:auto}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2{letter-spacing:-.025em;text-wrap:balance;font-family:Fredoka,sans-serif;font-weight:700}h2{font-size:44px;line-height:1.08}button{border:0}.menu-screen{pointer-events:none;height:100%}.brand{position:absolute;top:5vh;left:5vw;transform:rotate(-5deg)}.brand h1{letter-spacing:-.025em;color:var(--paper);text-shadow:0 4px #151618,0 9px 22px #15161850;-webkit-text-stroke:1px #151618;font-size:clamp(54px,6.7vw,96px);line-height:.78}.brand h1>span{color:var(--yellow);font-size:1.23em;display:block}.brand-spark{vertical-align:top;-webkit-text-stroke:0;margin-left:.08em;font-size:.38em}.brand p{background:var(--ink);color:var(--paper);border-radius:8px;margin-top:22px;padding:8px 14px;font-size:15px;font-weight:600;display:inline-block;transform:rotate(5deg)}.scene-caption{background:var(--paper);border-radius:12px;padding:12px 18px;font-size:13px;font-weight:600;position:absolute;bottom:32px;left:5vw}.setup{pointer-events:auto;background:var(--paper);width:min(440px,43vw);max-height:95dvh;box-shadow:var(--shadow);border-radius:24px;padding:28px;position:absolute;top:50%;right:3vw;overflow:auto;transform:translateY(-50%)}.setup-intro{color:#535456;margin:8px 0 24px;font-size:14px}.setup fieldset{border:0;min-width:0;margin:0 0 20px;padding:0}.setup legend{margin-bottom:10px;font-size:14px;font-weight:700}.course-option{text-align:left;background:0 0;border-radius:12px;align-items:center;gap:14px;width:100%;margin-bottom:5px;padding:9px 12px 9px 8px;transition:background .16s,transform .16s;display:flex}.course-map{color:#151618;flex:none;width:59px;height:54px}.course-option strong{font-family:Fredoka,sans-serif;font-size:20px;line-height:1.1;display:block}.course-option small{color:#535456;margin-top:4px;font-size:11px;line-height:1.4;display:block}.course-check{visibility:hidden;margin-left:auto;font-size:20px;font-weight:700}.selected .course-check{visibility:visible}.racers{gap:8px;display:flex}.racer{background:#eeece6;border-radius:12px;flex-direction:column;align-items:center;gap:7px;width:25%;padding:8px 2px;display:flex;box-shadow:inset 0 0 0 2px #0000}.racer.selected{background:#e9e26a;box-shadow:inset 0 0 0 2px #151618}.racer-helmet{background:var(--racer);color:#fff;border-radius:16px 16px 12px 12px;place-items:center;width:38px;height:38px;font-family:Fredoka;font-size:25px;display:grid;box-shadow:inset 0 -5px #0002}.racer-picker #racer-tag{color:#535456;min-height:15px;margin-top:7px;font-size:11px}.assist-options{gap:12px;margin-bottom:20px;display:flex}.assist-options label{align-items:flex-start;gap:7px;width:50%;font-size:12px;font-weight:700;display:flex}.assist-options small{color:#535456;margin-top:3px;font-size:10px;font-weight:400;line-height:1.4;display:block}input[type=checkbox]{accent-color:#151618;flex:none;width:18px;height:18px;margin:0}.primary{background:var(--yellow);color:#151618;border-radius:12px;justify-content:center;align-items:center;gap:14px;width:100%;min-height:54px;padding:15px 22px;font-family:Fredoka,sans-serif;font-size:25px;transition:filter .15s,transform .15s;display:flex}.start-race{box-shadow:0 6px 16px #1516182a}.setup-footer{justify-content:space-between;align-items:center;margin-top:8px;display:flex}.text-button{background:0 0;align-items:center;gap:7px;min-height:44px;padding:8px 0;font-size:12px;font-weight:600;display:inline-flex}.text-button svg{width:19px;height:19px}.quality-label{align-items:center;gap:5px;font-size:11px;display:flex}select{color:var(--ink);background:#eeece6;border:0;border-radius:7px;min-height:40px;padding:8px 5px;font-size:11px}.keyboard-help{color:#535456;text-align:center;margin-top:5px;font-size:9px;line-height:1.5}kbd{background:#eeece6;border-radius:3px;margin:0 1px;padding:0 3px;font-family:inherit;font-size:10px;display:inline-block}.race-hud{position:absolute;inset:0}.race-top{top:max(20px,env(safe-area-inset-top));left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));align-items:start;gap:20px;display:flex;position:absolute}.position{background:var(--yellow);box-shadow:var(--shadow);border-radius:16px;flex-direction:column;align-items:center;padding:10px 22px;display:flex}.position b{font-family:Fredoka;font-size:48px;line-height:1}.position b span{font-size:25px}.position small{letter-spacing:.14em;margin-top:3px;font-size:9px;font-weight:700}.lap-time{background:var(--paper);box-shadow:var(--shadow);font-variant-numeric:tabular-nums;border-radius:12px;flex-direction:column;gap:6px;padding:12px 18px;display:flex}.lap-time strong{font-size:12px}.lap-time strong span{margin-left:12px}.lap-time time{font-family:Fredoka;font-size:25px}.race-tools{gap:8px;margin-left:auto;display:flex}.icon-button{background:var(--paper);width:48px;height:48px;box-shadow:var(--shadow);border-radius:12px;place-items:center;display:grid}#zone-name{color:var(--paper);text-shadow:0 2px 6px #151618;background:#151618d9;border-radius:9px;padding:9px 16px;font-size:14px;font-weight:700;position:absolute;top:29px;left:50%;transform:translate(-50%)}#zone-name:empty{display:none}#minimap{opacity:.92;width:160px;height:160px;position:absolute;top:95px;right:24px}.speedometer{background:var(--paper);width:142px;box-shadow:var(--shadow);border-radius:14px;padding:12px 18px;position:absolute;bottom:30px;left:28px}.speedometer strong{font-variant-numeric:tabular-nums;font-family:Fredoka;font-size:40px}.speedometer>span{margin-left:6px;font-size:10px;font-weight:700}.boost-meter{background:#d8d6ce;border-radius:4px;height:8px;margin:5px 0;overflow:hidden}.boost-meter div{transform-origin:0;background:#151618;width:100%;height:100%;transition:transform .1s linear;transform:scaleX(1)}.speedometer small{align-items:center;gap:3px;font-size:9px;font-weight:700;display:flex}.speedometer small svg{width:12px;height:12px}.recover-button{background:var(--paper);border-radius:10px;align-items:center;gap:7px;min-height:44px;padding:10px 14px;font-size:11px;font-weight:700;display:flex;position:absolute;bottom:28px;right:24px}.recover-button svg{width:16px;height:16px}.touch-controls{display:none}#countdown{text-align:center;width:100%;color:var(--yellow);-webkit-text-stroke:2px #151618;text-shadow:0 7px 15px #1516184d;font-family:Fredoka;font-size:100px;position:absolute;top:38%}.overlay{pointer-events:auto;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#151618a6;place-items:center;padding:20px;display:grid;position:absolute;inset:0;overflow:auto}.dialog{background:var(--paper);text-align:center;border-radius:24px;width:min(440px,100%);padding:38px;box-shadow:0 24px 64px #15161855}.dialog h2{font-size:42px}.dialog>p{color:#535456;margin:15px 0 25px;font-size:14px}.dialog .primary{margin:14px 0}.secondary{background:#eeece6;border-radius:12px;width:100%;min-height:50px;padding:12px 18px;font-size:14px;font-weight:700}.dialog>.text-button{margin:10px auto}.dialog .pause-help{margin:16px 0 0;font-size:11px;line-height:1.8}.finish-flag svg{width:48px;height:48px;transform:rotate(12deg)}.result-stats{justify-content:center;gap:35px;margin:25px 0;display:flex}.result-stats>div{flex-direction:column;gap:5px;display:flex}.result-stats strong{font-family:Fredoka;font-size:38px}.result-stats strong span{font-size:23px}.result-stats div>span{letter-spacing:.08em;font-size:10px;font-weight:700}.loading-screen{background:var(--paper);text-align:center;pointer-events:auto;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:24px;display:flex;position:absolute;inset:0}.loading-screen h2{font-size:36px}.loading-screen .primary{width:auto}.loading-wheel{border:8px solid #d8d6ce;border-top-color:#151618;border-radius:50%;width:50px;height:50px;animation:1s linear infinite spin}#toast{background:var(--ink);color:var(--paper);text-align:center;max-width:calc(100% - 40px);box-shadow:var(--shadow);border-radius:12px;padding:12px 20px;font-size:14px;position:absolute;bottom:160px;left:50%;transform:translate(-50%)}@keyframes spin{to{transform:rotate(360deg)}}.control-settings{justify-content:space-between;align-items:center;gap:8px;margin:-5px 0 14px;font-size:11px;display:flex}.control-settings label{align-items:center;gap:5px;display:flex}.control-settings input{accent-color:#151618;width:65px}.touch-coach{display:none}.steer-pad{color:#151618;touch-action:none;pointer-events:auto;width:145px;height:90px;box-shadow:var(--shadow);background:#f7f5f0ca;border:2px solid #f7f5f0;border-radius:45px;justify-content:space-between;align-items:center;padding:12px;display:flex;position:relative}.steer-pad svg{width:20px;height:20px}.steer-knob{background:var(--yellow);border-radius:50%;place-items:center;width:56px;height:56px;display:grid;position:absolute;top:calc(50% - 28px);left:calc(50% - 28px);box-shadow:0 3px 10px #15161840}.steer-knob:after{content:"";border:3px solid #151618;border-radius:50%;width:22px;height:22px}.steering-controls{gap:8px;display:flex}.touch-controls button{touch-action:none;-webkit-user-select:none;user-select:none;box-shadow:0 5px 15px #15161830}.touch-controls button:active,.touch-controls button.pressed{background:var(--yellow)}@media (pointer:coarse),(width<=760px),(orientation:landscape) and (height<=520px){.touch-controls{bottom:max(22px,env(safe-area-inset-bottom));left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));justify-content:space-between;align-items:end;gap:14px;display:flex;position:absolute}.steering-controls button{background:#f7f5f0ed;border-radius:16px;place-items:center;width:66px;height:76px;display:grid}.pedal-controls{align-items:end;gap:8px;display:flex}.pedal-controls button{background:#f7f5f0ee;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:54px;height:62px;display:flex}.pedal-controls button span{font-size:10px;font-weight:700}.pedal-controls .boost-button{background:var(--yellow);border-radius:22px;width:78px;height:86px}.pedal-controls .boost-button svg{width:32px;height:32px}.speedometer{width:120px;padding:6px 12px;bottom:134px;left:24px}.speedometer strong{font-size:29px}.speedometer small{font-size:8px}.recover-button{bottom:134px;right:24px}.touch-coach{text-align:center;color:#fff;text-shadow:0 1px 3px #151618;width:100%;font-size:9px;display:block;position:absolute;bottom:4px}.keyboard-help{display:none}#toast{bottom:240px}}@media (width<=760px){.brand{top:3vh;left:7vw}.brand h1{font-size:clamp(40px,9vw,64px)}.brand p{margin-top:12px;padding:5px 9px;font-size:10px}.setup{border-radius:24px 24px 0 0;width:100%;max-height:70dvh;padding:22px 24px 18px;top:auto;bottom:0;right:0;transform:none;box-shadow:0 -8px 30px #1516181f}.setup h2{font-size:32px}.setup-intro{margin:5px 0 17px;font-size:12px}.setup fieldset{margin-bottom:14px}.setup legend{margin-bottom:5px;font-size:12px}.course-option{gap:10px;padding:6px 9px 6px 5px}.course-map{width:46px;height:43px}.course-option strong{font-size:18px}.course-option small{font-size:10px}.scene-caption{display:none}.racer{flex-direction:row;justify-content:center;gap:5px;padding:6px 2px}.racer-helmet{border-radius:11px 11px 8px 8px;width:27px;height:29px;font-size:20px}.racer strong{font-size:11px}.assist-options{margin-bottom:15px}.setup-footer{margin-top:4px}.race-top{top:max(12px,env(safe-area-inset-top));gap:9px;left:12px;right:12px}.position{border-radius:12px;padding:8px 15px}.position b{font-size:36px}.position b span{font-size:20px}.lap-time{gap:3px;padding:8px 12px}.lap-time time{font-size:21px}.lap-time strong{font-size:10px}.icon-button{width:44px;height:44px}.race-tools{gap:5px}#minimap{width:105px;height:105px;top:82px;right:12px}#zone-name{max-width:calc(100% - 135px);padding:7px 10px;font-size:11px;top:99px;left:14px;transform:none}.touch-controls{gap:10px;left:12px;right:12px}.steer-pad{width:128px;height:82px}.pedal-controls{gap:5px}.pedal-controls button{width:46px;height:60px}.pedal-controls .boost-button{width:68px;height:82px}.steering-controls{gap:5px}.steering-controls button{width:58px}.dialog{padding:26px}.dialog h2{font-size:36px}.recover-button{padding:8px 10px;font-size:10px;right:14px}.speedometer{left:14px}.control-settings{font-size:10px}}@media (height<=700px) and (width>=761px){.setup{max-height:96dvh;padding:20px 24px}.setup h2{font-size:34px}.setup-intro{margin:4px 0 14px}.setup fieldset{margin-bottom:12px}.course-option{padding-top:5px;padding-bottom:5px}.racer{padding:5px 2px}.assist-options{margin-bottom:12px}.primary{padding:11px 20px;font-size:22px}.control-settings{margin-bottom:8px}}@media (orientation:landscape) and (height<=520px){.setup{border-radius:20px 0 0 20px;width:48%;max-height:100dvh;padding:18px;top:0;bottom:0;right:0;transform:none}.brand{top:9vh;left:5vw}.brand h1{font-size:54px}.setup h2{font-size:29px}.course-option small{font-size:9px}.setup-intro{margin-bottom:10px}.race-top{top:10px}.position b{font-size:28px}.lap-time time{font-size:18px}#minimap{width:92px;height:92px;top:65px}#zone-name{top:18px;left:50%;transform:translate(-50%)}.touch-controls{bottom:14px}.speedometer{width:105px;padding:4px 10px;bottom:16px;left:calc(50% - 60px)}.speedometer strong{font-size:24px}.recover-button{bottom:110px}.touch-coach{font-size:8px;bottom:1px}.dialog{max-height:95dvh;padding:22px;overflow:auto}.dialog h2{font-size:30px}.dialog>p{margin:8px 0 12px}.result-stats{margin:12px 0}.finish-flag{display:none}#toast{bottom:120px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.brand-spark{width:.36em;height:.36em;display:inline-block}.racer-helmet,.racer[data-racer=robby] .racer-helmet{color:#151618}.racer{min-height:46px}.assist-options label{align-items:center;min-height:44px}.quality-label select,.control-settings select,.control-settings input{min-height:44px}.results-screen:not([hidden]) .finish-flag{animation:.7s cubic-bezier(.16,1,.3,1) both finish-wave}@keyframes finish-wave{0%{filter:drop-shadow(0 0 #15161800);transform:rotate(-20deg)scale(.8)}to{filter:drop-shadow(0 8px 6px #15161820);transform:rotate(0)scale(1)}}.touch-controls button.held{background:#e9e26a;transform:translateY(2px);box-shadow:0 2px 5px #15161830}.steer-pad:active .steer-knob{background:#e9e26a}.brand h1{-webkit-text-stroke:0;text-shadow:0 4px #151618,0 9px 22px #15161850}.driving-options{margin:0 0 12px}.driving-options summary{cursor:pointer;pointer-events:auto;justify-content:space-between;align-items:center;gap:8px;min-height:44px;font-size:12px;font-weight:700;list-style:none;display:flex}.driving-options summary::-webkit-details-marker{display:none}.driving-options summary:after{content:"+";font-size:22px;font-weight:400}.driving-options[open] summary:after{content:"−"}.driving-options summary span{color:#535456;margin-left:auto;font-size:10px;font-weight:400}.driving-options .assist-options{margin-top:8px}.driving-options summary:focus-visible{outline-offset:4px;border-radius:5px;outline:3px solid #2851a3}.launch-footer{background:var(--paper);z-index:2;margin-top:-8px;padding-top:8px;padding-bottom:1px;position:sticky;bottom:-28px}@media (width<=760px){.setup-intro,#racer-tag{display:none}.setup h2{margin-bottom:16px}.setup .racer-picker{margin-bottom:3px}.driving-options{margin-bottom:6px}.launch-footer{padding-bottom:0;bottom:-18px}.setup-footer{margin-top:2px}.setup{padding-top:20px}.driving-options summary{font-size:11px}.driving-options summary span{font-size:9px}}@media (orientation:landscape) and (height<=520px){.launch-footer{bottom:-18px}.setup-intro,#racer-tag{display:none}.setup h2{margin-bottom:12px}.setup .racer-picker{margin-bottom:3px}}.tree-badge{background:var(--paper);border:8px solid var(--yellow);border-radius:50%;place-items:center;width:94px;height:94px;display:grid;position:absolute;top:40px;right:-114px;transform:rotate(13deg);box-shadow:0 5px #151618,0 10px 22px #15161833}.tree-badge img{object-fit:contain;width:86%;height:86%;display:block}.race-tick{background:var(--yellow);border-radius:3px;height:6px;position:absolute;right:calc(100% + 14px);transform:rotate(-5deg)}.tick-one{width:22px;top:17px}.tick-two{width:34px;top:31px}.tick-three{width:17px;top:45px}@media (width<=1100px){.tree-badge{border-width:6px;width:76px;height:76px;top:24px;right:-91px}.race-tick{height:4px;right:calc(100% + 9px)}.tick-one{width:14px;top:12px}.tick-two{width:23px;top:24px}.tick-three{width:11px;top:36px}}@media (width<=760px){.tree-badge{border-width:5px;width:57px;height:57px;top:9px;right:-77px}.race-tick{height:3px}.tick-one{width:11px;top:8px}.tick-two{width:18px;top:18px}.tick-three{width:8px;top:28px}}#toast{pointer-events:none;max-width:320px;padding:8px 14px;font-size:13px;top:80px;bottom:auto}@media (pointer:coarse),(width<=760px),(orientation:landscape) and (height<=520px){.touch-coach{bottom:env(safe-area-inset-bottom,0px);background:var(--ink);color:var(--paper);text-shadow:none;white-space:nowrap;margin:0;font-size:13px;line-height:22px}.touch-controls{bottom:calc(env(safe-area-inset-bottom,0px) + 28px)}}@media (width<=760px) and (orientation:portrait){#toast{max-width:230px;top:145px;left:14px;transform:none}}@media (orientation:landscape) and (height<=520px){.speedometer{bottom:calc(env(safe-area-inset-bottom,0px) + 28px)}}.race-hud,.race-hud *,#game{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}.race-hud{touch-action:none}.race-hud .touch-coach,.race-hud #zone-name{pointer-events:none}.race-mode .mode-buttons{gap:8px;display:flex}.mode-buttons button{min-height:52px;color:var(--ink);background:#eeece6;border-radius:12px;flex:1;padding:8px 12px;font-family:Fredoka,sans-serif;font-size:20px}.mode-buttons button[aria-pressed=true]{background:var(--yellow);box-shadow:inset 0 0 0 2px var(--ink)}.mode-buttons small{margin-top:2px;font-family:Instrument,sans-serif;font-size:12px;display:block}.race-mode p{color:#535456;margin:8px 0 0;font-size:12px}.course-progress{border-bottom:1px solid #d8d6ce;margin:0 0 12px;padding:4px 0 16px}.course-progress strong{font-family:Fredoka,sans-serif;font-size:18px}.course-progress p{margin:5px 0;font-size:13px}.course-progress small{color:#535456;font-size:12px}.race-feedback{pointer-events:none;max-width:260px;position:absolute;top:150px;left:24px}.race-feedback>span:not(:empty),#drift-feedback{background:var(--ink);color:var(--paper);border-radius:8px;margin-bottom:6px;padding:8px 12px;font-size:12px;display:block}.drift-track{background:#535456;border-radius:3px;height:5px;margin-top:6px;overflow:hidden}.drift-track i{background:var(--yellow);transform-origin:0;height:100%;display:block;transform:scaleX(0)}#result-mastery{text-align:left;border-top:1px solid #d8d6ce;padding:12px 0}#result-mastery h3{margin:0 0 5px;font:24px Fredoka,sans-serif}#result-mastery p{margin:5px 0 12px;font-size:14px}.next-challenge{color:#535456}.dialog{max-height:90dvh;overflow:auto}@media (width<=760px){.race-feedback{max-width:230px;top:143px;left:14px}.mode-buttons button{font-size:18px}.race-mode p{font-size:12px}.course-progress{margin-bottom:10px;padding-bottom:10px}.course-progress strong{font-size:16px}.course-progress p{font-size:12px}.setup .race-mode{margin-bottom:14px}}@media (orientation:landscape) and (height<=520px){.race-feedback{max-width:225px;top:78px;left:14px}}.skill-list summary{cursor:pointer;pointer-events:auto;align-items:center;min-height:44px;font-size:13px;font-weight:700;display:flex}.skill-list summary:after{content:"+";margin-left:auto}.skill-list[open] summary:after{content:"−"}.skill-list ul{margin:0;padding:0;list-style:none}.skill-list li{margin:0 0 10px}.skill-list li strong{font-size:14px;display:block}.skill-list li span{color:#535456;font-size:12px}.skill-list summary:focus-visible{outline-offset:2px;outline:3px solid #2851a3}.race-feedback #toast{max-width:none;box-shadow:none;text-align:left;border-radius:8px;margin:0 0 6px;padding:8px 12px;font-size:12px;position:static;inset:auto;transform:none}html.race-gestures-locked,html.race-gestures-locked body,html.race-gestures-locked body *{overscroll-behavior:none;touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}#launch-choice{color:var(--ink);text-align:center;margin:0 0 8px;font-size:12px;font-weight:600;line-height:1.35}.pause-help{font-size:13px!important;line-height:1.65!important}@media (pointer:coarse),(width<=900px){.manual-gas .pedal-controls{grid-template-columns:repeat(2,54px);gap:5px;display:grid}.manual-gas .pedal-controls button,.manual-gas .pedal-controls .boost-button{border-radius:14px;width:54px;height:54px}.manual-gas .speedometer,.manual-gas .recover-button{bottom:calc(env(safe-area-inset-bottom,0px) + 162px)}}@media (width<=360px){.steer-pad{width:106px}.pedal-controls button{width:44px}.pedal-controls .boost-button{width:60px}.touch-controls{gap:8px}.pedal-controls{gap:4px}.touch-coach{font-size:11px!important}.race-top{gap:5px}.position{padding-left:10px;padding-right:10px}.lap-time{padding-left:9px;padding-right:9px}}@media (width<=760px) and (height<=650px) and (orientation:portrait){.brand{top:12px;left:22px}.brand h1{font-size:32px}.brand p{display:none}.tree-badge{width:44px;height:44px;top:3px;right:-59px}.setup{max-height:82dvh;padding:16px 18px}.setup h2{margin-bottom:10px;font-size:28px}.setup fieldset{margin-bottom:10px}.course-option{min-height:44px;padding-top:5px;padding-bottom:5px}.course-option small{display:none}.course-option.selected small{font-size:11px;display:block}.course-option strong{font-size:17px}.course-map{width:38px;height:32px}.launch-footer{bottom:-16px}.launch-footer .primary{padding:12px 18px;font-size:22px}}@media (orientation:landscape) and (height<=520px){.setup h2{margin-bottom:10px}.course-option:not(.selected) small{display:none}.course-option strong{font-size:17px}.course-map{width:40px;height:30px}.setup .course-picker{margin-bottom:10px}.manual-gas .speedometer{bottom:32px}.manual-gas .recover-button{bottom:150px}}.racers{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.racer{gap:2px;width:100%;min-width:0;padding:5px 2px 8px}.racer-portrait{object-fit:contain;pointer-events:none;width:70px;height:70px;display:block}.racer strong{font-size:12px}.racers .racer{flex-direction:column;justify-content:center}.racers .racer strong{white-space:nowrap;max-width:100%}.setup-extras>summary{display:none}@media (width<=760px) and (orientation:portrait){.setup{max-height:70dvh;padding:12px 16px max(8px,env(safe-area-inset-bottom));overscroll-behavior:contain}.setup legend{margin-bottom:4px;font-size:12px}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.course-option{gap:6px;height:100%;min-height:48px;margin:0;padding:6px;box-shadow:inset 0 0 0 1px #d8d6ce}.course-map{width:30px;height:30px}.course-option strong{font-size:15px;line-height:1.1}.course-option small,.course-option.selected small,.course-check{display:none}.course-option.selected{box-shadow:inset 0 0 0 2px var(--ink)}.mode-buttons button{min-height:44px;padding:5px 8px;font-size:18px}.mode-buttons small{margin-left:6px;font-size:10px;display:inline}#mode-help,#racer-tag{display:none}.racers{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.racers .racer{gap:0;min-height:58px;padding:3px 1px}.racers .racer strong{white-space:normal;font-size:10px;line-height:1.05}.setup-extras{margin:0}.setup-extras>summary{cursor:pointer;pointer-events:auto;justify-content:space-between;align-items:center;min-height:44px;font-size:12px;font-weight:700;list-style:none;display:flex}.setup-extras>summary::-webkit-details-marker{display:none}.setup-extras>summary:after{content:"+";font-size:20px}.setup-extras[open]>summary:after{content:"−"}.launch-footer{margin:0;padding:0;position:static}#launch-choice{display:none}.launch-footer .primary{min-height:48px;padding:8px 16px;font-size:23px}.setup-footer{margin-top:0}.setup-footer .text-button,.quality-label select{min-height:44px}.setup h2{margin-bottom:4px;font-size:24px}.setup fieldset,.setup .race-mode{margin-bottom:6px}.course-option{min-height:44px}.racers .racer{min-height:54px}.racer-portrait{width:34px;height:34px}}.free-roam .position,.free-roam .lap-time,.free-roam #record-pace,.free-roam [data-control=drift],.free-roam #hud-coins{display:none}@media (width<=760px) and (orientation:portrait){.mode-buttons small{display:none}.mode-buttons button{padding:5px 3px;font-size:17px}}button.tree-badge{pointer-events:auto;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;padding:0}.tree-badge img,.tree-badge .race-tick{pointer-events:none}button.tree-badge:focus-visible{outline:3px solid var(--ink);outline-offset:5px}.timmy-notice{color:var(--ink);clip-path:inset(50%);white-space:nowrap;background:#eeece6;border-radius:9px;width:1px;height:1px;margin:-1px;padding:0;font-size:12px;font-weight:700;position:absolute;overflow:hidden}.tree-badge.timmy-active img{object-fit:contain;border-radius:50%;width:100%;height:100%;transform:rotate(-8deg)}.course-option.selected{background:var(--yellow)}.primary{color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink),0 4px 0 var(--ink);border-radius:17px}.primary:active{box-shadow:inset 0 0 0 2px var(--ink),0 1px 0 var(--ink);transform:translateY(3px)}.tree-badge{box-shadow:0 5px 0 var(--ink),0 10px 22px #15161833}.steer-pad{border-color:var(--ink)}.steer-knob{box-shadow:0 3px #15161833}.pedal-controls .boost-button{box-shadow:inset 0 0 0 2px var(--ink),0 3px 0 var(--ink)}.touch-controls button.held{box-shadow:inset 0 0 0 2px var(--ink),0 1px 0 var(--ink)}
