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

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

.cx__field {
  display: block;
}

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

.cx__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cx__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1.2 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: rgba(23, 20, 26, 0.68);
}

.cx__badge {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: rgba(23, 20, 26, 0.12);
  color: transparent;
  transition: background-color 220ms ease-out, color 220ms ease-out;
}
.cx__badge svg {
  transform: scale(0.5);
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease-out;
}

.cx__item--on {
  color: #17141a;
}
.cx__item--on .cx__badge {
  background: #17141a;
  color: #fff7e6;
}
.cx__item--on .cx__badge svg {
  transform: scale(1);
  opacity: 1;
}

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

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

@media (max-width: 340px) {
  .cx {
    max-width: 260px;
  }
  .cx__input {
    padding: 8px 12px;
    font-size: 14px;
  }
  .cx__item {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cx__badge, .cx__fill {
    transition: none;
  }
}
