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

.dr {
  width: min(300px, 86vw);
  color: #fff7e6;
  text-align: center;
}

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

.dr__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: #4cd4a6;
  border-radius: 999px;
  transition: width 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dr__dot {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  appearance: none;
  border: 2px solid rgba(255, 247, 230, 0.5);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 300ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dr__dot:nth-of-type(2) {
  left: 0%;
}

.dr__dot:nth-of-type(3) {
  left: 25%;
}

.dr__dot:nth-of-type(4) {
  left: 50%;
}

.dr__dot:nth-of-type(5) {
  left: 75%;
}

.dr__dot:nth-of-type(6) {
  left: 100%;
}

.dr__dot:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.dr__dot[aria-checked=true] {
  border-color: #fff7e6;
  transform: translate(-50%, -50%) scale(1.3);
}

.dr__label {
  margin: 12px 0 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 340px) {
  .dr {
    width: min(250px, 82vw);
  }
  .dr__dot {
    width: 16px;
    height: 16px;
  }
  .dr__label {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dr__fill, .dr__dot {
    transition: none;
  }
}
