/* Motion & Fade Animations */

/* Fade In Up */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Engine Pulse Effect for Main Game */
@keyframes enginePulse {
  0% { box-shadow: 0 0 40px rgba(239, 68, 68, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 0 60px rgba(249, 115, 22, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.6); }
  100% { box-shadow: 0 0 40px rgba(239, 68, 68, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5); }
}

.game-wrapper {
  animation: enginePulse 4s infinite ease-in-out;
}

/* Speed Lines Background */
.speed-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.line {
  position: absolute;
  background: linear-gradient(to bottom, rgba(239, 68, 68, 0), rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0));
  width: 2px;
  height: 20vh;
  opacity: 0;
  animation: dropSpeed 3s infinite linear;
}

@keyframes dropSpeed {
  0% { transform: translateY(-100vh); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Generate random lines via inline nth-child if generated by JS, or static CSS */
.line:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 2s; }
.line:nth-child(2) { left: 30%; animation-delay: 1.5s; animation-duration: 3s; }
.line:nth-child(3) { left: 50%; animation-delay: 0.5s; animation-duration: 2.5s; }
.line:nth-child(4) { left: 70%; animation-delay: 2s; animation-duration: 2.2s; }
.line:nth-child(5) { left: 90%; animation-delay: 1s; animation-duration: 2.8s; }

/* Subtle Float */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.hero-visual {
  animation: float 6s ease-in-out infinite;
}