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

.cm-term {
  width: min(300px, 90vw);
  box-sizing: border-box;
  padding: 16px;
  border-radius: 16px;
  background: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  font: 500 12px/1.6 "SFMono-Regular", Consolas, monospace;
  color: #fff7e6;
}

.cm-term__bar {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.cm-term__bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.cm-term__line {
  opacity: 0;
  transform: translateY(4px);
}

.cm-term__line--2 {
  color: #2f6df6;
}

.cm-term__line--3 {
  color: #2f6df6;
}

@keyframes cm-line {
  0%, 8% {
    opacity: 0;
    transform: translateY(4px);
  }
  20%, 92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(4px);
  }
}
.cm-term.is-demo .cm-term__line--1 {
  animation: cm-line 2s ease-out infinite;
  animation-delay: 0ms;
}

.cm-term.is-demo .cm-term__line--2 {
  animation: cm-line 2s ease-out infinite;
  animation-delay: 220ms;
}

.cm-term.is-demo .cm-term__line--3 {
  animation: cm-line 2s ease-out infinite;
  animation-delay: 440ms;
}

@media (prefers-reduced-motion: reduce) {
  .cm-term.is-demo .cm-term__line {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
