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

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

.cc {
  width: 100%;
  max-width: 320px;
  display: grid;
  gap: 12px;
}

.cc__field {
  display: block;
}

.cc__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font: 500 16px/1.3 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  letter-spacing: 0.04em;
  -webkit-text-security: disc;
}
.cc__input:focus {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.cc__badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cc__badge {
  height: 32px;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.08);
  display: grid;
  place-items: center;
  transform: scale(0.86);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms ease-out;
}
.cc__badge span {
  font: 700 12px/1 "Space Mono", monospace;
  color: rgba(23, 20, 26, 0.55);
  transition: color 220ms ease-out;
}
.cc__badge--on {
  background: #17141a;
  transform: scale(1);
}
.cc__badge--on span {
  color: #ffffff;
}

.cc__track {
  position: relative;
  height: 12px;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.1);
  overflow: hidden;
}

.cc__fill {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #17141a;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms ease-out;
}

.cc__label {
  font: 600 13px/1.2 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

@media (max-width: 340px) {
  .cc {
    max-width: 260px;
  }
  .cc__input {
    padding: 8px 12px;
    font-size: 14px;
  }
  .cc__badge {
    height: 28px;
  }
  .cc__badge span {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc__badge, .cc__fill {
    transition: none;
  }
}
