html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Low internal resolution (640x360) scaled up with smoothing = VHS blur */
#screen {
  display: block;
  width: min(100vw, 177.78vh);
  height: min(56.25vw, 100vh);
  image-rendering: auto;
  filter: blur(0.55px) contrast(1.12) saturate(0.85);
  cursor: crosshair;
  touch-action: none;
}

/* CRT glass: dark corners + faint flicker */
#crt {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.65) 100%);
  animation: flicker 0.12s infinite steps(2);
}

@keyframes flicker {
  0%   { opacity: 0.92; }
  100% { opacity: 1; }
}
