/* Command room: the stage, rather than a stack of dashboard panels. */
body.game-mode { background: #030914; color: #e7f5ff; overflow-y: auto; }
body.game-mode .workspace { min-height: 100dvh; height: auto; }
body.game-mode main { display: block; height: auto; min-height: calc(100dvh - 48px); padding: 0 18px 24px; }
body.game-mode .topbar { height: 48px; background: linear-gradient(90deg,#102543d9,#060e18ee 50%,#123327dd); }
body.game-mode .page-heading { min-height: 76px; height: 76px; padding: 10px 20px; margin: 0; border: 0; border-radius: 0; display: flex; justify-content: center; overflow: hidden; background: #07121b; }
body.game-mode .page-heading .heading-copy { z-index: 2; }
body.game-mode .page-heading h1 { font-size: 27px; margin: 0; letter-spacing: .18em; }
body.game-mode .page-heading .heading-copy p { margin: 3px 0 0; font: 12px/1.4 var(--mono); letter-spacing: .07em; }
body.game-mode .page-heading .eyebrow { display: none; }
body.game-mode .page-heading .sync-box { position: absolute; top: 8px; right: 12px; background: transparent; border: 0; padding: 0; display: block; text-align: right; z-index: 3; }
body.game-mode .page-heading .sync-box >span { font-size: 11px; }
body.game-mode .page-heading .sync-box strong { display: block; font-size: 11px; line-height: 1.5; }
body.game-mode .page-heading .sync-box button { font-size: 11px; padding: 2px 0; }
body.game-mode .nation-identities { position: absolute; top: 24px; left: 20px; width: 170px; display: block; }
body.game-mode .nation-identities .nation-iran { position: fixed; right: 38px; top: 77px; }
body.game-mode .nation-identities a { border: 0; font-size: 12px; padding: 3px 7px; }
body.game-mode .hero-visual { inset: 0; }
body.game-mode .hero-visual img { object-position: center; opacity: .45; }
body.game-mode .page-heading::before { background: linear-gradient(90deg,#08223b22,#07121bcc 33%,#061321cc 65%,#12422b22); }
.command-room { position: relative; min-height: 690px; height: max(690px, calc(100dvh - 160px)); isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 72%,#09375088,transparent 62%),linear-gradient(#030813,#04101e); border: 1px solid #154466; border-top: 0; box-shadow: inset 0 0 90px #0009; }
.command-room::after { content:''; position:absolute; inset:0; pointer-events:none; z-index:2; background: repeating-linear-gradient(0deg,transparent 0 3px,#38bfff02 3px 4px); box-shadow:inset 0 0 50px #0005; }
.command-globe { position: absolute; top: 186px; bottom: -60px; left:0; right:0; z-index:0; }
.command-globe canvas { display:block; width:100%; height:100%; touch-action:none; cursor:grab; }
.command-globe canvas:active { cursor:grabbing; }
.command-globe canvas:focus-visible { outline: 1px solid #66e9ff; outline-offset:-4px; }
.globe-fallback { text-align:center; margin-top:160px; max-width:480px; margin-inline:auto; color:#e8f6ff; }
body.game-mode .command-room .model-market { position:relative; z-index:4; margin:0 auto; width:min(920px,calc(100% - 36px)); padding:12px 16px 8px; border:0; background:linear-gradient(90deg,#092543b5,#09222ed9 48%,#0a3426b5); clip-path:polygon(2% 0,98% 0,100% 10%,100% 92%,98% 100%,2% 100%,0 92%,0 10%); box-shadow:none; }
body.game-mode .command-room .model-market-header { margin-bottom: 8px; align-items:center; gap:6px; }
body.game-mode .command-room .model-market-heading { display:flex; gap:14px; align-items:baseline; }
body.game-mode .command-room .model-market-kicker { display:none; }
body.game-mode .command-room .model-market h2 { font-size:30px; color:#dcfbff; text-shadow:0 0 18px #40d8ff66; }
body.game-mode .command-room .model-market-subtitle { font-size:12px; margin:0; max-width:none; }
body.game-mode .command-room .model-market-snapshot p { display:none; }
body.game-mode .command-room .model-subjective-badge { padding:3px 7px; font-size:11px; }
body.game-mode .command-room .model-market-grid { gap:12px; }
body.game-mode .command-room .model-card { padding:8px 12px 0; min-height:0; background:#061523c9; border:1px solid #26729588; border-top:2px solid #45ddff; border-radius:0; }
body.game-mode .command-room .model-card-top { min-height:27px; }
body.game-mode .command-room .model-monogram { display:none; }
body.game-mode .command-room .model-provider-name { display:flex; gap:9px; align-items:baseline; flex-wrap:wrap; }
body.game-mode .command-room .model-provider-name h3 { font-size:14px; }
body.game-mode .command-room .model-version { margin:0; font-size:11px; }
body.game-mode .command-room .model-state { margin:1px 0 3px; font-size:11px; }
body.game-mode .command-room .model-main-estimate, body.game-mode .command-room .model-confidence { display:none; }
body.game-mode .command-room .model-probability-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:8px 0; gap:6px; }
body.game-mode .command-room .model-probability-row { display:block; }
body.game-mode .command-room .model-probability-row dt { font-size:12px; gap:4px; white-space:normal; }
body.game-mode .command-room .model-probability-row dd { font:600 26px/1.1 var(--display); margin:3px 0; color:#f7fdff; text-shadow:0 0 12px #39bde655; }
body.game-mode .command-room .outcome-us dd { color:#96c5ff; }
body.game-mode .command-room .outcome-iran dd { color:#7ae3af; }
body.game-mode .command-room .model-card-bottom { display:flex; justify-content:space-between; border-top:1px solid #23536b; gap:2px; }
body.game-mode .command-room .model-meta-line { display:block; padding:4px 0; font-size:11px; line-height:1.4; }
body.game-mode .command-room .model-card-bottom > .model-meta-line > span:first-child { display:none; }
body.game-mode .command-room .model-reasoning summary { padding:5px 0; font-size:11px; }
body.game-mode .command-room .model-market-footer { margin-top:5px; gap:12px; }
body.game-mode .command-room .model-history-open,body.game-mode .command-room .model-definition summary { font-size:12px; padding:3px 0; min-height:0; }
.room-window { z-index:4; position:absolute; width:260px; border:1px solid #3ac7ee55; border-top:2px solid #61e7ff; background:linear-gradient(125deg,#081d2ced,#061323e6); box-shadow:0 15px 30px #0006,inset 0 0 24px #209ddd09; backdrop-filter:blur(9px); }
.room-stories { top:240px; left:20px; max-height:350px; }
.room-window-title { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 12px; border-bottom:1px solid #35a6c73b; font:12px/1.4 var(--mono); letter-spacing:.1em; color:#8be9ff; }
.room-window-title button,.room-window-title a { color:#c9f5ff; font-size:20px; padding:0 4px; border:0; background:none; min-height:24px; }
.room-window-hint { font-size:12px; color:#97b4c5; margin:8px 12px; }
#globe-stories { max-height:270px; overflow:auto; scrollbar-width:thin; scrollbar-color:#1e6f8e transparent; }
.globe-story { display:block; text-align:left; width:100%; border:0; border-top:1px solid #284151; padding:11px 12px; background:transparent; color:#d7eaf5; }
.globe-story:hover,.globe-story.active { background:#164864aa; box-shadow:inset 2px 0 #f2b64b; }
.globe-story span { display:block; font:11px/1.5 var(--mono); color:#83a9be; margin-bottom:5px; }
.globe-story strong { display:block; font-size:14px; line-height:1.5; font-weight:500; }
.globe-story small { display:block; margin-top:7px; font:11px/1.4 var(--mono); color:#f3bf65; }
.room-selected { right:20px; top:250px; width:260px; border-top-color:#e8b75b; max-height:330px; overflow:auto; }
#globe-story-detail { padding:13px; }
.story-source { font:11px/1.6 var(--mono); color:#94b3c4; }
#globe-story-detail h3 { font-size:18px; line-height:1.45; margin:9px 0; font-weight:500; color:white; }
#globe-story-detail p { font-size:14px; line-height:1.6; color:#b9d0df; }
#globe-story-detail .story-place { font:12px/1.5 var(--mono); color:#edc47c; }
.story-original { display:block; margin-top:13px; font:12px/1.5 var(--mono); color:#91e4ff; text-decoration:underline; }
.globe-location-label { position:absolute; z-index:3; bottom:107px; left:50%; transform:translateX(-50%); text-align:center; color:#a4f4ff; font:600 18px/1.5 var(--display); letter-spacing:.16em; pointer-events:none; text-shadow:0 0 20px #0088d0; }
.globe-location-label span { display:block; color:#82adbf; font:12px/1.6 var(--mono); letter-spacing:0; white-space:nowrap; }
.globe-controls { position:absolute; z-index:5; bottom:35px; left:50%; transform:translateX(-50%); display:flex; gap:6px; justify-content:center; padding:8px; background:#061222e6; border:1px solid #3285ad88; box-shadow:0 0 20px #008eff15; }
.globe-controls button { padding:8px 10px; min-height:36px; font:12px/1.4 var(--mono); white-space:nowrap; background:#09293d; border:1px solid #246380; color:#bceeff; }
.globe-controls button:hover { background:#124969; }
.globe-controls button:first-child,.globe-controls button:nth-child(2) { font-size:20px; line-height:1; }
.room-geography-credit { position:absolute; bottom:9px; right:14px; z-index:3; font:10px/1.5 var(--mono); color:#5e8ba5; }
body.game-mode .command-room .comms-dock { z-index:6; right:20px; left:auto; top:auto; bottom:140px; width:260px; background:#071d2de8; border:1px solid #51727e; box-shadow:0 12px 30px #0008; backdrop-filter:blur(8px); max-height:none; }
body.game-mode .command-room .comms-dock[hidden] { display:none; }
.comms-drag-handle { display:flex; align-items:center; justify-content:space-between; padding:8px 10px; border-bottom:1px solid #58849455; cursor:move; touch-action:none; }
body.game-mode .comms-drag-handle .comms-label { margin:0; padding:0; font-size:11px; line-height:1.5; }
.comms-close { border:0; background:none; color:#d1eaf5; font-size:22px; padding:0 5px; line-height:1; min-height:25px; cursor:pointer; }
body.game-mode .comms-statement { padding:10px; gap:10px; }
body.game-mode .comms-statement strong { font-size:14px; line-height:1.5; }
body.game-mode .comms-statement q { font-size:14px; line-height:1.5; }
body.game-mode .comms-controls { padding:5px 9px; }
body.game-mode .comms-controls span { font-size:10px; line-height:1.5; }
body.game-mode .comms-portrait { width:40px; height:49px; }
body.game-mode .view-nav { position:relative; flex-wrap:wrap; margin:0; padding:12px; background:linear-gradient(90deg,#112846,#092031,#103527); border:1px solid #246882; border-top:2px solid #29a4ea; gap:5px; box-shadow:0 0 25px #23b4ff13; }
body.game-mode .view-nav a { font-size:12px; padding:9px 12px; }
body.game-mode .status-strip { margin:0; border:0; font-size:12px; padding:10px 14px; }
body.game-mode .signal-ribbon { display:none; }
body.game-mode .game-stage { display:none; }
#command-content .game-stage { display:grid; min-height:740px; height:auto; }
body.game-mode .magellan-ad { margin:18px 0; min-height:135px; }
body.game-mode .story-on-globe { color:#8bddff; border:1px solid #39718d; background:#0b2438; min-height:36px; padding:5px 9px; font:12px/1.5 var(--mono); }
body.game-mode .command-room [hidden] { display:none!important; }
@media(min-width:1500px) { .command-room { height:max(800px,calc(100dvh - 150px)); } .room-stories { width:310px;max-height:430px; } #globe-stories { max-height:350px; } .room-selected { width:300px; } body.game-mode .command-room .comms-dock { width:300px; } }
@media(max-width:1100px) { .room-window { width:220px; } .room-stories { left:12px; } .room-selected { right:12px;top:245px;width:220px; } body.game-mode .command-room .comms-dock { width:220px;right:12px;bottom:145px; } body.game-mode .page-heading .sync-box { display:none; } .globe-story strong { font-size:13px; } }
@media(max-width:760px) {
  body.game-mode main { padding:0 8px 20px; }
  body.game-mode .page-heading { min-height:96px;height:96px;padding:12px 10px; }
  body.game-mode .page-heading h1 { font-size:23px;letter-spacing:.1em; }
  body.game-mode .page-heading .heading-copy p { font-size:11px;max-width:240px; }
  body.game-mode .nation-identities { display:none; }
  .command-room { height:auto;min-height:1080px;overflow:hidden; }
  body.game-mode .command-room .model-market { width:100%;clip-path:none; padding:12px 10px; }
  body.game-mode .command-room .model-market-heading { display:block; }
  body.game-mode .command-room .model-market h2 { font-size:27px; }
  body.game-mode .command-room .model-market-subtitle { font-size:12px; }
  body.game-mode .command-room .model-market-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:6px; }
  body.game-mode .command-room .model-card { padding:8px 6px 0; }
  body.game-mode .command-room .model-provider-name { display:block; }
  body.game-mode .command-room .model-provider-name h3 { font-size:13px; }
  body.game-mode .command-room .model-version { font-size:10px;min-height:28px; }
  body.game-mode .command-room .model-probability-list { grid-template-columns:1fr;gap:5px; }
  body.game-mode .command-room .model-probability-row { display:flex;gap:2px;align-items:center; }
  body.game-mode .command-room .model-probability-row dt { font-size:11px;line-height:1.4; }
  body.game-mode .command-room .model-probability-row dt::before { display:none; }
  body.game-mode .command-room .model-probability-row dd { font-size:21px; }
  body.game-mode .command-room .model-card-bottom { display:block; }
  body.game-mode .command-room .model-meta-line { font-size:10px; }
  body.game-mode .command-room .model-reasoning summary { font-size:11px; }
  .command-globe { top:292px;height:480px;bottom:auto;left:-100px;right:-100px; }
  .room-stories { top:835px;left:10px;right:10px;width:auto;max-height:230px; }
  #globe-stories { max-height:160px; }
  .globe-story { padding:9px 12px; }
  .globe-story strong { font-size:14px; }
  .room-selected { top:750px;right:10px;left:10px;width:auto;max-height:260px;z-index:8; }
  .globe-location-label { top:695px;bottom:auto;font-size:16px; }
  .globe-controls { top:760px;bottom:auto;width:calc(100% - 20px);flex-wrap:wrap;gap:4px;padding:5px; }
  .globe-controls button { font-size:11px;padding:6px 7px; }
  .room-geography-credit { font-size:9px; }
  body.game-mode .command-room .comms-dock { width:210px;top:490px;bottom:auto;right:10px; }
  body.game-mode .comms-statement q { font-size:12px; }
  body.game-mode .comms-statement strong { font-size:13px; }
  #command-content .game-stage { display:block; }
  body.game-mode .view-nav { gap:2px;padding:8px; }
  body.game-mode .view-nav a { padding:9px 7px; }
}
@media(prefers-reduced-motion:reduce) { .command-room *, .command-room *::before, .command-room *::after { animation:none!important; } }

.command-globe canvas { filter: brightness(1.2) saturate(1.6); }
body.game-mode .command-room .has-forecast .model-state { display:flex; }
body.game-mode .command-room .model-market { overflow:visible;clip-path:none;border:1px solid #26738b55;border-top:0; }
body.game-mode .command-room .model-card-bottom > .model-meta-line { padding:4px 0; }
body.game-mode .command-room .model-card-bottom > .model-meta-line span { font-size:11px; }
body.game-mode .command-room .model-history-open { color:#b3e7ff; }
body.game-mode .command-room .model-reasoning-body { z-index:1300; }
body.game-mode .room-selected:not([hidden]) ~ .comms-dock { bottom:100px; }

body.game-mode .command-room .model-market .model-version, body.game-mode .command-room .model-state { font-size:12px; }
body.game-mode .command-room .model-card-bottom > .model-meta-line span { font-size:12px; }
.room-window-title, .globe-story span, .globe-story small, .story-source, body.game-mode .comms-drag-handle .comms-label { font-size:12px; }
@media(max-width:760px) {
 body.game-mode .command-room .model-market-header { flex-direction:row;align-items:center; }
 body.game-mode .command-room .model-market-snapshot { width:auto; }
 body.game-mode .command-room .model-provider-name h3 { font-size:14px; }
 body.game-mode .command-room .model-version { min-height:54px; font-size:12px; }
 body.game-mode .command-room .model-probability-row dt { font-size:12px; }
 body.game-mode .command-room .model-meta-line { font-size:12px; }
 body.game-mode .command-room .model-reasoning summary { font-size:12px; }
 .command-room { min-height:1200px; }
 .command-globe { top:420px; }
 .globe-location-label { top:805px; }
 .globe-controls { top:865px; }
 .room-stories { top:960px; }
 .room-selected { top:945px; }
 body.game-mode .command-room .comms-dock { top:610px; }
}

@media(min-width:761px) {
 .room-selected { max-height:210px; }
 body.game-mode .command-room .comms-dock { bottom:35px; }
 body.game-mode .room-selected:not([hidden]) ~ .comms-dock { bottom:35px; }
}

.city-window {position:absolute;inset:250px 300px 95px;z-index:5;background:#071725;border:1px solid #58ddff;box-shadow:0 20px 70px #000a;}
.city-window[hidden]{display:none}.city-window #city-map{height:calc(100% - 103px);min-height:140px}.city-window p,.city-window>a{font:12px/1.5 var(--mono);margin:8px 12px;color:#b5d5e4}.city-window .leaflet-control-attribution{font-size:10px}.city-window .leaflet-container{background:#101923}
@media(max-width:1000px){.city-window{left:25%;right:25%}}
@media(max-width:700px){.city-window{inset:460px 10px auto;height:415px}.city-window #city-map{height:305px}}

.city-options{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.city-options span{width:100%;font:11px var(--mono);color:#99c4d5}.city-options button{background:#123247;border:1px solid #34677f;color:#bceeff;font-size:12px;padding:6px 8px}
/* Retained estimates must keep their visible dated status. */
body.game-mode .command-room .has-forecast .model-state {
 position:static;width:auto;height:auto;margin:5px 0;padding:0;overflow:visible;
 clip:auto;clip-path:none;white-space:normal;display:flex;line-height:1.4;
}
@media(min-width:761px){
 body.game-mode .nation-identities{left:20px;right:190px;width:auto}
 body.game-mode .nation-identities .nation-iran{position:absolute;right:0;top:0}
 .room-stories,.room-selected{top:340px}
 .city-window{top:340px}
}
