@property --underline-offset {
  syntax: "<length>";
  inherits: true;
  initial-value: 1px;
}
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);
}

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

.hl {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #c2361a;
  text-decoration-thickness: 2px;
  text-underline-offset: var(--underline-offset);
  animation: wave 1s linear infinite;
}

@keyframes wave {
  0% {
    --underline-offset: 0px;
    text-decoration-thickness: 2px;
    text-decoration-color: #c2361a;
  }
  18% {
    --underline-offset: 1.8px;
    text-decoration-thickness: 3px;
  }
  34% {
    --underline-offset: 3.4px;
    text-decoration-thickness: 2.2px;
  }
  50% {
    --underline-offset: 5px;
    text-decoration-thickness: 2.6px;
    text-decoration-color: color-mix(in srgb, #c2361a 55%, white);
  }
  66% {
    --underline-offset: 3.6px;
    text-decoration-thickness: 3.2px;
  }
  82% {
    --underline-offset: 1.6px;
    text-decoration-thickness: 2px;
  }
  100% {
    --underline-offset: 0px;
    text-decoration-thickness: 2px;
    text-decoration-color: #c2361a;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hl {
    animation: none;
    text-underline-offset: 2px;
  }
}
