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

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

.pc {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  width: clamp(288px, 92vw, 400px);
}

.pc__window {
  display: grid;
  overflow: hidden;
  border-radius: 16px;
}

.pc__card {
  box-sizing: border-box;
  grid-area: 1/1;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fbf7ef;
  color: #1c1b22;
  transform: translateX(100%);
}

.pc__card.is-on {
  transform: translateX(0);
}

.pc__stars {
  display: flex;
  gap: 4px;
  margin: 0;
  color: #ff4d1f;
}

.pc__star--off {
  color: #565062;
  opacity: 0.72;
}

.pc__quote {
  margin: 0;
  font-weight: 600;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.45;
}

.pc__who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.pc__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #479089;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.pc__name {
  display: grid;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
}

.pc__role {
  color: #565062;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3;
}

.pc__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pc__dots {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  gap: 4px;
  align-items: center;
}

.pc__dot {
  display: grid;
  align-items: center;
  justify-items: start;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}

.pc__pip {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(251, 247, 239, 0.32);
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms ease-out;
}

.pc__dot.is-on .pc__pip {
  background-color: #b3dad5;
  transform: scaleX(2.5);
}

.pc__dot:focus-visible {
  outline: 2px solid #b3dad5;
  outline-offset: 2px;
}

.pc__toggle {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(251, 247, 239, 0.34);
  border-radius: 12px;
  background: none;
  color: #fbf7ef;
  cursor: pointer;
}

.pc__ico {
  grid-area: 1/1;
  place-self: center;
}

.pc__ico--play {
  display: none;
}

.pc__toggle[aria-pressed=true] .pc__ico--pause {
  display: none;
}

.pc__toggle[aria-pressed=true] .pc__ico--play {
  display: block;
}

.pc__toggle:focus-visible {
  outline: 2px solid #b3dad5;
  outline-offset: 2px;
}

.pc.is-demo .pc__card {
  animation-name: pcSlide;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.pc.is-demo .pc__card--1 {
  animation-delay: -0.16s;
}

.pc.is-demo .pc__card--2 {
  animation-delay: -1.4933s;
}

.pc.is-demo .pc__card--3 {
  animation-delay: -0.8267s;
}

.pc.is-demo .pc__pip {
  animation-name: pcPip, pcPipTone;
  animation-duration: 2s, 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), steps(1, end);
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
  transition: none;
}

.pc.is-demo .pc__dot:nth-child(1) .pc__pip {
  animation-delay: -0.16s, -0.16s;
}

.pc.is-demo .pc__dot:nth-child(2) .pc__pip {
  animation-delay: -1.4933s, -1.4933s;
}

.pc.is-demo .pc__dot:nth-child(3) .pc__pip {
  animation-delay: -0.8267s, -0.8267s;
}

.pc.is-paused .pc__card,
.pc.is-paused .pc__pip {
  animation-play-state: paused;
}

@keyframes pcSlide {
  0% {
    transform: translateX(100%);
  }
  8% {
    transform: translateX(0);
  }
  33.33% {
    transform: translateX(0);
  }
  41.33% {
    transform: translateX(-100%);
  }
  70% {
    transform: translateX(-100%);
  }
  70.01% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes pcPip {
  0% {
    transform: scaleX(1);
  }
  8% {
    transform: scaleX(2.5);
  }
  33.33% {
    transform: scaleX(2.5);
  }
  41.33% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes pcPipTone {
  0% {
    background-color: rgba(251, 247, 239, 0.32);
  }
  8% {
    background-color: #b3dad5;
  }
  33.33% {
    background-color: #b3dad5;
  }
  41.33% {
    background-color: rgba(251, 247, 239, 0.32);
  }
  100% {
    background-color: rgba(251, 247, 239, 0.32);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .pc {
    gap: 8px;
    width: 100%;
  }
  .pc__card {
    gap: 8px;
    padding: 8px;
  }
  .pc__star {
    width: 13px;
    height: 13px;
  }
  .pc__quote {
    font-size: 11px;
    line-height: 1.4;
  }
  .pc__avatar {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .pc__name {
    font-size: 11px;
  }
  .pc__role {
    font-size: 10px;
  }
  .pc__dots {
    grid-template-columns: repeat(3, 22px);
  }
  .pc__dot {
    height: 16px;
  }
  .pc__toggle {
    width: 24px;
    height: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pc__card, .pc__pip {
    animation: none !important;
    transition: none !important;
  }
}
