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

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

.otp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(280px, 88vw);
}

.otp-card__icon {
  width: 22px;
  height: 22px;
  color: #2f6df6;
}

.otp-card__desc {
  margin: 0 0 4px;
  font-size: 12px;
  color: #6b6455;
  font-family: inherit;
  text-align: center;
}

.otp {
  display: flex;
  gap: 8px;
}

.otp__box {
  width: 34px;
  height: 42px;
  border: 2px solid #d8d2c4;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  color: #17141a;
  box-shadow: none;
}

.otp__box:focus-visible {
  outline: none;
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.25);
}

.otp.is-demo .otp__box {
  animation: otp-wave 2s ease-out infinite;
}

.otp.is-demo .otp__box:nth-child(1) {
  animation-delay: 0ms;
}

.otp.is-demo .otp__box:nth-child(2) {
  animation-delay: 120ms;
}

.otp.is-demo .otp__box:nth-child(3) {
  animation-delay: 240ms;
}

.otp.is-demo .otp__box:nth-child(4) {
  animation-delay: 360ms;
}

.otp.is-demo .otp__box:nth-child(5) {
  animation-delay: 480ms;
}

.otp.is-demo .otp__box:nth-child(6) {
  animation-delay: 600ms;
}

@keyframes otp-wave {
  0%, 84%, 100% {
    border-color: #d8d2c4;
    box-shadow: none;
    transform: scale(1);
  }
  6% {
    border-color: #2f6df6;
    box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.3), 0 0 22px 12px rgba(47, 109, 246, 0.35);
    transform: scale(1.1);
  }
  18% {
    border-color: #d8d2c4;
    box-shadow: none;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .otp.is-demo .otp__box {
    animation: none;
  }
}
