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

.pc {
  display: flex;
  justify-content: center;
}

.pc__card {
  box-sizing: border-box;
  width: 300px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  color: #17141a;
}

.pc__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6df6, #4cd4a6);
  color: #17141a;
  font-weight: 800;
  font-size: 17px;
  line-height: 20px;
}

.pc__id {
  display: flex;
  flex-direction: column;
}

.pc__name {
  font-weight: 800;
  font-size: 17px;
  line-height: 22px;
  color: #17141a;
}

.pc__role {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: rgba(23, 20, 26, 0.6);
}

.pc__stats {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.pc__stat {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  gap: 4px;
}

.pc__num {
  font-weight: 800;
  font-size: 20px;
  line-height: 24px;
  color: #17141a;
  font-variant-numeric: tabular-nums;
}

.pc__label {
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  color: rgba(23, 20, 26, 0.6);
}

.pc__bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  overflow: hidden;
}

.pc__bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #2f6df6;
  transform-origin: left center;
  transform: scaleX(1);
}

.pc__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: #2f6df6;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 300ms cubic-bezier(0.2, 0.8, 0.2, 1), color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pc__btn:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.pc__btn.is-on {
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
}

.pc__f-off,
.pc__f-on {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pc__f-on {
  display: none;
}

.pc__btn.is-on .pc__f-off {
  display: none;
}

.pc__btn.is-on .pc__f-on {
  display: inline-flex;
}

.pc.is-demo .pc__stat {
  animation-name: pc-in;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.pc.is-demo .pc__stat:nth-child(2) {
  animation-delay: 83ms;
}

.pc.is-demo .pc__stat:nth-child(3) {
  animation-delay: 167ms;
}

.pc.is-demo .pc__bar {
  animation-name: pc-track;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.pc.is-demo .pc__bar i {
  animation-name: pc-fill;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes pc-in {
  0% {
    opacity: 0;
  }
  11% {
    opacity: 1;
  }
  85% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes pc-track {
  0% {
    opacity: 0;
  }
  19% {
    opacity: 1;
  }
  79% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes pc-fill {
  0% {
    transform: scaleX(0.42);
  }
  19% {
    transform: scaleX(0.42);
  }
  62% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1);
  }
}
@media (max-width: 340px) {
  .pc__card {
    width: 272px;
    padding: 12px;
  }
  .pc__head {
    gap: 8px;
  }
  .pc__avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
    line-height: 17px;
  }
  .pc__name {
    font-size: 15px;
    line-height: 18px;
  }
  .pc__role {
    font-size: 11px;
    line-height: 14px;
  }
  .pc__stats {
    margin: 8px 0;
    gap: 4px;
  }
  .pc__num {
    font-size: 17px;
    line-height: 20px;
  }
  .pc__label {
    font-size: 10px;
    line-height: 12px;
  }
  .pc__bar {
    height: 3px;
  }
  .pc__btn {
    height: 32px;
    font-size: 12px;
    line-height: 14px;
  }
  .pc__btn svg {
    width: 13px;
    height: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pc.is-demo .pc__stat,
  .pc.is-demo .pc__bar,
  .pc.is-demo .pc__bar i {
    animation: none !important;
  }
  .pc__btn {
    transition: none;
  }
}
