/* ===== Terminal Velocity: iOS-safe full-viewport canvas ===== */

/* Prevent zoom quirks & page scroll behind canvas */
html, body {
  margin: 0;
  padding: 0;
  height: 100svh;                 /* safe small viewport height */
  width: 100vw;
  overflow: hidden;               /* we manage redraws ourselves */
  background: #0b0f0f;
  -webkit-text-size-adjust: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Keep layout simple: canvas fills viewport */
body {
  display: block;
  touch-action: manipulation;     /* stop double-tap zoom */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Canvas stretches to CSS size; JS sets backing store & DPR scale */
canvas,
#gameCanvas {
  display: block;
  width: 100vw;
  height: 100svh;                 /* shrinks under dynamic UI (iOS) */
  background: #121212;
  touch-action: none;             /* no scroll/zoom gestures */
}

/* Optional: nicer tap highlight off */
* { -webkit-tap-highlight-color: transparent; }