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

.line {
  max-width: 92%;
  margin: 0;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(16px, 4.6vw, 22px);
  line-height: 1.6;
  font-family: inherit;
  text-align: center;
}

.hl {
  position: relative;
  isolation: isolate;
  padding: 0 4px;
}
.hl::before, .hl::after {
  content: "";
  position: absolute;
  inset: 10% -2% 4%;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left center;
  mix-blend-mode: multiply;
  z-index: -1;
}
.hl::before {
  background: #ffd23f;
  rotate: -1.2deg;
  animation: mark 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite, mark-thick-1 2s ease-in-out infinite;
}
.hl::after {
  background: #2f6df6;
  opacity: 0.55;
  rotate: 1deg;
  animation: mark 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0.3s, mark-thick-2 2s ease-in-out infinite 0.15s;
}

@keyframes mark {
  0% {
    transform: scaleX(0);
  }
  20% {
    transform: scaleX(1);
  }
  75% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes mark-thick-1 {
  0% {
    inset: 10% -2% 4%;
  }
  25% {
    inset: 8% -2% 5.5%;
  }
  50% {
    inset: 11.5% -2% 3%;
  }
  75% {
    inset: 9% -2% 6%;
  }
  100% {
    inset: 10% -2% 4%;
  }
}
@keyframes mark-thick-2 {
  0% {
    inset: 10% -2% 4%;
  }
  30% {
    inset: 12% -2% 2.5%;
  }
  55% {
    inset: 7.5% -2% 6.5%;
  }
  80% {
    inset: 11% -2% 3.5%;
  }
  100% {
    inset: 10% -2% 4%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hl::before, .hl::after {
    animation: none;
    transform: scaleX(1);
  }
}
