:root{color:#333;font-synthesis:none;background:#fafafa;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,sans-serif}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent;touch-action:none;background:0 0;border:0}button:focus-visible,a:focus-visible,canvas:focus-visible{outline-offset:5px;outline:2px solid #444}button:disabled{opacity:.3;cursor:default}[hidden]{display:none!important}.home{flex-direction:column;align-items:center;gap:64px;max-width:832px;margin:0 auto;padding:104px 36px 96px;display:flex}.profile{text-align:center;width:100%;max-width:520px;font-size:16px;line-height:1.9}.profile h1{letter-spacing:-2.5px;color:#242424;margin:0 0 34px;font-size:clamp(38px,4.5vw,48px);font-weight:500;line-height:1.15}.profile h1:last-child{margin-bottom:0}.profile p{white-space:pre-line;margin:0 0 30px}.profile ul{margin:0 0 30px;padding:0;list-style:none}.profile li{justify-content:center;gap:20px;margin-bottom:20px;display:flex}.profile li>span{color:#888;white-space:nowrap;font-size:13px}.profile small{color:#888;font-size:14px;display:block}.profile a{color:#555;overflow-wrap:anywhere;text-decoration:none}.profile a:hover{text-decoration:underline}.game{isolation:isolate;background:#b7e1ef;border-radius:20px;flex:none;width:100%;max-width:640px;height:420px;position:relative;overflow:hidden}#race-canvas{touch-action:none;cursor:grab;width:100%;height:100%;display:block}#race-canvas:active{cursor:grabbing}.game[data-phase=running] #race-canvas{cursor:default}.view-options{gap:4px;display:flex;position:absolute;top:20px;right:20px}.icon-button{color:#555;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;transition:background .2s,transform .2s;display:inline-flex}.icon-button:hover{background:#ffffffa0}.icon-button:active{transform:scale(.9)}.race-hud{pointer-events:none;width:48px;height:66px;position:absolute;top:24px;left:23px}.lap-ring{width:48px;height:48px;transform:rotate(-90deg)}.lap-track,.lap-fill{fill:none;stroke-width:1.5px}.lap-track{stroke:#2222}.lap-fill{stroke:#333;stroke-dasharray:131.947;stroke-dashoffset:131.947px}.flag-symbol{color:#555;display:flex;position:absolute;top:14px;left:14px}.lap-dots{justify-content:center;gap:6px;margin-top:7px;display:flex}.lap-dots i{background:#2223;border-radius:50%;width:5px;height:5px}.speedometer{color:#444;pointer-events:none;opacity:.8;width:80px;height:52px;position:absolute;bottom:90px;left:50%;transform:translate(-50%)}#speed-needle{transform-origin:50px 51px}.drive-controls{justify-content:space-between;align-items:center;gap:12px;display:flex;position:absolute;bottom:21px;left:21px;right:21px}.steering-controls,.pedal-controls{gap:6px;display:flex}.drive-button{color:#555;backdrop-filter:blur(10px);user-select:none;background:#ffffff85;border:1px solid #ffffffb0;border-radius:12px;justify-content:center;align-items:center;width:43px;height:48px;display:flex}.drive-button:hover{background:#ffffffc0}.drive-button[data-held=true],.drive-button:active{color:#fff;background:#333;transform:translateY(2px)}.gas-pedal{color:#fff;background:#2b2b2be8;border-color:#333;height:57px;margin-top:-9px}.play-button{color:#444;backdrop-filter:blur(10px);background:#fff9;border:1px solid #fffc;border-radius:50%;justify-content:center;align-items:center;width:45px;height:45px;display:flex}.play-button>span{display:flex}.play-button:hover{background:#fff}.game[data-phase=finished] .play-button{color:#fff;background:#222}#webgl-fallback{color:#888;background:#b7e1ef;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=760px){.home{gap:44px;padding:72px 18px}.profile{padding:0 12px}.profile h1{margin-bottom:24px;font-size:40px}.profile h1:last-child{margin-bottom:0}.game{border-radius:18px;height:400px}.view-options{top:14px;right:12px}.race-hud{top:20px;left:18px}.drive-controls{gap:6px;bottom:18px;left:14px;right:14px}.drive-button{width:39px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important}}.model-loading{pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.model-loading span{border:2px solid #3332;border-top-color:#333;border-radius:50%;width:28px;height:28px;animation:1s linear infinite model-spin}.game:not([data-loading=true]) .model-loading{display:none}@keyframes model-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.model-loading span{border-color:#555;animation:none}}#route-map{pointer-events:none;opacity:.9;width:102px;height:94px;position:absolute;top:16px;left:84px}.boost-button{color:#a96a19;backdrop-filter:blur(10px);touch-action:none;background:#fff9;border:1px solid #fff9;border-radius:15px;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:52px;height:53px;display:flex;position:absolute;bottom:97px;right:24px}.boost-meter{background:#ae873844;border-radius:2px;width:27px;height:3px;overflow:hidden}#boost-charge{transform-origin:0;background:#df9f33;width:100%;height:100%;display:block}.boost-button[data-held=true],.game[data-boosting=true] .boost-button{color:#fff;background:#ecb348}.boost-button[data-empty=true]{opacity:.5}.game[data-boosting=true]{box-shadow:0 0 0 2px #edbc6260}.gas-pedal{background:#246c77ed;border-color:#246c77}.gas-pedal:hover{background:#18535d}.lap-fill{stroke:#257784}.lap-dots i.complete{background:#257784}@media (width<=760px){.drive-controls{gap:8px;bottom:18px;left:12px;right:12px}.drive-button{border-radius:15px;width:48px;height:54px}.gas-pedal{width:54px;height:64px;margin-top:-10px}.steering-controls,.pedal-controls{gap:6px}.boost-button{bottom:99px;right:14px}.speedometer{width:66px;bottom:94px}#route-map{width:88px;height:81px;top:14px;left:76px}}
