/* ═══════ RESET ═══════ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

/* ═══════ CSS VARIABLES ═══════ */
:root {
  --bg: #0a0a0a;
  --fg: #d0d0d0;
  --fg-bright: #ebebeb;
  --accent: #f8b703;
  --accent-glow: rgba(248,183,3,0.12);
  --blue-gray: #657078;
  --muted: #919191;
  --dim: #1e1e1e;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  cursor: crosshair;
}

/* ═══════ GRAIN OVERLAY ═══════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ═══════ BACKGROUND CANVAS ═══════ */
#bgCanvas { position: fixed; inset: 0; z-index: 0; }

/* ═══════ SCANLINE ═══════ */
.scanline {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-gray), transparent);
  opacity: 0.04; z-index: 9997; pointer-events: none;
  animation: scanDown 10s linear infinite;
}

@keyframes scanDown { 0% { top: -2px; } 100% { top: 100%; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════ BACK LINK ═══════ */
.back-link {
  font-family: 'Azeret Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.back-link:hover { color: var(--accent); }
