body { isolation: isolate; }

.background-ripple {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  left: var(--ripple-x);
  top: var(--ripple-y);
  width: clamp(340px, 70vw, 1000px);
  aspect-ratio: 1;
  border: 2px solid #fcfff0dc;
  border-radius: 50%;
  box-shadow: 0 0 22px #eef9e7d9, inset 0 0 20px #385a3e5c;
  animation: background-ripple 850ms cubic-bezier(.13, .56, .28, 1) both;
}
.background-ripple::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid #385a3e89;
  border-radius: inherit;
}
@keyframes background-ripple {
  0% { transform: translate(-50%, -50%) scale(.03); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .background-ripple { display: none; }
}
