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

.ct {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.ct__hint {
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.35;
  color: #17141a;
  text-align: center;
}

.ct__wrap {
  position: relative;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  --pct: 50;
  --hue: 165;
  --sat: 66;
}

.ct__range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
}

.ct__range:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 4px;
  border-radius: 999px;
}

.ct__range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, hsl(calc(var(--hue) * 1deg), calc(var(--sat) * 1%), 50%) calc(var(--pct) * 1%), rgba(23, 20, 26, 0.14) calc(var(--pct) * 1%));
}

.ct__range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: hsl(calc(var(--hue) * 1deg), calc(var(--sat) * 1%), 50%);
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  margin-top: -6px;
}

.ct__range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.14);
}

.ct__range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: hsl(calc(var(--hue) * 1deg), calc(var(--sat) * 1%), 50%);
}

.ct__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: hsl(calc(var(--hue) * 1deg), calc(var(--sat) * 1%), 50%);
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.ct__meta {
  margin: 0;
  font-size: clamp(9px, 2.4vw, 11px);
  color: rgba(23, 20, 26, 0.82);
}

.ct__tag {
  font-weight: 700;
  color: #0a4fe8;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

.ct__unit {
  color: rgba(23, 20, 26, 0.72);
}

@media (max-width: 340px) {
  .ct {
    gap: 8px;
    max-width: 280px;
  }
  .ct__hint {
    font-size: 8px;
  }
  .ct__meta {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct__range {
    transition: none;
  }
}
