.page-header {
  text-align: center;
  margin: 16px 0;
}

.subtitle {
  font-size: 0.85rem;
  opacity: 0.7;
}

.panel {
  max-width: 1100px;
  margin: 14px auto;
  padding: 12px;
}

.panel.center {
  text-align: center;
}

.hint {
  font-size: 0.75rem;
  opacity: 0.6;
}

select, button {
  padding: 8px 12px;
  font-size: 0.9rem;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

.alliance-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.alliance-row {
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.alliance-row.selected {
  background: rgba(0,255,200,0.12);
  border-color: rgba(0,255,200,0.4);
}
.marquee {
  margin-top: 10px;
}

.marquee h4 {
  font-size: 0.8rem;
  margin-bottom: 6px;
  opacity: 0.8;
}

.marquee-player {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}

.marquee-player:last-child {
  border-bottom: none;
}

.marquee-player .power {
  font-weight: 600;
  color: #00ffc8;
}
.metric {
  position: relative;
  cursor: help;
}

.metric::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  background: rgba(10, 15, 20, 0.95);
  color: #e6eef0;
  padding: 8px 10px;
  font-size: 0.7rem;
  line-height: 1.3;
  width: 220px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.metric::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(10, 15, 20, 0.95);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.metric:hover::after,
.metric:hover::before {
  opacity: 1;
}
.matchup-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  background: rgba(255,255,255,0.03);
}

.matchup-verdict {
  font-weight: 600;
  margin-bottom: 6px;
}

.matchup-outcome {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.matchup-outcome.collapse { color: #ff5c5c; }
.matchup-outcome.dominant { color: #ff9f43; }
.matchup-outcome.advantage { color: #3ddc84; }
.matchup-outcome.close { color: #cccccc; }

.matchup-reason {
  font-size: 0.75rem;
  opacity: 0.8;
}
.collapse-prob {
  font-size: 0.8rem;
  margin: 6px 0;
  color: #ff9f43;
}

.collapse-toggle {
  background: none;
  border: none;
  color: #00ffc8;
  cursor: pointer;
  font-size: 0.75rem;
  margin-top: 6px;
}

.collapse-panel {
  margin-top: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid #ff5c5c;
  border-radius: 6px;
  font-size: 0.75rem;
}

.collapse-panel p {
  margin-bottom: 6px;
  opacity: 0.85;
}

.collapse-panel ul {
  padding-left: 16px;
  opacity: 0.85;
}

.collapse-panel li {
  margin-bottom: 4px;
}
.collapse-trigger {
  margin-top: 6px;
  padding: 6px;
  background: rgba(255,0,0,0.08);
  border-radius: 6px;
  font-size: 0.75rem;
}
.alliance-card {
  position: relative;
}

.alliance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(0,255,200,0.08),
    transparent 40%
  );
  pointer-events: none;
}

.metrics strong {
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.metric span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.status.good {
  background: rgba(0,255,150,0.15);
  color: #3ddc84;
}

.status.warn {
  background: rgba(255,200,0,0.15);
  color: #ffcc00;
}

.status.bad {
  background: rgba(255,80,80,0.15);
  color: #ff5c5c;
}
.matchup-card {
  border-left: 4px solid rgba(255,255,255,0.08);
}

.matchup-outcome.collapse {
  border-left: 4px solid #ff5c5c;
  padding-left: 6px;
}

.matchup-outcome.dominant {
  border-left: 4px solid #ff9f43;
  padding-left: 6px;
}

.matchup-outcome.advantage {
  border-left: 4px solid #3ddc84;
  padding-left: 6px;
}
.collapse-panel p {
  font-style: italic;
  line-height: 1.4;
}

.collapse-panel ul li {
  position: relative;
}

.collapse-panel ul li::before {
  content: "•";
  position: absolute;
  left: -10px;
  color: #ff5c5c;
}
.stress-test-btn:hover {
  background: rgba(255,0,0,0.25);
  border-color: #ff5c5c;
  transform: scale(1.02);
}
.collapse-panel,
.stress-test-result {
  transition: all 0.25s ease;
}
body.kobra-dark {
  background: radial-gradient(circle at top, #05060a, #000);
  color: #e6eef0;
  font-family: Inter, system-ui, sans-serif;
}

.kobra-header {
  text-align: center;
  padding: 18px;
}

.kobra-header h1 {
  letter-spacing: 1.2px;
  color: #00ffc8;
}

.panel {
  max-width: 1100px;
  margin: 14px auto;
  padding: 14px;
}

.hint {
  font-size: 0.75rem;
  opacity: 0.6;
}

select, button {
  background: #071018;
  border: 1px solid rgba(0,255,200,0.3);
  color: #e6eef0;
  padding: 8px 12px;
  border-radius: 8px;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.alliance-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 8px;
}

.alliance-row {
  padding: 8px;
  text-align: center;
  border: 1px solid rgba(0,255,200,0.15);
  border-radius: 8px;
  cursor: pointer;
}

.alliance-row.selected {
  background: rgba(0,255,200,0.12);
  box-shadow: 0 0 12px rgba(0,255,200,0.4);
}

.hidden { display: none; }

/* Alliance Cards */

#allianceCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 14px;
}

.alliance-card {
  background: linear-gradient(145deg, #050b12, #020408);
  border: 1px solid rgba(0,255,200,0.25);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 0 18px rgba(0,255,200,0.15);
}

.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  margin-bottom: 6px;
}

.status.good { background: rgba(0,255,150,0.2); }
.status.warn { background: rgba(255,200,0,0.2); }
.status.bad  { background: rgba(255,80,80,0.2); }

.metrics {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.metric span {
  font-size: 0.65rem;
  opacity: 0.7;
}

.metric strong {
  font-size: 1.1rem;
  color: #00ffc8;
}

.marquee h4 {
  font-size: 0.75rem;
  margin: 6px 0;
}

.marquee-player {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}

/* Matchups */

.matchup-card {
  background: #050b12;
  border-left: 4px solid #00ffc8;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}

.matchup-outcome.collapse { color: #ff5c5c; }
.matchup-outcome.dominant { color: #ff9f43; }
.matchup-outcome.advantage { color: #3ddc84; }

.collapse-panel {
  background: rgba(255,0,0,0.08);
  padding: 10px;
  border-radius: 8px;
  margin-top: 8px;
}

.stress-test-btn {
  background: rgba(255,0,0,0.2);
  border: 1px solid #ff5c5c;
  color: #ffdede;
  font-size: 0.7rem;
  margin-top: 6px;
}
#charts {
  margin-top: 20px;
}

.chart-card {
  background: #050b12;
  border: 1px solid rgba(0,255,200,0.25);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.math-box {
  margin-top: 12px;
  display: grid;
  grid-template-rows: 120px 120px 140px 140px;
  gap: 10px;
}

.math-box canvas {
  width: 100% !important;
  height: 100% !important;
}
.alliance-intel {
  position: relative;
  margin-top: 10px;
}

.intel-pie {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 90px;
  height: 90px;
  z-index: 2;
}

.marquee {
  padding-right: 100px; /* space for pie */
}

.intel-bars {
  margin-top: 12px;
  height: 160px;
}

.intel-bars canvas,
.intel-pie canvas {
  width: 100% !important;
  height: 100% !important;
}
/* Core card */
.alliance-intel {
  position: relative;
  padding: 12px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: 0 0 18px rgba(0, 255, 200, 0.08);
}

/* Status-based backgrounds */
.alliance-intel.good {
  background: linear-gradient(
    180deg,
    rgba(0, 255, 200, 0.18),
    rgba(0, 255, 200, 0.05)
  );
  border: 1px solid rgba(0, 255, 200, 0.35);
}

.alliance-intel.warn {
  background: linear-gradient(
    180deg,
    rgba(255, 193, 7, 0.18),
    rgba(255, 193, 7, 0.05)
  );
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.alliance-intel.bad {
  background: linear-gradient(
    180deg,
    rgba(255, 77, 77, 0.20),
    rgba(255, 77, 77, 0.06)
  );
  border: 1px solid rgba(255, 77, 77, 0.35);
}

/* Header bar */
.intel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  margin: -12px -12px 10px -12px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Status text */
.intel-status {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* Alliance title */
.intel-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.intel-title small {
  font-weight: 400;
  opacity: 0.8;
}
.alliance-intel {
  position: relative;
  padding: 14px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}



/* TITLE */
.intel-title {
  font-size: 1.05rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.intel-title .wz {
  font-weight: 400;
  opacity: 0.8;
}

/* META */
.intel-meta {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

/* PIE */
.intel-pie {
  position: absolute;
  top: 42px;
  right: 10px;
  width: 90px;
  height: 90px;
  z-index: 2;
}

/* COMBAT */
.combat-number {
  font-size: 0.95rem;
  margin: 6px 0;
  position: relative;
  z-index: 1;
}

/* MARQUEE */
.marquee {
  padding-right: 110px;
  margin-bottom: 8px;
}

.marquee-player {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* BARS */
.intel-bars {
  height: 160px;
}



.intel-title {
  font-size: 1rem;
  font-weight: 700;
}

.intel-meta {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* PIE */
.intel-pie {
  position: absolute;
  top: -18px;          /* 👈 pushes it ABOVE strip */
  right: 10px;
  width: 92px;
  text-align: center;
  z-index: 3;
}

.intel-pie canvas {
  width: 92px !important;
  height: 92px !important;
}

.pie-label {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* MARQUEE FLOW */
.marquee {
  padding-right: 120px; /* room for pie */
}

/* TITLE */
.intel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #eafff8;          /* 👈 strong contrast */
  text-shadow: 0 0 6px rgba(0,255,200,0.35);
}

/* META */
.intel-meta {
  font-size: 0.78rem;
  color: #c7fff2;          /* 👈 readable */
  opacity: 0.9;
  margin-top: 2px;
}
.intel-pie {
  position: absolute;
  top: 10px;              /* 👈 INSIDE card */
  right: 12px;
  width: 88px;
  height: 88px;
  z-index: 6;             /* above strip */
}

.intel-pie canvas {
  width: 100% !important;
  height: 100% !important;
}

.pie-label {
  font-size: 0.7rem;
  color: #bfffee;
  opacity: 0.85;
  margin-top: 2px;
}
/* HEADER STRIP — HARD CONTRAST */
.intel-strip {
  position: relative;
  padding: 10px 14px;
  margin: -14px -14px 12px -14px;

  background: rgba(6, 12, 18, 0.92); /* 👈 DARK, NOT GREEN */
  backdrop-filter: blur(8px);

  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 5;
}

/* STATUS ACCENT LINE (TOP) */
.intel-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
}

/* Accent color ONLY */
.alliance-intel.good .intel-strip::before {
  background: #00ffc8;
}
.alliance-intel.warn .intel-strip::before {
  background: #ffc107;
}
.alliance-intel.bad .intel-strip::before {
  background: #ff4d4d;
}
.intel-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;                /* 👈 PURE WHITE */
  letter-spacing: 0.3px;
}

.intel-title .wz {
  color: #9af3e1;                 /* 👈 CYAN META */
  font-weight: 500;
  margin-left: 4px;
}

.intel-meta {
  font-size: 0.78rem;
  color: #bdfdf0;                 /* 👈 CLEAR */
  font-weight: 600;
  margin-top: 2px;
}
.intel-pie {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 88px;
  height: 88px;

  z-index: 6; /* above header, but not hiding text */
  pointer-events: auto;
}
.intel-title,
.intel-meta {
  position: relative;
  z-index: 7; /* 👈 always above pie */
}
/* =========================
   HEADER / NAV
========================= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(5, 10, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.site-header .logo a {
  color: #00ffc8;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  text-decoration: none;
}

/* NAV LINKS */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap; /* IMPORTANT: prevents hiding on small screens */
}

.nav a {
  position: relative;
  color: #d8fdf3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: #00ffc8;
}

/* =========================
   BADGE LINK (Experimental)
========================= */
.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Badge style */
.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* De-emphasize experimental link slightly */
.badge-link {
  opacity: 0.75;
}

.badge-link:hover {
  opacity: 1;
}

/* =========================
   MOBILE SAFETY
========================= */
@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    width: 100%;
    gap: 14px;
  }

  .nav a {
    font-size: 13px;
  }
}
/* =========================
   LWServers Skin Overlay
========================= */

body.kobra-dark {
  background: radial-gradient(ellipse at top, #0b1320 0%, #05080f 60%);
  color: #e6f2f0;
}

/* Replace aggressive headers */
.kobra-header {
  display: none;
}


/* Buttons match LWServers */
#analyzeBtn {
  background: linear-gradient(135deg, #00ffc8, #00bfff);
  color: #022;
  font-weight: 600;
  border-radius: 10px;
  border: none;
}

/* Tone down neon glow */
.alliance-card,
.matchup-card {
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.06);
}
.panel {
  width: 100%;
  margin: 14px 0;
  padding: 14px;
}
.page {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}
.intel-bars {
  position: relative;
}

.bar-overlay {
  position: absolute;
  top: 6px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 11px;
  letter-spacing: 0.5px;
}



.win-percent {
  color: #eafff8;
  font-weight: 600;
}
.pie-rank {
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #f5c542;
}
.alliance-search {
  width: 100%;
  padding: 8px 10px;
  margin: 8px 0;
  background: #0f1a1f;
  border: 1px solid #2a3b42;
  color: #eafff8;
  border-radius: 6px;
}

.search-results {
  background: #0b1418;
  border: 1px solid #2a3b42;
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.search-result-item {
  padding: 8px 10px;
  cursor: pointer;
}

.search-result-item:hover {
  background: #16252c;
}

.search-result-item.selected {
  opacity: 0.6;
}
#acis-appendix {
  background: linear-gradient(180deg, #070e12, #04090c);
  border-top: 1px solid #1c2a31;
  padding: 36px 20px 48px;
  margin-top: 60px;
  color: #b7d7d2;
}

#acis-appendix .acis-container {
  max-width: 1100px;
  margin: 0 auto;
}

.acis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.acis-header h3 {
  font-size: 14px;
  letter-spacing: 1.2px;
  color: #eafff8;
}

.acis-version {
  font-size: 10px;
  opacity: 0.6;
}

.acis-lead {
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 26px;
}

.acis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 26px;
}

.acis-block {
  font-size: 11px;
  line-height: 1.6;
}

.acis-block h4 {
  font-size: 11px;
  color: #f5c542;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.acis-block.full {
  grid-column: span 2;
}

.acis-block.muted {
  opacity: 0.6;
}

.acis-disclaimer {
  margin-top: 28px;
  font-size: 10px;
  opacity: 0.55;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 720px) {
  .acis-grid {
    grid-template-columns: 1fr;
  }
}
#acis-appendix {
  background: linear-gradient(180deg, #0a1217, #060b0e);
  border-top: 1px solid #22343c;
  padding: 56px 24px 64px;
  margin-top: 72px;
  color: #cfe6e1;
}

#acis-appendix .acis-container {
  max-width: 1100px;
  margin: 0 auto;
}

.acis-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.acis-header h2 {
  font-size: 22px;
  letter-spacing: 1.4px;
  color: #eafff8;
}

.acis-version {
  font-size: 13px;
  opacity: 0.65;
}

.acis-lead {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 34px;
  max-width: 900px;
}

.acis-equation {
  background: #050a0d;
  border: 1px solid #2a3c43;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 42px;
  text-align: center;
}

.acis-equation code {
  font-size: 20px;
  letter-spacing: 1px;
  color: #f5c542;
}

.eq-caption {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.7;
}

.acis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 36px;
}

.acis-block h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: #f5c542;
}

.acis-block p {
  font-size: 14.5px;
  line-height: 1.75;
}

.acis-block.full {
  grid-column: span 2;
}

.acis-ai {
  margin-top: 48px;
}

.acis-ai h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #eafff8;
}

.acis-ai p {
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 900px;
}

.acis-disclaimer {
  margin-top: 42px;
  font-size: 13px;
  opacity: 0.6;
  max-width: 900px;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
  .acis-grid {
    grid-template-columns: 1fr;
  }

  .acis-header h2 {
    font-size: 18px;
  }

  .acis-equation code {
    font-size: 16px;
  }
}
#acis-appendix {
  background: linear-gradient(180deg, #0a1217, #060b0e);
  border-top: 1px solid #22343c;
  padding: 36px 20px 40px;
  margin-top: 56px;
  color: #cfe6e1;
}

.acis-container {
  max-width: 980px;
  margin: 0 auto;
}

.acis-title {
  font-size: 18px;
  letter-spacing: 1.2px;
  color: #eafff8;
  margin-bottom: 10px;
}

.acis-summary {
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 14px;
  opacity: 0.9;
}

.acis-equation-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
  flex-wrap: wrap;
}

.acis-equation-inline code {
  font-size: 15px;
  color: #f5c542;
  background: #050a0d;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #2a3c43;
}

.acis-equation-inline span {
  font-size: 13px;
  opacity: 0.7;
}

.acis-points {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 16px;
  padding-left: 18px;
}

.acis-points li {
  margin-bottom: 4px;
}

.acis-ai-compact {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.acis-footnote {
  font-size: 12px;
  opacity: 0.6;
  line-height: 1.5;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .acis-title {
    font-size: 16px;
  }

  .acis-summary,
  .acis-ai-compact {
    font-size: 13.5px;
  }

  .acis-equation-inline code {
    font-size: 14px;
  }
}
#acis-appendix {
  background: linear-gradient(180deg, #0a1217, #060b0e);
  border-top: 1px solid #22343c;
  padding: 28px 18px 32px;
  margin-top: 48px;
  color: #cfe6e1;
}

.acis-container {
  max-width: 960px;
  margin: 0 auto;
}

.acis-title {
  font-size: 17px;
  letter-spacing: 1.1px;
  color: #eafff8;
  margin-bottom: 8px;
}

.acis-summary {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  opacity: 0.9;
}

.acis-equation-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}

.acis-equation-inline code {
  font-size: 14px;
  color: #f5c542;
  background: #050a0d;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid #2a3c43;
}

.acis-equation-inline span {
  font-size: 12px;
  opacity: 0.65;
}

.acis-points {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 12px;
  padding-left: 16px;
}

.acis-points li {
  margin-bottom: 3px;
}

.acis-ai-compact {
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.acis-footnote {
  font-size: 11.5px;
  opacity: 0.6;
  line-height: 1.45;
}

/* Mobile */
@media (max-width: 768px) {
  .acis-title {
    font-size: 15.5px;
  }

  .acis-summary,
  .acis-ai-compact {
    font-size: 13px;
  }

  .acis-equation-inline code {
    font-size: 13px;
  }
}
/* ===== Warzone + Alliance selector grid ===== */

.selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.selector-item {
  position: relative;
  width: 100%;
}

.selector-item label {
  display: block;
  font-size: 12px;
  color: #9ef5e5;
  margin-bottom: 6px;
}

/* Inputs consistency */
#warzoneSelect,
.alliance-search {
  width: 100%;
  height: 38px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #0c1b1a;
  color: #eafff8;
  border: 1px solid #1e3f3b;
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #081514;
  border: 1px solid #1e3f3b;
  border-radius: 6px;
  max-height: 260px;
  overflow-y: auto;
}

/* Mobile — still two columns */
@media (max-width: 520px) {
  .selector-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #warzoneSelect,
  .alliance-search {
    height: 36px;
    font-size: 13px;
  }
}

