*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #0b1021;
  /* Subtle vignette so the letterboxing does not read as a broken page. */
  background-image: radial-gradient(ellipse at 50% 40%, #1a2242 0%, #0b1021 70%);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #e8e6f0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #5c94fc;
  /* Sized in JS to an integer scale of 384x216. */
  box-shadow: 0 0 0 2px #000, 0 24px 70px rgba(0, 0, 0, 0.55);
}

#rotate {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  background: #0b1021;
  z-index: 10;
}

/* Portrait phones cannot see enough of the level to play fairly. */
@media (orientation: portrait) and (max-width: 820px) {
  #rotate { display: flex; }
  #stage { display: none; }
}
