/* Country colors frame the desk; they do not encode a forecast or allegiance. */
:root {
  --bg: #080e18;
  --panel: #101b25;
  --panel2: #162732;
  --text: #f1f5f7;
  --muted: #b5c4cc;
  --lime: #eef3f6;
  --cyan: #9ac6ff;
  --orange: #e9b794;
  --us-blue: #18376a;
  --us-red: #ba334a;
  --iran-green: #17784b;
  --iran-red: #d04645;
}
body.game-mode {
  background: linear-gradient(90deg, #13264c 0%, #101c32 29%, #0b1420 48%, #101f25 62%, #103b2b 100%);
}
body.game-mode::before, body.game-mode::after {
  content: ""; position: fixed; top: 0; bottom: 0; width: 5px; z-index: 1100; pointer-events: none;
}
body.game-mode::before { left: 0; background: linear-gradient(#315c9b 0 33%, #edf1f5 33% 66%, #bf354b 66%); }
body.game-mode::after { right: 0; background: linear-gradient(#1f985c 0 33%, #edf1f5 33% 66%, #d14645 66%); }
.rail { background: linear-gradient(180deg, #16294e, #0d172d); border-right-color: #426197; }
.rail-link.active { color: #f7f7fb; border-color: #7485b9; background: #395b8b55; box-shadow: inset 3px 0 #c8455e; }
.brand-icon { filter: none; }
.topbar { background: linear-gradient(90deg, #172e56, #111c2c 47%, #163b2a); border-bottom: 1px solid #6d8590; }
.dot { background: #f0f2f7; box-shadow: 0 0 0 4px #ffffff13; }
body.game-mode .page-heading {
  min-height: 234px; padding: 16px 28px 28px; margin-bottom: 16px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px;
  border-left: 3px solid #5781c1; border-right: 3px solid #4ba878; border-top: 1px solid #798f9e;
  background: #0b1724; border-radius: 5px; overflow: hidden;
}
body.game-mode .page-heading::before { background: linear-gradient(90deg, #11234835, #0c172b95 32%, #0b172bdb 49%, #0b182b95 67%, #0d281a25); }
body.game-mode .page-heading::after { opacity: 0; }
body.game-mode .hero-visual img { opacity: 1; object-position: center 49%; }
body.game-mode .page-heading .heading-copy { align-self: center; text-align: center; }
body.game-mode .page-heading h1 { font-size: clamp(34px, 3.3vw, 46px); line-height: 1.15; color: #fff; margin: 8px 0; white-space: normal; }
body.game-mode .page-heading h1 .versus { color: #e2e6ec; padding: 0 4px; }
body.game-mode .page-heading .eyebrow { font-size: 12px; color: #f4f6f8; letter-spacing: 1.6px; }
body.game-mode .page-heading .heading-copy p { font-size: 15px; line-height: 1.5; color: #e0e6ed; text-shadow: 0 1px 3px #000; margin-inline: auto; }
body.game-mode .page-heading .sync-box { align-self: center; justify-self: center; flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 5px 12px; border: 1px solid #b5c9be50; border-radius: 4px; background: #081b21d9; text-align: center; }
body.game-mode .page-heading .sync-box strong { margin: 0; }
body.game-mode .sync-box > span { color: #edf2f4; }
.nation-identities { position: relative; z-index: 2; grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; width: 100%; }
.nation-identities a { font: 600 14px/1.4 var(--mono); letter-spacing: .14em; padding: 5px 8px; border-bottom: 3px solid; text-shadow: 0 1px 5px #000; }
.nation-identities .nation-us { border-color: #e8f0ff; background: #112652ba; }
.nation-identities .nation-iran { border-color: #eef8f1; background: #124d30ba; }
.nation-identities a:hover { color: white; background: #172333; }
.hero-visual figcaption { background: #08131fd9; color: #d2dde5; font-size: 12px; }
.model-market { background: linear-gradient(110deg, #182a4ae6, #10202ae6 53%, #16392be6); border-color: #667b85; }
.model-probability-bar .model-probability-segment.outcome-us { background: #4775bf; }
.model-probability-bar .model-probability-segment.outcome-iran { background: #2a9c62; }
.model-probability-bar .model-probability-segment.outcome-mixed { background: #a5b7c3; }
.model-probability-row.outcome-us dt::before { background: #79a7ee; }
.model-probability-row.outcome-iran dt::before { background: #62cc93; }
.model-market .model-outcome-labels .us { color: #adcaff; }
.model-market .model-outcome-labels .iran { color: #8bdead; }
.model-market .model-hero-probability { color: #edf4f8; }
.view-nav { background: linear-gradient(90deg, #182d50, #14232d 50%, #164330); border-color: #667f8b; }
.view-nav a.selected, .view-nav a.active, .view-nav a[aria-current='page'] { color: #f5f8fc; border-color: #acb8c099; background: #ffffff10; box-shadow: inset 0 -2px #edf2f7; }
.panel { background: linear-gradient(110deg, #112440e8, #111e2bea 48%, #133426e8); border-color: #66828b; }
.panel-heading { background: linear-gradient(90deg, #29436a80, #1b293880 48%, #285c4080); }
.status-strip { background: #142533; border-color: #637d8f; }
body.game-mode .game-stage .map-panel { border-left: 2px solid #6c92c6; border-right: 2px solid #60a880; }
body.game-mode .game-stage .outlook-panel { background: linear-gradient(150deg, #13283bf2, #133727f5); border-color: #83ab99; }
.leaflet-container { background: #16293b; }
.magellan-ad {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 24px;
  min-height: 146px; margin: 0 0 18px; padding: 22px 28px; overflow: hidden;
  border: 1px solid #9c906955; border-left: 3px solid #c4ab70; border-radius: 5px; background: #0f2529;
}
.magellan-ad::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #071e24f5 0%, #09212bed 35%, #102329ab 59%, #163f3320 100%); }
.magellan-ad-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.magellan-ad-copy { min-width: 0; max-width: 670px; }
.magellan-ad-disclosure { margin: 0 0 5px; color: #d2c7a2; font: 12px/1.5 var(--mono); letter-spacing: .12em; }
.magellan-ad-brand { color: #f3e6b7; font: 700 23px/1.2 var(--display); letter-spacing: .11em; }
.magellan-ad h2 { margin: 6px 0; color: #fff; font: 600 28px/1.15 var(--display); letter-spacing: .2px; }
.magellan-ad-description { margin: 0; color: #d1dee0; font-size: 15px; line-height: 1.6; max-width: 580px; }
.magellan-ad-cta { display: inline-flex; align-items: center; justify-content: center; align-self: center; margin-left: auto; flex-shrink: 0; padding: 12px 18px; min-height: 46px; background: #f1e8c9; color: #152324; border: 1px solid #ead7a1; border-radius: 4px; font-size: 15px; font-weight: 700; }
.magellan-ad-cta:hover { background: white; color: #102328; }
.magellan-ad-credit { position: absolute; bottom: 5px; right: 9px; color: #edf2eb; font-size: 12px; text-shadow: 0 1px 5px #000; }
@media (min-width: 1000px) {
  body.game-mode { overflow-y: auto; }
  body.game-mode .workspace { height: auto; min-height: 100dvh; }
  body.game-mode main { height: auto; min-height: calc(100dvh - 60px); }
  body.game-mode .game-stage { min-height: 660px; }
}
@media (max-width: 999px) {
  body.game-mode .page-heading { min-height: 234px; padding: 16px 20px 28px; gap: 10px; }
  body.game-mode .page-heading h1 { font-size: clamp(30px, 5.3vw, 43px); }
  body.game-mode .page-heading .sync-box { padding: 8px 10px; }
  .magellan-ad { padding: 22px; gap: 20px; }
  .magellan-ad h2 { font-size: 27px; }
}
@media (max-width: 600px) {
  body.game-mode .page-heading { grid-template-columns: minmax(0, 1fr); min-height: 284px; padding: 16px 17px 28px; gap: 10px; }
  body.game-mode .page-heading h1 { font-size: 34px; line-height: 1.08; }
  body.game-mode .page-heading .sync-box { grid-column: 1; text-align: left; display: flex; flex-wrap: wrap; gap: 5px 10px; }
  body.game-mode .page-heading .sync-box strong { margin: 0; }
  .nation-identities { gap: 10px; }
  .nation-identities a { font-size: 12px; letter-spacing: .08em; }
  body.game-mode .hero-visual img { object-position: center; }
  body.game-mode .page-heading::before { background: linear-gradient(0deg, #0c172bf0 0%, #0c172bba 55%, #0b172b55 100%); }
  .magellan-ad { display: block; padding: 20px 18px 26px; }
  .magellan-ad-brand { font-size: 22px; }
  .magellan-ad h2 { font-size: 27px; }
  .magellan-ad-cta { margin: 16px 0 0; }
  .magellan-ad::before { background: linear-gradient(90deg, #071e24ee, #09212bbe 75%, #10232977); }
}
