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

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

.rs-wrap {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 16px;
}

.rs-sweep {
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(61, 220, 132, 0.5) 10deg, transparent 34deg);
  border-radius: 999px;
  mix-blend-mode: screen;
}

.rs-text {
  position: relative;
  margin: 0;
  display: flex;
  gap: 0;
  font: 800 clamp(18px, 6vw, 28px)/1.2 "Space Mono", "Courier New", monospace;
  color: #fff7e6;
}

.rs-text span {
  opacity: 0.16;
}

@keyframes rs-rotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rs-lock {
  0%, 4% {
    opacity: 0.16;
  }
  14%, 88% {
    opacity: 1;
  }
  100% {
    opacity: 0.16;
  }
}
.rs-wrap.is-demo .rs-sweep {
  animation: rs-rotate 2s linear infinite;
}

.rs-wrap.is-demo .rs-text span {
  animation: rs-lock 2s ease-out infinite;
}

.rs-wrap.is-demo .rs-text span:nth-child(1) {
  animation-delay: calc(2s / 8 * 0);
}

.rs-wrap.is-demo .rs-text span:nth-child(2) {
  animation-delay: calc(2s / 8 * 1);
}

.rs-wrap.is-demo .rs-text span:nth-child(3) {
  animation-delay: calc(2s / 8 * 2);
}

.rs-wrap.is-demo .rs-text span:nth-child(4) {
  animation-delay: calc(2s / 8 * 3);
}

.rs-wrap.is-demo .rs-text span:nth-child(5) {
  animation-delay: calc(2s / 8 * 4);
}

.rs-wrap.is-demo .rs-text span:nth-child(6) {
  animation-delay: calc(2s / 8 * 5);
}

.rs-wrap.is-demo .rs-text span:nth-child(7) {
  animation-delay: calc(2s / 8 * 6);
}

.rs-wrap.is-demo .rs-text span:nth-child(8) {
  animation-delay: calc(2s / 8 * 7);
}

@media (prefers-reduced-motion: reduce) {
  .rs-sweep,
  .rs-wrap.is-demo .rs-sweep {
    animation: none !important;
    opacity: 0 !important;
  }
  .rs-text span,
  .rs-wrap.is-demo .rs-text span {
    animation: none !important;
    opacity: 1 !important;
  }
}
