/* Shared retro enhancements while keeping the 90s vibe */

@font-face {
  font-family: 'VCRFont';
  src: url('VCR.ttf') format('truetype');
  font-display: swap;
}

:root {
  --neon: #39ff14;
  --nav-bg: rgba(0,0,0,0.55);
  --text: #ffffff;
}

/* Top retro nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.4rem 0.8rem;
  background: var(--nav-bg);
  backdrop-filter: blur(2px);
  border-bottom: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  font-family: 'VCRFont', Arial, sans-serif;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 6px var(--neon);
  padding: 0.1rem 0.3rem;
}

.nav .sep { color: #ffd700; }

.nav .toggles {
  margin-left: 1rem;
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--text);
  font-size: 0.9rem;
}

/* CRT effect */
.crt {
  position: relative;
  filter: contrast(1.05) saturate(1.15);
}

.crt::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,0.08) 50%) 0 0/100% 2px,
    radial-gradient(circle at 50% 0, rgba(255,0,0,0.06), rgba(0,0,255,0.06)) 0 0/100% 100%;
  mix-blend-mode: multiply;
}

/* Small star trail elements */
.trail-star {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: url('star.png') no-repeat center/contain;
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 400ms ease, transform 400ms ease;
}

/* Screen reader only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

