.np-wave {
  --wave-color: var(--el-color-primary, #4361ee);
  position: relative;
  width: min(280px, calc(100vw - 80px));
  height: 108px;
  margin: 0 auto 22px;
}
.np-wave__glow {
  position: absolute;
  inset: 22px -12px 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--wave-color) 12%, transparent),
    transparent 68%
  );
  animation: np-ocean-breathe 4s ease-in-out infinite;
}
.np-wave__ocean {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.np-wave__surface {
  stroke: var(--wave-color);
  stroke-linecap: round;
  animation: np-ocean-drift 3.6s linear infinite;
}
.np-wave__surface--back {
  stroke: color-mix(in srgb, var(--wave-color) 45%, #84dcf5);
  stroke-width: 1.5;
  opacity: 0.35;
  animation-duration: 6s;
  animation-direction: reverse;
}
.np-wave__surface--middle {
  stroke: color-mix(in srgb, var(--wave-color) 65%, #8fc9ff);
  stroke-width: 5;
  opacity: 0.35;
  animation-duration: 4.8s;
  animation-delay: -2s;
}
.np-wave__surface--front {
  stroke-width: 3;
  opacity: 0.95;
}
.np-wave__spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wave-color) 65%, #9addff);
  animation: np-ocean-spark 3.2s ease-in-out infinite;
}
.np-wave__spark--one {
  left: 33%;
  top: 18px;
}
.np-wave__spark--two {
  right: 26%;
  top: 29px;
  width: 2px;
  height: 2px;
  animation-delay: -1.6s;
}
@keyframes np-ocean-drift {
  to {
    transform: translateX(-240px);
  }
}
@keyframes np-ocean-breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
@keyframes np-ocean-spark {
  0%,
  100% {
    opacity: 0;
    transform: translateY(5px);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-3px);
  }
}
.is-failed .np-wave * {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .np-wave * {
    animation: none;
  }
  .np-wave__spark {
    opacity: 0.4;
  }
}
