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

@property --p {
  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}
.badge {
  --p: 0;
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#17141a calc(var(--p) * 1%), #ffffff 0);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}
@supports (animation-timeline: scroll()) {
  .badge {
    animation: fill-ring linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes fill-ring {
  from {
    --p: 0;
  }
  to {
    --p: 100;
  }
}
.badge.is-demo {
  animation: fill-ring-loop 2s linear infinite;
}

@keyframes fill-ring-loop {
  0% {
    --p: 0;
  }
  92% {
    --p: 100;
  }
  100% {
    --p: 100;
  }
}
.badge__inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.badge__arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid #17141a;
}

@media (prefers-reduced-motion: reduce) {
  .badge, .badge.is-demo {
    animation: none !important;
    --p: 100;
  }
}
