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);
}

.captcha-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1.5px solid #d8d2c4;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  cursor: pointer;
  font-family: inherit;
}

.captcha__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.captcha__box {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 4px;
  border: 2px solid #c9c2b2;
  background: #ffffff;
}

.captcha__spinner {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 3px solid rgba(76, 212, 166, 0.2);
  border-top-color: #4cd4a6;
  opacity: 0;
}

.captcha__check {
  position: absolute;
  inset: 0;
  color: #4cd4a6;
  opacity: 0;
  transform: scale(0.4);
}

.captcha__label {
  font-size: 13px;
  font-weight: 600;
  color: #17141a;
}

.captcha__badge {
  font-size: 11px;
  font-weight: 700;
  color: #4cd4a6;
  opacity: 0;
  transform: translateY(4px);
}

.captcha__input:checked ~ .captcha__box .captcha__check {
  opacity: 1;
  transform: scale(1);
  transition: opacity 220ms ease-out, transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.captcha__input:checked ~ .captcha__box {
  border-color: #4cd4a6;
}

.captcha__input:focus-visible ~ .captcha__box {
  outline: 2px solid #4cd4a6;
  outline-offset: 2px;
}

.captcha-card.is-demo .captcha {
  animation: capt-card 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.captcha-card.is-demo .captcha__spinner {
  animation: capt-spinner 2s linear infinite;
}

.captcha-card.is-demo .captcha__check {
  animation: capt-check 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.captcha-card.is-demo .captcha__badge {
  animation: capt-badge 2s ease-out infinite;
}

@keyframes capt-card {
  0%, 28% {
    background: #ffffff;
    border-color: #d8d2c4;
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
  40%, 84% {
    background: rgb(91.5764705882%, 97.9764705882%, 95.8117647059%);
    border-color: #4cd4a6;
    box-shadow: 0 0 0 4px rgba(76, 212, 166, 0.18), 0 0 26px 14px rgba(76, 212, 166, 0.22), 0 6px 12px rgba(23, 20, 26, 0.32);
  }
  92%, 100% {
    background: #ffffff;
    border-color: #d8d2c4;
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
}
@keyframes capt-spinner {
  0% {
    opacity: 0;
    transform: rotate(0deg);
  }
  8% {
    opacity: 1;
  }
  28% {
    opacity: 1;
    transform: rotate(560deg);
  }
  32%, 100% {
    opacity: 0;
    transform: rotate(560deg);
  }
}
@keyframes capt-check {
  0%, 28% {
    opacity: 0;
    transform: scale(0.4);
  }
  40% {
    opacity: 1;
    transform: scale(1.15);
  }
  46%, 84% {
    opacity: 1;
    transform: scale(1);
  }
  92%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
}
@keyframes capt-badge {
  0%, 40% {
    opacity: 0;
    transform: translateY(4px);
  }
  48%, 84% {
    opacity: 1;
    transform: translateY(0);
  }
  92%, 100% {
    opacity: 0;
    transform: translateY(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .captcha-card.is-demo .captcha__spinner,
  .captcha-card.is-demo .captcha__check,
  .captcha-card.is-demo .captcha__badge {
    animation: none;
  }
  .captcha__input:checked ~ .captcha__box .captcha__check {
    transition: none;
  }
}
