/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
}

/* Glitch animation */
@keyframes glitch {
  0% { text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
  20% { text-shadow: -2px 2px #ff00ff, 2px -2px #00ffff; }
  40% { text-shadow: 2px -2px #ff00ff, -2px 2px #00ffff; clip-path: inset(40% 0 61% 0); }
  41% { clip-path: inset(0 0 0 0); }
  60% { text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; clip-path: inset(72% 0 12% 0); }
  61% { clip-path: inset(0 0 0 0); }
  80% { text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff; }
  100% { text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(-1deg); }
  40% { transform: skew(2deg); }
  60% { transform: skew(-0.5deg); }
  80% { transform: skew(1deg); }
  100% { transform: skew(0deg); }
}

.glitch-text {
  animation: glitch 3s infinite linear alternate-reverse, glitch-skew 4s infinite ease-in-out;
}

@keyframes bounce-tennis {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-12px) translateX(8px); }
  50% { transform: translateY(0) translateX(16px); }
  75% { transform: translateY(-8px) translateX(24px); }
}

.tennis-bounce {
  display: inline-block;
  animation: bounce-tennis 1.5s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 65, 0.3), 0 0 10px rgba(0, 255, 65, 0.1); }
  50% { box-shadow: 0 0 10px rgba(0, 255, 65, 0.5), 0 0 20px rgba(0, 255, 65, 0.2), 0 0 30px rgba(0, 255, 65, 0.1); }
}

.neon-glow-green {
  animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse-pink {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 255, 0.3), 0 0 10px rgba(255, 0, 255, 0.1); }
  50% { box-shadow: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.2); }
}

.neon-glow-pink {
  animation: neon-pulse-pink 2s ease-in-out infinite;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fade-in-up 0.3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00ff41; }

/* Card hover glow */
.match-card {
  transition: all 0.2s ease;
  border: 1px solid #2a2a2a;
}
.match-card:hover {
  border-color: #00ff41;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.15), inset 0 0 15px rgba(0, 255, 65, 0.02);
}

/* VHS tracking lines */
@keyframes vhs-tracking {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.disclaimer-banner {
  background: #000;
  border-top: 2px solid #ff00ff;
  border-bottom: 2px solid #ff00ff;
  position: relative;
  overflow: hidden;
}

.disclaimer-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 0, 255, 0.03) 3px,
    rgba(255, 0, 255, 0.03) 6px
  );
  pointer-events: none;
}

/* Round circle glow for active */
.round-active {
  box-shadow: 0 0 8px #00ff41, 0 0 16px rgba(0, 255, 65, 0.4);
}

/* Modal overlay */
.modal-overlay {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

/* Status dot animation */
@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-active {
  animation: status-blink 1.5s ease-in-out infinite;
}

input, textarea, select {
  font-family: 'IBM Plex Sans', sans-serif;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #00ff41 !important;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}