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

.pq {
  width: min(340px, 92vw);
  text-align: center;
}

.pq__deck {
  position: relative;
  height: 164px;
}

.pq__card {
  position: absolute;
  inset: 0;
  margin: 0;
  box-sizing: border-box;
  padding: 16px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pq__card[data-order="0"] {
  transform: translate(0, 0) rotate(0deg) scale(1);
  z-index: 3;
  opacity: 1;
}

.pq__card[data-order="1"] {
  transform: translate(8px, 8px) rotate(-3deg) scale(0.95);
  z-index: 2;
  opacity: 0.82;
}

.pq__card[data-order="2"] {
  transform: translate(16px, 12px) rotate(3deg) scale(0.9);
  z-index: 1;
  opacity: 0.55;
}

.pq__mark {
  display: block;
  margin: 0 0 4px;
  font: 800 42px/1 Georgia, serif;
  color: #2f6df6;
  opacity: 0.32;
}

.pq__card[data-order="0"] .pq__mark {
  animation: pq-wiggle 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes pq-wiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(-12deg) scale(1.22);
  }
}
.pq__text {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: clamp(11px, 3.2vw, 12px);
  line-height: 1.5;
  font-family: inherit;
  color: #17141a;
}

.pq__who {
  margin: 0;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.3;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.72);
}

.pq__next {
  margin-top: 12px;
  padding: 4px 16px;
  border-radius: 999px;
  border: 1px solid rgba(23, 20, 26, 0.18);
  background: none;
  color: rgba(23, 20, 26, 0.65);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.6;
  font-family: inherit;
  cursor: pointer;
}

.pq__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 340px), (max-height: 220px) {
  .pq__deck {
    height: 128px;
  }
  .pq__card {
    padding: 8px 8px;
  }
  .pq__mark {
    font-size: 20px;
    margin-bottom: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pq__card {
    transition: none;
  }
  .pq__card[data-order="0"] .pq__mark {
    animation: none !important;
  }
}
