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

.range {
  box-sizing: border-box;
  position: relative;
  width: min(72vw, 220px);
  height: 28px;
}

.range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--min-pct, 20) * 1%);
  right: calc((100 - var(--max-pct, 70)) * 1%);
  background: #2f6df6;
  transition: left 300ms ease-out, right 300ms ease-out;
}

input[type=range] {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  appearance: none;
  pointer-events: none;
}

input[type=range]::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  cursor: pointer;
}

input[type=range]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  cursor: pointer;
}

.range__labels {
  box-sizing: border-box;
  width: min(72vw, 220px);
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #fff7e6;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 340px) {
  .range {
    width: 82vw;
  }
  .range__labels {
    width: 82vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .range__fill {
    transition: none;
  }
}
