/* ============================================================
   Desafio das Estrelas — terminal falso (computador apreendido)
   ============================================================ */

.terminal {
  font-family: var(--fonte-mono);
  background: #02060a;
  border: 1px solid var(--verde-dim);
  border-radius: var(--raio);
  color: var(--verde-terminal);
  padding: 1rem;
  height: 340px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  box-shadow: inset 0 0 40px rgba(0, 255, 102, 0.05);
}

.terminal__saida { white-space: pre-wrap; word-break: break-word; }
.terminal__saida .eco { color: #eafff0; }
.terminal__saida .erro { color: var(--vermelho-alerta); }
.terminal__saida .info { color: var(--texto-dim); }
.terminal__saida .achado { color: #ffd54a; }

.terminal__linha { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.3rem; }
.terminal__prompt { color: var(--verde-terminal); flex: 0 0 auto; }

.terminal__input {
  flex: 1 1 auto;
  background: transparent;
  border: none;
  color: var(--verde-terminal);
  font-family: var(--fonte-mono);
  font-size: 0.9rem;
  caret-color: var(--verde-terminal);
  padding: 0;
}
.terminal__input:focus { outline: none; }

.terminal__cursor {
  display: inline-block;
  width: 9px; height: 1.05em;
  background: var(--verde-terminal);
  vertical-align: text-bottom;
  animation: piscar-cursor 1s steps(1) infinite;
}

.terminal__ajuda { color: var(--texto-dim); font-size: 0.8rem; margin-top: 0.6rem; }

@keyframes piscar-cursor { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .terminal__cursor { animation: none; }
}
