:root {
  --neon-pink: #ff2e9a;
  --neon-cyan: #2ee6ff;
  --neon-purple: #b65cff;
  --neon-orange: #ff7b3d;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'VT323', monospace;
  background: #050009;
  color: #fff;
  overflow: hidden;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: url('assets/background.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CRT scanlines */
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0px,
    rgba(0, 0, 0, 0.25) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  z-index: 5;
}

/* Vignette to deepen edges */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.65) 100%);
  z-index: 4;
}

/* Sweeping VHS line */
.scanline-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0) 100%
  );
  pointer-events: none;
  z-index: 6;
  animation: sweep 6s linear infinite;
}

@keyframes sweep {
  0% { top: -60px; }
  100% { top: 100%; }
}

/* REC indicator */
.rec {
  position: absolute;
  top: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
  z-index: 10;
}

.rec-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff2e2e;
  box-shadow: 0 0 10px #ff2e2e, 0 0 20px #ff2e2e;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.timestamp {
  margin-left: 10px;
  opacity: 0.85;
}

/* Main content */
.content {
  position: relative;
  z-index: 8;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
}

.title {
  font-family: 'Press Start 2P', monospace;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.title-line {
  font-size: clamp(2rem, 8vw, 5rem);
  color: #fff;
  letter-spacing: 0.3em;
  text-shadow:
    0 0 5px var(--neon-cyan),
    0 0 15px var(--neon-cyan),
    0 0 30px var(--neon-cyan),
    0 0 60px var(--neon-purple);
}

.title-accent {
  color: #fff;
  text-shadow:
    0 0 5px var(--neon-pink),
    0 0 15px var(--neon-pink),
    0 0 30px var(--neon-pink),
    0 0 60px var(--neon-orange);
}

.status-box {
  border: 2px solid var(--neon-cyan);
  background: rgba(5, 0, 9, 0.55);
  padding: 1rem 2.5rem;
  box-shadow:
    0 0 10px var(--neon-cyan),
    inset 0 0 15px rgba(46, 230, 255, 0.3);
}

.status-text {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  color: var(--neon-cyan);
  letter-spacing: 0.2em;
  text-shadow: 0 0 8px var(--neon-cyan);
  animation: flicker 3s infinite;
}

.status-sub {
  margin-top: 0.6rem;
  font-size: 1.4rem;
  color: var(--neon-pink);
  letter-spacing: 0.15em;
  text-shadow: 0 0 6px var(--neon-pink);
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 24%, 55% { opacity: 0.6; }
}

/* Loader bar */
.loader {
  width: min(80vw, 420px);
  height: 10px;
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 10px var(--neon-purple);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.loader-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: load 2.4s ease-in-out infinite;
}

@keyframes load {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(150%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 480px) {
  .title-line { letter-spacing: 0.18em; }
  .rec { font-size: 1.2rem; top: 14px; left: 14px; }
}
