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

.sh {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh__ring {
  position: relative;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  touch-action: none;
}

.sh__seg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from calc(var(--start, 0) * 1deg), #5b8cf8 0deg calc(var(--span, 0) * 1deg), transparent calc(var(--span, 0) * 1deg) 360deg);
  mask-image: radial-gradient(circle, transparent 58%, black 60%, black 84%, transparent 86%);
  -webkit-mask-image: radial-gradient(circle, transparent 58%, black 60%, black 84%, transparent 86%);
  transform: scale(1);
  filter: brightness(0.82);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sh__seg--active {
  transform: scale(1.08);
  filter: brightness(1.3);
}

.sh__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.sh__pct {
  font-size: 26px;
  font-weight: 800;
  color: #17141a;
  line-height: 1;
}

.sh__label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.68);
  letter-spacing: 0.04em;
}

@media (max-width: 340px) {
  .sh__ring {
    width: 150px;
    height: 150px;
  }
  .sh__pct {
    font-size: 20px;
  }
  .sh__label {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sh__seg {
    transition: none;
  }
}
