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

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

.cl {
  width: 100%;
  max-width: 300px;
  display: grid;
  gap: 12px;
}

.cl__field {
  position: relative;
  display: block;
}

.cl__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  border: 0;
  background: #fff7e6;
  color: #17141a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
}
.cl__input:focus {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.cl__badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.14);
  color: transparent;
  display: grid;
  place-items: center;
  opacity: 0.5;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms ease-out, color 220ms ease-out, opacity 220ms ease-out;
}
.cl__badge #clCheck {
  transition: stroke-dashoffset 600ms ease-out;
}

.cl__badge--on {
  background: #3ddc97;
  color: #17141a;
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.cl__badge--on #clCheck {
  stroke-dashoffset: 0;
}

.cl__sum {
  color: rgba(255, 247, 230, 0.72);
  font-weight: 600;
  font-size: 13px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

@media (max-width: 340px) {
  .cl__input {
    padding: 8px 32px 8px 12px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cl__badge, .cl__badge #clCheck {
    transition: none;
  }
}
