/* =============================================================
   MITRE ATT&CK Defense Game — Stylesheet
   Design: Dark · Glassmorphism · Rot/Orange Akzente
   ============================================================= */

/* ── Reset & Basis ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0c0c0e;
  --bg2:         #111114;
  --surface:     rgba(255,255,255,0.045);
  --surface-2:   rgba(255,255,255,0.08);
  --border:      rgba(255,255,255,0.09);
  --border-2:    rgba(255,255,255,0.15);
  --text:        #f0f0f0;
  --text-muted:  rgba(255,255,255,0.45);
  --text-dim:    rgba(255,255,255,0.25);
  --red:         #ef4444;
  --red-soft:    rgba(239,68,68,0.15);
  --orange:      #f97316;
  --orange-soft: rgba(249,115,22,0.12);
  --green:       #22c55e;
  --green-soft:  rgba(34,197,94,0.12);
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --blur:        12px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', monospace;
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(239,68,68,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(249,115,22,0.05) 0%, transparent 50%);
}

#app { min-height: 100vh; }

/* ── Glassmorphism Mixins ────────────────────────────────────── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
}

/* ── Buttons ─────────────────────────────────────────────────── */
button { cursor: pointer; font-family: var(--font); border: none; outline: none; transition: all .2s; }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  padding: .75rem 2rem;
  border-radius: 50px;
  letter-spacing: .02em;
  box-shadow: 0 4px 20px rgba(239,68,68,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(239,68,68,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  padding: .7rem 1.5rem;
  border-radius: 50px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
  padding: .65rem 1.4rem;
  border-radius: 50px;
}
.btn-ghost:hover { border-color: var(--border-2); color: var(--text); }

.btn-back {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
}
.btn-back:hover { color: var(--text); border-color: var(--border-2); }

.btn-back-sm {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .78rem;
  padding: .35rem .75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.btn-back-sm:hover { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   START SCREEN
══════════════════════════════════════════════════════════════ */
.screen-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  gap: 2rem;
  text-align: center;
}

.logo-block { display: flex; flex-direction: column; align-items: center; gap: .75rem; }

.logo-icon {
  font-size: 4.5rem;
  filter: drop-shadow(0 0 24px rgba(239,68,68,0.5));
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,100% { filter: drop-shadow(0 0 20px rgba(239,68,68,0.4)); }
  50%      { filter: drop-shadow(0 0 36px rgba(249,115,22,0.6)); }
}

.logo-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.logo-sub {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--orange);
  letter-spacing: .04em;
}

.start-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 420px;
}

.start-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  backdrop-filter: blur(var(--blur));
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.stat-num { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.stat-lbl { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-divider { width: 1px; height: 2.5rem; background: var(--border); }

/* ══════════════════════════════════════════════════════════════
   SCENARIO SELECTION
══════════════════════════════════════════════════════════════ */
.screen-scenarios {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  gap: 1.5rem;
}

.scenarios-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.scenarios-header h2 { font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; }
.scenarios-header p  { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }

.scenarios-content { display: flex; flex-direction: column; gap: 2.5rem; padding-bottom: 3rem; }

.scenario-group { display: flex; flex-direction: column; gap: 1rem; }

.group-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.group-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.group-label { font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  backdrop-filter: blur(var(--blur));
  position: relative;
  overflow: hidden;
}
.scenario-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.02));
  opacity: 0;
  transition: opacity .25s;
}
.scenario-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.scenario-card:hover::before { opacity: 1; }
.scenario-card:active { transform: translateY(-1px); }

.scenario-card.done { border-color: rgba(34,197,94,0.25); }
.scenario-card.done::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.sc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sc-icon { font-size: 2rem; }
.sc-done-badge {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 50px;
}

.sc-name { font-size: 1rem; font-weight: 700; line-height: 1.3; }

.sc-tactics { display: flex; flex-wrap: wrap; gap: .35rem; }
.tactic-tag {
  font-size: .68rem;
  font-weight: 600;
  opacity: .85;
  border: 1px solid currentColor;
  padding: .1rem .4rem;
  border-radius: 4px;
  opacity: .7;
}

.sc-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.sc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}
.sc-rounds { font-size: .75rem; color: var(--text-dim); }
.sc-diff   { font-size: .75rem; font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   GAME SCREEN
══════════════════════════════════════════════════════════════ */
.screen-game {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Topbar */
.game-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1.5rem;
  background: rgba(12,12,14,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}
.topbar-name {
  font-size: .9rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-rounds { display: flex; gap: .4rem; align-items: center; }
.round-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-2);
  transition: all .3s;
}
.round-dot.done   { background: var(--green); box-shadow: 0 0 6px var(--green); }
.round-dot.active { background: var(--orange); box-shadow: 0 0 8px var(--orange); width: 10px; height: 10px; }

.topbar-hearts { display: flex; gap: .3rem; }
.heart       { font-size: 1.1rem; color: var(--red); transition: all .3s; }
.heart.lost  { opacity: .18; filter: grayscale(1); }

/* Chain Bar */
.chain-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.5rem;
  background: rgba(12,12,14,0.6);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  min-height: 44px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chain-empty { font-size: .78rem; color: var(--text-dim); font-style: italic; }
.chain-entry {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--green-soft);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-sm);
  padding: .25rem .6rem;
  white-space: nowrap;
  font-size: .75rem;
}
.chain-entry.chain-wrong {
  background: var(--red-soft);
  border-color: rgba(239,68,68,0.2);
}
.chain-attack  { font-family: var(--mono); color: var(--red); font-weight: 600; }
.chain-arrow   { color: var(--text-dim); }
.chain-defense { color: var(--text-muted); }
.chain-sep     { color: var(--text-dim); font-size: .9rem; flex-shrink: 0; }

/* Arena */
.game-arena {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 1.5rem;
  gap: 1.5rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 800px) {
  .game-arena { grid-template-columns: 1fr; }
}

.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  padding-left: .25rem;
}
.attack-label  { color: var(--red); }
.defense-label { color: var(--text-muted); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
  transition: all .25s;
}

.card-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

/* ASCII-Art im Terminal-Stil (ersetzt Karten-Grafiken) */
.card-ascii {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.15;
  margin: 0;
  padding: .7rem .5rem .8rem;
  text-align: center;
  white-space: pre;
  overflow: hidden;
  color: var(--red);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.05), transparent 70%),
    rgba(0,0,0,0.28);
  border-bottom: 1px solid var(--border);
  text-shadow: 0 0 6px currentColor;
  letter-spacing: 0;
  user-select: none;
}
@media (max-width: 520px) {
  .card-ascii { font-size: 9px; }
}
.fp-card-body .card-ascii,
.fp-def-card .card-ascii {
  font-size: 9px;
  padding: .5rem .3rem;
  background: rgba(0,0,0,0.22);
  border-bottom: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: .5rem;
}

.card-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }

.card-header-row { display: flex; justify-content: space-between; align-items: center; }
.card-mitre { font-family: var(--mono); font-size: .75rem; color: var(--red); font-weight: 600; }
.card-tactic { font-size: .7rem; font-weight: 600; opacity: .8; }
.card-name { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.card-subtitle { font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.card-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

/* Attack Card */
.attack-card {
  border-color: rgba(239,68,68,0.25);
  border-left: 3px solid var(--red);
  box-shadow: 0 0 32px rgba(239,68,68,0.08), inset 0 0 40px rgba(239,68,68,0.03);
}

/* Narrative */
.narrative-box {
  margin-top: 1rem;
  background: rgba(249,115,22,0.07);
  border: 1px solid rgba(249,115,22,0.15);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.narrative-icon { margin-right: .4rem; }

/* Defense Grid */
.defense-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}

.defense-card {
  cursor: pointer;
  border-left: 3px solid var(--border-2);
  transition: all .2s;
}
.defense-card:hover {
  border-color: rgba(255,255,255,0.35);
  background: var(--surface-2);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.defense-card:active { transform: translateX(2px); }

.def-subtitle { font-size: .7rem; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* Card states */
.card-disabled { opacity: .6; cursor: default; }
.card-correct {
  border-color: var(--green) !important;
  background: var(--green-soft) !important;
  box-shadow: 0 0 20px rgba(34,197,94,0.15) !important;
  transform: translateX(4px);
}
.card-wrong {
  border-color: var(--red) !important;
  background: var(--red-soft) !important;
  animation: shake .4s ease;
}
.card-reveal {
  border-color: var(--green) !important;
  opacity: .75;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* Card entrance animation */
.card-enter {
  animation: card-in .35s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ══════════════════════════════════════════════════════════════
   RESULT SCREEN
══════════════════════════════════════════════════════════════ */
.screen-result {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.result-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  opacity: 0;
  transform: scale(.94) translateY(12px);
  transition: all .3s cubic-bezier(.22,.68,0,1.1);
}
.result-box.result-enter { opacity: 1; transform: scale(1) translateY(0); }

.result-box.result-correct { border-color: rgba(34,197,94,0.3); }
.result-box.result-wrong   { border-color: rgba(239,68,68,0.3); }

.result-icon { font-size: 3.5rem; }
.result-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.result-box.result-correct .result-title { color: var(--green); }
.result-box.result-wrong   .result-title { color: var(--red); }

.result-subtitle { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }

.result-explanation {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  text-align: left;
  width: 100%;
}
.exp-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--orange);
  margin-bottom: .5rem;
}
.result-explanation p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

.result-context {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--red-soft);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  width: 100%;
  flex-wrap: wrap;
}
.ctx-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); flex-shrink: 0; }
.ctx-mitre { font-family: var(--mono); font-size: .78rem; color: var(--red); font-weight: 700; flex-shrink: 0; }
.ctx-name  { font-size: .8rem; color: var(--text-muted); }

.result-hearts { display: flex; gap: .4rem; }
.result-btn { margin-top: .5rem; }

/* ══════════════════════════════════════════════════════════════
   COMPLETE SCREEN
══════════════════════════════════════════════════════════════ */
.screen-complete {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.complete-badge { font-size: 4rem; }
.complete-title { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.complete-sub   { color: var(--text-muted); font-size: .95rem; text-align: center; }

.complete-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 3rem;
}
.score-num { font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, var(--red), var(--orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.score-lbl { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; }

.complete-recap {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.recap-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-dim);
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.recap-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.recap-row:last-child { border-bottom: none; }
.recap-row.recap-ok   { background: rgba(34,197,94,0.04); }
.recap-row.recap-fail { background: rgba(239,68,68,0.04); }
.recap-num { font-size: .75rem; color: var(--text-dim); font-weight: 600; min-width: 1.2rem; }
.recap-content { flex: 1; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.recap-attack  { color: var(--text-muted); }
.recap-attack em { font-family: var(--mono); color: var(--red); font-size: .75rem; font-style: normal; margin-left: .3rem; }
.recap-arrow   { color: var(--text-dim); }
.recap-defense { color: var(--text); font-weight: 500; }
.recap-icon.recap-ok  > .recap-icon { color: var(--green); }
.recap-row.recap-ok   .recap-icon { color: var(--green); }
.recap-row.recap-fail .recap-icon { color: var(--red); }

.complete-btns { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; padding-bottom: 2rem; }

/* ══════════════════════════════════════════════════════════════
   GAME OVER SCREEN
══════════════════════════════════════════════════════════════ */
.screen-gameover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.go-icon  { font-size: 5rem; }
.go-title { font-size: 2.5rem; font-weight: 800; color: var(--red); letter-spacing: -.03em; }
.go-sub   { color: var(--text-muted); font-size: 1rem; max-width: 400px; line-height: 1.6; }
.go-scenario { font-size: .9rem; color: var(--text-dim); }
.go-scenario strong { color: var(--text-muted); }
.go-btns { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--border-2); border-radius: 3px; }

/* ── Selection ───────────────────────────────────────────────── */
::selection { background: rgba(239,68,68,0.25); color: var(--text); }


/* ══════════════════════════════════════════════════════════════
   BATTLE MODE — Styles
══════════════════════════════════════════════════════════════ */

/* ── Start-Screen Battle-Button ─────────────────────────────── */
.battle-entry-btn {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(249,115,22,0.1));
  border: 1px solid rgba(239,68,68,0.35);
  color: #fca5a5;
  font-size: .95rem;
  font-weight: 600;
  padding: .75rem 2rem;
  border-radius: 50px;
  letter-spacing: .02em;
  transition: all .2s;
}
.battle-entry-btn:hover {
  background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(249,115,22,0.2));
  border-color: rgba(239,68,68,0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(239,68,68,0.2);
}

/* ── Szenario-Auswahl ────────────────────────────────────────── */
.battle-select-header {
  display: flex; align-items: flex-start; gap: 1.25rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.battle-select-title { font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; }
.battle-select-sub   { color: var(--text-muted); font-size: .9rem; }

.battle-intro-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: .65rem;
  margin-bottom: 2rem; max-width: 680px;
}
.battle-rule {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .88rem; color: var(--text-muted); line-height: 1.5;
}
.battle-rule span:first-child { font-size: 1.1rem; flex-shrink: 0; }
.battle-rule strong { color: var(--text); }

.battle-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem; padding-bottom: 3rem;
}
.battle-scenario-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--red); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
  gap: .65rem; backdrop-filter: blur(var(--blur)); transition: all .25s;
}
.battle-scenario-card:hover {
  border-color: rgba(239,68,68,0.5); transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(239,68,68,0.1);
}
.bsc-icon   { font-size: 2.5rem; }
.bsc-name   { font-size: 1.15rem; font-weight: 700; }
.bsc-sub    { font-size: .8rem; color: var(--text-muted); font-style: italic; }
.bsc-rounds { font-size: .75rem; color: var(--text-dim); }
.bsc-diff   { font-size: .78rem; font-weight: 700; }
.bsc-desc   { font-size: .83rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.bsc-start-btn { margin-top: .5rem; width: 100%; }

/* ── Battle Hauptscreen ──────────────────────────────────────── */
.battle-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(239,68,68,0.08) 0%, transparent 60%);
}

.battle-topbar {
  display: flex; align-items: center; gap: 1rem; padding: .75rem 1.5rem;
  background: rgba(12,12,14,0.9); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 100; flex-wrap: wrap;
}
.battle-topbar-title { font-size: .95rem; font-weight: 700; }
.battle-round-label  {
  font-size: .8rem; color: var(--text-muted); flex: 1;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.phase-tag {
  background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.25);
  color: var(--orange); font-size: .7rem; font-weight: 600;
  padding: .15rem .5rem; border-radius: 4px;
}

/* HP-Balken */
.hp-bar-wrap { display: flex; align-items: center; gap: .6rem; min-width: 180px; }
.hp-label    { font-size: .7rem; font-weight: 700; color: var(--text-dim); letter-spacing: .05em; }
.hp-track    { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.hp-fill     { height: 100%; border-radius: 4px; transition: width .6s cubic-bezier(.22,.68,0,1); }
.hp-num      { font-size: .8rem; font-weight: 700; min-width: 2rem; text-align: right; }

/* Zonen-Label */
.battle-zone-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .75rem; padding: .35rem .75rem; border-radius: var(--radius-sm); display: inline-block;
}
.atk-label { background: var(--red-soft); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.def-label { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

.battle-attacker-zone { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid var(--border); }
.battle-wave          { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Angriffskarte */
.battle-attack-card {
  background: var(--surface); border: 1px solid rgba(239,68,68,0.25);
  border-left: 3px solid var(--red); border-radius: var(--radius);
  overflow: hidden; width: 220px; flex-shrink: 0;
  backdrop-filter: blur(var(--blur)); box-shadow: 0 0 24px rgba(239,68,68,0.06);
}
.battle-card-body   { padding: .85rem; display: flex; flex-direction: column; gap: .4rem; }
.battle-card-header { display: flex; justify-content: space-between; align-items: center; }
.battle-card-name   { font-size: .95rem; font-weight: 700; }
.battle-card-sub    { font-size: .75rem; color: var(--orange); font-weight: 500; }
.battle-card-desc   { font-size: .76rem; color: var(--text-muted); line-height: 1.5; }

.battle-dmg-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }
.dmg-badge {
  background: var(--red-soft); border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px;
}
.breakthrough-badge {
  background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.3);
  color: #fde68a; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px;
  animation: pulse-badge 2s ease infinite;
}
@keyframes pulse-badge { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

.escalation-badge {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5; font-size: .78rem; font-weight: 600; padding: .4rem .85rem;
  border-radius: var(--radius-sm); margin-bottom: .75rem; display: inline-block;
  animation: pulse-badge 1.5s ease infinite;
}

.battle-narrative {
  margin-top: 1rem; background: rgba(249,115,22,0.07);
  border: 1px solid rgba(249,115,22,0.15); border-radius: var(--radius-sm);
  padding: .85rem 1rem; font-size: .85rem; color: var(--text-muted);
  line-height: 1.6; max-width: 800px;
}

/* VS-Linie */
.battle-vs-bar {
  display: flex; align-items: center; justify-content: center;
  padding: .6rem; position: relative;
}
.battle-vs-bar::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--border);
}
.vs-text {
  background: var(--bg); border: 1px solid var(--border); color: var(--text-dim);
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  padding: .2rem .6rem; border-radius: 4px; position: relative; z-index: 1;
}

/* Spieler-Hand */
.battle-player-zone { padding: 1rem 1.5rem 2rem; display: flex; flex-direction: column; gap: .85rem; }
.battle-hand        { display: flex; gap: .85rem; flex-wrap: wrap; }

.battle-defense-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; width: 200px;
  flex-shrink: 0; cursor: pointer; transition: all .2s;
  position: relative; backdrop-filter: blur(var(--blur));
}
.battle-defense-card:hover {
  border-color: rgba(255,255,255,0.3); transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.battle-defense-card.bdef-selected {
  border-color: var(--green); background: var(--green-soft);
  transform: translateY(-6px); box-shadow: 0 8px 28px rgba(34,197,94,0.2);
}
.bdef-selected-badge {
  position: absolute; top: .5rem; right: .5rem;
  background: var(--green); color: #000;
  font-size: .68rem; font-weight: 800; padding: .15rem .45rem; border-radius: 4px; z-index: 2;
}

.battle-deck-info       { font-size: .72rem; color: var(--text-dim); }
.battle-confirm-btn     { align-self: flex-start; }
.battle-confirm-btn:disabled {
  opacity: .35; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}
.battle-skip-btn { align-self: flex-start; font-size: .8rem; }

/* ── Auflösungs-Screen ───────────────────────────────────────── */
.battle-resolve-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; padding: 2rem 1.5rem;
  gap: 1.25rem; max-width: 680px; margin: 0 auto;
}
.resolve-hp-section {
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem; width: 100%; max-width: 400px;
}
.resolve-damage {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em;
  animation: dmg-pop .4s cubic-bezier(.22,.68,0,1.2);
}
@keyframes dmg-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.damage-high { color: var(--red); }
.damage-med  { color: var(--orange); }
.damage-zero { color: var(--green); }

.resolve-badge {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; border: 1px solid;
}
.resolve-allBlocked  { background: var(--green-soft); border-color: rgba(34,197,94,0.3); color: #86efac; }
.resolve-someBlocked { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.3); color: #fdba74; }
.resolve-noneBlocked { background: var(--red-soft); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.badge-icon  { font-size: 1.5rem; }
.badge-label { font-size: .95rem; }

.resolve-wave {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.resolve-wave-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--border);
  font-size: .82rem; flex-wrap: wrap;
}
.resolve-wave-row:last-child { border-bottom: none; }
.row-blocked { background: rgba(34,197,94,0.04); }
.row-hit     { background: rgba(239,68,68,0.04); }
.rwr-icon    { font-size: 1rem; flex-shrink: 0; }
.rwr-attack  { color: var(--text-muted); flex: 1; }
.rwr-attack em {
  font-family: var(--mono); color: var(--red);
  font-size: .72rem; font-style: normal; margin-left: .25rem;
}
.rwr-arrow   { color: var(--text-dim); }
.rwr-result  { min-width: 120px; }
.blocked-label { color: #86efac; }
.hit-label     { color: #fca5a5; }

.resolve-narrative {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  font-size: .85rem; color: var(--text-muted); line-height: 1.65; width: 100%;
}
.escalation-info {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm); padding: .75rem 1rem;
  font-size: .83rem; color: #fca5a5; width: 100%; line-height: 1.5;
}
.escalation-info strong { color: var(--red); }
.resolve-next-btn { margin-top: .5rem; }

/* ── Battle Complete ─────────────────────────────────────────── */
.battle-complete-top {
  text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: .5rem;
}
.bc-grade { font-size: 5rem; font-weight: 900; line-height: 1; filter: drop-shadow(0 0 20px currentColor); }
.bc-title { font-size: 1.8rem; font-weight: 700; }
.bc-sub   { color: var(--text-muted); font-size: .95rem; }

.battle-complete-stats {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 2rem;
}
.bcs-item { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.bcs-val  { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.bcs-lbl  { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.bcs-div  { width: 1px; height: 2.5rem; background: var(--border); }

.recap-partial { background: rgba(249,115,22,0.04); }
.recap-phase   { color: var(--text-muted); font-size: .82rem; flex: 1; }
.recap-dmg     { font-size: .8rem; font-weight: 600; }
.dmg-pos  { color: var(--red); }
.dmg-zero { color: var(--green); }


/* ══════════════════════════════════════════════════════════════
   FREIES SPIEL (KI-Modus) — Styles
══════════════════════════════════════════════════════════════ */

.fp-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(239,68,68,0.07) 0%, transparent 55%);
}

/* Topbar */
.fp-topbar {
  display: flex; align-items: center; gap: .85rem; padding: .7rem 1.25rem;
  background: rgba(12,12,14,0.92); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 100; flex-wrap: wrap;
}
.fp-topbar-title { font-size: .9rem; font-weight: 600; }
.fp-turn-label   { font-size: .78rem; color: var(--text-dim); background: var(--surface);
  border: 1px solid var(--border); padding: .2rem .6rem; border-radius: 4px; }
.fp-hp-section   { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 180px; }
.fp-ioc-count    {
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: .25rem .75rem; border-radius: 50px; white-space: nowrap;
}
.fp-ioc-count span { color: var(--green); font-weight: 800; }

/* Split Layout */
.fp-main {
  flex: 1; display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0; min-height: 0;
}
@media (max-width: 960px) { .fp-main { grid-template-columns: 1fr; } }

/* Linke Seite */
.fp-left         { display: flex; flex-direction: column; gap: 0; overflow-y: auto; }
.fp-attack-zone  { padding: 1.25rem 1.25rem .75rem; border-bottom: 1px solid var(--border); }
.fp-wave         { display: flex; gap: .85rem; flex-wrap: wrap; }

.fp-attack-card  {
  background: var(--surface); border: 1px solid rgba(239,68,68,0.2);
  border-left: 3px solid var(--red); border-radius: var(--radius);
  width: 210px; flex-shrink: 0; backdrop-filter: blur(var(--blur));
  box-shadow: 0 0 20px rgba(239,68,68,0.05);
  animation: card-in .3s ease both;
}

.fp-defense-zone { padding: .85rem 1.25rem 1.5rem; flex: 1; }
.fp-hand         { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: .85rem; }

.fp-def-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); width: 185px; flex-shrink: 0;
  cursor: pointer; transition: all .18s; position: relative;
  backdrop-filter: blur(var(--blur));
}
.fp-def-card:hover {
  border-color: rgba(255,255,255,0.25); transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.fp-def-selected {
  border-color: var(--green) !important; background: var(--green-soft) !important;
  transform: translateY(-5px) !important; box-shadow: 0 6px 22px rgba(34,197,94,.2) !important;
}

.fp-confirm-btn { margin-top: .25rem; }
.fp-confirm-btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; }
.fp-skip-btn    { margin-top: .5rem; }

/* Karten-Body im Freispiel */
.fp-card-body { padding: .85rem; display: flex; flex-direction: column; gap: .35rem; }
.fp-card-hdr  { display: flex; justify-content: space-between; align-items: center; }
.fp-card-name { font-size: .95rem; font-weight: 700; line-height: 1.25; }
.fp-card-sub  { font-size: .73rem; color: var(--orange); font-weight: 500; }
.fp-card-desc { font-size: .76rem; color: var(--text-muted); line-height: 1.5; }
.fp-def-sub   { font-size: .68rem; color: var(--text-dim); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; }

/* ── Forensik-Terminal ───────────────────────────────────────── */
.fp-right       {
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: rgba(8,8,10,0.7); position: sticky; top: 53px;
  height: calc(100vh - 53px); overflow: hidden;
}
.fp-terminal    { display: flex; flex-direction: column; height: 100%; }

.fp-term-header {
  display: flex; align-items: center; gap: .45rem;
  padding: .6rem .85rem; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.fp-term-dot   { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.fp-term-title { font-size: .75rem; font-family: var(--mono); color: var(--text-muted); margin-left: .5rem; }

.fp-term-output {
  flex: 1; overflow-y: auto; padding: .6rem .85rem;
  font-family: var(--mono); font-size: .78rem; line-height: 1.65;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}

.fp-term-input-row {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .85rem; border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02); flex-shrink: 0;
}
.fp-term-prompt { color: var(--green); font-family: var(--mono); font-size: .85rem; font-weight: 700; }
.fp-term-input  {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--mono); font-size: .8rem; color: var(--text);
  caret-color: var(--green);
}
.fp-term-input::placeholder { color: var(--text-dim); }

/* Terminal Zeilen-Typen */
.fp-line-system  { color: var(--text-dim); }
.fp-line-info    { color: var(--text-muted); }
.fp-line-cmd     { color: #93c5fd; }  /* blau — eingegebene Befehle */
.fp-line-warn    { color: #fde68a; }  /* gelb — verdächtige Inhalte */
.fp-line-success { color: #86efac; }
.fp-line-error   { color: #fca5a5; }
.fp-line-muted   { color: var(--text-dim); font-style: italic; }

/* ── AI-Gedächtnis Chip (Topbar) ─────────────────────────────── */
.fp-ai-chip {
  display: flex; align-items: center; gap: .35rem; flex-shrink: 0;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: .2rem .65rem; border-radius: 50px; font-size: .7rem;
}
.ai-chip-label { font-weight: 800; color: var(--text-dim); letter-spacing: .05em; }
.ai-chip-val   { color: var(--text-muted); }
.ai-chip-sep   { color: var(--text-dim); }
.ai-chip-skill { font-weight: 700; }

/* ── Kill Chain Bar ──────────────────────────────────────────── */
.fp-killchain-bar {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,10,0.6);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; flex-shrink: 0;
  height: 32px;
}
.fp-killchain-bar::-webkit-scrollbar { display: none; }

.kc-seg {
  flex: 1; min-width: 52px; position: relative;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.04);
  transition: background .3s;
  --kc-color: #94a3b8;
}
.kc-seg:last-child { border-right: none; }

.kc-label {
  font-size: .62rem; font-weight: 600; color: var(--text-dim);
  letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  transition: color .3s;
}

.kc-seg.kc-completed {
  background: rgba(var(--kc-color-r, 148), var(--kc-color-g, 163), var(--kc-color-b, 184), 0.08);
}
.kc-seg.kc-completed .kc-label { color: var(--kc-color); opacity: .7; }

.kc-seg.kc-active {
  background: rgba(239,68,68,0.12);
  box-shadow: inset 0 0 0 1px rgba(239,68,68,0.25);
}
.kc-seg.kc-active .kc-label { color: var(--text); }
.kc-seg.kc-active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--kc-color); border-radius: 1px 1px 0 0;
}

.kc-dot {
  position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red);
  animation: kc-pulse 1.2s ease-in-out infinite;
}
@keyframes kc-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(1.6); }
}

/* ── Evidence Board ──────────────────────────────────────────── */
.eb-container {
  flex: 1; min-height: 0; padding: .5rem;
  background: rgba(6,6,8,0.85); overflow: hidden;
  position: relative;
}
.eb-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: .75rem;
  color: var(--text-dim); font-size: .82rem; text-align: center;
}
.eb-empty-icon { opacity: .3; }
.eb-empty-text { line-height: 1.6; opacity: .6; }

.eb-attr-ring {
  animation: attr-spin 4s linear infinite;
}
@keyframes attr-spin {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -20; }
}

/* ── Stats-Panel auf Select-Screen ──────────────────────────── */
.ai-stats-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .65rem 1rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  font-size: .75rem; color: var(--text-muted);
}
.ai-stat-item { display: flex; flex-direction: column; gap: .1rem; }
.ai-stat-val  { font-size: .9rem; font-weight: 700; color: var(--text); }
.ai-stat-lbl  { font-size: .65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.ai-stat-sep  { width: 1px; height: 1.8rem; background: var(--border); }

/* ══════════════════════════════════════════════════════════════
   START SCREEN — animierter Hintergrund
══════════════════════════════════════════════════════════════ */
.screen-start      { position: relative; overflow: hidden; }
.start-bg-canvas   { position: absolute; inset: 0; z-index: 0; opacity: .6; pointer-events: none; }
.start-content     { position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 100vh;
  padding: 3rem 1.5rem; gap: 1.75rem; text-align: center; }

.start-btn-main    { font-size: 1rem; padding: .85rem 2.5rem; }
.start-second-row  { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.start-small-btn   { font-size: .78rem !important; padding: .45rem 1rem !important; }

/* ══════════════════════════════════════════════════════════════
   ACHIEVEMENTS SCREEN
══════════════════════════════════════════════════════════════ */
.screen-achievements {
  min-height: 100vh; display: flex; flex-direction: column;
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 3rem;
}
.ach-header {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--border); margin-bottom: 1.5rem;
}
.ach-header-title { flex: 1; }
.ach-h-main       { font-size: 1.4rem; font-weight: 700; display: block; }
.ach-h-sub        { font-size: .82rem; color: var(--text-muted); }

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.ach-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem;
  display: flex; align-items: flex-start; gap: .85rem;
  animation: card-in .3s ease both;
  transition: all .2s;
}
.ach-card.ach-unlocked {
  border-color: rgba(var(--ach-r, 148), var(--ach-g, 163), var(--ach-b, 184), 0.3);
  background: linear-gradient(135deg, var(--surface), rgba(255,255,255,0.02));
}
.ach-card.ach-unlocked { border-left: 3px solid var(--ach-color, #94a3b8); }
.ach-card.ach-locked   { opacity: .45; }
.ach-card-icon  { flex-shrink: 0; }
.ach-card-body  { display: flex; flex-direction: column; gap: .2rem; }
.ach-card-title { font-size: .9rem; font-weight: 700; }
.ach-card-desc  { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }
.ach-card-date  { font-size: .68rem; color: var(--text-dim); margin-top: .2rem; }

/* Achievement Toast */
.achievement-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: rgba(12,12,14,0.96); border: 1px solid var(--ach-color, #94a3b8);
  border-left: 4px solid var(--ach-color, #94a3b8);
  border-radius: var(--radius); padding: .9rem 1.2rem;
  display: flex; align-items: center; gap: .85rem;
  min-width: 260px; max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  opacity: 0; transform: translateX(24px);
  backdrop-filter: blur(12px);
}
.ach-toast-enter { animation: toast-in  .35s cubic-bezier(.22,.68,0,1.2) forwards; }
.ach-toast-exit  { animation: toast-out .3s  ease forwards; }
@keyframes toast-in  { to { opacity:1; transform: translateX(0); } }
@keyframes toast-out { to { opacity:0; transform: translateX(16px); } }

.ach-toast-icon  { flex-shrink:0; color: var(--ach-color, #94a3b8); }
.ach-toast-label { font-size:.65rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.07em; color: var(--ach-color, #94a3b8); }
.ach-toast-title { font-size:.92rem; font-weight:700; color: var(--text); }
.ach-toast-desc  { font-size:.75rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   CARD FLIP ANIMATION (Attack reveal)
══════════════════════════════════════════════════════════════ */
.card-flip-wrap     { perspective: 1000px; }
.card-flip-inner    { transform-style: preserve-3d; transition: transform .55s cubic-bezier(.22,.68,0,1); }
.card-flip-front,
.card-flip-back     { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-flip-back     { transform: rotateY(180deg); position: absolute; inset: 0; }
.card-flip-inner.flipped { transform: rotateY(180deg); }

/* Attack-Karte: erscheint umgedreht, flippt auf */
.attack-card { animation: card-deal-flip .55s cubic-bezier(.22,.68,0,1.1) both; }
@keyframes card-deal-flip {
  0%   { transform: rotateY(90deg) translateY(20px); opacity: 0; }
  60%  { transform: rotateY(-8deg) translateY(-4px); opacity: 1; }
  100% { transform: rotateY(0deg)  translateY(0);    opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   PAGE TRANSITIONS
══════════════════════════════════════════════════════════════ */
.page-enter {
  animation: page-fade-in .3s cubic-bezier(.22,.68,0,1) both;
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   CAMPAIGN MAP
══════════════════════════════════════════════════════════════ */
.screen-scenarios-map {
  min-height: 100vh; display: flex; flex-direction: column;
}

.cmap-header {
  display: flex; align-items: center; gap: 1rem; padding: .85rem 1.5rem;
  background: rgba(12,12,14,0.9); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10;
  flex-wrap: wrap;
}
.cmap-header-title { display: flex; flex-direction: column; flex: 1; min-width: 120px; }
.cmap-h-main       { font-size: 1rem; font-weight: 700; }
.cmap-h-sub        { font-size: .72rem; color: var(--text-dim); }
.cmap-header-prog  { display: flex; flex-direction: column; align-items: center; }
.cmap-prog-num     { font-size: 1.3rem; font-weight: 800; color: var(--text); line-height: 1; }
.cmap-prog-den     { font-size: .8rem; color: var(--text-dim); }
.cmap-prog-lbl     { font-size: .65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.cmap-toggle       { font-size: .78rem; white-space: nowrap; }

.cmap-map-container {
  flex: 1; min-height: 520px; position: relative;
}
.cmap-wrapper {
  display: grid; grid-template-columns: 1fr 260px;
  height: 100%; min-height: 520px;
}
.cmap-area    { overflow: hidden; }
.cmap-preview {
  border-left: 1px solid var(--border); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .65rem;
  background: rgba(8,8,10,0.8); overflow-y: auto;
}
.cmap-preview-empty {
  color: var(--text-dim); font-size: .82rem; font-style: italic;
  margin: auto; text-align: center;
}
.cmap-prev-icon  { color: var(--text-muted); opacity: .6; }
.cmap-prev-name  { font-size: 1rem; font-weight: 700; }
.cmap-prev-diff  { font-size: .75rem; font-weight: 600; }
.cmap-prev-tactics { display: flex; flex-wrap: wrap; gap: .3rem; }
.cmap-prev-desc  { font-size: .78rem; color: var(--text-muted); line-height: 1.55; }
.cmap-prev-meta  { display: flex; gap: .75rem; font-size: .75rem; color: var(--text-dim); }
.cmap-prev-btn   { margin-top: .25rem; width: 100%; display: flex; align-items: center; justify-content: center; gap: .4rem; }

/* Listenansicht (toggle) */
.cmap-list-container { display: none; padding: 1.5rem; max-width: 1300px; margin: 0 auto; width: 100%; padding-bottom: 3rem; }
.screen-scenarios-map.cmap-list-view .cmap-map-container  { display: none; }
.screen-scenarios-map.cmap-list-view .cmap-list-container { display: block; }

@media (max-width: 700px) {
  .cmap-wrapper { grid-template-columns: 1fr; }
  .cmap-preview { display: none; }
}

/* ── Verbesserte Szenario-Karten (Listenansicht) ─────────────── */
.scenario-card {
  --diff-color: #94a3b8;
  border-top: 2px solid var(--diff-color);
}
.scenario-card:hover {
  border-top-color: var(--diff-color);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--diff-color, rgba(255,255,255,.1));
}

/* ── Sound-Button ────────────────────────────────────────────── */
.btn-sound {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-dim); font-size: .78rem; padding: .45rem .9rem;
  border-radius: 50px; display: flex; align-items: center; gap: .4rem;
  font-family: var(--font); cursor: pointer; transition: all .2s;
}
.btn-sound:hover { border-color: var(--border-2); color: var(--text-muted); }

/* ── Attributions-Sequenz ────────────────────────────────────── */
.attr-sequence {
  min-height: 100vh; background: #000; display: flex; flex-direction: column;
  justify-content: center; padding: 3rem 2rem; gap: .3rem; overflow-y: auto;
  font-family: var(--mono); max-width: 700px; margin: 0 auto;
}
.seq-line { font-size: .85rem; line-height: 1.7; animation: seq-type .15s ease both; }
@keyframes seq-type {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.seq-sys   { color: rgba(255,255,255,0.25); }
.seq-info  { color: rgba(255,255,255,0.5); }
.seq-dots  { color: var(--red); font-size: 1.5rem; letter-spacing: .3em; }
.seq-sep   { color: rgba(255,255,255,0.15); }
.seq-match { color: var(--orange); font-weight: 700; font-size: 1rem; }
.seq-title {
  color: var(--green); font-size: 1.6rem; font-weight: 900;
  letter-spacing: .15em; margin-top: 1rem;
  text-shadow: 0 0 24px rgba(34,197,94,0.5);
  animation: seq-type .2s ease both, title-glow 1s ease 0.3s both;
}
@keyframes title-glow {
  from { text-shadow: 0 0 0 rgba(34,197,94,0); }
  to   { text-shadow: 0 0 32px rgba(34,197,94,0.6); }
}

/* ── Complete Screen (Incident Report) ───────────────────────── */
.fp-complete-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  max-width: 800px; margin: 0 auto; padding: 0 1.5rem 3rem;
}

.fp-complete-hdr {
  padding: 2rem 0 1.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  border-bottom: 1px solid var(--border); margin-bottom: 1.5rem;
}
.hdr-won  .fpc-icon { color: var(--green); filter: drop-shadow(0 0 16px rgba(34,197,94,.4)); }
.hdr-lost .fpc-icon { color: var(--red);   filter: drop-shadow(0 0 16px rgba(239,68,68,.4)); }
.fpc-title { font-size: 1.4rem; font-weight: 800; letter-spacing: .08em; }
.hdr-won .fpc-title { color: var(--green); }
.hdr-lost .fpc-title { color: var(--red); }
.fpc-sub  { color: var(--text-muted); font-size: .88rem; }

.fpc-stats {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 1.5rem;
}
.fpc-stat { display: flex; flex-direction: column; align-items: center; gap: .15rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .6rem 1rem; min-width: 80px; }
.fpc-val  { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.fpc-lbl  { font-size: .65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }

.fpc-report { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }

.fpc-section-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-dim);
  border-bottom: 1px solid var(--border); padding-bottom: .5rem; margin-bottom: .5rem;
}

.fpc-report-box {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.fpc-report-text {
  font-family: var(--mono); font-size: .72rem; color: rgba(255,255,255,0.55);
  line-height: 1.7; padding: 1rem 1.2rem; margin: 0;
  white-space: pre; overflow-x: auto;
}

.fpc-profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem;
}
.fpc-profile-inner { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.fpc-profile-icon  { color: var(--red); flex-shrink: 0; opacity: .8; }
.fpc-profile-name  { font-size: 1.1rem; font-weight: 700; }
.fpc-profile-alias { font-size: .8rem; color: var(--text-muted); margin: .15rem 0; }
.fpc-profile-tell  {
  font-size: .78rem; color: var(--orange); font-style: italic;
  display: flex; align-items: center; gap: .35rem;
}
.fpc-ttp-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.fpc-ttp-badge {
  font-family: var(--mono); font-size: .7rem; font-weight: 700;
  background: var(--red-soft); border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5; padding: .18rem .5rem; border-radius: 4px;
}


/* ══════════════════════════════════════════════════════════════
   VISUALISIERUNGEN & ANIMATIONEN
══════════════════════════════════════════════════════════════ */

/* ── Tab-System (Terminal / Netzwerk / Timeline) ─────────────── */
.fp-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  background: rgba(8,8,10,0.6); flex-shrink: 0;
}
.fp-tab {
  flex: 1; padding: .55rem .5rem; text-align: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--text-dim); cursor: pointer; border: none;
  background: transparent; border-bottom: 2px solid transparent;
  transition: all .2s; font-family: var(--font);
}
.fp-tab:hover   { color: var(--text-muted); background: rgba(255,255,255,0.03); }
.fp-tab.active  { color: var(--text); border-bottom-color: var(--orange); background: rgba(249,115,22,0.05); }
.fp-tab-content { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* ── Netzwerk-Graph-Panel ────────────────────────────────────── */
.viz-network-container {
  flex: 1; min-height: 0; padding: .5rem;
  background: rgba(6,6,8,0.7); overflow: hidden;
}
.viz-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--text-dim); font-size: .8rem;
  font-style: italic; text-align: center; padding: 1rem;
}

/* Node-Puls-Animation */
.viz-node-pulse .viz-node-glow {
  animation: node-pulse 2s ease-in-out infinite;
}
@keyframes node-pulse {
  0%,100% { r: 4.5; opacity: 0.3; }
  50%      { r: 7;   opacity: 0.7; }
}

/* ── Timeline-Panel ──────────────────────────────────────────── */
.viz-timeline-container {
  flex: 1; overflow-x: auto; overflow-y: hidden;
  padding: .5rem .5rem .25rem;
  background: rgba(6,6,8,0.7);
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.viz-timeline-container svg { display: block; }

/* ── Karten-Animationen ──────────────────────────────────────── */
@keyframes card-deal-in {
  from { opacity: 0; transform: translateY(-30px) rotateX(30deg) scale(.9); }
  to   { opacity: 1; transform: translateY(0)     rotateX(0deg)  scale(1);  }
}
.fp-attack-card {
  animation: card-deal-in .45s cubic-bezier(.22,.68,0,1.1) both;
}
.fp-attack-card:nth-child(2) { animation-delay: .12s; }
.fp-attack-card:nth-child(3) { animation-delay: .24s; }

@keyframes def-card-appear {
  from { opacity: 0; transform: translateY(20px) scale(.93); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
.fp-def-card {
  animation: def-card-appear .35s cubic-bezier(.22,.68,0,1.1) both;
}
.fp-def-card:nth-child(2) { animation-delay: .07s; }
.fp-def-card:nth-child(3) { animation-delay: .14s; }
.fp-def-card:nth-child(4) { animation-delay: .21s; }

/* Korrekte Verteidigung */
.card-anim-correct {
  animation: correct-burst .8s ease forwards !important;
}
@keyframes correct-burst {
  0%   { transform: scale(1);    box-shadow: 0 0 0  rgba(34,197,94,0); }
  30%  { transform: scale(1.06); box-shadow: 0 0 32px rgba(34,197,94,.7); }
  60%  { transform: scale(.98);  box-shadow: 0 0 16px rgba(34,197,94,.4); }
  100% { transform: scale(1);    box-shadow: 0 0 8px  rgba(34,197,94,.2); }
}

/* Falsche Verteidigung */
.card-anim-wrong {
  animation: wrong-shake .7s ease forwards !important;
}
@keyframes wrong-shake {
  0%,100% { transform: translateX(0)   rotate(0deg); }
  15%     { transform: translateX(-8px) rotate(-2deg); }
  30%     { transform: translateX(8px)  rotate(2deg); }
  45%     { transform: translateX(-6px) rotate(-1deg); }
  60%     { transform: translateX(6px)  rotate(1deg); }
  75%     { transform: translateX(-3px); }
}

/* ── Partikel-Effekte ────────────────────────────────────────── */
.particle {
  position: fixed; pointer-events: none; z-index: 9999;
  border-radius: 50%; will-change: transform, opacity;
}
@keyframes particle-burst {
  0%   { transform: translate(0,0)                      scale(1);   opacity: 1;  }
  100% { transform: translate(var(--dx),var(--dy))      scale(0);   opacity: 0;  }
}

/* ── HP Floating Damage Number ───────────────────────────────── */
.hp-floater {
  position: absolute; right: -10px; top: -8px;
  font-size: .9rem; font-weight: 800; color: #ef4444;
  pointer-events: none; z-index: 100;
  text-shadow: 0 0 8px rgba(239,68,68,0.6);
}
@keyframes hp-float {
  0%   { transform: translateY(0)    scale(1);    opacity: 1; }
  30%  { transform: translateY(-6px) scale(1.15); opacity: 1; }
  100% { transform: translateY(-22px)scale(.8);   opacity: 0; }
}
.fp-hp-section { position: relative; }

/* ── Bildschirm-Damage-Vignette ──────────────────────────────── */
.dmg-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  border-radius: 0;
}
@keyframes vignette-flash {
  0%   { box-shadow: inset 0 0 0   rgba(239,68,68,0);   }
  25%  { box-shadow: inset 0 0 80px rgba(239,68,68,.55); }
  60%  { box-shadow: inset 0 0 40px rgba(239,68,68,.25); }
  100% { box-shadow: inset 0 0 0   rgba(239,68,68,0);   }
}

/* ── Attack-Card Glow-Puls ───────────────────────────────────── */
.fp-attack-card {
  --tactic-color: #ef4444;
  box-shadow: 0 0 20px rgba(239,68,68,0.06);
  animation: card-deal-in .45s cubic-bezier(.22,.68,0,1.1) both,
             attack-glow 3s ease-in-out 0.5s infinite;
}
@keyframes attack-glow {
  0%,100% { box-shadow: 0 0 12px rgba(239,68,68,0.06), 0 0 0 rgba(239,68,68,0); }
  50%     { box-shadow: 0 0 24px rgba(239,68,68,0.18), 0 0 40px rgba(239,68,68,0.06); }
}

/* ── IOC-Badge Puls ──────────────────────────────────────────── */
@keyframes ioc-new {
  0%,100% { transform: scale(1);    }
  50%     { transform: scale(1.25); color: #86efac; }
}
.fp-ioc-count.ioc-updated span {
  animation: ioc-new .6s ease;
}

/* ── Netzwerk-Node Hover-Tooltip ─────────────────────────────── */
.viz-node-tooltip {
  position: absolute; background: rgba(12,12,14,0.95);
  border: 1px solid var(--border); border-radius: 6px;
  padding: .4rem .7rem; font-size: .75rem; color: var(--text);
  pointer-events: none; z-index: 200; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* ── Overlay für Runden-Transition ──────────────────────────── */
.round-transition-overlay {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0); pointer-events: none;
}
@keyframes round-flash {
  0%   { background: rgba(0,0,0,0); }
  20%  { background: rgba(239,68,68,0.12); }
  100% { background: rgba(0,0,0,0); }
}
.round-transition-overlay.active {
  animation: round-flash .5s ease forwards;
}

/* ── Terminal: typing cursor ─────────────────────────────────── */
.fp-term-input { caret-color: var(--green); }
.fp-term-output .fp-line-success::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: .5rem;
  vertical-align: middle; flex-shrink: 0;
  box-shadow: 0 0 6px var(--green);
}

/* ── Scrollbar Terminal ──────────────────────────────────────── */
.fp-term-output::-webkit-scrollbar       { width: 4px; }
.fp-term-output::-webkit-scrollbar-track { background: transparent; }
.fp-term-output::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════════
   ONLINE-MEHRSPIELERMODUS
   ═══════════════════════════════════════════════════════════════ */
.online-entry-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; max-width: 360px; margin: .6rem auto 0;
  padding: .85rem 1rem; border-radius: var(--radius);
  font-family: var(--mono); font-weight: 600; font-size: .95rem;
  color: #c7d2fe; cursor: pointer;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(56,189,248,0.12));
  border: 1px solid rgba(129,140,248,0.4);
  transition: all .2s;
}
.online-entry-btn:hover { transform: translateY(-2px); border-color: rgba(129,140,248,0.8);
  box-shadow: 0 8px 24px rgba(99,102,241,0.25); }

.ol-wrap { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.ol-loading { text-align: center; padding: 4rem 1rem; color: var(--text-muted);
  font-family: var(--mono); }
.ol-muted { color: var(--text-muted); font-size: .85rem; }
.ol-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.ol-userinfo { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.ol-uhandle { font-family: var(--mono); font-weight: 700; }
.ol-ustat { font-size: .72rem; color: var(--text-muted); }
.ol-logout { padding: .35rem .7rem !important; font-size: .8rem !important; }

.ol-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 .3rem; }
.ol-sub { color: var(--text-muted); line-height: 1.6; margin: 0 0 1.4rem; font-size: .92rem; }
.ol-h3 { font-size: 1rem; font-weight: 700; margin: 1.6rem 0 .7rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }

/* Auth-Karte */
.ol-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem; backdrop-filter: blur(var(--blur)); }
.ol-auth { max-width: 420px; margin: 1.5rem auto 0; }
.ol-logo { font-family: var(--mono); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em;
  text-align: center; margin-bottom: .5rem;
  background: linear-gradient(135deg, #818cf8, #38bdf8); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.ol-tabs { display: flex; gap: .4rem; margin: 1.2rem 0; background: rgba(0,0,0,0.25);
  padding: .3rem; border-radius: var(--radius); }
.ol-tab { flex: 1; padding: .6rem; border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 600; color: var(--text-muted); background: transparent; border: none;
  font-family: inherit; font-size: .9rem; transition: all .15s; }
.ol-tab.active { background: var(--surface-2); color: var(--text); }
.ol-form { display: flex; flex-direction: column; gap: .9rem; }
.ol-field { display: flex; flex-direction: column; gap: .3rem; }
.ol-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.ol-input { padding: .7rem .8rem; border-radius: var(--radius-sm); font-size: .95rem;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border-2); color: var(--text);
  font-family: var(--mono); transition: border .15s; }
.ol-input:focus { outline: none; border-color: #818cf8; }
.ol-error { color: #fca5a5; font-size: .85rem; padding: .6rem .8rem;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius-sm); }
.ol-submit { margin-top: .4rem; }

/* Lobby-Aktionen */
.ol-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.ol-bigbtn { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  padding: 1rem; border-radius: var(--radius); cursor: pointer; text-align: left;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: all .18s; }
.ol-bigbtn:hover { transform: translateY(-2px); border-color: var(--border-2);
  background: var(--surface-2); }
.ol-bb-icon { font-size: 1.4rem; }
.ol-bb-title { font-weight: 700; font-size: .95rem; }
.ol-bb-sub { font-size: .74rem; color: var(--text-muted); line-height: 1.3; }

.ol-section { margin-top: .5rem; }
.ol-openlist { display: flex; flex-direction: column; gap: .5rem; }
.ol-openrow { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.ol-openrow-mine { border-color: rgba(129,140,248,0.4); background: rgba(99,102,241,0.08); }
.ol-openhost { font-family: var(--mono); font-weight: 700; }
.ol-openrole { font-size: .78rem; color: var(--text-muted); }
.ol-joinbtn { margin-left: auto; padding: .45rem .9rem !important; font-size: .82rem !important; }

/* Bestenliste */
.ol-lb-table { display: flex; flex-direction: column; gap: .25rem; }
.ol-lb-row { display: grid; grid-template-columns: 2rem 1fr auto auto; gap: .8rem; align-items: center;
  padding: .5rem .8rem; border-radius: var(--radius-sm); background: var(--surface); }
.ol-lb-rank { font-family: var(--mono); font-weight: 700; color: var(--text-muted); }
.ol-lb-name { font-family: var(--mono); font-weight: 600; }
.ol-lb-wl { font-size: .8rem; color: #86efac; }
.ol-lb-rounds { font-size: .78rem; color: var(--text-muted); }

/* Board */
.ol-board { max-width: 900px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.ol-board-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ol-round { margin-left: auto; font-family: var(--mono); font-weight: 700; color: var(--text-muted); }
.ol-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  margin-bottom: 1rem; }
.ol-vs-side { padding: .7rem 1rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); }
.ol-vs-side.is-atk { border-color: rgba(239,68,68,0.4); }
.ol-vs-side.is-def { border-color: rgba(34,197,94,0.4); }
.ol-vs-side:last-child { text-align: right; }
.ol-vs-role { font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.ol-vs-name { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; }
.ol-vs-mid { font-family: var(--mono); font-weight: 800; color: var(--text-dim); }

.ol-hp { margin-bottom: 1.4rem; }
.ol-hp-label { font-size: .78rem; color: var(--text-muted); margin-bottom: .3rem; font-family: var(--mono); }
.ol-hp-bar { height: 12px; border-radius: 6px; background: rgba(0,0,0,0.4); overflow: hidden;
  border: 1px solid var(--border); }
.ol-hp-fill { height: 100%; transition: width .5s ease, background .5s; }

.ol-banner { text-align: center; padding: 1rem; margin-bottom: 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); }
.ol-banner-t { font-weight: 800; font-size: 1.15rem; margin-bottom: .3rem; }
.ol-banner-s { color: var(--text-muted); font-size: .88rem; line-height: 1.5; }

.ol-hand { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.ol-card2 { border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); transition: all .18s; --c: #94a3b8; }
.ol-card2.playable { cursor: pointer; }
.ol-card2.playable:hover { transform: translateY(-4px); border-color: var(--c);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.ol-card2 .card-ascii { color: var(--c); }
.ol-card2-body { padding: .7rem .8rem .85rem; display: flex; flex-direction: column; gap: .3rem; }
.ol-c2-top { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.ol-c2-mitre { font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--c); }
.ol-c2-tac { font-size: .62rem; font-weight: 700; letter-spacing: .03em; }
.ol-c2-name { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.ol-c2-sub { font-size: .74rem; color: var(--text-muted); }
.ol-c2-desc { font-size: .72rem; color: var(--text-muted); line-height: 1.45; }
.ol-c2-stats { display: flex; gap: .8rem; margin-top: .2rem; font-family: var(--mono);
  font-size: .74rem; font-weight: 600; color: #fca5a5; }

.ol-lastround { margin-top: 1.4rem; padding: .9rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); }
.ol-lastround.ok { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.35); }
.ol-lastround.bad { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.35); }
.ol-lr-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.ol-lr-badge { font-family: var(--mono); font-weight: 800; font-size: .72rem; padding: .15rem .5rem;
  border-radius: 4px; }
.ol-lastround.ok .ol-lr-badge { background: rgba(34,197,94,0.25); color: #86efac; }
.ol-lastround.bad .ol-lr-badge { background: rgba(239,68,68,0.25); color: #fca5a5; }
.ol-lr-title { font-weight: 600; font-size: .88rem; }
.ol-lr-dmg { margin-left: auto; font-family: var(--mono); font-weight: 700; }
.ol-lr-body { margin-top: .5rem; display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; }
.ol-lr-teach { color: var(--text-muted); font-size: .78rem; }

.ol-result { text-align: center; padding: 2rem 1rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface); }
.ol-result.win { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.06); }
.ol-result.lose { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.05); }
.ol-result-title { font-size: 2rem; font-weight: 800; margin-bottom: .4rem; }
.ol-result-sub { font-size: 1rem; margin-bottom: .3rem; }
.ol-result-btns { display: flex; gap: .8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }

.ol-waiting { text-align: center; padding: 2.5rem 1rem; }
.ol-waiting-txt { font-weight: 700; font-size: 1.1rem; margin: 1rem 0 .3rem; }
.ol-spinner { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: #818cf8; animation: ol-spin 1s linear infinite; }
@keyframes ol-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .ol-vs { grid-template-columns: 1fr auto 1fr; gap: .5rem; }
  .ol-vs-side { padding: .5rem .6rem; }
  .ol-vs-name { font-size: .9rem; }
  .ol-hand { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════
   TABLETOP-MODUS (Wiederanlauf / IR / BCM)
   ═══════════════════════════════════════════════════════════════ */
.tabletop-entry-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; max-width: 360px; margin: .6rem auto 0;
  padding: .85rem 1rem; border-radius: var(--radius);
  font-family: var(--mono); font-weight: 600; font-size: .95rem;
  color: #fca5a5; cursor: pointer;
  background: linear-gradient(135deg, rgba(239,68,68,0.16), rgba(249,115,22,0.12));
  border: 1px solid rgba(239,68,68,0.4); transition: all .2s;
}
.tabletop-entry-btn:hover { transform: translateY(-2px); border-color: rgba(239,68,68,0.8);
  box-shadow: 0 8px 24px rgba(239,68,68,0.25); }

.tt-wrap { max-width: 780px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.tt-head { margin-bottom: 1rem; }
.tt-sub, .tt-infoline { color: var(--text-muted); line-height: 1.6; }

/* Briefing */
.tt-hero { text-align: center; margin: 1rem 0 1.6rem; }
.tt-hero-icon { font-size: 3rem; }
.tt-title { font-size: 2rem; font-weight: 800; margin: .3rem 0 .2rem; }
.tt-title2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .4rem; }
.tt-subtitle { color: var(--text-muted); font-weight: 600; }
.tt-org { margin-top: .5rem; font-family: var(--mono); font-size: .85rem; color: #fca5a5; }
.tt-org span { color: var(--text-muted); }
.tt-brief { background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.tt-brief-label { font-family: var(--mono); font-weight: 700; color: #fca5a5;
  font-size: .8rem; letter-spacing: .06em; margin-bottom: .6rem; }
.tt-brief-p { margin: 0 0 .6rem; line-height: 1.6; font-size: .92rem; }
.tt-brief-p:last-child { margin-bottom: 0; }
.tt-infoline { font-size: .86rem; margin-bottom: 1.4rem; }
.tt-cta { display: block; margin: 0 auto; }

/* Schweregrad-Auswahl */
.tt-sev-grid { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; }
.tt-sev-card { display: grid; grid-template-columns: auto auto 1fr; gap: .3rem 1rem;
  align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  transition: all .18s; --sev: #f59e0b; }
.tt-sev-card:hover { transform: translateY(-2px); border-color: var(--sev);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.tt-sev-num { grid-row: 1 / 3; font-family: var(--mono); font-size: 2rem; font-weight: 800;
  color: var(--sev); width: 2.5rem; text-align: center; }
.tt-sev-dots { color: var(--sev); font-size: .8rem; letter-spacing: .15em; }
.tt-sev-label { font-weight: 700; font-size: 1.05rem; }
.tt-sev-desc { grid-column: 2 / 4; color: var(--text-muted); font-size: .84rem; line-height: 1.5; }

/* Spiel-Ansicht */
.tt-play-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.tt-phase-tag { font-family: var(--mono); font-weight: 700; font-size: .8rem; color: var(--text-muted); }
.tt-sev-tag { font-family: var(--mono); font-weight: 700; font-size: .8rem; }
.tt-abort { margin-left: auto; padding: .3rem .7rem !important; font-size: .78rem !important; }

.tt-metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; margin-bottom: 1rem; }
.tt-metric { display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .55rem .3rem; border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--border); }
.tt-metric.good { border-color: rgba(34,197,94,0.4); }
.tt-metric.bad { border-color: rgba(239,68,68,0.45); }
.tt-m-ic { font-size: .95rem; }
.tt-m-val { font-family: var(--mono); font-weight: 700; font-size: .82rem; }
.tt-m-lbl { font-size: .6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }

.tt-systems { margin-bottom: 1.1rem; }
.tt-sys-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: .5rem; font-weight: 600; }
.tt-sys-grid { display: flex; flex-wrap: wrap; gap: .35rem; }
.tt-sys-chip { display: flex; align-items: center; gap: .35rem; padding: .3rem .55rem;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  font-size: .72rem; }
.tt-sys-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); flex: none; }
.tt-sys-name { font-weight: 600; }
.tt-sys-state { color: var(--text-muted); font-size: .66rem; }
.tt-sys-chip.st-ok .tt-sys-dot, .tt-sys-chip.st-restored .tt-sys-dot { background: #22c55e; }
.tt-sys-chip.st-restored { border-color: rgba(34,197,94,0.35); }
.tt-sys-chip.st-encrypted .tt-sys-dot { background: #ef4444; }
.tt-sys-chip.st-encrypted { border-color: rgba(239,68,68,0.3); opacity: .85; }
.tt-sys-chip.st-isolated .tt-sys-dot { background: #f59e0b; }
.tt-sys-chip.st-reinfected { border-color: rgba(239,68,68,0.7); background: rgba(239,68,68,0.12); }
.tt-sys-chip.st-reinfected .tt-sys-dot { background: #ef4444; animation: tt-pulse 1s infinite; }
@keyframes tt-pulse { 50% { opacity: .3; } }

.tt-phase-intro { padding: .9rem 1.1rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border-left: 3px solid var(--border-2); margin-bottom: 1rem; }
.tt-phase-title { font-weight: 700; margin-bottom: .2rem; }
.tt-phase-desc { color: var(--text-muted); font-size: .86rem; line-height: 1.55; }

.tt-decision { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem; }
.tt-complication { border-color: rgba(239,68,68,0.6); background: rgba(239,68,68,0.07);
  box-shadow: 0 0 30px rgba(239,68,68,0.15); }
.tt-comp-badge { font-family: var(--mono); font-weight: 800; color: #fca5a5; font-size: .82rem;
  letter-spacing: .04em; margin-bottom: .7rem; }
.tt-situation { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin-bottom: .8rem;
  padding-left: .8rem; border-left: 2px solid var(--border-2); }
.tt-prompt { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.35; }
.tt-options { display: flex; flex-direction: column; gap: .6rem; }
.tt-option { text-align: left; padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-2); cursor: pointer;
  display: flex; flex-direction: column; gap: .25rem; transition: all .15s; }
.tt-option:hover { border-color: var(--text); background: rgba(255,255,255,0.07);
  transform: translateX(3px); }
.tt-opt-label { font-weight: 700; font-size: .95rem; }
.tt-opt-detail { font-size: .8rem; color: var(--text-muted); line-height: 1.45; }

/* Ergebnis einer Entscheidung */
.tt-outcome { border-radius: var(--radius); padding: 1.3rem; margin: 1rem 0;
  border: 1px solid var(--border); }
.tt-outcome.q-good { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.07); }
.tt-outcome.q-bad { border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.07); }
.tt-outcome.q-ok { border-color: rgba(245,158,11,0.5); background: rgba(245,158,11,0.06); }
.tt-outcome-badge { font-family: var(--mono); font-weight: 800; font-size: .9rem; margin-bottom: .5rem; }
.tt-outcome.q-good .tt-outcome-badge { color: #86efac; }
.tt-outcome.q-bad .tt-outcome-badge { color: #fca5a5; }
.tt-outcome.q-ok .tt-outcome-badge { color: #fcd34d; }
.tt-outcome-choice { font-weight: 700; margin-bottom: .5rem; font-style: italic; }
.tt-outcome-text { color: var(--text); font-size: .9rem; line-height: 1.65; opacity: .92; }
.tt-eff-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tt-eff-chip { font-family: var(--mono); font-size: .74rem; padding: .2rem .55rem; border-radius: 5px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); }
.tt-cont { display: block; margin: 0 auto; }

/* Debrief */
.tt-db-hero { text-align: center; padding: 1.8rem 1.2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); margin-bottom: 1.4rem; }
.tt-db-hero.g-a { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.07); }
.tt-db-hero.g-b { border-color: rgba(132,204,22,0.5); background: rgba(132,204,22,0.06); }
.tt-db-hero.g-c { border-color: rgba(245,158,11,0.5); background: rgba(245,158,11,0.06); }
.tt-db-hero.g-d { border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.06); }
.tt-db-label { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; color: var(--text-muted);
  text-transform: uppercase; }
.tt-db-grade { font-size: 2.2rem; font-weight: 800; margin: .3rem 0; }
.tt-db-score { font-family: var(--mono); color: var(--text-muted); margin-bottom: .6rem; }
.tt-db-verdict { max-width: 520px; margin: 0 auto; line-height: 1.6; }

.tt-db-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.6rem; }
.tt-kpi { padding: .9rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); text-align: center; }
.tt-kpi.ok { border-color: rgba(34,197,94,0.35); }
.tt-kpi.bad { border-color: rgba(239,68,68,0.4); }
.tt-kpi-val { font-family: var(--mono); font-weight: 800; font-size: 1.15rem; }
.tt-kpi-lbl { font-size: .78rem; margin-top: .2rem; }
.tt-kpi-sub { font-size: .68rem; color: var(--text-muted); margin-top: .15rem; }

.tt-db-section { margin-bottom: 1.6rem; }
.tt-db-h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); margin-bottom: .7rem; }
.tt-lessons { display: flex; flex-direction: column; gap: .4rem; }
.tt-lesson { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .8rem;
  border-radius: var(--radius-sm); background: var(--surface); font-size: .86rem; line-height: 1.5; }
.tt-lesson-ic { font-weight: 800; flex: none; }
.tt-lesson.good { border-left: 3px solid #22c55e; } .tt-lesson.good .tt-lesson-ic { color: #86efac; }
.tt-lesson.bad { border-left: 3px solid #ef4444; } .tt-lesson.bad .tt-lesson-ic { color: #fca5a5; }
.tt-lesson.tip { border-left: 3px solid var(--border-2); color: var(--text-muted); }

.tt-db-log { display: flex; flex-direction: column; gap: .3rem; }
.tt-log-row { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center;
  padding: .45rem .8rem; border-radius: var(--radius-sm); background: var(--surface); font-size: .82rem; }
.tt-log-phase { font-family: var(--mono); font-size: .68rem; color: var(--text-muted);
  white-space: nowrap; }
.tt-log-choice { font-weight: 500; }
.tt-log-q { font-weight: 800; }
.tt-log-row.q-good .tt-log-q { color: #86efac; }
.tt-log-row.q-bad .tt-log-q { color: #fca5a5; }
.tt-log-row.q-ok .tt-log-q { color: #fcd34d; }

.tt-db-btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 560px) {
  .tt-metrics { grid-template-columns: repeat(3, 1fr); }
  .tt-db-kpis { grid-template-columns: repeat(2, 1fr); }
  .tt-sev-card { grid-template-columns: auto 1fr; }
  .tt-sev-num { grid-row: 1 / 3; }
  .tt-sev-dots { grid-column: 2; }
  .tt-sev-desc { grid-column: 1 / 3; }
}

/* ═══════════════════════════════════════════════════════════════
   CTRL+DEFEND — THEME v2  (monochrom · monospace · lo-fi cyber)
   Vorbild: elnino.terraformer.tech. Dieser Block überschreibt das
   frühere, buntere Design (spätere Regel gewinnt).
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg:          #0a0a0a;
  --bg2:         #0e0f10;
  --surface:     rgba(255,255,255,0.022);
  --surface-2:   rgba(255,255,255,0.05);
  --border:      #1b1d18;
  --border-2:    #2c2f28;
  --text:        #e6e6e0;
  --text-muted:  #7a7e78;
  --text-dim:    #4c4f4a;
  --red:         #df4b3b;   /* "hot" — Angriff / Warnung, sparsam */
  --red-soft:    rgba(223,75,59,0.12);
  --orange:      #df4b3b;   /* Orange auf den einen Akzent reduziert */
  --orange-soft: rgba(223,75,59,0.10);
  --green:       #6fae7f;   /* entsättigt */
  --green-soft:  rgba(111,174,127,0.10);
  --blue:        #5aa0cf;   /* "cold" — Verteidigung */
  --blue-soft:   rgba(90,160,207,0.10);
  --radius:      3px;
  --radius-sm:   2px;
  --radius-lg:   4px;
  --blur:        0px;
  --font:        'JetBrains Mono', 'Berkeley Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --mono:        'JetBrains Mono', 'Berkeley Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

body {
  font-family: var(--mono);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: none;
}
h1, h2, h3, h4, h5, .logo-title { font-family: var(--mono); font-weight: 600; letter-spacing: 0; }

/* Sehr dezente CRT-Scanlines */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px,
    transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}
::selection { background: var(--text); color: var(--bg); }

/* Flache, entsättigte Flächen (kein Blur, kaum Radius) */
.card, .ctx-card, .recap-card, .ai-panel, .bsc, .battle-scenario-card,
.sc-card, .scenario-card, .ol-card, .ol-card2, .tt-decision, .tt-outcome,
.stat-item, .start-stats { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Buttons: monochrom, eckig, Großbuchstaben, kein Verlauf */
.btn-primary {
  background: var(--red-soft); color: var(--text);
  border: 1px solid var(--red); border-radius: var(--radius-sm);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
  font-size: .8rem; box-shadow: none;
}
.btn-primary:hover { background: var(--red); color: #0a0a0a; transform: none; box-shadow: none; }
.btn-primary:active { transform: none; }
.btn-ghost, .btn-secondary, .btn-back {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  text-transform: uppercase; letter-spacing: .1em; font-size: .74rem;
}
.btn-ghost:hover, .btn-secondary:hover, .btn-back:hover {
  border-color: var(--text); color: var(--text); background: transparent; }

/* Menü-Einträge (Modi) als katalogartige Zeilen */
.start-btn-main, .battle-entry-btn, .online-entry-btn, .tabletop-entry-btn {
  width: 100%; max-width: 420px; margin: 0 auto;
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface) !important; color: var(--text) !important;
  border: 1px solid var(--border-2) !important; border-left: 2px solid var(--text-dim) !important;
  border-radius: var(--radius-sm); padding: .8rem 1.1rem !important;
  text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 500;
  box-shadow: none !important; transition: all .15s;
}
.start-btn-main { justify-content: center; border-left-color: var(--red) !important; }
.start-btn-main:hover, .battle-entry-btn:hover, .online-entry-btn:hover, .tabletop-entry-btn:hover {
  transform: translateX(3px); background: var(--surface-2) !important;
  border-color: var(--text-dim) !important; border-left-color: var(--red) !important;
  box-shadow: none !important;
}
.online-entry-btn { border-left-color: var(--blue) !important; }
.online-entry-btn:hover { border-left-color: var(--blue) !important; }
.tabletop-entry-btn { color: var(--text) !important; border-left-color: var(--red) !important; }
.start-small-btn { text-transform: uppercase; letter-spacing: .08em; }

/* Startbildschirm / Marken-Hero */
.start-content { gap: 1.3rem; }
.brand-block { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 100%; }
.brand-malinois {
  font-family: var(--mono); margin: 0 auto; white-space: pre; color: var(--text);
  /* Terminal-Zellen sind ~0.5 breit:hoch — line-height ~1.25 hält die
     Proportionen der Vorlage (sonst wirkt das Motiv gestaucht). */
  line-height: 1.25; letter-spacing: 0; opacity: .92;
  font-size: clamp(3px, calc(100vw / 132), 7.5px);
  text-shadow: 0 0 8px rgba(223,75,59,0.12);
  user-select: none; overflow: hidden; max-width: 100%; display: block;
}
.brand-wordmark {
  font-family: var(--mono); margin: .3rem 0 0; white-space: pre; line-height: 1.05;
  color: var(--red); font-size: min(calc(100vw / 80), 11px); letter-spacing: 0;
  text-shadow: 0 0 12px rgba(223,75,59,0.35); user-select: none;
}
.brand-tagline {
  font-size: 11px; letter-spacing: .22em; color: var(--text-muted);
  text-transform: uppercase; margin-top: .5rem;
}
.logo-title { font-size: 2rem; color: var(--red); letter-spacing: .04em; }
.start-intro { color: var(--text-muted); font-size: .9rem; line-height: 1.7; letter-spacing: .02em; }
.intro-dim { color: var(--text-dim); }
.start-stats { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.stat-num { color: var(--text); } .stat-lbl { color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

/* Karten & Akzente entsättigen */
.card { border-radius: var(--radius); }
.card-tactic { opacity: .7; }
.ol-logo { -webkit-text-fill-color: var(--red); background: none; color: var(--red);
  letter-spacing: .12em; }
.ol-card2.ol-atk { --c: var(--red); }
.ol-card2.ol-def { --c: var(--blue); }
.ol-vs-side.is-atk { border-color: rgba(223,75,59,0.4); }
.ol-vs-side.is-def { border-color: rgba(90,160,207,0.4); }
.ol-hp-fill { background: var(--red) !important; }

/* Online-/Tabletop-Buttons in Lobby monochrom halten */
.ol-bigbtn:hover { border-color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════
   APP-SHELL — Boot · Landing-CTA · Dashboard · MFA
   ═══════════════════════════════════════════════════════════════ */
.cd-boot { min-height: 60vh; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); color: var(--text-muted); letter-spacing: .2em; text-transform: uppercase;
  font-size: .9rem; }
.cd-cursor { animation: cd-blink 1s steps(2) infinite; color: var(--red); }
@keyframes cd-blink { 50% { opacity: 0; } }

.cd-landing-cta { display: flex; flex-direction: column; gap: .6rem; width: 100%;
  max-width: 420px; margin: 0 auto; }
.cd-reg-btn { color: var(--text-muted) !important; }
.cd-foot { margin-top: 1.4rem; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim); }

/* Dashboard */
.dash { max-width: 860px; margin: 0 auto; padding: 1.4rem 1.1rem 3rem; }
.dash-top { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.dash-brand { font-family: var(--mono); font-weight: 800; letter-spacing: .1em; color: var(--red); }
.dash-top-right { margin-left: auto; display: flex; align-items: center; gap: .9rem; }
.dash-user { font-family: var(--mono); font-weight: 600; }
.dash-logout { padding: .35rem .8rem !important; font-size: .72rem !important; }
.dash-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--text-dim); }
.dash-hello { font-size: 1.5rem; font-weight: 600; margin: .2rem 0 1.4rem; }

.dash-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-bottom: 2rem; }
.dash-stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .5rem;
  text-align: center; background: var(--surface); }
.dash-stat-v { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; }
.dash-stat-l { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
  margin-top: .2rem; }

.dash-h3 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-muted); margin: 0 0 .7rem; }
.dash-modes { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.dash-mode { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line-2, var(--border-2));
  border-left: 2px solid var(--text-dim); border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text); transition: all .15s; }
.dash-mode:hover { transform: translateX(4px); background: var(--surface-2); }
.dash-mode-red { border-left-color: var(--red); }
.dash-mode-blue { border-left-color: var(--blue); }
.dash-mode-dim { border-left-color: var(--text-dim); }
.dash-mode-idx { font-family: var(--mono); color: var(--text-dim); font-weight: 700; font-size: .9rem; }
.dash-mode-body { display: flex; flex-direction: column; flex: 1; }
.dash-mode-title { font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .84rem; }
.dash-mode-sub { font-size: .74rem; color: var(--text-muted); margin-top: .1rem; }
.dash-mode-arrow { color: var(--text-dim); font-family: var(--mono); }
.dash-mode:hover .dash-mode-arrow { color: var(--text); }

.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.dash-col { }
.dash-ach { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem;
  border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .35rem; font-size: .84rem; }
.dash-ach-ic { color: var(--blue); font-weight: 800; }
.dash-mini { margin-top: .6rem; padding: .4rem .8rem !important; font-size: .72rem !important; }
.dash-acc-row { display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .7rem; border-radius: var(--radius-sm); background: var(--surface); font-size: .86rem; }
.dash-badge { font-family: var(--mono); font-size: .68rem; padding: .15rem .5rem; border-radius: 3px;
  letter-spacing: .06em; }
.dash-badge.on { background: rgba(90,160,207,0.18); color: var(--blue); }
.dash-badge.off { background: rgba(255,255,255,0.06); color: var(--text-muted); }

/* MFA */
.cd-qr { display: block; width: 180px; height: 180px; margin: .8rem auto; border-radius: 4px;
  image-rendering: pixelated; background: #fff; padding: 6px; }
.cd-secret { font-family: var(--mono); text-align: center; font-size: .8rem; color: var(--text-muted);
  word-break: break-all; margin-bottom: .8rem; }

@media (max-width: 620px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-cols { grid-template-columns: 1fr; }
}

/* Tabletop — Szenario-Auswahl */
.tt-scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .8rem; margin-top: 1.2rem; }
.tt-scenario-card { position: relative; padding: 1.2rem 1.1rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--red);
  cursor: pointer; transition: all .16s; }
.tt-scenario-card:hover { transform: translateY(-3px); background: var(--surface-2);
  border-left-color: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.tt-sc-icon { font-size: 1.6rem; }
.tt-sc-idx { position: absolute; top: 1rem; right: 1.1rem; font-family: var(--mono);
  color: var(--text-dim); font-weight: 700; }
.tt-sc-name { font-weight: 700; font-size: 1.05rem; margin-top: .4rem; }
.tt-sc-org { font-family: var(--mono); font-size: .82rem; color: #f0a89f; margin-top: .2rem; }
.tt-sc-sector { font-size: .74rem; color: var(--text-muted); margin-bottom: .5rem; }
.tt-sc-sum { font-size: .82rem; color: var(--text-muted); line-height: 1.55; margin: .3rem 0 .7rem; }
.tt-sc-meta { font-family: var(--mono); font-size: .68rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .04em; }

/* Tabletop — Sektionen & generierte Übungen */
.tt-sec-label { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--text-muted); margin: 1.6rem 0 .7rem; }
.tt-gen-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.tt-gen-head .tt-sec-label { margin: 0; }
.tt-gen-btn { margin-left: auto; }
.tt-gen-sub { margin: .4rem 0 .2rem; font-size: .84rem; }
.tt-gen-card { border-left-color: var(--blue); }
.tt-gen-card:hover { border-left-color: var(--blue); }
.tt-gen-card .tt-sc-org { color: #9ec5df; }
@media (max-width: 560px) { .tt-gen-btn { margin-left: 0; width: 100%; } }
