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

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

.qw {
  box-sizing: border-box;
  position: relative;
  width: min(280px, 92vw);
  margin: 0;
  padding: 32px 16px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  font-family: inherit;
}

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

.qw__mark {
  position: absolute;
  z-index: 0;
  top: -8px;
  left: 50%;
  translate: -50% 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: #b9a0ff;
  opacity: 0.22;
  pointer-events: none;
}

.qw__body {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
  color: #17141a;
}

.qw__cite {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.6);
}

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

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

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

@keyframes qwMark {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  46%, 70% {
    opacity: 0.22;
    transform: scale(1);
  }
  92%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
}
@keyframes qwBody {
  0% {
    opacity: 0;
    transform: translateY(10px);
    animation-timing-function: steps(1, end);
  }
  10% {
    opacity: 1;
    transform: translateY(10px);
    animation-timing-function: ease-out;
  }
  30%, 60% {
    opacity: 1;
    transform: translateY(0);
  }
  74%, 100% {
    opacity: 0;
  }
}
@keyframes qwCite {
  0% {
    opacity: 0;
    transform: translateY(8px);
    animation-timing-function: steps(1, end);
  }
  16% {
    opacity: 1;
    transform: translateY(8px);
    animation-timing-function: ease-out;
  }
  36%, 58% {
    opacity: 1;
    transform: translateY(0);
  }
  70%, 100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qw.is-demo .qw__mark,
  .qw.is-demo .qw__body,
  .qw.is-demo .qw__cite {
    animation: none !important;
  }
}
@media (max-width: 340px) {
  .qw {
    padding: 24px 12px;
  }
  .qw__body {
    font-size: 16px;
  }
  .qw__mark {
    font-size: 104px;
  }
}
