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

.qm {
  box-sizing: border-box;
  width: min(300px, 92vw);
  margin: 0;
  display: grid;
  justify-items: start;
  gap: 12px;
  color: #17141a;
  font-family: inherit;
}

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

.qm__mark {
  display: block;
  color: #17141a;
}

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

.qm__l1,
.qm__l2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.qm__cite {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.72);
}

.qm.is-demo .qm__mark {
  transform-origin: left bottom;
  animation-name: qmMark;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.qm.is-demo .qm__l1,
.qm.is-demo .qm__l2 {
  animation-name: qmLine;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.qm.is-demo .qm__l1 {
  animation-delay: 80ms;
  animation-fill-mode: backwards;
}

.qm.is-demo .qm__l2 {
  animation-delay: 180ms;
  animation-fill-mode: backwards;
}

.qm.is-demo .qm__cite {
  animation-name: qmCite;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes qmMark {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  6% {
    opacity: 1;
    transform: scale(0.92);
  }
  22% {
    transform: scale(1.14);
  }
  30%, 78% {
    opacity: 1;
    transform: scale(1);
  }
  90%, 100% {
    opacity: 0;
    transform: scale(0.9);
  }
}
@keyframes qmLine {
  0%, 4% {
    opacity: 0;
    transform: translateX(-14px);
  }
  30%, 74% {
    opacity: 1;
    transform: translateX(0);
  }
  80%, 100% {
    opacity: 0;
  }
}
@keyframes qmCite {
  0%, 18% {
    opacity: 0;
    transform: translateX(-10px);
  }
  42%, 70% {
    opacity: 1;
    transform: translateX(0);
  }
  76%, 100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qm.is-demo .qm__mark,
  .qm.is-demo .qm__l1,
  .qm.is-demo .qm__l2,
  .qm.is-demo .qm__cite {
    animation: none !important;
  }
}
@media (max-width: 340px) {
  .qm {
    gap: 8px;
  }
  .qm__l1, .qm__l2 {
    font-size: 14px;
  }
  .qm__mark {
    width: 36px;
    height: 36px;
  }
}
