@property --p {
  syntax: "<integer>";
  inherits: true;
  initial-value: 0;
}
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);
}

.pg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: min(100%, 408px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

.pg__bar-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 11px);
  line-height: 1;
}

.pg__ico {
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #2b9d74;
}

.pg__title {
  flex: 1 1 auto;
}

.pg__again {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 10px);
  line-height: 1;
}

.pg__again:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.pg__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.4;
  white-space: nowrap;
}

.pg__row--1 {
  --p: 75;
}

.pg__row--2 {
  --p: 50;
}

.pg__row--3 {
  --p: 25;
}

.pg__name {
  flex: 0 0 auto;
  width: 38px;
  color: #fff7e6;
  font-weight: 700;
}

.pg__meter {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.pg__brk {
  color: rgba(255, 255, 255, 0.6);
}

.pg__cells {
  display: inline-grid;
}

.pg__cells > * {
  grid-area: 1/1;
  letter-spacing: 0;
}

.pg__track {
  color: rgba(255, 255, 255, 0.38);
}

.pg__fill {
  color: #2b9d74;
}

.pg__row--1 .pg__fill {
  clip-path: inset(0 25% 0 0);
}

.pg__row--2 .pg__fill {
  clip-path: inset(0 50% 0 0);
}

.pg__row--3 .pg__fill {
  clip-path: inset(0 75% 0 0);
}

.pg__pct {
  flex: 0 0 auto;
  width: 34px;
  text-align: right;
  color: #fff7e6;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.pg__pct::after {
  counter-reset: p var(--p);
  content: counter(p) "%";
}

.pg__eta {
  flex: 0 0 auto;
  width: 34px;
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.pg.is-demo .pg__row,
.pg.is-run .pg__row {
  animation-duration: 2s;
  animation-fill-mode: both;
}

.pg.is-demo .pg__row {
  animation-iteration-count: infinite;
}

.pg.is-run .pg__row {
  animation-iteration-count: 1;
}

.pg.is-demo .pg__row--1, .pg.is-run .pg__row--1 {
  animation-name: pgNum1;
  animation-timing-function: steps(12, end);
}

.pg.is-demo .pg__row--2, .pg.is-run .pg__row--2 {
  animation-name: pgNum2;
  animation-timing-function: steps(8, end);
}

.pg.is-demo .pg__row--3, .pg.is-run .pg__row--3 {
  animation-name: pgNum3;
  animation-timing-function: steps(4, end);
}

@keyframes pgNum1 {
  0% {
    --p: 0;
  }
  80%, 100% {
    --p: 75;
  }
}
@keyframes pgNum2 {
  0% {
    --p: 0;
  }
  80%, 100% {
    --p: 50;
  }
}
@keyframes pgNum3 {
  0% {
    --p: 0;
  }
  80%, 100% {
    --p: 25;
  }
}
.pg.is-demo .pg__fill,
.pg.is-run .pg__fill {
  animation-duration: 2s;
  animation-fill-mode: both;
}

.pg.is-demo .pg__fill {
  animation-iteration-count: infinite;
}

.pg.is-run .pg__fill {
  animation-iteration-count: 1;
}

.pg.is-demo .pg__row--1 .pg__fill, .pg.is-run .pg__row--1 .pg__fill {
  animation-name: pgFill1;
  animation-timing-function: steps(12, end);
}

.pg.is-demo .pg__row--2 .pg__fill, .pg.is-run .pg__row--2 .pg__fill {
  animation-name: pgFill2;
  animation-timing-function: steps(8, end);
}

.pg.is-demo .pg__row--3 .pg__fill, .pg.is-run .pg__row--3 .pg__fill {
  animation-name: pgFill3;
  animation-timing-function: steps(4, end);
}

@keyframes pgFill1 {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  80%, 100% {
    clip-path: inset(0 25% 0 0);
  }
}
@keyframes pgFill2 {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  80%, 100% {
    clip-path: inset(0 50% 0 0);
  }
}
@keyframes pgFill3 {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  80%, 100% {
    clip-path: inset(0 75% 0 0);
  }
}
@media (max-width: 340px) {
  .pg {
    padding: 8px;
    gap: 4px;
  }
  .pg__name {
    width: 32px;
  }
  .pg__pct, .pg__eta {
    width: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg.is-demo .pg__row,
  .pg.is-demo .pg__fill,
  .pg.is-run .pg__row,
  .pg.is-run .pg__fill {
    animation: none !important;
  }
}
