/* Game overlays can receive taps outside the canvas. Suppress browser double-tap
   zoom on the whole play page while preserving native menu scrolling and pinch zoom.
   Canvas/joystick controls retain their existing touch-action:none gesture owners. */
html, body { touch-action: manipulation; }
/* Scrollable overlays terminate the gesture ancestor chain before body. */
dialog, [data-simple-game-menu], .city-hud-sheet, #drive-hud-guide, #mode-links { touch-action: manipulation; }
/* Scene selection closes its menu immediately. Native tap highlights can
   otherwise outlive that menu as a floating rectangle over the game canvas.
   Keep the existing keyboard focus outlines and game action feedback. */
button, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }

/* Fill browser-owned viewport edges; system navigation outside it is not an inset twice. */
html:has(body.kh-touch),body.kh-touch{background:#080e18;margin:0;overscroll-behavior:none}
