/* ==========================================================================
   Neon Houses: Proxy War - Tactical Prototype Stylesheet
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --font-hud: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* HSL Color System */
  --dark-bg: hsl(225, 30%, 6%);
  --panel-bg: hsla(223, 26%, 10%, 0.75);
  --border-color: hsla(180, 100%, 50%, 0.15);
  
  --neon-cyan: hsl(180, 100%, 50%);
  --neon-pink: hsl(325, 100%, 55%);
  --neon-green: hsl(140, 95%, 45%);
  --neon-yellow: hsl(50, 100%, 50%);
  
  --neon-cyan-glow: hsla(180, 100%, 50%, 0.3);
  --neon-pink-glow: hsla(325, 100%, 55%, 0.3);
  --neon-green-glow: hsla(140, 95%, 45%, 0.3);

  --text-light: hsl(210, 20%, 90%);
  --text-muted: hsl(215, 15%, 55%);
}

/* Base Body Styles & CRT Scanlines */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: var(--font-body);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CRT Screen Effect Overlay */
.crt-screen::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 9999;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

.scanlines {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 0%,
    rgba(18, 16, 16, 0.08) 50%,
    rgba(18, 16, 16, 0) 100%
  );
  background-size: 100% 12px;
  z-index: 9998;
  pointer-events: none;
  animation: scanlineScroll 25s linear infinite;
}

@keyframes scanlineScroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.matrix-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 50%, hsla(220, 30%, 15%, 0.3) 0%, transparent 80%),
    radial-gradient(circle at 10% 20%, hsla(180, 100%, 50%, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(325, 100%, 55%, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Layout Grid Container */
.app-container {
  display: flex;
  gap: 20px;
  width: 96vw;
  height: 94vh;
  z-index: 10;
  max-width: 1600px;
}

/* Glassmorphism Panel Bases */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel {
  width: 320px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
  flex-shrink: 0;
}

.panel-header {
  font-family: var(--font-hud);
  font-size: 1.2rem;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.subsection-header {
  font-family: var(--font-hud);
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Utility layout blocks */
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-neon-cyan { color: var(--neon-cyan); text-shadow: 0 0 5px var(--neon-cyan-glow); }
.text-neon-pink { color: var(--neon-pink); text-shadow: 0 0 5px var(--neon-pink-glow); }
.text-neon-green { color: var(--neon-green); text-shadow: 0 0 5px var(--neon-green-glow); }
.text-neon-yellow { color: var(--neon-yellow); }

.v-good { color: var(--neon-green); }
.v-bad { color: var(--neon-pink); }

/* Left Panel Security Components */
.trace-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label-tech {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.trace-bar {
  display: flex;
  gap: 4px;
  height: 20px;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.trace-notch {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.notch-active {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan-glow);
}

.notch-warning {
  background: var(--neon-yellow);
}

.notch-critical {
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink-glow);
  animation: alarmPulse 1s infinite alternate;
}

@keyframes alarmPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.section-subtext {
  font-size: 0.75rem;
  line-height: 1.35;
}

.faction-compact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
}

.faction-compact-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 6px;
}

/* Center Stage Components */
.center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hud-header {
  height: 80px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
}

.full-width { width: 100%; }

.game-title {
  font-family: var(--font-hud);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.turn-tracker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.turn-counter {
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.countdown-bar-container {
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.countdown-bar-fill {
  height: 100%;
  background: var(--neon-cyan);
  width: 100%;
  transition: width 0.5s ease, background-color 0.5s ease;
}

.phase-banner {
  font-family: var(--font-hud);
  font-size: 1rem;
  letter-spacing: 2px;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
}

.active-player {
  background: hsla(180, 100%, 50%, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px hsla(180, 100%, 50%, 0.1);
}

.active-enemy {
  background: hsla(325, 100%, 55%, 0.15);
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: 0 0 10px hsla(325, 100%, 55%, 0.1);
  animation: alertPulse 1.2s infinite alternate;
}

/* The Grid Map System CSS */
.grid-viewport {
  flex: 1;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-canvas {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
  max-width: 800px;
  aspect-ratio: 12 / 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.grid-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease;
}

.grid-tile:hover {
  background: rgba(180, 100%, 50%, 0.06);
  border-color: rgba(180, 100%, 50%, 0.2);
}

/* Tile type visual styling */
.tile-floor {
  background: rgba(10, 15, 25, 0.3);
}

.tile-low_cover {
  background: linear-gradient(135deg, hsl(210, 15%, 20%), hsl(210, 15%, 15%));
  border: 1px solid hsl(210, 15%, 35%);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8);
}

.tile-high_cover {
  background: linear-gradient(135deg, hsl(215, 20%, 15%), hsl(215, 20%, 8%));
  border: 1px solid hsl(215, 20%, 25%);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.9);
}

.tile-door-locked {
  background: repeating-linear-gradient(
    45deg,
    #553a00,
    #553a00 8px,
    #332200 8px,
    #332200 16px
  );
  border: 1px solid var(--neon-yellow);
}

.door-graphic {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  color: var(--neon-yellow);
  font-weight: 700;
  letter-spacing: 1px;
}

.tile-door.door-open {
  background: rgba(180, 100%, 50%, 0.05);
  border-left: 2px dashed rgba(255,255,255,0.1);
  border-right: 2px dashed rgba(255,255,255,0.1);
}

.tile-terminal {
  background: radial-gradient(circle at center, hsla(180, 100%, 50%, 0.15), rgba(0,0,0,0.5));
  border: 1px dashed var(--neon-cyan);
}

.term-graphic {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 4px var(--neon-cyan-glow);
}

.terminal-hacked {
  border-color: var(--neon-green);
}

.terminal-hacked .term-graphic {
  color: var(--neon-green);
  text-shadow: 0 0 4px var(--neon-green-glow);
}

.tile-extraction {
  background: rgba(140, 95%, 45%, 0.04);
  border: 1px dashed rgba(140, 95%, 45%, 0.2);
  box-shadow: inset 0 0 8px rgba(140, 95%, 45%, 0.05);
}

/* Camera and Turret representations */
.camera-mount {
  background: radial-gradient(circle, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

.cam-graphic {
  font-size: 1rem;
  transition: transform 0.5s ease;
}

.cam-graphic.dir-S { transform: rotate(0deg); }
.cam-graphic.dir-N { transform: rotate(180deg); }
.cam-graphic.cam-spoofed {
  opacity: 0.3;
  animation: flashGrey 1s infinite alternate;
}

@keyframes flashGrey {
  0% { filter: grayscale(1); }
  100% { filter: grayscale(0.5); }
}

.turret-mount {
  background: radial-gradient(circle, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
}

.turret-graphic {
  font-size: 1rem;
}

.turret-hijacked {
  animation: flashCyan 1.5s infinite alternate;
}

@keyframes flashCyan {
  0% { filter: drop-shadow(0 0 2px var(--neon-cyan)); }
  100% { filter: drop-shadow(0 0 6px var(--neon-cyan)); }
}

/* Danger cone warning overlay */
.threat-camera {
  background: rgba(255, 0, 85, 0.15) !important;
  border: 1px solid rgba(255, 0, 85, 0.3) !important;
  animation: flashRedPulse 2s infinite alternate;
}

@keyframes flashRedPulse {
  0% { background: rgba(255, 0, 85, 0.1); }
  100% { background: rgba(255, 0, 85, 0.22); }
}

/* Movement and action range highlights */
.highlight-move {
  background: rgba(0, 255, 255, 0.08) !important;
  border: 1px solid var(--neon-cyan) !important;
}

.highlight-attack {
  background: rgba(255, 0, 85, 0.08) !important;
  border: 1px solid var(--neon-pink) !important;
}

.highlight-skill {
  background: rgba(255, 200, 0, 0.08) !important;
  border: 1px solid var(--neon-yellow) !important;
}

.tile-active-unit {
  box-shadow: 0 0 12px var(--neon-cyan-glow) !important;
  border: 2px solid var(--neon-cyan) !important;
}

/* Character Tokens */
.unit-token {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  animation: spawnPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes spawnPulse {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

.token-crew {
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.token-enemy {
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink-glow);
}

.token-escort {
  border: 2px solid var(--neon-yellow);
  box-shadow: 0 0 8px rgba(255, 200, 0, 0.4);
}

.token-downed {
  border-style: dashed !important;
  opacity: 0.65;
  transform: rotate(20deg);
}

.token-avatar {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
}

.token-hp-bar {
  width: 80%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.token-hp-fill {
  height: 100%;
  background: var(--neon-green);
  transition: width 0.3s ease;
}

/* Scrolling Combat Log feed styles */
.console-panel {
  height: 160px;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
}

.console-log-feed {
  flex: 1;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  padding-right: 10px;
}

.console-log-feed::-webkit-scrollbar {
  width: 4px;
}

.console-log-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.log-line {
  margin-bottom: 4px;
  color: var(--text-light);
}

.log-alert { color: var(--neon-pink); }
.log-success { color: var(--neon-green); }
.log-failure { color: hsl(0, 100%, 60%); }
.log-hacking { color: var(--neon-cyan); }

/* Right Panel Selected character details */
.unit-detail-hud {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prompt-select-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: var(--font-hud);
  font-size: 0.8rem;
  color: var(--text-muted);
  gap: 20px;
}

.crew-quick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.quick-unit-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.quick-unit-btn span {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
}

.avatar-ks { background: rgba(0, 255, 255, 0.15); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.avatar-vt { background: rgba(0, 255, 255, 0.15); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.avatar-gc { background: rgba(0, 255, 255, 0.15); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }

.unit-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideInHUD 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideInHUD {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.unit-card-header {
  display: flex;
  gap: 15px;
  align-items: center;
}

.unit-icon-avatar {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan-glow);
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: 1.1rem;
}

.unit-card-name {
  font-family: var(--font-hud);
  font-size: 1.1rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

.unit-card-class {
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.unit-stats-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 1px;
  font-family: var(--font-hud);
}

.stat-value {
  font-size: 0.72rem;
  font-family: var(--font-hud);
}

.stat-bar-bg {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.3s ease;
}

.bg-neon-green { background-color: var(--neon-green); box-shadow: 0 0 6px var(--neon-green-glow); }

.stress-dots-group {
  display: flex;
  gap: 4px;
}

.stress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.02);
  transition: all 0.3s ease;
}

.dot-filled {
  background: var(--neon-cyan);
  box-shadow: 0 0 4px var(--neon-cyan-glow);
}

.dot-danger {
  background: var(--neon-pink);
  box-shadow: 0 0 5px var(--neon-pink-glow);
}

.attributes-table {
  width: 100%;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  border-collapse: collapse;
}

.attributes-table td {
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.attributes-table td:nth-child(even) {
  text-align: right;
  font-family: var(--font-hud);
  font-weight: 700;
  color: var(--neon-cyan);
}

.attributes-table td:nth-child(odd) {
  color: var(--text-muted);
}

.unit-narrative-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.72rem;
}

.loyalty-badge {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-hud);
}

.badge-devoted { background: rgba(0, 255, 255, 0.15); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.badge-loyal { background: rgba(0, 255, 0, 0.12); color: var(--neon-green); border: 1px solid var(--neon-green); }
.badge-conflicted { background: rgba(255, 200, 0, 0.12); color: var(--neon-yellow); border: 1px solid var(--neon-yellow); }
.badge-fractured { background: rgba(255, 0, 85, 0.15); color: var(--neon-pink); border: 1px solid var(--neon-pink); }

/* Command HUD Actions Panel */
.actions-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-buttons-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 5px 0;
}

/* Button style standards */
button {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  outline: none;
}

button:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  border-color: rgba(255,255,255,0.05) !important;
}

.btn-primary {
  background: var(--neon-cyan);
  color: var(--dark-bg);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.btn-primary:hover {
  background: #00cccc;
  box-shadow: 0 0 15px var(--neon-cyan);
}

.btn-primary.btn-active {
  background: var(--dark-bg);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--neon-cyan);
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(0, 255, 255, 0.08);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
  border-color: var(--neon-cyan);
}

.btn-danger {
  background: rgba(255, 0, 85, 0.1);
  border: 1px solid rgba(255, 0, 85, 0.4);
  color: var(--neon-pink);
}

.btn-danger:hover {
  background: rgba(255, 0, 85, 0.2);
  border-color: var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink-glow);
}

.btn-hud {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  text-align: left;
  padding-left: 15px;
}

.btn-hud:hover {
  background: rgba(0, 255, 255, 0.06);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-hud-attack {
  border-color: rgba(255, 0, 85, 0.2);
}

.btn-hud-attack:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  background: rgba(255, 0, 85, 0.05);
}

.btn-hud-skill {
  border-color: rgba(255, 200, 0, 0.2);
}

.btn-hud-skill:hover {
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
  background: rgba(255, 200, 0, 0.05);
}

.btn-full-width { width: 100%; }

/* Absolute Combat Forecast Tooltip */
.combat-forecast-tooltip {
  position: absolute;
  background: var(--panel-bg);
  border: 1px solid var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink-glow);
  border-radius: 4px;
  padding: 12px;
  z-index: 10000;
  width: 180px;
  pointer-events: none;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.forecast-title {
  font-family: var(--font-hud);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.forecast-target {
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.forecast-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Fullscreen Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 8, 15, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  animation: fadeIn 0.4s ease;
  backdrop-filter: blur(12px);
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.modal-card {
  width: 90%;
  max-width: 960px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  0% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.modal-header h2 {
  font-family: var(--font-hud);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.82rem;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.modal-column {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  padding: 15px;
}

.fallout-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fallout-list-item {
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 8px;
}

.fallout-list-item strong {
  font-family: var(--font-hud);
  letter-spacing: 0.5px;
  font-size: 0.78rem;
}

.fallout-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 4px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}
