/* HUD Container & Panels */
.hud-panel {
  position: absolute;
  background: rgba(10, 16, 26, 0.92);
  border: 1px solid rgba(30, 41, 59, 0.8);
  /* no backdrop-filter: blurring the 3D canvas behind every HUD panel each frame was a real GPU cost */
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 10;
  pointer-events: auto;
}

/* Incident Panel (Top Left - Inspired by Chapter Box in reference) */
#incident-panel {
  top: 20px;
  left: 20px;
  width: 380px;
  padding: 16px;
  border-left: 3px solid #ef4444;
}

.incident-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.incident-tag {
  font-family: 'Consolas', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 255, 204, 0.4));
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-red 1.2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

#incident-id {
  font-family: 'Consolas', monospace;
  font-size: 11px;
  color: #64748b;
}

#incident-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
  margin-bottom: 12px;
}

.incident-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.4), transparent);
  margin-bottom: 10px;
}

.incident-objectives-title {
  font-family: 'Consolas', monospace;
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

#incident-objectives {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.objective {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  transition: color 0.2s;
}

.objective.active {
  color: #e2e8f0;
}

.objective.completed {
  color: #10b981;
  text-decoration: line-through;
}

.objective .checkbox {
  width: 14px;
  height: 14px;
  border: 1.5px solid #475569;
  border-radius: 3px;
  margin-top: 1px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #10b981;
}

.objective.active .checkbox {
  border-color: #00ffcc;
  box-shadow: 0 0 5px rgba(0, 255, 204, 0.4);
}

.objective.completed .checkbox {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}
.objective.completed .checkbox::after {
  content: '✓';
  font-weight: bold;
}

.incident-footer {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  font-family: 'Consolas', monospace;
  font-size: 10.5px;
  color: #64748b;
}

#ticket-timer {
  color: #f59e0b;
  font-weight: bold;
}

/* NOC Monitor (Top Right) */
#noc-monitor {
  top: 20px;
  right: 20px;
  padding: 12px 16px;
  border-right: 3px solid #00ffcc;
}

.noc-title {
  font-family: 'Consolas', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #00ffcc;
  margin-bottom: 8px;
}

.noc-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  font-family: 'Consolas', monospace;
  margin-bottom: 10px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.stat-label { color: #64748b; }
.stat-val { color: #cbd5e1; }

.hud-quick-buttons {
  display: flex;
  gap: 8px;
}

.hud-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-family: 'Consolas', monospace;
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.hud-btn:hover {
  background: #334155;
  border-color: #00ffcc;
  color: #ffffff;
}

/* SLA and Bandwidth Spherical Orbs (Directly inspired by HP/MP globes in reference) */
#sla-orb-container {
  position: absolute;
  bottom: 24px;
  left: 36px;
  z-index: 15;
}

#bandwidth-orb-container {
  position: absolute;
  bottom: 24px;
  right: 36px;
  z-index: 15;
}

.orb-outer-ring {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 4px;
  background: radial-gradient(circle at 30% 30%, #1e293b 0%, #080c14 80%);
  border: 2px solid #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.orb-sphere {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9);
}

.orb-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#sla-fill {
  background: radial-gradient(circle at 50% 120%, #ff1a1a 0%, #b91c1c 40%, #450a0a 90%);
  box-shadow: 0 0 20px #ef4444;
}

#bandwidth-fill {
  background: radial-gradient(circle at 50% 120%, #38bdf8 0%, #0284c7 40%, #082f49 90%);
  box-shadow: 0 0 20px #0284c7;
}

.orb-reflection {
  position: absolute;
  top: 6px;
  left: 12px;
  width: 32px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  transform: rotate(-25deg);
  pointer-events: none;
}

.orb-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.orb-number {
  font-family: 'Consolas', monospace;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.orb-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.red-glow {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
  pointer-events: none;
}

.blue-glow {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.35);
  pointer-events: none;
}

/* Engineer Toolbelt (Hotbar 1-5 in bottom center) */
#toolbelt-container {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}

.toolbelt-bar {
  display: flex;
  gap: 8px;
  background: rgba(10, 16, 26, 0.92);
  border: 1px solid rgba(51, 65, 85, 0.8);
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.tool-slot {
  position: relative;
  width: 68px;
  height: 72px;
  background: #09101d;
  border: 1px solid #1e293b;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.tool-slot:hover {
  background: #0f1d35;
  border-color: #38bdf8;
}

.tool-slot.active {
  background: radial-gradient(circle at center, #172a4c 0%, #09101d 100%);
  border: 2px solid #00ffcc;
  box-shadow: 0 0 16px rgba(0, 255, 204, 0.4), inset 0 0 8px rgba(0, 255, 204, 0.2);
  transform: translateY(-4px);
}

.tool-key {
  position: absolute;
  top: 3px;
  left: 5px;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.tool-slot.active .tool-key {
  color: #00ffcc;
}

.tool-icon {
  font-size: 22px;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.tool-name {
  font-size: 9.5px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.2px;
}

.tool-slot.active .tool-name {
  color: #ffffff;
}

.tool-desc {
  font-size: 8px;
  font-family: 'Consolas', monospace;
  color: #64748b;
  text-align: center;
  line-height: 1;
}

.tool-slot.active .tool-desc {
  color: #38bdf8;
}

/* ============================================================
   Facility minimap + floor plan (added with the floor plan update)
   ============================================================ */
#minimap-panel {
  position: absolute;
  bottom: 140px;
  right: 18px;
  width: 210px;
  background: rgba(8, 14, 24, 0.82);
  border: 1px solid rgba(0, 255, 204, 0.28);
  border-radius: 8px;
  padding: 8px 8px 6px;
  z-index: 12;
}

#minimap-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

#room-label {
  margin-top: 6px;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #00ffcc;
  text-align: center;
}

.minimap-hint {
  font-family: 'Consolas', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: #64748b;
  text-align: center;
  margin-top: 2px;
}

#map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(6px);
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
}

#map-overlay.hidden { display: none; }

.map-window {
  background: #08111d;
  border: 2px solid #00ffcc;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(0, 255, 204, 0.18);
  padding: 14px 16px 12px;
  max-width: 95vw;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.map-header h2 {
  font-family: 'Consolas', monospace;
  font-size: 14px;
  letter-spacing: 2px;
  color: #00ffcc;
  font-weight: 700;
}

#map-btn-close {
  background: none;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
}

#map-btn-close:hover { border-color: #00ffcc; color: #00ffcc; }

#map-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #1e293b;
}

.map-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  color: #64748b;
}

/* ============================================================
   NOC loop update: status strip, radio, ops console, thermal cam,
   resume overlay, objective animations
   ============================================================ */

/* ---- objective list polish ---- */
.objective { animation: obj-in 0.35s ease-out both; }
@keyframes obj-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.objective.locked { opacity: 0.45; }
.objective.completed .checkbox { animation: check-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes check-pop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
.objective.active .obj-text { text-shadow: 0 0 10px rgba(0, 255, 204, 0.25); }
#incident-panel { transition: border-color 0.4s ease; }
#incident-panel.phase-alert { animation: panel-alert 1.2s ease-in-out infinite; }
@keyframes panel-alert {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); }
  50% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 26px rgba(239, 68, 68, 0.45); }
}
#incident-panel.phase-resolved { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 22px rgba(16, 185, 129, 0.35); }
.incident-waypoint {
  margin-top: 8px;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #facc15;
  background: rgba(250, 204, 21, 0.08);
  border: 1px dashed rgba(250, 204, 21, 0.35);
  border-radius: 4px;
  padding: 4px 8px;
}

/* ---- objective / alert toast (top centre) ---- */
#obj-notification {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
  padding: 10px 22px;
  border-radius: 8px;
  z-index: 95; /* above the HUD, below every console / modal */
  font-family: 'Consolas', monospace;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
  max-width: 720px;
}
#obj-notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#obj-notification .on-head { color: #10b981; font-weight: bold; font-size: 13px; letter-spacing: 1px; }
#obj-notification .on-body { color: #e2e8f0; font-size: 12px; margin-top: 3px; }
#obj-notification .on-next { color: #00ffcc; font-size: 11px; margin-top: 5px; font-weight: bold; }
#obj-notification.kind-alert { border-color: #ef4444; box-shadow: 0 0 30px rgba(239, 68, 68, 0.5); }
#obj-notification.kind-alert .on-head { color: #ef4444; font-size: 14px; }
#obj-notification.kind-alert .on-next { color: #facc15; }
#obj-notification.kind-resolved { border-color: #10b981; }

/* ---- NOC status strip ---- */
#noc-status-bar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 16px;
  max-width: min(760px, calc(100vw - 880px));
  background: rgba(8, 14, 24, 0.86);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 12;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
}
#noc-status-bar .nclock { color: #00ffcc; font-weight: bold; letter-spacing: 1px; }
#noc-status-bar .nshift { color: #94a3b8; }
#noc-status-bar .nsep { width: 1px; height: 14px; background: #1e293b; }
#noc-status-bar .nq { font-weight: bold; padding: 2px 8px; border-radius: 10px; }
.nq.ok { color: #10b981; background: rgba(16, 185, 129, 0.12); }
.nq.warn { color: #f59e0b; background: rgba(245, 158, 11, 0.14); }
.nq.crit { color: #ef4444; background: rgba(239, 68, 68, 0.16); animation: nq-blink 1s steps(2) infinite; }
@keyframes nq-blink { 50% { opacity: 0.45; } }
#noc-status-bar .ticker {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
  color: #64748b;
}
.ticker.lvl-info { color: #7dd3fc; }
.ticker.lvl-ok { color: #10b981; }
.ticker.lvl-warn { color: #f59e0b; }
.ticker.lvl-crit { color: #ef4444; }
.ticker.flash { animation: ticker-in 0.5s ease-out; }
@keyframes ticker-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 1400px) { #noc-status-bar { top: auto; bottom: 118px; max-width: 46vw; } }

/* ---- radio toasts ---- */
#radio-stack {
  position: absolute;
  left: 20px;
  bottom: 150px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 14;
  pointer-events: none;
}
.radio-toast {
  --accent: #38bdf8;
  background: rgba(8, 14, 24, 0.9);
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.radio-toast.show { opacity: 1; transform: none; }
.rt-head { display: flex; align-items: center; gap: 8px; font-family: 'Consolas', monospace; font-size: 10px; letter-spacing: 1px; margin-bottom: 4px; }
.rt-icon { color: var(--accent); animation: rt-pulse 1s ease-in-out infinite; }
@keyframes rt-pulse { 50% { opacity: 0.3; } }
.rt-from { color: var(--accent); font-weight: bold; }
.rt-chan { color: #475569; margin-left: auto; }
.rt-body { font-size: 12.5px; line-height: 1.4; color: #e2e8f0; min-height: 16px; }
.rt-body::after { content: '\258D'; color: var(--accent); animation: rt-caret 0.8s steps(2) infinite; margin-left: 2px; }
@keyframes rt-caret { 50% { opacity: 0; } }

/* ---- click-to-resume ---- */
#resume-overlay {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(3, 7, 18, 0.15), rgba(3, 7, 18, 0.55));
  cursor: pointer;
}
#resume-overlay.show { display: flex; animation: fade-in 0.25s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.resume-card {
  background: rgba(8, 14, 24, 0.92);
  border: 1px solid rgba(0, 255, 204, 0.35);
  border-radius: 10px;
  padding: 18px 34px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 255, 204, 0.15);
}
.resume-title { font-family: 'Consolas', monospace; font-size: 13px; letter-spacing: 3px; color: #00ffcc; }
.resume-sub { font-size: 12px; color: #94a3b8; margin-top: 6px; }

/* ---- thermal camera HUD ---- */
#thermal-hud { position: absolute; inset: 0; z-index: 9; pointer-events: none; display: none; }
body.thermal-mode #thermal-hud { display: block; }
.th-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(6, 2, 20, 0.55) 100%);
}
.th-frame {
  position: absolute; inset: 22px;
  border: 1px solid rgba(255, 170, 60, 0.35);
  border-radius: 4px;
}
.th-frame::before, .th-frame::after {
  content: ''; position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 170, 60, 0.85);
}
.th-frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.th-frame::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.th-tag {
  position: absolute; top: 30px; right: 36px;
  font-family: 'Consolas', monospace; font-size: 11px; letter-spacing: 2px; color: #ffb347;
  text-shadow: 0 0 8px rgba(255, 170, 60, 0.6);
  animation: rt-pulse 1.6s ease-in-out infinite;
}
body.thermal-mode #crosshair { border-color: #ffb347; box-shadow: 0 0 10px #ffb347; }
body.thermal-mode #noc-monitor, body.thermal-mode #incident-panel { border-color: rgba(255, 170, 60, 0.35) !important; }

/* ---- NOC operations console ---- */
#noc-console-modal {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(10px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.2s ease-out;
}
#noc-console-modal.hidden { display: none; }
.nc-window {
  width: 1080px;
  max-width: 95vw;
  height: 700px;
  max-height: 92vh;
  background: #0a1020;
  border: 1px solid #1e293b;
  border-top: 2px solid #38bdf8;
  border-radius: 10px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nc-header {
  height: 48px;
  background: linear-gradient(90deg, #0f1c33, #0b1424);
  border-bottom: 1px solid #1e293b;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.nc-brand { display: flex; align-items: center; gap: 10px; }
.nc-title { font-family: 'Consolas', monospace; font-size: 13px; font-weight: bold; letter-spacing: 2px; color: #38bdf8; }
.nc-sub { font-family: 'Consolas', monospace; font-size: 10px; letter-spacing: 1px; color: #64748b; }
.nc-user { display: flex; align-items: center; gap: 8px; }
.nc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Consolas', monospace; font-size: 10.5px; color: #cbd5e1;
  background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 3px 10px;
}
.nc-chip.mono { color: #00ffcc; }
.nc-btn {
  background: #1e293b; border: 1px solid #334155; color: #cbd5e1;
  font-family: 'Consolas', monospace; font-size: 10.5px; padding: 4px 10px; border-radius: 4px; cursor: pointer;
  transition: all 0.15s;
}
.nc-btn:hover { background: #334155; border-color: #38bdf8; color: #fff; }
.nc-btn.nc-x { font-size: 16px; line-height: 14px; padding: 2px 8px; }
.nc-body { flex: 1; display: flex; min-height: 0; }
.nc-side {
  width: 300px; flex-shrink: 0;
  background: #070c17; border-right: 1px solid #1e293b;
  padding: 12px; overflow-y: auto;
}
.nc-side-title, .nc-footer-title, .nc-section {
  font-family: 'Consolas', monospace; font-size: 10px; letter-spacing: 2px; color: #64748b; margin-bottom: 8px;
}
.nc-section { margin-top: 16px; padding-top: 10px; border-top: 1px solid #1e293b; }
.nc-empty { font-size: 12px; color: #64748b; padding: 20px 6px; line-height: 1.6; }
.nc-empty span { font-size: 11px; color: #334155; }
.nc-ticket {
  background: #0d1526; border: 1px solid #1e293b; border-left: 3px solid #475569;
  border-radius: 6px; padding: 9px 10px; margin-bottom: 8px;
  animation: obj-in 0.3s ease-out both;
}
.nc-ticket.p1 { border-left-color: #ef4444; }
.nc-ticket.p2 { border-left-color: #f59e0b; }
.nc-ticket.p3 { border-left-color: #fb923c; }
.nc-ticket.st-closed { opacity: 0.55; }
.nc-ticket.st-new { box-shadow: 0 0 16px rgba(239, 68, 68, 0.25); }
.nc-t-row { display: flex; align-items: center; gap: 8px; font-family: 'Consolas', monospace; font-size: 10px; }
.nc-prio { font-weight: bold; color: #ef4444; }
.nc-ticket.p2 .nc-prio { color: #f59e0b; }
.nc-ticket.p3 .nc-prio { color: #fb923c; }
.nc-id { color: #94a3b8; }
.nc-state { margin-left: auto; font-weight: bold; color: #64748b; padding: 1px 6px; border-radius: 8px; background: #111a2c; }
.st-new .nc-state { color: #ef4444; animation: nq-blink 1s steps(2) infinite; }
.st-assigned .nc-state { color: #f59e0b; }
.st-resolved .nc-state { color: #10b981; }
.nc-t-title { font-size: 12.5px; color: #e2e8f0; font-weight: 600; margin-top: 4px; }
.nc-t-sub { font-family: 'Consolas', monospace; font-size: 10px; color: #64748b; margin-top: 2px; }

.nc-main { flex: 1; overflow-y: auto; padding: 16px 20px; min-width: 0; }
.nc-main.shake { animation: nc-shake 0.4s ease; }
@keyframes nc-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.nc-d-head { border-left: 3px solid #475569; padding-left: 12px; margin-bottom: 14px; }
.nc-d-head.p1 { border-left-color: #ef4444; }
.nc-d-head.p2 { border-left-color: #f59e0b; }
.nc-d-head.p3 { border-left-color: #fb923c; }
.nc-d-id { font-family: 'Consolas', monospace; font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 8px; }
.nc-d-head h3 { font-size: 17px; color: #f8fafc; margin-top: 4px; line-height: 1.3; }
.nc-badge { font-size: 9.5px; letter-spacing: 1px; font-weight: bold; padding: 2px 7px; border-radius: 8px; background: #1e293b; color: #cbd5e1; }
.nc-badge.p1 { background: rgba(239, 68, 68, 0.18); color: #ef4444; }
.nc-badge.p2 { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.nc-badge.p3 { background: rgba(251, 146, 60, 0.18); color: #fb923c; }
.nc-badge.st { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.nc-d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 12px; }
.nc-d-grid div { background: #0d1526; border: 1px solid #1e293b; border-radius: 6px; padding: 7px 10px; }
.nc-d-grid span, .nc-clock span, .nc-score-grid span, .nc-tile span {
  display: block; font-family: 'Consolas', monospace; font-size: 9.5px; letter-spacing: 1px; color: #64748b; margin-bottom: 2px;
}
.nc-d-grid b { font-size: 12px; color: #e2e8f0; font-weight: 600; }
.nc-d-grid i.warn { color: #f59e0b; font-style: normal; }
.nc-clocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.nc-clock { background: #060b14; border: 1px solid #1e293b; border-radius: 6px; padding: 8px 10px; text-align: center; }
.nc-clock b { font-family: 'Consolas', monospace; font-size: 17px; color: #e2e8f0; }
.nc-clock b.ok, .ok { color: #10b981 !important; }
.nc-clock b.warn, .warn { color: #f59e0b !important; }
.nc-clock b.crit, .crit { color: #ef4444 !important; }
.nc-alerts {
  font-family: 'Consolas', monospace; font-size: 11px; line-height: 1.55; color: #f59e0b;
  background: #040810; border: 1px solid #1e293b; border-radius: 6px; padding: 10px 12px;
  white-space: pre-wrap; word-break: break-word; margin: 0;
}
.nc-timeline { display: flex; gap: 6px; margin-top: 12px; }
.nc-tl { flex: 1; display: flex; align-items: center; gap: 6px; font-family: 'Consolas', monospace; font-size: 10px; color: #475569; background: #0d1526; border-radius: 6px; padding: 6px 8px; }
.nc-tl-dot { width: 8px; height: 8px; border-radius: 50%; background: #1e293b; flex-shrink: 0; }
.nc-tl.done { color: #cbd5e1; }
.nc-tl.done .nc-tl-dot { background: #10b981; box-shadow: 0 0 6px #10b981; }
.nc-tl-v { margin-left: auto; color: inherit; }
.nc-steps { list-style: none; font-size: 12px; color: #94a3b8; line-height: 1.5; }
.nc-steps li { padding: 4px 0 4px 20px; position: relative; }
.nc-steps li::before { content: '\25CB'; position: absolute; left: 2px; color: #475569; }
.nc-steps li.done { color: #10b981; text-decoration: line-through; }
.nc-steps li.done::before { content: '\2713'; color: #10b981; }
.nc-action { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nc-dim { font-size: 11px; color: #64748b; line-height: 1.4; flex: 1; min-width: 200px; }
.nc-primary {
  background: linear-gradient(135deg, #0284c7 0%, #00ffcc 100%);
  border: none; color: #040810; font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px;
  padding: 12px 22px; border-radius: 6px; cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.nc-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 30px rgba(0, 255, 204, 0.6); }
.nc-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.nc-secondary { background: #1e293b; border: 1px solid #334155; color: #cbd5e1; font-size: 12px; font-weight: 600; letter-spacing: 1px; padding: 12px 20px; border-radius: 6px; cursor: pointer; }
.nc-secondary:hover { border-color: #38bdf8; color: #fff; }
.nc-q { font-size: 13px; color: #e2e8f0; margin-bottom: 10px; }
.nc-rfo { display: flex; flex-direction: column; gap: 6px; }
.nc-opt {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  background: #0d1526; border: 1px solid #1e293b; border-radius: 6px; padding: 9px 12px;
  font-size: 12.5px; color: #cbd5e1; line-height: 1.4; transition: border-color 0.15s, background 0.15s;
}
.nc-opt:hover { border-color: #38bdf8; }
.nc-opt.sel { border-color: #00ffcc; background: rgba(0, 255, 204, 0.06); color: #fff; }
.nc-opt input { margin-top: 3px; accent-color: #00ffcc; }
.nc-error { margin-top: 10px; font-size: 12px; color: #ef4444; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.4); border-radius: 6px; padding: 8px 12px; }
.nc-idle { text-align: center; padding: 60px 30px; color: #94a3b8; }
.nc-idle-icon { font-size: 42px; color: #10b981; animation: rt-pulse 2s ease-in-out infinite; }
.nc-idle h3 { font-family: 'Consolas', monospace; letter-spacing: 3px; color: #10b981; margin: 10px 0 12px; }
.nc-idle p { font-size: 13px; line-height: 1.6; max-width: 520px; margin: 0 auto 8px; }
.nc-closed { text-align: center; padding: 10px 20px; }
.nc-closed h2 { font-size: 24px; color: #fff; margin: 8px 0 10px; }
.nc-closed p { font-size: 13.5px; color: #94a3b8; line-height: 1.5; max-width: 620px; margin: 0 auto 18px; }
.nc-score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.nc-score-grid div { background: #060b14; border: 1px solid #1e293b; border-radius: 6px; padding: 8px 10px; }
.nc-score-grid b { font-family: 'Consolas', monospace; font-size: 15px; color: #e2e8f0; }
.nc-score { font-family: 'Consolas', monospace; font-size: 13px; letter-spacing: 2px; color: #94a3b8; margin: 6px 0; }
.nc-score b { color: #00ffcc; font-size: 22px; margin-left: 8px; }
.nc-rank { font-family: 'Consolas', monospace; font-size: 12px; letter-spacing: 2px; color: #94a3b8; margin-bottom: 8px; }
.nc-rank b { color: #facc15; }
.nc-closed .nc-action { justify-content: center; }
.nc-table { width: 100%; border-collapse: collapse; font-family: 'Consolas', monospace; font-size: 11.5px; margin: 10px 0 14px; }
.nc-table th { color: #64748b; font-weight: normal; letter-spacing: 1px; font-size: 10px; padding: 6px; border-bottom: 1px solid #1e293b; }
.nc-table td { padding: 7px 6px; color: #cbd5e1; border-bottom: 1px solid #111a2c; }
.nc-footer { border-top: 1px solid #1e293b; background: #070c17; padding: 10px 16px 12px; }
.nc-monitor { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.nc-tile { background: #0d1526; border: 1px solid #1e293b; border-radius: 6px; padding: 6px 8px; border-top: 2px solid #475569; }
.nc-tile b { font-family: 'Consolas', monospace; font-size: 11.5px; color: #e2e8f0; white-space: nowrap; }
.nc-tile.ok { border-top-color: #10b981; }
.nc-tile.warn { border-top-color: #f59e0b; }
.nc-tile.crit { border-top-color: #ef4444; animation: tile-alert 1.2s ease-in-out infinite; }
@keyframes tile-alert { 50% { background: rgba(239, 68, 68, 0.12); } }
@media (max-width: 1150px) { .nc-monitor { grid-template-columns: repeat(4, 1fr); } .nc-side { width: 240px; } }

/* ---- victory badge reused inside the console ---- */
.victory-badge {
  display: inline-block;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}

/* ---- hands-free (no tool selected) + view toggle ---- */
.toolbelt-bar .tool-slot.tool-hands {
  width: 56px;
  border-style: dashed;
}
body.hands-free .toolbelt-bar .tool-slot.tool-hands {
  border: 2px solid #00ffcc;
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.3);
  transform: translateY(-4px);
}
.toolbelt-hint {
  text-align: center;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-top: 5px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.8);
}
.toolbelt-hint b { color: #00ffcc; }
body.third-person #crosshair { opacity: 0.55; }
/* QA screenshots (index.html?debug=1&nohud=1): hide the HUD so the world is visible */
body.debug-nohud > div:not(#game-container) { display: none !important; }
