/*
  1UP Stats styling plugin: ambient motion + cinematic background.
  Keep heavy animation here so it is easy to disable, tune, or swap later.
*/

body::before {
  opacity: .34;
  background-image:
    linear-gradient(rgba(0, 212, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  animation: gridDrift 22s linear infinite;
}

body::after {
  opacity: .22;
  animation: slowSpin 36s linear infinite;
}

#spacefield {
  opacity: .9;
  mix-blend-mode: screen;
}

.panel::after {
  background: linear-gradient(100deg, transparent 0 42%, rgba(255, 255, 255, .045) 48%, transparent 55%);
}

.panel:hover::after {
  animation: shimmer 1.2s ease-out;
}

.data-rail {
  position: relative;
  display: flex;
  gap: 8px;
  overflow: hidden;
  min-height: 34px;
  margin: 12px 0 0;
}

.rail-seg {
  flex: 1;
  height: 34px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0, 255, 136, .08), rgba(0, 212, 255, .18), rgba(204, 136, 255, .10));
  border: 1px solid rgba(255, 255, 255, .06);
  transform-origin: center;
  animation: ringPulse 3s ease-in-out infinite;
}

.rail-seg:nth-child(2) { animation-delay: .3s; }
.rail-seg:nth-child(3) { animation-delay: .6s; }
.rail-seg:nth-child(4) { animation-delay: .9s; }
.rail-seg:nth-child(5) { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  #spacefield {
    display: none;
  }
}
