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

html, body {
  height: 100%;
  background: #0b0c10;
  overflow: hidden;
}

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

/* --ar (ratio largeur/hauteur de la grille) est défini par game.js */
canvas {
  width: min(100vw, calc(100dvh * var(--ar, 0.69)));
  aspect-ratio: var(--ar, 0.69);
  display: block;
  touch-action: none;            /* pas de zoom / scroll au toucher */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
