

/* Universal Hidden Class */

.hidden {

  display: none !important;

}

.xai-arch-canvas-wrapper.hidden,

.arch-loss-panel.hidden {

  display: none !important;

}

:root {

  --bg-deep: #10161b;

  --bg-surface: #161f26;

  --bg-panel: rgba(22, 31, 38, 0.88);

  --border-subtle: #2d3e4d;

  --border-active: #00d2ff;

  --accent-cyan: #00d2ff;

  --accent-gold: #ffbe3b;

  --accent-red: #ff4757;

  --text-primary: #e6edf3;

  --text-muted: #8b9baa;

  --font-display: 'Chakra Petch', sans-serif;

  --font-mono: 'JetBrains Mono', monospace;

}



* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



body, html {

  width: 100%;

  height: 100%;

  overflow: hidden;

  background-color: var(--bg-deep);

  color: var(--text-primary);

  font-family: var(--font-display);

  user-select: none;

}



#app-container {

  display: flex;

  flex-direction: column;

  width: 100vw;

  height: 100vh;

}



/* ─── Top Command Ribbon (Canonical 2-Row Layout) ─── */

#top-ribbon {

  display: flex;

  flex-direction: column;

  padding: 0;

  margin: 0;

  width: 100%;

  background-color: var(--bg-surface);

  border-bottom: 1px solid var(--border-subtle);

  z-index: 1000;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);

  flex-shrink: 0;

  overflow: visible;

}



/* ROW 1: Branding & Global Menu Navigation (Compact Sleek Layout) */

.ribbon-row-1 {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 4px 12px;

  width: 100%;

  box-sizing: border-box;

  gap: 10px;

  background-color: #0b1118;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  min-height: 34px;

  position: relative;

  z-index: 1010;

  overflow: visible;

}



/* ROW 2: Active Match Ribbon (Left) + 3D View Controls (Right) (Compact Layout) */

.ribbon-row-2 {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 4px 12px;

  width: 100%;

  box-sizing: border-box;

  gap: 10px;

  background-color: #080d13;

  border-bottom: 1px solid var(--border-subtle);

  min-height: 34px;

  flex-wrap: nowrap;

  position: relative;

  z-index: 1005;

  overflow: visible;

}



.brand-section {

  display: flex;

  align-items: center;

  gap: 6px;

  flex-shrink: 0;

}



.tactical-badge {

  background: rgba(0, 210, 255, 0.14);

  border: 1px solid var(--accent-cyan);

  color: var(--accent-cyan);

  font-family: var(--font-mono);

  font-size: 9.5px;

  font-weight: 700;

  padding: 2px 6px;

  border-radius: 3px;

  letter-spacing: 0.5px;

  line-height: 1.2;

}



.title-group {

  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 0px;

}



.title-group h1 {

  font-size: 13.5px;

  font-weight: 800;

  letter-spacing: 0.8px;

  color: #fff;

  margin: 0;

  line-height: 1.15;

}



.title-group .dim {

  color: var(--accent-cyan);

  font-size: 11.5px;

}



.title-group .subtitle {

  font-size: 9.5px;

  color: var(--text-muted);

  font-family: var(--font-mono);

  letter-spacing: 0.2px;

  line-height: 1.15;

  white-space: nowrap;

}



.quick-nav-pills {

  display: flex;

  align-items: center;

  gap: 6px;

  flex-wrap: nowrap;

}



/* ═══════════════════════════════════════════════════════════════════

   TACTICAL DROPDOWN SYSTEM (CYBER-WARGAME GLASSMORPHIC MENUS)

   ═══════════════════════════════════════════════════════════════════ */

.tactical-dropdown {

  position: relative;

  display: inline-flex;

  align-items: center;

}



.tactical-dropdown-trigger {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  height: 28px;

  padding: 0 12px;

  background: rgba(14, 22, 34, 0.92);

  border: 1px solid rgba(0, 200, 255, 0.38);

  border-radius: 5px;

  color: #cce7f5;

  font-family: var(--font-mono);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.6px;

  text-transform: uppercase;

  cursor: pointer;

  transition: all 0.16s ease;

  user-select: none;

  white-space: nowrap;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);

}



.tactical-dropdown-trigger:hover,

.tactical-dropdown.open .tactical-dropdown-trigger {

  background: rgba(0, 180, 255, 0.22);

  border-color: #00e5ff;

  color: #ffffff;

  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);

}



.tactical-dropdown-trigger.highlight-trigger {

  border-color: rgba(0, 229, 255, 0.45);

  background: rgba(0, 229, 255, 0.08);

}



.tactical-dropdown-trigger .trigger-icon {

  font-size: 14px;

  line-height: 1;

}



.tactical-dropdown-trigger .trigger-arrow {

  font-size: 10px;

  opacity: 0.8;

  transition: transform 0.18s ease;

  margin-left: 2px;

}



.tactical-dropdown.open .tactical-dropdown-trigger .trigger-arrow {

  transform: rotate(180deg);

  opacity: 1;

}



/* Secondary trigger variant for Row 2 HUD */

.tactical-dropdown-trigger.hud-trigger {

  height: 26px;

  padding: 0 11px;

  font-size: 10.5px;

  background: rgba(14, 20, 30, 0.94);

  border-color: rgba(255, 180, 0, 0.45);

  color: #ffe099;

}



.tactical-dropdown-trigger.hud-trigger:hover,

.tactical-dropdown.open .tactical-dropdown-trigger.hud-trigger {

  background: rgba(255, 180, 0, 0.22);

  border-color: #ffc107;

  color: #ffffff;

  box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);

}



/* Dropdown Menu Container (Floating) */

.tactical-dropdown-menu {

  position: absolute;

  top: calc(100% + 6px);

  left: 0;

  min-width: 290px;

  background: rgba(8, 14, 22, 0.98);

  border: 1px solid rgba(0, 229, 255, 0.42);

  border-radius: 8px;

  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.94), 0 0 20px rgba(0, 229, 255, 0.16);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);

  padding: 6px;

  display: none;

  flex-direction: column;

  gap: 3px;

  z-index: 10000;

  opacity: 0;

  pointer-events: none;

  transform: translateY(-6px) scale(0.98);

  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);

}



/* Right-aligned variant so dropdowns near right screen edge never clip or overflow */

.tactical-dropdown-menu.dropdown-menu-right,

#dropdown-sys .tactical-dropdown-menu,

#dropdown-display .tactical-dropdown-menu,

#dropdown-camera .tactical-dropdown-menu {

  left: auto;

  right: 0;

}



/* Active open state */

.tactical-dropdown.open .tactical-dropdown-menu {

  display: flex;

  opacity: 1;

  pointer-events: auto;

  transform: translateY(0) scale(1);

}



/* Dropdown Items */

.tactical-dropdown-menu .dropdown-item {

  display: flex;

  align-items: center;

  gap: 10px;

  width: 100%;

  padding: 7px 11px;

  background: transparent;

  border: 1px solid transparent;

  border-radius: 5px;

  color: #c0d8ea;

  font-family: var(--font-sans);

  text-align: left;

  cursor: pointer;

  transition: all 0.12s ease;

  user-select: none;

}



.tactical-dropdown-menu .dropdown-item:hover {

  background: rgba(0, 180, 255, 0.14);

  border-color: rgba(0, 229, 255, 0.3);

  color: #ffffff;

  transform: translateX(2px);

}



.tactical-dropdown-menu .dropdown-item.active {

  background: rgba(0, 229, 255, 0.16);

  border-color: #00e5ff;

  color: #00f0ff;

  font-weight: 600;

}



.tactical-dropdown-menu .dropdown-item.highlight {

  background: rgba(0, 229, 255, 0.08);

  border-color: rgba(0, 229, 255, 0.28);

}



.tactical-dropdown-menu .dropdown-item.highlight:hover {

  background: rgba(0, 229, 255, 0.22);

  border-color: #00e5ff;

}



.tactical-dropdown-menu .dropdown-item .item-icon {

  font-size: 16px;

  min-width: 22px;

  text-align: center;

  line-height: 1;

  flex-shrink: 0;

}



.tactical-dropdown-menu .dropdown-item .item-text-group {

  display: flex;

  flex-direction: column;

  flex: 1;

  min-width: 0;

}



.tactical-dropdown-menu .dropdown-item .item-title {

  font-size: 11.5px;

  font-weight: 700;

  letter-spacing: 0.35px;

  color: #ffffff;

  line-height: 1.25;

}



.tactical-dropdown-menu .dropdown-item .item-desc {

  font-size: 9.5px;

  color: #8faec5;

  line-height: 1.2;

  margin-top: 2px;

}



.tactical-dropdown-menu .dropdown-item:hover .item-desc {

  color: #a4c4de;

}



.tactical-dropdown-menu .dropdown-item .item-key {

  font-family: var(--font-mono);

  font-size: 10px;

  font-weight: 700;

  padding: 2px 6px;

  background: rgba(255, 255, 255, 0.09);

  border: 1px solid rgba(255, 255, 255, 0.22);

  border-radius: 4px;

  color: #a4c4de;

  margin-left: auto;

  flex-shrink: 0;

}



.tactical-dropdown-menu .dropdown-item:hover .item-key {

  background: rgba(0, 229, 255, 0.18);

  border-color: #00e5ff;

  color: #e4f3ff;

}



.tactical-dropdown-menu .dropdown-item .item-badge {

  font-family: var(--font-mono);

  font-size: 9.5px;

  font-weight: 700;

  padding: 2px 7px;

  background: rgba(255, 255, 255, 0.09);

  border: 1px solid rgba(255, 255, 255, 0.22);

  border-radius: 4px;

  color: #a4c4de;

  margin-left: auto;

  flex-shrink: 0;

}



.tactical-dropdown-menu .dropdown-item .item-badge.active {

  background: rgba(0, 229, 255, 0.25);

  border-color: #00e5ff;

  color: #00f0ff;

}



.tactical-dropdown-menu .dropdown-divider {

  height: 1px;

  background: rgba(0, 200, 255, 0.18);

  margin: 4px 0;

}



.ribbon-controls {

  display: flex;

  gap: 6px;

  align-items: center;

  flex-shrink: 0;

  margin-left: auto;

  overflow: visible;

}



/* Layer toggle button: constrain width so short emoji labels never get too wide */

#btn-toggle-layer {

  max-width: 90px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.btn-icon-only {

  display: none;

}

.btn-full-text {

  display: inline;

}

.long-label {

  display: inline;

}

.short-label {

  display: none;

}



/* ─── Responsive Adjustments for Lower Resolution Screens (Laptops, 1366x768, 1440x900) ─── */

@media (max-width: 1550px) {

  .ribbon-row-1, .ribbon-row-2 {

    padding: 2px 8px;

    gap: 6px;

  }

  .title-group .subtitle { display: none; }

  .cluster-label { display: none; }

  .group-label { display: none !important; }

  .long-label { display: none; }

  .short-label { display: inline; }

  .btn-briefing-pill {

    font-size: 8.5px;

    padding: 1px 4px;

    height: 19px;

  }

  .btn-tactical {

    font-size: 8.5px;

    padding: 1px 4px;

    height: 19px;

  }

  .btn-cam-icon {

    width: 20px;

    min-width: 20px;

    height: 19px;

  }

  .btn-cam-icon svg {

    width: 12px;

    height: 12px;

  }

  #btn-hud-cam-scoreboard {

    display: none !important;

  }

  .sc-advantage-block {

    display: none !important; /* Hide neural advantage bar on medium/small viewports to preserve controls */

  }

  .sc-header-mini {

    display: none !important;

  }

  .scoreboard-hud-frame {

    padding: 1px 4px;

  }

  .match-hud-section {

    gap: 4px;

    padding: 1px 5px;

  }

  .ribbon-controls {

    gap: 5px;

  }

  .btn-cluster {

    gap: 2px;

  }

}



@media (max-width: 1366px) {

  .ribbon-row-1, .ribbon-row-2 {

    padding: 3px 8px;

    gap: 6px;

  }

  .title-group h1 { font-size: 12px; }

  .btn-tactical {

    font-size: 9.5px;

    padding: 0 8px;

    height: 24px;

  }

  .tactical-dropdown-trigger {

    height: 26px;

    padding: 0 9px;

    font-size: 10px;

  }

  .tactical-dropdown-trigger.hud-trigger {

    height: 24px;

    padding: 0 9px;

    font-size: 9.5px;

  }

}



@media (max-width: 1100px) {

  .btn-briefing-pill .pill-text {

    display: none; /* Icon-only compact mode */

  }

  .btn-briefing-pill {

    padding: 1px 4px;

  }

  .title-group .dim { display: none; }

}



@media (max-width: 1280px) {

  .ribbon-row-1, .ribbon-row-2 {

    overflow: visible;

  }

}



.control-group {

  display: flex;

  flex-direction: row;

  align-items: center;

  gap: 3px;

}



.group-label {

  font-size: 7.5px;

  font-family: var(--font-mono);

  color: var(--text-muted);

  letter-spacing: 0.6px;

  margin-right: 1px;

}



.btn-cluster {

  display: flex;

  gap: 4px;

}



.btn-tactical {

  font-size: 10px;

  padding: 4px 8px;

  white-space: nowrap;

}



.btn-tactical {

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid var(--border-subtle);

  color: var(--text-primary);

  font-family: var(--font-mono);

  font-size: 11px;

  padding: 6px 12px;

  border-radius: 4px;

  cursor: pointer;

  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

}



.btn-tactical:hover {

  background: rgba(0, 210, 255, 0.1);

  border-color: var(--accent-cyan);

  color: #fff;

}



.btn-tactical.active {

  background: var(--accent-cyan);

  color: #000;

  font-weight: 700;

  border-color: var(--accent-cyan);

  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);

}



.btn-tactical.highlight {

  border-color: var(--accent-gold);

  color: var(--accent-gold);

}



.btn-tactical.highlight:hover {

  background: var(--accent-gold);

  color: #000;

  box-shadow: 0 0 10px rgba(255, 190, 59, 0.4);

}



.btn-cam-icon {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 28px;

  min-width: 28px;

  height: 25px;

  padding: 0;

  box-sizing: border-box;

}



.btn-cam-icon svg {

  display: block;

  pointer-events: none;

  flex-shrink: 0;

}



.btn-cam-icon:hover svg {

  transform: scale(1.15);

  transition: transform 0.15s ease;

}



/* ─── 3D Viewport ─── */

#viewport-container {

  position: relative;

  flex: 1;

  width: 100%;

  height: 100%;

  overflow: hidden;

  background: radial-gradient(circle at 50% 30%, #1e2832 0%, #0d1217 100%);

}



#webgl-canvas {

  width: 100%;

  height: 100%;

  display: block;

}



/* ─── Compass HUD (Top Right) ─── */

#compass-hud {

  position: absolute;

  top: 20px;

  right: 20px;

  width: 90px;

  height: 110px;

  background: var(--bg-panel);

  border: 1px solid var(--border-subtle);

  border-radius: 8px;

  padding: 8px;

  display: flex;

  flex-direction: column;

  align-items: center;

  backdrop-filter: blur(10px);

  pointer-events: none;

}



.compass-dial {

  position: relative;

  width: 60px;

  height: 60px;

  border: 2px dashed rgba(0, 210, 255, 0.3);

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

}



.needle {

  position: absolute;

  width: 4px;

  height: 48px;

  background: linear-gradient(to bottom, var(--accent-red) 50%, #445566 50%);

  border-radius: 2px;

  transform-origin: center;

  transition: transform 0.1s linear;

}



.compass-label {

  position: absolute;

  font-family: var(--font-mono);

  font-size: 9px;

  font-weight: 700;

  color: var(--text-muted);

}

.compass-label.north { top: -4px; color: var(--accent-red); }

.compass-label.south { bottom: -4px; }

.compass-label.east { right: 2px; }

.compass-label.west { left: 2px; }



.heading-readout {

  margin-top: 4px;

  font-family: var(--font-mono);

  font-size: 11px;

  color: var(--accent-cyan);

  font-weight: 700;

}



/* ─── Navigation Hints (Bottom Center) ─── */

#nav-hints {

  position: absolute;

  bottom: 12px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  align-items: center;

  gap: 6px 14px;

  background: rgba(12, 18, 26, 0.94);

  border: 1px solid rgba(0, 230, 255, 0.35);

  padding: 6px 16px;

  border-radius: 14px;

  font-family: var(--font-mono);

  font-size: 10.5px;

  backdrop-filter: blur(12px);

  pointer-events: none;

  white-space: normal;

  max-width: min(94vw, 1100px);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);

  z-index: 100;

}



.hint-item {

  color: var(--text-muted);

}



.hint-item .key {

  color: var(--accent-cyan);

  font-weight: 600;

  margin-right: 4px;

}



/* ─── 3D Combat Dice Result Banner (Deprecated in favor of #combat-dice-clash-overlay and #battle-notification-banner) ─── */

.dice-banner {

  display: none !important;

}



/* ─── Animated Combat Dice Clash Overlay (High-Resolution Static Central Panel) ─── */

.combat-dice-overlay {

  position: fixed;

  top: 110px;

  left: 50%;

  transform: translateX(-50%);

  background: rgba(10, 15, 24, 0.96);

  border: 1px solid rgba(255, 215, 75, 0.7);

  border-top: 3px solid #ffd700;

  border-radius: 12px;

  padding: 16px 24px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 215, 75, 0.25);

  backdrop-filter: blur(16px);

  z-index: 100010;

  width: fit-content;

  min-width: 780px;

  max-width: 1140px;

  display: flex;

  flex-direction: column;

  gap: 12px;

  font-family: 'JetBrains Mono', monospace;

  animation: clashOverlaySlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);

}



.combat-dice-overlay.hidden {

  display: none !important;

}



@keyframes clashOverlaySlide {

  from { opacity: 0; transform: translate(-50%, -24px) scale(0.95); }

  to { opacity: 1; transform: translate(-50%, 0) scale(1); }

}



.clash-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  padding-bottom: 8px;

}



.clash-header-left {

  display: flex;

  flex-direction: column;

  gap: 3px;

}



.clash-title {

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1.5px;

  color: #ffd700;

  text-transform: uppercase;

}



.clash-vs {

  font-size: 13px;

  font-weight: 700;

  color: #ffffff;

  letter-spacing: 0.6px;

}



.clash-close-btn {

  background: transparent;

  border: 1px solid rgba(255, 255, 255, 0.25);

  color: #ffffff;

  width: 28px;

  height: 28px;

  border-radius: 4px;

  font-size: 18px;

  line-height: 1;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  transition: all 0.15s ease;

}



.clash-close-btn:hover {

  background: rgba(255, 70, 70, 0.3);

  border-color: #ff4455;

  color: #ff8888;

}



.clash-body {

  display: flex;

  align-items: stretch;

  justify-content: center;

  gap: 22px;

  padding: 6px 0;

}



.clash-side {

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.side-label {

  font-size: 10.5px;

  font-weight: 800;

  letter-spacing: 1px;

  text-transform: uppercase;

}



.attacker-side .side-label {

  color: #ff5566;

}



.defender-side .side-label {

  color: #00d2ff;

}



.clash-divider {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 4px;

  padding: 0 8px;

}



.clash-divider-icon {

  font-size: 24px;

  color: #ffd700;

  text-shadow: 0 0 12px rgba(255, 215, 75, 0.6);

}



.clash-divider-sub {

  font-size: 10px;

  font-weight: 800;

  color: rgba(255, 255, 255, 0.5);

  letter-spacing: 1px;

}



.dice-row {

  display: flex;

  flex-wrap: nowrap;

  gap: 10px;

  min-height: 172px;

  align-items: flex-start;

}



/* ─── Front-Facing Die Facet Card (High-Resolution Static) ─── */

.die-facet-card {

  position: relative;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: space-between;

  width: 114px;

  min-height: 172px;

  padding: 8px 6px;

  background: rgba(18, 24, 38, 0.94);

  border-radius: 8px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);

  box-sizing: border-box;

  transition: transform 0.18s ease, box-shadow 0.18s ease;

}



.die-facet-card:hover {

  transform: translateY(-2px);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85);

}



.die-facet-card.die-card-atk {

  border-top: 3px solid #ff4455;

}



.die-facet-card.die-card-def {

  border-top: 3px solid #00c8ff;

}



.die-card-header {

  width: 100%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 2px;

}



.die-facet-card .die-idx-badge {

  font-size: 9px;

  font-weight: 800;

  color: #ffd700;

  background: rgba(0, 0, 0, 0.6);

  padding: 1px 4px;

  border-radius: 3px;

  border: 1px solid rgba(255, 215, 75, 0.35);

  line-height: 1.1;

}



.die-facet-card .die-type-tag {

  font-size: 8.5px;

  font-weight: 700;

  color: rgba(255, 255, 255, 0.75);

  text-transform: uppercase;

  max-width: 70px;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

}



.die-facet-canvas-wrapper {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 96px;

  height: 96px;

  margin: 3px 0;

}



.die-facet-canvas-wrapper canvas {

  width: 96px;

  height: 96px;

  image-rendering: -webkit-optimize-contrast;

  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));

}



.die-symbol-name {

  font-size: 9.5px;

  font-weight: 800;

  color: #ffffff;

  text-align: center;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  line-height: 1.2;

  margin: 2px 0;

  max-width: 106px;

  word-break: break-word;

}



.die-effect-pill {

  font-size: 8.5px;

  font-weight: 800;

  padding: 2px 6px;

  border-radius: 10px;

  text-align: center;

  width: 92%;

  margin-top: 2px;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  box-sizing: border-box;

}



.die-effect-pill.pill-crit {

  background: rgba(255, 34, 68, 0.25);

  border: 1px solid #ff2244;

  color: #ff6677;

}



.die-effect-pill.pill-hit {

  background: rgba(255, 136, 0, 0.25);

  border: 1px solid #ff8800;

  color: #ffaa44;

}



.die-effect-pill.pill-surge {

  background: rgba(255, 215, 0, 0.25);

  border: 1px solid #ffd700;

  color: #ffeb66;

}



.die-effect-pill.pill-supp {

  background: rgba(255, 170, 0, 0.20);

  border: 1px solid #ffaa00;

  color: #ffcc66;

}



.die-effect-pill.pill-save-heavy {

  background: rgba(0, 220, 130, 0.25);

  border: 1px solid #00dc82;

  color: #55ffb2;

}



.die-effect-pill.pill-save {

  background: rgba(0, 180, 255, 0.25);

  border: 1px solid #00b4ff;

  color: #66d2ff;

}



.die-effect-pill.pill-blank {

  background: rgba(120, 130, 150, 0.20);

  border: 1px solid rgba(150, 160, 180, 0.4);

  color: #abb2bf;

}



.die-effect-pill.pill-breach {

  background: rgba(255, 50, 50, 0.20);

  border: 1px solid rgba(255, 60, 60, 0.5);

  color: #ff7777;

}



.clash-footer {

  border-top: 1px solid rgba(255, 255, 255, 0.12);

  padding-top: 8px;

  text-align: center;

}



.result-badge {

  font-size: 13px;

  font-weight: 800;

  color: #ffd700;

  letter-spacing: 0.8px;

  text-shadow: 0 0 10px rgba(255, 215, 75, 0.4);

}



/* ─── Cell Inspector HUD (Bottom Left) ─── */

.hud-panel {

  position: absolute;

  bottom: 24px;

  left: 24px;

  width: 340px;

  background: var(--bg-panel);

  border: 1px solid var(--border-subtle);

  border-left: 3px solid var(--accent-gold);

  border-radius: 6px;

  backdrop-filter: blur(12px);

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);

  pointer-events: none;

  opacity: 0;

  visibility: hidden;

  transform: translateY(8px);

  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.22s ease;

  z-index: 100;

}



.hud-panel.visible {

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform: translateY(0);

}



.btn-close-inspect {

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.16);

  color: var(--text-muted);

  width: 20px;

  height: 20px;

  border-radius: 3px;

  font-size: 11px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  padding: 0;

  line-height: 1;

  transition: all 0.15s ease;

}



.btn-close-inspect:hover {

  background: rgba(255, 51, 68, 0.25);

  border-color: #ff3344;

  color: #fff;

}



.panel-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 8px 14px;

  background: rgba(255, 190, 59, 0.08);

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

}



.panel-tag {

  font-family: var(--font-mono);

  font-size: 10px;

  font-weight: 700;

  color: var(--accent-gold);

  letter-spacing: 1px;

}



.coord-tag {

  font-family: var(--font-mono);

  font-size: 12px;

  font-weight: 700;

  color: var(--accent-cyan);

}



.panel-body {

  padding: 12px 14px;

  display: flex;

  flex-direction: column;

  gap: 10px;

}



.terrain-name {

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 0.8px;

  color: #fff;

}



.stat-grid {

  display: flex;

  flex-direction: column;

  gap: 6px;

}



.stat-row {

  display: flex;

  justify-content: space-between;

  font-family: var(--font-mono);

  font-size: 11px;

}



.stat-label {

  color: var(--text-muted);

}



.stat-value {

  color: var(--text-primary);

  font-weight: 500;

}



.stat-row.wide {

  flex-direction: column;

  gap: 2px;

  background: rgba(0, 0, 0, 0.25);

  padding: 4px 6px;

  border-radius: 4px;

  border-left: 2px solid var(--accent-gold);

  margin-top: 2px;

}



.text-accent {

  color: var(--accent-gold);

  font-size: 10px;

  line-height: 1.35;

}



/* ─── Unit Profile & Veterancy Inspector ─── */

.unit-profile-box {

  background: rgba(10, 15, 22, 0.85);

  border: 1px solid rgba(255, 190, 59, 0.35);

  border-radius: 5px;

  padding: 8px 10px;

  display: flex;

  flex-direction: column;

  gap: 7px;

  margin-bottom: 8px;

  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);

}



.unit-profile-box.hidden {

  display: none !important;

}



.unit-profile-header-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 6px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  padding-bottom: 5px;

}



.unit-profile-title {

  color: #ffffff;

  font-family: var(--font-header);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.5px;

  flex: 1;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.unit-profile-status-pill {

  font-family: var(--font-mono);

  font-size: 9.5px;

  font-weight: 800;

  padding: 1px 6px;

  border-radius: 3px;

  letter-spacing: 0.4px;

}



.unit-profile-status-pill.status-ready {

  background: rgba(0, 255, 136, 0.16);

  border: 1px solid #00ff88;

  color: #00ff88;

}



.unit-profile-status-pill.status-activated {

  background: rgba(245, 158, 11, 0.18);

  border: 1px solid #f59e0b;

  color: #fbbf24;

}



.unit-profile-status-pill.status-pinned {

  background: rgba(255, 179, 0, 0.2);

  border: 1px solid #ffb300;

  color: #ffb300;

}



.unit-profile-status-pill.status-immobilized {

  background: rgba(255, 51, 68, 0.2);

  border: 1px solid #ff3344;

  color: #ff3344;

}



.unit-profile-status-pill.status-kia {

  background: rgba(255, 51, 68, 0.28);

  border: 1px solid #ff3344;

  color: #ff5252;

  box-shadow: 0 0 6px rgba(255, 51, 68, 0.35);

}



.unit-profile-stats-row {

  font-family: var(--font-mono);

  font-size: 10.5px;

  color: var(--accent-gold);

  margin-top: 1px;

  margin-bottom: 2px;

}



/* ─── Tactical Attack Area Envelope Legend & Badges ─── */

.hud-attack-legend-bar {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  background: rgba(10, 16, 24, 0.92);

  border: 1px solid rgba(0, 229, 255, 0.35);

  border-radius: 4px;

  padding: 3px 8px;

  font-family: var(--font-mono);

  font-size: 10px;

  color: #cfd8dc;

  letter-spacing: 0.5px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);

}



.hud-attack-legend-bar.hidden {

  display: none !important;

}



.hud-attack-legend-title {

  font-weight: 800;

  color: #90caf9;

  margin-right: 4px;

  display: inline-flex;

  align-items: center;

  gap: 4px;

}



.attack-type-badge {

  display: inline-flex;

  align-items: center;

  gap: 4px;

  padding: 2px 7px;

  border-radius: 3px;

  font-size: 9.5px;

  font-weight: 800;

  letter-spacing: 0.5px;

  text-transform: uppercase;

}



.attack-type-badge.badge-kinetic-ap {

  background: rgba(255, 23, 68, 0.20);

  border: 1px solid #ff1744;

  color: #ff5252;

}



.attack-type-badge.badge-guided-heat {

  background: rgba(213, 0, 249, 0.22);

  border: 1px solid #d500f9;

  color: #e040fb;

}



.attack-type-badge.badge-artillery-he {

  background: rgba(255, 109, 0, 0.22);

  border: 1px solid #ff6d00;

  color: #ff9100;

}



.attack-type-badge.badge-melee {

  background: rgba(255, 0, 85, 0.22);

  border: 1px solid #ff0055;

  color: #ff3377;

}



.attack-type-badge.badge-autocannon {

  background: rgba(255, 214, 0, 0.20);

  border: 1px solid #ffd600;

  color: #ffea00;

}



.unit-rank-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.rank-badge {

  background: transparent;

  border: 1px solid var(--accent-gold);

  border-radius: 4px;

  padding: 3px 10px;

  font-family: var(--font-mono);

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  letter-spacing: 0.6px;

  display: inline-flex;

  align-items: center;

  gap: 4px;

}



.rank-badge.rank-rookie {

  color: #cd7f32;

  border-color: #cd7f32;

  background: rgba(205, 127, 50, 0.16);

  box-shadow: 0 0 6px rgba(205, 127, 50, 0.2);

}



.rank-badge.rank-veteran {

  color: #ffd700;

  border-color: #ffd700;

  background: rgba(255, 215, 0, 0.18);

  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);

}



.rank-badge.rank-elite {

  color: #00e5ff;

  border-color: #00e5ff;

  background: rgba(0, 229, 255, 0.22);

  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);

  text-shadow: 0 0 8px rgba(0, 229, 255, 0.7);

}



.rank-badge:hover {

  transform: scale(1.06);

  filter: brightness(1.2);

}



.unit-dice-pools {

  display: flex;

  flex-direction: column;

  gap: 5px;

}



.dice-pool-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 8px;

  font-family: var(--font-mono);

  font-size: 10px;

}



.pool-label {

  color: var(--text-muted);

  width: 54px;

  text-transform: uppercase;

  font-weight: 600;

}



.dice-tags {

  display: flex;

  gap: 4px;

  flex-wrap: wrap;

  justify-content: flex-end;

  margin-left: auto;

}



.dice-tag {

  display: inline-flex;

  align-items: center;

  gap: 3px;

  padding: 2px 7px;

  border-radius: 3px;

  font-size: 10px;

  font-weight: 700;

  border: 1px solid transparent;

  font-family: var(--font-mono);

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);

}



.dice-tag.red {

  background: rgba(178, 34, 34, 0.4);

  border-color: #b22222;

  color: #ffaaaa;

}



.dice-tag.orange {

  background: rgba(212, 109, 34, 0.4);

  border-color: #d46d22;

  color: #ffd2a6;

}



.dice-tag.white {

  background: rgba(203, 186, 150, 0.3);

  border-color: #cbba96;

  color: #f4ecdc;

}



.dice-tag.green {

  background: rgba(33, 71, 30, 0.45);

  border-color: #366e31;

  color: #b3f2ad;

}



.dice-tag.blue {

  background: rgba(23, 52, 82, 0.5);

  border-color: #295682;

  color: #b8deff;

}



.dice-tag.d6 {

  background: rgba(127, 140, 141, 0.35);

  border-color: #7f8c8d;

  color: #ecf0f1;

}



.dice-tag.d8 {

  background: rgba(41, 128, 185, 0.4);

  border-color: #2980b9;

  color: #b8deff;

}



.dice-tag.d10 {

  background: rgba(192, 57, 43, 0.45);

  border-color: #c0392b;

  color: #ffaaaa;

}



.dice-tag.d12 {

  background: rgba(211, 84, 0, 0.45);

  border-color: #d35400;

  color: #ffd2a6;

}



.hover-dice-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 8px;

}



.hover-dice-label-col {

  display: flex;

  flex-direction: column;

  flex: 1;

  min-width: 0;

}



.hover-dice-label-main {

  font-family: var(--font-mono);

  font-size: 10px;

  font-weight: 700;

  color: #fff;

}



.hover-dice-label-sub {

  font-family: var(--font-mono);

  font-size: 8px;

  color: var(--text-muted);

}



.hover-terrain-section {

  background: rgba(0, 0, 0, 0.28);

  border-radius: 4px;

  padding: 6px 10px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  display: flex;

  flex-direction: column;

  gap: 4px;

}



.hover-terrain-desc {

  font-family: var(--font-mono);

  font-size: 10px;

  color: #81c784;

  line-height: 1.35;

}



.hover-veterancy-desc {

  font-family: var(--font-mono);

  font-size: 9px;

  color: var(--accent-gold);

  line-height: 1.3;

}



.btn-tactical-roll-hud {

  background: linear-gradient(135deg, rgba(255, 190, 59, 0.25), rgba(255, 120, 0, 0.25));

  border: 1px solid var(--accent-gold);

  border-radius: 4px;

  color: #fff;

  font-family: var(--font-sans);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.8px;

  padding: 6px 10px;

  cursor: pointer;

  margin-top: 4px;

  transition: all 0.2s ease;

  text-align: center;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

}



.btn-tactical-roll-hud:hover {

  background: linear-gradient(135deg, rgba(255, 190, 59, 0.45), rgba(255, 120, 0, 0.45));

  box-shadow: 0 0 16px rgba(255, 190, 59, 0.5);

  transform: translateY(-1px);

}



/* ─── Floating Tactical Unit Hover Dossier (Tooltip Card) ─── */

.unit-hover-dossier {

  position: fixed !important;

  z-index: 12000;

  bottom: 24px !important;

  left: 24px !important;

  top: auto !important;

  right: auto !important;

  width: 360px;

  max-height: calc(100vh - 120px);

  overflow-y: auto;

  overflow-x: hidden;

  scrollbar-width: thin;

  scrollbar-color: rgba(0, 255, 204, 0.4) rgba(10, 16, 24, 0.8);

  background: rgba(11, 16, 24, 0.96);

  border: 1px solid rgba(255, 255, 255, 0.18);

  border-top: 3px solid var(--accent-gold);

  border-radius: 8px;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.90), 0 0 24px rgba(0, 0, 0, 0.7);

  backdrop-filter: blur(18px);

  pointer-events: auto;

  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;

}



.unit-hover-dossier.hidden {

  opacity: 0 !important;

  visibility: hidden !important;

  pointer-events: none !important;

  transform: translateY(12px) scale(0.97) !important;

}



.unit-hover-dossier.afu-theme {

  border-top-color: #ffd700;

  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 87, 183, 0.3);

}



.unit-hover-dossier.ru-theme {

  border-top-color: #e74c3c;

  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.85), 0 0 20px rgba(213, 43, 30, 0.3);

}



/* ─── Terrain Dossier Themes & Components ─── */

.unit-hover-dossier.terrain-dossier-theme {

  border-top-color: var(--accent-gold);

}



.unit-hover-dossier.theme-highway {

  border-top-color: #ffd700;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.90), 0 0 24px rgba(255, 215, 0, 0.22);

}



.unit-hover-dossier.theme-forest {

  border-top-color: #22c55e;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.90), 0 0 24px rgba(34, 197, 94, 0.22);

}



.unit-hover-dossier.theme-mud {

  border-top-color: #b45309;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.90), 0 0 24px rgba(180, 83, 9, 0.22);

}



.unit-hover-dossier.theme-selo {

  border-top-color: #38bdf8;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.90), 0 0 24px rgba(56, 189, 248, 0.22);

}



.unit-hover-dossier.theme-water {

  border-top-color: #06b6d4;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.90), 0 0 24px rgba(6, 182, 212, 0.22);

}



.unit-hover-dossier.theme-crest {

  border-top-color: #f59e0b;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.90), 0 0 24px rgba(245, 158, 11, 0.22);

}



.unit-hover-dossier.theme-mine {

  border-top-color: #ef4444;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.90), 0 0 24px rgba(239, 68, 68, 0.35);

}



.terrain-icon-box {

  width: 34px;

  height: 26px;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 4px;

  font-size: 16px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}



.hover-card-header {

  padding: 10px 14px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  background: rgba(255, 255, 255, 0.03);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}



.hover-card-faction {

  display: flex;

  align-items: center;

  gap: 12px;

}



.hover-flag {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  line-height: 1;

}



.flag-svg {

  display: block;

  border-radius: 3px;

  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);

  transition: transform 0.2s ease;

}



.flag-svg:hover {

  transform: scale(1.08);

}



.hover-title-col {

  display: flex;

  flex-direction: column;

}



.hover-title {

  font-family: var(--font-sans);

  font-size: 14px;

  font-weight: 700;

  letter-spacing: 0.8px;

  color: #ffffff;

}



.hover-class {

  font-family: var(--font-mono);

  font-size: 10px;

  color: var(--text-muted);

}



.hover-rank-badge {

  font-family: var(--font-mono);

  font-size: 10px;

  font-weight: 700;

  padding: 3px 8px;

  border-radius: 3px;

  letter-spacing: 0.5px;

}



.hover-card-body {

  padding: 12px 14px;

  display: flex;

  flex-direction: column;

  gap: 10px;

}



.hover-card-visual-row {

  display: flex;

  gap: 12px;

  align-items: center;

}



.hover-portrait {

  width: 90px;

  height: 90px;

  border-radius: 6px;

  object-fit: cover;

  border: 1px solid rgba(255, 255, 255, 0.2);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);

  background: #111;

}



.hover-stats-grid {

  flex: 1;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 6px;

}



.hover-stat-item {

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 4px;

  padding: 4px 8px;

  display: flex;

  flex-direction: column;

}



.hover-stat-item.wide {

  grid-column: span 2;

}



.hover-stat-label {

  font-family: var(--font-mono);

  font-size: 9px;

  color: var(--text-muted);

}



.hover-stat-val {

  font-family: var(--font-mono);

  font-size: 11px;

  font-weight: 700;

  color: #fff;

}



.hover-stat-val.text-hp { color: #ff6b6b; }

.hover-stat-val.text-atk { color: #ffa834; }

.hover-stat-val.text-def { color: #2ecc71; }



.hover-dice-section {

  display: flex;

  flex-direction: column;

  gap: 5px;

  background: rgba(0, 0, 0, 0.35);

  border-radius: 4px;

  padding: 6px 10px;

  border: 1px solid rgba(255, 255, 255, 0.06);

}



.hover-dice-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 8px;

}



.hover-dice-label {

  font-family: var(--font-mono);

  font-size: 10px;

  font-weight: 700;

  color: var(--text-muted);

  width: 68px;

}



.hover-dice-tags {

  display: flex;

  gap: 4px;

  flex-wrap: wrap;

  justify-content: flex-end;

  align-items: center;

  margin-left: auto;

}



.hover-abilities-section {

  display: flex;

  flex-direction: column;

  gap: 6px;

}



.hover-section-title {

  font-family: var(--font-mono);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.8px;

  color: var(--accent-gold);

  text-transform: uppercase;

}



.hover-abilities-list {

  display: flex;

  flex-direction: column;

  gap: 5px;

}



.hover-ability-card {

  background: rgba(255, 255, 255, 0.03);

  border-left: 2.5px solid var(--accent-gold);

  padding: 4px 8px;

  border-radius: 0 4px 4px 0;

  display: flex;

  flex-direction: column;

  gap: 2px;

}



.hover-ability-title {

  font-family: var(--font-sans);

  font-size: 11px;

  font-weight: 700;

  color: #fff;

  display: flex;

  align-items: center;

  gap: 4px;

}



.hover-ability-desc {

  font-family: var(--font-mono);

  font-size: 10px;

  color: #b0bec5;

}



.hover-card-footer {

  margin-top: 4px;

  padding-top: 8px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-family: var(--font-mono);

  font-size: 9px;

}



.hover-status-text {

  color: #64b5f6;

  font-weight: 600;

}



.hover-tip-text {

  color: var(--text-muted);

}



/* ══════════════════════════════════════════════════════════════════════════════

   MILITARY FIELD NOTEBOOK & MISSION BRIEFING (RITE-IN-THE-RAIN TACTICAL BINDER)

   ══════════════════════════════════════════════════════════════════════════════ */



/* ─── Top Header Pill & Ribbon Trigger (Ultra-Compact) ─── */

.btn-briefing-pill {

  display: inline-flex;

  align-items: center;

  gap: 3px;

  background: rgba(122, 146, 102, 0.18);

  border: 1px solid rgba(122, 146, 102, 0.45);

  color: #d8ecc4;

  height: 20px;

  padding: 1px 5px;

  border-radius: 3px;

  font-family: var(--font-mono);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.4px;

  cursor: pointer;

  transition: all 0.15s ease;

  white-space: nowrap;

}



.btn-briefing-pill:hover {

  background: rgba(122, 146, 102, 0.38);

  border-color: #a3c58b;

  color: #ffffff;

  box-shadow: 0 0 8px rgba(163, 197, 139, 0.35);

}



.btn-briefing-pill .pill-icon {

  font-size: 11px;

  line-height: 1;

}



/* ─── Top Header Multilingual Language Switcher (Compact) ─── */

.btn-lang-pill {

  display: inline-flex;

  align-items: center;

  gap: 5px;

  background: rgba(41, 128, 185, 0.25);

  border: 1px solid #3498db;

  color: #a9d7f6;

  height: 28px;

  padding: 0 10px;

  border-radius: 5px;

  font-family: var(--font-mono);

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.18s ease;

  user-select: none;

  white-space: nowrap;

}



.btn-lang-pill:hover {

  background: rgba(41, 128, 185, 0.45);

  border-color: #5dade2;

  color: #ffffff;

  box-shadow: 0 0 15px rgba(93, 173, 226, 0.5);

  transform: translateY(-1px);

}



.btn-lang-pill .lang-globe {

  font-size: 14px;

}



.btn-tactical.highlight-briefing {

  border-color: #8da878;

  color: #d6ebc4;

  background: rgba(100, 130, 85, 0.25);

  box-shadow: 0 0 10px rgba(141, 168, 120, 0.25);

}



.btn-tactical.highlight-briefing:hover {

  background: rgba(141, 168, 120, 0.45);

  color: #ffffff;

  box-shadow: 0 0 16px rgba(141, 168, 120, 0.6);

}



/* ─── Notebook Fullscreen Modal Backdrop ─── */

.notebook-backdrop {

  position: fixed;

  inset: 0;

  z-index: 9999;

  background: radial-gradient(circle at center, rgba(14, 20, 28, 0.78) 0%, rgba(6, 10, 14, 0.94) 80%),

              url('/assets/art/scenarios/tactical_command_tent_briefing.jpg') center / cover no-repeat;

  backdrop-filter: blur(4px);

  display: flex;

  justify-content: center;

  align-items: center;

  opacity: 1;

  visibility: visible;

  transition: opacity 0.25s ease, visibility 0.25s ease;

}



.notebook-backdrop.hidden {

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

}



/* ─── Outer Notebook Casing ─── */

.notebook-casing {

  position: relative;

  display: flex;

  width: 1060px;

  max-width: 95vw;

  height: 88vh;

  max-height: 840px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.7);

  animation: notebookPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);

}



@keyframes notebookPopIn {

  0% { transform: scale(0.95) translateY(12px); opacity: 0; }

  100% { transform: scale(1) translateY(0); opacity: 1; }

}



/* ─── Left Ring Binder Spine (Metal Spiral) ─── */

.notebook-ring-spine {

  width: 44px;

  background: linear-gradient(to right, #151c14 0%, #283325 50%, #151b14 100%);

  border-radius: 10px 0 0 10px;

  display: flex;

  flex-direction: column;

  justify-content: space-evenly;

  align-items: center;

  padding: 25px 0;

  z-index: 20;

  box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.6), 2px 0 6px rgba(0, 0, 0, 0.4);

}



.spine-ring {

  position: relative;

  width: 38px;

  height: 22px;

  display: flex;

  align-items: center;

  justify-content: space-between;

}



.spine-ring .ring-hole {

  width: 5px;

  height: 14px;

  background: #090e0a;

  border-radius: 2px;

  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.8);

}



.spine-ring .ring-metal {

  flex: 1;

  height: 10px;

  background: linear-gradient(180deg, #e6e6e6 0%, #9e9e9e 40%, #525252 75%, #2a2a2a 100%);

  border-radius: 5px;

  margin: 0 2px;

  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.7), inset 0 1px 2px #ffffff;

}



/* ─── Heavy Tactical Olive Binder Body ─── */

.notebook-binder {

  flex: 1;

  display: flex;

  flex-direction: column;

  background: #252f23;

  border-radius: 0 10px 10px 0;

  position: relative;

  border: 2px solid #192117;

  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);

  overflow: hidden;

}



/* Canvas Perimeter Stitching */

.notebook-binder::before {

  content: '';

  position: absolute;

  inset: 6px;

  border: 1px dashed rgba(168, 158, 115, 0.35);

  border-radius: 0 6px 6px 0;

  pointer-events: none;

  z-index: 5;

}



/* Brass Corner Plates */

.corner-brace {

  position: absolute;

  width: 24px;

  height: 24px;

  border: 3px solid #8f7943;

  pointer-events: none;

  z-index: 10;

  box-shadow: inset 1px 1px 2px rgba(255, 235, 170, 0.4);

}

.corner-brace.top-left { top: 4px; left: 4px; border-right: none; border-bottom: none; }

.corner-brace.top-right { top: 4px; right: 4px; border-left: none; border-bottom: none; border-top-right-radius: 6px; }

.corner-brace.bottom-left { bottom: 4px; left: 4px; border-right: none; border-top: none; }

.corner-brace.bottom-right { bottom: 4px; right: 4px; border-left: none; border-top: none; border-bottom-right-radius: 6px; }



/* ─── Header Ribbon ─── */

.notebook-header-bar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 20px 10px 24px;

  background: #1d251c;

  border-bottom: 2px solid #141b13;

  z-index: 15;

}



.header-left {

  display: flex;

  align-items: center;

  gap: 14px;

}



.stamp-classified {

  background: rgba(215, 38, 56, 0.15);

  border: 2px solid #d72638;

  color: #ff5264;

  font-family: var(--font-display);

  font-size: 11px;

  font-weight: 900;

  letter-spacing: 2px;

  padding: 3px 10px;

  border-radius: 3px;

  transform: rotate(-1.5deg);

  box-shadow: 0 0 8px rgba(215, 38, 56, 0.3);

}



.notebook-meta-code {

  font-family: var(--font-mono);

  font-size: 11px;

  color: #8fa08a;

  letter-spacing: 0.5px;

}



.header-right {

  display: flex;

  align-items: center;

  gap: 10px;

}



.btn-notebook-voice {

  display: flex;

  align-items: center;

  gap: 6px;

  background: rgba(0, 210, 255, 0.12);

  border: 1px solid var(--accent-cyan);

  color: var(--accent-cyan);

  font-family: var(--font-display);

  font-size: 11px;

  font-weight: 700;

  padding: 5px 12px;

  border-radius: 4px;

  cursor: pointer;

  letter-spacing: 1px;

  transition: all 0.2s ease;

}



.btn-notebook-voice:hover {

  background: rgba(0, 210, 255, 0.28);

  box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);

}



.btn-notebook-voice.speaking {

  background: rgba(255, 71, 87, 0.2);

  border-color: #ff4757;

  color: #ff6b81;

  animation: voicePulse 1s infinite alternate;

}



@keyframes voicePulse {

  0% { box-shadow: 0 0 4px rgba(255, 71, 87, 0.3); }

  100% { box-shadow: 0 0 14px rgba(255, 71, 87, 0.7); }

}



.btn-notebook-exit {

  background: #364234;

  border: 1px solid #4d5d4a;

  color: #d6e2d3;

  font-family: var(--font-display);

  font-size: 11px;

  font-weight: 700;

  padding: 5px 12px;

  border-radius: 4px;

  cursor: pointer;

  transition: all 0.2s ease;

}



.btn-notebook-exit:hover {

  background: #d72638;

  border-color: #ff4757;

  color: #fff;

}



/* ─── Main Notebook Surface (Paper + Tabs) ─── */

.notebook-surface {

  flex: 1;

  display: flex;

  overflow: hidden;

  position: relative;

  margin: 10px 14px 6px 12px;

  border-radius: 4px;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);

}



/* ─── Waterproof Weathered Grid Sheet (Rite-in-the-Rain) ─── */

.notebook-page-sheet {

  flex: 1;

  background-color: #f3efe1;

  background-image: 

    linear-gradient(rgba(110, 135, 100, 0.15) 1px, transparent 1px),

    linear-gradient(90deg, rgba(110, 135, 100, 0.15) 1px, transparent 1px);

  background-size: 16px 16px;

  position: relative;

  overflow-y: auto;

  overflow-x: hidden;

  padding: 24px 30px 24px 48px;

  color: #1a251b;

  font-family: var(--font-mono);

  box-shadow: inset 10px 0 18px rgba(0, 0, 0, 0.08);

}



.notebook-page-sheet::-webkit-scrollbar {

  width: 7px;

}

.notebook-page-sheet::-webkit-scrollbar-track {

  background: #e2ddcb;

}

.notebook-page-sheet::-webkit-scrollbar-thumb {

  background: #9fa894;

  border-radius: 3px;

}

.notebook-page-sheet::-webkit-scrollbar-thumb:hover {

  background: #737c68;

}



.red-margin-line {

  position: absolute;

  top: 0;

  bottom: 0;

  left: 36px;

  width: 2px;

  background: rgba(215, 38, 56, 0.3);

  pointer-events: none;

}



/* ─── Tab Page Views ─── */

.notebook-page-view {

  display: none;

  animation: pageViewFade 0.25s ease-out;

  position: relative;

}



.notebook-page-view.active {

  display: block;

}



@keyframes pageViewFade {

  0% { opacity: 0; transform: translateY(6px); }

  100% { opacity: 1; transform: translateY(0); }

}



.stamp-watermark {

  position: absolute;

  right: 10px;

  top: 10px;

  font-family: var(--font-display);

  font-size: 26px;

  font-weight: 900;

  color: rgba(180, 40, 40, 0.08);

  border: 3px solid rgba(180, 40, 40, 0.1);

  padding: 4px 14px;

  border-radius: 4px;

  transform: rotate(-6deg);

  pointer-events: none;

  letter-spacing: 2px;

}



.sheet-header-block {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  border-bottom: 2px solid #2e3b2c;

  padding-bottom: 12px;

  margin-bottom: 18px;

}



.sheet-title {

  font-family: var(--font-display);

  font-size: 21px;

  font-weight: 700;

  color: #172418;

  letter-spacing: 1px;

  line-height: 1.2;

}



.sheet-subtitle {

  font-size: 11px;

  color: #4f634b;

  font-weight: 600;

  margin-top: 3px;

  letter-spacing: 0.5px;

}



.stamp-date {

  background: #273424;

  color: #e5ede3;

  font-size: 10px;

  font-weight: 700;

  padding: 3px 8px;

  border-radius: 3px;

  letter-spacing: 0.5px;

  display: inline-block;

}



/* ─── Intel Grid Cards ─── */

.intel-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;

  margin-bottom: 18px;

}



.intel-card {

  background: rgba(255, 255, 255, 0.65);

  border: 1px solid #c2cabd;

  border-left: 3px solid #3d4f3a;

  padding: 8px 12px;

  border-radius: 3px;

  display: flex;

  flex-direction: column;

  gap: 3px;

}



.intel-card-label {

  font-size: 9px;

  font-weight: 700;

  color: #5d7058;

  letter-spacing: 1px;

}



.intel-card-value {

  font-size: 12px;

  font-weight: 600;

  color: #172419;

}



.intel-card-value.text-alert {

  color: #b52a1a;

  font-weight: 700;

}



/* ─── Field Dossier Box ─── */

.field-dossier-box {

  background: rgba(255, 255, 255, 0.55);

  border: 1px solid #c2cabd;

  border-radius: 4px;

  padding: 14px 16px;

  margin-bottom: 16px;

}



.dossier-banner {

  font-family: var(--font-display);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1px;

  color: #243522;

  border-bottom: 1px solid #cad2c4;

  padding-bottom: 6px;

  margin-bottom: 10px;

}



.dossier-p {

  font-size: 12px;

  line-height: 1.6;

  color: #253326;

  margin-bottom: 8px;

}

.dossier-p:last-child { margin-bottom: 0; }

.dossier-p strong { color: #111a12; font-weight: 700; }



/* ─── Handwritten Grease-Pen Notes ─── */

.handwritten-grease-note {

  background: rgba(255, 245, 215, 0.85);

  border: 1px dashed rgba(180, 80, 40, 0.4);

  border-left: 4px solid #c2410c;

  padding: 10px 14px;

  border-radius: 4px;

  margin-top: 14px;

  transform: rotate(-0.5deg);

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

}



.grease-pen {

  font-family: var(--font-mono);

  font-size: 11.5px;

  font-weight: 700;

  line-height: 1.5;

  display: block;

}

.grease-pen.red { color: #9a1a1a; }

.grease-pen.blue { color: #15457a; }



/* ─── Tab 2: ORBAT Layout ─── */

.orbat-grid-split {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;

  margin-bottom: 16px;

}



.orbat-faction-card {

  background: rgba(255, 255, 255, 0.6);

  border: 1px solid #bdc7b8;

  border-radius: 4px;

  padding: 12px;

  display: flex;

  flex-direction: column;

  gap: 10px;

}



.orbat-faction-card.afu {

  border-top: 4px solid #1976d2;

}



.orbat-faction-card.ru {

  border-top: 4px solid #c62828;

}



.faction-header {

  display: flex;

  align-items: center;

  gap: 8px;

  border-bottom: 1px solid #cad4c5;

  padding-bottom: 8px;

}



.faction-flag {

  font-size: 20px;

}



.faction-info {

  display: flex;

  flex-direction: column;

}



.faction-name {

  font-family: var(--font-display);

  font-size: 13px;

  font-weight: 700;

  color: #172418;

  letter-spacing: 0.5px;

}



.faction-cmd {

  font-size: 10px;

  color: #556950;

  font-weight: 600;

}



.faction-units-stream {

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.u-card {

  background: rgba(255, 255, 255, 0.85);

  border: 1px solid #c8d2c4;

  border-radius: 3px;

  padding: 8px 10px;

  display: flex;

  flex-direction: column;

  gap: 4px;

}



.u-card-top {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.u-tag {

  font-size: 11px;

  font-weight: 700;

  color: #172418;

}



.u-role {

  font-size: 9px;

  font-weight: 700;

  background: #394a36;

  color: #f0f7ee;

  padding: 2px 6px;

  border-radius: 3px;

  letter-spacing: 0.5px;

}



.u-desc {

  font-size: 10.5px;

  color: #3b4d38;

  line-height: 1.4;

}



.u-dice-pool {

  display: flex;

  flex-wrap: wrap;

  gap: 4px;

  margin-top: 2px;

}



.dice-chip {

  font-family: var(--font-mono);

  font-size: 9px;

  font-weight: 700;

  padding: 2px 6px;

  border-radius: 2px;

  letter-spacing: 0.5px;

}

.dice-chip.chip-kinetic { background: #d32f2f; color: #fff; }

.dice-chip.chip-shaped { background: #f57c00; color: #fff; }

.dice-chip.chip-he { background: #7b1fa2; color: #fff; }

.dice-chip.chip-auto { background: #388e3c; color: #fff; }

.dice-chip.chip-armor { background: #455a64; color: #fff; }

.dice-chip.chip-era { background: #00796b; color: #fff; }

.dice-chip.chip-cover { background: #5d4037; color: #fff; }

.dice-chip.chip-ew { background: #0288d1; color: #fff; }



/* ─── Tab 3: Objectives & VPs ─── */

.objectives-list {

  display: flex;

  flex-direction: column;

  gap: 10px;

  margin-bottom: 18px;

}



.obj-item-box {

  background: rgba(255, 255, 255, 0.7);

  border: 1px solid #c2ccbd;

  border-radius: 4px;

  padding: 10px 14px;

  display: flex;

  align-items: flex-start;

  gap: 14px;

}



.obj-left-badge {

  display: flex;

  flex-direction: column;

  align-items: center;

  min-width: 85px;

  background: #2a3727;

  color: #fff;

  padding: 6px 8px;

  border-radius: 4px;

  text-align: center;

  gap: 2px;

}



.obj-score {

  font-family: var(--font-display);

  font-size: 13px;

  font-weight: 700;

  color: #ffbe3b;

}



.obj-hex {

  font-size: 9px;

  color: #9cb396;

}



.obj-details {

  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 3px;

}



.obj-title {

  font-family: var(--font-display);

  font-size: 13px;

  font-weight: 700;

  color: #172418;

}



.obj-desc {

  font-size: 11px;

  color: #3b4d38;

}



.obj-impact {

  font-size: 11px;

  color: #1e301f;

  margin-top: 2px;

}

.obj-impact strong { font-weight: 700; color: #0d1a0e; }



.victory-criteria-dossier {

  background: rgba(255, 255, 255, 0.65);

  border: 1px solid #c2ccbd;

  border-left: 4px solid #2e3e2b;

  border-radius: 4px;

  padding: 12px 16px;

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.crit-title {

  font-family: var(--font-display);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1px;

  color: #1e2c1c;

  margin-bottom: 2px;

}



.crit-row {

  display: flex;

  align-items: baseline;

  gap: 10px;

  font-size: 11.5px;

}



.crit-badge {

  font-size: 10px;

  font-weight: 700;

  padding: 2px 8px;

  border-radius: 3px;

  white-space: nowrap;

}

.crit-row.win .crit-badge { background: #2e7d32; color: #fff; }

.crit-row.minor .crit-badge { background: #0288d1; color: #fff; }

.crit-row.loss .crit-badge { background: #c62828; color: #fff; }



.crit-text {

  color: #263824;

  line-height: 1.4;

}



/* ─── Tab 4: Terrain Specifications Table & ROE ─── */

.tactical-field-table {

  width: 100%;

  border-collapse: collapse;

  margin-bottom: 18px;

  background: rgba(255, 255, 255, 0.7);

  border-radius: 4px;

  overflow: hidden;

  font-size: 11px;

}



.tactical-field-table th {

  background: #2b3828;

  color: #e5ede3;

  padding: 8px 10px;

  text-align: left;

  font-family: var(--font-display);

  font-weight: 700;

  letter-spacing: 0.5px;

}



.tactical-field-table td {

  padding: 7px 10px;

  border-bottom: 1px solid #c8d2c4;

  color: #1e2c1d;

}



.tactical-field-table tr:last-child td {

  border-bottom: none;

}



.hex-badge {

  display: inline-block;

  font-weight: 700;

  font-size: 10px;

  padding: 2px 6px;

  border-radius: 3px;

  color: #fff;

}

.hex-badge.rd { background: #455a64; }

.hex-badge.md { background: #5d4037; }

.hex-badge.ff { background: #2e7d32; }

.hex-badge.sg { background: #8d6e63; }

.hex-badge.wt { background: #0288d1; }

.hex-badge.cr { background: #f57c00; }

.hex-badge.mf { background: #d32f2f; box-shadow: 0 0 5px rgba(211, 47, 47, 0.5); }



.roe-protocol-box {

  background: rgba(255, 255, 255, 0.6);

  border: 1px solid #c4cec0;

  border-radius: 4px;

  padding: 12px 16px;

  margin-bottom: 14px;

}



.roe-title {

  font-family: var(--font-display);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1px;

  color: #172418;

  margin-bottom: 10px;

}



.roe-grid {

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.roe-card {

  display: flex;

  align-items: baseline;

  gap: 8px;

  font-size: 11.5px;

}



.roe-num {

  font-family: var(--font-mono);

  font-size: 10px;

  font-weight: 700;

  background: #344331;

  color: #e6eee3;

  padding: 2px 5px;

  border-radius: 2px;

}



.roe-name {

  color: #172418;

}



.roe-p {

  color: #2d3e2b;

  line-height: 1.4;

  margin: 0;

  display: inline;

}



/* ─── Right Vertical Tab Dividers ─── */

.notebook-tabs-rail {

  width: 120px;

  display: flex;

  flex-direction: column;

  gap: 6px;

  padding-top: 15px;

  background: transparent;

  z-index: 10;

}



.notebook-tab-btn {

  border: none;

  cursor: pointer;

  text-align: left;

  padding: 12px 10px 12px 12px;

  font-family: var(--font-display);

  font-size: 11px;

  font-weight: 700;

  border-radius: 0 6px 6px 0;

  background: #323f30;

  color: #92a88e;

  transition: all 0.2s ease;

  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);

  display: flex;

  align-items: center;

  gap: 8px;

  border-left: 3px solid transparent;

}



.notebook-tab-btn:hover {

  background: #42523f;

  color: #e5ede3;

  transform: translateX(2px);

}



.notebook-tab-btn.active {

  background: #f3efe1;

  color: #172418;

  margin-right: -4px;

  padding-right: 14px;

  border-left: 4px solid #c2410c;

  box-shadow: 4px 2px 10px rgba(0, 0, 0, 0.4);

}



.tab-idx {

  font-family: var(--font-mono);

  font-size: 9px;

  opacity: 0.7;

}



.tab-txt {

  letter-spacing: 0.5px;

}



/* ─── Bottom Stamped Authentication Footer ─── */

.notebook-footer-bar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 10px 24px;

  background: #1c241b;

  border-top: 2px solid #141b13;

  z-index: 15;

}



.footer-left {

  display: flex;

  align-items: center;

  gap: 14px;

}



.stamp-verified {

  border: 1px solid #388e3c;

  color: #81c784;

  font-size: 9px;

  font-weight: 700;

  padding: 2px 6px;

  border-radius: 2px;

  letter-spacing: 1px;

}



.doc-page-indicator {

  font-size: 10px;

  color: #72826e;

}



.footer-right {

  display: flex;

  align-items: center;

  gap: 6px;

}



.sig-label {

  font-size: 10px;

  color: #859881;

}



.sig-val {

  font-size: 11px;

  font-weight: 700;

  color: #e6ede3;

  letter-spacing: 0.5px;

}











/* ==========================================================================

   COUNTER COLLECTION ALBUM (COIN BINDER DELUXE MODAL)

   ========================================================================== */



.album-backdrop {

  position: fixed;

  inset: 0;

  background: rgba(4, 7, 12, 0.85);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  z-index: 100060;

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 1;

  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;

}



.album-backdrop.hidden {

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

}



/* Padded Leather Binder Body (Open Symmetrical Two-Page Book) */

.album-container {

  display: flex;

  position: relative;

  width: 98vw;

  max-width: 1560px;

  height: 95vh;

  max-height: 950px;

  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 0, 0, 0.7);

  border-radius: 14px;

}



.album-binder {

  flex: 1;

  position: relative;

  display: flex;

  flex-direction: column;

  border-radius: 14px;

  overflow: hidden;

  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7), inset 0 0 0 2px rgba(212, 175, 55, 0.45);

  border: 4px solid #11141a;

  outline: 1px dashed rgba(212, 175, 55, 0.4); /* Authentic perimeter leather stitching */

  outline-offset: -7px;

  transition: background 0.4s ease, border-color 0.4s ease;

}



/* AFU Ukrainian Theme: Deep Navy Leather */

.album-binder.afu-theme {

  background: radial-gradient(circle at 50% 20%, #152238 0%, #0d1624 55%, #070c14 100%);

  border-color: rgba(218, 165, 32, 0.5);

}



/* Russian Armed Forces Theme: Deep Crimson Wine Leather */

.album-binder.ru-theme {

  background: radial-gradient(circle at 50% 20%, #341217 0%, #200b0f 55%, #110507 100%);

  border-color: rgba(220, 150, 40, 0.5);

}



/* Brass Corner Plates */

.corner-gold {

  position: absolute;

  width: 32px;

  height: 32px;

  pointer-events: none;

  z-index: 10;

}

.corner-gold.top-left {

  top: 4px; left: 4px;

  border-top: 3px solid #d4af37;

  border-left: 3px solid #d4af37;

}

.corner-gold.top-right {

  top: 4px; right: 4px;

  border-top: 3px solid #d4af37;

  border-right: 3px solid #d4af37;

}

.corner-gold.bottom-left {

  bottom: 4px; left: 4px;

  border-bottom: 3px solid #d4af37;

  border-left: 3px solid #d4af37;

}

.corner-gold.bottom-right {

  bottom: 4px; right: 4px;

  border-bottom: 3px solid #d4af37;

  border-right: 3px solid #d4af37;

}



/* Gold Header Bar */

.album-header-bar {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 14px 28px;

  background: rgba(0, 0, 0, 0.45);

  border-bottom: 2px solid rgba(212, 175, 55, 0.4);

  box-shadow: 0 4px 15px rgba(0,0,0,0.5);

  z-index: 5;

}



.album-header-left {

  display: flex;

  align-items: center;

  gap: 18px;

}



.album-flag-box {

  width: 58px;

  height: 40px;

  border-radius: 4px;

  overflow: hidden;

  box-shadow: 0 4px 10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.2);

  display: flex;

  align-items: center;

  justify-content: center;

}



.album-flag-box svg {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



.gold-foil-subtitle {

  font-family: 'Cinzel', 'Georgia', serif;

  font-size: 10px;

  letter-spacing: 2px;

  color: #cca44b;

  text-transform: uppercase;

  font-weight: 600;

}



.gold-foil-title {

  margin: 2px 0 0 0;

  font-family: 'Cinzel', 'Times New Roman', serif;

  font-size: 21px;

  letter-spacing: 2.5px;

  background: linear-gradient(135deg, #fff3c4 0%, #dfb858 50%, #997322 100%);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  text-shadow: 0 0 12px rgba(223, 184, 88, 0.35);

  font-weight: 700;

}



.album-meta-sub {

  font-size: 11px;

  color: #a4b3c6;

  letter-spacing: 1px;

  margin-top: 2px;

}

.ru-theme .album-meta-sub {

  color: #d8b4b7;

}



.album-header-right {

  display: flex;

  align-items: center;

  gap: 12px;

}



.btn-album-switch {

  display: flex;

  align-items: center;

  gap: 8px;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(212, 175, 55, 0.6);

  color: #f0d078;

  padding: 8px 16px;

  border-radius: 6px;

  font-family: inherit;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1px;

  cursor: pointer;

  transition: all 0.2s ease;

}

.btn-album-switch:hover {

  background: rgba(212, 175, 55, 0.25);

  color: #fff;

  transform: translateY(-1px);

  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);

}



.btn-album-close {

  background: rgba(220, 53, 69, 0.2);

  border: 1px solid rgba(220, 53, 69, 0.5);

  color: #ff99a4;

  padding: 8px 16px;

  border-radius: 6px;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1px;

  cursor: pointer;

  transition: all 0.2s ease;

}

.btn-album-close:hover {

  background: rgba(220, 53, 69, 0.5);

  color: #fff;

}



/* Category Tabs */

.album-category-tabs {

  display: none !important;

  background: rgba(0, 0, 0, 0.3);

  border-bottom: 2px solid rgba(212, 175, 55, 0.25);

  padding: 4px 20px 0 20px;

  gap: 6px;

  overflow-x: auto;

}



.album-cat-tab {

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 9px 18px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-bottom: none;

  border-top-left-radius: 6px;

  border-top-right-radius: 6px;

  color: #8c9ba9;

  font-family: inherit;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 1px;

  cursor: pointer;

  transition: all 0.2s ease;

}



.album-cat-tab:hover {

  background: rgba(255, 255, 255, 0.1);

  color: #e1e7ec;

}



.album-cat-tab.active {

  background: rgba(212, 175, 55, 0.18);

  border-color: rgba(212, 175, 55, 0.7);

  color: #ffd875;

  font-weight: 700;

  box-shadow: 0 -2px 8px rgba(212, 175, 55, 0.15);

}



/* ==========================================================================

   Two-Page Coin Collection Album (Authentic Vinyl Sleeves & Center Spine Gutter)

   ========================================================================== */

.album-double-page-book {

  flex: 1;

  min-height: 0;

  display: flex;

  flex-direction: row;

  margin: 6px 16px 8px 16px;

  background: rgba(5, 8, 14, 0.75);

  border-radius: 10px;

  border: 1px solid rgba(212, 175, 55, 0.25);

  overflow: hidden;

  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.85);

}



/* Individual Book Leaf (Page) */

.album-book-page {

  flex: 1;

  display: flex;

  flex-direction: column;

  min-height: 0;

  min-width: 0;

  padding: 8px 12px 10px 12px;

  position: relative;

}



.album-book-page.left-page {

  box-shadow: inset -18px 0 25px -10px rgba(0, 0, 0, 0.9);

}



.album-book-page.right-page {

  box-shadow: inset 18px 0 25px -10px rgba(0, 0, 0, 0.9);

}



/* Page Leaf Header */

.page-sheet-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 6px;

  padding-bottom: 4px;

  border-bottom: 1px solid rgba(212, 175, 55, 0.22);

}



.sheet-page-badge {

  background: rgba(212, 175, 55, 0.16);

  border: 1px solid rgba(212, 175, 55, 0.45);

  color: #ffd875;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1px;

  padding: 2px 8px;

  border-radius: 4px;

  text-transform: uppercase;

}



.sheet-page-title {

  font-size: 11px;

  font-weight: 700;

  color: #a4b3c6;

  letter-spacing: 1.5px;

  text-transform: uppercase;

}



/* Clear Heavy-Gauge Vinyl Pocket Sheet */

.plastic-page-sleeve {

  flex: 1;

  min-height: 0;

  position: relative;

  display: flex;

  flex-direction: column;

  background: rgba(0, 0, 0, 0.35);

  border-radius: 6px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  padding: 8px;

  overflow: hidden;

}



.page-sheen-overlay {

  display: none; /* Anti-glare: eradicated sheen layer over coin pockets */

}



/* Center Leather Book Spine Gutter */

.album-center-gutter {

  width: 22px;

  min-width: 22px;

  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.98) 50%, rgba(0, 0, 0, 0.7) 100%);

  display: flex;

  justify-content: center;

  align-items: stretch;

  position: relative;

  border-left: 1px solid rgba(255, 255, 255, 0.06);

  border-right: 1px solid rgba(255, 255, 255, 0.06);

}



.gutter-spine-fold {

  display: flex;

  flex-direction: column;

  justify-content: space-around;

  align-items: center;

  width: 100%;

  padding: 16px 0;

}



.spine-stitch-dot {

  width: 5px;

  height: 5px;

  border-radius: 50%;

  background: #d4af37;

  box-shadow: 0 0 6px rgba(212, 175, 55, 0.7), inset 0 1px 2px rgba(0, 0, 0, 0.8);

}



/* 2 Columns x 3 Rows Coin Pockets Grid */

.coin-pockets-grid-2x3 {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  grid-template-rows: repeat(3, 1fr);

  gap: 8px;

  flex: 1;

  min-height: 0;

  position: relative;

  z-index: 3;

}



/* Individual Transparent Vinyl Pocket Card */

.coin-pocket-card {

  position: relative;

  background: rgba(10, 14, 22, 0.92);

  border: 1.5px solid rgba(255, 255, 255, 0.12);

  border-radius: 8px;

  padding: 6px 10px;

  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.4);

  display: flex;

  flex-direction: row;

  align-items: center;

  gap: 10px;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  overflow: hidden;

  cursor: pointer;

}



.ru-theme .coin-pocket-card {

  background: rgba(20, 8, 11, 0.92);

}



.coin-pocket-card:hover {

  transform: translateY(-2px);

  border-color: rgba(212, 175, 55, 0.7);

  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), 0 6px 18px rgba(212, 175, 55, 0.25);

}



.coin-pocket-card.status-deployed {

  border-color: rgba(255, 170, 0, 0.55);

  background: rgba(26, 20, 10, 0.82);

}



/* Heat-welded vinyl sleeve edges */

.pocket-flap-line {

  position: absolute;

  top: 0; left: 0; right: 0;

  height: 3px;

  background: rgba(255, 255, 255, 0.14);

  pointer-events: none;

}



.pocket-weld-seam {

  position: absolute;

  top: 0; left: 0; right: 0;

  height: 4px;

  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25) 3px, transparent 3px, transparent 6px);

  pointer-events: none;

}



/* High-Contrast Persisted Counter Front Container (Large 3D Near-Zenith Chip) */

.pocket-real-chip-container {

  width: 140px;

  height: 140px;

  min-width: 140px;

  max-width: 140px;

  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  will-change: transform;

  flex-shrink: 0;

}



.coin-pocket-card:hover .pocket-real-chip-container {

  transform: scale(1.05) translateY(-2px);

}



.pocket-real-chip-img {

  width: 100%;

  height: 100%;

  object-fit: contain;

  display: block;

  pointer-events: none;

  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));

  transition: filter 0.2s ease;

}



.coin-pocket-card:hover .pocket-real-chip-img {

  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.85));

}



.pocket-chip-sheen {

  display: none; /* Authentic 3D lighting, bevel and specular reflections are baked directly into the 3D chip render */

}





/* Explicit Tactical Placeholder for Missing Chit Art (Zero Substitution Invariant) */

.pocket-missing-art-placeholder {

  width: 128px;

  height: 128px;

  border-radius: 50%;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  background: radial-gradient(circle, #10151d 30%, #06090e 95%);

  border: 2px dashed rgba(255, 215, 0, 0.45);

  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.65);

  text-align: center;

  padding: 8px;

  box-sizing: border-box;

}



.pocket-missing-art-placeholder.ru {

  border-color: rgba(231, 76, 60, 0.55);

  background: radial-gradient(circle, #1d1012 30%, #0e0608 95%);

}



.missing-art-flag {

  font-size: 20px;

  line-height: 1;

  margin-bottom: 4px;

}



.missing-art-code {

  font-family: 'JetBrains Mono', monospace;

  font-size: 10px;

  font-weight: 800;

  color: #00d2ff;

  letter-spacing: 0.5px;

  max-width: 110px;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

}



.pocket-missing-art-placeholder.ru .missing-art-code {

  color: #ff9999;

}



.missing-art-notice {

  font-family: 'Chakra Petch', sans-serif;

  font-size: 9px;

  font-weight: 800;

  color: #e67e22;

  letter-spacing: 1px;

  margin-top: 4px;

  text-transform: uppercase;

  background: rgba(230, 126, 34, 0.15);

  border: 1px solid rgba(230, 126, 34, 0.35);

  padding: 2px 6px;

  border-radius: 3px;

}



/* Pocket Side Panel: accommodates meta details on top and actions on bottom */

.pocket-side-panel {

  flex: 1;

  min-width: 0;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  height: 100%;

  padding: 4px 0;

  gap: 8px;

}



/* Pocket Meta Data Column */

.pocket-label-strip {

  display: flex;

  flex-direction: column;

  justify-content: flex-start;

  gap: 5px;

}



.pocket-title-row {

  display: flex;

  align-items: flex-start;

  gap: 6px;

}



.pocket-flag-icon {

  font-size: 15px;

  line-height: 1.2;

  flex-shrink: 0;

}



.pocket-unit-name {

  font-size: 13px;

  font-weight: 700;

  color: #f0f4f8;

  letter-spacing: 0.3px;

  line-height: 1.25;

  white-space: normal;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;

}



.pocket-badge-row {

  display: flex;

  align-items: center;

  gap: 6px;

  flex-wrap: wrap;

}



.pocket-role-badge {

  font-size: 9px;

  color: #9cb1c9;

  letter-spacing: 0.5px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  max-width: 140px;

}



.pocket-status-pill {

  font-size: 8px;

  font-weight: 700;

  letter-spacing: 0.8px;

  text-transform: uppercase;

  padding: 2px 6px;

  border-radius: 10px;

  white-space: nowrap;

}



.status-pill-reserve {

  background: rgba(46, 204, 113, 0.18);

  border: 1px solid rgba(46, 204, 113, 0.5);

  color: #2ecc71;

}



.status-pill-deployed {

  background: rgba(243, 156, 18, 0.2);

  border: 1px solid rgba(243, 156, 18, 0.6);

  color: #f39c12;

}



/* Pocket Actions Row at Bottom of Side Panel: Stacked vertically so each button fits completely */

.pocket-actions-bar {

  display: flex;

  flex-direction: column;

  gap: 5px;

  width: 100%;

}



.btn-pocket-action {

  width: 100%;

  padding: 5px 8px;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.5px;

  border-radius: 4px;

  cursor: pointer;

  transition: all 0.2s ease;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 6px;

  font-family: inherit;

  white-space: nowrap;

  box-sizing: border-box;

}



.btn-deploy {

  background: linear-gradient(135deg, rgba(46, 204, 113, 0.25) 0%, rgba(39, 174, 96, 0.4) 100%);

  border: 1px solid rgba(46, 204, 113, 0.6);

  color: #a8f5c8;

}



.btn-deploy:hover {

  background: linear-gradient(135deg, rgba(46, 204, 113, 0.45) 0%, rgba(39, 174, 96, 0.6) 100%);

  color: #fff;

  transform: translateY(-1px);

}



.btn-recall {

  background: linear-gradient(135deg, rgba(230, 126, 34, 0.25) 0%, rgba(211, 84, 0, 0.4) 100%);

  border: 1px solid rgba(230, 126, 34, 0.6);

  color: #ffd09e;

}



.btn-recall:hover {

  background: linear-gradient(135deg, rgba(230, 126, 34, 0.45) 0%, rgba(211, 84, 0, 0.6) 100%);

  color: #fff;

  transform: translateY(-1px);

}



.btn-roll-tray {

  background: rgba(212, 175, 55, 0.15);

  border: 1px solid rgba(212, 175, 55, 0.45);

  color: #f7df94;

}



.btn-roll-tray:hover {

  background: rgba(212, 175, 55, 0.35);

  color: #fff;

  transform: translateY(-1px);

}



.btn-pocket-action:disabled,

.btn-pocket-action.btn-disabled-lock {

  background: rgba(255, 255, 255, 0.05) !important;

  border: 1px solid rgba(255, 255, 255, 0.15) !important;

  color: rgba(255, 255, 255, 0.35) !important;

  cursor: not-allowed !important;

  opacity: 0.55 !important;

  transform: none !important;

  box-shadow: none !important;

  filter: grayscale(0.6) !important;

}



.btn-pocket-action:disabled:hover,

.btn-pocket-action.btn-disabled-lock:hover {

  background: rgba(255, 255, 255, 0.05) !important;

  color: rgba(255, 255, 255, 0.35) !important;

  transform: none !important;

}



/* Empty vinyl sleeve slot (homage to coin collector album) */

.empty-sleeve {

  background: rgba(255, 255, 255, 0.015);

  border: 1.5px dashed rgba(255, 255, 255, 0.1);

  cursor: default;

  justify-content: center;

}



.empty-sleeve-body {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 6px;

  width: 100%;

}



.empty-sleeve-circle {

  width: 90px;

  height: 90px;

  border-radius: 50%;

  border: 2px dashed rgba(255, 255, 255, 0.18);

  display: flex;

  align-items: center;

  justify-content: center;

  color: rgba(255, 255, 255, 0.3);

}



.empty-sleeve-cross {

  font-size: 26px;

  font-weight: 300;

}



.empty-sleeve-label {

  font-size: 10px;

  font-weight: 700;

  color: rgba(255, 255, 255, 0.35);

  letter-spacing: 1px;

  text-transform: uppercase;

}



.empty-sleeve-dim {

  font-size: 8px;

  color: rgba(255, 255, 255, 0.22);

  font-family: monospace;

}



/* Footer Page Flip Bar */

.album-footer-bar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 28px;

  background: rgba(0, 0, 0, 0.5);

  border-top: 2px solid rgba(212, 175, 55, 0.3);

  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);

  z-index: 5;

}



.btn-album-flip {

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(212, 175, 55, 0.5);

  color: #ffd875;

  padding: 8px 18px;

  border-radius: 6px;

  font-family: inherit;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1px;

  cursor: pointer;

  transition: all 0.2s ease;

}

.btn-album-flip:hover:not(:disabled) {

  background: rgba(212, 175, 55, 0.3);

  color: #fff;

  transform: translateY(-1px);

}

.btn-album-flip:disabled {

  opacity: 0.35;

  cursor: not-allowed;

  border-color: rgba(255, 255, 255, 0.15);

  color: #666;

}



.footer-page-meta {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 6px;

}



.album-page-text {

  font-size: 11px;

  font-weight: 700;

  color: #cca44b;

  letter-spacing: 1px;

  text-transform: uppercase;

}



.album-page-dots {

  display: flex;

  gap: 8px;

}



.page-dot {

  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.2);

  cursor: pointer;

  transition: all 0.2s ease;

}



.page-dot:hover {

  background: rgba(255, 255, 255, 0.5);

}



.page-dot.active {

  background: #d4af37;

  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);

  transform: scale(1.25);

}





/* ==========================================================================

   MATCH LOBBY & LIVE TACTICAL ENGINE HUD STYLES

   ========================================================================== */



/* ROW 2: Active Tactical Combat HUD Section */

.match-hud-section {

  display: flex;

  align-items: center;

  gap: 5px;

  background: rgba(8, 14, 22, 0.95);

  border: 1px solid rgba(0, 230, 255, 0.35);

  border-radius: 5px;

  padding: 2px 6px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

  flex-shrink: 1;

  min-width: 0;

}



.match-hud-section.hidden {

  display: none !important;

}



.hud-sub-left {

  display: flex;

  align-items: center;

  gap: 12px;

  flex-shrink: 0;

}



.hud-sub-center {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  flex: 1;

}



.hud-sub-right {

  display: flex;

  align-items: center;

  gap: 8px;

  flex-shrink: 0;

}



/* ─── Tactical Field Scoreboard Flip-Card HUD Widget ─── */

.scoreboard-hud-frame {

  display: flex;

  flex-direction: column;

  gap: 2px;

  background: linear-gradient(180deg, #18221b 0%, #0d1410 100%);

  border: 1px solid #4a5c48;

  border-left: 3px solid #68bb59;

  border-radius: 5px;

  padding: 3px 8px;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.6);

  cursor: pointer;

  transition: transform 0.15s ease, border-color 0.15s ease;

}



.scoreboard-hud-frame:hover {

  transform: translateY(-1px);

  border-color: #00e6ff;

}



.sc-header-mini {

  display: flex;

  align-items: center;

  gap: 5px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 8.5px;

  font-weight: 700;

  color: #94a3b8;

  letter-spacing: 0.8px;

  text-transform: uppercase;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  padding-bottom: 2px;

}



.sc-header-mini .sc-icon {

  font-size: 9px;

}



.sc-body-mini {

  display: flex;

  align-items: center;

  gap: 12px;

}



.sc-turn-block {

  display: flex;

  align-items: center;

  gap: 5px;

}



.sc-badge-label {

  font-family: 'Chakra Petch', sans-serif;

  font-size: 11px;

  font-weight: 700;

  color: #f1f5f9;

  letter-spacing: 0.5px;

}



.flip-digits-wrap {

  display: flex;

  align-items: center;

  gap: 3px;

}



/* Mechanical Flip Card (Split Horizontal Tile with Ring Clips) */

.flip-digit-card {

  position: relative;

  width: 20px;

  height: 28px;

  background: linear-gradient(180deg, #1c2630 0%, #0f161e 100%);

  border: 1px solid #2d3f52;

  border-radius: 3px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-family: 'JetBrains Mono', monospace;

  font-size: 17px;

  font-weight: 800;

  color: #ffffff;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.8);

  overflow: hidden;

  user-select: none;

  perspective: 300px;

}



.flip-digit-card::before {

  content: '';

  position: absolute;

  top: 1px;

  left: 50%;

  transform: translateX(-50%);

  width: 4px;

  height: 3px;

  background: #cbd5e1;

  border-radius: 1px;

  box-shadow: 0 1px 2px rgba(0,0,0,0.8);

  z-index: 5;

}



.flip-digit-card .flip-hinge {

  position: absolute;

  top: 50%;

  left: 0;

  right: 0;

  height: 2px;

  background: #050a0f;

  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);

  z-index: 4;

}



.flip-digit-card.mini {

  width: 17px;

  height: 22px;

  font-size: 13px;

}



@keyframes flipCardDown {

  0% { transform: rotateX(0deg); }

  50% { transform: rotateX(-90deg); filter: brightness(0.6); }

  100% { transform: rotateX(0deg); filter: brightness(1.0); }

}



.flip-digit-card.anim-flip {

  animation: flipCardDown 0.32s cubic-bezier(0.4, 0, 0.2, 1);

}



.sc-turn-max {

  font-family: 'JetBrains Mono', monospace;

  font-size: 10px;

  font-weight: 600;

  color: #64748b;

}



.sc-teams-block {

  display: flex;

  align-items: center;

  gap: 8px;

  border-left: 1px solid rgba(255, 255, 255, 0.15);

  padding-left: 10px;

}



.sc-team-divider {

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  color: rgba(255, 255, 255, 0.2);

}



.sc-team-row {

  display: flex;

  align-items: center;

  gap: 6px;

  padding: 2px 7px;

  border-radius: 4px;

  background: rgba(0, 0, 0, 0.35);

  transition: all 0.2s ease;

}



.sc-team-row.afu {

  border: 1px solid rgba(56, 189, 248, 0.35);

  background: rgba(14, 165, 233, 0.1);

}



.sc-team-row.afu:hover {

  border-color: rgba(56, 189, 248, 0.7);

  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);

}



.sc-team-row.ru {

  border: 1px solid rgba(248, 113, 113, 0.35);

  background: rgba(239, 68, 68, 0.1);

}



.sc-team-row.ru:hover {

  border-color: rgba(248, 113, 113, 0.7);

  box-shadow: 0 0 8px rgba(248, 113, 113, 0.25);

}



.sc-team-row .sc-flag {

  font-size: 13px;

  line-height: 1;

}



.sc-team-row .sc-name {

  font-family: 'Chakra Petch', sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.8px;

}



.sc-team-row.afu .sc-name {

  color: #38bdf8;

}



.sc-team-row.ru .sc-name {

  color: #f87171;

}



.sc-team-row .sc-pts-label {

  font-family: 'JetBrains Mono', monospace;

  font-size: 9px;

  color: #cbd5e1;

  font-weight: 800;

  letter-spacing: 0.5px;

}



.sc-team-row.afu .flip-digit-card.mini {

  border-color: #0284c7;

  color: #38bdf8;

  min-width: 24px;

  width: auto;

  padding: 0 4px;

}



.sc-team-row.ru .flip-digit-card.mini {

  border-color: #dc2626;

  color: #f87171;

  min-width: 24px;

  width: auto;

  padding: 0 4px;

}



.btn-tactical.highlight-scoreboard {

  background: linear-gradient(135deg, rgba(104, 187, 89, 0.25), rgba(46, 125, 50, 0.35));

  border-color: #68bb59;

  color: #a7f3d0;

}



.btn-tactical.highlight-scoreboard:hover {

  background: linear-gradient(135deg, rgba(104, 187, 89, 0.45), rgba(46, 125, 50, 0.55));

  color: #ffffff;

  box-shadow: 0 0 12px rgba(104, 187, 89, 0.4);

}



.btn-tactical.highlight-speed {

  font-family: 'JetBrains Mono', monospace;

  font-weight: 700;

  letter-spacing: 0.5px;

  transition: all 0.2s ease;

}



.btn-tactical.highlight-speed.speed-fast {

  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 116, 144, 0.35));

  border-color: #38bdf8;

  color: #bae6fd;

}



.btn-tactical.highlight-speed.speed-fast:hover {

  background: linear-gradient(135deg, rgba(56, 189, 248, 0.42), rgba(14, 116, 144, 0.55));

  color: #ffffff;

  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);

}



.btn-tactical.highlight-speed.speed-turbo {

  background: linear-gradient(135deg, rgba(232, 121, 249, 0.25), rgba(162, 28, 175, 0.4));

  border-color: #e879f9;

  color: #f5d0fe;

}



.btn-tactical.highlight-speed.speed-turbo:hover {

  background: linear-gradient(135deg, rgba(232, 121, 249, 0.45), rgba(162, 28, 175, 0.6));

  color: #ffffff;

  box-shadow: 0 0 14px rgba(232, 121, 249, 0.55);

}



.btn-tactical.highlight-speed.speed-cinematic {

  background: linear-gradient(135deg, rgba(148, 163, 184, 0.15), rgba(51, 65, 85, 0.3));

  border-color: #64748b;

  color: #cbd5e1;

}



.btn-tactical.highlight-speed.speed-cinematic:hover {

  background: linear-gradient(135deg, rgba(148, 163, 184, 0.3), rgba(51, 65, 85, 0.45));

  color: #ffffff;

}



.match-turn-badge {

  font-family: 'JetBrains Mono', monospace;

  font-size: 12px;

  font-weight: 700;

  color: #00e6ff;

  letter-spacing: 1px;

}



.match-phase-badge {

  font-family: 'JetBrains Mono', monospace;

  font-size: 9.5px;

  font-weight: 800;

  padding: 2px 6px;

  border-radius: 4px;

  text-transform: uppercase;

  letter-spacing: 0.3px;

  white-space: nowrap;

  max-width: 190px;

  overflow: hidden;

  text-overflow: ellipsis;

  box-sizing: border-box;

  flex-shrink: 0;

}



.match-phase-badge.afu {

  background: rgba(14, 66, 122, 0.85);

  color: #64b5f6;

  border: 1px solid rgba(100, 181, 246, 0.5);

}



.match-phase-badge.ru {

  background: rgba(122, 24, 30, 0.85);

  color: #ff8a80;

  border: 1px solid rgba(255, 138, 128, 0.5);

}



.match-phase-badge.my-turn {

  border-color: #00ff88;

  color: #00ff88;

  background: rgba(0, 255, 136, 0.15);

  animation: pulse-turn-active 2.2s infinite ease-in-out;

}



.match-phase-badge.rival-turn {

  opacity: 0.85;

  border-color: #ffd54f;

  color: #ffd54f;

  background: rgba(255, 213, 79, 0.12);

}



@keyframes pulse-turn-active {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 255, 136, 0.35); }
  50% { box-shadow: 0 0 16px rgba(0, 255, 136, 0.75); }
}

/* ─── Unmistakable Active Unit HUD Badge & Coordinates ────────────────────────── */
.hud-active-unit-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(4, 20, 36, 0.94);
  border: 1.5px solid #00e5ff;
  border-radius: 4px;
  padding: 3px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
  animation: pulse-active-unit 2.2s infinite ease-in-out;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.hud-active-unit-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.75);
}

.hud-active-unit-badge.acting {
  border-color: #fbbf24;
  background: rgba(30, 20, 4, 0.94);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.55);
}

.hud-active-unit-badge.pending-focus {
  border-color: #f59e0b;
  background: rgba(45, 25, 4, 0.96);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.65);
  animation: pulse-active-unit 1.5s infinite ease-in-out;
  cursor: pointer;
}

.hud-active-unit-badge.pending-focus:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.95);
  background: rgba(60, 32, 6, 0.98);
}

.hud-active-unit-badge .active-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  display: inline-block;
  flex-shrink: 0;
}

.hud-active-unit-badge.acting .active-badge-pulse {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.hud-active-unit-badge .active-badge-lbl {
  color: #00e5ff;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 10px;
}

.hud-active-unit-badge.acting .active-badge-lbl {
  color: #fbbf24;
}

.hud-active-unit-badge .active-badge-name {
  font-weight: 700;
  color: #f8fafc;
  max-width: 175px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-active-unit-badge .active-badge-coords {
  background: rgba(255, 213, 79, 0.2);
  border: 1px solid rgba(255, 213, 79, 0.65);
  color: #ffd54f;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.hud-active-unit-badge .active-badge-status {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.5);
  text-transform: uppercase;
}

.hud-active-unit-badge .active-badge-status.moved {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
}

.hud-active-unit-badge .active-badge-status.pending {
  background: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.8);
  font-weight: 900;
  letter-spacing: 0.5px;
}

.hud-coord-highlight {
  color: #ffd54f;
  font-weight: 800;
  background: rgba(255, 213, 79, 0.2);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 213, 79, 0.5);
  letter-spacing: 0.3px;
  margin: 0 2px;
}

/* ─── Cycle Next Ready Unit Styling ─── */
.btn-tactical.btn-cycle-next {
  border-color: rgba(168, 85, 247, 0.75) !important;
  color: #e9d5ff !important;
  background: rgba(59, 7, 100, 0.3) !important;
}

.btn-tactical.btn-cycle-next:hover {
  background: rgba(147, 51, 234, 0.4) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6) !important;
  border-color: #c084fc !important;
}

.btn-tactical.btn-cycle-next .cycle-prefix {
  color: #c084fc;
  font-weight: 800;
  margin-right: 4px;
  font-size: 10px;
}

.btn-tactical.btn-cycle-next .cycle-coords {
  color: #fde047;
  font-weight: 800;
  margin-left: 2px;
}

.btn-tactical.btn-cycle-next .cycle-queue-count {
  background: rgba(168, 85, 247, 0.35);
  color: #f3e8ff;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9.5px;
  margin-left: 4px;
  font-weight: 700;
}

@keyframes pulse-active-unit {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.75);
  }
}



.match-score-badge {

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  color: #ffca28;

  font-weight: 700;

}



/* ─── Active Unit / Mid-Activation Prominent Indicators ─── */

.btn-wait-active {

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.45)) !important;

  border-color: #f59e0b !important;

  color: #fef08a !important;

  font-weight: 800 !important;

  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6) !important;

  animation: pulse-wait-amber 1.6s infinite ease-in-out !important;

}



@keyframes pulse-wait-amber {

  0%, 100% {

    box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);

    transform: scale(1.0);

  }

  50% {

    box-shadow: 0 0 18px rgba(245, 158, 11, 0.85);

    transform: scale(1.03);

  }

}



.phase-acting-unit {

  margin-left: 8px;

  padding: 2px 8px;

  background: rgba(245, 158, 11, 0.25);

  border: 1px solid #f59e0b;

  border-radius: 3px;

  color: #fbbf24;

  font-weight: 800;

  letter-spacing: 0.5px;

  animation: pulse-turn-active 1.8s infinite ease-in-out;

}



/* ─── Active Unit / Mid-Activation Prominent Indicators ─── */

.btn-wait-active {

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.45)) !important;

  border-color: #f59e0b !important;

  color: #fef08a !important;

  font-weight: 800 !important;

  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6) !important;

  animation: pulse-wait-amber 1.6s infinite ease-in-out !important;

}



@keyframes pulse-wait-amber {

  0%, 100% {

    box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);

    transform: scale(1.0);

  }

  50% {

    box-shadow: 0 0 18px rgba(245, 158, 11, 0.85);

    transform: scale(1.03);

  }

}



.phase-acting-unit {

  margin-left: 8px;

  padding: 2px 8px;

  background: rgba(245, 158, 11, 0.25);

  border: 1px solid #f59e0b;

  border-radius: 3px;

  color: #fbbf24;

  font-weight: 800;

  letter-spacing: 0.5px;

  animation: pulse-turn-active 1.8s infinite ease-in-out;

}



/* ─── Match Lobby Backdrop & Dialog ─── */

.lobby-backdrop {

  position: fixed;

  inset: 0;

  background-image: 

    linear-gradient(180deg, rgba(5, 10, 18, 0.40) 0%, rgba(5, 10, 18, 0.55) 50%, rgba(2, 6, 12, 0.78) 100%),

    url('/assets/art/scenarios/field_crossroads_outpost.jpg?v=3.0');

  background-size: cover;

  background-position: center center;

  background-repeat: no-repeat;

  z-index: 99999;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: opacity 0.25s ease, visibility 0.25s ease;

  backdrop-filter: blur(2px);

  -webkit-backdrop-filter: blur(2px);

}



.lobby-backdrop.hidden {

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

}



.lobby-dialog {

  width: 95%;

  max-width: 1220px;

  max-height: 92vh;

  background: rgba(9, 16, 26, 0.75);

  border: 1px solid rgba(0, 230, 255, 0.40);

  border-radius: 12px;

  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 230, 255, 0.16);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);

  display: flex;

  flex-direction: column;

  overflow: hidden;

}



.lobby-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 14px 24px;

  background: linear-gradient(90deg, rgba(14, 25, 38, 0.65), rgba(8, 14, 22, 0.65));

  border-bottom: 1px solid rgba(0, 230, 255, 0.25);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

}



.lobby-title-group h2 {

  margin: 4px 0 0 0;

  font-size: 18px;

  color: #fff;

  letter-spacing: 1px;

}



.btn-lobby-close {

  background: transparent;

  border: 1px solid rgba(255, 255, 255, 0.2);

  color: #aaa;

  font-size: 16px;

  width: 32px;

  height: 32px;

  border-radius: 6px;

  cursor: pointer;

  transition: all 0.2s ease;

}



.btn-lobby-close:hover {

  background: rgba(255, 80, 80, 0.2);

  color: #ff5050;

  border-color: #ff5050;

}



.lobby-body {

  padding: 16px 24px;

  display: flex;

  flex-direction: column;

  gap: 16px;

  flex: 1 1 0%;

  min-height: 0;

  overflow-y: auto;

}



.lobby-label {

  display: block;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  font-weight: 800;

  color: #00e6ff;

  letter-spacing: 1px;

  margin-bottom: 8px;

}



/* Scenario Selection Grid & Cards */

.scenario-selector-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;

}



@media (max-width: 900px) {

  .scenario-selector-grid {

    grid-template-columns: 1fr;

  }

}



.scenario-card {

  background: rgba(12, 22, 35, 0.55);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 8px;

  padding: 12px;

  transition: all 0.25s ease;

  cursor: pointer;

  display: flex;

  flex-direction: column;

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

}



.scenario-card:hover {

  background: rgba(16, 30, 48, 0.75);

  border-color: rgba(0, 230, 255, 0.55);

  transform: translateY(-2px);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 230, 255, 0.2);

}



.scenario-art-banner {

  position: relative;

  width: 100%;

  height: 195px;

  border-radius: 6px;

  overflow: hidden;

  margin-bottom: 12px;

  border: 1px solid rgba(0, 230, 255, 0.45);

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 230, 255, 0.22);

}



.scenario-art-img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center center;

  display: block;

  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;

  filter: brightness(1.05) contrast(1.08) saturate(1.12);

}



.scenario-card:hover .scenario-art-img {

  transform: scale(1.04);

  filter: brightness(1.12) contrast(1.12) saturate(1.18);

}



.scenario-art-overlay {

  position: absolute;

  bottom: 0;

  left: 0;

  right: 0;

  padding: 6px 12px;

  background: linear-gradient(180deg, transparent 20%, rgba(6, 12, 20, 0.75) 75%, rgba(6, 12, 20, 0.95) 100%);

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.scenario-art-caption {

  font-family: 'JetBrains Mono', monospace;

  font-size: 9.5px;

  letter-spacing: 1px;

  color: #38bdf8;

  font-weight: 700;

  text-transform: uppercase;

  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);

}



.scenario-art-tag {

  font-family: 'JetBrains Mono', monospace;

  font-size: 8.5px;

  letter-spacing: 0.5px;

  color: #fbbf24;

  background: rgba(251, 191, 36, 0.15);

  border: 1px solid rgba(251, 191, 36, 0.4);

  padding: 1px 5px;

  border-radius: 3px;

  font-weight: 800;

}



.scenario-card.selected {

  border-color: #00e6ff;

  background: rgba(0, 230, 255, 0.08);

  box-shadow: 0 0 16px rgba(0, 230, 255, 0.18);

}



.scenario-card-header {

  display: flex;

  justify-content: space-between;

  margin-bottom: 8px;

}



.scenario-badge {

  background: rgba(255, 179, 0, 0.2);

  border: 1px solid rgba(255, 179, 0, 0.5);

  color: #ffb300;

  font-size: 10px;

  font-weight: 800;

  padding: 2px 6px;

  border-radius: 4px;

  letter-spacing: 0.5px;

}



.scenario-grid-meta {

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  color: #aaa;

}



.scenario-title {

  margin: 0 0 6px 0;

  font-size: 16px;

  color: #ffffff;

}



.scenario-desc {

  margin: 0 0 12px 0;

  font-size: 13px;

  line-height: 1.4;

  color: #a0aec0;

}



.scenario-footer {

  display: flex;

  justify-content: space-between;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

}



.scenario-oob {

  color: #64b5f6;

}



.scenario-vps {

  color: #ffd54f;

}



/* Mode Options Grid */

.mode-options-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;

}



.mode-card {

  background: rgba(12, 22, 35, 0.55);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 8px;

  padding: 10px 14px;

  cursor: pointer;

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  display: flex;

  flex-direction: row;

  align-items: center;

  gap: 14px;

  position: relative;

  overflow: hidden;

  text-align: left;

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

}



.mode-card:hover {

  background: rgba(255, 255, 255, 0.05);

  border-color: rgba(255, 255, 255, 0.3);

  transform: translateY(-2px);

}



.mode-badge-3d {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 48px;

  height: 48px;

  border-radius: 50%;

  overflow: hidden;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.15);

  background: rgba(10, 16, 26, 0.9);

  flex-shrink: 0;

  margin: 0;

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

}



.mode-3d-img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transform: scale(1.05);

  transition: transform 0.25s ease;

}



.mode-card:hover .mode-badge-3d {

  transform: scale(1.06);

}



.mode-card:hover .mode-3d-img {

  transform: scale(1.1);

}



.mode-card.active {

  border-color: #00e6ff;

  background: rgba(0, 230, 255, 0.12);

  box-shadow: 0 0 16px rgba(0, 230, 255, 0.25);

}



.mode-card[data-mode="human_vs_heuristic"].active {

  border-color: #00ff66;

  background: rgba(0, 255, 102, 0.10);

  box-shadow: 0 0 16px rgba(0, 255, 102, 0.25);

}

.mode-card[data-mode="human_vs_heuristic"].active .mode-badge-3d {

  box-shadow: 0 0 20px rgba(0, 255, 102, 0.8), inset 0 0 0 2px rgba(0, 255, 102, 0.95);

  transform: scale(1.08);

}



.mode-card[data-mode="human_vs_ai"].active {

  border-color: #00e6ff;

  background: rgba(0, 230, 255, 0.10);

  box-shadow: 0 0 16px rgba(0, 230, 255, 0.25);

}

.mode-card[data-mode="human_vs_ai"].active .mode-badge-3d {

  box-shadow: 0 0 20px rgba(0, 230, 255, 0.8), inset 0 0 0 2px rgba(0, 230, 255, 0.95);

  transform: scale(1.08);

}



.mode-card[data-mode="ai_vs_ai"].active {

  border-color: #b388ff;

  background: rgba(179, 136, 255, 0.10);

  box-shadow: 0 0 16px rgba(179, 136, 255, 0.25);

}

.mode-card[data-mode="ai_vs_ai"].active .mode-badge-3d {

  box-shadow: 0 0 20px rgba(179, 136, 255, 0.8), inset 0 0 0 2px rgba(179, 136, 255, 0.95);

  transform: scale(1.08);

}



.mode-icon {

  font-size: 24px;

  margin-bottom: 6px;

}



.mode-card-content {

  display: flex;

  flex-direction: column;

  justify-content: center;

  min-width: 0;

  flex: 1;

  text-align: left;

}



.mode-name {

  font-size: 12.5px;

  font-weight: 800;

  color: #fff;

  margin-bottom: 2px;

  line-height: 1.25;

}



.mode-desc {

  font-size: 10.5px;

  color: #94a3b8;

  line-height: 1.35;

  margin: 0;

}



/* Tactical Interface Experience Selector Grid (2 Columns) */

#lobby-experience-selector-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;

}



.exp-card {

  position: relative;

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

}



.exp-card[data-experience="wargame"].active {

  border-color: #00ff66;

  background: rgba(0, 255, 102, 0.10);

  box-shadow: 0 0 16px rgba(0, 255, 102, 0.25);

}

.exp-card[data-experience="wargame"].active .mode-badge-3d {

  box-shadow: 0 0 20px rgba(0, 255, 102, 0.8), inset 0 0 0 2px rgba(0, 255, 102, 0.95);

  transform: scale(1.08);

}



.exp-card[data-experience="xai"].active {

  border-color: #00e6ff;

  background: rgba(0, 230, 255, 0.12);

  box-shadow: 0 0 16px rgba(0, 230, 255, 0.30);

}

.exp-card[data-experience="xai"].active .mode-badge-3d {

  box-shadow: 0 0 20px rgba(0, 230, 255, 0.8), inset 0 0 0 2px rgba(0, 230, 255, 0.95);

  transform: scale(1.08);

}



.exp-card.disabled {

  opacity: 0.40;

  cursor: not-allowed !important;

  filter: grayscale(0.85);

  border-color: rgba(255, 255, 255, 0.08) !important;

  background: rgba(12, 22, 35, 0.30) !important;

  box-shadow: none !important;

  transform: none !important;

}



.exp-card.disabled:hover {

  transform: none !important;

  background: rgba(12, 22, 35, 0.30) !important;

  border-color: rgba(255, 255, 255, 0.08) !important;

  box-shadow: none !important;

}



.exp-card.disabled .mode-badge-3d {

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;

  transform: none !important;

  filter: grayscale(1);

}



.exp-locked-badge {

  display: inline-flex;

  align-items: center;

  gap: 5px;

  font-size: 10px;

  font-weight: 800;

  color: #ffb74d;

  background: rgba(255, 152, 0, 0.14);

  border: 1px solid rgba(255, 152, 0, 0.4);

  border-radius: 4px;

  padding: 3px 8px;

  margin-top: 8px;

  letter-spacing: 0.5px;

  width: fit-content;

  text-transform: uppercase;

}



/* Side Selector Grid */

.side-selector-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

}



.btn-side {

  display: flex;

  align-items: center;

  gap: 12px;

  background: rgba(12, 22, 35, 0.55);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 8px;

  padding: 12px 16px;

  cursor: pointer;

  transition: all 0.2s ease;

  text-align: left;

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

}



.btn-side:hover {

  background: rgba(255, 255, 255, 0.05);

}



.btn-side.active.afu {

  border-color: #00e6ff;

  background: rgba(14, 66, 122, 0.4);

  box-shadow: 0 0 16px rgba(0, 230, 255, 0.25);

}



.btn-side.active.ru {

  border-color: #ff5252;

  background: rgba(122, 24, 30, 0.4);

  box-shadow: 0 0 16px rgba(255, 82, 82, 0.25);

}



.side-flag {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 52px;

  height: 52px;

  border-radius: 50%;

  overflow: hidden;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.15);

  background: rgba(10, 16, 26, 0.9);

  flex-shrink: 0;

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

}



.flag-3d-img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transform: scale(1.05);

}



.btn-side.active.afu .side-flag {

  box-shadow: 0 0 18px rgba(0, 230, 255, 0.75), inset 0 0 0 2px rgba(0, 230, 255, 0.95);

  transform: scale(1.08);

}



.btn-side.active.ru .side-flag {

  box-shadow: 0 0 18px rgba(255, 82, 82, 0.75), inset 0 0 0 2px rgba(255, 82, 82, 0.95);

  transform: scale(1.08);

}



.faction-flag-3d {

  width: 28px;

  height: 28px;

  border-radius: 50%;

  object-fit: cover;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);

  display: block;

}



.side-info {

  display: flex;

  flex-direction: column;

}



.side-name {

  font-size: 13px;

  font-weight: 800;

  color: #ffffff;

}



.side-role {

  font-size: 10px;

  color: #94a3b8;

  margin-top: 2px;

}



/* Lobby Footer */

.lobby-footer {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 14px 24px;

  background: rgba(10, 18, 28, 0.60);

  border-top: 1px solid rgba(0, 230, 255, 0.25);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

}



.engine-status-pill {

  display: flex;

  align-items: center;

  gap: 8px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  color: #4ade80;

}



.status-dot.online {

  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: #4ade80;

  box-shadow: 0 0 8px #4ade80;

}



.btn-start-battle {

  background: linear-gradient(135deg, #00e6ff, #0088cc);

  color: #050a10;

  font-family: 'JetBrains Mono', monospace;

  font-weight: 900;

  font-size: 14px;

  padding: 10px 24px;

  border: none;

  border-radius: 6px;

  cursor: pointer;

  letter-spacing: 1px;

  transition: all 0.2s ease;

  box-shadow: 0 4px 16px rgba(0, 230, 255, 0.35);

}



.btn-start-battle:hover {

  transform: translateY(-1px);

  box-shadow: 0 6px 22px rgba(0, 230, 255, 0.55);

}



/* Battle Alert Banner (Non-Obtrusive Lower-Right Tactical Toast) */

.battle-notification-banner {

  position: fixed;

  bottom: 42px;

  right: 24px;

  left: auto;

  top: auto;

  transform: none;

  background: rgba(10, 16, 25, 0.96);

  border: 1px solid rgba(0, 230, 255, 0.6);

  border-left: 4px solid #00e6ff;

  border-radius: 8px;

  padding: 9px 16px;

  color: #ffffff;

  font-family: 'JetBrains Mono', monospace;

  font-size: 12.5px;

  font-weight: 600;

  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 230, 255, 0.25);

  z-index: 9999;

  display: flex;

  align-items: center;

  gap: 10px;

  max-width: 520px;

  cursor: pointer;

  pointer-events: auto;

  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;

}



.battle-notification-banner:hover {

  border-color: #00e6ff;

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 230, 255, 0.4);

}



.battle-notif-close {

  background: transparent;

  border: none;

  color: rgba(255, 255, 255, 0.45);

  font-size: 13px;

  cursor: pointer;

  padding: 2px 6px;

  margin-left: auto;

  border-radius: 4px;

  line-height: 1;

  transition: all 0.15s ease;

}



.battle-notif-close:hover {

  color: #00e6ff;

  background: rgba(0, 230, 255, 0.15);

}



/* ─── Credits & About Modal ─── */

.credits-dialog {

  width: 92%;

  max-width: 980px;

  max-height: 85vh;

  background: #090e14 !important;

  border-color: rgba(0, 230, 255, 0.45);

  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95), 0 0 32px rgba(0, 230, 255, 0.2);

}



.credits-body {

  overflow-y: auto;

  max-height: calc(85vh - 140px);

  padding: 20px 24px;

  display: flex;

  flex-direction: column;

  gap: 16px;

}



.credits-intro {

  background: rgba(0, 230, 255, 0.05);

  border-left: 3px solid #00e6ff;

  padding: 12px 16px;

  border-radius: 4px;

  color: #c7d2fe;

  font-size: 13px;

  line-height: 1.5;

  font-family: 'JetBrains Mono', monospace;

}



.credits-intro strong {

  color: #ffffff;

}



.credits-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));

  gap: 16px;

}



.credits-card {

  background: rgba(14, 20, 30, 0.95);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 16px;

  display: flex;

  flex-direction: column;

  gap: 12px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

}



.credits-card-header {

  display: flex;

  align-items: center;

  gap: 10px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  padding-bottom: 8px;

}



.credits-card-header .card-icon {

  font-size: 18px;

}



.credits-card-header h3 {

  margin: 0;

  font-size: 14px;

  color: #00e6ff;

  letter-spacing: 0.5px;

  font-family: 'Chakra Petch', sans-serif;

  text-transform: uppercase;

}



.credits-card-body {

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.credit-entry {

  display: flex;

  flex-direction: column;

  gap: 4px;

  padding: 8px 10px;

  background: rgba(10, 16, 24, 0.5);

  border-radius: 6px;

  border: 1px solid rgba(255, 255, 255, 0.04);

}



.credit-track {

  font-size: 13px;

  font-weight: 700;

  color: #ffffff;

  font-family: 'JetBrains Mono', monospace;

}



.credit-meta {

  font-size: 11px;

  color: #94a3b8;

  line-height: 1.4;

  font-family: 'JetBrains Mono', monospace;

}



.credit-meta a {

  color: #38bdf8;

  text-decoration: underline;

  transition: color 0.15s ease;

}



.credit-meta a:hover {

  color: #7dd3fc;

}



.credit-license {

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 10px;

  color: #64748b;

  margin-top: 2px;

  font-family: 'JetBrains Mono', monospace;

}



.license-tag {

  display: inline-block;

  padding: 2px 6px;

  border-radius: 4px;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.5px;

  text-transform: uppercase;

}



.license-tag.cc {

  background: rgba(56, 189, 248, 0.15);

  color: #38bdf8;

  border: 1px solid rgba(56, 189, 248, 0.3);

}



.license-tag.pd {

  background: rgba(74, 222, 128, 0.15);

  color: #4ade80;

  border: 1px solid rgba(74, 222, 128, 0.3);

}



#btn-bgm-toggle.active {

  background: rgba(74, 222, 128, 0.2);

  border-color: #4ade80;

  color: #4ade80;

  box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);

}



/* ==========================================================================

   SIMULATION & AUDIO SETTINGS MODAL

   ========================================================================== */



.settings-modal-overlay {

  position: fixed;

  inset: 0;

  z-index: 99999;

  background: rgba(5, 10, 20, 0.88);

  backdrop-filter: blur(8px);

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 20px;

  animation: settingsFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);

}



.settings-modal-overlay.hidden {

  display: none !important;

}



@keyframes settingsFadeIn {

  from {

    opacity: 0;

    transform: scale(0.97);

  }

  to {

    opacity: 1;

    transform: scale(1);

  }

}



.settings-modal-card {

  width: 100%;

  max-width: 680px;

  max-height: 90vh;

  background: linear-gradient(180deg, #111a2e 0%, #0a0f1d 100%);

  border: 1px solid rgba(0, 230, 255, 0.35);

  border-radius: 12px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 230, 255, 0.15);

  display: flex;

  flex-direction: column;

  overflow: hidden;

  color: #e2e8f0;

}



.settings-modal-header {

  padding: 16px 22px;

  background: rgba(15, 23, 42, 0.95);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  display: flex;

  align-items: center;

  justify-content: space-between;

}



.settings-header-brand {

  display: flex;

  align-items: center;

  gap: 12px;

}



.settings-header-icon {

  font-size: 24px;

}



.settings-header-title h2 {

  margin: 0;

  font-family: 'Chakra Petch', sans-serif;

  font-size: 16px;

  font-weight: 800;

  letter-spacing: 0.06em;

  color: #f8fafc;

}



.settings-header-title span {

  font-family: 'JetBrains Mono', monospace;

  font-size: 11.5px;

  color: #94a3b8;

}



.btn-settings-close {

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.15);

  color: #cbd5e1;

  width: 32px;

  height: 32px;

  border-radius: 6px;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  font-size: 15px;

  transition: all 0.2s;

}



.btn-settings-close:hover {

  background: rgba(239, 68, 68, 0.25);

  border-color: rgba(239, 68, 68, 0.5);

  color: #f87171;

}



.settings-modal-body {

  padding: 20px;

  overflow-y: auto;

  display: flex;

  flex-direction: column;

  gap: 16px;

}



.settings-card-section {

  background: rgba(30, 41, 59, 0.45);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 10px;

  padding: 16px;

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.settings-section-heading {

  display: flex;

  align-items: flex-start;

  gap: 12px;

}



.settings-section-badge {

  font-size: 20px;

}



.settings-section-heading h3 {

  margin: 0 0 2px 0;

  font-family: 'Chakra Petch', sans-serif;

  font-size: 13.5px;

  font-weight: 700;

  color: #f1f5f9;

  letter-spacing: 0.05em;

}



.settings-section-heading p {

  margin: 0;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11.5px;

  color: #94a3b8;

  line-height: 1.4;

}



.settings-lang-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

  margin-top: 4px;

}



.settings-slider-row {

  display: flex;

  flex-direction: column;

  gap: 6px;

  width: 100%;

}



.settings-slider-meta {

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  letter-spacing: 0.05em;

  color: #cbd5e1;

}



.settings-slider-meta strong {

  font-size: 13px;

  color: #38bdf8;

  font-family: 'JetBrains Mono', monospace;

  font-weight: 800;

}



.settings-slider {

  width: 100%;

  accent-color: #38bdf8;

  cursor: pointer;

  height: 6px;

  background: #1e293b;

  border-radius: 3px;

}



.settings-controls-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;

  align-items: center;

}



.settings-toggle-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 10px;

  background: rgba(15, 23, 42, 0.4);

  padding: 10px 12px;

  border-radius: 8px;

  border: 1px solid rgba(255, 255, 255, 0.05);

}



.settings-label {

  font-family: 'Chakra Petch', sans-serif;

  font-size: 12px;

  font-weight: 700;

  color: #e2e8f0;

}



.settings-subtext {

  margin: 2px 0 0 0;

  font-family: 'JetBrains Mono', monospace;

  font-size: 10px;

  color: #94a3b8;

}



.btn-settings-toggle {

  background: rgba(239, 68, 68, 0.15);

  border: 1px solid rgba(239, 68, 68, 0.35);

  color: #fca5a5;

  padding: 6px 14px;

  border-radius: 6px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  font-weight: 800;

  cursor: pointer;

  letter-spacing: 0.04em;

  transition: all 0.2s;

  white-space: nowrap;

}



.btn-settings-toggle.active {

  background: rgba(16, 185, 129, 0.2);

  border-color: rgba(16, 185, 129, 0.5);

  color: #6ee7b7;

  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);

}



.settings-test-deck {

  margin-top: 4px;

  padding-top: 12px;

  border-top: 1px dashed rgba(255, 255, 255, 0.1);

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.settings-deck-label {

  font-family: 'JetBrains Mono', monospace;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.08em;

  color: #94a3b8;

  text-transform: uppercase;

}



.settings-test-buttons {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}



.btn-test-sfx {

  background: rgba(56, 189, 248, 0.1);

  border: 1px solid rgba(56, 189, 248, 0.3);

  color: #bae6fd;

  padding: 6px 11px;

  border-radius: 6px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.15s;

  user-select: none;

}



.btn-test-sfx:hover {

  background: rgba(56, 189, 248, 0.25);

  border-color: #38bdf8;

  color: #ffffff;

  transform: translateY(-1px);

  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);

}



.btn-test-sfx:active {

  transform: translateY(1px);

}



/* Ambience Section */

.settings-ambience-box {

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(56, 189, 248, 0.25);

  border-radius: 8px;

  padding: 14px;

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.settings-ambience-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.settings-ambience-status {

  display: flex;

  align-items: center;

  gap: 8px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11.5px;

  font-weight: 700;

  letter-spacing: 0.04em;

  color: #cbd5e1;

}



.status-dot {

  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: #64748b;

  display: inline-block;

}



.status-dot.playing {

  background: #10b981;

  box-shadow: 0 0 10px #10b981;

}



.btn-ambience-play {

  background: rgba(56, 189, 248, 0.15);

  border: 1px solid rgba(56, 189, 248, 0.4);

  color: #38bdf8;

  padding: 6px 14px;

  border-radius: 6px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11.5px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s;

}



.btn-ambience-play:hover {

  background: rgba(56, 189, 248, 0.3);

  color: #ffffff;

}



.btn-ambience-play.active {

  background: rgba(16, 185, 129, 0.2);

  border-color: rgba(16, 185, 129, 0.5);

  color: #6ee7b7;

}



.settings-ambience-grid {

  display: grid;

  grid-template-columns: 1.25fr 0.75fr;

  gap: 14px;

  align-items: center;

}



.settings-field-group {

  display: flex;

  flex-direction: column;

  gap: 4px;

}



.settings-field-group label {

  font-family: 'JetBrains Mono', monospace;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.05em;

  color: #94a3b8;

}



.settings-select {

  background: #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 6px;

  color: #f8fafc;

  padding: 8px 10px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  outline: none;

  cursor: pointer;

}



.settings-select:focus {

  border-color: #38bdf8;

}



.settings-custom-url-row {

  display: flex;

  gap: 8px;

  margin-top: 4px;

}



.settings-custom-url-row.hidden {

  display: none !important;

}



.settings-custom-input {

  flex: 1;

  background: #090e1a;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 6px;

  color: #f8fafc;

  padding: 6px 10px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

}



.btn-settings-apply {

  background: rgba(168, 85, 247, 0.2);

  border: 1px solid rgba(168, 85, 247, 0.5);

  color: #d8b4fe;

  padding: 6px 12px;

  border-radius: 6px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.2s;

}



.btn-settings-apply:hover {

  background: rgba(168, 85, 247, 0.35);

  color: #ffffff;

}



.settings-modal-footer {

  padding: 14px 22px;

  background: rgba(15, 23, 42, 0.95);

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  display: flex;

  align-items: center;

  justify-content: space-between;

}



.settings-footer-note {

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  color: #64748b;

}



.btn-settings-done {

  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);

  color: #0f172a;

  border: none;

  font-family: 'Chakra Petch', sans-serif;

  font-size: 12px;

  font-weight: 800;

  padding: 8px 18px;

  border-radius: 6px;

  cursor: pointer;

  letter-spacing: 0.04em;

  transition: all 0.2s;

}



.btn-settings-done:hover {

  filter: brightness(1.15);

  transform: translateY(-1px);

}



/* ==========================================================================

   DRONE RECON ISR & TACTICAL ANALYSIS MODAL STYLES

   ========================================================================== */



.btn-drone-isr-action {

  margin-top: 8px;

  width: 100%;

  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(2, 132, 199, 0.4) 100%);

  border: 1px solid rgba(56, 189, 248, 0.6);

  color: #38bdf8;

  font-family: 'Chakra Petch', sans-serif;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.08em;

  padding: 8px 12px;

  border-radius: 4px;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

}



.btn-drone-isr-action:hover {

  background: linear-gradient(135deg, rgba(14, 165, 233, 0.45) 0%, rgba(2, 132, 199, 0.65) 100%);

  border-color: #7dd3fc;

  color: #ffffff;

  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);

  transform: translateY(-1px);

}



.drone-modal-overlay {

  position: fixed;

  inset: 0;

  z-index: 99999;

  background: rgba(3, 7, 18, 0.78);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 1;

  transition: opacity 0.25s ease;

}



.drone-modal-overlay.hidden {

  display: none !important;

  opacity: 0;

  pointer-events: none;

}



.drone-modal-window {

  width: 940px;

  max-width: 96vw;

  max-height: 92vh;

  background: radial-gradient(circle at 50% 0%, #111827 0%, #080d1a 100%);

  border: 1px solid rgba(56, 189, 248, 0.35);

  border-radius: 10px;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(14, 165, 233, 0.25);

  display: flex;

  flex-direction: column;

  overflow: hidden;

  font-family: 'Inter', -apple-system, sans-serif;

  color: #e2e8f0;

}



/* Modal Header */

.drone-modal-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 14px 20px;

  background: rgba(15, 23, 42, 0.85);

  border-bottom: 1px solid rgba(56, 189, 248, 0.2);

}



.drone-header-title {

  display: flex;

  align-items: center;

  gap: 12px;

}



.drone-icon-pulse {

  font-size: 22px;

  animation: dronePulse 2s infinite ease-in-out;

}



@keyframes dronePulse {

  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 4px #38bdf8); }

  50% { opacity: 0.6; transform: scale(0.92); filter: drop-shadow(0 0 1px #0284c7); }

}



.drone-header-texts {

  display: flex;

  flex-direction: column;

}



.drone-badge-title {

  font-family: 'JetBrains Mono', monospace;

  font-size: 9.5px;

  letter-spacing: 0.15em;

  color: #38bdf8;

  font-weight: 700;

  text-transform: uppercase;

}



.drone-modal-header h2 {

  font-family: 'Chakra Petch', sans-serif;

  font-size: 18px;

  font-weight: 800;

  margin: 0;

  color: #f8fafc;

  letter-spacing: 0.04em;

}



.drone-header-telemetry {

  display: flex;

  align-items: center;

  gap: 14px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  background: rgba(0, 0, 0, 0.45);

  padding: 6px 14px;

  border-radius: 6px;

  border: 1px solid rgba(255, 255, 255, 0.08);

}



.drone-telemetry-item {

  color: #94a3b8;

}



.drone-telemetry-item b {

  color: #f1f5f9;

  font-weight: 700;

}



.drone-close-btn {

  background: transparent;

  border: none;

  color: #94a3b8;

  font-size: 24px;

  line-height: 1;

  cursor: pointer;

  padding: 4px 8px;

  border-radius: 4px;

  transition: all 0.2s;

}



.drone-close-btn:hover {

  color: #ef4444;

  background: rgba(239, 68, 68, 0.15);

}



/* Modal Body: 2 Columns */

.drone-modal-body {

  display: grid;

  grid-template-columns: 480px 1fr;

  gap: 18px;

  padding: 18px 20px;

  overflow-y: auto;

  max-height: calc(92vh - 70px);

}



@media (max-width: 900px) {

  .drone-modal-body {

    grid-template-columns: 1fr;

  }

}



/* Left Column: Synthetic Sensor Feed */

.drone-sensor-column {

  display: flex;

  flex-direction: column;

  gap: 10px;

}



.drone-canvas-wrapper {

  position: relative;

  width: 480px;

  height: 420px;

  background: #020617;

  border: 1px solid rgba(56, 189, 248, 0.4);

  border-radius: 8px;

  overflow: hidden;

  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);

}



#drone-sensor-canvas {

  width: 100%;

  height: 100%;

  display: block;

}



/* CRT Scanlines Overlay */

.drone-crt-scanlines {

  position: absolute;

  inset: 0;

  pointer-events: none;

  background: linear-gradient(

    rgba(18, 16, 16, 0) 50%, 

    rgba(0, 0, 0, 0.28) 50%

  ), linear-gradient(

    90deg,

    rgba(255, 0, 0, 0.03),

    rgba(0, 255, 0, 0.01),

    rgba(0, 0, 255, 0.03)

  );

  background-size: 100% 4px, 6px 100%;

  z-index: 10;

}



/* Sensor Mode Selector Buttons */

.drone-sensor-controls {

  position: absolute;

  top: 10px;

  left: 10px;

  display: flex;

  gap: 6px;

  z-index: 20;

}



.btn-sensor-mode {

  background: rgba(15, 23, 42, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.2);

  color: #94a3b8;

  font-family: 'JetBrains Mono', monospace;

  font-size: 10px;

  font-weight: 700;

  padding: 4px 9px;

  border-radius: 4px;

  cursor: pointer;

  letter-spacing: 0.05em;

  transition: all 0.15s ease;

}



.btn-sensor-mode:hover {

  border-color: #38bdf8;

  color: #ffffff;

}



.btn-sensor-mode.active {

  background: rgba(14, 165, 233, 0.35);

  border-color: #38bdf8;

  color: #38bdf8;

  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);

}



/* HUD Overlay Corners and Reticles */

.drone-hud-overlay {

  position: absolute;

  inset: 0;

  pointer-events: none;

  z-index: 15;

}



.drone-hud-corner {

  position: absolute;

  color: #38bdf8;

  font-family: 'JetBrains Mono', monospace;

  font-size: 16px;

  font-weight: 900;

  line-height: 1;

}



.drone-hud-corner.tl { top: 12px; right: 12px; }

.drone-hud-corner.tr { top: 12px; left: 12px; }

.drone-hud-corner.bl { bottom: 28px; left: 12px; }

.drone-hud-corner.br { bottom: 28px; right: 12px; }



.drone-hud-reticle {

  position: absolute;

  top: 50%;

  left: 50%;

  width: 50px;

  height: 50px;

  transform: translate(-50%, -50%);

  border: 1px dashed rgba(56, 189, 248, 0.55);

  border-radius: 50%;

}



.drone-hud-reticle::after {

  content: '';

  position: absolute;

  top: 50%;

  left: 50%;

  width: 6px;

  height: 6px;

  background: #38bdf8;

  border-radius: 50%;

  transform: translate(-50%, -50%);

}



.drone-hud-coords {

  position: absolute;

  bottom: 8px;

  left: 12px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 9.5px;

  color: rgba(56, 189, 248, 0.85);

  letter-spacing: 0.08em;

}



.drone-sensor-legend {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 16px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 10px;

  color: #94a3b8;

}



.legend-item {

  display: flex;

  align-items: center;

  gap: 5px;

}



.legend-dot {

  width: 8px;

  height: 8px;

  border-radius: 50%;

  display: inline-block;

}



.legend-dot.enemy { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.legend-dot.mine { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.legend-dot.tree { background: #10b981; }



/* Right Column: Tactical Analysis & Debrief */

.drone-analysis-column {

  display: flex;

  flex-direction: column;

  gap: 14px;

}



.drone-section {

  background: rgba(15, 23, 42, 0.6);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 6px;

  padding: 10px 14px;

}



.drone-section-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 8px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 10.5px;

  font-weight: 700;

  color: #94a3b8;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  padding-bottom: 4px;

}



.drone-badge-count {

  background: rgba(239, 68, 68, 0.2);

  border: 1px solid rgba(239, 68, 68, 0.5);

  color: #fca5a5;

  font-size: 10px;

  padding: 1px 6px;

  border-radius: 10px;

}



.drone-sub-tag {

  background: rgba(56, 189, 248, 0.15);

  color: #38bdf8;

  font-size: 9.5px;

  padding: 1px 5px;

  border-radius: 4px;

}



/* Contacts Container */

.drone-contacts-container {

  display: flex;

  flex-direction: column;

  gap: 6px;

  max-height: 110px;

  overflow-y: auto;

}



.drone-contact-item {

  display: flex;

  align-items: center;

  justify-content: space-between;

  background: rgba(0, 0, 0, 0.35);

  border: 1px solid rgba(255, 255, 255, 0.05);

  border-left: 3px solid #ef4444;

  padding: 6px 10px;

  border-radius: 4px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 10.5px;

}



.drone-contact-main {

  display: flex;

  align-items: center;

  gap: 8px;

}



.drone-contact-badge {

  color: #ef4444;

  font-weight: 800;

}



.drone-contact-coords {

  color: #94a3b8;

  font-size: 9.5px;

}



.drone-contact-threat {

  font-size: 9.5px;

  padding: 2px 6px;

  border-radius: 3px;

  font-weight: 700;

  text-transform: uppercase;

}



.threat-high { background: rgba(239, 68, 68, 0.25); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.5); }

.threat-medium { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.5); }

.threat-low { background: rgba(16, 185, 129, 0.25); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.5); }



/* Analysis Buttons Grid */

.drone-analysis-buttons-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 8px;

}



.btn-drone-analysis {

  display: flex;

  align-items: center;

  gap: 9px;

  background: rgba(30, 41, 59, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.09);

  border-radius: 6px;

  padding: 8px 10px;

  cursor: pointer;

  text-align: left;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

}



.btn-drone-analysis:hover {

  background: rgba(51, 65, 85, 0.85);

  border-color: rgba(56, 189, 248, 0.5);

  transform: translateY(-1px);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

}



.btn-drone-analysis.active {

  border-color: #38bdf8;

  background: rgba(14, 165, 233, 0.25);

  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);

}



.analysis-btn-icon {

  font-size: 18px;

  flex-shrink: 0;

}



.analysis-btn-info {

  display: flex;

  flex-direction: column;

}



.analysis-btn-info strong {

  font-family: 'Chakra Petch', sans-serif;

  font-size: 11px;

  color: #f1f5f9;

  letter-spacing: 0.03em;

}



.analysis-btn-info small {

  font-family: 'Inter', sans-serif;

  font-size: 9.5px;

  color: #94a3b8;

  line-height: 1.2;

}



/* Debrief Box */

.debrief-section {

  flex: 1;

  display: flex;

  flex-direction: column;

}



.drone-debrief-status {

  font-family: 'JetBrains Mono', monospace;

  font-size: 9.5px;

  color: #38bdf8;

  font-weight: 700;

  letter-spacing: 0.05em;

}



.drone-debrief-box {

  min-height: 95px;

  background: rgba(0, 0, 0, 0.45);

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 4px;

  padding: 10px 12px;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11px;

  line-height: 1.45;

  color: #cbd5e1;

}



.drone-debrief-placeholder {

  color: #64748b;

  font-style: italic;

  font-size: 10.5px;

  display: flex;

  align-items: center;

  justify-content: center;

  height: 100%;

}



.drone-debrief-headline {

  color: #f8fafc;

  font-weight: 700;

  margin-bottom: 6px;

  font-size: 11.5px;

}



.drone-debrief-text {

  color: #94a3b8;

  margin-bottom: 6px;

}



.drone-debrief-rec {

  background: rgba(14, 165, 233, 0.15);

  border-left: 2px solid #38bdf8;

  padding: 4px 8px;

  color: #7dd3fc;

  font-size: 10.5px;

}









/* ═══════════════════════════════════════════════════════════════════

   DIE ICON BADGE — Visual polyhedral die icons in HUD (replaces text)

   ═══════════════════════════════════════════════════════════════════ */

.die-icon-badge {

  display: inline-flex;

  flex-direction: row;

  align-items: center;

  justify-content: center;

  padding: 1px 5px;

  height: 18px;

  box-sizing: border-box;

  border-radius: 3px;

  font-size: 8.5px;

  line-height: 1;

  gap: 3px;

  margin: 1px 2px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  cursor: help;

  background: rgba(14, 20, 28, 0.92);

  border-left: 3px solid var(--die-color, #444);

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);

  transition: transform 0.12s ease, box-shadow 0.12s ease;

  vertical-align: middle;

}



.die-icon-badge:hover {

  transform: scale(1.08) translateY(-1px);

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);

  border-color: rgba(255, 255, 255, 0.4);

}



.die-icon-badge svg {

  display: inline-block;

  vertical-align: middle;

  flex-shrink: 0;

}



.die-icon-badge .die-badge-sym {

  font-size: 8.5px;

  line-height: 1;

}



.die-icon-badge .die-badge-label {

  font-size: 7.5px;

  font-family: 'JetBrains Mono', 'Courier New', monospace;

  font-weight: 800;

  color: #ffffff;

  letter-spacing: 0.03em;

  text-transform: uppercase;

}



.die-icon-badge small {

  font-size: 7px;

  font-family: 'JetBrains Mono', 'Courier New', monospace;

  color: rgba(255, 255, 255, 0.82);

  letter-spacing: 0.02em;

}



/* ═══════════════════════════════════════════════════════════════════

   WARGAME REFERENCE TABLES MODAL — Classic Cartoon Wargame Style

   ═══════════════════════════════════════════════════════════════════ */

.wgt-backdrop {

  position: fixed;

  inset: 0;

  background: radial-gradient(circle at center, rgba(14, 18, 24, 0.76) 0%, rgba(5, 8, 12, 0.94) 80%),

              url('/assets/art/scenarios/tactical_command_tent_briefing.jpg') center / cover no-repeat;

  z-index: 9900;

  display: flex;

  align-items: center;

  justify-content: center;

  backdrop-filter: blur(4px);

}

.wgt-backdrop.hidden { display: none !important; }



/* ─── Wooden reference table panel ─── */

.wgt-panel {

  background:

    repeating-linear-gradient(

      92deg,

      transparent 0px, transparent 3px,

      rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px

    ),

    repeating-linear-gradient(

      180deg,

      transparent 0px, transparent 18px,

      rgba(255,255,255,0.04) 18px, rgba(255,255,255,0.04) 19px

    ),

    linear-gradient(175deg, #6b3c18 0%, #4a2609 30%, #5c3015 60%, #3d1f08 100%);

  border: 5px solid #2a1205;

  border-radius: 6px;

  box-shadow:

    0 0 0 2px #c8861a,

    6px 6px 0 #1a0a02,

    0 20px 60px rgba(0,0,0,0.7);

  width: min(96vw, 980px);

  max-height: 88vh;

  display: flex;

  flex-direction: column;

  font-family: 'JetBrains Mono', 'Courier New', monospace;

  overflow: hidden;

}



.wgt-header {

  background:

    repeating-linear-gradient(

      91deg,

      transparent 0px, transparent 5px,

      rgba(0,0,0,0.08) 5px, rgba(0,0,0,0.08) 6px

    ),

    linear-gradient(180deg, #8b5120 0%, #5c2f0a 50%, #3d1f08 100%);

  color: #ffe8b0;

  padding: 11px 18px;

  display: flex;

  align-items: center;

  gap: 10px;

  border-bottom: 3px solid #c8861a;

  flex-wrap: wrap;

  box-shadow: inset 0 1px 0 rgba(255,200,100,0.25);

}

.wgt-title-stamp {

  font-size: 14px;

  font-weight: 900;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: #ffe066;

  flex: 1;

  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);

}

.wgt-subtitle {

  font-size: 10px;

  color: #c8a060;

  letter-spacing: 0.12em;

}

.wgt-close-btn {

  background: #7a1a00;

  color: #ffe8b0;

  border: 2px solid #cc3300;

  border-radius: 3px;

  padding: 5px 12px;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.06em;

  cursor: pointer;

  font-family: inherit;

  transition: background 0.15s;

  box-shadow: 2px 2px 0 #3a0a00;

}

.wgt-close-btn:hover { background: #aa2200; }



.wgt-tabs {

  display: flex;

  gap: 0;

  background:

    repeating-linear-gradient(

      93deg,

      transparent 0px, transparent 4px,

      rgba(0,0,0,0.1) 4px, rgba(0,0,0,0.1) 5px

    ),

    linear-gradient(180deg, #3d2008 0%, #2a1205 100%);

  border-bottom: 3px solid #c8861a;

}

.wgt-tab {

  background: transparent;

  color: #c8a060;

  border: none;

  border-right: 2px solid #5a3010;

  padding: 8px 18px;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 0.06em;

  cursor: pointer;

  font-family: inherit;

  text-transform: uppercase;

  transition: background 0.15s, color 0.15s;

}

.wgt-tab:hover { background: rgba(200,134,26,0.18); color: #ffe066; }

.wgt-tab.active {

  background:

    repeating-linear-gradient(

      92deg,

      transparent 0px, transparent 3px,

      rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px

    ),

    linear-gradient(180deg, #d4a55a 0%, #b8853c 100%);

  color: #1a0a02;

  border-bottom: 3px solid #d4a55a;

  margin-bottom: -3px;

  font-weight: 900;

}



/* ─── Body: light pine plank surface ─── */

.wgt-body {

  overflow-y: auto;

  flex: 1;

  padding: 14px 16px;

  background:

    repeating-linear-gradient(

      88deg,

      transparent 0px, transparent 8px,

      rgba(120,70,20,0.04) 8px, rgba(120,70,20,0.04) 9px,

      transparent 9px, transparent 22px,

      rgba(80,40,10,0.03) 22px, rgba(80,40,10,0.03) 23px

    ),

    repeating-linear-gradient(

      180deg,

      transparent 0px, transparent 40px,

      rgba(160,100,40,0.05) 40px, rgba(160,100,40,0.05) 41px

    ),

    linear-gradient(175deg, #f0deb0 0%, #e8d098 40%, #f5e0b0 70%, #e0c890 100%);

}



.wgt-table-section { display: block; }

.wgt-table-section.hidden { display: none; }



/* ─── Section title: carved wood label ─── */

.wgt-section-title {

  font-size: 13px;

  font-weight: 900;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  color: #2a1205;

  background:

    repeating-linear-gradient(

      91deg,

      transparent 0px, transparent 5px,

      rgba(0,0,0,0.06) 5px, rgba(0,0,0,0.06) 6px

    ),

    linear-gradient(180deg, #c8861a 0%, #a06814 50%, #8a5810 100%);

  border: 3px solid #2a1205;

  border-radius: 3px;

  padding: 6px 14px;

  margin-bottom: 10px;

  display: inline-block;

  box-shadow: 3px 3px 0 #2a1205, inset 0 1px 0 rgba(255,220,100,0.3);

  text-shadow: 0 1px 1px rgba(255,200,80,0.4);

}



/* ─── Main wargame table: dark oak frame, pine interior ─── */

.wgt-table {

  width: 100%;

  border-collapse: collapse;

  font-size: 11.5px;

  border: 3px solid #2a1205;

  box-shadow: 4px 4px 0 #5a3010;

}

.wgt-table thead tr {

  background:

    repeating-linear-gradient(

      92deg,

      transparent 0px, transparent 4px,

      rgba(0,0,0,0.1) 4px, rgba(0,0,0,0.1) 5px

    ),

    linear-gradient(180deg, #5c3015 0%, #3d1f08 100%);

  color: #ffe066;

}

.wgt-table thead th {

  padding: 7px 10px;

  text-align: left;

  font-size: 11px;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  border-right: 2px solid #7a4a18;

  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);

}

.wgt-table tbody td {

  padding: 6px 10px;

  border: 1px solid #c8a060;

  color: #1a0a02;

  vertical-align: middle;

}

.wgt-table tbody tr:hover td { background: rgba(200,134,26,0.15); }

.wgt-table tbody tr.alt td {

  background:

    repeating-linear-gradient(

      90deg,

      transparent 0px, transparent 12px,

      rgba(120,70,20,0.04) 12px, rgba(120,70,20,0.04) 13px

    ),

    rgba(160,100,40,0.07);

}



/* Row color accents - High Contrast & Sharp Military Palette */

.row-grass td:first-child { color: #1b5e20 !important; font-weight: 800; }

.row-forest td:first-child { color: #0d4a13 !important; font-weight: 800; }

.row-urban td:first-child { color: #4e342e !important; font-weight: 800; }

.row-mud td:first-child { color: #5d4037 !important; font-weight: 800; }

.row-river td:first-child { color: #01579b !important; font-weight: 800; }

.row-hill td:first-child { color: #3e2723 !important; font-weight: 800; }

.row-trench td:first-child { color: #37474f !important; font-weight: 800; }

.row-mine td:first-child { color: #b71c1c !important; font-weight: 800; }

.row-kinetic td:first-child { color: #b71c1c !important; font-weight: 800; }

.row-heat td:first-child { color: #4a148c !important; font-weight: 800; }

.row-thermobaric td:first-child { color: #bf360c !important; font-weight: 800; }

.row-autocannon td:first-child { color: #7f5100 !important; font-weight: 800; }

.row-era td:first-child { color: #1b5e20 !important; font-weight: 800; }

.row-artillery td:first-child { color: #b71c1c !important; font-weight: 800; }

.row-ew td:first-child { color: #006064 !important; font-weight: 800; }

.row-drone td:first-child { color: #0d47a1 !important; font-weight: 800; }

.row-melee td:first-child { color: #880e4f !important; font-weight: 800; }

.row-vet td:first-child { color: #1b5e20 !important; font-weight: 800; }

.row-rookie td:first-child { color: #b71c1c !important; font-weight: 800; }

.row-suppress td:first-child { color: #e65100 !important; font-weight: 800; }

.row-mobilekill td:first-child { color: #880e4f !important; font-weight: 800; }

.row-flanked td:first-child { color: #b71c1c !important; font-weight: 800; }

.row-elevated td:first-child { color: #0d47a1 !important; font-weight: 800; }

.row-night td:first-child { color: #1a237e !important; font-weight: 800; }

.row-smoke td:first-child { color: #37474f !important; font-weight: 800; }

.row-support td:first-child { color: #2e7d32 !important; font-weight: 800; }

.row-concealed td:first-child { color: #1b5e20 !important; font-weight: 800; }



/* Dedicated Dice Badge Cell in Reference Tables (High Visibility Contrast) */

.wgt-table tbody td.dice-cell,

.wgt-table tbody tr.alt td.dice-cell,

.wgt-table td.dice-cell {

  font-weight: 900 !important;

  text-align: center !important;

  background: linear-gradient(180deg, #2b180a 0%, #160a03 100%) !important;

  color: #ffd700 !important;

  border: 1.5px solid #a06814 !important;

  border-radius: 4px !important;

  letter-spacing: 0.08em !important;

  padding: 4px 10px !important;

  font-size: 12px !important;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 6px rgba(255, 215, 0, 0.45) !important;

  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 220, 100, 0.25) !important;

  display: table-cell;

  vertical-align: middle !important;

}



.wgt-table tbody td:not(:first-child) {

  text-align: center;

  font-variant-numeric: tabular-nums;

  font-weight: 700;

}



/* ─── Dice Chart Cards ─── */

.wgt-dice-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

  gap: 12px;

  margin-top: 8px;

}

.wgt-die-card {

  border: 3px solid #1a1208;

  border-radius: 4px;

  background: #fdf6dc;

  padding: 10px;

  box-shadow: 3px 3px 0 var(--dc, #444);

  display: flex;

  flex-direction: column;

  gap: 5px;

}

.wgt-die-shape {

  width: 54px;

  height: 54px;

  margin: 0 auto 4px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 14px;

  font-weight: 900;

  color: #fff;

  background: var(--dc, #444);

  border: 2px solid #1a1208;

  box-shadow: 2px 2px 0 #1a1208;

  letter-spacing: 0.06em;

}

.wgt-d6  { clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%); }

.wgt-d8  { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }

.wgt-d10 { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); }

.wgt-d12 { clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }



.wgt-die-name {

  font-size: 11px;

  font-weight: 900;

  text-transform: uppercase;

  color: #1a1208;

  letter-spacing: 0.06em;

  text-align: center;

}

.wgt-die-desc {

  font-size: 10px;

  color: #3a2a00;

  text-align: center;

  line-height: 1.4;

}

.wgt-die-faces {

  font-size: 9px;

  font-weight: 700;

  color: var(--dc, #444);

  text-align: center;

  border-top: 1px solid #8b6914;

  padding-top: 4px;

  letter-spacing: 0.04em;

}



.wgt-footer {

  background: #1a1208;

  color: #6a5a30;

  font-size: 9px;

  letter-spacing: 0.12em;

  text-align: center;

  padding: 6px;

  border-top: 2px solid #8b6914;

}



/* ─── Tactical Attack Mode Selector Modal ─── */

.attack-selector-backdrop {

  position: fixed;

  inset: 0;

  z-index: 100050;

  background: rgba(3, 7, 18, 0.78);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 1;

  transition: opacity 0.2s ease;

}



.attack-selector-backdrop.hidden {

  display: none !important;

  opacity: 0;

  pointer-events: none;

}



.attack-selector-card {

  width: 520px;

  max-width: 94vw;

  background: radial-gradient(circle at 50% 0%, #151f32 0%, #090e18 100%);

  border: 1.5px solid rgba(56, 189, 248, 0.45);

  border-radius: 12px;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.2);

  display: flex;

  flex-direction: column;

  overflow: hidden;

  font-family: 'Inter', -apple-system, sans-serif;

  color: #e2e8f0;

  animation: attackModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);

}



@keyframes attackModalPop {

  0% { transform: scale(0.92); opacity: 0; }

  100% { transform: scale(1); opacity: 1; }

}



.attack-selector-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 16px 20px;

  background: rgba(15, 23, 42, 0.9);

  border-bottom: 1px solid rgba(56, 189, 248, 0.25);

}



.attack-selector-title {

  display: flex;

  align-items: center;

  gap: 12px;

}



.attack-selector-icon {

  font-size: 24px;

  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));

}



.attack-selector-title h3 {

  margin: 0;

  font-size: 15px;

  font-weight: 800;

  letter-spacing: 0.08em;

  color: #38bdf8;

  text-transform: uppercase;

}



.attack-selector-subtitle {

  margin: 3px 0 0 0;

  font-size: 11px;

  color: #94a3b8;

  letter-spacing: 0.02em;

}



.attack-selector-close {

  background: none;

  border: none;

  color: #94a3b8;

  font-size: 24px;

  cursor: pointer;

  line-height: 1;

  padding: 4px 8px;

  border-radius: 4px;

  transition: all 0.15s ease;

}



.attack-selector-close:hover {

  color: #f43f5e;

  background: rgba(244, 63, 94, 0.15);

}



.attack-selector-options {

  padding: 18px 20px;

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.attack-option-btn {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 14px 16px;

  background: rgba(30, 41, 59, 0.7);

  border: 1.5px solid rgba(148, 163, 184, 0.25);

  border-radius: 8px;

  cursor: pointer;

  color: #f8fafc;

  text-align: left;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;

  overflow: hidden;

}



.attack-option-btn::before {

  content: '';

  position: absolute;

  left: 0;

  top: 0;

  bottom: 0;

  width: 5px;

  background: var(--option-color, #38bdf8);

}



.attack-option-btn:hover {

  background: rgba(51, 65, 85, 0.9);

  border-color: var(--option-color, #38bdf8);

  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--option-glow, rgba(56, 189, 248, 0.3));

}



.attack-option-main {

  display: flex;

  flex-direction: column;

  gap: 4px;

  margin-left: 6px;

}



.attack-option-header-row {

  display: flex;

  align-items: center;

  gap: 8px;

}



.attack-option-name {

  font-size: 13px;

  font-weight: 800;

  letter-spacing: 0.05em;

  color: #f1f5f9;

}



.attack-option-badge {

  font-size: 10px;

  font-weight: 700;

  padding: 2px 6px;

  border-radius: 4px;

  background: rgba(0, 0, 0, 0.4);

  border: 1px solid var(--option-color, #38bdf8);

  color: var(--option-color, #38bdf8);

}



.attack-option-desc {

  font-size: 11px;

  color: #94a3b8;

}



.attack-option-dice-pool {

  display: flex;

  align-items: center;

  gap: 4px;

  margin-left: 12px;

}



.attack-selector-footer {

  padding: 12px 20px;

  background: rgba(15, 23, 42, 0.7);

  border-top: 1px solid rgba(148, 163, 184, 0.15);

  display: flex;

  justify-content: flex-end;

}



.attack-selector-cancel-btn {

  background: rgba(244, 63, 94, 0.12);

  border: 1px solid rgba(244, 63, 94, 0.35);

  color: #f43f5e;

  padding: 8px 16px;

  border-radius: 6px;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.06em;

  cursor: pointer;

  transition: all 0.15s ease;

}



.attack-selector-cancel-btn:hover {

  background: rgba(244, 63, 94, 0.25);

  border-color: #f43f5e;

}



/* Interactive Inspector HUD Weapon Badges */

.attack-type-badges .attack-type-badge {

  cursor: pointer;

  transition: all 0.2s ease;

  user-select: none;

}



.attack-type-badges .attack-type-badge:hover {

  transform: translateY(-1px);

  filter: brightness(1.2);

  box-shadow: 0 0 8px currentColor;

}



.attack-type-badges .attack-type-badge.selected {

  outline: 2px solid #38bdf8;

  outline-offset: 1px;

  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85);

  font-weight: 800;

}





/* ==========================================================================

   EXPLAINABLE AI (XAI) & COGNITION LAB STYLING (Dual Profile: Wargame / XAI)

   ========================================================================== */



/* Top Ribbon Profile Toggle Button */

.btn-xai-profile-pill {

  background: rgba(147, 51, 234, 0.18);

  border: 1px solid rgba(168, 85, 247, 0.5);

  color: #c084fc;

  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);

  font-weight: 700;

  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

}



.btn-xai-profile-pill:hover {

  background: rgba(147, 51, 234, 0.35);

  border-color: #d8b4fe;

  color: #f3e8ff;

  box-shadow: 0 0 16px rgba(192, 132, 252, 0.45);

  transform: translateY(-1px);

}



.btn-xai-profile-pill.active-xai {

  background: linear-gradient(135deg, rgba(147, 51, 234, 0.4) 0%, rgba(59, 130, 246, 0.4) 100%);

  border-color: #38bdf8;

  color: #38bdf8;

  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5), inset 0 0 10px rgba(168, 85, 247, 0.3);

  animation: pulse-xai-glow 2.5s infinite alternate;

}



@keyframes pulse-xai-glow {

  0% { box-shadow: 0 0 12px rgba(56, 189, 248, 0.35); }

  100% { box-shadow: 0 0 24px rgba(168, 85, 247, 0.65), 0 0 6px rgba(56, 189, 248, 0.8); }

}



/* Modal Backdrop */

.xai-modal-backdrop {

  position: fixed;

  inset: 0;

  background: rgba(4, 7, 12, 0.82);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  z-index: 99999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 24px;

  box-sizing: border-box;

}



.xai-modal-backdrop.hidden {

  display: none !important;

}



/* Modal Panel Container */

.xai-modal-panel {

  width: 95vw;

  max-width: 1280px;

  max-height: 90vh;

  background: #090e17;

  border: 1px solid rgba(168, 85, 247, 0.4);

  border-radius: 10px;

  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(147, 51, 234, 0.25);

  display: flex;

  flex-direction: column;

  overflow: hidden;

  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);

  color: #e2e8f0;

}



/* Modal Header */

.xai-modal-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 16px 24px;

  background: linear-gradient(90deg, #0f172a 0%, #1e1138 100%);

  border-bottom: 1px solid rgba(168, 85, 247, 0.3);

  gap: 16px;

  flex-wrap: wrap;

}



.xai-header-title-box {

  display: flex;

  flex-direction: column;

  gap: 4px;

}



.xai-header-badge {

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 700;

  color: #c084fc;

  letter-spacing: 1.5px;

  text-transform: uppercase;

}



.xai-header-title {

  margin: 0;

  font-size: 19px;

  font-weight: 800;

  letter-spacing: 0.5px;

  color: #f8fafc;

}



.xai-header-sub {

  font-size: 12px;

  color: #94a3b8;

  font-family: var(--font-mono, monospace);

}



/* Profile Switch Buttons inside Modal */

.xai-profile-switch-group {

  display: flex;

  align-items: center;

  gap: 8px;

  background: rgba(15, 23, 42, 0.8);

  padding: 4px 8px;

  border-radius: 8px;

  border: 1px solid rgba(255, 255, 255, 0.1);

}



.xai-switch-label {

  font-size: 11px;

  font-weight: 700;

  color: #94a3b8;

  font-family: var(--font-mono, monospace);

  letter-spacing: 0.5px;

}



.xai-profile-pill {

  background: transparent;

  border: 1px solid transparent;

  color: #94a3b8;

  font-size: 11px;

  font-weight: 700;

  padding: 6px 12px;

  border-radius: 6px;

  cursor: pointer;

  transition: all 0.2s ease;

  font-family: var(--font-mono, monospace);

}



.xai-profile-pill:hover {

  color: #f1f5f9;

  background: rgba(255, 255, 255, 0.05);

}



.xai-profile-pill.active {

  background: rgba(168, 85, 247, 0.25);

  border-color: #a855f7;

  color: #f3e8ff;

  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);

}



.xai-close-btn {

  background: rgba(239, 68, 68, 0.15);

  border: 1px solid rgba(239, 68, 68, 0.4);

  color: #fca5a5;

  font-weight: 700;

  padding: 6px 14px;

  border-radius: 6px;

  cursor: pointer;

  font-size: 12px;

  transition: all 0.2s ease;

}



.xai-close-btn:hover {

  background: rgba(239, 68, 68, 0.35);

  color: #ffffff;

  border-color: #f87171;

}



/* Controls Subbar */

.xai-subbar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 8px 24px;

  background: #0b121e;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  font-size: 12px;

  flex-wrap: wrap;

  gap: 12px;

}



.xai-checkbox-label {

  display: flex;

  align-items: center;

  gap: 8px;

  cursor: pointer;

  color: #cbd5e1;

  font-weight: 500;

}



.xai-checkbox-label input[type="checkbox"] {

  accent-color: #a855f7;

  width: 16px;

  height: 16px;

  cursor: pointer;

}



.xai-subbar-info {

  display: flex;

  gap: 16px;

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  color: #64748b;

}



.xai-subbar-info code {

  color: #38bdf8;

  background: rgba(56, 189, 248, 0.1);

  padding: 2px 5px;

  border-radius: 3px;

}



/* Tabs Navigation */

.xai-tabs-nav {

  display: flex;

  background: #0f172a;

  border-bottom: 2px solid rgba(168, 85, 247, 0.2);

  padding: 0 16px;

  gap: 4px;

  overflow-x: auto;

}



.xai-tab-btn {

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 12px 18px;

  background: transparent;

  border: none;

  border-bottom: 2px solid transparent;

  color: #94a3b8;

  font-size: 12.5px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.2s ease;

  white-space: nowrap;

  margin-bottom: -2px;

}



.xai-tab-btn:hover {

  color: #f1f5f9;

  background: rgba(255, 255, 255, 0.03);

}



.xai-tab-btn.active {

  color: #c084fc;

  border-bottom-color: #c084fc;

  background: rgba(168, 85, 247, 0.08);

}



/* Modal Body */

.xai-modal-body {

  flex: 1;

  overflow-y: auto;

  padding: 24px;

  background: #070c14;

}



.xai-tab-panel {

  display: none;

}



.xai-tab-panel.active {

  display: flex;

  flex-direction: column;

  gap: 20px;

}



/* KPI Cards Row */

.xai-panel-lead {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

  gap: 14px;

}



.xai-kpi-card {

  background: #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 12px 16px;

  display: flex;

  flex-direction: column;

  gap: 4px;

}



.xai-kpi-card.highlight {

  border-color: rgba(168, 85, 247, 0.35);

  background: linear-gradient(145deg, #0f172a 0%, #171126 100%);

}



.xai-kpi-card .kpi-label {

  font-size: 10.5px;

  font-family: var(--font-mono, monospace);

  color: #94a3b8;

  text-transform: uppercase;

  letter-spacing: 0.8px;

}



.xai-kpi-card .kpi-val {

  font-size: 16px;

  font-weight: 700;

  color: #f8fafc;

}



.xai-kpi-card .kpi-val.accent {

  color: #38bdf8;

}



/* Causal Rationale Box */

.xai-rationale-box {

  background: rgba(30, 27, 75, 0.35);

  border: 1px solid rgba(168, 85, 247, 0.35);

  border-left: 4px solid #a855f7;

  border-radius: 6px;

  padding: 14px 18px;

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.xai-box-title {

  font-size: 12px;

  font-weight: 700;

  font-family: var(--font-mono, monospace);

  color: #d8b4fe;

  letter-spacing: 0.8px;

}



.xai-rationale-text {

  font-size: 13.5px;

  line-height: 1.6;

  color: #e2e8f0;

}



/* Section Title */

.xai-section-title {

  font-size: 12px;

  font-weight: 700;

  font-family: var(--font-mono, monospace);

  color: #94a3b8;

  letter-spacing: 1px;

  text-transform: uppercase;

  margin-top: 4px;

}



/* Actions Table */

.xai-table-wrapper {

  overflow-x: auto;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  background: #0b111a;

}



.xai-actions-table {

  width: 100%;

  border-collapse: collapse;

  font-size: 12px;

  text-align: left;

}



.xai-actions-table th {

  background: #111827;

  padding: 10px 14px;

  color: #94a3b8;

  font-family: var(--font-mono, monospace);

  font-weight: 600;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  font-size: 11px;

}



.xai-actions-table td {

  padding: 10px 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.04);

  color: #cbd5e1;

}



.xai-actions-table tr.action-best {

  background: rgba(168, 85, 247, 0.12);

}



.xai-actions-table tr.action-best td {

  color: #ffffff;

  font-weight: 600;

}



.xai-actions-table .rank-badge {

  display: inline-block;

  padding: 2px 7px;

  border-radius: 4px;

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 700;

  background: rgba(255, 255, 255, 0.06);

}



.xai-actions-table .rank-badge.rank-1 {

  background: #a855f7;

  color: #ffffff;

}



.badge-optimal {

  background: rgba(34, 197, 94, 0.2);

  color: #4ade80;

  border: 1px solid rgba(34, 197, 94, 0.4);

  padding: 2px 6px;

  border-radius: 4px;

  font-size: 10.5px;

  font-family: var(--font-mono, monospace);

  font-weight: 700;

}



.badge-alt {

  background: rgba(148, 163, 184, 0.1);

  color: #94a3b8;

  padding: 2px 6px;

  border-radius: 4px;

  font-size: 10.5px;

  font-family: var(--font-mono, monospace);

}



/* Spatial Attention Layout */

.xai-attention-layout {

  display: grid;

  grid-template-columns: 320px 1fr;

  gap: 20px;

}



@media (max-width: 900px) {

  .xai-attention-layout {

    grid-template-columns: 1fr;

  }

}



.xai-attention-sidebar {

  display: flex;

  flex-direction: column;

  gap: 16px;

}



.xai-sidebar-card {

  background: #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 14px 16px;

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.xai-card-title {

  font-size: 13px;

  font-weight: 700;

  color: #f1f5f9;

}



.xai-card-sub {

  font-size: 11.5px;

  color: #94a3b8;

}



.xai-hex-list {

  display: flex;

  flex-direction: column;

  gap: 6px;

  max-height: 260px;

  overflow-y: auto;

}



.focus-hex-item {

  display: flex;

  justify-content: space-between;

  align-items: center;

  background: #1e293b;

  padding: 6px 10px;

  border-radius: 5px;

  font-size: 11.5px;

  font-family: var(--font-mono, monospace);

}



.focus-hex-item .hex-coord {

  font-weight: 700;

  color: #38bdf8;

}



.focus-hex-item .hex-weight {

  color: #c084fc;

}



.xai-legend-scale {

  display: flex;

  flex-direction: column;

  gap: 4px;

}



.xai-legend-scale .legend-bar {

  height: 10px;

  border-radius: 5px;

  background: linear-gradient(90deg, #1e293b 0%, #3b82f6 30%, #eab308 60%, #ef4444 100%);

}



.xai-legend-scale .legend-labels {

  display: flex;

  justify-content: space-between;

  font-size: 10.5px;

  color: #94a3b8;

  font-family: var(--font-mono, monospace);

}



.legend-desc {

  font-size: 11.5px;

  color: #94a3b8;

  line-height: 1.5;

  margin: 0;

}



/* 15x22 Attention Grid View */

.xai-attention-grid-view {

  background: #0b111a;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 16px;

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.xai-grid-header {

  display: flex;

  justify-content: space-between;

  font-size: 13px;

  font-weight: 700;

  color: #f1f5f9;

}



.xai-grid-sub {

  font-size: 11px;

  color: #94a3b8;

  font-family: var(--font-mono, monospace);

}



.xai-matrix-container {

  overflow-x: auto;

  padding: 8px;

  background: #05080e;

  border-radius: 6px;

}



.xai-grid-table {

  border-collapse: collapse;

  margin: 0 auto;

}



.xai-cell {

  width: 22px;

  height: 22px;

  border: 1px solid rgba(255, 255, 255, 0.05);

  text-align: center;

  font-size: 9px;

  color: rgba(255, 255, 255, 0.7);

  transition: transform 0.15s ease;

  cursor: pointer;

}



.xai-cell:hover {

  transform: scale(1.3);

  z-index: 10;

  border-color: #ffffff;

}



/* AI Concept Academy */

.xai-academy-intro h3 {

  margin: 0 0 4px 0;

  font-size: 16px;

  color: #f8fafc;

}



.xai-academy-intro p {

  margin: 0;

  font-size: 12.5px;

  color: #94a3b8;

}



.xai-concepts-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

  gap: 16px;

}



.xai-concept-card {

  background: #0f172a;

  border: 1px solid rgba(168, 85, 247, 0.25);

  border-radius: 8px;

  padding: 16px;

  display: flex;

  flex-direction: column;

  gap: 10px;

  transition: transform 0.2s ease, border-color 0.2s ease;

}



.xai-concept-card:hover {

  transform: translateY(-2px);

  border-color: #c084fc;

  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);

}



.concept-card-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.concept-category-badge {

  font-size: 10px;

  font-family: var(--font-mono, monospace);

  font-weight: 700;

  color: #38bdf8;

  background: rgba(56, 189, 248, 0.1);

  padding: 2px 6px;

  border-radius: 4px;

  text-transform: uppercase;

}



.concept-card-title {

  margin: 0;

  font-size: 14.5px;

  font-weight: 700;

  color: #ffffff;

}



.concept-card-desc {

  font-size: 12px;

  line-height: 1.5;

  color: #cbd5e1;

  margin: 0;

}



.concept-card-formula {

  background: #05080f;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 5px;

  padding: 8px 10px;

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  color: #facc15;

}



.concept-card-tactical {

  font-size: 11.5px;

  line-height: 1.4;

  color: #a78bfa;

  background: rgba(167, 139, 250, 0.08);

  padding: 6px 10px;

  border-radius: 4px;

}



/* Training Telemetry Cards */

.xai-telemetry-container {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 14px;

}



.telemetry-card {

  background: #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 14px;

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.telemetry-card-title {

  font-size: 13px;

  font-weight: 700;

  color: #f1f5f9;

  display: flex;

  justify-content: space-between;

}



.telemetry-card-val {

  font-size: 18px;

  font-weight: 800;

  color: #38bdf8;

  font-family: var(--font-mono, monospace);

}



.telemetry-card-sub {

  font-size: 11px;

  color: #94a3b8;

}



/* Modal Footer */

.xai-modal-footer {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 24px;

  background: #0b121e;

  border-top: 1px solid rgba(255, 255, 255, 0.06);

}



.xai-footer-note {

  font-size: 11.5px;

  color: #64748b;

}



.xai-footer-note kbd {

  background: #1e293b;

  border: 1px solid #334155;

  color: #e2e8f0;

  padding: 1px 5px;

  border-radius: 3px;

  font-family: var(--font-mono, monospace);

  font-size: 10px;

}



.xai-btn-secondary {

  background: #1e293b;

  border: 1px solid #334155;

  color: #cbd5e1;

  font-weight: 600;

  padding: 6px 16px;

  border-radius: 6px;

  cursor: pointer;

  font-size: 12px;

  transition: all 0.2s ease;

}



.xai-btn-secondary:hover {

  background: #334155;

  color: #ffffff;

}





/* ==========================================================================

   XAI COGNITION SUB-RIBBON & DOCKABLE HUD PANEL (NON-MODAL)

   ========================================================================== */



/* Sub-Ribbon Row (Row 3 of #top-ribbon) */

.xai-ribbon-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 3px 16px;

  width: 100%;

  box-sizing: border-box;

  gap: 12px;

  background: linear-gradient(90deg, #090e18 0%, #150b28 40%, #090e18 100%);

  border-bottom: 1px solid rgba(168, 85, 247, 0.4);

  box-shadow: inset 0 1px 0 rgba(168, 85, 247, 0.25);

  min-height: 38px;

  flex-wrap: wrap;

  z-index: 101;

}



.xai-ribbon-row.hidden {

  display: none !important;

}



.xai-ribbon-brand {

  display: flex;

  align-items: center;

  gap: 8px;

  flex-shrink: 0;

}



.xai-ribbon-icon {

  font-size: 15px;

  filter: drop-shadow(0 0 6px #a855f7);

}



.xai-ribbon-title {

  font-family: var(--font-mono, monospace);

  font-size: 12px;

  font-weight: 800;

  color: #f1f5f9;

  letter-spacing: 1px;

}



.xai-ribbon-sub {

  font-family: var(--font-mono, monospace);

  font-size: 10px;

  color: #c084fc;

  background: rgba(168, 85, 247, 0.15);

  border: 1px solid rgba(168, 85, 247, 0.35);

  padding: 1px 5px;

  border-radius: 3px;

  letter-spacing: 0.8px;

}



.xai-ribbon-controls {

  display: flex;

  align-items: center;

  gap: 8px;

  flex-wrap: wrap;

}



.xai-btn-cluster {

  display: flex;

  align-items: center;

  gap: 5px;

  background: rgba(15, 23, 42, 0.6);

  padding: 2px 6px;

  border-radius: 6px;

  border: 1px solid rgba(255, 255, 255, 0.08);

}



.xai-cluster-tag {

  font-family: var(--font-mono, monospace);

  font-size: 9px;

  font-weight: 700;

  color: #64748b;

  letter-spacing: 0.8px;

  text-transform: uppercase;

  margin-right: 2px;

}



.btn-xai-toggle,

.btn-xai-tab,

.btn-xai-action {

  background: rgba(30, 41, 59, 0.7);

  border: 1px solid rgba(148, 163, 184, 0.25);

  color: #cbd5e1;

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 700;

  padding: 4px 9px;

  border-radius: 4px;

  cursor: pointer;

  display: inline-flex;

  align-items: center;

  gap: 5px;

  transition: all 0.15s ease;

  line-height: 1.2;

}



.btn-xai-toggle:hover,

.btn-xai-tab:hover,

.btn-xai-action:hover {

  background: rgba(51, 65, 85, 0.9);

  color: #ffffff;

  border-color: rgba(168, 85, 247, 0.5);

}



.btn-xai-toggle.active,

.btn-xai-tab.active {

  background: rgba(168, 85, 247, 0.25);

  border-color: #c084fc;

  color: #f8fafc;

  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);

}



.btn-xai-action {

  background: rgba(56, 189, 248, 0.15);

  border-color: rgba(56, 189, 248, 0.4);

  color: #7dd3fc;

}



.btn-xai-action:hover {

  background: rgba(56, 189, 248, 0.3);

  color: #ffffff;

  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);

}



.xai-ribbon-divider {

  width: 1px;

  height: 20px;

  background: rgba(255, 255, 255, 0.12);

  margin: 0 2px;

}



.xai-ribbon-status {

  display: flex;

  align-items: center;

  gap: 6px;

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  color: #94a3b8;

  flex-shrink: 0;

}



.xai-pulse-dot {

  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow: 0 0 8px #22c55e;

  display: inline-block;

  animation: pulse-green 2s infinite;

}



@keyframes pulse-green {

  0% { transform: scale(0.9); opacity: 0.8; }

  50% { transform: scale(1.3); opacity: 1; }

  100% { transform: scale(0.9); opacity: 0.8; }

}



/* ─── DOCKABLE XAI HUD INSPECTOR PANEL (NON-MODAL) ─── */

.xai-hud-dock-panel {

  position: fixed;

  top: 96px;

  right: 16px;

  width: 440px;

  max-width: calc(100vw - 32px);

  max-height: calc(100vh - 110px);

  background: rgba(9, 14, 24, 0.94);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(168, 85, 247, 0.45);

  border-radius: 8px;

  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(168, 85, 247, 0.2);

  z-index: 1000;

  display: flex;

  flex-direction: column;

  overflow: hidden;

  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);

  color: #e2e8f0;

  transition: max-height 0.25s ease, opacity 0.2s ease;

}



.xai-hud-dock-panel.hidden {

  display: none !important;

}



.xai-hud-dock-panel.minimized {

  max-height: 46px !important;

}



.xai-hud-dock-panel.minimized .xai-hud-tabs-nav,

.xai-hud-dock-panel.minimized .xai-hud-body,

.xai-hud-dock-panel.minimized .xai-hud-footer {

  display: none !important;

}



.xai-hud-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 10px 14px;

  background: linear-gradient(90deg, #0f172a 0%, #1e1138 100%);

  border-bottom: 1px solid rgba(168, 85, 247, 0.3);

  gap: 10px;

  flex-shrink: 0;

}



.xai-hud-title-box {

  display: flex;

  flex-direction: column;

  gap: 2px;

  min-width: 0;

}



.xai-hud-badge {

  font-family: var(--font-mono, monospace);

  font-size: 10px;

  font-weight: 700;

  color: #c084fc;

  letter-spacing: 1.2px;

  text-transform: uppercase;

}



.xai-hud-title {

  margin: 0;

  font-size: 13.5px;

  font-weight: 800;

  color: #f8fafc;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.xai-hud-sub {

  font-size: 10px;

  color: #94a3b8;

  font-family: var(--font-mono, monospace);

}



.xai-hud-actions {

  display: flex;

  align-items: center;

  gap: 6px;

  flex-shrink: 0;

}



.xai-hud-btn {

  background: rgba(30, 41, 59, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.15);

  color: #cbd5e1;

  width: 26px;

  height: 26px;

  border-radius: 4px;

  font-size: 12px;

  font-weight: 700;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: all 0.15s ease;

}



.xai-hud-btn:hover {

  background: rgba(51, 65, 85, 1);

  color: #ffffff;

  border-color: #a855f7;

}



.xai-hud-btn.close:hover {

  background: rgba(239, 68, 68, 0.4);

  border-color: #ef4444;

}



.xai-hud-tabs-nav {

  display: flex;

  background: #0b121e;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  padding: 4px 8px;

  gap: 4px;

  overflow-x: auto;

  flex-shrink: 0;

}



.xai-hud-tabs-nav .xai-tab-btn {

  padding: 6px 10px;

  font-size: 11px;

}



.xai-hud-body {

  flex: 1;

  overflow-y: auto;

  padding: 12px 14px;

  max-height: calc(100vh - 210px);

}



.xai-hud-footer {

  padding: 6px 12px;

  background: #080d16;

  border-top: 1px solid rgba(255, 255, 255, 0.06);

  flex-shrink: 0;

}



.xai-hud-footer-note {

  font-size: 10.5px;

  color: #64748b;

  font-family: var(--font-mono, monospace);

}



.xai-hud-footer-note kbd {

  background: #1e293b;

  border: 1px solid #334155;

  color: #e2e8f0;

  padding: 1px 4px;

  border-radius: 3px;

  font-size: 9.5px;

}





/* ==========================================================================

   XAI PANORAMIC LARGE VIEW OVERLAY (SPACIOUS & ERGONOMIC LIKE PLAYER MANUAL)

   ========================================================================== */



.xai-panoramic-overlay {

  position: fixed;

  inset: 0;

  z-index: 150000;

  display: flex;

  align-items: stretch;

  justify-content: center;

  background: rgba(4, 8, 16, 0.78);

  backdrop-filter: blur(3px) brightness(0.65);

  -webkit-backdrop-filter: blur(3px) brightness(0.65);

  transition: opacity 0.25s ease;

}



.xai-panoramic-overlay.hidden {

  display: none !important;

}



.xai-panoramic-panel {

  position: relative;

  z-index: 1;

  display: flex;

  flex-direction: column;

  width: 95vw;

  max-width: 1420px;

  height: calc(100vh - 28px);

  margin: 14px auto;

  background: rgba(10, 15, 26, 0.94);

  border: 1px solid rgba(168, 85, 247, 0.5);

  border-radius: 8px;

  box-shadow: 0 0 50px rgba(168, 85, 247, 0.25), 0 24px 60px rgba(0, 0, 0, 0.85);

  overflow: hidden;

  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);

  color: #e2e8f0;

}



.xai-panoramic-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 6px 16px;

  background: linear-gradient(90deg, #0d1322 0%, #1a0f30 50%, #0d1322 100%);

  border-bottom: 1px solid rgba(168, 85, 247, 0.35);

  gap: 12px;

  flex-shrink: 0;

  min-height: 42px;

}



.xai-header-brand {

  display: flex;

  align-items: center;

  gap: 8px;

  white-space: nowrap;

}



.xai-header-badge {

  font-family: var(--font-mono, monospace);

  font-size: 10px;

  font-weight: 700;

  color: #c084fc;

  letter-spacing: 1px;

  text-transform: uppercase;

  background: rgba(168, 85, 247, 0.15);

  padding: 2px 7px;

  border-radius: 4px;

  border: 1px solid rgba(168, 85, 247, 0.3);

}



.xai-header-sep {

  color: #475569;

  font-weight: 700;

  font-size: 12px;

}



.xai-header-title {

  margin: 0;

  font-size: 13.5px;

  font-weight: 700;

  color: #f8fafc;

  letter-spacing: 0.3px;

  white-space: nowrap;

}



.xai-header-sub {

  display: none;

}



.xai-panoramic-nav {

  display: flex;

  gap: 4px;

  background: rgba(15, 23, 42, 0.85);

  padding: 2px 4px;

  border-radius: 6px;

  border: 1px solid rgba(255, 255, 255, 0.1);

}



.xai-panoramic-nav .xai-tab-btn {

  display: flex;

  align-items: center;

  gap: 5px;

  padding: 5px 11px;

  background: transparent;

  border: 1px solid transparent;

  color: #94a3b8;

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 700;

  border-radius: 4px;

  cursor: pointer;

  transition: all 0.15s ease;

  white-space: nowrap;

}



.xai-panoramic-nav .xai-tab-btn:hover {

  background: rgba(255, 255, 255, 0.08);

  color: #f1f5f9;

}



.xai-panoramic-nav .xai-tab-btn.active {

  background: rgba(168, 85, 247, 0.28);

  border-color: #c084fc;

  color: #ffffff;

  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);

}



.xai-header-actions {

  display: flex;

  align-items: center;

  gap: 10px;

  flex-shrink: 0;

}



.xai-kbd-hint {

  font-family: var(--font-mono, monospace);

  font-size: 10px;

  color: #64748b;

}



.xai-close-btn {

  padding: 4px 10px;

  font-size: 11px;

}



.xai-panoramic-body {

  flex: 1;

  min-height: 0;

  overflow-y: auto;

  padding: 10px 16px;

  box-sizing: border-box;

  scrollbar-width: thin;

  scrollbar-color: rgba(168, 85, 247, 0.3) transparent;

}



/* Panoramic Tab Panels */

.xai-tab-panel {

  display: none;

}



.xai-tab-panel.active {

  display: block;

  animation: fadeInPanel 0.2s ease-out;

}



@keyframes fadeInPanel {

  from { opacity: 0; transform: translateY(4px); }

  to { opacity: 1; transform: translateY(0); }

}



/* MCTS Decision Panel (Spacious) */

.xai-panel-lead {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 8px;

  margin-bottom: 8px;

  flex-shrink: 0;

}



.xai-kpi-card {

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.1);

  padding: 5px 10px;

  border-radius: 5px;

  display: flex;

  flex-direction: column;

  gap: 2px;

}



.xai-kpi-card.highlight {

  border-color: rgba(168, 85, 247, 0.4);

  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 17, 56, 0.4) 100%);

}



.xai-kpi-card .kpi-label {

  font-family: var(--font-mono, monospace);

  font-size: 9px;

  font-weight: 700;

  color: #94a3b8;

  letter-spacing: 0.6px;

}



.xai-kpi-card .kpi-val {

  font-family: var(--font-mono, monospace);

  font-size: 13.5px;

  font-weight: 800;

  color: #f1f5f9;

}



.xai-kpi-card .kpi-val.accent {

  color: #38bdf8;

}



.xai-rationale-box {

  background: rgba(15, 23, 42, 0.8);

  border: 1px solid rgba(56, 189, 248, 0.35);

  border-left: 4px solid #38bdf8;

  padding: 16px 20px;

  border-radius: 6px;

  margin-bottom: 24px;

}



.xai-box-title {

  font-family: var(--font-mono, monospace);

  font-size: 11.5px;

  font-weight: 700;

  color: #38bdf8;

  letter-spacing: 1px;

  margin-bottom: 8px;

}



.xai-rationale-text {

  font-size: 14px;

  line-height: 1.6;

  color: #e2e8f0;

}



.xai-table-wrapper {

  overflow-x: auto;

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 6px;

}



.xai-actions-table {

  width: 100%;

  border-collapse: collapse;

  font-family: var(--font-mono, monospace);

  font-size: 12px;

}



.xai-actions-table th {

  background: #0f172a;

  color: #94a3b8;

  padding: 10px 14px;

  text-align: left;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  font-weight: 700;

}



.xai-actions-table td {

  padding: 10px 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}



.xai-actions-table tr.action-best td {

  background: rgba(34, 197, 94, 0.08);

  border-color: rgba(34, 197, 94, 0.2);

}



/* Spatial Attention Layout (Spacious) */

.xai-attention-layout {

  display: grid;

  grid-template-columns: 360px 1fr;

  gap: 24px;

  align-items: start;

}



.xai-sidebar-card {

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.1);

  padding: 16px;

  border-radius: 6px;

  margin-bottom: 16px;

}



.xai-card-title {

  font-size: 13px;

  font-weight: 700;

  color: #f8fafc;

  margin-bottom: 6px;

}



.xai-card-sub {

  font-size: 11.5px;

  color: #94a3b8;

  margin-bottom: 12px;

}



.xai-grid-table {

  border-collapse: separate;

  border-spacing: 3px;

}



.xai-grid-table .xai-cell {

  width: 26px;

  height: 26px;

  border-radius: 4px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  cursor: pointer;

  transition: transform 0.1s ease, border-color 0.1s ease;

}



.xai-grid-table .xai-cell:hover {

  transform: scale(1.25);

  border-color: #38bdf8;

  z-index: 10;

}



/* ─── XAI Academy Thematic Filter Ribbon & Search ─── */

.academy-concepts-filter-bar {

  background: rgba(15, 23, 42, 0.88);

  border: 1px solid rgba(168, 85, 247, 0.28);

  border-radius: 8px;

  padding: 12px 16px;

  margin-bottom: 20px;

  display: flex;

  flex-direction: column;

  gap: 12px;

  backdrop-filter: blur(8px);

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);

}



.concepts-filter-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 12px;

}



.concepts-filter-title-group {

  display: flex;

  align-items: center;

  gap: 8px;

}



.filter-bar-icon {

  font-size: 14px;

}



.filter-bar-heading {

  font-family: var(--font-mono, monospace);

  font-size: 11.5px;

  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: #94a3b8;

}



.filter-badge-counter {

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 700;

  color: #e879f9;

  background: rgba(232, 121, 249, 0.15);

  border: 1px solid rgba(232, 121, 249, 0.35);

  padding: 2px 8px;

  border-radius: 12px;

}



.concepts-search-wrapper {

  position: relative;

  display: flex;

  align-items: center;

}



.concepts-search-wrapper .search-icon {

  position: absolute;

  left: 10px;

  pointer-events: none;

  font-size: 12px;

  opacity: 0.6;

}



.concept-search-input {

  background: rgba(2, 6, 23, 0.75);

  border: 1px solid rgba(148, 163, 184, 0.25);

  border-radius: 6px;

  padding: 6px 30px 6px 32px;

  font-size: 12px;

  color: #f8fafc;

  width: 270px;

  transition: all 0.2s ease;

  font-family: inherit;

}



.concept-search-input:focus {

  outline: none;

  border-color: #38bdf8;

  background: rgba(2, 6, 23, 0.95);

  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);

  width: 320px;

}



.btn-clear-search {

  position: absolute;

  right: 8px;

  background: transparent;

  border: none;

  color: #94a3b8;

  cursor: pointer;

  font-size: 12px;

  padding: 2px 4px;

  transition: color 0.15s ease;

}



.btn-clear-search:hover {

  color: #f87171;

}



.concepts-category-pills {

  display: flex;

  flex-wrap: wrap;

  gap: 7px 9px;

  align-items: center;

}



.concept-pill {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  background: rgba(30, 41, 59, 0.65);

  border: 1px solid rgba(148, 163, 184, 0.22);

  border-radius: 6px;

  padding: 5px 11px;

  font-size: 11.5px;

  font-weight: 600;

  color: #cbd5e1;

  cursor: pointer;

  transition: all 0.18s ease;

  user-select: none;

}



.concept-pill:hover {

  background: rgba(51, 65, 85, 0.85);

  border-color: rgba(168, 85, 247, 0.5);

  color: #f8fafc;

  transform: translateY(-1px);

}



.concept-pill.active {

  background: rgba(168, 85, 247, 0.25);

  border-color: #c084fc;

  color: #f8fafc;

  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);

}



.concept-pill[data-category="world_models"].active {

  background: rgba(56, 189, 248, 0.22);

  border-color: #38bdf8;

  color: #38bdf8;

  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);

}



.concept-pill[data-category="planning_mcts"].active {

  background: rgba(52, 211, 153, 0.22);

  border-color: #34d399;

  color: #34d399;

  box-shadow: 0 0 12px rgba(52, 211, 153, 0.35);

}



.concept-pill[data-category="neural_representations"].active {

  background: rgba(251, 191, 36, 0.22);

  border-color: #fbbf24;

  color: #fbbf24;

  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);

}



.concept-pill[data-category="tactical_heads"].active {

  background: rgba(248, 113, 113, 0.22);

  border-color: #f87171;

  color: #f87171;

  box-shadow: 0 0 12px rgba(248, 113, 113, 0.35);

}



.concept-pill[data-category="explainability"].active {

  background: rgba(232, 121, 249, 0.22);

  border-color: #e879f9;

  color: #e879f9;

  box-shadow: 0 0 12px rgba(232, 121, 249, 0.35);

}



.concept-pill[data-category="wargame_mechanics"].active {

  background: rgba(167, 139, 250, 0.22);

  border-color: #a78bfa;

  color: #a78bfa;

  box-shadow: 0 0 12px rgba(167, 139, 250, 0.35);

}



.concept-pill[data-category="training_stability"].active {

  background: rgba(96, 165, 250, 0.22);

  border-color: #60a5fa;

  color: #60a5fa;

  box-shadow: 0 0 12px rgba(96, 165, 250, 0.35);

}



.concept-pill .pill-count {

  font-family: var(--font-mono, monospace);

  font-size: 10px;

  background: rgba(0, 0, 0, 0.4);

  padding: 1px 6px;

  border-radius: 10px;

  color: #e2e8f0;

}



.concepts-empty-state {

  grid-column: 1 / -1;

  text-align: center;

  padding: 48px 24px;

  background: rgba(15, 23, 42, 0.5);

  border: 1px dashed rgba(148, 163, 184, 0.25);

  border-radius: 8px;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 12px;

}



.concepts-empty-state .empty-icon {

  font-size: 32px;

  opacity: 0.6;

}



.concepts-empty-state .empty-title {

  margin: 0;

  font-size: 16px;

  color: #f8fafc;

  font-weight: 700;

}



.concepts-empty-state .empty-desc {

  margin: 0;

  font-size: 13px;

  color: #94a3b8;

  max-width: 440px;

}



.btn-reset-filters {

  margin-top: 6px;

  background: rgba(168, 85, 247, 0.2);

  border: 1px solid #c084fc;

  color: #f8fafc;

  padding: 6px 16px;

  border-radius: 6px;

  font-size: 12px;

  cursor: pointer;

  transition: all 0.2s ease;

}



.btn-reset-filters:hover {

  background: rgba(168, 85, 247, 0.35);

  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);

}



/* Concept Academy Grid (Wide & Spacious) */

.xai-concepts-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));

  gap: 20px;

}



.xai-concept-card {

  background: rgba(15, 23, 42, 0.75);

  border: 1px solid rgba(168, 85, 247, 0.3);

  border-radius: 8px;

  padding: 18px 20px;

  display: flex;

  flex-direction: column;

  gap: 12px;

  transition: transform 0.2s ease, border-color 0.2s ease;

}



.xai-concept-card:hover {

  transform: translateY(-2px);

  border-color: #c084fc;

  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.15);

}



.concept-card-title {

  margin: 0;

  font-size: 15px;

  font-weight: 800;

  color: #f8fafc;

}



.concept-category-badge {

  font-family: var(--font-mono, monospace);

  font-size: 10px;

  font-weight: 700;

  color: #38bdf8;

  background: rgba(56, 189, 248, 0.15);

  padding: 2px 7px;

  border-radius: 3px;

  display: inline-block;

  margin-bottom: 6px;

}



.concept-card-desc {

  font-size: 13px;

  line-height: 1.55;

  color: #cbd5e1;

  margin: 0;

}



.concept-card-formula {

  background: #080d16;

  border: 1px solid rgba(255, 255, 255, 0.14);

  border-radius: 5px;

  padding: 12px 14px;

  margin: 10px 0;

  overflow-x: auto;

  text-align: center;

  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);

  min-height: 48px;

  display: flex;

  align-items: center;

  justify-content: center;

}



.concept-card-formula .katex {

  font-size: 1.25em;

  color: #fde047;

  line-height: 1.4;

}



.concept-card-formula .katex-display {

  margin: 4px 0 !important;

  text-align: center;

  width: 100%;

}



.concept-card-formula .katex-display > .katex {

  text-align: center;

  white-space: normal;

}



.concept-card-formula code {

  color: #facc15;

  font-family: var(--font-mono, monospace);

  font-size: 12px;

}



.concept-card-tactical {

  background: rgba(168, 85, 247, 0.1);

  border-left: 3px solid #c084fc;

  padding: 8px 12px;

  border-radius: 4px;

  font-size: 12px;

  line-height: 1.5;

  color: #e2e8f0;

}



/* Training Telemetry Cards */

.xai-telemetry-container {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 18px;

}



.telemetry-card {

  background: rgba(15, 23, 42, 0.75);

  border: 1px solid rgba(255, 255, 255, 0.1);

  padding: 16px 20px;

  border-radius: 6px;

}



/* Panoramic Footer */

.xai-panoramic-footer {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 6px 18px;

  background: #080d16;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  flex-shrink: 0;

}



.xai-footer-left {

  font-size: 11.5px;

  color: #64748b;

  font-family: var(--font-mono, monospace);

}



.xai-footer-left kbd {

  background: #1e293b;

  border: 1px solid #334155;

  color: #e2e8f0;

  padding: 1px 5px;

  border-radius: 3px;

}





/* ═══════════════════════════════════════════════════════════════════════════ */

/* 🧬 NEURAL ARCHITECTURE BLUEPRINT & ISOMETRIC TENSOR VOLUMES (XAI LAB)      */

/* ═══════════════════════════════════════════════════════════════════════════ */



#xai-tab-architecture {

  display: none;

  height: 100%;

  min-height: 0;

}



#xai-tab-architecture.active {

  display: flex;

  flex-direction: column;

  height: 100%;

  min-height: 0;

}



.xai-architecture-container {

  display: flex;

  gap: 14px;

  flex: 1;

  min-height: 0;

  margin-top: 2px;

  overflow: hidden;

}



.xai-architecture-main {

  flex: 1 1 66%;

  min-width: 0;

  display: flex;

  flex-direction: column;

  height: 100%;

  min-height: 0;

}



.xai-arch-toolbar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 5px 10px;

  background: rgba(15, 23, 42, 0.85);

  border: 1px solid rgba(56, 189, 248, 0.2);

  border-radius: 6px;

  margin-bottom: 6px;

  flex-shrink: 0;

}



.xai-arch-view-toggles {

  display: flex;

  gap: 6px;

}



.arch-toggle-btn {

  display: inline-flex;

  align-items: center;

  gap: 5px;

  background: rgba(30, 41, 59, 0.6);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #94a3b8;

  padding: 4px 10px;

  border-radius: 4px;

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.2s ease;

}



.arch-toggle-btn:hover {

  background: rgba(56, 189, 248, 0.15);

  border-color: rgba(56, 189, 248, 0.4);

  color: #e0f2fe;

}



.arch-toggle-btn.active {

  background: rgba(56, 189, 248, 0.25);

  border-color: #38bdf8;

  color: #38bdf8;

  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);

}



.xai-arch-badge-group {

  display: flex;

  align-items: center;

  gap: 8px;

}



.arch-live-pill {

  font-size: 10.5px;

  font-family: var(--font-mono, monospace);

  color: #4ade80;

  background: rgba(34, 197, 94, 0.12);

  border: 1px solid rgba(34, 197, 94, 0.3);

  padding: 2px 7px;

  border-radius: 10px;

}



.arch-refresh-btn {

  background: transparent;

  border: 1px solid rgba(56, 189, 248, 0.3);

  color: #38bdf8;

  font-family: var(--font-mono, monospace);

  font-size: 10.5px;

  padding: 3px 8px;

  border-radius: 4px;

  cursor: pointer;

  transition: all 0.15s ease;

}



.arch-refresh-btn:hover {

  background: rgba(56, 189, 248, 0.2);

  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);

}



.xai-arch-canvas-wrapper {

  position: relative;

  width: 100%;

  flex: 1;

  min-height: 0;

  height: 100%;

  background: radial-gradient(circle at 45% 45%, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.99) 100%);

  border: 1px solid rgba(56, 189, 248, 0.32);

  border-radius: 8px;

  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 8px 32px rgba(0, 0, 0, 0.6);

  overflow: hidden;

}



.xai-arch-svg {

  width: 100%;

  height: 100%;

  display: block;

  user-select: none;

}



/* 3D Isometric Tensor Cuboid SVG Elements */

.iso-tensor-group {

  cursor: pointer;

  transition: opacity 0.2s ease, filter 0.2s ease;

}



.iso-tensor-group:hover {

  filter: brightness(1.22);

}



.iso-tensor-group.selected {

  filter: drop-shadow(0 0 10px #38bdf8) brightness(1.28);

}



.iso-tensor-face-front {

  transition: fill 0.2s ease;

}



.iso-tensor-face-top {

  transition: fill 0.2s ease;

}



.iso-tensor-face-side {

  transition: fill 0.2s ease;

}



/* Architecture Inspector Sidebar */

.xai-architecture-sidebar {

  width: 350px;

  flex-shrink: 0;

  background: rgba(15, 23, 42, 0.88);

  border: 1px solid rgba(56, 189, 248, 0.28);

  border-radius: 8px;

  padding: 12px 14px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);

  display: flex;

  flex-direction: column;

  gap: 10px;

  height: 100%;

  min-height: 0;

  max-height: 100%;

  overflow-y: auto;

  scrollbar-width: thin;

  scrollbar-color: rgba(56, 189, 248, 0.35) transparent;

  box-sizing: border-box;

}



.arch-inspector-header {

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  padding-bottom: 12px;

}



.arch-stage-tag {

  display: inline-block;

  font-family: var(--font-mono, monospace);

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.1em;

  color: #38bdf8;

  background: rgba(56, 189, 248, 0.12);

  border: 1px solid rgba(56, 189, 248, 0.25);

  padding: 2px 8px;

  border-radius: 3px;

  margin-bottom: 6px;

}



.arch-node-title {

  margin: 4px 0;

  font-size: 17px;

  font-weight: 700;

  color: #f8fafc;

  font-family: var(--font-title, sans-serif);

}



.arch-category-subtitle {

  font-size: 12px;

  color: #94a3b8;

  font-family: var(--font-mono, monospace);

}



.arch-metric-cards {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;

}



.arch-metric-box {

  background: rgba(2, 6, 23, 0.65);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 8px 10px;

  border-radius: 5px;

}



.arch-metric-lbl {

  display: block;

  font-size: 9.5px;

  font-family: var(--font-mono, monospace);

  color: #64748b;

  letter-spacing: 0.05em;

  margin-bottom: 3px;

}



.arch-metric-val {

  display: block;

  font-size: 12.5px;

  font-family: var(--font-mono, monospace);

  font-weight: 600;

  color: #e2e8f0;

}



.arch-formula-container {

  background: rgba(2, 6, 23, 0.8);

  border: 1px solid rgba(56, 189, 248, 0.2);

  border-radius: 6px;

  padding: 12px;

}



.arch-formula-header,

.arch-desc-header,

.arch-sublayers-header {

  font-size: 10.5px;

  font-family: var(--font-mono, monospace);

  font-weight: 700;

  letter-spacing: 0.08em;

  color: #38bdf8;

  margin-bottom: 8px;

}



.arch-math-box {

  font-size: 14px;

  color: #facc15;

  text-align: center;

  padding: 8px 0;

  overflow-x: auto;

}



.arch-desc-box {

  background: rgba(2, 6, 23, 0.5);

  border-left: 3px solid #38bdf8;

  padding: 10px 12px;

  border-radius: 4px;

}



.arch-desc-text {

  margin: 0;

  font-size: 12px;

  line-height: 1.55;

  color: #cbd5e1;

}



.arch-sublayers-box {

  background: rgba(2, 6, 23, 0.5);

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 6px;

  padding: 12px;

}



.arch-sublayers-list {

  margin: 0;

  padding-left: 18px;

  font-size: 11.5px;

  font-family: var(--font-mono, monospace);

  color: #94a3b8;

  line-height: 1.6;

}



.arch-sublayers-list li {

  margin-bottom: 4px;

}



/* Loss Surgery Panel */

.arch-loss-panel {

  background: rgba(2, 6, 23, 0.85);

  border: 1px solid rgba(245, 158, 11, 0.3);

  border-radius: 8px;

  padding: 14px 18px;

  flex: 1;

  min-height: 0;

  height: 100%;

  overflow-y: auto;

  scrollbar-width: thin;

  scrollbar-color: rgba(245, 158, 11, 0.35) transparent;

}



.arch-loss-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 16px;

  margin-top: 15px;

}



.arch-loss-card {

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 6px;

  padding: 14px;

}



.arch-loss-card-title {

  font-size: 13px;

  font-weight: 700;

  color: #f59e0b;

  font-family: var(--font-mono, monospace);

  margin-bottom: 8px;

}



.arch-loss-card-formula {

  background: rgba(2, 6, 23, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 4px;

  padding: 8px;

  margin-bottom: 8px;

  font-size: 13px;

  color: #facc15;

  text-align: center;

}



.arch-loss-card-desc {

  font-size: 11.5px;

  color: #94a3b8;

  line-height: 1.5;

  margin: 0;

}



/* ── XAI MATRIX MODE TOGGLES (THREAT VS ATTENTION) ── */

.matrix-mode-toggles {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 4px 6px;

  background: rgba(15, 23, 42, 0.85);

  padding: 5px 8px;

  border-radius: 6px;

  border: 1px solid rgba(255, 255, 255, 0.12);

}



.matrix-toggle-btn {

  background: transparent;

  color: #94a3b8;

  border: 1px solid transparent;

  padding: 4px 9px;

  border-radius: 4px;

  font-size: 10.5px;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.2s ease;

  display: flex;

  align-items: center;

  gap: 4px;

}



.matrix-toggle-btn:hover {

  color: #f1f5f9;

  background: rgba(255, 255, 255, 0.08);

}



.matrix-toggle-btn.active {

  background: rgba(59, 130, 246, 0.2);

  color: #38bdf8;

  border-color: rgba(56, 189, 248, 0.4);

  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);

}



#btn-matrix-mode-threat.active {

  background: rgba(239, 68, 68, 0.25);

  color: #f87171;

  border-color: rgba(248, 113, 113, 0.5);

  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);

}



#btn-matrix-mode-attention.active {

  background: rgba(168, 85, 247, 0.25);

  color: #c084fc;

  border-color: rgba(192, 132, 252, 0.5);

  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);

}



#btn-matrix-mode-head0.active {

  background: rgba(245, 158, 11, 0.25);

  color: #fbbf24;

  border-color: rgba(251, 191, 36, 0.5);

  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);

}



#btn-matrix-mode-head1.active {

  background: rgba(14, 165, 233, 0.25);

  color: #38bdf8;

  border-color: rgba(56, 189, 248, 0.5);

  box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);

}



#btn-matrix-mode-head2.active {

  background: rgba(16, 185, 129, 0.25);

  color: #34d399;

  border-color: rgba(52, 211, 153, 0.5);

  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);

}



#btn-matrix-mode-head3.active {

  background: rgba(217, 70, 239, 0.25);

  color: #e879f9;

  border-color: rgba(232, 121, 249, 0.5);

  box-shadow: 0 0 10px rgba(217, 70, 239, 0.3);

}



#btn-matrix-mode-ownership.active {

  background: rgba(99, 102, 241, 0.25);

  color: #818cf8;

  border-color: rgba(129, 140, 248, 0.5);

  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);

}



/* ═══════════════════════════════════════════════════════════════════════════ */

/* 📡 CHANNEL PIPELINE STRIP & CHANNEL DEPTH INSPECTION                       */

/* ═══════════════════════════════════════════════════════════════════════════ */



.arch-channel-pipeline-strip {

  display: flex;

  align-items: center;

  gap: 5px;

  background: rgba(2, 6, 23, 0.7);

  border: 1px solid rgba(56, 189, 248, 0.25);

  padding: 3px 10px;

  border-radius: 5px;

  font-family: var(--font-mono, monospace);

  font-size: 10px;

}



.ch-pipe-lbl {

  color: #38bdf8;

  font-weight: 700;

  letter-spacing: 0.05em;

  margin-right: 2px;

}



.ch-pipe-pill {

  color: #94a3b8;

  background: rgba(30, 41, 59, 0.6);

  padding: 1px 6px;

  border-radius: 3px;

  border: 1px solid rgba(255, 255, 255, 0.08);

}



.ch-pipe-pill.highlight {

  color: #38bdf8;

  border-color: rgba(56, 189, 248, 0.4);

  background: rgba(56, 189, 248, 0.12);

  font-weight: 700;

}



.ch-pipe-pill.heads {

  color: #f59e0b;

  border-color: rgba(245, 158, 11, 0.4);

  background: rgba(245, 158, 11, 0.12);

  font-weight: 700;

}



.ch-pipe-arr {

  color: #64748b;

  font-size: 9.5px;

}



.arch-metric-box.highlight-ch {

  border-color: rgba(56, 189, 248, 0.35);

  background: rgba(56, 189, 248, 0.08);

}



.accent-cyan {

  color: #38bdf8 !important;

  font-weight: 700 !important;

}



/* ==========================================================================

   MICRO-ARCHITECTURE & SUB-LAYER CONVOLUTIONAL EXPLODER

   ========================================================================== */



.arch-explode-action-box {

  margin-bottom: 12px;

}



.arch-micro-explode-btn {

  width: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(59, 130, 246, 0.28));

  border: 1px solid rgba(56, 189, 248, 0.45);

  color: #38bdf8;

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.08em;

  padding: 8px 12px;

  border-radius: 6px;

  cursor: pointer;

  transition: all 0.2s ease;

  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);

}



.arch-micro-explode-btn:hover {

  background: linear-gradient(135deg, rgba(6, 182, 212, 0.38), rgba(59, 130, 246, 0.45));

  border-color: #38bdf8;

  color: #ffffff;

  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);

  transform: translateY(-1px);

}



.arch-micro-explode-btn:active {

  transform: translateY(1px);

}



.arch-sublayers-header-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 10px;

}



.arch-layer-count-badge {

  font-size: 9.5px;

  font-family: var(--font-mono, monospace);

  background: rgba(56, 189, 248, 0.12);

  color: #38bdf8;

  border: 1px solid rgba(56, 189, 248, 0.25);

  padding: 2px 6px;

  border-radius: 4px;

  font-weight: 700;

  letter-spacing: 0.05em;

}



.inspector-micro-pipeline-container {

  display: flex;

  flex-direction: column;

  gap: 7px;

  max-height: 280px;

  overflow-y: auto;

  padding-right: 4px;

  scrollbar-width: thin;

  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;

}



.micro-card {

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-left: 3px solid #38bdf8;

  border-radius: 5px;

  padding: 7px 10px;

  transition: all 0.18s ease;

  cursor: pointer;

}



.micro-card:hover {

  background: rgba(30, 41, 59, 0.85);

  border-color: rgba(56, 189, 248, 0.35);

  border-left-color: #38bdf8;

  transform: translateX(2px);

}



.micro-card.selected {

  background: rgba(56, 189, 248, 0.14);

  border-color: #38bdf8;

  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);

}



.micro-card-top {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 4px;

}



.micro-card-type {

  font-family: var(--font-mono, monospace);

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 0.06em;

  padding: 1px 5px;

  border-radius: 3px;

  background: rgba(255, 255, 255, 0.08);

}



.micro-card-type.type-conv { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.micro-card-type.type-norm { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

.micro-card-type.type-act { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

.micro-card-type.type-attn { background: rgba(168, 85, 247, 0.2); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }

.micro-card-type.type-linear { background: rgba(236, 72, 153, 0.2); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.3); }

.micro-card-type.type-film { background: rgba(6, 182, 212, 0.2); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }

.micro-card-type.type-resblock { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }

.micro-card-type.type-pool { background: rgba(14, 165, 233, 0.2); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }

.micro-card-type.type-input { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.3); }

.micro-card-type.type-output { background: rgba(234, 179, 8, 0.2); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }



.micro-card-params {

  font-family: var(--font-mono, monospace);

  font-size: 9.5px;

  color: #94a3b8;

}



.micro-card-title {

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 700;

  color: #f1f5f9;

  margin-bottom: 3px;

}



.micro-card-dim {

  display: flex;

  align-items: center;

  gap: 4px;

  font-family: var(--font-mono, monospace);

  font-size: 9.5px;

  color: #cbd5e1;

}



.micro-dim-arrow {

  color: #38bdf8;

  font-weight: bold;

}



.micro-card-desc {

  font-size: 10.5px;

  color: #94a3b8;

  margin-top: 3px;

  line-height: 1.35;

}



/* Micro Architecture Canvas SVG Classes */

.micro-node-group {

  cursor: pointer;

  transition: opacity 0.2s ease;

}



.micro-node-group:hover .micro-node-rect {

  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));

  stroke-width: 2px;

}



.micro-node-group.selected .micro-node-rect {

  stroke: #38bdf8;

  stroke-width: 2.5px;

  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.7));

}





/* ═══════════════════════════════════════════════════════════════════════════ */

/* 📊 EMPIRICAL TACTICAL TELEMETRY & DOCTRINAL ROLES (XAI LAB)                 */

/* ═══════════════════════════════════════════════════════════════════════════ */



.tactical-telemetry-root {

  display: flex;

  flex-direction: column;

  gap: 16px;

  padding-bottom: 24px;

}



.empirical-telemetry-box {

  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(20, 24, 45, 0.95) 100%);

  border: 1px solid rgba(168, 85, 247, 0.3);

  border-radius: 8px;

  padding: 14px 18px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

}



.empirical-box-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 12px;

  padding-bottom: 8px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}



.empirical-box-title {

  font-size: 13px;

  font-weight: 800;

  letter-spacing: 0.8px;

  color: #f1f5f9;

  font-family: var(--font-mono, monospace);

  display: flex;

  align-items: center;

  gap: 8px;

}



.empirical-box-subtitle {

  font-size: 11px;

  color: #94a3b8;

  font-family: var(--font-mono, monospace);

}



.empirical-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 16px;

}



@media (max-width: 1200px) {

  .empirical-grid {

    grid-template-columns: 1fr;

  }

}



.empirical-col {

  background: rgba(11, 18, 30, 0.6);

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 6px;

  padding: 12px 14px;

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.empirical-col-title {

  font-size: 11px;

  font-weight: 700;

  color: #cbd5e1;

  font-family: var(--font-mono, monospace);

  text-transform: uppercase;

  letter-spacing: 0.6px;

  padding-bottom: 4px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}



.telemetry-row {

  display: flex;

  flex-direction: column;

  gap: 3px;

  margin-bottom: 4px;

}



.telemetry-row-label {

  display: flex;

  justify-content: space-between;

  font-size: 11px;

  font-family: var(--font-mono, monospace);

  color: #e2e8f0;

}



.telemetry-bar-wrap {

  height: 6px;

  background: rgba(255, 255, 255, 0.08);

  border-radius: 3px;

  overflow: hidden;

  position: relative;

}



.telemetry-bar-fill {

  height: 100%;

  border-radius: 3px;

  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);

}



.postures-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 12px;

}



.posture-card {

  background: rgba(15, 23, 42, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-left: 4px solid #ef4444;

  border-radius: 6px;

  padding: 12px 14px;

  display: flex;

  flex-direction: column;

  gap: 6px;

}



.posture-card-title {

  font-size: 12px;

  font-weight: 700;

  color: #f8fafc;

  font-family: var(--font-mono, monospace);

  display: flex;

  justify-content: space-between;

}



.posture-card-detail {

  font-size: 11px;

  color: #94a3b8;

  line-height: 1.4;

}



.mutation-rules-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 12px;

}



.mutation-rule-card {

  background: rgba(15, 23, 42, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-left: 4px solid #f59e0b;

  border-radius: 6px;

  padding: 12px 14px;

  display: flex;

  flex-direction: column;

  gap: 6px;

}



.doctrinal-roles-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 12px;

}



.doctrinal-role-card {

  background: rgba(15, 23, 42, 0.75);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-top: 3px solid #38bdf8;

  border-radius: 6px;

  padding: 12px 14px;

  display: flex;

  flex-direction: column;

  gap: 6px;

  transition: transform 0.2s ease, border-color 0.2s ease;

}



.doctrinal-role-card:hover {

  transform: translateY(-2px);

  border-color: rgba(255, 255, 255, 0.2);

}



.doctrinal-role-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.doctrinal-role-name {

  font-size: 12px;

  font-weight: 800;

  font-family: var(--font-mono, monospace);

  color: #f8fafc;

}



.doctrinal-role-pct {

  font-size: 12px;

  font-weight: 700;

  font-family: var(--font-mono, monospace);

  padding: 2px 6px;

  border-radius: 4px;

  background: rgba(255, 255, 255, 0.06);

}



.doctrinal-role-meta {

  font-size: 10.5px;

  color: #94a3b8;

  line-height: 1.4;

}



.doctrinal-role-meta strong {

  color: #cbd5e1;

}



.foundations-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

  gap: 14px;

}



.foundation-card {

  background: rgba(15, 23, 42, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.09);

  border-radius: 6px;

  padding: 14px 16px;

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.foundation-card-title {

  font-size: 12px;

  font-weight: 700;

  font-family: var(--font-mono, monospace);

  color: #38bdf8;

  letter-spacing: 0.6px;

}



.foundation-card-desc {

  font-size: 11px;

  color: #94a3b8;

  line-height: 1.4;

}



/* ==========================================================================

   2D AUTHENTIC HEXAGONAL HONEYCOMB MATRIX

   ========================================================================== */

.hex-matrix-hover-bar {

  display: flex;

  align-items: center;

  gap: 12px;

  background: rgba(15, 23, 42, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 6px 14px;

  border-radius: 6px;

  margin-bottom: 10px;

  font-family: var(--font-mono, monospace);

  font-size: 11px;

}



.hex-hover-badge {

  background: rgba(56, 189, 248, 0.15);

  color: #38bdf8;

  border: 1px solid rgba(56, 189, 248, 0.35);

  padding: 2px 8px;

  border-radius: 4px;

  font-weight: 700;

  letter-spacing: 0.05em;

  white-space: nowrap;

}



.hex-hover-text {

  color: #cbd5e1;

  font-size: 11px;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

}



.xai-hex-matrix-svg {

  width: 100%;

  max-width: 630px;

  height: auto;

  display: block;

  margin: 0 auto;

}



.hex-matrix-cell {

  cursor: pointer;

}



.hex-matrix-cell polygon {

  transition: stroke 0.15s ease, stroke-width 0.15s ease, filter 0.15s ease;

}



.hex-matrix-cell:hover polygon {

  stroke: #ffffff !important;

  stroke-width: 2.5px !important;

  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85)) !important;

}



/* ═══════════════════════════════════════════════════════════════════════════

   EDUCATIONAL RL & XAI INTERACTIVE LABORATORY STYLES

   ═══════════════════════════════════════════════════════════════════════════ */

.xai-academy-mission-banner {

  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));

  border: 1px solid rgba(56, 189, 248, 0.25);

  border-radius: 10px;

  padding: 16px 20px;

  margin-bottom: 20px;

  display: flex;

  flex-direction: column;

  gap: 14px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

}



.mission-badge-row {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 6px;

}



.mission-badge {

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 800;

  color: #38bdf8;

  background: rgba(56, 189, 248, 0.12);

  border: 1px solid rgba(56, 189, 248, 0.3);

  padding: 3px 8px;

  border-radius: 4px;

  letter-spacing: 0.5px;

}



.mission-tag {

  font-family: var(--font-mono, monospace);

  font-size: 10.5px;

  color: #94a3b8;

}



.mission-title {

  margin: 0 0 6px 0;

  font-size: 18px;

  font-weight: 800;

  color: #ffffff;

  letter-spacing: -0.3px;

}



.mission-subtitle {

  margin: 0;

  font-size: 13px;

  line-height: 1.5;

  color: #cbd5e1;

}



.academy-mode-selector {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding-top: 12px;

}



.academy-nav-btn {

  background: rgba(15, 23, 42, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #94a3b8;

  padding: 8px 14px;

  border-radius: 6px;

  font-size: 12.5px;

  font-weight: 600;

  cursor: pointer;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  transition: all 0.2s ease;

}



.academy-nav-btn:hover {

  background: rgba(56, 189, 248, 0.15);

  border-color: rgba(56, 189, 248, 0.4);

  color: #ffffff;

}



.academy-nav-btn.active {

  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.25));

  border-color: #38bdf8;

  color: #ffffff;

  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);

}



.academy-subview {

  animation: fadeInSubview 0.25s ease-out;

}



.academy-subview.hidden {

  display: none !important;

}



@keyframes fadeInSubview {

  from { opacity: 0; transform: translateY(4px); }

  to { opacity: 1; transform: translateY(0); }

}



/* RL Lab Grid */

.rl-lab-grid {

  display: grid;

  grid-template-columns: 360px 1fr;

  gap: 18px;

}



@media (max-width: 1024px) {

  .rl-lab-grid {

    grid-template-columns: 1fr;

  }

}



.rl-control-card, .rl-result-card {

  background: #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 8px;

  padding: 14px 16px;

}



.rl-card-title {

  margin: 0 0 4px 0;

  font-size: 14px;

  font-weight: 700;

  color: #f8fafc;

}



.rl-card-sub {

  margin: 0 0 8px 0;

  font-size: 11px;

  color: #94a3b8;

}



.rl-slider-group {

  margin-bottom: 7px;

}



.rl-slider-label {

  display: flex;

  justify-content: space-between;

  font-size: 12px;

  font-weight: 600;

  color: #cbd5e1;

  margin-bottom: 4px;

}



.rl-slider-val {

  font-family: var(--font-mono, monospace);

  color: #38bdf8;

  font-weight: 700;

}



.rl-slider-val.accent {

  color: #facc15;

}



.rl-slider {

  width: 100%;

  accent-color: #38bdf8;

  cursor: pointer;

}



.rl-slider-hint {

  font-size: 11px;

  color: #64748b;

  margin-top: 2px;

}



.rl-action-btn {

  width: 100%;

  background: linear-gradient(135deg, #0284c7, #2563eb);

  border: 1px solid #38bdf8;

  color: #ffffff;

  padding: 10px;

  border-radius: 6px;

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  margin-top: 10px;

  transition: all 0.2s ease;

}



.rl-action-btn:hover {

  filter: brightness(1.15);

  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);

}



.rl-breakdown-card {

  background: rgba(15, 23, 42, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 6px;

  padding: 12px;

  margin-top: 10px;

  display: flex;

  flex-direction: column;

  gap: 6px;

}



.breakdown-row {

  display: flex;

  justify-content: space-between;

  font-size: 11.5px;

  color: #94a3b8;

}



.breakdown-row strong {

  color: #f8fafc;

  font-family: var(--font-mono, monospace);

}



.breakdown-row strong.accent {

  color: #38bdf8;

}



.rl-card-header-bar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 12px;

}



.rl-pill-indicator {

  font-family: var(--font-mono, monospace);

  font-size: 10px;

  font-weight: 800;

  color: #10b981;

  background: rgba(16, 185, 129, 0.12);

  border: 1px solid rgba(16, 185, 129, 0.3);

  padding: 2px 6px;

  border-radius: 4px;

}



.rl-formula-box {

  background: #05080f;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 6px;

  padding: 12px 16px;

  margin-bottom: 14px;

  text-align: center;

  color: #fef08a;

  min-height: 48px;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow-x: auto;

  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);

}



.rl-formula-box .katex-display {

  margin: 2px 0 !important;

}



.rl-formula-box .katex {

  font-size: 1.15rem;

  color: #fef08a !important;

}

.rl-formula-box .katex * {

  color: #fef08a !important;

}



.rl-formula-box .katex-html {

  overflow-x: auto;

  overflow-y: hidden;

  max-width: 100%;

}



.rl-insights-box {

  background: rgba(168, 85, 247, 0.08);

  border-left: 3px solid #c084fc;

  padding: 10px 12px;

  font-size: 12px;

  line-height: 1.5;

  color: #cbd5e1;

  border-radius: 0 6px 6px 0;

  margin-top: 14px;

}



/* PUCT Chart Bars */

.puct-chart-container {

  display: flex;

  flex-direction: column;

  gap: 8px;

  min-height: 180px;

  padding: 10px;

  background: rgba(0, 0, 0, 0.25);

  border-radius: 6px;

}



.puct-bar-row {

  display: grid;

  grid-template-columns: 180px 1fr 90px;

  align-items: center;

  gap: 10px;

  font-size: 11.5px;

}



.puct-action-name {

  color: #f1f5f9;

  font-weight: 600;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.puct-bar-track {

  height: 20px;

  background: rgba(255, 255, 255, 0.05);

  border-radius: 4px;

  overflow: hidden;

  position: relative;

}



.puct-bar-fill {

  height: 100%;

  background: linear-gradient(90deg, #38bdf8, #818cf8);

  border-radius: 4px;

  transition: width 0.3s ease;

}



.puct-bar-stats {

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  color: #94a3b8;

  text-align: right;

}



/* Two-Hot Bins Chart */

.twohot-chart-container {

  display: flex;

  align-items: flex-end;

  gap: 3px;

  height: 180px;

  padding: 12px 8px;

  background: rgba(0, 0, 0, 0.3);

  border-radius: 6px;

  overflow-x: auto;

}



.twohot-bin-col {

  flex: 1;

  min-width: 6px;

  height: 100%;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  align-items: center;

  position: relative;

}



.twohot-bin-bar {

  width: 100%;

  background: rgba(148, 163, 184, 0.2);

  border-radius: 2px 2px 0 0;

  transition: height 0.15s ease, background-color 0.15s ease;

}



.twohot-bin-bar.active-lower {

  background: #38bdf8;

  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);

}



.twohot-bin-bar.active-upper {

  background: #facc15;

  box-shadow: 0 0 8px rgba(250, 204, 21, 0.8);

}



.twohot-bin-bar.gaussian-tail {

  background: rgba(168, 85, 247, 0.5);

}



/* World Model Trajectory Flow */

.wm-trajectory-flow {

  display: flex;

  align-items: center;

  gap: 10px;

  overflow-x: auto;

  padding: 14px 6px;

  min-height: 160px;

}



.wm-step-node {

  background: rgba(30, 41, 59, 0.8);

  border: 1px solid rgba(56, 189, 248, 0.3);

  border-radius: 6px;

  padding: 10px 12px;

  min-width: 130px;

  display: flex;

  flex-direction: column;

  gap: 5px;

}



.wm-node-header {

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 700;

  color: #38bdf8;

}



.wm-node-shape {

  font-family: var(--font-mono, monospace);

  font-size: 10px;

  color: #94a3b8;

}



.wm-node-pred {

  font-size: 10.5px;

  color: #facc15;

}



.wm-arrow-sep {

  color: #64748b;

  font-size: 16px;

  font-weight: 700;

}



/* PCGrad SVG Canvas */

.pcgrad-canvas-wrap {

  display: flex;

  justify-content: center;

  align-items: center;

  background: rgba(0, 0, 0, 0.3);

  border-radius: 6px;

  padding: 12px;

}



.pcgrad-svg {

  max-width: 480px;

  height: 240px;

}





/* ═══════════════════════════════════════════════════════════════════════════

   IN-GAME TACTICAL XAI & COGNITIVE TELEMETRY HUD ENHANCEMENTS

   Canonical Styles (Zero-Invention Invariant, 100% English)

   ═══════════════════════════════════════════════════════════════════════════ */



/* 1. Scoreboard Top Ribbon Neural Advantage Bar (Visible only on ultra-wide viewports >= 1750px) */

.sc-advantage-block {

  display: none !important;

}



@media (min-width: 1750px) {

  .sc-advantage-block {

    display: flex !important;

    flex-direction: column;

    justify-content: center;

    min-width: 150px;

    max-width: 180px;

    margin-left: 8px;

    padding: 2px 6px;

    background: rgba(10, 20, 28, 0.7);

    border: 1px solid rgba(0, 229, 255, 0.25);

    border-radius: 4px;

  }

}



.sc-adv-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 3px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 9.5px;

  letter-spacing: 0.5px;

}



.sc-adv-title {

  color: #8da4b5;

  font-weight: 700;

}



.sc-adv-val {

  color: #00e5ff;

  font-weight: 800;

}



.sc-adv-bar-track {

  width: 100%;

  height: 6px;

  background: rgba(213, 43, 30, 0.45);

  border-radius: 3px;

  overflow: hidden;

  position: relative;

}



.sc-adv-bar-fill {

  height: 100%;

  background: linear-gradient(90deg, #0057b7 0%, #00e5ff 100%);

  border-radius: 3px;

  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;

}



.btn-coach-pill {

  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%) !important;

  border: 1px solid #a855f7 !important;

  color: #e9d5ff !important;

  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);

  transition: all 0.2s ease-in-out;

}



.btn-coach-pill:hover {

  background: linear-gradient(135deg, rgba(147, 51, 234, 0.55) 0%, rgba(59, 130, 246, 0.55) 100%) !important;

  border-color: #c084fc !important;

  box-shadow: 0 0 14px rgba(192, 132, 252, 0.45);

  transform: translateY(-1px);

}



/* 2. Unit Dossier & Hover Card XAI Section */

.hover-xai-section {

  margin-top: 10px;

  padding: 8px 10px;

  background: rgba(12, 22, 34, 0.88);

  border: 1px solid rgba(0, 229, 255, 0.3);

  border-radius: 6px;

  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.08);

}



.hover-xai-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 6px;

}



.hover-xai-role-badge {

  font-size: 9.5px;

  font-weight: 800;

  padding: 2px 6px;

  border-radius: 4px;

  background: rgba(245, 158, 11, 0.22);

  border: 1px solid #f59e0b;

  color: #fbbf24;

  letter-spacing: 0.5px;

}



.hover-xai-grid {

  display: grid;

  grid-template-columns: 1fr;

  gap: 6px;

}



.hover-xai-item {

  display: flex;

  flex-direction: column;

  gap: 2px;

}



.hover-xai-item-head {

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 9.5px;

}



.hover-xai-val {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-weight: 700;

  font-size: 10px;

}



.hover-xai-val.safe { color: #00ff88; }

.hover-xai-val.moderate { color: #f59e0b; }

.hover-xai-val.high { color: #ff5252; }

.hover-xai-val.critical { color: #ff1744; text-shadow: 0 0 6px rgba(255, 23, 68, 0.5); }



.hover-xai-bar-wrap {

  width: 100%;

  height: 5px;

  background: rgba(255, 255, 255, 0.08);

  border-radius: 3px;

  overflow: hidden;

}



.hover-xai-bar {

  height: 100%;

  border-radius: 3px;

  transition: width 0.3s ease;

}



.hover-xai-bar.safe { background: #00ff88; box-shadow: 0 0 6px rgba(0, 255, 136, 0.4); }

.hover-xai-bar.moderate { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }

.hover-xai-bar.high { background: #ff5252; box-shadow: 0 0 6px rgba(255, 82, 82, 0.4); }

.hover-xai-bar.critical { background: #ff1744; box-shadow: 0 0 8px rgba(255, 23, 68, 0.6); }

.hover-xai-bar.attn { background: linear-gradient(90deg, #3b82f6, #00e5ff); }

.hover-xai-bar.attrition { background: linear-gradient(90deg, #f59e0b, #ef4444); }



/* 3. Hex Cell Inspector HUD XAI Intel */

.inspect-xai-section {

  margin-top: 10px;

  padding: 8px 10px;

  background: rgba(12, 22, 34, 0.88);

  border: 1px solid rgba(0, 229, 255, 0.28);

  border-radius: 6px;

}



.inspect-xai-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 4px;

}



.inspect-xai-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  font-weight: 700;

  color: #00e5ff;

  letter-spacing: 0.5px;

}



.inspect-threat-badge {

  font-size: 9.5px;

  font-weight: 800;

  padding: 2px 6px;

  border-radius: 4px;

  letter-spacing: 0.5px;

}



.inspect-threat-badge.safe {

  background: rgba(0, 255, 136, 0.18);

  border: 1px solid #00ff88;

  color: #00ff88;

}



.inspect-threat-badge.moderate {

  background: rgba(245, 158, 11, 0.22);

  border: 1px solid #f59e0b;

  color: #fbbf24;

}



.inspect-threat-badge.high {

  background: rgba(255, 82, 82, 0.25);

  border: 1px solid #ff5252;

  color: #ff5252;

}



.inspect-threat-badge.critical {

  background: rgba(255, 23, 68, 0.35);

  border: 1px solid #ff1744;

  color: #ff1744;

  box-shadow: 0 0 8px rgba(255, 23, 68, 0.4);

}



.inspect-xai-detail {

  font-size: 11px;

  line-height: 1.35;

  color: #d1d5db;

  margin-bottom: 6px;

}



.inspect-xai-metrics {

  display: flex;

  justify-content: space-between;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  color: #9ca3af;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding-top: 4px;

}



.inspect-xai-metrics strong {

  color: #00e5ff;

}



/* 4. Real-Time Bot Cognitive Intent Stream Widget */

.ai-thought-feed-panel {

  position: fixed;

  bottom: 84px;

  right: 18px;

  width: 380px;

  background: rgba(10, 18, 28, 0.94);

  backdrop-filter: blur(12px);

  border: 1px solid rgba(0, 229, 255, 0.35);

  border-radius: 8px;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 229, 255, 0.12);

  z-index: 999;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  color: #f3f4f6;

  overflow: hidden;

  transition: all 0.25s ease-in-out;

}



.ai-thought-feed-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 8px 12px;

  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12) 0%, rgba(147, 51, 234, 0.15) 100%);

  border-bottom: 1px solid rgba(0, 229, 255, 0.25);

}



.ai-feed-title-wrap {

  display: flex;

  align-items: center;

  gap: 8px;

}



.ai-feed-icon {

  font-size: 14px;

}



.ai-feed-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  font-weight: 800;

  color: #00e5ff;

  letter-spacing: 0.8px;

}



.ai-feed-agent-badge {

  font-size: 8.5px;

  font-weight: 800;

  padding: 1px 5px;

  background: rgba(168, 85, 247, 0.25);

  border: 1px solid #a855f7;

  color: #c084fc;

  border-radius: 3px;

}



.ai-feed-controls {

  display: flex;

  align-items: center;

  gap: 4px;

}



.btn-feed-ctrl {

  background: transparent;

  border: none;

  color: #9ca3af;

  font-size: 11px;

  padding: 2px 6px;

  cursor: pointer;

  border-radius: 3px;

  transition: background 0.15s, color 0.15s;

}



.btn-feed-ctrl:hover {

  background: rgba(255, 255, 255, 0.1);

  color: #ffffff;

}



.ai-thought-feed-body {

  padding: 10px 12px;

  max-height: 480px;

  overflow-y: auto;

  transition: max-height 0.3s ease;

}



.ai-thought-feed-body.minimized {

  max-height: 0;

  padding-top: 0;

  padding-bottom: 0;

  overflow: hidden;

}



.ai-feed-action-row {

  display: flex;

  align-items: center;

  gap: 6px;

  margin-bottom: 8px;

  padding: 5px 8px;

  background: rgba(0, 229, 255, 0.08);

  border-left: 3px solid #00e5ff;

  border-radius: 4px;

  font-size: 11px;

}



.ai-feed-action-label {

  font-size: 9px;

  font-weight: 800;

  color: #9ca3af;

}



.ai-feed-action-name {

  font-weight: 800;

  color: #ffd700;

}



.ai-feed-action-target {

  margin-left: auto;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  color: #00e5ff;

}



.ai-feed-metrics-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 6px;

  margin-bottom: 8px;

}



.ai-feed-metric {

  display: flex;

  justify-content: space-between;

  padding: 4px 6px;

  background: rgba(255, 255, 255, 0.04);

  border-radius: 4px;

  font-size: 10px;

}



.ai-feed-metric .m-label {

  color: #9ca3af;

}



.ai-feed-metric .m-val {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-weight: 700;

  color: #00e5ff;

}



.ai-feed-subheading {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 9.5px;

  font-weight: 700;

  color: #c084fc;

  letter-spacing: 0.5px;

  margin-bottom: 3px;

}



.ai-feed-causal-box, .ai-feed-counterfactual-box {

  margin-bottom: 8px;

  padding: 6px 8px;

  background: rgba(20, 30, 44, 0.6);

  border-radius: 4px;

  border: 1px solid rgba(255, 255, 255, 0.06);

}



.ai-feed-p {

  font-size: 11px;

  line-height: 1.4;

  color: #e5e7eb;

  margin: 0;

}



.ai-feed-factors-section {

  padding-top: 4px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

}



.ai-factor-row {

  display: grid;

  grid-template-columns: 110px 1fr 34px;

  align-items: center;

  gap: 8px;

  font-size: 10px;

  margin-bottom: 4px;

}



.ai-factor-row .f-label {

  color: #9ca3af;

  white-space: nowrap;

}



.ai-factor-row .f-bar-wrap {

  width: 100%;

  height: 5px;

  background: rgba(255, 255, 255, 0.08);

  border-radius: 3px;

  overflow: hidden;

}



.ai-factor-row .f-bar {

  height: 100%;

  background: #f59e0b;

  border-radius: 3px;

}



.ai-factor-row .f-bar.defilade { background: #00ff88; }

.ai-factor-row .f-bar.vp { background: #00e5ff; }

.ai-factor-row .f-bar.risk { background: #ff5252; }



.ai-factor-row .f-val {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  text-align: right;

  color: #d1d5db;

}



/* 5. AI Tactical Coach Advisor Modal */

.ai-coach-backdrop {

  position: fixed;

  inset: 0;

  background: rgba(5, 10, 16, 0.85);

  backdrop-filter: blur(10px);

  z-index: 100060;

  display: flex;

  align-items: center;

  justify-content: center;

}



.ai-coach-dialog {

  width: 640px;

  max-width: 92vw;

  max-height: 90vh;

  background: #0d1520;

  border: 1px solid #a855f7;

  border-radius: 10px;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(168, 85, 247, 0.25);

  display: flex;

  flex-direction: column;

  overflow: hidden;

}



.ai-coach-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 18px;

  background: linear-gradient(90deg, rgba(168, 85, 247, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);

  border-bottom: 1px solid rgba(168, 85, 247, 0.3);

}



.ai-coach-brand {

  display: flex;

  align-items: center;

  gap: 12px;

}



.coach-icon {

  font-size: 24px;

}



.coach-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 15px;

  font-weight: 800;

  color: #e9d5ff;

  letter-spacing: 0.8px;

}



.coach-sub {

  font-size: 11px;

  color: #c084fc;

}



.btn-close-coach {

  background: transparent;

  border: none;

  color: #9ca3af;

  font-size: 16px;

  padding: 4px 8px;

  cursor: pointer;

  border-radius: 4px;

}



.btn-close-coach:hover {

  background: rgba(255, 255, 255, 0.1);

  color: #ffffff;

}



.ai-coach-body {

  padding: 16px 18px;

  overflow-y: auto;

  display: flex;

  flex-direction: column;

  gap: 14px;

}



.coach-unit-banner {

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 8px 12px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 6px;

}



.c-unit-label {

  font-size: 10px;

  font-weight: 800;

  color: #9ca3af;

}



.c-unit-name {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 13px;

  font-weight: 800;

  color: #ffd700;

}



.c-unit-role {

  margin-left: auto;

  font-size: 11px;

  color: #00e5ff;

  font-weight: 700;

}



.coach-section-label {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  font-weight: 700;

  color: #a855f7;

  letter-spacing: 0.6px;

}



.coach-rec-container {

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.coach-rec-card {

  padding: 10px 12px;

  border-radius: 6px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  background: rgba(20, 30, 44, 0.5);

  display: flex;

  flex-direction: column;

  gap: 4px;

}



.coach-rec-card.optimal {

  border-color: #00e5ff;

  background: rgba(0, 229, 255, 0.08);

  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);

}



.coach-rec-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.coach-rank-badge {

  font-size: 9px;

  font-weight: 800;

  padding: 2px 6px;

  border-radius: 3px;

}



.coach-rank-badge.rank-1 {

  background: rgba(0, 229, 255, 0.25);

  border: 1px solid #00e5ff;

  color: #00e5ff;

}



.coach-rank-badge.rank-2, .coach-rank-badge.rank-3 {

  background: rgba(255, 255, 255, 0.1);

  color: #d1d5db;

}



.coach-rec-value {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  font-weight: 700;

  color: #00ff88;

}



.coach-rec-title {

  font-size: 13px;

  font-weight: 800;

  color: #ffffff;

}



.coach-rec-meta {

  font-size: 10.5px;

  color: #9ca3af;

}



.coach-rec-desc {

  font-size: 11px;

  color: #d1d5db;

  line-height: 1.35;

}



.coach-rationale-box {

  padding: 10px 12px;

  background: rgba(147, 51, 234, 0.1);

  border: 1px solid rgba(168, 85, 247, 0.25);

  border-radius: 6px;

}



.coach-rationale-head {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  font-weight: 700;

  color: #c084fc;

  margin-bottom: 4px;

}



.coach-rationale-text {

  font-size: 11.5px;

  line-height: 1.45;

  color: #e9d5ff;

  margin: 0;

}



.ai-coach-footer {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 18px;

  background: rgba(10, 16, 24, 0.9);

  border-top: 1px solid rgba(255, 255, 255, 0.08);

}



.coach-hint {

  font-size: 11px;

  color: #6b7280;

}



.coach-hint strong {

  color: #d1d5db;

}



.btn-coach-confirm {

  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);

  border: 1px solid #a855f7;

  color: #ffffff;

  font-weight: 700;

  font-size: 11.5px;

  padding: 6px 14px;

  border-radius: 5px;

  cursor: pointer;

  transition: all 0.2s ease;

}



.btn-coach-confirm:hover {

  background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);

  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);

}





/* ═══════════════════════════════════════════════════════════════════════════

   EXECUTION TELEMETRY: SCENARIO VP CAPTURE & ENGINE ACTION DISTRIBUTIONS

   ═══════════════════════════════════════════════════════════════════════════ */



.scenario-vp-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 14px;

  margin-bottom: 20px;

}



@media (max-width: 1200px) {

  .scenario-vp-grid {

    grid-template-columns: 1fr;

  }

}



.scenario-vp-card {

  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(20, 26, 48, 0.9) 100%);

  border: 1px solid rgba(0, 229, 255, 0.25);

  border-radius: 8px;

  padding: 14px 16px;

  display: flex;

  flex-direction: column;

  gap: 10px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

}



.scenario-vp-header {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 8px;

}



.scenario-vp-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 13px;

  font-weight: 800;

  color: #f8fafc;

  letter-spacing: 0.5px;

}



.scenario-vp-meta {

  font-size: 10.5px;

  color: #94a3b8;

}



.badge-scenario-dominance {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 9px;

  font-weight: 800;

  padding: 2px 7px;

  border-radius: 4px;

  white-space: nowrap;

}



.badge-scenario-dominance.afu_forces {

  background: rgba(0, 229, 255, 0.2);

  border: 1px solid #00e5ff;

  color: #00e5ff;

}



.badge-scenario-dominance.ru_forces {

  background: rgba(239, 68, 68, 0.2);

  border: 1px solid #ef4444;

  color: #f87171;

}



.scenario-vp-scores-row {

  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  gap: 8px;

  background: rgba(10, 16, 26, 0.6);

  padding: 8px 10px;

  border-radius: 6px;

}



.vp-score-box {

  display: flex;

  flex-direction: column;

  gap: 2px;

}



.vp-score-box.afu {

  align-items: flex-start;

}



.vp-score-box.ru {

  align-items: flex-end;

}



.vp-box-label {

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.5px;

}



.vp-score-box.afu .vp-box-label { color: #38bdf8; }

.vp-score-box.ru .vp-box-label { color: #f87171; }



.vp-box-num {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 16px;

  font-weight: 800;

  color: #ffffff;

}



.vp-box-rate {

  font-size: 10px;

  color: #94a3b8;

}



.vp-box-rate strong {

  color: #e2e8f0;

}



.vp-score-divider {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  font-weight: 800;

  color: #64748b;

}



.scenario-vp-bar-track {

  width: 100%;

  height: 8px;

  background: rgba(239, 68, 68, 0.5);

  border-radius: 4px;

  overflow: hidden;

  position: relative;

}



.scenario-vp-bar-fill.afu {

  height: 100%;

  background: linear-gradient(90deg, #0057b7 0%, #00e5ff 100%);

  border-radius: 4px;

  transition: width 0.4s ease;

}



.scenario-vp-footer {

  display: flex;

  justify-content: space-between;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  color: #94a3b8;

  border-top: 1px solid rgba(255, 255, 255, 0.06);

  padding-top: 6px;

}



/* Action Distribution by Engine & Scenario */

.action-engine-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 14px;

  margin-bottom: 24px;

}



@media (max-width: 1200px) {

  .action-engine-grid {

    grid-template-columns: 1fr;

  }

}



.action-scenario-card {

  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(20, 26, 48, 0.9) 100%);

  border: 1px solid rgba(168, 85, 247, 0.25);

  border-radius: 8px;

  padding: 14px 16px;

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.action-card-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  padding-bottom: 6px;

}



.action-card-scenario {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 12px;

  font-weight: 800;

  color: #c084fc;

}



.action-card-badge {

  font-size: 8.5px;

  font-weight: 800;

  padding: 1px 5px;

  background: rgba(255, 255, 255, 0.06);

  color: #94a3b8;

  border-radius: 3px;

}



.action-engines-list {

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.action-engine-row {

  display: flex;

  flex-direction: column;

  gap: 4px;

}



.action-engine-head {

  display: flex;

  justify-content: space-between;

  font-size: 11px;

}



.action-engine-name {

  font-weight: 800;

}



.action-engine-name.efficientzero-v2 { color: #a855f7; }

.action-engine-name.heuristicbot { color: #f59e0b; }

.action-engine-name.randombot { color: #94a3b8; }



.action-engine-total {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 9.5px;

  color: #64748b;

}



.action-tri-bar {

  display: flex;

  width: 100%;

  height: 8px;

  border-radius: 4px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.06);

}



.tri-seg {

  height: 100%;

  transition: width 0.3s ease;

}



.tri-seg.maneuver { background: #38bdf8; }

.tri-seg.fire { background: #ef4444; }

.tri-seg.wait { background: #eab308; }



.action-tri-legend {

  display: flex;

  justify-content: space-between;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 9.5px;

  color: #94a3b8;

}



.leg-item {

  display: flex;

  align-items: center;

  gap: 4px;

}



.leg-dot {

  width: 6px;

  height: 6px;

  border-radius: 50%;

  display: inline-block;

}



.leg-item.maneuver .leg-dot { background: #38bdf8; }

.leg-item.fire .leg-dot { background: #ef4444; }

.leg-item.wait .leg-dot { background: #eab308; }





/* ─── Model Quality & Competency Indicators ─── */

.model-quality-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));

  gap: 12px;

  margin-bottom: 20px;

}



.quality-indicator-card {

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 12px;

  display: flex;

  flex-direction: column;

  gap: 6px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

  transition: transform 0.2s ease, border-color 0.2s ease;

}



.quality-indicator-card:hover {

  transform: translateY(-2px);

  border-color: rgba(168, 85, 247, 0.4);

}



.quality-indicator-head {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.indicator-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  font-weight: 700;

  color: #94a3b8;

  letter-spacing: 0.5px;

  text-transform: uppercase;

}



.indicator-val {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 20px;

  font-weight: 800;

  color: #f1f5f9;

}



.indicator-track {

  width: 100%;

  height: 6px;

  background: rgba(255, 255, 255, 0.08);

  border-radius: 3px;

  overflow: hidden;

  margin: 2px 0;

}



.indicator-fill {

  height: 100%;

  border-radius: 3px;

  transition: width 0.4s ease;

}



.indicator-sub {

  font-size: 10px;

  color: #64748b;

  line-height: 1.3;

}



/* ─── Curriculum Quality Gate Section ─── */

.curriculum-gate-container {

  display: grid;

  grid-template-columns: 2fr 1.2fr;

  gap: 14px;

  margin-bottom: 20px;

}



@media (max-width: 900px) {

  .curriculum-gate-container {

    grid-template-columns: 1fr;

  }

}



.curriculum-gate-card {

  background: linear-gradient(135deg, rgba(24, 24, 37, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);

  border: 1px solid rgba(168, 85, 247, 0.25);

  border-radius: 8px;

  padding: 16px;

  display: flex;

  flex-direction: column;

  gap: 10px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);

}



.gate-header-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.gate-stage-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 14px;

  font-weight: 800;

  color: #c084fc;

  letter-spacing: 0.5px;

}



.gate-status-badge {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  font-weight: 700;

  padding: 4px 8px;

  border-radius: 4px;

  text-transform: uppercase;

  letter-spacing: 0.5px;

}



.gate-status-badge.gate-badge-passed {

  background: rgba(16, 185, 129, 0.2);

  color: #34d399;

  border: 1px solid #10b981;

}



.gate-status-badge.gate-badge-reinforcing {

  background: rgba(245, 158, 11, 0.2);

  color: #fbbf24;

  border: 1px solid #f59e0b;

}



.gate-kpi-row {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 8px;

  background: rgba(0, 0, 0, 0.25);

  border-radius: 6px;

  padding: 10px;

}



.gate-kpi-item {

  display: flex;

  flex-direction: column;

  gap: 2px;

}



.gate-kpi-item .lbl {

  font-size: 9.5px;

  color: #94a3b8;

  text-transform: uppercase;

  font-family: 'Share Tech Mono', monospace, sans-serif;

}



.gate-kpi-item .val {

  font-size: 16px;

  font-weight: 700;

  color: #f8fafc;

  font-family: 'Share Tech Mono', monospace, sans-serif;

}



/* ─── Matchup Benchmark Cards ─── */

.matchup-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 12px;

  margin-bottom: 20px;

}



.matchup-card {

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 14px;

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.matchup-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.matchup-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 12px;

  font-weight: 700;

  color: #f1f5f9;

}



.matchup-badge {

  font-size: 9px;

  font-weight: 700;

  padding: 2px 6px;

  border-radius: 4px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

}



.matchup-stats-row {

  display: flex;

  justify-content: space-between;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  color: #cbd5e1;

}



/* ─── Checkpoint Evolution Table ─── */

.checkpoint-table-container {

  background: rgba(15, 23, 42, 0.6);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 12px;

  overflow-x: auto;

  margin-bottom: 20px;

}



.checkpoint-table {

  width: 100%;

  border-collapse: collapse;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

}



.checkpoint-table th {

  text-align: left;

  padding: 8px 10px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  color: #94a3b8;

  font-weight: 700;

  text-transform: uppercase;

  font-size: 10px;

}



.checkpoint-table td {

  padding: 8px 10px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.04);

  color: #e2e8f0;

}



.checkpoint-table tr:hover td {

  background: rgba(255, 255, 255, 0.03);

}





/* ==========================================================================

   TACTICAL ARTWORK & THEATER ASSETS INTEGRATION

   - Command Tent Briefing Photo (Field Notebook)

   - Crossroads Outpost Hero Banner (Match Lobby)

   ========================================================================== */



/* ─── Field Polaroid Briefing Photo (SITREP Tab) ─── */

.field-polaroid-briefing {

  display: flex;

  flex-direction: column;

  background: #fcfaf4;

  border: 1px solid #c8cfbe;

  border-radius: 4px;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12);

  margin-bottom: 18px;

  padding: 8px 8px 10px 8px;

  transform: rotate(-0.35deg);

  position: relative;

  transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.field-polaroid-briefing:hover {

  transform: rotate(0deg) scale(1.005);

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);

}



.polaroid-photo-frame {

  position: relative;

  width: 100%;

  height: 210px;

  border-radius: 2px;

  overflow: hidden;

  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);

  background: #111a12;

}



.tactical-field-photo {

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center 40%;

  display: block;

}



.photo-classified-stamp {

  position: absolute;

  top: 10px;

  right: 12px;

  background: rgba(181, 42, 26, 0.88);

  color: #fff;

  font-family: var(--font-display, monospace);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 1.5px;

  padding: 3px 8px;

  border: 1px solid rgba(255, 255, 255, 0.4);

  border-radius: 2px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);

  text-transform: uppercase;

  pointer-events: none;

}



.polaroid-caption-strip {

  display: flex;

  flex-direction: column;

  gap: 2px;

  padding-top: 8px;

  padding-left: 4px;

}



.photo-caption-title {

  font-family: var(--font-display, monospace);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1px;

  color: #243522;

}



.photo-caption-meta {

  font-size: 10px;

  font-weight: 600;

  color: #687d65;

  letter-spacing: 0.5px;

}



/* ─── Match Lobby Theater Crossroads Hero Banner ─── */

.lobby-theater-banner {

  position: relative;

  height: 165px;

  overflow: hidden;

  border-bottom: 1px solid rgba(0, 230, 255, 0.35);

  display: flex;

  align-items: flex-end;

  flex-shrink: 0;

}



.theater-banner-bg {

  position: absolute;

  inset: 0;

  background-image: url('/assets/art/scenarios/field_crossroads_outpost.jpg');

  background-size: cover;

  background-position: center 32%;

  filter: saturate(1.18) contrast(1.1) brightness(1.08);

  transform: scale(1.02);

  transition: transform 0.6s ease;

}



.lobby-dialog:hover .theater-banner-bg {

  transform: scale(1.05);

}



.theater-banner-overlay {

  position: absolute;

  inset: 0;

  background: 

    linear-gradient(90deg, rgba(8, 14, 22, 0.60) 0%, rgba(8, 14, 22, 0.25) 45%, rgba(8, 14, 22, 0.10) 75%, rgba(8, 14, 22, 0.45) 100%),

    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(8, 14, 22, 0.60) 100%);

}



.theater-banner-content {

  position: relative;

  z-index: 2;

  padding: 14px 24px;

  display: flex;

  flex-direction: column;

  gap: 7px;

  width: 100%;

}



.theater-signpost-badges {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}



.signpost-chip {

  display: inline-flex;

  align-items: center;

  gap: 5px;

  background: rgba(18, 29, 41, 0.85);

  border: 1px solid rgba(0, 230, 255, 0.4);

  padding: 3px 9px;

  border-radius: 4px;

  font-family: var(--font-mono, monospace);

  font-size: 11px;

  font-weight: 700;

  color: #00e6ff;

  letter-spacing: 0.8px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);

  cursor: pointer;

  transition: all 0.2s ease;

}



.signpost-chip:hover {

  background: rgba(0, 230, 255, 0.2);

  border-color: #00e6ff;

  color: #ffffff;

  transform: translateY(-1px);

  box-shadow: 0 4px 10px rgba(0, 230, 255, 0.25);

}

.signpost-chip.active {

  background: rgba(0, 230, 255, 0.3);

  border-color: #00e6ff;

  color: #ffffff;

  box-shadow: 0 0 14px rgba(0, 230, 255, 0.5);

}



.signpost-chip .sign-arrow {

  font-size: 11px;

}



.theater-banner-title {

  font-family: var(--font-display, sans-serif);

  font-size: 16px;

  font-weight: 800;

  letter-spacing: 1.4px;

  color: #ffffff;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 230, 255, 0.6);

}



.theater-banner-sub {

  font-size: 11.5px;

  color: #e2e8f0;

  max-width: 720px;

  line-height: 1.4;

  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);

  background: rgba(8, 14, 22, 0.55);

  padding: 4px 10px;

  border-radius: 4px;

  backdrop-filter: blur(4px);

  -webkit-backdrop-filter: blur(4px);

  border-left: 2px solid #00e6ff;

  display: inline-block;

}





/* ─── Tactical Cue Card Tab Styling ─── */

.cue-card-wrapper {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 16px;

  padding: 8px;

}



.cue-card-frame {

  position: relative;

  max-width: 900px;

  width: 100%;

  border-radius: 8px;

  overflow: hidden;

  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(200, 134, 26, 0.4);

  background: #1a0e05;

}



.cue-card-img {

  width: 100%;

  height: auto;

  display: block;

  border-radius: 6px;

  transition: transform 0.3s ease;

}



.cue-card-frame:hover .cue-card-img {

  transform: scale(1.01);

}



.cue-card-quick-jumps {

  display: flex;

  align-items: center;

  gap: 10px;

  flex-wrap: wrap;

  justify-content: center;

  padding: 8px 14px;

  background: rgba(18, 10, 4, 0.75);

  border: 1px solid rgba(200, 134, 26, 0.3);

  border-radius: 6px;

  width: 100%;

  max-width: 900px;

}



.jump-label {

  font-size: 11px;

  font-weight: 800;

  color: #ffcc66;

  letter-spacing: 1px;

}



.btn-jump-tab {

  background: #3d1f08;

  color: #ffe8b0;

  border: 1px solid #c8861a;

  border-radius: 4px;

  padding: 5px 12px;

  font-size: 11px;

  font-weight: 700;

  font-family: inherit;

  cursor: pointer;

  transition: all 0.2s ease;

}



.btn-jump-tab:hover {

  background: #c8861a;

  color: #1a0a02;

  transform: translateY(-1px);

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);

}



/* ─── Dynamic Modifier Cells & Badges ─── */

.mod-icon {

  display: inline-block;

  margin-right: 6px;

  font-size: 13px;

}



.mod-cell.pos {

  color: #4ade80 !important;

  font-weight: 800;

}



.mod-cell.neg {

  color: #f87171 !important;

  font-weight: 800;

}



.mod-cell.neutral {

  color: #94a3b8 !important;

}



.applies-badge {

  display: inline-block;

  background: rgba(200, 134, 26, 0.2);

  border: 1px solid rgba(200, 134, 26, 0.4);

  color: #ffe8b0;

  padding: 2px 7px;

  border-radius: 3px;

  font-size: 10px;

  font-weight: 700;

}



.penalty-tag {
  display: inline-block;
  background: #7f1d1d !important;
  border: 1.5px solid #dc2626 !important;
  color: #ffffff !important;
  padding: 2.5px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.recovery-text {
  color: #0f766e;
  font-size: 11px;
  font-weight: 600;
}

.rank-tier-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.rank-tier-tag.tier-0 { background: #f1f5f9; color: #334155; border: 1.5px solid #64748b; }
.rank-tier-tag.tier-1 { background: #dbeafe; color: #1e40af; border: 1.5px solid #2563eb; }
.rank-tier-tag.tier-2 { background: #fef9c3; color: #854d0e; border: 1.5px solid #ca8a04; }

.tactical-notes {
  font-size: 11px;
  color: #1f2937;
  line-height: 1.4;
}

.weapon-slot-badge {
  display: inline-block;
  padding: 2.5px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.weapon-slot-badge.ap {
  background: #7f1d1d !important;
  color: #ffffff !important;
  border: 1.5px solid #dc2626 !important;
}

.weapon-slot-badge.he {
  background: #9a3412 !important;
  color: #ffffff !important;
  border: 1.5px solid #ea580c !important;
}

.weapon-slot-badge.auto {
  background: #78350f !important;
  color: #ffffff !important;
  border: 1.5px solid #ca8a04 !important;
}

.weapon-slot-badge.ew {
  background: #0e7490 !important;
  color: #ffffff !important;
  border: 1.5px solid #0891b2 !important;
}

.weapon-slot-badge.def {
  background: #14532d !important;
  color: #ffffff !important;
  border: 1.5px solid #16a34a !important;
}





/* ==========================================================================

   AUTHENTIC MILITARY TABLILLAS (CUE CARDS) ON FIELD DESK

   - Blank weathered cardboard overlaid on rustic camp desk with brass compass

   - 100% dynamic typewriter tables rendered from JSON SSoT

   ========================================================================== */



.tablilla-modal-panel {

  width: min(96vw, 1100px) !important;

  max-height: 92vh !important;

  background: #1e140d !important;

  border: 4px solid #3d2412 !important;

  border-radius: 8px !important;

  box-shadow: 0 0 0 2px #c8861a, 0 24px 70px rgba(0, 0, 0, 0.95) !important;

  display: flex;

  flex-direction: column;

}



.tablilla-nav-bar {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  align-items: center;

  gap: 5px 8px;

  background: #140d07;

  padding: 6px 12px;

  border-bottom: 2px solid #5a3818;

  overflow: visible;

  flex-shrink: 0;

}



.btn-tablilla-selector {

  background: #2a180b;

  color: #c8a060;

  border: 1px solid #5a3818;

  border-radius: 4px;

  padding: 4px 10px;

  font-family: 'JetBrains Mono', 'Courier New', monospace;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  white-space: nowrap;

  transition: all 0.2s ease;

}



.btn-tablilla-selector:hover {

  background: #4a2810;

  color: #ffe066;

  border-color: #c8861a;

}



.btn-tablilla-selector.active {

  background: linear-gradient(180deg, #c8861a, #8b5120);

  color: #1a0a02;

  font-weight: 900;

  border-color: #ffd700;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);

}



.tablilla-stage {

  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  max-height: 75vh;

  background: #120b06;

  overflow: hidden;

  display: flex;

  align-items: center;

  justify-content: center;

}



.tablilla-bg-img {

  width: 100%;

  height: 100%;

  object-fit: contain;

  display: block;

  user-select: none;

  pointer-events: none;

}



/* Printable Overlay Surface strictly positioned over the blank card */

.tablilla-overlay-surface {

  position: absolute;

  top: 4.8%;

  left: 12.2%;

  width: 76.5%;

  height: 84.8%;

  box-sizing: border-box;

  overflow-y: auto;

  padding: 10px 16px;

  display: flex;

  flex-direction: column;

}



.tablilla-view {

  display: none;

  width: 100%;

  height: 100%;

  flex-direction: column;

  font-family: 'JetBrains Mono', 'Courier Prime', 'Courier New', monospace;

  color: #1a1510;

}



.tablilla-view.active {

  display: flex;

}



/* Authentic Military Typewriter Stencil Header */

.tablilla-header {

  text-align: center;

  border-bottom: 2px dashed #4a3e2e;

  padding-bottom: 4px;

  margin-bottom: 8px;

  padding-right: 75px; /* Leave space for BTR silhouette */

  flex-shrink: 0;

}



.tablilla-title {

  font-size: 14px;

  font-weight: 900;

  letter-spacing: 0.8px;

  color: #15110c;

  text-transform: uppercase;

}



.tablilla-subtitle {

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.6px;

  color: #4a3c2c;

}



.tablilla-sec-title {

  font-size: 11px;

  font-weight: 900;

  letter-spacing: 0.5px;

  color: #1c150e;

  margin-bottom: 4px;

  text-transform: uppercase;

}



.tablilla-grid-split {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

  width: 100%;

  flex: 1;

}



.tablilla-col-left,

.tablilla-col-right {

  display: flex;

  flex-direction: column;

}



.tablilla-table {

  width: 100%;

  border-collapse: collapse;

  font-size: 11px;

  background: rgba(245, 238, 220, 0.45);

  margin-bottom: 6px;

}



.tablilla-table th,

.tablilla-table td {

  border: 1.5px solid #2e261d;

  padding: 2.5px 5px;

  color: #18130e;

  line-height: 1.3;

}



.tablilla-table th {

  background: rgba(220, 208, 185, 0.85);

  font-weight: 900;

  text-transform: uppercase;

  font-size: 10px;

  letter-spacing: 0.5px;

}



.tablilla-table td.mod-num {

  font-weight: 900;

  text-align: center;

}

.tablilla-table td.mod-num.pos { color: #166534; }

.tablilla-table td.mod-num.neg { color: #991b1b; }



.tablilla-notes {

  font-size: 10px;

  color: #2b241c;

}



/* In-Game Thought Feed Counterfactual Lab CTA Button */

.btn-goto-cf-lab {

  background: rgba(56, 189, 248, 0.18);

  border: 1px solid rgba(56, 189, 248, 0.6);

  color: #38bdf8;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.5px;

  padding: 4px 10px;

  border-radius: 4px;

  cursor: pointer;

  display: inline-flex;

  align-items: center;

  gap: 5px;

  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);

  transition: all 0.2s ease;

}



.btn-goto-cf-lab:hover {

  background: rgba(56, 189, 248, 0.35);

  border-color: #38bdf8;

  color: #ffffff;

  box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);

  transform: translateY(-1px);

}





/* ══════════════════════════════════════════════════════════════════════════ */

/* TACTICAL ACTION LOG & BATTLE LEDGER (C4ISR MODAL & TIMELINE)             */

/* ══════════════════════════════════════════════════════════════════════════ */



.action-log-backdrop {

  position: fixed;

  inset: 0;

  background: rgba(3, 7, 18, 0.82);

  backdrop-filter: blur(10px);

  z-index: 9999;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 20px;

}



.action-log-backdrop.hidden {

  display: none !important;

}



.action-log-dialog {

  width: 92vw;

  max-width: 1150px;

  height: 88vh;

  max-height: 880px;

  background: #090e17;

  border: 1px solid rgba(56, 189, 248, 0.4);

  border-radius: 10px;

  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.15);

  display: flex;

  flex-direction: column;

  overflow: hidden;

  color: #f1f5f9;

  font-family: var(--font-sans, 'Chakra Petch', sans-serif);

}



.action-log-header {

  padding: 14px 20px;

  background: rgba(15, 23, 42, 0.95);

  border-bottom: 1px solid rgba(56, 189, 248, 0.25);

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-shrink: 0;

}



.action-log-header-left {

  display: flex;

  align-items: center;

  gap: 12px;

}



.action-log-icon {

  font-size: 24px;

}



.action-log-title {

  font-size: 15px;

  font-weight: 800;

  letter-spacing: 0.8px;

  color: #38bdf8;

  text-transform: uppercase;

}



.action-log-subtitle {

  font-size: 10.5px;

  color: #94a3b8;

  letter-spacing: 0.4px;

  font-family: monospace;

}



.action-log-close-btn {

  background: rgba(239, 68, 68, 0.15);

  border: 1px solid rgba(239, 68, 68, 0.4);

  color: #fca5a5;

  padding: 6px 14px;

  border-radius: 4px;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s;

}



.action-log-close-btn:hover {

  background: rgba(239, 68, 68, 0.35);

  color: #ffffff;

  border-color: #ef4444;

}



.action-log-metrics-bar {

  display: grid;

  grid-template-columns: repeat(6, 1fr);

  gap: 8px;

  padding: 10px 20px;

  background: rgba(10, 15, 26, 0.8);

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  flex-shrink: 0;

}



@media (max-width: 900px) {

  .action-log-metrics-bar {

    grid-template-columns: repeat(3, 1fr);

  }

}



.log-metric-card {

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 5px;

  padding: 6px 10px;

  display: flex;

  flex-direction: column;

}



.log-metric-card .metric-label {

  font-size: 9.5px;

  color: #94a3b8;

  font-weight: 700;

  letter-spacing: 0.5px;

  text-transform: uppercase;

  margin-bottom: 2px;

}



.log-metric-card .metric-val {

  font-size: 14px;

  font-weight: 800;

  font-family: monospace;

  color: #f8fafc;

}



.log-metric-card.afu {

  border-color: rgba(56, 189, 248, 0.3);

}



.log-metric-card.afu .metric-val {

  color: #38bdf8;

}



.log-metric-card.ru {

  border-color: rgba(248, 113, 113, 0.3);

}



.log-metric-card.ru .metric-val {

  color: #f87171;

}



.log-metric-card.cas {

  border-color: rgba(251, 191, 36, 0.3);

}



.log-metric-card.cas .metric-val {

  color: #fbbf24;

}



.action-log-filter-toolbar {

  padding: 10px 20px;

  background: rgba(15, 23, 42, 0.65);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;

  flex-shrink: 0;

}



.log-filter-group {

  display: flex;

  align-items: center;

  gap: 6px;

}



.filter-group-label {

  font-size: 10px;

  font-weight: 700;

  color: #94a3b8;

  letter-spacing: 0.5px;

}



.log-faction-pills {

  display: flex;

  gap: 3px;

}



.log-faction-pill {

  background: rgba(30, 41, 59, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #94a3b8;

  padding: 3px 8px;

  border-radius: 4px;

  font-size: 10.5px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s;

}



.log-faction-pill.active {

  background: #38bdf8;

  color: #0f172a;

  border-color: #38bdf8;

}



.log-faction-pill.afu.active {

  background: #0284c7;

  color: #ffffff;

  border-color: #38bdf8;

}



.log-faction-pill.ru.active {

  background: #dc2626;

  color: #ffffff;

  border-color: #f87171;

}



.log-select {

  background: #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.18);

  color: #e2e8f0;

  padding: 4px 8px;

  border-radius: 4px;

  font-size: 11px;

  font-family: inherit;

  outline: none;

  cursor: pointer;

  max-width: 200px;

}



.log-select:focus {

  border-color: #38bdf8;

}



.search-group {

  flex-grow: 1;

  min-width: 140px;

}



.log-search-input {

  width: 100%;

  background: #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.18);

  color: #f8fafc;

  padding: 4px 10px;

  border-radius: 4px;

  font-size: 11px;

  font-family: inherit;

  outline: none;

}



.log-search-input:focus {

  border-color: #38bdf8;

  box-shadow: 0 0 6px rgba(56, 189, 248, 0.3);

}



.action-log-filter-toolbar .log-filter-group-actions {

  display: flex;

  gap: 6px;

  margin-left: auto;

}



.btn-log-action {

  background: rgba(30, 41, 59, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.15);

  color: #cbd5e1;

  padding: 4px 10px;

  border-radius: 4px;

  font-size: 10.5px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s;

}



.btn-log-action:hover {

  background: rgba(51, 65, 85, 0.9);

  color: #ffffff;

  border-color: rgba(255, 255, 255, 0.3);

}



.btn-log-action.export {

  background: rgba(16, 185, 129, 0.15);

  border-color: rgba(16, 185, 129, 0.4);

  color: #6ee7b7;

}



.btn-log-action.export:hover {

  background: rgba(16, 185, 129, 0.3);

  color: #ffffff;

}



.action-log-feed {

  flex-grow: 1;

  overflow-y: auto;

  padding: 16px 20px;

  display: flex;

  flex-direction: column;

  gap: 10px;

}



.log-entry-card {

  background: rgba(15, 23, 42, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 6px;

  padding: 10px 14px;

  transition: border-color 0.2s, transform 0.1s;

}



.log-entry-card:hover {

  border-color: rgba(56, 189, 248, 0.35);

}



.log-entry-card.card-side-afu {

  border-left: 3px solid #38bdf8;

}



.log-entry-card.card-side-ru {

  border-left: 3px solid #f87171;

}



.log-card-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 6px;

}



.log-card-meta-left {

  display: flex;

  align-items: center;

  gap: 8px;

}



.log-step-tag {

  font-family: monospace;

  font-size: 10px;

  font-weight: 800;

  color: #94a3b8;

  background: rgba(30, 41, 59, 0.8);

  padding: 1px 5px;

  border-radius: 3px;

  border: 1px solid rgba(255, 255, 255, 0.1);

}



.log-faction-badge {

  font-size: 10px;

  font-weight: 800;

  padding: 1px 6px;

  border-radius: 3px;

}



.log-faction-badge.badge-faction-afu {

  background: rgba(2, 132, 199, 0.25);

  color: #38bdf8;

  border: 1px solid rgba(56, 189, 248, 0.4);

}



.log-faction-badge.badge-faction-ru {

  background: rgba(220, 38, 38, 0.25);

  color: #f87171;

  border: 1px solid rgba(248, 113, 113, 0.4);

}



.log-actor-badge {

  font-size: 9px;

  font-weight: 700;

  padding: 1px 5px;

  border-radius: 3px;

  text-transform: uppercase;

}



.log-actor-badge.actor-badge-human {

  background: rgba(168, 85, 247, 0.2);

  color: #c084fc;

  border: 1px solid rgba(168, 85, 247, 0.4);

}



.log-actor-badge.actor-badge-bot {

  background: rgba(16, 185, 129, 0.2);

  color: #34d399;

  border: 1px solid rgba(16, 185, 129, 0.4);

}



.log-action-pill {

  font-size: 10.5px;

  font-weight: 800;

  padding: 2px 8px;

  border-radius: 4px;

  letter-spacing: 0.5px;

  text-transform: uppercase;

}



.action-badge-move {

  background: rgba(16, 185, 129, 0.2);

  color: #34d399;

  border: 1px solid rgba(16, 185, 129, 0.4);

}



.action-badge-attack {

  background: rgba(239, 68, 68, 0.25);

  color: #f87171;

  border: 1px solid rgba(239, 68, 68, 0.5);

}



.action-badge-wait {

  background: rgba(245, 158, 11, 0.2);

  color: #fbbf24;

  border: 1px solid rgba(245, 158, 11, 0.4);

}



.action-badge-pass {

  background: rgba(59, 130, 246, 0.2);

  color: #60a5fa;

  border: 1px solid rgba(59, 130, 246, 0.4);

}



.action-badge-turn {

  background: rgba(139, 92, 246, 0.2);

  color: #a78bfa;

  border: 1px solid rgba(139, 92, 246, 0.4);

}



.log-unit-headline {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 4px;

}



.log-unit-headline .unit-name {

  font-size: 12.5px;

  font-weight: 700;

  color: #ffffff;

}



.log-hex-route {

  display: flex;

  align-items: center;

  gap: 4px;

  cursor: pointer;

  background: rgba(30, 41, 59, 0.6);

  padding: 2px 6px;

  border-radius: 4px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: all 0.2s;

}



.log-hex-route:hover {

  background: rgba(56, 189, 248, 0.2);

  border-color: #38bdf8;

}



.log-hex-route .hex-pill {

  font-family: monospace;

  font-size: 11px;

  font-weight: 700;

  color: #cbd5e1;

}



.log-hex-route .hex-pill.dest {

  color: #38bdf8;

}



.log-hex-route .hex-arrow {

  color: #94a3b8;

  font-size: 10px;

}



.log-narrative-text {

  font-size: 11.5px;

  color: #cbd5e1;

  line-height: 1.4;

}



.log-combat-subbox {

  margin-top: 6px;

  padding: 6px 10px;

  background: rgba(2, 6, 23, 0.65);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 4px;

  display: flex;

  flex-direction: column;

  gap: 4px;

}



.combat-sub-header {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  align-items: center;

}



.combat-weapon-tag {

  font-size: 10px;

  font-weight: 700;

  color: #94a3b8;

  background: rgba(30, 41, 59, 0.8);

  padding: 1px 6px;

  border-radius: 3px;

}



.combat-dmg-tag {

  font-size: 10.5px;

  font-weight: 800;

  font-family: monospace;

}



.combat-dmg-tag.damage-hit {

  color: #f87171;

}



.combat-dmg-tag.damage-defended {

  color: #94a3b8;

}



.combat-kill-tag {

  font-size: 9.5px;

  font-weight: 800;

  color: #ffffff;

  background: #dc2626;

  padding: 1px 6px;

  border-radius: 3px;

  letter-spacing: 0.5px;

}



.combat-melee-tag {

  font-size: 9.5px;

  font-weight: 800;

  color: #fbbf24;

  background: rgba(245, 158, 11, 0.2);

  border: 1px solid rgba(245, 158, 11, 0.4);

  padding: 1px 5px;

  border-radius: 3px;

}



.combat-target-row {

  font-size: 11px;

  color: #cbd5e1;

}



.combat-target-row .target-label {

  color: #94a3b8;

}



.combat-target-row .target-name {

  color: #f87171;

  font-weight: 700;

  font-family: monospace;

}



.log-empty-state {

  margin: auto;

  text-align: center;

  padding: 40px 20px;

  color: #94a3b8;

}



.log-empty-icon {

  font-size: 40px;

  margin-bottom: 12px;

}



.log-empty-title {

  font-size: 14px;

  font-weight: 800;

  letter-spacing: 0.6px;

  color: #cbd5e1;

  margin-bottom: 6px;

}



.log-empty-sub {

  font-size: 11px;

  max-width: 400px;

  margin: 0 auto;

}



.btn-tactical-dossier-log {

  width: 100%;

  margin-top: 8px;

  padding: 6px 12px;

  background: rgba(56, 189, 248, 0.15);

  border: 1px solid rgba(56, 189, 248, 0.4);

  border-radius: 4px;

  color: #38bdf8;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 6px;

}



.btn-tactical-dossier-log:hover {

  background: rgba(56, 189, 248, 0.3);

  color: #ffffff;

  border-color: #38bdf8;

}





/* ─── Active Match Resume Alert Banner in Lobby ─── */

.lobby-active-match-banner {

  background: rgba(14, 165, 233, 0.15);

  border: 1px solid rgba(56, 189, 248, 0.45);

  border-radius: 8px;

  padding: 10px 16px;

  margin: 12px 20px 0 20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  backdrop-filter: blur(8px);

  animation: pulseActiveBorder 2.5s infinite;

}



.lobby-active-match-banner.hidden {

  display: none !important;

}



.active-banner-info {

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 12px;

  color: #e0f2fe;

}



.active-pulse-dot {

  color: #38bdf8;

  font-size: 14px;

  animation: pulseDot 1.5s infinite;

}



@keyframes pulseDot {

  0%, 100% { opacity: 1; transform: scale(1); }

  50% { opacity: 0.4; transform: scale(0.85); }

}



@keyframes pulseActiveBorder {

  0%, 100% { border-color: rgba(56, 189, 248, 0.45); box-shadow: 0 0 10px rgba(56, 189, 248, 0.15); }

  50% { border-color: rgba(56, 189, 248, 0.85); box-shadow: 0 0 18px rgba(56, 189, 248, 0.35); }

}



.btn-lobby-resume {

  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);

  border: 1px solid #38bdf8;

  border-radius: 5px;

  color: #ffffff;

  padding: 6px 14px;

  font-size: 11.5px;

  font-weight: 800;

  letter-spacing: 0.5px;

  cursor: pointer;

  transition: all 0.2s ease;

  white-space: nowrap;

}



.btn-lobby-resume:hover {

  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);

  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);

  transform: translateY(-1px);

}





/* ═══════════════════════════════════════════════════════════════════════════

   OP-REF 007: CANONICAL TACTICAL RULES CODEX (SSoT) VIEWER STYLING

   ═══════════════════════════════════════════════════════════════════════════ */

.codex-viewer-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 15px;

  padding: 10px 14px;

  background: rgba(10, 16, 24, 0.94);

  border-bottom: 1px solid rgba(0, 229, 255, 0.3);

  border-radius: 6px 6px 0 0;

  margin-bottom: 12px;

}



.codex-header-title {

  display: flex;

  align-items: center;

  gap: 10px;

}



.codex-header-icon {

  font-size: 24px;

}



.codex-main-heading {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 13.5px;

  font-weight: 700;

  color: #00e5ff;

  letter-spacing: 0.8px;

  margin: 0;

}



.codex-subtext {

  font-size: 10px;

  color: #8da4b5;

  letter-spacing: 0.3px;

}



.codex-search-bar {

  display: flex;

  align-items: center;

  gap: 8px;

  background: rgba(4, 8, 14, 0.85);

  border: 1px solid rgba(0, 229, 255, 0.35);

  border-radius: 4px;

  padding: 4px 10px;

}



.codex-search-icon {

  font-size: 13px;

  opacity: 0.8;

}



.codex-search-field {

  background: transparent;

  border: none;

  outline: none;

  color: #e0f7fa;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  width: 250px;

}



.codex-search-field::placeholder {

  color: rgba(141, 164, 181, 0.6);

}



.codex-count-badge {

  font-size: 9.5px;

  font-weight: 700;

  color: #00e5ff;

  background: rgba(0, 229, 255, 0.12);

  border: 1px solid rgba(0, 229, 255, 0.3);

  padding: 2px 7px;

  border-radius: 3px;

  white-space: nowrap;

}



.codex-category-filters {

  display: flex;

  flex-wrap: wrap;

  gap: 5px;

  margin-top: 6px;

}



.codex-cat-btn {

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(0, 229, 255, 0.25);

  color: #94a3b8;

  padding: 3px 8px;

  font-size: 9.5px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-weight: 600;

  border-radius: 3px;

  cursor: pointer;

  transition: all 0.15s ease;

  white-space: nowrap;

}



.codex-cat-btn:hover {

  background: rgba(0, 229, 255, 0.15);

  color: #38bdf8;

  border-color: #38bdf8;

}



.codex-cat-btn.active {

  background: rgba(0, 229, 255, 0.25);

  color: #00e5ff;

  border-color: #00e5ff;

  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);

}



.codex-cat-btn.highlight-bot {

  border-color: rgba(245, 158, 11, 0.5);

  color: #fbbf24;

}



.codex-cat-btn.highlight-bot.active {

  background: rgba(245, 158, 11, 0.25);

  color: #f59e0b;

  border-color: #f59e0b;

  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);

}





.codex-cards-scroll {

  display: flex;

  flex-direction: column;

  gap: 12px;

  max-height: 520px;

  overflow-y: auto;

  padding-right: 6px;

}



.codex-cards-scroll::-webkit-scrollbar {

  width: 6px;

}



.codex-cards-scroll::-webkit-scrollbar-track {

  background: rgba(4, 8, 14, 0.6);

  border-radius: 3px;

}



.codex-cards-scroll::-webkit-scrollbar-thumb {

  background: rgba(0, 229, 255, 0.4);

  border-radius: 3px;

}



.codex-rule-card {

  background: rgba(8, 14, 22, 0.88);

  border: 1px solid rgba(0, 229, 255, 0.22);

  border-left: 3px solid #00e5ff;

  border-radius: 5px;

  padding: 12px 14px;

  transition: all 0.2s ease;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);

}



.codex-rule-card:hover {

  border-color: rgba(0, 229, 255, 0.55);

  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15);

  transform: translateY(-1px);

}



.codex-card-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 6px;

}



.codex-id-cluster {

  display: flex;

  align-items: center;

  gap: 8px;

}



.codex-id-badge {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  font-weight: 800;

  color: #111;

  background: #00e5ff;

  padding: 2px 6px;

  border-radius: 3px;

  letter-spacing: 0.5px;

}



.codex-rule-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 13px;

  font-weight: 700;

  color: #ffffff;

  letter-spacing: 0.4px;

}



.codex-category-pill {

  font-size: 9.5px;

  font-weight: 700;

  color: #ffb74d;

  background: rgba(255, 183, 77, 0.12);

  border: 1px solid rgba(255, 183, 77, 0.35);

  padding: 2px 8px;

  border-radius: 3px;

  letter-spacing: 0.5px;

}



.codex-summary {

  font-size: 11.5px;

  color: #b0bec5;

  margin: 0 0 8px 0;

  line-height: 1.4;

}



.codex-mechanic-box {

  background: rgba(4, 8, 14, 0.6);

  border-left: 2px solid rgba(255, 215, 0, 0.6);

  padding: 6px 10px;

  border-radius: 0 4px 4px 0;

  margin-bottom: 8px;

}



.codex-section-label {

  display: block;

  font-size: 9px;

  font-weight: 700;

  color: #ffd54f;

  letter-spacing: 0.6px;

  margin-bottom: 2px;

}



.codex-mechanic-text {

  font-size: 11px;

  color: #cfd8dc;

  margin: 0;

  line-height: 1.35;

}



.codex-formula-box {

  background: rgba(4, 10, 18, 0.85);

  border: 1px solid rgba(0, 229, 255, 0.18);

  border-radius: 4px;

  padding: 6px 10px;

  margin-bottom: 8px;

}



.codex-formula-header {

  display: flex;

  align-items: center;

  gap: 5px;

  margin-bottom: 4px;

}



.codex-formula-icon {

  font-size: 11px;

}



.codex-formula-label {

  font-size: 9px;

  font-weight: 700;

  color: #80deea;

  letter-spacing: 0.5px;

}



.codex-latex-math {

  font-size: 12px;

  color: #ffffff;

  padding: 4px 0;

  text-align: center;

}



.codex-footer-meta {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  align-items: center;

  font-size: 9.5px;

  margin-top: 6px;

  padding-top: 6px;

  border-top: 1px dashed rgba(255, 255, 255, 0.08);

}



.codex-meta-badge {

  padding: 2px 6px;

  border-radius: 3px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  letter-spacing: 0.3px;

}



.codex-meta-badge.source {

  background: rgba(144, 202, 249, 0.1);

  color: #90caf9;

  border: 1px solid rgba(144, 202, 249, 0.25);

}



.codex-meta-badge.contract {

  background: rgba(165, 214, 167, 0.1);

  color: #a5d6a7;

  border: 1px solid rgba(165, 214, 167, 0.25);

}



.codex-meta-badge.test {

  background: rgba(178, 223, 219, 0.1);

  color: #80cbc4;

  border: 1px solid rgba(128, 203, 196, 0.25);

}



.pulse-end-turn {

  background: rgba(16, 185, 129, 0.35) !important;

  border-color: #10b981 !important;

  color: #ffffff !important;

  box-shadow: 0 0 16px rgba(16, 185, 129, 0.7) !important;

  animation: pulse-turn-active 1.5s infinite ease-in-out !important;

}





/* ─── ROW 1: Operational Theater Telemetry Strip (Balanced Center Bar) ─── */

.ribbon-theater-strip {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  background: rgba(0, 230, 255, 0.04);

  border: 1px solid rgba(0, 230, 255, 0.22);

  border-radius: 4px;

  padding: 3px 12px;

  font-family: var(--font-mono, 'JetBrains Mono', monospace);

  font-size: 10px;

  color: #94a3b8;

  flex: 1;

  max-width: 960px;

  margin: 0 auto;

  box-shadow: inset 0 0 8px rgba(0, 230, 255, 0.05);

  overflow: hidden;

  white-space: nowrap;

}



.theater-telemetry-badge {

  display: flex;

  align-items: center;

  gap: 5px;

  white-space: nowrap;

}



.telemetry-icon {

  font-size: 11px;

  line-height: 1;

}



.telemetry-label {

  color: #64748b;

  font-weight: 700;

  letter-spacing: 0.5px;

}



.telemetry-val {

  color: #cbd5e1;

  font-weight: 600;

}



.telemetry-val.active {

  color: #10b981;

  font-weight: 700;

}



.telemetry-sep {

  color: rgba(255, 255, 255, 0.15);

  font-weight: 300;

}



.force-afu {

  color: #00e6ff;

  font-weight: 700;

}



.force-ru {

  color: #ff4466;

  font-weight: 700;

}



/* ─── ROW 2: Expanded Tactical Match HUD & Live Battlefield Sitrep Bar ─── */

.match-hud-section {

  flex: 1 !important;

  min-width: 0 !important;

  display: flex !important;

  align-items: center !important;

  gap: 6px !important;

}



.hud-sitrep-bar {

  display: flex;

  align-items: center;

  gap: 8px;

  flex: 1;

  min-width: 0;

  margin: 0 4px;

}



.force-casualties-block {

  display: flex;

  align-items: center;

  gap: 6px;

  flex-shrink: 0;

}



.casualty-pill {

  display: flex;

  align-items: center;

  gap: 5px;

  background: rgba(0, 0, 0, 0.45);

  border-radius: 3px;

  padding: 2px 7px;

  font-family: var(--font-mono, 'JetBrains Mono', monospace);

  font-size: 9.5px;

  font-weight: 700;

  white-space: nowrap;

}



.casualty-pill.afu {

  border: 1px solid rgba(0, 180, 255, 0.45);

  color: #00e6ff;

}



.casualty-pill.ru {

  border: 1px solid rgba(255, 70, 70, 0.45);

  color: #ff6677;

}



.casualty-pill .pill-flag {

  font-size: 11px;

  line-height: 1;

}



.casualty-pill .pill-label {

  color: #94a3b8;

  font-weight: 700;

}



.casualty-pill .pill-val {

  font-weight: 800;

}



.directive-ticker-block {

  display: flex;

  align-items: center;

  gap: 7px;

  background: rgba(0, 230, 255, 0.05);

  border: 1px solid rgba(0, 230, 255, 0.25);

  border-radius: 4px;

  padding: 3px 10px;

  flex: 1;

  min-width: 0;

  font-family: var(--font-mono, 'JetBrains Mono', monospace);

  font-size: 10px;

  font-weight: 700;

  color: #00e6ff;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  box-shadow: inset 0 0 6px rgba(0, 230, 255, 0.08);

}



.ticker-beacon-dot {

  width: 6.5px;

  height: 6.5px;

  border-radius: 50%;

  background: #00ffcc;

  box-shadow: 0 0 6px #00ffcc;

  animation: pulseBeacon 1.8s infinite;

  flex-shrink: 0;

}



@keyframes pulseBeacon {

  0% { transform: scale(0.9); opacity: 0.6; }

  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px #00ffcc; }

  100% { transform: scale(0.9); opacity: 0.6; }

}



.ticker-label {

  color: #ffd700;

  font-weight: 800;

  letter-spacing: 0.5px;

  flex-shrink: 0;

}



.ticker-content {

  color: #e2e8f0;

  font-weight: 600;

  overflow: hidden;

  text-overflow: ellipsis;

}



/* ─── ROW 2 RIGHT: Quick View Mode Shortcuts ─── */

.quick-view-shortcuts {

  display: flex;

  align-items: center;

  gap: 4px;

  flex-shrink: 0;

}



.btn-quick-shortcut {

  background: rgba(15, 23, 42, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.18);

  color: #94a3b8;

  font-family: var(--font-mono, 'JetBrains Mono', monospace);

  font-size: 9.5px;

  font-weight: 700;

  padding: 0 7px;

  height: 25px;

  border-radius: 3px;

  cursor: pointer;

  transition: all 0.15s ease;

  white-space: nowrap;

}



.btn-quick-shortcut:hover {

  border-color: #00e6ff;

  color: #00e6ff;

  background: rgba(0, 230, 255, 0.12);

}



.btn-quick-shortcut.active {

  border-color: #00e6ff;

  color: #00e6ff;

  background: rgba(0, 230, 255, 0.22);

  box-shadow: 0 0 6px rgba(0, 230, 255, 0.35);

}



.btn-quick-shortcut.highlight-fow {

  border-color: rgba(16, 185, 129, 0.45);

  color: #10b981;

}



.btn-quick-shortcut.highlight-fow:hover {

  background: rgba(16, 185, 129, 0.18);

  border-color: #10b981;

}



/* Responsive Scaling for Screen Resolutions */

@media (max-width: 1720px) {

  .theater-telemetry-badge.theater-weather {

    display: none;

  }

}



@media (max-width: 1550px) {

  .theater-telemetry-badge.theater-orbat {

    display: none;

  }

  .casualty-pill .pill-label {

    display: none;

  }

}



@media (max-width: 1380px) {

  .ribbon-theater-strip {

    display: none;

  }

  .quick-view-shortcuts {

    display: none;

  }

}



/* ─── XAI Academy Dual Knowledge Depth Selector ─── */

.xai-depth-selector-container {

  display: flex;

  align-items: center;

  gap: 12px;

  margin-top: 10px;

  padding: 8px 12px;

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(56, 189, 248, 0.25);

  border-radius: 6px;

  width: fit-content;

}



.depth-selector-title {

  font-family: var(--font-mono, monospace);

  font-size: 10.5px;

  font-weight: 800;

  color: #94a3b8;

  letter-spacing: 0.5px;

}



.depth-buttons-group {

  display: flex;

  gap: 6px;

}



.btn-depth-toggle {

  background: rgba(30, 41, 59, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.15);

  color: #94a3b8;

  padding: 5px 12px;

  border-radius: 4px;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  transition: all 0.18s ease;

}



.btn-depth-toggle:hover {

  background: rgba(51, 65, 85, 0.9);

  color: #ffffff;

  border-color: rgba(56, 189, 248, 0.5);

}



.btn-depth-toggle.active[data-depth="tactical"] {

  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));

  border-color: #10b981;

  color: #6ee7b7;

  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);

}



.btn-depth-toggle.active[data-depth="math"] {

  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(126, 34, 206, 0.35));

  border-color: #c084fc;

  color: #e9d5ff;

  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);

}



/* ─── Dual Knowledge Concept Card Blocks ─── */

.concept-level-block {

  margin: 10px 0 6px 0;

  padding: 10px 12px;

  border-radius: 6px;

  transition: all 0.2s ease;

}



.concept-level-block.tactical-block {

  background: rgba(16, 185, 129, 0.08);

  border: 1px solid rgba(16, 185, 129, 0.25);

}



.concept-level-block.math-block {

  background: rgba(168, 85, 247, 0.08);

  border: 1px solid rgba(168, 85, 247, 0.25);

}



.level-indicator {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  font-family: var(--font-mono, monospace);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.5px;

  margin-bottom: 6px;

  text-transform: uppercase;

}



.level-indicator.tactical {

  color: #34d399;

}



.level-indicator.math {

  color: #c084fc;

}



.level-indicator.tactical-sub {

  color: #6ee7b7;

  font-size: 9.5px;

}



.concept-level-block .level-text {

  margin: 0;

  font-size: 12.5px;

  line-height: 1.55;

  color: #e2e8f0;

}



.tactical-field-tip {

  margin-top: 8px;

  padding-top: 6px;

  border-top: 1px solid rgba(16, 185, 129, 0.2);

  font-size: 11.5px;

  color: #a7f3d0;

  line-height: 1.45;

}



.concept-math-drawer {

  margin-top: 8px;

  border: 1px solid rgba(168, 85, 247, 0.2);

  border-radius: 6px;

  background: rgba(15, 23, 42, 0.6);

  padding: 6px 10px;

}



.concept-math-drawer summary {

  font-size: 11px;

  font-weight: 700;

  color: #c084fc;

  cursor: pointer;

  outline: none;

  list-style: none;

  display: flex;

  align-items: center;

  gap: 6px;

}



.concept-math-drawer summary::-webkit-details-marker {

  display: none;

}



.concept-math-drawer .math-text {

  margin-top: 8px;

  font-size: 12px;

  line-height: 1.5;

  color: #cbd5e1;

}



.concept-card-references {

  margin-top: 10px;

  padding-top: 8px;

  border-top: 1px solid rgba(255, 255, 255, 0.06);

  font-size: 10px;

  color: #64748b;

  font-family: var(--font-mono, monospace);

}





/* ==========================================================================

   DYNAMIC EXECUTION TELEMETRY & CURRICULUM TRACEABILITY VIEWER

   ========================================================================== */

.exec-live-toolbar {

  display: flex;

  flex-wrap: wrap;

  justify-content: space-between;

  align-items: center;

  gap: 12px;

  background: rgba(15, 23, 42, 0.92);

  border: 1px solid rgba(56, 189, 248, 0.28);

  border-radius: 8px;

  padding: 10px 16px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

}



.exec-toolbar-left {

  display: flex;

  align-items: center;

  gap: 12px;

}



.exec-sync-pill {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  font-weight: 700;

  padding: 4px 10px;

  border-radius: 4px;

  background: rgba(16, 185, 129, 0.15);

  border: 1px solid #10b981;

  color: #34d399;

  letter-spacing: 0.5px;

}



.exec-sync-pill.paused {

  background: rgba(245, 158, 11, 0.15);

  border-color: #f59e0b;

  color: #fbbf24;

}



.exec-pulse-dot {

  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: #34d399;

  box-shadow: 0 0 8px #34d399;

  animation: pulseBeacon 1.4s infinite;

}



.exec-sync-pill.paused .exec-pulse-dot {

  background: #fbbf24;

  box-shadow: none;

  animation: none;

}



@keyframes pulseBeacon {

  0% { transform: scale(0.9); opacity: 0.6; }

  50% { transform: scale(1.2); opacity: 1; }

  100% { transform: scale(0.9); opacity: 0.6; }

}



.btn-exec-ctrl {

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.14);

  color: #cbd5e1;

  padding: 4px 10px;

  border-radius: 4px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  font-weight: 700;

  cursor: pointer;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  transition: all 0.15s ease;

}



.btn-exec-ctrl:hover {

  background: rgba(56, 189, 248, 0.2);

  border-color: #38bdf8;

  color: #ffffff;

}



.exec-toolbar-right {

  display: flex;

  align-items: center;

  gap: 8px;

  flex-wrap: wrap;

}



.exec-filter-btn {

  background: rgba(15, 23, 42, 0.6);

  border: 1px solid rgba(255, 255, 255, 0.1);

  color: #94a3b8;

  padding: 3px 8px;

  border-radius: 4px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.15s ease;

}



.exec-filter-btn:hover {

  color: #f1f5f9;

  border-color: rgba(255, 255, 255, 0.25);

}



.exec-filter-btn.active {

  background: rgba(56, 189, 248, 0.2);

  border-color: #38bdf8;

  color: #38bdf8;

  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);

}



/* Active Training Hero Banner */

.active-training-hero {

  background: linear-gradient(135deg, rgba(16, 28, 48, 0.95) 0%, rgba(30, 20, 50, 0.95) 100%);

  border: 1px solid #38bdf8;

  border-left: 5px solid #10b981;

  border-radius: 8px;

  padding: 14px 18px;

  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);

  display: flex;

  flex-direction: column;

  gap: 10px;

}



.active-hero-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.active-hero-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 14px;

  font-weight: 800;

  color: #38bdf8;

  letter-spacing: 0.5px;

  display: flex;

  align-items: center;

  gap: 8px;

}



.active-hero-kpis {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

  gap: 10px;

  background: rgba(0, 0, 0, 0.3);

  border-radius: 6px;

  padding: 10px;

}



.active-kpi-block {

  display: flex;

  flex-direction: column;

  gap: 2px;

}



.active-kpi-block .lbl {

  font-size: 9.5px;

  color: #94a3b8;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  text-transform: uppercase;

}



.active-kpi-block .val {

  font-size: 15px;

  font-weight: 700;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  color: #f8fafc;

}



/* Curriculum Stage Hierarchy Deck */

.curriculum-stage-deck {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 14px;

  margin-bottom: 20px;

}



.curriculum-stage-card {

  background: rgba(15, 23, 42, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 8px;

  padding: 14px;

  display: flex;

  flex-direction: column;

  gap: 10px;

}



.curriculum-stage-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding-bottom: 8px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}



.stage-num-badge {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 12px;

  font-weight: 800;

  color: #c084fc;

}



.subphase-list {

  display: flex;

  flex-direction: column;

  gap: 8px;

}



.subphase-item-card {

  background: rgba(11, 18, 30, 0.65);

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 6px;

  padding: 10px 12px;

  display: flex;

  flex-direction: column;

  gap: 6px;

  transition: all 0.2s ease;

}



.subphase-item-card:hover {

  background: rgba(15, 23, 42, 0.85);

  border-color: rgba(56, 189, 248, 0.3);

}



.subphase-item-card.passed {

  border-left: 3px solid #10b981;

}



.subphase-item-card.in-progress {

  border-left: 3px solid #fbbf24;

  box-shadow: 0 0 10px rgba(251, 191, 36, 0.15);

}



.subphase-item-card.reinforcing {

  border-left: 3px solid #f97316;

}



.subphase-item-card.pending {

  border-left: 3px solid #64748b;

  opacity: 0.75;

}



.subphase-card-head {

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.subphase-card-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11.5px;

  font-weight: 700;

  color: #f1f5f9;

}



.subphase-badge {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 9.5px;

  font-weight: 700;

  padding: 2px 6px;

  border-radius: 3px;

  text-transform: uppercase;

  letter-spacing: 0.4px;

}



.subphase-badge.badge-passed {

  background: rgba(16, 185, 129, 0.2);

  color: #34d399;

  border: 1px solid #10b981;

}



.subphase-badge.badge-inprogress {

  background: rgba(245, 158, 11, 0.2);

  color: #fbbf24;

  border: 1px solid #f59e0b;

}



.subphase-badge.badge-reinforcing {

  background: rgba(249, 115, 22, 0.2);

  color: #fb923c;

  border: 1px solid #f97316;

}



.subphase-badge.badge-pending {

  background: rgba(100, 116, 139, 0.2);

  color: #94a3b8;

  border: 1px solid #64748b;

}



.subphase-stats-row {

  display: flex;

  justify-content: space-between;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  color: #94a3b8;

}



.subphase-stats-row strong {

  color: #e2e8f0;

}



/* Execution History Ledger */

.exec-history-container {

  background: rgba(15, 23, 42, 0.75);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 8px;

  padding: 14px;

  margin-bottom: 20px;

  overflow-x: auto;

}



.exec-history-table {

  width: 100%;

  border-collapse: collapse;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

}



.exec-history-table th {

  text-align: left;

  padding: 8px 10px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  color: #94a3b8;

  font-weight: 700;

  text-transform: uppercase;

  font-size: 10px;

  letter-spacing: 0.5px;

}



.exec-history-table td {

  padding: 8px 10px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  color: #cbd5e1;

  vertical-align: middle;

}



.exec-history-table tr:hover td {

  background: rgba(56, 189, 248, 0.04);

}



.gate-badge-pass {

  background: rgba(16, 185, 129, 0.18);

  color: #34d399;

  border: 1px solid #10b981;

  padding: 2px 6px;

  border-radius: 3px;

  font-weight: 700;

  font-size: 9.5px;

  display: inline-block;

}



.gate-badge-fail {

  background: rgba(239, 68, 68, 0.18);

  color: #f87171;

  border: 1px solid #ef4444;

  padding: 2px 6px;

  border-radius: 3px;

  font-weight: 700;

  font-size: 9.5px;

  display: inline-block;

}



.gate-badge-running {

  background: rgba(245, 158, 11, 0.18);

  color: #fbbf24;

  border: 1px solid #f59e0b;

  padding: 2px 6px;

  border-radius: 3px;

  font-weight: 700;

  font-size: 9.5px;

  display: inline-block;

}



/* Execution History Pagination Controls (v3.5.6) */

.exec-pagination-bar {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 10px 14px;

  background: rgba(10, 16, 26, 0.85);

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 0 0 8px 8px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  color: #94a3b8;

  gap: 12px;

  flex-wrap: wrap;

  margin-top: -1px;

}



.exec-pagination-info {

  display: flex;

  align-items: center;

  gap: 8px;

}



.exec-pagination-pagesize {

  display: flex;

  align-items: center;

  gap: 6px;

}



.exec-pagesize-select {

  background: rgba(15, 23, 42, 0.9);

  border: 1px solid rgba(56, 189, 248, 0.3);

  color: #38bdf8;

  border-radius: 4px;

  padding: 3px 8px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  cursor: pointer;

  outline: none;

}



.exec-pagesize-select:focus {

  border-color: #00e5ff;

}



.exec-pagination-nav {

  display: flex;

  align-items: center;

  gap: 6px;

}



.btn-exec-page {

  background: rgba(15, 23, 42, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: #cbd5e1;

  padding: 4px 10px;

  border-radius: 4px;

  cursor: pointer;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10.5px;

  transition: all 0.15s ease;

}



.btn-exec-page:hover:not(:disabled) {

  background: rgba(56, 189, 248, 0.2);

  border-color: #38bdf8;

  color: #38bdf8;

}



.btn-exec-page:disabled {

  opacity: 0.35;

  cursor: not-allowed;

  border-color: rgba(255, 255, 255, 0.05);

}



.btn-exec-page.active {

  background: rgba(56, 189, 248, 0.25);

  border-color: #38bdf8;

  color: #38bdf8;

  font-weight: 700;

}



.exec-page-indicator {

  font-size: 11px;

  color: #e2e8f0;

  padding: 0 4px;

}



/* Execution History Interactive Run Selector & Dossier (v3.5.4) */

.exec-run-selector-panel {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));

  border: 1px solid rgba(56, 189, 248, 0.3);

  border-radius: 8px;

  padding: 10px 16px;

  margin-bottom: 14px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

}



.exec-selector-group {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px;

}



.exec-selector-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  font-weight: 700;

  color: #38bdf8;

  letter-spacing: 0.5px;

}



.exec-run-dropdown {

  background: #0f172a;

  border: 1px solid rgba(56, 189, 248, 0.4);

  color: #f1f5f9;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  padding: 6px 10px;

  border-radius: 5px;

  outline: none;

  min-width: 320px;

  cursor: pointer;

  transition: border-color 0.2s, box-shadow 0.2s;

}



.exec-run-dropdown:hover, .exec-run-dropdown:focus {

  border-color: #00e5ff;

  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);

}



.btn-exec-step {

  background: rgba(30, 41, 59, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.15);

  color: #e2e8f0;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  font-weight: 700;

  padding: 6px 10px;

  border-radius: 4px;

  cursor: pointer;

  transition: all 0.2s;

}



.btn-exec-step:hover:not(:disabled) {

  background: rgba(56, 189, 248, 0.2);

  border-color: #38bdf8;

  color: #00e5ff;

}



.btn-exec-step:disabled {

  opacity: 0.4;

  cursor: not-allowed;

}



.btn-exec-step.highlight {

  background: rgba(0, 229, 255, 0.15);

  border-color: #00e5ff;

  color: #00e5ff;

}



.btn-exec-step.highlight:hover {

  background: rgba(0, 229, 255, 0.3);

  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);

}



/* Selected Run Forensic Dossier */

.selected-run-dossier {

  background: rgba(15, 23, 42, 0.95);

  border: 1px solid rgba(0, 229, 255, 0.35);

  border-radius: 10px;

  padding: 16px 20px;

  margin-bottom: 20px;

  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);

  position: relative;

  overflow: hidden;

}



.selected-run-dossier::before {

  content: '';

  position: absolute;

  top: 0;

  left: 0;

  width: 4px;

  height: 100%;

  background: linear-gradient(to bottom, #00e5ff, #38bdf8, #a855f7);

}



.dossier-header {

  display: flex;

  flex-wrap: wrap;

  justify-content: space-between;

  align-items: flex-start;

  gap: 12px;

  padding-bottom: 12px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  margin-bottom: 14px;

}



.dossier-title-area {

  display: flex;

  flex-direction: column;

  gap: 3px;

}



.dossier-run-tag {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  font-weight: 700;

  color: #00e5ff;

  text-transform: uppercase;

  letter-spacing: 0.5px;

}



.dossier-main-title {

  font-size: 15px;

  font-weight: 700;

  color: #f8fafc;

}



.dossier-sub-meta {

  font-size: 11px;

  color: #94a3b8;

  font-family: 'Share Tech Mono', monospace, sans-serif;

}



.dossier-badges {

  display: flex;

  align-items: center;

  gap: 8px;

}



/* Comparative Delta Panel */

.dossier-delta-box {

  background: rgba(30, 41, 59, 0.6);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 10px 14px;

  margin-bottom: 14px;

}



.delta-box-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 8px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  color: #94a3b8;

}



.delta-metrics-row {

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

}



.delta-pill {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 4px 10px;

  border-radius: 4px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  font-weight: 700;

  background: rgba(15, 23, 42, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.1);

}



.delta-pill.positive {

  border-color: rgba(52, 211, 153, 0.4);

  color: #34d399;

}



.delta-pill.negative {

  border-color: rgba(248, 113, 113, 0.4);

  color: #f87171;

}



.delta-pill.neutral {

  border-color: rgba(148, 163, 184, 0.3);

  color: #94a3b8;

}



/* Operational Win Rate Breakdown Box */
.dossier-breakdown-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.breakdown-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Share Tech Mono', monospace, sans-serif;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.breakdown-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.breakdown-card.afu-card {
  border-left: 3px solid #38bdf8;
}

.breakdown-card.ru-card {
  border-left: 3px solid #f87171;
}

.breakdown-card.diag-card {
  border-left: 3px solid #c084fc;
}

.breakdown-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.breakdown-card .faction-tag {
  font-family: 'Share Tech Mono', monospace, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.breakdown-card .afu-tag {
  color: #38bdf8;
}

.breakdown-card .ru-tag {
  color: #fca5a5;
}

.breakdown-card .diag-tag {
  color: #e2e8f0;
}

.breakdown-card .wr-badge {
  font-family: 'Share Tech Mono', monospace, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.wr-badge.badge-pass {
  background: rgba(52, 211, 153, 0.2);
  border: 1px solid #34d399;
  color: #34d399;
}

.wr-badge.badge-warn {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid #fbbf24;
  color: #fbbf24;
}

.wr-badge.badge-crit {
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid #f87171;
  color: #f87171;
}

.breakdown-card .scen-badge {
  font-family: 'Share Tech Mono', monospace, sans-serif;
  font-size: 10px;
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #c084fc;
  padding: 2px 6px;
  border-radius: 3px;
}

.breakdown-card .card-role {
  font-size: 10.5px;
  color: #94a3b8;
  font-style: italic;
}

.breakdown-card .card-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: 'Share Tech Mono', monospace, sans-serif;
  font-size: 10.5px;
  margin-top: 2px;
}

.breakdown-card .card-stats .cstat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breakdown-card .card-stats .cstat .lbl {
  color: #64748b;
}

.breakdown-card .card-stats .cstat .val {
  color: #f1f5f9;
}

.diag-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10.5px;
  color: #cbd5e1;
  margin-top: 2px;
}

.diag-bullet {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.diag-bullet .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Dossier 4 Columns Metric Grid */

.dossier-columns-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 12px;

}



.dossier-col-card {

  background: rgba(15, 23, 42, 0.7);

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 6px;

  padding: 10px 12px;

  display: flex;

  flex-direction: column;

  gap: 6px;

}



.dossier-col-card .col-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  font-weight: 700;

  color: #94a3b8;

  text-transform: uppercase;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  padding-bottom: 4px;

}



.dossier-stat-row {

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 11px;

  font-family: 'Share Tech Mono', monospace, sans-serif;

}



.dossier-stat-row .lbl {

  color: #64748b;

}



.dossier-stat-row .val {

  font-weight: 700;

  color: #f1f5f9;

}



/* Table Row Active Highlight */

.exec-history-row {

  transition: background 0.15s, transform 0.15s;

}



.exec-history-row:hover {

  background: rgba(56, 189, 248, 0.08) !important;

}



.exec-history-row.active-run-row {

  background: rgba(0, 229, 255, 0.15) !important;

  box-shadow: inset 3px 0 0 #00e5ff;

}



.btn-exec-inspect-row {

  background: rgba(0, 229, 255, 0.1);

  border: 1px solid rgba(0, 229, 255, 0.3);

  color: #00e5ff;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 9.5px;

  font-weight: 700;

  padding: 2px 7px;

  border-radius: 3px;

  cursor: pointer;

  transition: all 0.2s;

}



.btn-exec-inspect-row:hover {

  background: #00e5ff;

  color: #0f172a;

  box-shadow: 0 0 8px #00e5ff;

}





/* ==========================================================================

   CURRICULUM CAMPAIGN INSTANCE SELECTOR & SCOPED HIERARCHY (v3.5.6)

   ========================================================================== */

.curriculum-campaign-selector-bar {

  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));

  border: 1px solid rgba(0, 229, 255, 0.25);

  border-radius: 8px;

  padding: 12px 16px;

  margin-bottom: 16px;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);

  display: flex;

  flex-direction: column;

  gap: 10px;

}



.campaign-selector-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px;

}



.campaign-selector-left {

  display: flex;

  align-items: center;

  gap: 8px;

}



.campaign-selector-icon {

  font-size: 14px;

}



.campaign-selector-title {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11.5px;

  font-weight: 700;

  letter-spacing: 0.5px;

  color: #f1f5f9;

  text-transform: uppercase;

}



.campaign-badge {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10px;

  font-weight: 700;

  padding: 2px 8px;

  border-radius: 4px;

  text-transform: uppercase;

  letter-spacing: 0.5px;

}



.campaign-badge.badge-active {

  background: rgba(0, 229, 255, 0.15);

  color: #00e5ff;

  border: 1px solid rgba(0, 229, 255, 0.5);

  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);

}



.campaign-badge.badge-alltime {

  background: rgba(192, 132, 252, 0.15);

  color: #c084fc;

  border: 1px solid rgba(192, 132, 252, 0.5);

  box-shadow: 0 0 8px rgba(192, 132, 252, 0.3);

}



.campaign-badge.badge-historical {

  background: rgba(148, 163, 184, 0.15);

  color: #94a3b8;

  border: 1px solid rgba(148, 163, 184, 0.3);

}



.campaign-stats-pill {

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10.5px;

  color: #38bdf8;

  background: rgba(56, 189, 248, 0.1);

  padding: 3px 10px;

  border-radius: 4px;

  border: 1px solid rgba(56, 189, 248, 0.2);

}



.campaign-controls-row {

  display: flex;

  align-items: center;

  gap: 12px;

  flex-wrap: wrap;

}



.campaign-nav-btns {

  display: flex;

  align-items: center;

  gap: 6px;

}



.btn-campaign-step,

.btn-campaign-jump {

  background: rgba(15, 23, 42, 0.8);

  border: 1px solid rgba(255, 255, 255, 0.15);

  color: #cbd5e1;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 10.5px;

  font-weight: 700;

  padding: 5px 10px;

  border-radius: 4px;

  cursor: pointer;

  transition: all 0.2s;

}



.btn-campaign-step:hover:not(:disabled),

.btn-campaign-jump:hover {

  background: rgba(0, 229, 255, 0.15);

  border-color: #00e5ff;

  color: #00e5ff;

  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);

}



.btn-campaign-step:disabled {

  opacity: 0.35;

  cursor: not-allowed;

  border-color: rgba(255, 255, 255, 0.05);

}



.btn-campaign-jump {

  color: #38bdf8;

  border-color: rgba(56, 189, 248, 0.3);

}



.campaign-dropdown-wrapper {

  flex: 1;

  min-width: 280px;

}



.campaign-dropdown {

  width: 100%;

  background: rgba(15, 23, 42, 0.9);

  border: 1px solid rgba(0, 229, 255, 0.3);

  color: #f1f5f9;

  font-family: 'Share Tech Mono', monospace, sans-serif;

  font-size: 11px;

  padding: 5px 10px;

  border-radius: 4px;

  cursor: pointer;

  outline: none;

  transition: border-color 0.2s, box-shadow 0.2s;

}



.campaign-dropdown:focus,

.campaign-dropdown:hover {

  border-color: #00e5ff;

  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);

}



.campaign-dropdown option {

  background: #0f172a;

  color: #f1f5f9;

}


/* On-Demand Lazy Panels & Collapsible Drawers (Zero-Lag & Low-Memory Invariant) */
.on-demand-header {
  cursor: pointer;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.2s, border-color 0.2s;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.on-demand-header:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
}

.btn-on-demand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: 'Share Tech Mono', monospace, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-on-demand-toggle:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.btn-on-demand-toggle.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: #c084fc;
  color: #c084fc;
}

.on-demand-collapsed-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-family: 'Share Tech Mono', monospace, sans-serif;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 14px;
}

/* --- Tactical Category Filter Sub-Bar --- */
.album-category-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(8, 12, 18, 0.88);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  padding: 6px 20px;
  backdrop-filter: blur(8px);
}

.cat-filter-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8c9ba9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-filter-pills-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a0aec0;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cat-filter-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.45);
  color: #ffd875;
}

.cat-filter-pill.active {
  background: rgba(212, 175, 55, 0.28);
  border-color: #d4af37;
  color: #ffd875;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.coin-pocket-card.category-filter-highlight {
  border-color: #ffd875 !important;
  box-shadow: 0 0 14px rgba(255, 216, 117, 0.45) !important;
  transform: scale(1.02);
  z-index: 2;
}

.coin-pocket-card.category-filter-dimmed {
  opacity: 0.24 !important;
  filter: grayscale(70%) blur(0.4px) !important;
  pointer-events: none;
}


/* ─── Tactical Notification Banner Countdown Progress Bar ─── */
.notif-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: #00e6ff;
  box-shadow: 0 0 8px #00e6ff;
  width: 100%;
  pointer-events: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* ─── Compact Screen Height Optimization for Lobby & HUD ─── */
@media (max-height: 850px) {
  .lobby-theater-banner {
    height: 100px !important;
  }
  .lobby-body {
    padding: 12px 18px !important;
    gap: 12px !important;
  }
  .scenario-art-banner {
    height: 80px !important;
  }
}

@media (max-height: 740px) {
  .lobby-theater-banner {
    height: 70px !important;
  }
  .theater-banner-sub {
    display: none !important;
  }
  .scenario-art-banner {
    height: 60px !important;
  }
}

/* ─── Compact Width Collision Prevention for Match HUD (< 1440px) ─── */
@media (max-width: 1440px) {
  .directive-ticker-block {
    display: none !important;
  }
  .hud-sitrep-bar {
    flex: 0 0 auto !important;
  }
  #nav-hints {
    font-size: 9.5px;
    gap: 4px 10px;
    padding: 4px 12px;
  }
}

@media (max-width: 1280px) {
  .force-casualties-block {
    display: none !important;
  }
  .scoreboard-hud-frame {
    padding: 1px 3px !important;
  }
}
