/* ══ Basis ══ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --bg:            #0d1117;
  --panel:         #161b22;
  --border:        #30363d;
  --muted:         #8b949e;
  --wallet-bg:     #050816;
  --wallet-panel:  #0a0f1e;
  --wallet-border: #1e293b;
  --blue:   #1d4ed8;
  --cyan:   #67e8f9;
  --green:  #4ade80;
  --red:    #f87171;
  --yellow: #fbbf24;
}

html, body { height: 100%; margin: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: #e6edf3;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ══ Topbar ══ */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.topbar__badge {
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.topbar__title { font-size: 1rem; font-weight: 700; margin: 0; }
.back-link {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.12s;
}
.back-link:hover { background: #21262d; }

/* ══ Haupt-Layout: 3 Spalten ══ */
.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr 340px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ══ SIDEBAR – Profilauswahl ══ */
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 12px;
}
.sidebar__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0 4px;
}
.profile-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #c9d1d9;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-size: 0.85rem;
}
.profile-btn:hover { background: #21262d; border-color: var(--border); }
.profile-btn.active {
  background: #1b3b5f;
  border-color: #2563eb;
  color: #fff;
}
.profile-btn__name { font-weight: 700; display: block; }
.profile-btn__meta { font-size: 0.72rem; color: #8b949e; margin-top: 2px; }
.profile-btn.active .profile-btn__meta { color: #93c5fd; }

.platform-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.dot-linkedin  { background: #0a66c2; }
.dot-facebook  { background: #1877f2; }
.dot-instagram { background: #dd2a7b; }

/* ══ MITTE – Chat-Bereich ══ */
.chat-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0d1117;
  border-right: 1px solid var(--border);
  position: relative; /* Anker für Exfil-Overlay */
}

/* ══ EXFILTRATIONS-OVERLAY (erscheint über dem Chat) ══ */
.exfil-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: #050816;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.exfil-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Header */
.exfil-header {
  background: #0a0f1e;
  border-bottom: 1px solid #1e293b;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.exfil-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 9px;
  border-radius: 20px;
  animation: exfil-pulse 0.7s infinite;
}
@keyframes exfil-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 8px var(--red); }
  50%      { opacity: 0.5; box-shadow: none; }
}
.exfil-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  flex: 1;
}
.exfil-timer {
  font-size: 0.75rem;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Datenpaket-Flug-Track */
.exfil-track-wrap {
  padding: 14px 18px 10px;
  background: #050816;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}
.exfil-track-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.exfil-track {
  height: 8px;
  background: #0f172a;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
}
/* Mehrere Pakete via CSS-Animation */
.exfil-packet {
  position: absolute;
  top: 0; left: -40px;
  width: 28px; height: 100%;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: fly-packet 1.6s linear infinite;
}
.exfil-packet:nth-child(2) { animation-delay: 0.53s; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.exfil-packet:nth-child(3) { animation-delay: 1.07s; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
@keyframes fly-packet {
  0%   { left: -40px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { left: calc(100% + 10px); opacity: 0; }
}

/* Fortschrittsbalken */
.exfil-progress-bar-track {
  height: 4px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.exfil-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  border-radius: 999px;
  transition: width 0.4s ease;
}
.exfil-progress-pct {
  font-size: 0.7rem;
  color: var(--yellow);
  font-weight: 700;
  margin-top: 4px;
  text-align: right;
}

/* Log-Bereich */
.exfil-log {
  flex: 1;
  overflow-y: auto;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exfil-log-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #0a0f1e;
  border: 1px solid #1e293b;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.exfil-log-entry.visible {
  opacity: 1;
  transform: translateY(0);
}
.exfil-log-icon { font-size: 0.9rem; flex-shrink: 0; }
.exfil-log-name { flex: 1; color: #e2e8f0; font-weight: 600; }
.exfil-log-size { color: #64748b; white-space: nowrap; }
.exfil-log-dest { color: var(--cyan); font-size: 0.68rem; white-space: nowrap; }
.exfil-log-status { font-size: 0.68rem; font-weight: 700; white-space: nowrap; }
.exfil-log-status.ok  { color: var(--green); }
.exfil-log-status.run { color: var(--yellow); animation: exfil-pulse 0.8s infinite; }

/* Abschluss-Banner */
.exfil-done {
  padding: 14px 18px;
  background: rgba(74,222,128,0.06);
  border-top: 1px solid rgba(74,222,128,0.2);
  display: none;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.exfil-done.visible { display: flex; }
.exfil-done__icon { font-size: 1.4rem; }
.exfil-done__text { flex: 1; font-size: 0.8rem; color: #86efac; line-height: 1.5; }
.exfil-done__btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.1);
  color: var(--green);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.12s;
}
.exfil-done__btn:hover { background: rgba(74,222,128,0.2); }

/* Profil-Header im Chat */
.chat-profile-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #1d4ed8;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 0.85rem; color: #fff;
  flex-shrink: 0;
}
.chat-profile-name  { font-size: 0.9rem; font-weight: 700; }
.chat-profile-sub   { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

/* Placeholder */
.chat-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #30363d;
  gap: 12px;
}
.chat-placeholder__icon { font-size: 3rem; }
.chat-placeholder__text { font-size: 0.88rem; color: #484f58; text-align: center; }

/* Angriffs-Auswahl */
.attack-select-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}
.attack-select-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
}
.attack-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #161b22;
  color: #c9d1d9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-size: 0.85rem;
}
.attack-btn:hover { background: #21262d; border-color: #484f58; }
.attack-btn__label { font-weight: 700; display: block; margin-bottom: 3px; }
.attack-btn__desc  { font-size: 0.75rem; color: #8b949e; }
/* Szenario-Buttons: Ergebnis-Färbung NUR nach Gebrauch (.used) */
.attack-btn.used { cursor: default; pointer-events: none; opacity: 0.85; }
.attack-btn.used.success {
  border-left: 3px solid var(--green);
  background: #0f2a1a;
  color: #86efac;
}
.attack-btn.used.success .attack-btn__desc { color: #4ade80; }
.attack-btn.used.flop {
  border-left: 3px solid var(--red);
  background: #2a0f0f;
  color: #fca5a5;
}
.attack-btn.used.flop .attack-btn__desc { color: #f87171; }

/* Chat-Fenster */
.chat-window-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0d1117;
}
.chat-msg { display: flex; align-items: flex-end; gap: 8px; }
.chat-msg.you     { flex-direction: row-reverse; }
.chat-msg.profile { flex-direction: row; }
.chat-msg.system  { justify-content: center; }

.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #21262d;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #8b949e;
  flex-shrink: 0;
}
.chat-msg.you .msg-avatar { background: #1b3b5f; color: #93c5fd; }

.msg-wrap { display: flex; flex-direction: column; max-width: 78%; }
.chat-msg.you .msg-wrap { align-items: flex-end; }

.msg-label { font-size: 0.65rem; color: #484f58; margin-bottom: 3px; }

.bubble {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.chat-msg.you .bubble {
  background: #1b3b5f;
  color: #e2e8f0;
  border-radius: 14px 14px 4px 14px;
}
.chat-msg.profile .bubble {
  background: #161b22;
  color: #c9d1d9;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
}
.chat-msg.system .bubble {
  background: #1a1a2e;
  color: #8b949e;
  border: 1px solid #21262d;
  border-radius: 8px;
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}

/* Schritt-Bereich */
.step-area {
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  background: var(--panel);
  flex-shrink: 0;
}
.step-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.step-dot {
  flex: 1; height: 4px;
  border-radius: 999px;
  background: #21262d;
  transition: background 0.2s;
}
.step-dot.done    { background: var(--green); }
.step-dot.current { background: #2563eb; }

.step-question {
  font-size: 0.82rem;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 10px;
}
.step-option {
  display: block;
  width: 100%;
  text-align: left;
  background: #161b22;
  color: #c9d1d9;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.12s, border-color 0.12s;
}
.step-option:hover { background: #21262d; border-color: #484f58; }

/* Ergebnis-Buttons */
.result-actions { display: flex; flex-direction: column; gap: 8px; }
.result-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #21262d;
  color: #c9d1d9;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.12s;
}
.result-btn:hover { background: #2d333b; }
.result-btn.primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #dc2626;
  color: #fff;
}
.result-btn.primary:hover { filter: brightness(1.1); }

/* Auswertungs-Box */
.summary-box {
  margin: 0 18px 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  flex-shrink: 0;
}
.summary-box.success {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.3);
  border-left: 3px solid var(--red);
  color: #fca5a5;
}
.summary-box.fail {
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.2);
  border-left: 3px solid var(--green);
  color: #86efac;
}

/* ══ RECHTS – Wallet-Panel ══ */
.wallet-panel {
  background: var(--wallet-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wallet-header {
  background: var(--wallet-panel);
  border-bottom: 1px solid var(--wallet-border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wallet-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.wallet-header-info strong { font-size: 0.88rem; color: #e2e8f0; display: block; }
.wallet-header-info span   { font-size: 0.7rem; color: #64748b; }
.wallet-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: auto;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.wallet-balance {
  padding: 20px 18px 14px;
  border-bottom: 1px solid var(--wallet-border);
  background: #080d1a;
  flex-shrink: 0;
}
.wallet-balance-label {
  font-size: 0.7rem; color: #64748b;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}
.wallet-balance-amount {
  font-size: 2rem; font-weight: bold;
  color: var(--green); letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(74,222,128,0.4);
}
.wallet-balance-sub { font-size: 0.72rem; color: #475569; margin-top: 4px; }

.wallet-progress {
  padding: 12px 18px;
  border-bottom: 1px solid var(--wallet-border);
  background: #080d1a;
  flex-shrink: 0;
}
.wallet-progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.7rem; color: #64748b; margin-bottom: 6px;
}
.wallet-bar-track {
  height: 6px; background: #1e293b;
  border-radius: 10px; overflow: hidden;
}
.wallet-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #7c3aed, var(--green));
  border-radius: 10px;
  transition: width 0.3s;
}

.wallet-tx-header {
  padding: 10px 18px 6px;
  font-size: 0.7rem; color: #64748b;
  letter-spacing: 1px; text-transform: uppercase;
  background: #080d1a;
  border-bottom: 1px solid var(--wallet-border);
  flex-shrink: 0;
}
.wallet-tx-list {
  flex: 1; overflow-y: auto;
  background: var(--wallet-bg);
  margin: 0; padding: 0; list-style: none;
}
.tx-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid #0f172a;
}
.tx-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.tx-icon.incoming { background: rgba(74,222,128,0.12); }
.tx-icon.pending  { background: rgba(251,191,36,0.12); }
.tx-icon.outgoing { background: rgba(248,113,113,0.12); }
.tx-info { flex: 1; min-width: 0; }
.tx-info strong {
  display: block; font-size: 0.78rem; color: #e2e8f0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tx-info span { font-size: 0.68rem; color: #475569; }
.tx-amount { font-size: 0.82rem; font-weight: bold; white-space: nowrap; }
.tx-amount.incoming { color: var(--green); }
.tx-amount.pending  { color: var(--yellow); }
.tx-amount.outgoing { color: var(--red); }

.wallet-ticker {
  background: var(--wallet-panel);
  border-top: 1px solid var(--wallet-border);
  padding: 8px 18px;
  font-size: 0.68rem; color: #475569;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--red);
  flex-shrink: 0; animation: pulse 1s infinite;
}

/* Wallet-Idle-State */
.wallet-idle {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #21262d; gap: 10px; padding: 20px;
}
.wallet-idle__icon { font-size: 2.5rem; }
.wallet-idle__text { font-size: 0.8rem; color: #30363d; text-align: center; }

/* Datenfluss-Animation (inline, kompakt) */
.flow-scene {
  flex-shrink: 0;
  background: #050816;
  border-bottom: 1px solid var(--wallet-border);
  padding: 14px 18px 10px;
  display: none;
}
.flow-scene.active { display: block; }
.flow-scene__title {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--red); margin-bottom: 8px;
}
.flow-track {
  height: 6px; background: #0f172a;
  border-radius: 999px; position: relative; overflow: hidden;
  margin-bottom: 6px;
}
.flow-packet {
  position: absolute;
  width: 20px; height: 100%;
  background: var(--red);
  border-radius: 999px;
  left: -30px;
  box-shadow: 0 0 10px var(--red);
}
.flow-status {
  font-size: 0.72rem; color: var(--cyan); min-height: 18px;
}

/* Responsive */
@media (max-width: 900px) {
  .app-layout { grid-template-columns: 200px 1fr; }
  .wallet-panel { display: none; }
}
@media (max-width: 600px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ══ Ergänzungen: Sprachwahl, Abschluss, Fortschritt ══ */
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 3px; }
.lang-switch button {
  background: transparent; color: #94a3b8; border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 8px; font-size: 0.72rem; font-weight: 700; cursor: pointer;
}
.lang-switch button:hover { background: #21262d; }
.lang-switch button.active { background: #1b3b5f; border-color: #2563eb; color: #fff; }
.finish-btn {
  background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; border: 1px solid #dc2626;
  border-radius: 6px; padding: 6px 12px; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.finish-btn:hover { filter: brightness(1.1); }

.resume-notice {
  margin: 12px 18px 0; padding: 10px 14px; border-radius: 8px; font-size: 0.8rem; line-height: 1.5;
  background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.4); color: #bfdbfe; flex-shrink: 0;
}
.attack-intro { font-size: 0.82rem; color: #c9d1d9; line-height: 1.5; margin-bottom: 14px; }

.chat-avatar { overflow: hidden; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-btn__status { display: block; font-size: 0.68rem; color: #6e7681; margin-top: 4px; }
.profile-btn__status.started { color: var(--yellow); }
.profile-btn.complete .profile-btn__status { color: var(--green); }

.summary-box strong { display: block; margin-bottom: 4px; }
.summary-loot { margin-top: 6px; font-weight: 700; }
#chatSummary { padding-top: 10px; flex-shrink: 0; }
.result-btn { text-decoration: none; text-align: center; }

.wallet-active { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

/* Abschluss-Dialog */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(1,4,9,0.8);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 22px 24px;
}
.modal h2 { margin: 0 0 14px; font-size: 1.15rem; }
.modal h3 { margin: 18px 0 8px; font-size: 0.9rem; color: #93c5fd; }
.modal ul { margin: 0; padding-left: 18px; font-size: 0.82rem; line-height: 1.6; color: #c9d1d9; }
.finish-total { background: var(--wallet-bg); border: 1px solid var(--wallet-border); border-radius: 8px; padding: 12px 14px; }
.finish-total__label { font-size: 0.7rem; color: #64748b; text-transform: uppercase; letter-spacing: 1px; }
.finish-total__amount { font-size: 1.8rem; font-weight: 700; color: var(--green); }
.finish-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.finish-stat { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 0.72rem; color: var(--muted); }
.finish-stat strong { display: block; font-size: 1.3rem; color: #e6edf3; }
.finish-stat.success strong { color: var(--red); }
.finish-stat.fail strong { color: var(--green); }
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }

/* „Erwischt“-Overlay (gescheiterter Angriff) */
.caught-overlay { background: #0b0612; }
.caught-badge { background: #2563eb; animation: caught-badge 0.5s infinite alternate; }
@keyframes caught-badge {
  from { background: var(--red); box-shadow: 0 0 10px var(--red); }
  to   { background: #2563eb; box-shadow: 0 0 10px #2563eb; }
}
.caught-sirens { display: flex; justify-content: center; gap: 28px; padding: 18px 0 6px; flex-shrink: 0; }
.caught-siren { width: 46px; height: 46px; border-radius: 50%; }
.caught-siren.red  { background: var(--red); animation: siren 0.5s infinite alternate; }
.caught-siren.blue { background: #3b82f6; animation: siren 0.5s infinite alternate-reverse; }
@keyframes siren {
  from { opacity: 1; box-shadow: 0 0 30px 10px currentColor; }
  to   { opacity: 0.2; box-shadow: none; }
}
.caught-siren.red  { color: rgba(248,113,113,0.7); }
.caught-siren.blue { color: rgba(59,130,246,0.7); }
.caught-text { padding: 8px 18px 4px; font-size: 0.85rem; line-height: 1.5; color: #c9d1d9; text-align: center; flex-shrink: 0; }
.caught-done { background: rgba(59,130,246,0.08); border-top-color: rgba(59,130,246,0.3); }
.caught-done .exfil-done__text { color: #bfdbfe; }
.caught-done .exfil-done__btn { color: #93c5fd; border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.12); }
@media (prefers-reduced-motion: reduce) {
  .caught-badge, .caught-siren { animation: none; }
}

/* Fehlversuche / Verhaftung */
.fail-indicator {
  font-size: 0.72rem; font-weight: 700; color: #94a3b8;
  border: 1px solid var(--border); border-radius: 6px; padding: 5px 9px; white-space: nowrap;
}
.fail-indicator.warn { color: var(--yellow); border-color: rgba(251,191,36,0.5); }
.fail-indicator.arrested { color: #fff; background: #1d4ed8; border-color: #2563eb; }
.summary-warning { margin-top: 8px; font-weight: 700; color: var(--yellow); }
.arrested-notice {
  margin-bottom: 14px; padding: 10px 14px; border-radius: 8px; font-size: 0.82rem; line-height: 1.5;
  background: rgba(37,99,235,0.15); border: 1px solid #2563eb; color: #bfdbfe;
}
.attack-btn.locked { opacity: 0.45; cursor: not-allowed; }
.finish-arrested {
  margin-bottom: 10px; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 700;
  background: rgba(37,99,235,0.15); border: 1px solid #2563eb; color: #bfdbfe;
}
