:root{color:#29342f;font-synthesis:none;--paper:#eee8dc;--ink:#29342f;--orange:#ef5536;background:#262c2c;font-family:Arial,Helvetica,sans-serif}*{box-sizing:border-box}body{touch-action:manipulation;overscroll-behavior:none;margin:0;overflow:hidden}.game{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button,input{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline-offset:4px;outline:3px solid #359aca}[hidden]{display:none!important}.game,#stage{position:absolute;inset:0}#stage canvas{width:100%;height:100%;display:block}.options-button{z-index:8;position:fixed;top:22px;right:22px}.options-list{gap:10px;display:grid}.options-list>*{min-height:44px}.options-list>[hidden]{display:none}.options-icons{justify-content:center;gap:14px;display:flex}.options-icons .icon-button{box-shadow:none;background:#e2dccd}.options-icons .icon-button:hover:enabled{background:#fff7e8}.options-icons .icon-button:disabled{opacity:.4}.options-level:first-of-type{margin-top:20px}.options-level+.options-level{margin-top:10px}.new-high-form{gap:10px;display:grid}.new-high-form input{width:100%;color:var(--ink);background:#fffaf0;border:1px solid #7a897780;border-radius:5px;padding:12px 14px;font-size:16px}.new-high-form [hidden]{display:none}#new-high-place{margin-top:0;font-size:16px;font-weight:700}#new-high-error:empty{display:none}.top-scores{text-align:left;margin-top:18px}.top-scores[hidden]{display:none}.top-scores h2{text-align:center;margin:0 0 6px;font-size:15px}.board-tabs{justify-content:center;gap:6px;margin-bottom:6px;display:flex}.board-tabs button{min-height:30px;color:var(--ink);background:0 0;border:1px solid #29342f40;border-radius:15px;padding:0 12px;font-size:13px}.board-tabs button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}.top-scores ol{counter-reset:rank;margin:0;padding:0;list-style:none}.top-scores li{counter-increment:rank;border-top:1px solid #29342f1f;gap:10px;padding:5px 2px;font-size:15px;display:flex}.top-scores li:before{content:counter(rank);color:#29342f99;font-variant-numeric:tabular-nums;width:1.2em}.top-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.top-stage{font-variant-numeric:tabular-nums;font-weight:700}.splash-loop-back,.splash-secondary{width:100%;min-height:44px;margin-top:10px}.racer-badge{text-align:left;align-items:center;gap:12px;margin-bottom:16px;display:flex}.racer-hand{flex:none;width:62px;height:74px}.racer-hand svg,.racer-hand .hand-sprite{width:100%;height:100%;display:block}.racer-name{margin:0;font-size:19px;font-weight:700}.run-progress{color:#29342fb3;margin:4px 0 0;font-size:14px}#run-continue[hidden],#run-new[hidden]{display:none}.light-switch{z-index:8;perspective:120px;cursor:pointer;background:linear-gradient(#f4eedf,#ddd4bf);border-radius:5px;width:40px;height:62px;padding:0;position:absolute;top:22px;left:22px;box-shadow:0 2px 8px #0005,inset 0 -2px #0000001a}.light-switch[hidden]{display:none}.light-switch:before,.light-switch:after{content:"";background:#b9ae95;border-radius:50%;width:6px;height:6px;position:absolute;left:17px;box-shadow:inset 0 1px 1px #0004}.light-switch:before{top:5px}.light-switch:after{bottom:5px}.switch-lever{background:#c9bfa6;border-radius:3px;width:14px;height:28px;position:absolute;top:17px;left:13px;box-shadow:inset 0 0 0 2px #b3a88d}.switch-lever:after{content:"";transform-origin:bottom;background:linear-gradient(#fffaf0,#e8dfca);border-radius:2px;height:13px;transition:top .12s ease-in,transform .12s ease-in,box-shadow .12s;position:absolute;top:1px;left:2px;right:2px;transform:rotateX(-28deg);box-shadow:0 2px 2px #0004}.light-switch[aria-checked=false] .switch-lever:after{transform-origin:top;top:14px;transform:rotateX(28deg);box-shadow:0 -2px 2px #0004}.light-switch:hover .switch-lever:after{filter:brightness(1.04)}.icon-button{width:44px;height:44px;color:var(--ink);background:#eee8dcdb;border-radius:50%;place-items:center;padding:11px;display:grid;box-shadow:0 2px 8px #263e3220}.icon-button:hover:enabled{background:#fff7e8}.icon-button svg{width:100%;height:100%}.start-lights{background:#253332;border-radius:30px;gap:12px;padding:12px 18px;display:flex;position:absolute;top:26px;left:50%;transform:translate(-50%);box-shadow:0 4px 12px #263e3240}.start-lights i{background:#3b4541;border-radius:50%;width:20px;height:20px;box-shadow:inset 0 2px 4px #0008}.start-lights .lit{background:#ef5536;box-shadow:0 0 12px #ef553680}.start-lights.green i{background:#69bf73;box-shadow:0 0 12px #69bf7380}.finish{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:2;background:#bcc1abbd;place-items:center;padding:24px;display:grid;position:absolute;inset:0}.results-card{background:var(--paper);border-radius:12px;width:min(580px,100%);padding:24px;box-shadow:0 16px 50px #263e3230}.results-flag{width:32px;height:32px;margin:0 auto 20px;display:block}.results-flag svg{width:100%;height:100%}.results-card table{border-collapse:collapse;width:100%}.results-card thead th{text-align:center;padding:0 8px 10px;font-size:12px;font-weight:400}.results-card tbody th{text-align:left;overflow-wrap:anywhere;max-width:140px;font-size:15px;font-weight:600}.results-card tbody th span{vertical-align:middle}.results-card tbody td{font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap;font-size:21px}.results-card tbody th,.results-card tbody td{border-top:1px solid #29342f25;padding:15px 8px}.results-actions{flex-wrap:wrap;gap:10px;margin-top:22px;display:flex}.results-actions>*{flex:120px;min-height:44px}.secondary-button{color:var(--ink);background:0 0;border:1px solid #29342f40;border-radius:5px;justify-content:center;align-items:center;padding:0 14px;font-size:15px;font-weight:600;text-decoration:none;display:inline-flex}.secondary-button:hover{background:#fff7e8}.racer-chip{vertical-align:middle;border-radius:50%;width:10px;height:10px;margin-right:8px;display:inline-block}.has-results .speedometer{visibility:hidden}.has-results #pedal{pointer-events:none}.speedometer{pointer-events:none;width:clamp(125px,13vw,180px);height:auto;position:absolute;bottom:18px}#speedometer{right:176px}#opponent-speedometer{left:176px}.controller-view{z-index:3;width:188px;height:235px;position:absolute;bottom:0}#pedal{touch-action:none;cursor:ns-resize;right:12px}#opponent-controller{pointer-events:none;left:12px}#opponent-controller>svg,#opponent-controller>.hand-sprite{transform:scaleX(-1)}.controller-view svg,.controller-view .hand-sprite{pointer-events:none;width:100%;height:100%;display:block}.hand-sprite{object-fit:contain;pointer-events:none}.hand-cover,.metal-joints,.gesture-up,.gesture-down,.gesture-open{display:none}[data-material=fingerless] .hand-cover,[data-material=metal] .metal-joints,[data-pose=yes] .gesture-up,[data-pose=no] .gesture-down,[data-pose=victory] .gesture-open{display:initial}[data-pose=yes] .gesture-thumb,[data-pose=no] .gesture-thumb,[data-pose=victory] .gesture-fist{display:none}.splash{z-index:4;place-items:center;padding:24px;display:grid;position:absolute;inset:0;overflow-y:auto}.splash-card{text-align:center;background:#eee8dcf0;border-radius:12px;width:min(100%,340px);padding:22px 15px 18px;box-shadow:0 16px 50px #0006}h1{letter-spacing:-1px;margin:0 0 32px;font:900 64px/.9 Impact,Arial Narrow,Arial,sans-serif}h1 span{color:var(--orange);display:block}#name{background:var(--paper);width:100%;color:var(--ink);border:1px solid #7a897780;border-radius:5px;margin-bottom:16px;padding:14px 16px;font-size:16px}.hand-picker{gap:5px;margin-bottom:16px;display:flex}.hand-picker button{background:#eee8dcb0;border:2px solid #0000;border-radius:6px;width:100%;min-width:0;height:76px;padding:3px}.hand-picker button[aria-pressed=true]{background:#d0ddd0;border-color:#359aca}.hand-picker svg,.hand-picker .hand-sprite{width:100%;height:100%;display:block}.start-button{background:var(--orange);color:#fff5e8;border-radius:5px;width:100%;padding:14px;font-weight:600}.start-button:hover:enabled{filter:brightness(1.05)}#message{color:#ad412d;margin:16px 0 0;font-size:13px;line-height:1.5}#message:empty{display:none}dialog{width:min(480px,100% - 36px);max-height:85dvh;color:var(--ink);background:var(--paper);border:0;border-radius:12px;padding:25px;overflow-y:auto;box-shadow:0 20px 60px #0004}dialog::backdrop{background:#18282180}.help-heading{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.help-heading h2{margin:0;font-size:23px}.help-heading button{box-shadow:none;background:0 0}dialog p{margin:12px 0;font-size:14px;line-height:1.6}.you-tag{z-index:2;color:#fff;pointer-events:none;background:#359aca;border-radius:4px;padding:3px 8px;font-size:14px;font-weight:700;position:absolute;transform:translate(-50%,-100%)}.you-tag[hidden]{display:none}.controls{cursor:pointer;width:fit-content;max-width:calc(100% - 36px)}.controls p{margin:0;font-size:16px}.controls p+p{margin-top:10px}.bot-level{align-items:center;gap:10px;margin:16px 0 18px;font-size:14px;display:flex}.bot-level span,.bot-level label{margin-right:auto;font-weight:600}.level-slider{accent-color:#359aca;width:150px;height:44px}.bot-level output{text-align:center;font-variant-numeric:tabular-nums;min-width:44px}.bot-level .icon-button{box-shadow:none;background:#e2dccd}.reset-button{color:var(--paper);background:var(--orange);border-radius:4px;padding:10px 20px}@media (width<=600px){.options-button{top:14px;right:14px}.light-switch{top:14px;left:14px}.icon-button{width:38px;height:38px;padding:9px}.speedometer{width:100px;bottom:155px}#speedometer{right:5px}#opponent-speedometer{left:5px}.controller-view{width:110px;height:165px}#pedal{right:0}#opponent-controller{left:0}.start-lights{top:70px}.finish{padding:70px 18px 165px}.results-card{max-height:calc(100dvh - 235px);padding:18px 12px;overflow-y:auto}.results-card tbody th{font-size:13px}.results-card tbody td{font-size:17px}.results-card tbody th,.results-card tbody td{padding:14px 5px}.results-card thead th{padding:0 4px 9px;font-size:11px}h1{font-size:58px}}@media (height<=440px){.controller-view{width:120px;height:150px}.speedometer{width:110px}#speedometer{right:110px}#opponent-speedometer{left:110px}.splash{padding:14px}h1{margin-bottom:18px;font-size:44px}}.wipeouts{z-index:3;pointer-events:none;flex-direction:column;align-items:center;gap:10px;width:min(92vw,720px);display:flex;position:absolute;top:9%;left:50%;transform:translate(-50%)}.wipeout{text-align:center;text-transform:uppercase;font-family:Impact,Arial Black,Helvetica Neue,Arial,sans-serif;font-style:italic;animation:.5s cubic-bezier(.2,1.6,.4,1) both wipeout-in;transform:skew(-9deg)}.wipeout.leaving{animation:.4s ease-in both wipeout-out}.wipeout p{margin:0}.wipeout-line{letter-spacing:.5px;color:#fff;background:var(--car);text-shadow:2px 2px #141a1a;border:3px solid #141a1a;padding:4px 14px;font-size:clamp(15px,2.4vw,22px);display:inline-block;box-shadow:4px 4px #141a1a}.wipeout-total{justify-content:center;align-items:baseline;gap:12px;line-height:1;display:flex;margin-top:4px!important}.wipeout-total span{color:#ffd23f;-webkit-text-stroke:3px #141a1a;paint-order:stroke fill;text-shadow:5px 5px #141a1a,0 0 24px #ff8a1f88;font-size:clamp(40px,7.5vw,76px)}.wipeout-total b{color:#fff;background:var(--car);border:3px solid #141a1a;padding:0 10px;font-size:clamp(30px,5.2vw,54px);animation:.5s cubic-bezier(.2,1.8,.4,1) .25s both wipeout-mult;box-shadow:4px 4px #141a1a}@keyframes wipeout-in{0%{opacity:0;transform:skew(-9deg)scale(2.6)rotate(-6deg)}60%{opacity:1}to{transform:skew(-9deg)scale(1)rotate(0)}}@keyframes wipeout-mult{0%{transform:scale(0)rotate(-25deg)}to{transform:scale(1)rotate(-4deg)}}@keyframes wipeout-out{to{opacity:0;transform:skew(-9deg)translateY(-30px)scale(.9)}}@media (prefers-reduced-motion:reduce){.wipeout,.wipeout.leaving,.wipeout-total b{animation-duration:10ms}}.key-modes{gap:6px;display:flex}.key-modes button{min-height:36px;padding:0 12px;font-size:14px}.key-modes button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.touch #pedal{pointer-events:none}.speed-pads{z-index:4;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;flex-direction:column;gap:8px;display:flex;position:absolute;bottom:245px;right:10px}.speed-pads[hidden]{display:none}.speed-pads button{color:#fff;touch-action:none;-webkit-tap-highlight-color:transparent;background:#141a1acc;border:2px solid #fff5;border-radius:14px;width:76px;height:64px;padding:10px;box-shadow:0 4px 12px #0006}.speed-pads button svg{stroke-width:2.6px;pointer-events:none;width:100%;height:100%}.speed-pads button.active{background:var(--player,#359aca);border-color:#fff;transform:scale(1.06)}@media (orientation:portrait){.touch.hud #stage{bottom:196px}.touch.hud .speedometer{width:80px;bottom:116px}.touch.hud .controller-view{width:94px;height:116px}.touch.hud #opponent-speedometer{left:18px}.touch.hud #opponent-controller{left:11px}.touch.hud #speedometer{right:106px}.touch.hud #pedal{right:99px}.touch.hud .speed-pads{gap:6px;bottom:8px;right:8px}.touch.hud .speed-pads button{width:80px;height:56px;padding:8px}}@media (orientation:landscape) and (height<=500px){.touch.hud #stage{left:116px;right:204px}.touch.hud .speedometer{width:92px;bottom:132px}.touch.hud .controller-view{width:104px;height:128px}.touch.hud #opponent-speedometer{left:12px}.touch.hud #opponent-controller{left:6px}.touch.hud #speedometer{right:102px}.touch.hud #pedal{right:96px}.touch.hud .speed-pads{gap:8px;bottom:10px;right:8px}.touch.hud .speed-pads button{width:80px;height:60px;padding:9px}}.pad-hint{pointer-events:none;z-index:1;position:absolute;inset:0}.has-results .pad-hint{display:none}.pad-finger{width:46px;animation:3s ease-in-out infinite pad-roll;position:absolute;top:83.3%;left:50%}.pad-finger>svg{transform-origin:15px 4px;fill:#fff;stroke:#141a1a;stroke-width:2.5px;stroke-linejoin:round;filter:drop-shadow(0 3px 4px #0008);width:46px;animation:3s ease-in-out infinite pad-twitch;display:block;transform:translate(-15px,-4px)}.pad-sparkle{width:56px;height:56px;animation:3s linear infinite pad-spark;position:absolute;top:0;left:0;transform:translate(-50%,-50%)}.pad-sparkle svg{stroke:#ffd23f;stroke-width:3px;stroke-linecap:round;width:100%;height:100%}@keyframes pad-roll{0%{opacity:0;top:83.3%}6%{opacity:1}30%{top:83.3%}52%,62%{top:50%}84%{top:16.7%}92%{opacity:1}to{opacity:0;top:16.7%}}@keyframes pad-twitch{0%{transform:translate(-15px,-4px)scale(1.4)}8%{transform:translate(-15px,-4px)scale(1)}12%{transform:translate(-15px,-4px)rotate(-12deg)}16%{transform:translate(-15px,-4px)rotate(10deg)}20%{transform:translate(-15px,-4px)rotate(0)}25%,88%{transform:translate(-15px,-4px)scale(.86)}96%,to{transform:translate(-15px,-4px)scale(1)}}@keyframes pad-spark{0%,22%{opacity:0;transform:translate(-50%,-50%)scale(.3)rotate(0)}26%{opacity:1}36%{opacity:0;transform:translate(-50%,-50%)scale(1.3)rotate(30deg)}37%,82%{opacity:0;transform:translate(-50%,-50%)scale(.3)}86%{opacity:1}96%,to{opacity:0;transform:translate(-50%,-50%)scale(1.4)rotate(-30deg)}}.speed-pads.hinting button:nth-child(3){animation:3s linear infinite pad-lit-slow}.speed-pads.hinting button:nth-child(2){animation:3s linear infinite pad-lit-medium}.speed-pads.hinting button:first-child{animation:3s linear infinite pad-lit-fast}@keyframes pad-lit-slow{0%,23%,46%,to{background:#141a1acc}25%,44%{background:var(--player,#359aca)}}@keyframes pad-lit-medium{0%,44%,70%,to{background:#141a1acc}46%,68%{background:var(--player,#359aca)}}@keyframes pad-lit-fast{0%,68%,95%,to{background:#141a1acc}70%,93%{background:var(--player,#359aca)}}.view-tour{border-top:1px solid #29342f25;gap:10px;margin-top:16px;padding-top:14px;display:grid}.view-tour>div{align-items:center;gap:12px;display:flex}.view-tour p{margin:0!important;font-size:15px!important}.gesture{background:#29342f1f;border-radius:6px;flex:none;width:58px;height:40px;position:relative;overflow:hidden}.gesture i{background:#359acaaa;border:2px solid #fff;border-radius:50%;width:14px;height:14px;margin:-7px;position:absolute;top:50%;left:50%;box-shadow:0 0 0 1px #29342f66}.gesture-turn i{animation:2s ease-in-out infinite alternate g-turn}.gesture-pinch i:first-child{animation:2s ease-in-out infinite alternate g-pinch-a}.gesture-pinch i:nth-child(2){animation:2s ease-in-out infinite alternate g-pinch-b}.gesture-move i:first-child{animation:2s ease-in-out infinite alternate g-move-a}.gesture-move i:nth-child(2){animation:2s ease-in-out infinite alternate g-move-b}@keyframes g-turn{0%{transform:translate(-16px,3px)}50%{transform:translateY(-4px)}to{transform:translate(16px,3px)}}@keyframes g-pinch-a{0%{transform:translate(-5px,4px)}to{transform:translate(-18px,9px)}}@keyframes g-pinch-b{0%{transform:translate(5px,-4px)}to{transform:translate(18px,-9px)}}@keyframes g-move-a{0%{transform:translate(-16px,-7px)}to{transform:translate(4px,-7px)}}@keyframes g-move-b{0%{transform:translate(-4px,7px)}to{transform:translate(16px,7px)}}@media (prefers-reduced-motion:reduce){.pad-sparkle{display:none}}
