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

@property --percent {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.ring {
  --percent: 0;
  --zone: #2f6df6;
  position: relative;
  width: clamp(84px, 22vw, 108px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--zone) calc(var(--percent) * 1%), rgba(255, 255, 255, 0.35) 0);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: #ff4d1f;
}

.ring.is-demo {
  animation: sweep 2s ease-out infinite, zone 2s steps(1) infinite;
}

@keyframes sweep {
  0% {
    --percent: 0;
  }
  100% {
    --percent: 100;
  }
}
@keyframes zone {
  0% {
    --zone: #2f6df6;
  }
  40% {
    --zone: #2f6df6;
  }
  41% {
    --zone: #ffd23f;
  }
  74% {
    --zone: #ffd23f;
  }
  75% {
    --zone: #17141a;
  }
  100% {
    --zone: #17141a;
  }
}
.cap {
  margin: 14px 0 0;
  color: #17141a;
  font: 600 clamp(12px, 3.2vw, 14px)/1 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .ring.is-demo {
    animation: none;
    --percent: 76;
    --zone: #17141a;
  }
}
