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

body {
  background: #0a0a0f;
  color: #e0e0e0;
  font-family: 'IBM Plex Mono', monospace;
  overflow-x: hidden;
}

:root {
  --neon-green: #00ff41;
  --hot-pink: #ff006e;
  --cyan: #00d4ff;
  --yellow: #ffe600;
  --purple: #bf00ff;
  --bg-dark: #0a0a0f;
  --bg-panel: #111118;
  --bg-card: #1a1a25;
  --border-dim: #2a2a3a;
}

@keyframes glitch1 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-4px, 2px); }
  40% { clip-path: inset(50% 0 20% 0); transform: translate(4px, -2px); }
  60% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 1px); }
  80% { clip-path: inset(80% 0 5% 0); transform: translate(3px, -1px); }
}

@keyframes glitch2 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  25% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -2px); }
  50% { clip-path: inset(5% 0 80% 0); transform: translate(-3px, 2px); }
  75% { clip-path: inset(40% 0 30% 0); transform: translate(2px, 1px); }
}

@keyframes colorShift {
  0% { color: var(--neon-green); text-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green); }
  25% { color: var(--hot-pink); text-shadow: 0 0 20px var(--hot-pink), 0 0 40px var(--hot-pink); }
  50% { color: var(--cyan); text-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan); }
  75% { color: var(--yellow); text-shadow: 0 0 20px var(--yellow), 0 0 40px var(--yellow); }
  100% { color: var(--neon-green); text-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes borderPulse {
  0%, 100% { border-color: var(--neon-green); box-shadow: 0 0 10px rgba(0,255,65,0.2); }
  33% { border-color: var(--hot-pink); box-shadow: 0 0 10px rgba(255,0,110,0.2); }
  66% { border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,212,255,0.2); }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-3px) rotate(-1deg); }
  20% { transform: translateX(3px) rotate(1deg); }
  30% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  50% { transform: translateX(-1px); }
}

@keyframes vhsTrack {
  0%, 100% { transform: translateX(0); opacity: 0; }
  10% { opacity: 0.5; }
  20% { transform: translateX(100%); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.glitch-title {
  position: relative;
  font-family: 'Press Start 2P', monospace;
  animation: colorShift 3s infinite;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-title::before {
  color: var(--hot-pink);
  animation: glitch1 2s infinite;
  z-index: -1;
}

.glitch-title::after {
  color: var(--cyan);
  animation: glitch2 2.5s infinite;
  z-index: -1;
}

.drop-zone {
  animation: borderPulse 3s infinite;
}

.drop-zone:hover {
  animation: borderPulse 1s infinite, pulse 1s infinite;
}

.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 255, 65, 0.06);
  z-index: 9999;
  pointer-events: none;
  animation: scanline 4s linear infinite;
}

.neon-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.neon-btn:hover {
  animation: shake 0.4s;
  box-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
}

.neon-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.5s;
}

.neon-btn:hover::after {
  transform: rotate(45deg) translateX(100%);
}

.effect-card {
  transition: all 0.2s;
  border: 1px solid var(--border-dim);
}

.effect-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.chaos-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hot-pink);
  cursor: pointer;
  box-shadow: 0 0 10px var(--hot-pink);
}

.chaos-slider::-webkit-slider-track {
  height: 8px;
  border-radius: 4px;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--neon-green), var(--cyan), var(--hot-pink), var(--yellow));
  background-size: 300% 100%;
  animation: gradientMove 2s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

.timeline-segment {
  transition: all 0.15s;
  cursor: pointer;
}

.timeline-segment:hover {
  transform: scaleY(1.3);
  filter: brightness(1.4);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

.vhs-line {
  position: fixed;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 9998;
  animation: vhsTrack 8s infinite;
}