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

.qi {
  box-sizing: border-box;
  width: min(320px, 92vw);
  margin: 0;
  padding: 20px 24px;
  border-radius: 16px;
  background: #17141a;
  color: #ffffff;
  font-family: inherit;
}

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

.qi__body {
  margin: 0;
  display: grid;
  gap: 8px;
}

.qi__l1,
.qi__l2 {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: inherit;
}

.qi.is-demo {
  animation-name: qiWipe;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.qi.is-demo .qi__l1,
.qi.is-demo .qi__l2 {
  animation-name: qiCut1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.qi.is-demo .qi__l2 {
  animation-name: qiCut2;
}

@keyframes qiWipe {
  0% {
    clip-path: inset(0 100% 0 0 round 16px);
  }
  16%, 74% {
    clip-path: inset(0 0 0 0 round 16px);
  }
  92%, 100% {
    clip-path: inset(0 100% 0 0 round 16px);
  }
}
@keyframes qiCut1 {
  0%, 17% {
    opacity: 0;
  }
  21%, 70% {
    opacity: 1;
  }
  74%, 100% {
    opacity: 0;
  }
}
@keyframes qiCut2 {
  0%, 19% {
    opacity: 0;
  }
  23%, 68% {
    opacity: 1;
  }
  72%, 100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qi.is-demo,
  .qi.is-demo .qi__l1,
  .qi.is-demo .qi__l2 {
    animation: none !important;
  }
}
@media (max-width: 340px) {
  .qi {
    padding: 16px 20px;
  }
  .qi__l1, .qi__l2 {
    font-size: 13px;
  }
}
