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

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

.qp {
  box-sizing: border-box;
  width: min(320px, 92vw);
  margin: 0;
  display: grid;
  gap: 16px;
  text-align: center;
  font-family: inherit;
}

.qp * {
  box-sizing: border-box;
}

.qp__ctx {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: #17141a;
}

.qp__pull {
  margin: 0;
  display: grid;
  gap: 4px;
}

.qp__a,
.qp__b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: 0.04em;
}

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

.qp.is-demo .qp__a {
  animation-name: qpDropA;
  animation-delay: 60ms;
}

.qp.is-demo .qp__b {
  animation-name: qpDropB;
  animation-delay: 160ms;
}

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

.qp.is-demo .qp__ctx--pre {
  animation-name: qpCtxPre;
}

.qp.is-demo .qp__ctx--post {
  animation-name: qpCtxPost;
}

@keyframes qpDropA {
  0%, 2% {
    opacity: 1;
    transform: translateY(18px);
  }
  16%, 80% {
    opacity: 1;
    transform: translateY(0);
  }
  86%, 100% {
    opacity: 1;
    transform: translateY(18px);
  }
}
@keyframes qpDropB {
  0%, 6% {
    opacity: 1;
    transform: translateY(18px);
  }
  22%, 76% {
    opacity: 1;
    transform: translateY(0);
  }
  90%, 100% {
    opacity: 1;
    transform: translateY(18px);
  }
}
@keyframes qpCtxPre {
  0%, 8% {
    opacity: 0;
  }
  9%, 56% {
    opacity: 1;
  }
  57%, 100% {
    opacity: 0;
  }
}
@keyframes qpCtxPost {
  0%, 26% {
    opacity: 0;
  }
  27%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qp.is-demo .qp__a,
  .qp.is-demo .qp__b,
  .qp.is-demo .qp__ctx {
    animation: none !important;
  }
}
@media (max-width: 340px) {
  .qp {
    gap: 12px;
  }
  .qp__a, .qp__b {
    font-size: 20px;
  }
  .qp__ctx {
    font-size: 10px;
  }
}
