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

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  /* stop the page itself from panning/bouncing under the touch controls */
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

#game {
  /* crisp 16-bit scaling. width/height/transform are set by layout() in JS
     (responsive fit + auto-rotate to landscape when the screen is portrait) */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #fff;
  cursor: crosshair;
  /* the canvas owns all touch gestures — no scroll/zoom hijacking the sticks */
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

/* on touch / small screens, drop the desktop chrome */
@media (pointer: coarse), (max-width: 820px) {
  #hint { display: none; }
}

#hint {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: #8a8a8a;
  font-size: 12px;
  letter-spacing: 1px;
  user-select: none;
}
