/* The page around the game is plain and dark so the canvas, drawn on a
   single pixel grid, is the only thing on screen. */
:root { --ink: #120e18; --vellum: #dcc08f; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); overflow: hidden; }
body { display: grid; place-items: center; color: var(--vellum); font: 14px/1.4 Georgia, 'Times New Roman', serif; }
main { display: grid; place-items: center; width: 100vw; height: 100vh; height: 100dvh; }
canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
canvas:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { position: fixed; inset: auto 0 40% 0; text-align: center; }
.turn { display: none; }
/* Phones held upright: the game is wide, so suggest turning the phone. */
@media (orientation: portrait) and (max-width: 640px) {
  .turn {
    display: block; position: fixed; left: 0; right: 0; bottom: 18%; margin: 0;
    text-align: center; color: var(--vellum); font-size: 15px;
  }
}
