* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #05060a;
  overflow: hidden;
  font-family: 'Press Start 2P', monospace;
}

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

/* The canvas renders at 640x360 internally and is scaled up by JS.
   Pixelated keeps the 8-bit chunkiness instead of smoothing. */
#game {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
  display: block;
}

/* CRT scanline overlay sized to match the scaled canvas (positioned by JS). */
#scanlines {
  position: absolute;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.28) 3px,
    rgba(0, 0, 0, 0.28) 4px
  );
  mix-blend-mode: multiply;
}
