    :root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#19342a;background:#e8f1e9;font-synthesis:none}
    *{box-sizing:border-box}
    body{margin:0;min-height:100vh;background:linear-gradient(145deg,#f7f7ee,#e3efe7);}
    .page{width:min(100%,1100px);margin:auto;padding:18px 22px 28px}
    .topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
    .top-actions{display:flex;align-items:center;gap:12px}
    .home{color:#315e4d;text-decoration:none;font-size:14px;font-weight:750}
    .kicker{color:#658372;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
    h1{margin:2px 0 3px;font-size:clamp(26px,4vw,38px);letter-spacing:-1.5px;line-height:1.05}
    .sub{margin:0;color:#63766b;font-size:13px}
    .hud{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:15px 0 10px}
    .stat{padding:9px 12px;border:1px solid #d5e2d8;border-radius:13px;background:#ffffffc9;box-shadow:0 3px 10px #244a3210}
    .stat-label{display:block;color:#718277;font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
    .stat strong{display:block;margin-top:2px;font-size:20px;font-variant-numeric:tabular-nums}
    #score.negative{color:#c13f37}.signal{display:flex;align-items:center;gap:7px}
    .signal-stat{border-color:#b9cdbf;background:#f4fbf5}
    .signal-stat strong{color:#a8342d}
    .signal-stat strong.is-green{color:#247b46}.signal-stat strong.is-yellow{color:#936d0b}
    .lamp{width:13px;height:13px;border-radius:50%;background:#e24439;box-shadow:0 0 0 4px #d84c4225,0 0 12px #e2443980}
    .lamp.green{background:#35b362;box-shadow:0 0 0 4px #41a86625,0 0 12px #35b36280}.lamp.yellow{background:#f1b83d;box-shadow:0 0 0 4px #f1b83d35,0 0 12px #f1b83d80}
    #signal-display:not(.is-green):not(.is-yellow) .lamp{animation:red-pulse .9s ease-in-out infinite alternate}
    #signal-display.is-yellow .lamp{animation:yellow-pulse .9s ease-in-out infinite alternate}
    @keyframes red-pulse{to{box-shadow:0 0 0 7px #d84c4230,0 0 18px #e24439}}
    @keyframes yellow-pulse{to{box-shadow:0 0 0 7px #f1b83d30,0 0 18px #f1b83d}}
    .game-wrap{position:relative;overflow:hidden;border:1px solid #c9d8cc;border-radius:18px;background:#aad3d4;box-shadow:0 16px 40px #244a321c}
    #scene{position:relative;display:block;width:100%;height:clamp(360px,53vw,580px);touch-action:none}
    #scene canvas{display:block;width:100%;height:100%;touch-action:none}
    #map-preview{position:absolute;inset:0;display:none;width:100%;height:100%;background:#dce5df}
    .map-status{position:absolute;z-index:3;top:12px;right:12px;padding:8px 11px;border:1px solid #ffffff9c;border-radius:999px;background:#12372ee8;color:#fff;font-size:12px;font-weight:800;letter-spacing:.02em;box-shadow:0 5px 16px #172b2238;pointer-events:none}
    .map-status i{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#51dc83;box-shadow:0 0 0 4px #51dc8333;vertical-align:1px}
    .map-driver-marker{position:relative;display:grid;width:40px;height:40px;place-items:center;border:3px solid #fff;border-radius:50%;background:#146c43;color:white;font-size:20px;box-shadow:0 3px 10px #15281c9c}
    .map-driver-marker svg{display:block;width:24px;height:24px;fill:#fff}
    .map-driver-marker:after{position:absolute;inset:-7px;border:2px solid #16834d;border-radius:50%;content:"";animation:map-pulse 1.5s ease-out infinite}
    @keyframes map-pulse{0%{transform:scale(.75);opacity:.8}100%{transform:scale(1.2);opacity:0}}
    .toast{position:absolute;top:14px;left:50%;transform:translateX(-50%);padding:8px 13px;border-radius:999px;background:#183b2ee8;color:white;font-size:12px;font-weight:800;white-space:nowrap;opacity:0;transition:opacity .2s;pointer-events:none}
    .toast.show{opacity:1}
    .overlay{position:absolute;inset:0;display:grid;place-items:center;padding:18px;background:#183b2e70;backdrop-filter:blur(3px)}
    .panel{width:min(460px,100%);padding:24px;border:1px solid #ffffffa8;border-radius:20px;background:#f8fbf6;text-align:center;box-shadow:0 18px 50px #17352640}
    .panel h2{margin:0 0 8px;font-size:clamp(25px,5vw,34px);letter-spacing:-1px}
    .panel p{margin:7px 0;color:#5e7065;font-size:14px;line-height:1.5}
    .primary{min-height:48px;margin-top:13px;padding:0 24px;border:0;border-radius:999px;background:#276a4a;color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 5px 0 #1c4e36}
    .primary:active{transform:translateY(2px);box-shadow:0 3px 0 #1c4e36}
    .controls{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px}
    .sound-toggle{padding:8px 12px;border:1px solid #cbd9ce;border-radius:999px;background:#fff;color:#315e4d;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
    .help{color:#627469;font-size:12px;line-height:1.45}
    .touch-controls{display:flex;gap:8px;flex-shrink:0}
    .touch{width:54px;height:48px;border:1px solid #cbd9ce;border-radius:13px;background:#fff;color:#2e6148;font-size:20px;font-weight:800;touch-action:none;user-select:none}
    .touch.brake{width:auto;padding:0 14px;color:#9a5545;font-size:12px;letter-spacing:.04em}
    .touch.gas{width:auto;padding:0 12px;color:#2e6148;font-size:11px;letter-spacing:.04em}
    .touch:active,.touch.active{background:#dcebe0}
    .mobile-rotate{display:none}
    button:focus-visible,a:focus-visible{outline:3px solid #f2b84b;outline-offset:3px}
    @media(max-width:650px){
      .page{padding:10px 12px max(12px,env(safe-area-inset-bottom))}
      .topbar{margin-bottom:7px}.top-actions{gap:7px}.kicker{font-size:9px}h1{font-size:27px}.sub{font-size:11px}.sound-toggle{padding:6px 9px;font-size:10px}
      .hud{gap:5px;margin:9px 0 7px}.stat{padding:6px 7px;border-radius:10px}.stat-label{font-size:8px}.stat strong{font-size:16px}
      .game-wrap{border-radius:14px}#scene{height:clamp(320px,58dvh,520px)}.map-status{top:8px;right:8px;padding:7px 9px;font-size:11px}
      .controls{margin-top:7px}.help{font-size:10px}.touch{width:44px;height:42px}.touch.brake,.touch.gas{padding:0 8px}
    }
    @media(max-width:650px) and (orientation:portrait){
      body.started .mobile-rotate{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:25px;background:#15382deF;text-align:center;color:white}
      .rotate-card{max-width:330px}.rotate-icon{font-size:42px}.rotate-card h2{margin:10px 0 6px;font-size:25px}.rotate-card p{margin:0;color:#d5e5d9;font-size:14px;line-height:1.5}
    }
    @media(max-height:500px) and (orientation:landscape){
      .page{width:100%;padding:6px 14px}.topbar{margin-bottom:3px}h1{font-size:22px}.sub{display:none}
      .hud{position:static;display:flex;justify-content:space-between;gap:4px;margin:4px 0 6px}.stat{padding:4px 8px;background:#f8fbf6e8}.stat strong{font-size:15px}.stat-label{font-size:7px}
      #scene{height:calc(100dvh - 205px);min-height:165px}.controls{margin-top:4px}.help{font-size:10px}.map-status{top:6px;right:6px;padding:6px 8px;font-size:10px}
    }
