:root{--asphalt: #20252c;--asphalt-2: #2c333c;--asphalt-3: #3a434e;--chalk: #f4f4f0;--chalk-dim: #b9c2cc;--marking: #ffc93c;--marking-ink: #3d2c00;--stop: #e5484d;--stop-deep: #5c1f22;--go: #2fbf71;--amber: #ffb02e;--sign-red: #d7263d;--font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;height:100%;overflow:hidden;background:var(--asphalt);color:var(--chalk);font-family:var(--font);-webkit-tap-highlight-color:transparent;overscroll-behavior:none}#app{position:fixed;inset:0}#scene{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}button{font-family:inherit;cursor:pointer}button:focus-visible{outline:3px solid var(--marking);outline-offset:3px}#hud{position:absolute;inset:0;pointer-events:none}#hud>*{pointer-events:auto}#hud .hint,#hud .toast{pointer-events:none}.hud-top{position:absolute;left:12px;right:12px;top:calc(12px + var(--safe-top));display:flex;gap:8px;align-items:stretch}.task{flex:1;min-width:0;background:#20252ce0;border-radius:14px;padding:8px 12px;display:flex;flex-direction:column;gap:1px}.task-level{font-size:12px;color:var(--chalk-dim)}.task-text{font-size:15px;font-weight:500;line-height:1.25}.signal{display:flex;flex-direction:column;gap:4px;justify-content:center;background:#15181c;border-radius:12px;padding:6px 9px}.lamp{width:14px;height:14px;border-radius:50%;background:#2e3238;transition:background .15s}.signal[data-state=red] .lamp-r{background:var(--stop)}.signal[data-state=yellow] .lamp-y{background:var(--amber)}.signal[data-state=green] .lamp-g{background:var(--go)}.hint{position:absolute;left:50%;top:calc(84px + var(--safe-top));transform:translate(-50%);background:var(--marking);color:var(--marking-ink);font-size:14px;font-weight:500;padding:7px 14px;border-radius:10px;white-space:nowrap}.toast{position:absolute;left:50%;top:calc(124px + var(--safe-top));transform:translate(-50%);width:min(88vw,360px);background:#20252cf0;border:2px solid var(--amber);border-radius:14px;padding:10px 14px;font-size:14px;line-height:1.35}.toast strong{display:block;font-weight:500;margin-bottom:2px}.dirs{position:absolute;left:50%;bottom:calc(142px + var(--safe-bottom));transform:translate(-50%);display:flex;gap:8px}.dir{width:58px;height:58px;border-radius:14px;border:2px solid transparent;background:#20252ce0;color:var(--chalk-dim);display:flex;align-items:center;justify-content:center}.dir svg{width:28px;height:28px}.dir[aria-pressed=true]{background:var(--marking);color:var(--marking-ink)}.hud-bottom{position:absolute;left:12px;right:12px;bottom:calc(12px + var(--safe-bottom));display:flex;align-items:flex-end;justify-content:space-between;gap:10px}.pedal{position:relative;width:84px;border:none;border-radius:16px;color:var(--chalk);background:repeating-linear-gradient(0deg,rgba(255,255,255,.07) 0 3px,transparent 3px 11px),#1a1d22;box-shadow:inset 0 0 0 3px var(--ring, #444);display:flex;align-items:flex-end;justify-content:center;padding-bottom:10px;touch-action:none;user-select:none;-webkit-user-select:none;transition:transform .06s}.pedal-brake{height:92px;--ring: var(--stop)}.pedal-gas{height:122px;width:72px;--ring: var(--go)}.pedal.is-down{transform:scale(.94) translateY(2px)}.pedal-brake.is-down{background:var(--stop)}.pedal-gas.is-down{background:var(--go)}.pedal-label{font-size:13px;font-weight:500}.speedo{flex:1;max-width:190px;position:relative;background:#20252ce6;border-radius:18px;padding:10px 56px 10px 14px;display:flex;flex-direction:column}.speed-num{font-size:40px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}.speed-unit{font-size:12px;color:var(--chalk-dim);margin-top:2px}.limit-sign{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 5px var(--sign-red);color:#15181c;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center}.speedo[data-over=true] .speed-num{color:var(--amber)}.speedo[data-over=true] .limit-sign{animation:pulse .8s ease-in-out infinite}@keyframes pulse{50%{transform:translateY(-50%) scale(1.14)}}.sheet-wrap{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;background:#0a0c0f73;padding:12px;padding-bottom:calc(12px + var(--safe-bottom))}.sheet{width:min(100%,440px);background:var(--asphalt);border-radius:22px;padding:20px;animation:rise .22s ease-out}@keyframes rise{0%{transform:translateY(24px);opacity:0}}.sheet h2{margin:0 0 8px;font-size:22px;font-weight:700;line-height:1.2}.sheet p{margin:0 0 14px;font-size:15px;line-height:1.5;color:var(--chalk-dim);max-width:60ch}.sheet .meta{font-size:13px;color:var(--chalk-dim);margin-bottom:4px}.sheet .ref{font-size:13px;color:var(--marking);margin:-4px 0 16px}.badge{display:inline-block;font-size:13px;font-weight:500;padding:4px 10px;border-radius:8px;margin-bottom:10px}.badge-critical{background:var(--stop-deep);color:#ffc2c4}.badge-major,.badge-minor{background:#4a3a12;color:#ffd98a}.btn{display:block;width:100%;border:none;border-radius:14px;padding:15px;font-size:16px;font-weight:500}.btn+.btn{margin-top:8px}.btn-primary{background:var(--marking);color:var(--marking-ink)}.btn-quiet{background:var(--asphalt-2);color:var(--chalk)}.rule-art{display:flex;gap:14px;align-items:center;margin-bottom:12px}.rule-art .signal{flex-direction:column;padding:8px 11px;gap:6px}.rule-art .lamp{width:22px;height:22px}.stars{display:flex;gap:6px;margin:6px 0 14px}.star{width:40px;height:40px;color:var(--asphalt-3)}.star.on{color:var(--marking)}.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.stat{background:var(--asphalt-2);border-radius:12px;padding:10px 12px}.stat .k{font-size:12px;color:var(--chalk-dim)}.stat .v{font-size:18px;font-weight:500;margin-top:2px}.vlist{list-style:none;margin:0 0 14px;padding:0}.vlist li{background:var(--asphalt-2);border-radius:12px;padding:10px 12px;font-size:14px}.vlist li+li{margin-top:6px}.vlist .sev{font-size:12px;color:var(--amber)}.keys{font-size:12px;color:var(--chalk-dim);margin-top:12px;text-align:center}@media (prefers-reduced-motion: reduce){.sheet,.speedo[data-over=true] .limit-sign{animation:none}.pedal{transition:none}}.hud-top .icon-btn{width:48px;flex:none;border:none;border-radius:14px;background:#20252ce0;color:var(--chalk);display:flex;align-items:center;justify-content:center}.icon-btn svg{width:22px;height:22px}.lane-btn{position:absolute;bottom:calc(150px + var(--safe-bottom));width:52px;height:64px;border:2px solid rgba(255,201,60,.6);border-radius:14px;background:#20252cd9;color:var(--marking);display:flex;align-items:center;justify-content:center}.lane-btn svg{width:26px;height:26px}.lane-left{left:12px}.lane-right{right:12px}.lane-btn:active{background:var(--marking);color:var(--marking-ink)}.screen{position:absolute;inset:0;overflow-y:auto;-webkit-overflow-scrolling:touch;background:linear-gradient(180deg,rgba(32,37,44,.35) 0%,rgba(32,37,44,.92) 38%,var(--asphalt) 62%);padding:calc(20px + var(--safe-top)) 16px calc(24px + var(--safe-bottom))}.screen-inner{max-width:460px;margin:0 auto;min-height:100%;display:flex;flex-direction:column}.screen h1{font-size:30px;font-weight:700;line-height:1.15;margin:0 0 10px}.screen h2{font-size:22px;font-weight:700;line-height:1.2;margin:0 0 6px}.screen p.lead{font-size:16px;line-height:1.55;color:var(--chalk-dim);margin:0 0 20px;max-width:60ch}.screen .spacer{flex:1;min-height:24px}.screen .muted{font-size:13px;color:var(--chalk-dim)}.screen .error{font-size:14px;color:#ff9a9d;margin:8px 0 0}.brand{display:flex;align-items:center;gap:10px;margin:18vh 0 22px}.brand-mark{width:44px;height:44px;border-radius:12px;background:var(--asphalt-2);position:relative;overflow:hidden}.brand-mark:before{content:"";position:absolute;left:20px;top:-6px;width:4px;height:56px;background:repeating-linear-gradient(180deg,var(--marking) 0 9px,transparent 9px 16px)}.brand-name{font-size:18px;font-weight:500}.seg{display:inline-flex;background:var(--asphalt-2);border-radius:12px;padding:4px;gap:4px}.seg button{border:none;background:transparent;color:var(--chalk-dim);font-size:15px;font-weight:500;padding:9px 16px;border-radius:9px}.seg button[aria-pressed=true]{background:var(--chalk);color:var(--asphalt)}.progress{display:flex;gap:6px;margin:4px 0 18px}.progress span{flex:1;height:4px;border-radius:2px;background:var(--asphalt-3)}.progress span.on{background:var(--marking)}.choices{display:flex;flex-direction:column;gap:8px}.choice{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:2px solid var(--asphalt-3);background:var(--asphalt-2);color:var(--chalk);border-radius:16px;padding:14px 16px;min-height:64px}.choice[aria-pressed=true],.choice[aria-checked=true]{border-color:var(--marking);background:#2f3127}.choice .ic{width:40px;height:40px;flex:none;border-radius:11px;background:var(--asphalt-3);display:flex;align-items:center;justify-content:center;color:var(--marking)}.choice .ic svg{width:24px;height:24px}.choice .tx{display:flex;flex-direction:column;gap:2px;min-width:0}.choice .t1{font-size:16px;font-weight:500}.choice .t2{font-size:13px;color:var(--chalk-dim);line-height:1.35}.choice .tick{margin-left:auto;width:24px;height:24px;flex:none;border-radius:7px;border:2px solid var(--asphalt-3)}.choice[aria-checked=true] .tick{background:var(--marking);border-color:var(--marking);box-shadow:inset 0 0 0 4px #2f3127}.choice:disabled{opacity:.5}.soon-tag{font-size:12px;background:var(--asphalt-3);color:var(--chalk-dim);padding:2px 8px;border-radius:6px;margin-left:auto}.menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.menu-head .who{font-size:22px;font-weight:700}.chip{border:none;border-radius:10px;background:var(--asphalt-2);color:var(--chalk);font-size:13px;padding:8px 12px}.chip b{font-weight:500;color:var(--marking)}.reco{background:#2f3127;border:2px solid rgba(255,201,60,.5);border-radius:14px;padding:12px 14px;font-size:14px;margin-bottom:14px}.section-label{font-size:13px;color:var(--chalk-dim);margin:18px 0 8px}.topic{background:var(--asphalt-2);border-radius:18px;padding:14px}.topic+.topic{margin-top:10px}.topic-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}.topic-head .ic{width:42px;height:42px;flex:none;border-radius:12px;background:var(--asphalt-3);color:var(--marking);display:flex;align-items:center;justify-content:center}.topic-head .ic svg{width:24px;height:24px}.topic-head .t1{font-size:17px;font-weight:500}.topic-head .t2{font-size:13px;color:var(--chalk-dim)}.topic-head .score{margin-left:auto;font-size:13px;color:var(--marking);white-space:nowrap}.lvl{display:flex;align-items:center;gap:10px;width:100%;border:none;text-align:left;background:var(--asphalt);color:var(--chalk);border-radius:12px;padding:12px;font-size:15px}.lvl+.lvl{margin-top:6px}.lvl .num{width:28px;height:28px;border-radius:8px;background:var(--asphalt-3);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;flex:none}.lvl .mini-stars{margin-left:auto;color:var(--marking);font-size:14px;letter-spacing:1px;white-space:nowrap}.lvl .mini-stars .off{color:var(--asphalt-3)}.topic.dim{opacity:.55}.topic.dim .topic-head{margin-bottom:0}.link-btn{border:none;background:none;color:var(--marking);font-size:15px;font-weight:500;padding:12px 0;text-align:left}.sheet .consequence{display:inline-block;font-size:13px;color:#ffc2c4;background:var(--stop-deep);border-radius:8px;padding:4px 10px;margin:-6px 0 12px}.rule-art .sign-art{width:64px;height:64px;flex:none}.nav{flex:1;min-width:0;display:flex;align-items:center;gap:10px;background:#1f5fbf;color:#fff;border-radius:14px;padding:8px 12px 8px 8px}.nav-ic{width:44px;height:44px;flex:none;border-radius:10px;background:#ffffff29;display:flex;align-items:center;justify-content:center}.nav-ic svg{width:30px;height:30px}.nav-tx{display:flex;flex-direction:column;min-width:0}.nav-dist{font-size:20px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}.nav-text{font-size:14px;line-height:1.2;color:#dbe7fb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav[data-kind=arrive]{background:#2f7d4f}.nav[data-kind=uturn]{background:#8a5a12}.dir.suggest{box-shadow:0 0 0 3px #1f5fbf}.dir.suggest:not([aria-pressed=true]){color:#fff;background:#1f5fbf}.look-btn{position:absolute;bottom:calc(232px + var(--safe-bottom));display:flex;align-items:center;gap:6px;height:48px;padding:0 14px;border:none;border-radius:24px;background:#20252ce0;color:var(--chalk);font-size:14px;font-weight:500;touch-action:none;user-select:none;-webkit-user-select:none}.look-btn svg{width:22px;height:22px}.look-left{left:12px}.look-right{right:12px;flex-direction:row-reverse}.look-btn.is-down{background:var(--chalk);color:var(--asphalt)}.park-ctl{position:absolute;left:10px;right:10px;bottom:calc(12px + var(--safe-bottom));display:flex;align-items:flex-end;justify-content:space-between;gap:6px}.steer{display:flex;gap:6px}.steer-btn{width:62px;height:92px;border:none;border-radius:18px;background:#20252ceb;color:var(--marking);box-shadow:inset 0 0 0 3px #ffc93c8c;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none}.steer-btn svg{width:34px;height:34px}.steer-btn.is-down{background:var(--marking);color:var(--marking-ink)}.park-mid{display:flex;flex-direction:column;align-items:center;gap:8px}.wheel{width:46px;height:46px;color:var(--chalk);transition:transform .05s linear}.gear{display:flex;border:none;border-radius:12px;overflow:hidden;padding:0;background:var(--asphalt-2)}.gear span{width:32px;height:44px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:var(--chalk-dim)}.gear[data-gear=D] .g-d{background:var(--go);color:#fff}.gear[data-gear=R] .g-r{background:var(--stop);color:#fff}.park-pedals{display:flex;gap:6px;align-items:flex-end}.park-pedals .pedal-brake{width:62px;height:80px}.park-pedals .pedal-gas{width:58px;height:104px}.field{display:flex;flex-direction:column;gap:8px;margin-top:14px}.field input{font:inherit;font-size:20px;color:var(--chalk);background:var(--asphalt-2);border:2px solid var(--asphalt-3);border-radius:14px;padding:14px 16px;width:100%}.field input:focus{outline:none;border-color:var(--marking)}.age-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:14px}.age-grid .choice{min-height:60px;justify-content:center;text-align:center}.age-grid .choice .t1{font-size:18px}.top-bar{display:flex;align-items:center;gap:10px;margin-bottom:6px;min-height:44px}.back-btn{width:44px;height:44px;border:none;border-radius:12px;background:var(--asphalt-2);color:var(--chalk);display:flex;align-items:center;justify-content:center;flex:none}.back-btn svg{width:22px;height:22px}.top-bar .progress{flex:1;margin:0}.sticky-cta{position:sticky;bottom:0;padding-top:12px;background:linear-gradient(180deg,transparent,var(--asphalt) 30%)}
