  #touch { position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    display: none; justify-content: space-between; padding: 0 14px; pointer-events: none; }
  .pad { display: grid; gap: 8px; pointer-events: auto; }
  #dpad { grid-template-columns: 62px 62px 62px; grid-template-rows: 62px 62px; }
  #gaspad { grid-template-columns: 70px; grid-template-rows: 62px 62px; }
  #stuntpad { display: none !important; grid-template-columns: 62px 62px 62px; grid-template-rows: 52px; align-self: end; }
  #stuntpad .tb { font-size: 17px; }
  body.stunt #stuntpad { display: grid !important; }
  #ropepad { display: none !important; grid-template-columns: 76px; grid-template-rows: 56px; align-self: end; }
  #ropepad .tb { font-size: 18px; }
  body.heli #ropepad { display: grid !important; }
  #droppad { display: none !important; grid-template-columns: 76px; grid-template-rows: 56px; align-self: end; }
  #droppad .tb { font-size: 18px; }
  body.cargo #droppad { display: grid !important; }
  #launchpad { display: none !important; grid-template-columns: 90px; grid-template-rows: 56px; align-self: end; }
  #launchpad .tb { font-size: 18px; background: rgba(192,71,58,.85); }
  body.rocket #launchpad, body.space #launchpad { display: grid !important; }
  body.space #minimap, body.space #mapwrap, body.space #hudPlane, body.space #hudTime, body.space #hudWeather, body.space #hudCockpit { display: none !important; }
  #fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s; z-index: 4; }
  #ropeRow { display: none !important; } body.heli #ropeRow { display: flex !important; }
  #waterRow { display: none !important; } body.bomber #waterRow { display: flex !important; }
  body.bomber #droppad { display: grid !important; }
  @media (max-width: 560px) { #stuntpad { grid-template-columns: 52px; grid-template-rows: 44px 44px 44px; } }
  .tb { border: 0; border-radius: 16px; background: rgba(27,36,64,.6); color: var(--paper); font: inherit;
    font-size: 24px; font-weight: 800; touch-action: none; }
  .tb.on { background: rgba(244,132,95,.85); }
  @media (pointer: coarse) { #touch { display: flex; } #hint { display: none; } }
  @media (max-width: 560px) { #instr { font-size: 13px; min-width: 120px; } #instr b { font-size: 17px; }
    #minimap { width: 96px; height: 96px; } #mission { top: calc(130px + env(safe-area-inset-top, 0px)); } }
