/* A separate, non-interactive layer over the Steam artwork. */
#index .VideoCover::before,
#index .VideoCover::after {
  content: none !important;
  animation: none !important;
}

#index .VideoCover .hero-sparks {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

#index .VideoCover .hero-spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--width);
  height: var(--height);
  border-radius: 50%;
  background: #a8ff9e;
  box-shadow: 0 0 4px rgba(105,255,103,.95), 0 0 10px rgba(64,231,79,.62);
  opacity: 0;
  pointer-events: none;
  animation: respa-spark-float var(--duration) ease-in-out var(--delay) infinite;
  animation-play-state: paused;
}

#index .VideoCover .hero-sparks.is-running .hero-spark { animation-play-state: running; }

@keyframes respa-spark-float {
  0% { opacity: 0; transform: translate3d(0, 8px, 0) rotate(var(--tilt)) scale(.65); }
  15% { opacity: .92; }
  43% { opacity: .8; }
  63% { opacity: .48; }
  76% { opacity: .72; }
  100% { opacity: 0; transform: translate3d(var(--drift-x), var(--drift-y), 0) rotate(var(--tilt)) scale(.55); }
}

/* Keep the calculator area clear when it overlays the desktop artwork. */
@media (min-width: 1024px) {
  #index .VideoCover .hero-sparks { clip-path: polygon(0 max(42%, 220px), max(52%, 265px) max(42%, 220px), max(52%, 265px) 0, 100% 0, 100% 100%, 0 100%); }
}

@media (prefers-reduced-motion: reduce) {
  #index .VideoCover .hero-spark { animation: none !important; opacity: .62; transform: rotate(var(--tilt)); }
  #index .VideoCover .hero-spark:nth-child(even) { display: none; }
}
