* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #06080c;
  overflow: hidden;
  position: fixed;
  inset: 0;
  /* Stop iOS rubber-band scrolling / pull-to-refresh in standalone mode. */
  overscroll-behavior: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#game {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game canvas {
  display: block;
  /* Stretch the native-resolution canvas back to the CSS viewport size.
     The canvas itself is already W×H physical pixels, so this is a 1:1
     mapping on the display — no upscaling, full sharpness. */
  width:  100vw  !important;
  height: 100dvh !important;
  touch-action: none;
}
