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

.sf {
  width: min(340px, 94vw);
  overflow: hidden;
}

.sf__title {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
  text-align: center;
}

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

.sf__input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid rgba(23, 20, 26, 0.16);
  border-radius: 12px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  background: #fff;
}

.sf__input.shake {
  animation: sf-shake 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes sf-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.sf__btn {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
}

.sf__btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(47, 109, 246, 0.55), transparent 70%);
  animation: sf-glow 1.8s ease-in-out infinite;
}

@keyframes sf-glow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}
.sf__check {
  position: relative;
  z-index: 1;
}

.sf__btn.is-done {
  background: #51a477;
}

.sf__check {
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.sf__btn.is-done .sf__check {
  animation: sf-check 300ms cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

@keyframes sf-check {
  to {
    stroke-dashoffset: 0;
  }
}
.sf__status {
  min-height: 16px;
  margin: 8px 0 0;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.6);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .sf__btn::before, .sf__input.shake, .sf__btn.is-done .sf__check {
    animation: none !important;
  }
  .sf__btn.is-done .sf__check {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .sf__title {
    margin-bottom: 8px;
  }
}
