* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1B2838;
}

#visualizer {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

/* Debug overlay — top-left pipeline status */
#debug-overlay {
  position: fixed;
  top: 12px;
  left: 12px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 13px;
  color: #F5F3EF;
  background: rgba(27, 40, 56, 0.85);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(184, 148, 63, 0.3);
  z-index: 100;
  max-width: 500px;
  line-height: 1.6;
}

#debug-status {
  font-weight: 700;
  margin-bottom: 4px;
  color: #B8943F;
}

.debug-line {
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.debug-line:empty {
  display: none;
}

/* Caption area — bottom center, shows STT + LLM text */
#caption-area {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 20px;
  color: #F5F3EF;
  background: rgba(27, 40, 56, 0.8);
  padding: 10px 24px;
  border-radius: 10px;
  z-index: 100;
  max-width: 900px;
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s;
}

#caption-area.visible {
  opacity: 1;
}
