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

.cmp {
  display: flex;
  gap: 32px;
  width: min(340px, 92vw);
}

.cmp__panel {
  flex: 1;
  text-align: center;
}

.cmp__label {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ds {
  color: #17141a;
}

.ds__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.14);
  margin: 24px 0 12px;
}

.ds__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25%;
  width: 45%;
  background: #2f6df6;
  border-radius: 999px;
}

.ds__thumb {
  position: absolute;
  top: 50%;
  left: 25%;
  width: 16px;
  height: 16px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #17141a;
  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: 70%;
}

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

button.ds__thumb:active {
  cursor: grabbing;
}

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

.ds.is-demo .ds__thumb,
.ds.is-demo .ds__fill {
  transition: left 2s cubic-bezier(0.2, 1.4, 0.4, 1), width 2s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.ds--mirror .ds__thumb,
.ds--mirror .ds__fill {
  transition: none;
}

.ds--mirror .ds__thumb {
  cursor: default;
}

@media (max-width: 340px) {
  .cmp {
    width: min(280px, 92vw);
    gap: 16px;
  }
  .ds__readout {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ds.is-demo .ds__thumb, .ds.is-demo .ds__fill {
    transition: none;
  }
}
