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

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

.pr-box {
  position: relative;
  width: min(230px, 76vw);
  height: 150px;
  overflow-y: auto;
  border-radius: 16px;
  background: #1c1822;
  cursor: none;
}

.pr-content {
  padding: 16px;
  height: 340px;
}
.pr-content p {
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.pr-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  pointer-events: none;
  transform: translate(24px, 112px);
  transition: transform 220ms ease-out;
}

.pr-ring svg:first-child {
  transform: rotate(-90deg);
}

.pr-ring__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 3;
}

.pr-ring__fill {
  fill: none;
  stroke: #2f6df6;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 94.2;
  stroke-dashoffset: var(--dash, 94.2);
}

.pr-ring__check {
  position: absolute;
  inset: 8px;
  color: #4cd4a6;
  opacity: 0;
}

.pr-box.is-done .pr-ring__check {
  opacity: 1;
}

.pr-box.is-done .pr-ring svg:first-child {
  opacity: 0;
}

.pr-box.is-demo {
  overflow: hidden;
}

.pr-box.is-demo .pr-ring {
  animation: pr-move 2s ease-out infinite;
  transition: none;
}

.pr-box.is-demo .pr-ring__fill {
  animation: pr-fill 2s ease-out infinite;
}

.pr-box.is-demo .pr-ring__check {
  animation: pr-check 2s ease-out infinite;
}

@keyframes pr-move {
  0%, 8% {
    transform: translate(24px, 112px);
  }
  50% {
    transform: translate(150px, 40px);
  }
  92%, 100% {
    transform: translate(24px, 112px);
  }
}
@keyframes pr-fill {
  0%, 8% {
    stroke-dashoffset: 94.2;
  }
  50%, 62% {
    stroke-dashoffset: 0;
  }
  92%, 100% {
    stroke-dashoffset: 94.2;
  }
}
@keyframes pr-check {
  0%, 46% {
    opacity: 0;
  }
  52%, 60% {
    opacity: 1;
  }
  68%, 100% {
    opacity: 0;
  }
}
@media (hover: none), (pointer: coarse) {
  .pr-box {
    cursor: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pr-ring, .pr-ring__fill, .pr-ring__check {
    animation: none !important;
    transition: none !important;
  }
}
