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

@property --percent {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.gauge {
  --percent: 0;
  position: relative;
  width: clamp(140px, 38vw, 170px);
  height: clamp(70px, 19vw, 85px);
  overflow: hidden;
}

.gauge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #2f6df6 calc(var(--percent) * 1.8deg), rgba(23, 20, 26, 0.12) 0);
}

.gauge__needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: calc(100% - 6px);
  background: #17141a;
  border-radius: 2px;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(calc(var(--percent) * 1.8deg - 90deg));
}

.gauge.is-demo {
  animation: sweep 2s ease-out infinite;
}

@keyframes sweep {
  0% {
    --percent: 0;
  }
  100% {
    --percent: 100;
  }
}
.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) {
  .gauge.is-demo {
    animation: none;
    --percent: 76;
  }
}
