/* style.css: the page around the game canvas (fit to the window, CRT scanlines). */
html, body {
  margin: 0;
  height: 100%;
  height: 100dvh;   /* the visible height: excludes iPhone Safari's toolbar (older browsers use the line above) */
  background: #04060a;
  overflow: hidden;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
}
#stage {
  position: relative;
  line-height: 0;
}
canvas {
  display: block;
  /* fixed 4:3 logical resolution, scaled to fit the window */
  width: min(100vw, calc(100vh * 4 / 3));
  width: min(100vw, calc(100dvh * 4 / 3));   /* fits above iPhone Safari's toolbar */
  height: auto;
  background: #000;
  cursor: none;
  box-shadow: 0 0 80px rgba(10, 40, 70, .6);
  /* Touch: taps fire, nothing else (no double-tap zoom, scrolling, tap flash or long-press menu). */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
/* faint CRT scanlines */
.scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.20) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
