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

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

.sp {
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.sp__dial {
  position: relative;
  display: grid;
  place-items: center;
}

.sp__svg {
  width: clamp(108px, 33vw, 128px);
  height: clamp(108px, 33vw, 128px);
}

.sp__rings {
  transform: rotate(-90deg);
  transform-origin: 64px 64px;
}

.sp__track {
  fill: none;
  stroke: rgba(23, 20, 26, 0.16);
  stroke-width: 10;
}

.sp__ring {
  fill: none;
  stroke: #2f6df6;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.726;
  stroke-dashoffset: 104.552;
}

.sp__line {
  fill: none;
  stroke: #17141a;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.sp__badge {
  position: absolute;
  right: 6%;
  bottom: 12%;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #17141a;
  color: #ffd23f;
}

.sp__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp__cap {
  font-size: 11px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.72);
}

.sp__btn {
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #ffd23f;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.sp__btn:hover, .sp__btn:focus-visible {
  transform: translateY(-2px);
}

.sp.is-demo .sp__ring {
  animation: sp-wind 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes sp-wind {
  0% {
    stroke-dashoffset: 326.726;
  }
  45%, 55% {
    stroke-dashoffset: 104.552;
  }
  100% {
    stroke-dashoffset: 326.726;
  }
}
.sp.is-demo .sp__line {
  animation: sp-draw 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes sp-draw {
  0% {
    stroke-dashoffset: 100;
  }
  45%, 55% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 100;
  }
}
@media (max-width: 340px) {
  .sp__cap {
    font-size: 10px;
  }
  .sp__row {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp.is-demo .sp__ring, .sp.is-demo .sp__line {
    animation: none !important;
  }
  .sp__btn {
    transition: none;
  }
}
