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

.rb-wrap {
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.rb-word {
  position: relative;
  display: inline-block;
  font: 800 clamp(20px, 6vw, 30px)/1.2 "Space Mono", "Courier New", monospace;
  color: #17141a;
}

.rb-bar {
  position: absolute;
  inset: -8% -6%;
  background: #17141a;
  transform-origin: right center;
  border-radius: 4px;
}

@keyframes rb-lift {
  0%, 12% {
    transform: scaleX(1);
  }
  50%, 78% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}
.rb-wrap.is-demo .rb-word .rb-bar {
  animation: rb-lift 2s ease-out infinite;
}

.rb-wrap.is-demo .rb-word--2 .rb-bar {
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .rb-bar,
  .rb-wrap.is-demo .rb-bar {
    animation: none !important;
    transform: scaleX(0) !important;
  }
}
