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

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

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

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

.ds__thumb {
  position: absolute;
  top: 50%;
  left: 15%;
  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;
  padding: 0;
  transform: translate(-50%, -50%);
}

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

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

.ds__thumb:active {
  cursor: grabbing;
}

.ds__thumb.is-blocked {
  background: #c93000;
}

.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(255, 247, 230, 0.72);
}

.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), background 220ms 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;
  }
}
