/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #0a0a0f;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  cursor: pointer;
  image-rendering: auto;
  /* Pointer Events only reach the game if the browser is told
     not to claim touches for scroll / pan / pinch gestures */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* Scale to fit viewport while maintaining 16:9 aspect ratio */
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
}
