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

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

.sl-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 8px 12px;
}

.sl-text {
  display: block;
  font: 800 clamp(22px, 7vw, 34px)/1.2 "Space Mono", "Courier New", monospace;
  color: #fff7e6;
  letter-spacing: 0.04em;
}

.sl-noise {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.4) 0 2px, transparent 2px 4px);
  mix-blend-mode: screen;
}

.sl-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: #ffd23f;
  box-shadow: 0 0 12px #ffd23f;
  opacity: 0;
}

@keyframes sl-clear {
  0%, 8% {
    clip-path: inset(0 0 0 0);
  }
  55%, 78% {
    clip-path: inset(100% 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes sl-beam {
  0%, 8% {
    top: 0;
    opacity: 1;
  }
  55% {
    top: 100%;
    opacity: 1;
  }
  63%, 100% {
    opacity: 0;
  }
}
.sl-wrap.is-demo .sl-noise {
  animation: sl-clear 2s ease-out infinite;
}

.sl-wrap.is-demo .sl-beam {
  animation: sl-beam 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sl-noise, .sl-wrap.is-demo .sl-noise {
    animation: none !important;
    clip-path: inset(100% 0 0 0) !important;
  }
  .sl-beam, .sl-wrap.is-demo .sl-beam {
    animation: none !important;
    opacity: 0 !important;
  }
}
