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

.dr {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(90vw, 300px);
}

.dr__halo {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 79, 232, 0.35), rgba(10, 79, 232, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}

.dr__odometer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.dr__digit {
  position: relative;
  width: 34px;
  height: 50px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.06);
}

.dr__reel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.dr__reel i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-style: normal;
  font-size: 34px;
  font-weight: 700;
  color: #0a4fe8;
}

.dr__percentSign {
  margin-left: 4px;
  font-size: 28px;
  font-weight: 700;
  color: #17141a;
}

.dr__track {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.1);
  overflow: hidden;
}

.dr__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #0a4fe8;
}

.dr__status {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.7);
  font-weight: 600;
}

.dr__row {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dr__node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #17141a;
  background: rgba(23, 20, 26, 0.1);
  cursor: pointer;
}

.dr__node.is-active {
  background: #0a4fe8;
  color: #ffffff;
}

.dr__node.is-done {
  background: #17141a;
  color: #ffffff;
}

.dr__controls {
  display: flex;
  gap: 8px;
}

.dr__btn {
  border: 1px solid rgba(23, 20, 26, 0.28);
  background: transparent;
  color: #17141a;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dr__btn--primary {
  background: #0a4fe8;
  border-color: #0a4fe8;
  color: #ffffff;
}

.dr__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

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

@media (max-width: 340px) {
  .dr {
    gap: 8px;
  }
  .dr__digit {
    width: 26px;
    height: 38px;
  }
  .dr__reel i {
    height: 38px;
    font-size: 26px;
  }
  .dr__percentSign {
    font-size: 20px;
  }
  .dr__track {
    height: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dr__reel {
    transition: none;
  }
}
