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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a1a;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#game-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a1a;
}

canvas { display: block; touch-action: none; }

/* ─── Rotate overlay ─────────────────────────────────────────────────────── */
#rotate-msg {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a0a1a;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
#rotate-msg .icon { font-size: 64px; margin-bottom: 16px; }
#rotate-msg p { font-family: Arial, sans-serif; font-size: 20px; color: #aaaacc; }

/*
  BUG FIX: Only hide game on MOBILE/TABLET landscape (pointer:coarse = touchscreen).
  Desktop users browse in landscape — Phaser FIT mode letterboxes the portrait
  canvas perfectly, so no rotation prompt is needed there.
*/
@media screen and (orientation: landscape) and (pointer: coarse) and (max-height: 500px) {
  #rotate-msg     { display: flex; }
  #game-container { display: none; }
}
