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

.rng {
  width: min(280px, 84vw);
  color: #fff7e6;
}

.rng__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.16);
  margin: 40px 0 16px;
}

.rng__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20%;
  width: 50%;
  background: #4cd4a6;
  border-radius: 999px;
}

.rng__thumb {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 18px;
  height: 18px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  cursor: grab;
  touch-action: none;
  transform: translate(-50%, -50%);
}

.rng__thumb:focus-visible {
  outline: 2px solid #4cd4a6;
  outline-offset: 2px;
}

.rng__thumb:active {
  cursor: grabbing;
}

.rng__labels {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rng.is-demo .rng__thumb,
.rng.is-demo .rng__fill {
  transition: left 2s cubic-bezier(0.2, 1.4, 0.4, 1), width 2s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@media (prefers-reduced-motion: reduce) {
  .rng.is-demo .rng__thumb, .rng.is-demo .rng__fill {
    transition: none;
  }
}
