body.war-room-page {
  --wr-red: #f43f5e;
  --wr-red-dim: rgba(225, 29, 72, 0.6);
  --wr-blue: #3b82f6;
  --wr-blue-dim: rgba(59, 130, 246, 0.6);
  --wr-text: #f8fafc;
  --wr-text-muted: #94a3b8;
  --wr-border: rgba(132, 160, 255, 0.16);
  --wr-border-hover: rgba(132, 160, 255, 0.45);
  --wr-panel-bg: rgba(10, 14, 25, 0.75);
  --wr-card-bg: rgba(15, 20, 34, 0.85);

  background: radial-gradient(circle at top center, rgba(15, 10, 22, 0.2), var(--bg));
}

body.war-room-page::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(circle at 14% 24%, rgba(225, 29, 72, 0.12), transparent 30%),
    radial-gradient(circle at 77% 14%, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at 58% 84%, rgba(190, 18, 60, 0.08), transparent 34%);
  filter: blur(24px);
  z-index: -2;
  pointer-events: none;
  animation: wr-breathe 14s ease-in-out infinite alternate;
}

@keyframes wr-breathe {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

.hero {
  min-height: 38vh;
  padding-top: 5.5rem;
  position: relative;
  text-align: center;
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fecdd3, #fda4af, #93c5fd, #bfdbfe, #fecdd3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: wr-text-glow 6s linear infinite;
  text-shadow: 0 0 24px rgba(244, 63, 94, 0.2);
  margin-bottom: 0.4rem;
}

@keyframes wr-text-glow {
  0% { background-position: 0% center; }
  100% { background-position: -200% center; }
}

.hero p {
  color: #bfdbfe;
  font-weight: 600;
  letter-spacing: 0.24em;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.warroom-hero-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 63, 94, 0.4);
  background: rgba(14, 8, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffe4e6;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.3);
}

.warroom-signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 12px #fb7185, 0 0 20px #e11d48;
  animation: wr-dot-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes wr-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); box-shadow: 0 0 16px #fb7185, 0 0 30px #e11d48; }
}

/* Layout Core */
.warroom-content {
  width: min(1360px, 100% - 2rem);
  margin: 0 auto 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Common Panel Base (Glassmorphism) */
.warroom-intro,
.warroom-panel,
.warroom-loadout,
.warroom-points-note {
  position: relative;
  background: var(--wr-panel-bg);
  border: 1px solid var(--wr-border);
  border-radius: 18px;
  padding: 1.4rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.warroom-intro:hover,
.warroom-panel:hover,
.warroom-loadout:hover {
  border-color: var(--wr-border-hover);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), 0 0 28px rgba(59, 130, 246, 0.15), inset 0 0 0 1px rgba(132, 160, 255, 0.1);
  transform: translateY(-2px);
}

/* Panel Background Shimmers */
.warroom-intro::before,
.warroom-panel::before,
.warroom-loadout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wr-blue-dim), var(--wr-red-dim), transparent);
  opacity: 0.6;
  z-index: 2;
}

/* ── War Room Intro ── */
.warroom-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(16, 20, 30, 0.8), rgba(20, 10, 18, 0.85));
}

.warroom-intro-copy h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  color: var(--wr-text);
  letter-spacing: 0.06em;
}

.warroom-intro-copy p {
  margin: 0;
  color: var(--wr-text-muted);
  max-width: 65ch;
  line-height: 1.5;
}

.warroom-intel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.warroom-intel-tags span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #fda4af;
}

.warroom-intro-actions {
  display: flex;
  gap: 0.8rem;
}

.warroom-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.5), rgba(159, 18, 57, 0.8));
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, 0.5);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  cursor: pointer;
}

.warroom-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.5);
  border-color: rgba(254, 202, 202, 0.8);
}

.warroom-link.secondary {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.5), rgba(17, 24, 39, 0.8));
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
  color: #bfdbfe;
}

.warroom-link.secondary:hover {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.5);
}

/* ── Metrics Grid ── */
.warroom-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.warroom-card {
  position: relative;
  background: linear-gradient(145deg, rgba(16, 22, 38, 0.9), rgba(10, 12, 20, 0.95));
  border: 1px solid var(--wr-border);
  border-radius: 14px;
  padding: 1.1rem;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms;
}

.warroom-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--wr-border-hover);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.15);
}

.warroom-card span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.warroom-card strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
}

/* Metric specific accents */
.warroom-card:nth-child(1) strong { color: #facc15; text-shadow: 0 0 10px rgba(250, 204, 21, 0.4); }
.warroom-card:nth-child(2) strong { color: #60a5fa; text-shadow: 0 0 10px rgba(96, 165, 250, 0.4); }
.warroom-card:nth-child(3) strong { color: #a78bfa; text-shadow: 0 0 10px rgba(167, 139, 250, 0.4); }
.warroom-card:nth-child(4) strong { color: #34d399; text-shadow: 0 0 10px rgba(52, 211, 153, 0.4); }
.warroom-card:nth-child(5) strong { color: #fb7185; text-shadow: 0 0 10px rgba(251, 113, 133, 0.4); }

/* Holographic shine injects via JS/HTML or we use ::after */
.warroom-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%; bottom: -50%; left: -50%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  transform: rotate(35deg) translateX(-150%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.warroom-card:hover::after {
  transform: rotate(35deg) translateX(150%);
}

/* ── Panel Layouts ── */
.warroom-layout,
.warroom-grid-two {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
}

.warroom-panel-head,
.warroom-loadout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(132, 160, 255, 0.1);
  padding-bottom: 0.8rem;
}

.warroom-panel-head h3,
.warroom-loadout-head h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wr-text);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.warroom-panel-head p,
.warroom-loadout-head p,
.warroom-sync {
  font-size: 0.8rem;
  color: var(--wr-text-muted);
  margin: 0;
}

/* ── Internal Grids/Lists ── */
.warroom-faction-cards,
.warroom-operators,
.warroom-faction-table,
.warroom-country-rows,
.warroom-mini-list {
  display: grid;
  gap: 0.8rem;
}

/* Faction Card */
.warroom-faction-card {
  background: linear-gradient(90deg, rgba(15, 20, 30, 0.7), rgba(20, 15, 25, 0.6));
  border: 1px solid var(--wr-border);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.warroom-faction-card:hover {
  border-color: rgba(244, 63, 94, 0.5);
  background: linear-gradient(90deg, rgba(20, 25, 40, 0.8), rgba(30, 15, 30, 0.7));
  transform: translateX(4px);
}

.warroom-faction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.warroom-token {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e2e8f0;
}

.warroom-score {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fb7185;
}

.warroom-track {
  height: 6px;
  background: rgba(2, 6, 23, 0.8);
  border-radius: 999px;
  margin: 0.8rem 0;
  overflow: hidden;
}

.warroom-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--wr-blue), var(--wr-red));
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
}

.warroom-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

/* Operators Rank Rows */
.warroom-operator-row {
  display: grid;
  grid-template-columns: 36px 48px 1fr auto;
  align-items: center;
  gap: 1rem;
  background: rgba(12, 16, 28, 0.7);
  border: 1px solid var(--wr-border);
  border-radius: 12px;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  transition: all 0.25s ease;
}

.warroom-operator-row:hover {
  background: rgba(20, 26, 42, 0.9);
  border-color: var(--wr-border-hover);
  transform: scale(1.01) translateY(-2px);
}

.warroom-operator-rank {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #94a3b8;
  text-align: center;
}

.warroom-operator-row:first-child .warroom-operator-rank { color: #facc15; text-shadow: 0 0 10px rgba(250, 204, 21, 0.4); }
.warroom-operator-row:nth-child(2) .warroom-operator-rank { color: #e2e8f0; text-shadow: 0 0 10px rgba(226, 232, 240, 0.4); }
.warroom-operator-row:nth-child(3) .warroom-operator-rank { color: #fb923c; text-shadow: 0 0 10px rgba(251, 146, 60, 0.4); }

.warroom-operator-row img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(132, 160, 255, 0.3);
}

.warroom-operator-row div {
  display: flex;
  flex-direction: column;
}

.warroom-operator-row strong {
  font-size: 1.05rem;
  color: #f8fafc;
}

.warroom-operator-row p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.warroom-operator-score {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #60a5fa;
}

/* Faction Table and Country Rows */
.warroom-table-row,
.warroom-country-row,
.warroom-mini-row {
  background: rgba(12, 16, 28, 0.6);
  border: 1px solid var(--wr-border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  transition: all 0.2s ease;
}

.warroom-table-row:hover,
.warroom-country-row:hover,
.warroom-mini-row:hover {
  background: rgba(18, 24, 38, 0.8);
  border-color: var(--wr-border-hover);
}

.warroom-table-row {
  display: grid;
  grid-template-columns: 30px 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

.warroom-table-rank {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  color: #fca5a5;
  font-size: 1.1rem;
}

.warroom-table-main strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #f1f5f9;
}

.warroom-table-main p {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
}

.warroom-gap-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 999px;
  color: #fda4af;
  font-weight: 700;
}

.warroom-points-chip {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #93c5fd;
  text-shadow: 0 0 8px rgba(147, 197, 253, 0.3);
}

.warroom-country-row,
.warroom-mini-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.warroom-country-head,
.warroom-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.warroom-country-head strong,
.warroom-mini-head strong {
  font-size: 0.9rem;
  color: #f1f5f9;
}

.warroom-country-head span,
.warroom-mini-head span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.warroom-bar {
  height: 6px;
  background: rgba(2, 6, 23, 0.8);
  border-radius: 999px;
  overflow: hidden;
}

.warroom-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #f43f5e);
  border-radius: 999px;
}

/* Distribution Grid */
.warroom-distribution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.warroom-distribution-card {
  background: rgba(14, 18, 30, 0.6);
  border: 1px solid var(--wr-border);
  border-radius: 12px;
  padding: 1rem;
}

.warroom-distribution-card h4 {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #f87171;
  letter-spacing: 0.08em;
}

/* Points Note */
.warroom-points-note {
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.15), rgba(15, 23, 42, 0.6));
}

.warroom-points-note p {
  color: #cbd5e1;
  font-size: 0.9rem;
  max-width: 800px;
  margin: 0 auto;
}

.warroom-points-note strong {
  color: #93c5fd;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.warroom-empty {
  text-align: center;
  color: #94a3b8;
  padding: 2rem;
  background: rgba(10, 14, 25, 0.5);
  border-radius: 12px;
  border: 1px dashed rgba(132, 160, 255, 0.2);
}

/* ── Responsive Rules ── */
@media (max-width: 1080px) {
  .hero {
    padding-top: 4.5rem;
    min-height: 30vh;
  }
  .warroom-metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .warroom-layout, .warroom-grid-two { grid-template-columns: 1fr; }
  .warroom-distribution-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: 2.2rem; }
  .warroom-metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .warroom-operator-row { grid-template-columns: 30px 1fr auto; }
  .warroom-operator-row img { display: none; }
  .warroom-intro { flex-direction: column; align-items: flex-start; }
}
