html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ripple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 3vw, 16px);
  width: min(160px, 55vw);
  aspect-ratio: 1;
}
.ripple span {
  border-radius: 50%;
  background: #17141a;
  animation: ripple-loop 2s ease-out infinite;
}
.ripple span:nth-child(1) {
  animation-delay: 126.9ms;
}
.ripple span:nth-child(2) {
  animation-delay: 90ms;
}
.ripple span:nth-child(3) {
  animation-delay: 126.9ms;
}
.ripple span:nth-child(4) {
  animation-delay: 90ms;
}
.ripple span:nth-child(5) {
  animation-delay: 0ms;
}
.ripple span:nth-child(6) {
  animation-delay: 90ms;
}
.ripple span:nth-child(7) {
  animation-delay: 126.9ms;
}
.ripple span:nth-child(8) {
  animation-delay: 90ms;
}
.ripple span:nth-child(9) {
  animation-delay: 126.9ms;
}

@keyframes ripple-loop {
  0%, 4% {
    opacity: 0;
    transform: scale(0.3);
  }
  24%, 58% {
    opacity: 1;
    transform: scale(1);
  }
  84%, 100% {
    opacity: 0;
    transform: scale(0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ripple span {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
