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

.ss {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ss__ring {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 2px solid rgba(255, 247, 230, 0.18);
}

.ss__ticks {
  position: absolute;
  inset: 0;
}

.ss__tick {
  position: absolute;
  left: calc(50% - 2px);
  top: 4px;
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: #fff7e6;
  opacity: 0.5;
  transform-origin: 2px 84px;
  transform: rotate(calc(var(--i, 0) * 45deg));
}

.ss__handle {
  position: absolute;
  inset: 26px;
  appearance: none;
  border: none;
  border-radius: 50%;
  cursor: grab;
  background: #5b8cf8;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform: rotate(calc(var(--angle, 0) * 1deg));
  touch-action: none;
}

.ss__handle:active {
  cursor: grabbing;
}

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

.ss__handle::after {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% - 3px);
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: #17141a;
}

.ss__value {
  margin: 0;
  color: #fff7e6;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 340px) {
  .ss__ring {
    width: 130px;
    height: 130px;
  }
  .ss__handle {
    inset: 18px;
  }
  .ss__tick {
    transform-origin: 2px 61px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ss__handle {
    transition: none;
  }
}
