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

.split {
  border: 0;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 12px;
  background: #fff7e6;
  color: #ff4d1f;
  font-family: inherit;
  font-size: clamp(18px, 6vw, 26px);
  font-weight: 800;
}

.split__in {
  display: inline-flex;
}

.split__ch {
  display: inline-block;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25;
}

.split__ch b {
  display: block;
}

.split__ch i {
  display: block;
  font-style: normal;
}

.split.is-demo .split__ch b {
  animation: split-roll 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: calc(var(--i) * 70ms);
}

@keyframes split-roll {
  0%, 12% {
    translate: 0 0;
  }
  42%, 68% {
    translate: 0 -50%;
  }
  100% {
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .split.is-demo .split__ch b {
    animation: none;
  }
}
