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

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #12121a; }
::-webkit-scrollbar-thumb { background: #2a2a3e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00ff41; }

@keyframes glitch {
  0% { text-shadow: 2px 0 #ff006e, -2px 0 #00b4d8; }
  20% { text-shadow: -3px 1px #ff006e, 3px -1px #00b4d8; }
  40% { text-shadow: 3px -2px #ff006e, -3px 2px #00b4d8; }
  60% { text-shadow: -2px 3px #ff006e, 2px -3px #00b4d8; }
  80% { text-shadow: 1px -1px #ff006e, -1px 1px #00b4d8; }
  100% { text-shadow: 2px 0 #ff006e, -2px 0 #00b4d8; }
}

@keyframes pulse-border {
  0%, 100% { border-color: #00ff41; box-shadow: 0 0 10px rgba(0,255,65,0.3); }
  50% { border-color: #ff006e; box-shadow: 0 0 20px rgba(255,0,110,0.4); }
}

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

@keyframes deepfry-ui {
  0% { filter: contrast(1) saturate(1) brightness(1); }
  10% { filter: contrast(3) saturate(5) brightness(1.5) hue-rotate(30deg); }
  20% { filter: contrast(5) saturate(8) brightness(2) hue-rotate(90deg); }
  50% { filter: contrast(4) saturate(6) brightness(1.8) hue-rotate(180deg); }
  80% { filter: contrast(2) saturate(3) brightness(1.3) hue-rotate(270deg); }
  100% { filter: contrast(1) saturate(1) brightness(1) hue-rotate(360deg); }
}

/* The Z mascot — glitchy stutter/vibrate */
@keyframes z-stutter {
  0%, 88%, 100% { transform: translate(0,0) rotate(0deg); text-shadow: 0 0 6px #00ff41; }
  90% { transform: translate(-2px,1px) rotate(-6deg) skewX(6deg); text-shadow: 3px 0 #ff006e, -3px 0 #00b4d8; }
  92% { transform: translate(3px,-1px) rotate(5deg) skewX(-4deg); text-shadow: -3px 0 #ff006e, 3px 0 #00b4d8; }
  94% { transform: translate(-1px,2px) rotate(-3deg); text-shadow: 2px 1px #ffd60a; }
  96% { transform: translate(2px,-1px) rotate(2deg); text-shadow: 0 0 12px #00ff41; }
}

.z-mascot {
  display: inline-block;
  animation: z-stutter 4s infinite;
  transform-origin: center;
}
.z-mascot-static { color: #00ff41; text-shadow: 0 0 12px #00ff41; }

/* The big ZZZAP button */
@keyframes zzzap-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0,255,65,0.5), inset 0 0 8px rgba(0,255,65,0.2); }
  50% { box-shadow: 0 0 24px rgba(255,214,10,0.6), inset 0 0 14px rgba(255,0,110,0.3); }
}
.zzzap-btn {
  background: linear-gradient(120deg, #00ff41, #00b4d8, #ffd60a);
  background-size: 200% 100%;
  color: #0a0a0f;
  border: 2px solid #00ff41;
  animation: zzzap-pulse 2s ease-in-out infinite;
  transition: transform 0.1s ease, filter 0.1s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.zzzap-btn:hover:not(:disabled) {
  transform: scale(1.04) translateY(-1px);
  filter: brightness(1.15) saturate(1.3);
  background-position: 100% 0;
}
.zzzap-btn:active:not(:disabled) { transform: scale(0.96); }
.zzzap-btn:disabled {
  background: #222; color: #555; border-color: #333; animation: none; cursor: not-allowed;
}

/* Z-STORM full screen chaos */
.z-storm-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden;
  background: radial-gradient(circle, rgba(0,255,65,0.05), transparent 70%);
}
@keyframes z-fall {
  0% { transform: translateY(-15vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(115vh) rotate(720deg); opacity: 0.9; }
}
.z-storm-z {
  position: absolute; top: 0; font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; animation: z-fall 2.4s linear forwards; text-shadow: 0 0 10px currentColor;
}

.glitch-text { animation: glitch 0.3s infinite; }

.scanline-overlay::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(0,255,65,0.1); animation: scanline 3s linear infinite; pointer-events: none;
}

.deepfry-active { animation: deepfry-ui 3s ease-in-out forwards; }

.neon-glow-green { box-shadow: 0 0 5px rgba(0,255,65,0.3), 0 0 10px rgba(0,255,65,0.1); }
.neon-glow-pink { box-shadow: 0 0 5px rgba(255,0,110,0.3), 0 0 10px rgba(255,0,110,0.1); }
.neon-glow-blue { box-shadow: 0 0 5px rgba(0,180,216,0.3), 0 0 10px rgba(0,180,216,0.1); }

.btn-neon { transition: all 0.15s ease; border: 1px solid transparent; }
.btn-neon:hover { transform: scale(1.03); border-color: #00ff41; box-shadow: 0 0 15px rgba(0,255,65,0.4); }
.btn-neon:active { transform: scale(0.97); }
.btn-neon:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-neon:disabled:hover { transform: none; border-color: transparent; box-shadow: none; }
.btn-pink:hover { border-color: #ff006e; box-shadow: 0 0 15px rgba(255,0,110,0.4); }

.timeline-clip { transition: box-shadow 0.1s ease; }
.timeline-clip:hover { box-shadow: 0 0 8px rgba(0,255,65,0.5); }
.timeline-clip.selected { box-shadow: 0 0 12px rgba(0,180,216,0.8); border: 1px solid #00b4d8; }

.drop-zone-active { background: rgba(0,255,65,0.05) !important; border-color: #00ff41 !important; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 4px;
  background: #2a2a3e; border-radius: 2px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: #00ff41; cursor: pointer; box-shadow: 0 0 6px rgba(0,255,65,0.5);
}
input[type="range"]::-webkit-slider-thumb:hover { background: #33ff6a; box-shadow: 0 0 10px rgba(0,255,65,0.8); }

.tooltip-container { position: relative; }
.tooltip-container .tooltip-text {
  visibility: hidden; opacity: 0; position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%); background: #1a1a2e; color: #00ff41; padding: 4px 10px;
  border-radius: 4px; font-size: 11px; white-space: nowrap; border: 1px solid #00ff41;
  z-index: 999; transition: opacity 0.15s; pointer-events: none; font-family: 'JetBrains Mono', monospace;
}
.tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; }