/**
 * ==============================================================================
 * ADIT.EXE — KEYFRAME ANIMATIONS, GLITCHES & RESPONSIVE BREAKPOINTS
 * ==============================================================================
 */

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.75);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 40px rgba(222, 17, 16, 0.4);
  }
  50% {
    box-shadow: 0 0 80px rgba(222, 17, 16, 0.85);
  }
}

@keyframes letterOpen {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes laserScanVertical {
  0% {
    top: 0%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes pipPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

@keyframes glitchFlicker {
  0% { opacity: 0.98; }
  50% { opacity: 0.85; }
  52% { opacity: 0.99; }
  70% { opacity: 0.92; }
  100% { opacity: 1; }
}

/* ----------------------------------------------------------------------------
 * RESPONSIVE ADAPTATIONS
 * ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .dossier-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .dossier-avatar-frame {
    width: 200px;
    height: 200px;
  }
  .memory-card {
    grid-column: span 12;
  }
  .hud-nav-links {
    display: none; /* Mobile navigation simplified */
  }
}

@media (max-width: 768px) {
  .hud-navbar {
    padding: 0 16px;
  }
  .chapter-section {
    padding: 70px 16px;
  }
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .countdown-unit-box {
    padding: 20px 12px;
  }
  .letter-unfolded-card {
    padding: 32px 20px;
  }
  .particle-stage-wrap {
    height: 420px;
    min-height: 420px;
  }
  .particle-hud-overlay {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .particle-mode-selector {
    flex-wrap: wrap;
  }
  .lightbox-content-box {
    padding: 12px;
  }
  .lightbox-info-pane {
    padding: 16px;
  }
}

/* ----------------------------------------------------------------------------
 * REDUCED MOTION PREFERENCES
 * ---------------------------------------------------------------------------- */
@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;
  }
  .targeting-scanline,
  .targeting-rings-svg .ring-dashed,
  #spider-cursor-container,
  #spider-silk-canvas {
    display: none !important;
  }
}
