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

.pv {
  --h: clamp(172px, 60vh, 212px);
  --fw: min(240px, 84vw);
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(300px, 92vw);
}

.pv__scroller {
  height: var(--h);
  overflow-y: auto;
  scrollbar-width: none;
  scroll-timeline-name: --pv-scroll;
  scroll-timeline-axis: block;
}
.pv__scroller::-webkit-scrollbar {
  display: none;
}
.pv__scroller:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.pv__tall {
  position: relative;
  height: 340%;
}

.pv__frame {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  display: grid;
  align-content: start;
  gap: 8px;
  height: var(--h);
  margin: 0;
  padding: 20px 16px 0;
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  overflow: hidden;
}

.pv__bar {
  position: absolute;
  background: #2f6df6;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-timeline: --pv-scroll;
}

.pv__bar--top {
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  animation-name: pv-draw-x;
  animation-range: 0% 25%;
}

.pv__bar--right {
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  transform-origin: center top;
  transform: scaleY(0);
  animation-name: pv-draw-y;
  animation-range: 25% 50%;
}

.pv__bar--bottom {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 4px;
  transform-origin: right center;
  transform: scaleX(0);
  animation-name: pv-draw-x;
  animation-range: 50% 75%;
}

.pv__bar--left {
  bottom: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transform-origin: center bottom;
  transform: scaleY(0);
  animation-name: pv-draw-y;
  animation-range: 75% 100%;
}

@keyframes pv-draw-x {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes pv-draw-y {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
.pv__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.pv__row {
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.12);
}

.pv__row--w1 {
  width: 94%;
}

.pv__row--w2 {
  width: 80%;
}

.pv__row--w3 {
  width: 66%;
}

@property --pv-pct {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}
@keyframes pv-count {
  from {
    --pv-pct: 0;
  }
  to {
    --pv-pct: 100;
  }
}
.pv__pct {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #2f6df6;
  animation-name: pv-count;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-timeline: --pv-scroll;
  animation-range: 0% 100%;
}
.pv__pct::after {
  counter-reset: pv-n var(--pv-pct);
  content: counter(pv-n) "%";
}

.pv__note {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: #17141a;
}

@media (max-width: 340px) {
  .pv {
    --h: 150px;
    --fw: 84vw;
  }
  .pv__frame {
    padding: 16px 12px 0;
  }
  .pv__title {
    font-size: 12px;
  }
  .pv__pct {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pv__bar {
    animation: none !important;
    transform: none !important;
  }
  .pv__bar--top {
    transform: scaleX(1) !important;
  }
  .pv__bar--right {
    transform: scaleY(0) !important;
  }
  .pv__bar--bottom {
    transform: scaleX(0) !important;
  }
  .pv__bar--left {
    transform: scaleY(0) !important;
  }
}
