/* The campaign board is a command surface; combat keeps its existing instruments. */
.campaign-screen{display:none}
body[data-screen=campaign] .campaign-screen{display:block;max-width:1680px;margin:auto;padding:28px 4vw 26px}
body[data-screen=campaign] .menu-stage{min-height:calc(100svh - 135px)}
body[data-screen=campaign] .home-menu,body[data-screen=campaign] .loadout,body[data-screen=campaign] .mech-stage,body[data-screen=campaign] .squad{display:none!important}
body[data-screen=campaign] .menu-footer>span:last-child{visibility:hidden}
body[data-screen=home] .start-actions{display:grid}
#continueCampaign[hidden]{display:none}
.campaign-heading,.campaign-totals,.campaign-heading h1,.theater-heading,.map-legend,.loadout-heading,.campaign-squad-heading,.campaign-squad-heading>div,.campaign-launch-row,.campaign-deploy-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}
.campaign-heading{margin-bottom:24px;align-items:flex-end}
.campaign-heading .overline{margin:0 0 8px;font-size:10px;letter-spacing:.22em}
.campaign-heading h1{justify-content:flex-start;font-size:clamp(26px,3vw,42px);letter-spacing:-.04em;margin:0;flex-wrap:wrap;gap:18px}
.campaign-live{font:9px ui-monospace,Consolas,monospace;letter-spacing:.1em;color:#a7daaa;background:#1a352777;border:1px solid #7faf7540;border-radius:4px;padding:7px 9px}
.campaign-totals{font:9px ui-monospace,Consolas,monospace;color:var(--soft);gap:25px;flex-wrap:wrap;justify-content:flex-end}
.campaign-totals>span{display:grid;gap:4px}.campaign-totals b{font-size:23px;font-weight:400;color:var(--ink)}
.campaign-totals .text-button{font-size:12px}
.campaign-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;border:1px solid #7d9c6c44;background:#0d1711;border-radius:8px;overflow:hidden}
.campaign-theater{position:relative;min-width:0;background:radial-gradient(ellipse at 45% 45%,#1c3022aa,transparent 70%),#0a1410}
.theater-heading{position:absolute;left:22px;right:22px;top:18px;font:9px ui-monospace,Consolas,monospace;letter-spacing:.1em;color:#8ca692;z-index:1}
.theater-heading>span:last-child{font-size:8px;color:#647e6c}
.campaign-map{display:block;width:100%;height:auto;max-height:480px;min-height:290px;overflow:visible}
.map-river{stroke:#88b7a2;stroke-width:14;stroke-opacity:.07;fill:none}
.territory{cursor:pointer;outline:none}.territory polygon{fill:var(--cell-fill);stroke:var(--cell-stroke);stroke-width:1;transition:fill .15s,stroke .15s}
.territory.allied{--cell-fill:#254c3a;--cell-stroke:#508e6e;color:#91d7ac}
.territory.hostile{--cell-fill:#4e2c29;--cell-stroke:#8a5148;color:#ed9a86}
.territory.contested{--cell-fill:#51452c;--cell-stroke:#9d8550;color:#e7c980}
.territory.unknown{--cell-fill:#1c2a25;--cell-stroke:#384940;color:#687d70}
.territory:hover polygon,.territory:focus-visible polygon{stroke:#eef9e6;stroke-width:2;filter:brightness(1.4)}
.territory.active polygon{stroke:#d5efac;stroke-width:2.5;fill:#526b39}
.territory.inspected polygon{stroke:#f2efce;stroke-width:3}
.territory circle{fill:#0d1a10;stroke:currentColor;stroke-width:1}
.territory text{text-anchor:middle;font-family:ui-monospace,Consolas,monospace;fill:currentColor;pointer-events:none}
.territory .landing-code{font-size:10px;font-weight:700;fill:#e3efc5}.territory .cell-coordinate{font-size:7px;opacity:.6}
.hostile-mark{stroke:#d88a79;stroke-width:1.2;opacity:.6}
.map-labels{pointer-events:none;fill:#7f9e8b;font:8px ui-monospace,Consolas,monospace;letter-spacing:1.3px}
.map-labels .map-focus-label{fill:#e0eac0;font:600 16px Arial,sans-serif;letter-spacing:2px}
.map-legend{justify-content:center;flex-wrap:wrap;gap:18px;font-size:10px;color:#9cae9e;padding:0 18px}
.map-legend .allied{color:#88cca5}.map-legend .contested{color:#dfbe71}.map-legend .hostile{color:#d78b7c}.map-legend .unknown{color:#82948a}
.map-caption{font-size:11px;line-height:1.6;color:#849e8b;text-align:center;padding:12px 22px 18px;margin:0}
.campaign-briefing{border-left:1px solid #7d9c6c44;background:#121e16;padding:24px}
.campaign-briefing .overline{font-size:9px;letter-spacing:.14em;margin:0 0 9px}
.campaign-briefing h2{font-size:33px;margin:0 0 10px;letter-spacing:-.05em}
.battlefield-tags{font:8px ui-monospace,Consolas,monospace;color:#a3b29a;letter-spacing:.04em;margin:0 0 18px}
.canyon-thumbnail{height:100px;overflow:hidden;position:relative;border:1px solid #5f79504d;background:repeating-linear-gradient(0deg,transparent 0 3px,#0002 3px 4px),linear-gradient(170deg,#28382c,#0c1512);isolation:isolate}
.canyon-thumbnail:before,.canyon-thumbnail:after{content:'';position:absolute;background:#56734c;inset:7% 47% 0 -2%;clip-path:polygon(0 30%,20% 35%,25% 10%,45% 20%,46% 50%,65% 35%,77% 70%,100% 93%,100% 100%,0 100%);opacity:.6}
.canyon-thumbnail:after{transform:scaleX(-1);left:44%;right:-10%;background:#a4b37b;opacity:.4}
.canyon-thumbnail i{position:absolute;width:12%;height:35%;background:#8da57455;bottom:14%;left:20%;border-top:2px solid #a3ba7f77}.canyon-thumbnail i:nth-child(2){left:67%;height:55%}.canyon-thumbnail i:nth-child(3){left:80%;height:24%}
.canyon-thumbnail>span{position:absolute;bottom:10px;left:12px;font:8px ui-monospace,Consolas,monospace;color:#c2d4b0;z-index:1;letter-spacing:.1em}
.battlefield-description{font-size:12px;line-height:1.65;color:#a5b49a;margin:17px 0}
.campaign-field{display:grid;gap:8px;font:9px ui-monospace,Consolas,monospace;letter-spacing:.1em;color:#9eaf96}
.campaign-field select{width:100%;min-width:0;color:#dbe8ca;background:#0a140e;border:1px solid #79916466;border-radius:4px;font:12px Arial,sans-serif;padding:11px 10px;min-height:40px;letter-spacing:0;cursor:pointer}
.campaign-field select:disabled{cursor:default;opacity:.7}
.landing-detail{color:#9cae91;font-size:11px;line-height:1.6;margin:10px 0 16px;min-height:35px}
.briefing-objectives{display:grid;gap:7px;font:8px ui-monospace,Consolas,monospace;color:#97b083;letter-spacing:.06em;border-top:1px solid #7b985c33;padding-top:14px}
.campaign-scope{font-size:10px;line-height:1.7;color:#839575;margin:17px 0 0}
.campaign-loadout{margin-top:18px;border:1px solid #7d9c6c44;border-radius:7px;padding:16px 20px;background:#111c14}
.loadout-heading,.campaign-squad-heading{font:9px ui-monospace,Consolas,monospace;letter-spacing:.1em;color:#a4b798;margin-bottom:14px}
.loadout-heading .text-button,.campaign-squad-heading .text-button{font:11px Arial,sans-serif;letter-spacing:0}
.deployment-fitting{display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(210px,1.1fr) minmax(170px,1fr) auto;gap:25px;align-items:center}
.fitted-hands{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fitted-hands>span{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:4px 7px;min-width:0}
.fitted-hands svg{grid-column:1;grid-row:1/3;width:30px;height:36px;stroke:#a2b88a;fill:#a2b88a18;stroke-width:1.5}
.fitted-hands small{font:8px ui-monospace,Consolas,monospace;color:#8fa880;letter-spacing:.06em}.fitted-hands strong{font-size:11px;font-weight:400;color:#c9dfb6}
.deployment-stats{display:grid;text-align:right;gap:6px;min-width:120px}.deployment-stats strong{font-size:20px;font-weight:400}.deployment-stats span{font-size:10px;color:#96ab85}.deployment-stats.overloaded,.deployment-stats.overloaded span{color:#efad8b}
.special-detail{color:#8fa17f;font-size:10px;margin:11px 0 0;line-height:1.6}
.campaign-squad{padding:18px 0 0}.campaign-squad-heading small{color:#718b6b;font-size:9px;margin-left:16px}.campaign-squad-heading>div{gap:15px;flex-wrap:wrap}.room-code{color:#bedc9f;font-size:10px}
.campaign-pilots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;flex:1;min-width:0}
.campaign-pilot{padding:12px 10px;min-height:76px;display:flex;align-items:flex-start;gap:8px;border:1px solid #71925540;border-radius:5px;background:#132018;min-width:0;text-align:left}
.campaign-pilot.ready{border-color:#a4ce7580;background:#9ac5600c}.campaign-pilot>div{min-width:0;flex:1}.pilot-index{font:10px ui-monospace,Consolas,monospace;color:#809e73}
.campaign-pilot strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:10px;white-space:nowrap;font-weight:500}.campaign-pilot small{display:block;font-size:8px;color:#819678;line-height:1.5;margin-top:3px}.campaign-pilot em{font:7px ui-monospace,Consolas,monospace;color:#8ca47b;font-style:normal}.campaign-pilot.ready em{color:#c0f383}.campaign-pilot.open{color:#899e7e;font:9px ui-monospace,Consolas,monospace;cursor:pointer;border-style:dashed;align-items:center}.campaign-pilot.open:hover{border-color:#b9d59c}.campaign-pilot.open .pilot-index{font-size:18px}
.campaign-deploy-actions{flex-direction:column;gap:7px;min-width:175px}.campaign-deploy-actions .button{width:100%;min-height:43px;padding:10px 14px;font-size:11px;justify-content:center;letter-spacing:.05em}.campaign-deploy-actions .secondary{min-height:32px;padding:7px 12px;letter-spacing:0}.campaign-network-status{font-size:10px;color:#8da37f;line-height:1.6;margin:10px 0 0}
.campaign-result{margin:-6px 0 18px;padding:12px 16px;background:#abc7730c;border-left:2px solid #a9cd77;color:#bcd89f;font-size:12px;line-height:1.6}
.campaign-screen button:disabled{opacity:.4;cursor:default}
@media(min-width:1600px){.campaign-map{max-height:540px}.campaign-layout{grid-template-columns:minmax(0,1fr) 350px}.campaign-briefing{padding:30px}.battlefield-description{font-size:14px}.canyon-thumbnail{height:130px}.landing-detail{font-size:12px}.campaign-field select{font-size:14px}.campaign-pilot strong{font-size:12px}.campaign-pilot small{font-size:10px}}
@media(max-width:1100px){.campaign-screen .campaign-heading{align-items:flex-start}.campaign-live{display:none}.campaign-totals{gap:14px}.campaign-layout{grid-template-columns:minmax(0,1fr) 260px}.campaign-briefing{padding:20px}.deployment-fitting{grid-template-columns:1fr 1fr;gap:18px}.fitted-hands{order:2}.deployment-stats{order:3;text-align:left}.campaign-launch-row{flex-wrap:wrap}.campaign-pilots{flex-basis:100%}.campaign-deploy-actions{flex-direction:row;width:100%}.campaign-deploy-actions .button{min-height:40px}.campaign-squad-heading>div{gap:10px}}
@media(max-width:700px){body[data-screen=campaign] .campaign-screen{padding:22px 16px}.campaign-heading{display:block;margin-bottom:20px}.campaign-heading h1{font-size:31px}.campaign-totals{justify-content:flex-start;margin-top:18px;gap:25px}.campaign-totals>span{display:flex;align-items:center;gap:6px;font-size:8px}.campaign-totals b{font-size:19px}.campaign-totals .text-button{margin-left:auto;font-size:10px}.campaign-layout{grid-template-columns:1fr}.campaign-map{min-height:0;max-height:none}.theater-heading{top:12px;left:14px;right:14px;font-size:7px}.theater-heading>span:last-child{display:none}.map-legend{font-size:8px;gap:12px}.map-caption{font-size:10px;padding:12px 14px 16px}.campaign-briefing{border-left:0;border-top:1px solid #7d9c6c44;padding:20px}.campaign-briefing h2{font-size:30px}.canyon-thumbnail{display:none}.battlefield-description{margin:12px 0}.campaign-scope{margin-top:14px}.campaign-loadout{padding:16px}.deployment-fitting{gap:14px;grid-template-columns:minmax(0,1fr)}.fitted-hands{order:0}.deployment-stats{display:flex;text-align:left;align-items:center}.loadout-heading{font-size:8px}.loadout-heading .text-button{font-size:10px}.campaign-squad-heading{align-items:flex-start;flex-direction:column;gap:10px}.campaign-pilots{grid-template-columns:repeat(2,minmax(0,1fr))}.campaign-pilot{min-height:77px}.campaign-pilot strong{font-size:10px}.campaign-pilot small{font-size:9px}.campaign-deploy-actions{min-width:0}.campaign-deploy-actions .button{font-size:10px}.campaign-squad-heading small{margin-left:8px}}
@media(prefers-reduced-motion:reduce){.territory polygon{transition:none}}
