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

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

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

.cl__field {
  display: block;
}

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

.cl__track {
  position: relative;
  height: 12px;
  border-radius: 8px;
  background: rgba(10, 79, 232, 0.14);
  overflow: hidden;
}

.cl__fill {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #2f6df6;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms ease-out, background-color 300ms ease-out;
}

.cl--hit .cl__fill {
  background: #c2361a;
}

.cl__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 600 13px/1.2 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #0a4fe8;
}

.cl__score b {
  font-variant-numeric: tabular-nums;
}

.cl__warn {
  color: #c2361a;
  opacity: 0;
  transform: scale(0.7);
  transform-origin: right center;
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

@media (max-width: 340px) {
  .cl {
    max-width: 260px;
  }
  .cl__input {
    padding: 8px 12px;
    font-size: 14px;
  }
  .cl__row {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cl__fill, .cl__warn {
    transition: none;
  }
}
