/* ==========================================================================
   games/netplan/style.css — Mission « Serveur Debian hors ligne »
   Complète assets/css/game.css : briefing + objectifs, terminal, bilan.
   Couleurs du terminal alignées sur les jeux Linux (games/_shared/linux).
   ========================================================================== */

/* Briefing et objectifs */
.netplan-brief { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.netplan-hud { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: var(--space-4); display: grid; gap: 8px; }
.hud-row { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--muted); }
.hud-row strong { font-family: var(--mono); font-weight: 500; color: var(--text); }
.hud-status.off { color: var(--crit) !important; }
.hud-status.on { color: var(--ok) !important; }
.steps { list-style: none; counter-reset: s; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.steps li { counter-increment: s; display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.steps li::before { content: counter(s); flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); font-family: var(--mono); font-size: var(--fs-xs); }
.steps li.done { color: var(--text); }
.steps li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #06210E; }

/* Terminal */
.terminal-panel { padding: 0; overflow: hidden; background: var(--bg-deep); }
.terminal-shell { display: flex; flex-direction: column; min-height: 460px; font-family: var(--mono); font-size: .9rem; color: #C9D4DE; }
.boot-screen { padding: var(--space-5); }
.boot-lines { display: grid; gap: 4px; }
.boot-line { color: var(--text-2); }
.boot-line.fail { color: var(--crit); }
.cursor { width: 9px; height: 18px; margin-top: 8px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-window { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.terminal-output { flex: 1; max-height: 520px; min-height: 360px; overflow-y: auto; padding: var(--space-4); white-space: pre-wrap; word-break: break-word; line-height: 1.55; scroll-behavior: auto; overflow-anchor: none; }
.terminal-output > div { min-height: 1.55em; }
.terminal-output .echo { color: var(--text); margin-top: 6px; }
.terminal-output .err { color: #FF8A86; }
.terminal-output .ok { color: #6BD47B; }
.terminal-output .warn { color: #E5B84B; }
.terminal-output .hint { color: var(--accent); }
.terminal-output .dim { color: var(--muted); }
.terminal-output .help { color: var(--text-2); }
.terminal-output .file { color: var(--text); background: var(--panel); border-left: 2px solid var(--line-strong); padding: 6px 10px; }
.terminal-output .nano-head { background: var(--text-2); color: var(--bg-deep); padding: 0 8px; margin-top: 6px; }
.terminal-output .mission { color: var(--text); font-weight: 600; }
.input-row { display: flex; align-items: baseline; gap: 8px; padding: 10px var(--space-4); border-top: 1px solid var(--line); }
.input-row .prompt { color: #6BD47B; white-space: nowrap; font-weight: 600; }
.terminal-input { flex: 1; min-width: 40px; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; caret-color: var(--accent); }
.terminal-screen.hidden, .boot-screen.hidden { display: none; }

/* Bilan */
.win-box { text-align: center; border-color: var(--ok-line); display: grid; gap: var(--space-4); justify-items: center; }
.win-box[hidden] { display: none; }
.win-box h2 { color: var(--ok); font-size: 1.3rem; }
.win-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.win-stats div { display: grid; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: var(--fs-xs); color: var(--muted); }
.win-stats strong { font-family: var(--mono); font-size: 1.1rem; font-weight: 500; color: var(--text); }

@media (max-width: 760px) {
  .netplan-brief { grid-template-columns: 1fr; }
  .terminal-shell { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
