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

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

.nl {
  width: min(320px, 94vw);
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.nl__ic {
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  color: #4cd4a6;
  animation: nl-bob 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes nl-bob {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-4deg);
  }
}
.nl__title {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
}

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

.nl__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  border: 1.5px solid rgba(23, 20, 26, 0.16);
  border-radius: 12px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  color: #17141a;
}

.nl__input:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 1px;
}

.nl__input.is-shake {
  animation: nl-shake 0.32s ease-out;
}

@keyframes nl-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
.nl__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: #4cd4a6;
  color: #17141a;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.nl__check {
  color: #17141a;
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  transition: stroke-dashoffset 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nl.is-done .nl__check {
  stroke-dashoffset: 0;
}

.nl.is-done .nl__submit {
  background: #50a26e;
  color: #ffffff;
}

.nl__msg {
  margin: 8px 0 0;
  min-height: 14px;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.6);
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .nl__ic, .nl__input.is-shake, .nl__check {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .nl {
    padding: 8px 8px;
    width: min(280px, 92vw);
  }
  .nl__ic {
    margin: 0 auto 4px;
  }
  .nl__ic svg {
    width: 16px;
    height: 16px;
  }
  .nl__title {
    margin: 0 0 4px;
    font-size: 11px;
  }
  .nl__row {
    gap: 4px;
  }
  .nl__input {
    padding: 4px 8px;
    font-size: 10px;
  }
  .nl__submit {
    padding: 4px 8px;
    font-size: 10px;
  }
  .nl__msg {
    margin-top: 4px;
    min-height: 0;
    font-size: 9px;
  }
}
