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

.ds {
  width: min(280px, 84vw);
  color: #17141a;
  text-align: center;
}

.ds__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.1);
  margin: 40px 0 16px;
  border: 1px solid rgba(23, 20, 26, 0.12);
}

.ds__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10%;
  width: 30%;
  background: #b9a0ff;
  border-radius: 999px;
  cursor: grab;
  touch-action: none;
}

.ds__fill:active {
  cursor: grabbing;
}

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

.ds__thumb--hi {
  left: 40%;
}

.ds__thumb:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

.ds__thumb:active {
  cursor: grabbing;
}

.ds__readout {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.ds__caption {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.68);
}

.ds.is-demo .ds__thumb,
.ds.is-demo .ds__fill {
  transition: left 2s ease-out, width 2s ease-out;
}

@media (max-width: 340px) {
  .ds {
    width: min(240px, 80vw);
  }
  .ds__readout {
    font-size: 16px;
  }
  .ds__caption {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ds.is-demo .ds__thumb, .ds.is-demo .ds__fill {
    transition: none;
  }
}
