/* style.css — Phase 0 shell.
   Canvas renders at a fixed internal 1280x720 and is CSS-scaled to the viewport,
   16:9 locked and letterboxed. image-rendering: pixelated keeps the upscale
   nearest-neighbour so the pixel art stays crisp (PRD 2.3). */

html, body {
  margin: 0;
  height: 100%;
  background: #05060a;
  overflow: hidden;
}

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

#game {
  display: block;
  width: 100vw;
  height: 56.25vw;          /* 16:9 from width */
  max-width: 177.78vh;      /* 16:9 from height (letterbox) */
  max-height: 100vh;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#mobile-block {
  display: none;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 20px;
  text-align: center;
  padding: 2rem;
}

/* PRD A1: desktop keyboard required under 800px */
@media (max-width: 799px) {
  #game { display: none; }
  #mobile-block { display: block; }
}
