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

.bn-word {
  margin: 0;
  display: flex;
  gap: 0;
  font: 800 clamp(20px, 6vw, 30px)/1.2 "Space Mono", "Courier New", monospace;
}

.bn-c {
  position: relative;
  display: inline-block;
  min-width: 1.1ch;
}

.bn-bin,
.bn-ch {
  display: block;
}

.bn-bin {
  font-size: 0.32em;
  letter-spacing: -0.04em;
  color: #17141a;
  opacity: 0.55;
}

.bn-ch {
  position: absolute;
  inset: 0;
  color: #17141a;
  opacity: 0;
  transform: scale(0.85);
}

@keyframes bn-bin-out {
  0%, 40% {
    opacity: 0.55;
  }
  55%, 100% {
    opacity: 0;
  }
}
@keyframes bn-ch-in {
  0%, 40% {
    opacity: 0;
    transform: scale(0.85);
  }
  55%, 90% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.85);
  }
}
.bn-word.is-demo .bn-bin {
  animation: bn-bin-out 2s ease-out infinite;
  animation-delay: inherit;
}

.bn-word.is-demo .bn-ch {
  animation: bn-ch-in 2s ease-out infinite;
  animation-delay: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .bn-bin, .bn-word.is-demo .bn-bin {
    animation: none !important;
    opacity: 0 !important;
  }
  .bn-ch, .bn-word.is-demo .bn-ch {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
