/*
 * arcade.css – gemeinsame Arcade-Grundlage für zapy.ch (Startseite, Gamepad).
 * Schriften lokal (keine Verbindung zu Google): Press Start 2P und VT323,
 * beide SIL Open Font License (siehe fonts/OFL-*.txt).
 */

@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/press-start-2p.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "VT323";
  src: url("fonts/vt323.woff2") format("woff2");
  font-display: swap;
}

:root {
  --night: #0d0221;          /* Hintergrund, tiefes Violett */
  --night-2: #1a0b3d;
  --pink: #ff2e97;           /* Neon */
  --cyan: #19f6ff;
  --yellow: #ffe600;
  --green: #39ff14;
  --orange: #ff8c1a;
  --white: #fff7fb;
  --muted: #b9a8e6;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --crt: "VT323", ui-monospace, monospace;
}

/* Neonschrift */
.neon-pink { color: var(--white); text-shadow: 0 0 4px #fff, 0 0 10px var(--pink), 0 0 22px var(--pink), 0 0 42px var(--pink); }
.neon-cyan { color: var(--white); text-shadow: 0 0 4px #fff, 0 0 10px var(--cyan), 0 0 22px var(--cyan), 0 0 42px var(--cyan); }
.neon-yellow { color: var(--yellow); text-shadow: 0 0 8px rgba(255, 230, 0, .8), 0 0 24px rgba(255, 140, 26, .6); }

/* Röhrenbildschirm: Zeilen und Vignette über allem, ohne Klicks abzufangen */
.crt::before,
.crt::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
}
.crt::before {
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.crt::after {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .55; }
}
.blink { animation: blink 1.1s steps(1) infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
