
  #game{
    --bg:#a9cfe9; --fg:#1d2a33; --sub:#5b6b76; --line:#c9d3da; --panel:#ffffff;
    --accent:#d23b2c;
    --road:#56585b; --edge:#ecebe4; --rock:#9a8a74; --rock-dark:#4d4339; --moss:#5d6b3e;
    --ground:#5f7a45; --mountain:#4e6272;
    --sky-top:#4f86c6; --sky-hor:#c9dbe6; --sun:#fff3e0;
    --cab:#c8261c; --glass:#1c262d; --alu:#c9cdd1; --chrome:#d8dadc; --frame:#2a2c2e; --tire:#1b1b1b;
    --wheel-ui:rgba(30,34,38,.82); --pedal-rib:rgba(255,255,255,.35);
    --hud-fg:#ffffff; --hud-shadow:rgba(0,0,0,.6); --share-stroke:rgba(0,0,0,.55);
    --headlight:#ffffff; --headlight-glow:#fff4dd; --amber:#ff9a1f; --amber-glow:#ff7a00; --taillight:#d01010; --taillight-glow:#900000;
    --howto-bg:#ffffff; --howto-fg:#1d2a33;
    --result-bg:var(--panel); --result-fg:var(--fg); --result-accent:var(--fg); --result-accent-fg:var(--panel);
  }
  #game{position:relative;overflow:hidden}
  #cv{position:absolute;inset:0;width:100%;height:100%}
  #hud{
    position:absolute;left:0;right:0;top:0;text-align:center;pointer-events:none;
    padding-top:calc(env(safe-area-inset-top,0px) + 12px);
    font-size:22px;font-weight:700;color:var(--hud-fg);text-shadow:0 1px 3px var(--hud-shadow);
    font-variant-numeric:tabular-nums;
  }
  #controls{
    position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;align-items:flex-end;
    padding:0 calc(16px + env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) calc(16px + env(safe-area-inset-left,0px));
    pointer-events:none;
  }
  #wheel{width:150px;height:150px;pointer-events:auto;touch-action:none;outline:none}
  #wheel svg{width:100%;height:100%;display:block}
  #wheel:focus-visible{outline:3px solid var(--accent);border-radius:50%}
  #pedals{display:flex;align-items:flex-end;gap:8px}
  .pedal{
    padding:0;border:0;background:none;pointer-events:auto;touch-action:none;
    transform-origin:50% 100%;transition:transform .05s;
  }
  #brake{width:66px;height:92px}
  #pedal{width:62px;height:128px}
  .pedal svg{width:100%;height:100%;display:block}
  .pedal[aria-pressed="true"]{transform:perspective(300px) rotateX(24deg)}
  .hidden{display:none !important}

.truck-layout{max-width:1060px;margin:0 auto 32px;padding:0 20px;display:grid;grid-template-columns:minmax(300px,1.25fr) minmax(280px,1fr);grid-template-areas:"stage heading" "stage guide";grid-template-rows:auto 1fr;gap:0 clamp(24px,4vw,60px)}
.truck-heading{grid-area:heading;padding-top:16px}.truck-heading h1{font-size:clamp(30px,4vw,52px);line-height:1.05;margin:0}.truck-stage{grid-area:stage;align-self:start;min-width:0}.truck-guide{grid-area:guide;min-width:0}.truck-guide p,.truck-heading p{line-height:1.65}.truck-guide h2{font-size:20px;margin:16px 0 4px}.truck-guide p{margin:4px 0 12px}.truck-guide .cove-share{margin:18px 0;justify-content:flex-start}.truck-layout #game{height:clamp(410px,77svh,790px);width:100%;isolation:isolate;border-radius:14px;background:#a9cfe9;color:var(--fg);font:16px system-ui;user-select:none}.truck-layout #game canvas{display:block;touch-action:none}.truck-layout .pedal{box-shadow:none;min-width:0;min-height:0;border:0;background:none}.truck-layout .pedal svg{pointer-events:none}#truck-tools{margin:8px 0}.truck-layout #wheel{width:clamp(95px,20vw,150px);height:auto;aspect-ratio:1}#game:focus-visible{outline:3px solid #597b46}#truck-tools .record-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
@media(max-width:740px){body:has(.truck-layout)>header{padding:5px 12px}body:has(.truck-layout)>header img{width:33px;height:33px}body:has(.truck-layout)>.crumb{display:none}.truck-layout{display:flex;flex-direction:column;gap:0;padding:0 10px}.truck-heading{padding-top:4px}.truck-heading h1{font-size:25px;margin:0 0 8px}.truck-stage{width:100%}.truck-layout #game{height:clamp(260px,calc(100svh - 130px),720px)}.truck-guide{padding:0 4px}.truck-guide p{line-height:1.55}}
