  :root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    --dusk: #2B3A67; --apricot: #F7B267; --coral: #F4845F; --cream: #FFE8C2; --paper: #FDFDFB;
    --panel: rgba(27, 36, 64, 0.72); --good: #9BE38B; --bad: #FF8A7A;
  }
  html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
  body { margin: 0; height: 100%; overflow: hidden; background: #9CC9E8;
    font-family: "Baloo 2", "Trebuchet MS", system-ui, sans-serif; color: var(--paper);
    user-select: none; -webkit-user-select: none; touch-action: none; }
  #cockpit { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  canvas#game { display: block; position: fixed; inset: 0; width: 100%; height: 100%; }
  .hud { position: fixed; pointer-events: none; }
  #instr { top: calc(10px + env(safe-area-inset-top, 0px)); left: 10px; background: var(--panel);
    border-radius: 14px; padding: 8px 14px; font-size: 15px; line-height: 1.35; min-width: 150px; }
  #instr b { font-size: 20px; font-weight: 800; }
  #instr .row { display: flex; justify-content: space-between; gap: 14px; }
  #gasbar { height: 8px; background: rgba(255,255,255,.2); border-radius: 4px; margin-top: 4px; overflow: hidden; }
  #gasfill { height: 100%; width: 0; background: var(--apricot); }
  #mission { top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
    text-align: center; background: var(--panel); border-radius: 14px; padding: 6px 18px; }
  #scoreTxt { font-size: 26px; font-weight: 800; line-height: 1.1; }
  #targetTxt { font-size: 15px; color: var(--cream); }
  #arrow { width: 34px; height: 34px; margin: 2px auto 0; transition: transform .1s linear; }
  #mapwrap { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; background: var(--panel);
    border-radius: 14px; padding: 6px; }
  #minimap { display: block; width: 130px; height: 130px; }
  #msg { top: 34%; left: 0; right: 0; text-align: center; font-size: clamp(22px, 5vw, 38px); font-weight: 800;
    text-shadow: 0 3px 0 rgba(27,36,64,.5); padding: 0 20px; opacity: 0; transition: opacity .3s; }
  #msg small { display: block; font-size: 18px; font-weight: 600; color: var(--cream); }
  #hint { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center;
    font-size: 14px; color: var(--paper); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
