/**
 * PERSONAL.SPACE — ANIMATIONS & ACCESSIBILITY
 */

@keyframes beaconPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

@keyframes beaconWave {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes vinylSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes vinylAmbientGlow {
  0%, 100% {
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.12);
  }
  50% {
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.28);
  }
}

@keyframes scoreFloatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.7);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -12px) scale(1.1);
  }
  80% {
    opacity: 0.9;
    transform: translate(-50%, -36px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50px) scale(0.85);
  }
}

@keyframes countdownZoom {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes statusFade {
  0% {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
  }
  15%, 85% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(2px);
  }
}

@keyframes glitchFlicker {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-1px, -1px);
  }
  60% {
    transform: translate(2px, 1px);
  }
  80% {
    transform: translate(1px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

/* Reduced Motion Mode for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .status-dot,
  .beacon-pulse,
  .vinyl-disc.spinning,
  .click-ripple,
  .score-float-indicator {
    animation: none !important;
  }

  .cursor-spotlight,
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}
