/* letterbox background: a soft starry night around the game */
html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  background-color: #0b0a1a;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #3a3462 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 120px, #2e2a52 50%, transparent 51%),
    radial-gradient(1px 1px at 160px 60px, #4a3a6a 50%, transparent 51%),
    radial-gradient(1px 1px at 210px 170px, #2e2a52 50%, transparent 51%);
  background-size: 240px 200px;
}
canvas#game {
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: default;
  outline: none;
}

/* phones held upright: ask to rotate (tap dismisses) */
#rotate { display: none; }
@media (orientation: portrait) and (pointer: coarse) {
  #rotate {
    display: flex; position: fixed; inset: 0; z-index: 10;
    align-items: center; justify-content: center; text-align: center;
    background: #0b0a1a; color: #ffc4ce;
    font: 600 20px/1.6 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.04em;
  }
  #rotate small { color: #9a90b8; font-size: 13px; font-weight: 400; }
}
