@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');

:root {
  --phosphor: #00ff41;
  --phosphor-dim: #00aa2a;
  --phosphor-glow: rgba(0, 255, 65, 0.3);
  --bg: #0a0f0a;
  --bg-light: #111b11;
  --text: #00ff41;
  --text-dim: #005f1a;
  --accent: #00ff88;
  --danger: #ff3355;
  --warning: #ffcc00;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: 'VT323', 'Share Tech Mono', monospace;
  color: var(--phosphor);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0; left: 0;
}

#fullscreen-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border: 1px solid var(--phosphor-dim);
  background: rgba(0, 10, 0, 0.85);
  color: var(--phosphor);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: monospace;
  transition: all 0.15s;
  border-radius: 2px;
}

#fullscreen-btn:hover {
  background: rgba(0, 255, 65, 0.15);
  border-color: var(--phosphor);
  box-shadow: 0 0 12px var(--phosphor-glow);
}

/* CRT scanlines overlay via pseudo-element on body */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 50;
}

/* CRT screen curvature vignette */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
  z-index: 49;
}

/* Flicker animation for CRT feel */
@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.997; }
  100% { opacity: 1; }
}

canvas {
  animation: flicker 0.1s infinite;
}
