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

.ncard {
  width: 272px;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(160deg, #fff, #fff7e6 120%);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.ncard__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(185, 160, 255, 0.16);
  color: #b9a0ff;
}

.ncard__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #3a2f1f;
}

.ncard__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.ncard__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.ncard__input {
  flex: 1 1 140px;
  min-width: 0;
  border: 1px solid #e7ddc8;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-family: inherit;
}

.ncard__input:focus {
  outline: 2px solid #b9a0ff;
  outline-offset: 2px;
}

.ncard__input:disabled {
  background: #f4efe4;
  color: #9c8f74;
}

.ncard__btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #b9a0ff;
  color: #17141a;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ncard__btn:hover {
  filter: brightness(1.06);
}

.ncard__btn:disabled {
  cursor: default;
  filter: none;
  opacity: 0.8;
}

.ncard__msg {
  min-height: 16px;
  margin: 8px 0 0;
  font-size: 11px;
}

.ncard__msg.is-error {
  color: #c2361a;
}

.ncard__msg.is-ok {
  color: #50a26e;
}

.stage.is-demo .ncard__icon {
  animation: ncard-float 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes ncard-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .ncard__icon {
    animation: none;
  }
}
