html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ds {
  width: min(300px, 86vw);
  color: #17141a;
}

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

.ds__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20%;
  width: 56%;
  background: #17141a;
  border-radius: 999px;
}

.ds__thumb {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 18px;
  height: 18px;
  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: 76%;
}

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

.ds__thumb:active {
  cursor: grabbing;
}

.ds__bubble {
  position: absolute;
  top: -40px;
  transform: translate(-50%, 0);
  background: #17141a;
  color: #fff7e6;
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ds__bubble--merged {
  opacity: 0;
  background: #c93000;
}

.ds.is-merged .ds__bubble--lo,
.ds.is-merged .ds__bubble--hi {
  opacity: 0;
  transform: translate(-50%, 0) scale(0.6);
}

.ds.is-merged .ds__bubble--merged {
  opacity: 1;
}

.ds.is-demo .ds__thumb,
.ds.is-demo .ds__fill,
.ds.is-demo .ds__bubble {
  transition: left 2s cubic-bezier(0.2, 1.4, 0.4, 1), width 2s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 220ms ease-out, transform 220ms ease-out;
}

@media (max-width: 340px) {
  .ds {
    width: min(250px, 82vw);
  }
  .ds__bubble {
    font-size: 11px;
    top: -32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ds.is-demo .ds__thumb, .ds.is-demo .ds__fill, .ds.is-demo .ds__bubble {
    transition: none;
  }
}
