:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#27382f;background:#f5f4ee;font-synthesis:none;--paper:#fdfcf8;--ink:#27382f;--muted:#7a8278;--line:#dedfd4;--orange:#c4603c;--green:#344e3d;--purple:#8065a0}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.42}button,a,input,select,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,svg:focus-visible{outline:3px solid #c4603c}button{border:0;background:none;color:inherit}a{color:inherit;text-decoration:none}.topbar{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;gap:24px}.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:800;letter-spacing:2.7px;line-height:1}.brand-sub{display:block;font-size:9px;font-weight:500;letter-spacing:5px;margin-top:7px}.brand-mark{width:38px;height:42px;background:var(--green);color:var(--paper);border-radius:4px 4px 13px 4px;font-family:Georgia,serif;font-size:31px;font-weight:400;padding:5px 9px;position:relative;letter-spacing:0}.brand-mark span{font-size:11px;color:#df9b63;position:absolute;right:4px;bottom:6px}.edition{font-size:10px;letter-spacing:1.7px;display:flex;align-items:center;gap:10px}.edition-version{color:#92978e}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#719470;flex:none}.topbar nav{display:flex;align-items:center;gap:13px;font-size:12px}.icon-button{border:1px solid var(--line);border-radius:50%;width:28px;height:28px;font-family:Georgia,serif}.outline-button{border:1px solid #b7bdb0;border-radius:5px;padding:12px 16px;min-height:44px}.outline-button span{margin-left:20px}.quiet-button{padding:12px}.topbar button:hover{background:#e9eadd}main{max-width:1640px;margin:auto;padding:33px 42px 0}.eyebrow,.section-label{font-size:10px;font-weight:650;letter-spacing:1.7px}.campaign-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:16px}.campaign-heading .eyebrow{color:#7c8376;font-size:9px;letter-spacing:2px}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:36px;letter-spacing:-1.2px;margin:10px 0}h1>span{color:var(--orange)}.campaign-heading p{font-size:12px;color:var(--muted);margin:0}.turn-card{min-width:170px;border-left:1px solid var(--line);padding:4px 0 4px 27px}.turn-card>.eyebrow{color:var(--orange);font-size:9px}.turn-card>div{display:flex;gap:14px;align-items:center;margin-top:8px}.turn-card>div>span:first-child{font-family:Georgia,serif;font-size:40px;line-height:1}.turn-card>div>span:nth-child(2){font-size:9px;letter-spacing:1.3px;line-height:1.8}.turn-card small{font-size:10px;color:var(--muted);letter-spacing:0}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:stretch}.map-card{border:1px solid #d5d9ca;border-radius:8px;overflow:hidden;min-width:0;background:#e4e9dc;display:flex;flex-direction:column}.map-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;background:#f9faf3;border-bottom:1px solid #d6dccd;height:50px}.theatre{display:flex;align-items:center;gap:9px;font-size:9px;letter-spacing:1.2px}.theatre>span:last-child{color:#8b9484;border-left:1px solid #d6dccd;padding-left:10px;font-size:8px}.map-button{font-size:15px;min-width:44px;min-height:30px}.map-button span{font-size:10px;margin-left:4px}.map-viewport{height:535px;min-height:390px;flex:1;position:relative;overflow:hidden;background:radial-gradient(ellipse at 40% 40%,#e6ebdf,#d8e0d1)}#map{width:100%;height:100%;display:block;touch-action:none;cursor:grab;user-select:none}#map.targeting{cursor:crosshair}#map.dragging{cursor:grabbing}.hex-cell polygon{stroke:#bac7b2;stroke-width:.7;stroke-linejoin:round}.hex-cell.unknown polygon{fill:#dce3d4;stroke:#cdd6c5;stroke-width:.6}.hex-cell.plains polygon{fill:#e7e8cf}.hex-cell.forest polygon{fill:#bacaa7}.hex-cell.hills polygon{fill:#d2d0ae}.hex-cell.mountains polygon{fill:#bcc1b0}.hex-cell.remembered{opacity:.62}.hex-cell.reachable polygon{stroke:#99a575;stroke-width:1.1;fill:#d7dfb8}.hex-cell.selected polygon{stroke:var(--orange);stroke-width:2.4;fill:#efdeaf}.hex-cell.cursor polygon{stroke:#334e3c;stroke-width:2;stroke-dasharray:4 3}.terrain-detail{fill:#728e68;opacity:.65;pointer-events:none}.hill-detail{fill:none;stroke:#a09973;stroke-width:1.6;opacity:.8;pointer-events:none}.mountain-detail{fill:#8f9a85;stroke:#a9b39c;stroke-width:1;pointer-events:none}.city-icon{fill:#f8f5e8;stroke:#6e7863;stroke-width:1.8}.city-label{font-family:Inter,"Segoe UI",sans-serif;font-size:9px;font-weight:600;fill:#3b4c37;paint-order:stroke;stroke:#e7e8d2;stroke-width:3px;stroke-linejoin:round;letter-spacing:.2px}.city-banner{stroke:#e7e8d2;stroke-width:1.5}.army-icon{stroke:#fff9e9;stroke-width:2.5;filter:drop-shadow(0 2px 2px #2a3b332b)}.army-health{stroke:#fdfbf1;stroke-width:2.5;stroke-linecap:round}.unit-count{font-size:8px;fill:white;text-anchor:middle;font-weight:bold}.route-path{stroke:#c4603c;stroke-width:2.4;stroke-dasharray:5 5;fill:none;pointer-events:none}.target-ring{fill:#f1e2bd88;stroke:#c4603c;stroke-width:2;stroke-dasharray:4 3;pointer-events:none}.map-compass{position:absolute;left:21px;top:24px;font-family:Georgia,serif;font-size:27px;color:#74846d;display:flex;flex-direction:column;align-items:center;line-height:1;pointer-events:none}.map-compass span{font-family:Arial,sans-serif;font-size:9px;margin-bottom:5px}.map-caption{position:absolute;bottom:25px;left:21px;color:#86957f;font-size:8px;font-weight:500;letter-spacing:1.6px;pointer-events:none}.map-caption span{margin:0 7px}.zoom-controls{position:absolute;right:16px;bottom:17px;display:flex;flex-direction:column;background:#fafbf3dd;border:1px solid #bdc8b3;border-radius:5px;overflow:hidden}.zoom-controls button{width:36px;height:36px;font-size:21px}.zoom-controls button+button{border-top:1px solid #d2d9c9}.zoom-controls button:hover{background:#edf0e3}.map-instruction{position:absolute;top:14px;left:50%;transform:translateX(-50%);font-size:10px;padding:9px 15px;background:#fdfcf2e8;border:1px solid #d3dac7;border-radius:20px;color:#65745d;white-space:nowrap;pointer-events:none}.map-footer{min-height:42px;display:flex;justify-content:space-between;align-items:center;padding:10px 15px;gap:10px;background:#f5f7ed;border-top:1px solid #cdd6c4;font-size:9px;color:#76836c}.legend{display:flex;gap:16px}.legend span{display:flex;gap:6px;align-items:center}.legend i{display:inline-block;width:7px;height:7px;border-radius:2px}.legend-own{background:#c4603c}.legend-neutral{border:1px solid #7e8b72;background:#f8f5e8}.legend-fog{background:#d6dece}.command-panel{display:flex;flex-direction:column;gap:14px}.empire-card,.selection-card,.roster-card{border:1px solid var(--line);border-radius:7px;background:var(--paper);overflow:hidden}.empire-card{padding:16px}.section-label{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.2px}.faction-tag{display:flex;align-items:center;justify-content:center;background:#f3e2d9;color:var(--orange);border-radius:3px;font-size:9px;width:20px;height:21px;letter-spacing:0}.save-status{margin-left:auto;font-size:8px;color:#87937d;letter-spacing:0;font-weight:400}.save-status.error{color:#b34b36}.empire-stats{display:grid;grid-template-columns:1fr 1fr 1.5fr;margin-top:16px;gap:10px}.empire-stats strong{display:block;font-family:Georgia,serif;font-size:29px;font-weight:400}.empire-stats span{font-size:8px;letter-spacing:1px;color:#8b907f;white-space:nowrap}.empire-stats>div+div{border-left:1px solid #e7e7de;padding-left:14px}.selection-card{padding:16px}.selection-card>.section-label{justify-content:space-between;color:#79816f}.text-button{font-size:10px;letter-spacing:0;color:#6b785f;padding:4px 0;min-height:28px}.text-button span{margin-left:8px}.text-button:hover{text-decoration:underline}.selected-heading{display:flex;align-items:center;gap:11px;margin:17px 0 14px}.selected-emblem{width:41px;height:44px;border:1px solid #e0d0ba;background:#f2e9d8;border-radius:6px;display:grid;place-items:center;color:var(--orange);font-size:22px}.selected-heading h2{font-size:18px;font-family:Georgia,serif;font-weight:400;margin:0 0 5px}.selected-heading p{font-size:10px;color:var(--muted);margin:0}.unit-metrics{display:flex;gap:21px;margin:15px 0 17px;font-size:10px}.unit-metrics strong{display:block;margin-top:5px;font-size:13px;font-weight:500;color:#45533f}.unit-metrics span{font-size:8px;letter-spacing:.8px;color:#8b907f}.health-pips{display:inline-flex;gap:3px;vertical-align:middle;margin-left:4px}.health-pips i{width:6px;height:8px;border:1px solid #adb79e;border-radius:1px}.health-pips i.filled{background:#718560;border-color:#718560}.command-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.command-buttons button{border:1px solid #d8dbce;border-radius:4px;min-height:39px;padding:9px 12px;font-size:11px;text-align:left;display:flex;justify-content:space-between;align-items:center}.command-buttons button:hover:not(:disabled),.command-buttons button.active{background:#edf0e3;border-color:#a3b18e}.command-buttons button.active{color:#405b36}.keycap{font-size:9px;color:#a0a68f;border:1px solid #e0e3d8;border-radius:3px;padding:1px 4px}.field-note{font-size:10px;color:#818873;line-height:1.7;margin:13px 0 0}.field-note strong{color:#59694e;font-weight:500}.target-preview{background:#f3eddf;border:1px solid #e3d6bb;border-radius:5px;padding:12px;margin-top:12px}.target-preview h3{font-size:12px;margin:0 0 7px;font-weight:600}.target-preview p{font-size:10px;line-height:1.7;margin:0 0 9px;color:#7a705c}.target-preview button,.primary-button{width:100%;border-radius:4px;background:var(--green);color:#fffaf0;min-height:42px;font-size:12px;padding:10px 14px}.target-preview .cancel-preview{background:none;color:#7b795e;min-height:30px;margin-top:3px;font-size:10px}.production-bar{height:5px;background:#e7e8dc;border-radius:3px;overflow:hidden;margin:12px 0 8px}.production-bar span{display:block;height:100%;background:#899e70}.production-caption{font-size:10px;color:#7b866b;margin:0 0 13px}.roster-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 15px;gap:22px}.roster-tabs button{padding:12px 0 11px;font-size:11px;color:#929985;border-bottom:2px solid transparent}.roster-tabs button[aria-selected=true]{color:#344b36;border-color:#6c8458}.roster-tabs span{font-size:9px;margin-left:5px;color:#94a084}.roster-list{max-height:137px;overflow:auto;padding:4px 7px}.roster-row{width:100%;display:flex;align-items:center;gap:9px;padding:10px 9px;min-height:43px;text-align:left;border-radius:4px;font-size:11px}.roster-row:hover,.roster-row.chosen{background:#f0f1e6}.roster-row .roster-symbol{color:#8d9d7b;font-size:15px}.roster-row small{display:block;font-size:9px;color:#9b9f8c;margin-top:4px}.roster-row .roster-state{margin-left:auto;color:#879779;font-size:8px;text-align:right;letter-spacing:.3px}.empty-list{font-size:11px;color:var(--muted);padding:12px}.turn-actions{margin-top:auto}.end-turn{background:var(--green);color:#fffbed;min-height:48px;width:100%;padding:13px 18px;border-radius:5px;font-size:12px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.end-turn:hover:not(:disabled){background:#263d2e}.end-turn span{font-size:19px;font-weight:300}.turn-actions p{font-size:9px;color:#939985;text-align:center;margin:9px 0 1px}.dispatches{padding:23px 0 18px}.dispatches-heading{display:flex;gap:14px;align-items:center;color:#7e8677}.dispatches-heading>.eyebrow{font-size:9px}.dispatches-heading>span:last-child{font-size:8px;letter-spacing:1px;color:#9da38f}.dispatch-line{height:1px;background:var(--line);flex:1}.event-list{display:flex;gap:30px;margin-top:14px;min-height:26px}.event-entry{font-size:10px;color:#7e8777;line-height:1.7;display:flex;gap:8px;flex:1}.event-entry::before{content:'↗';color:#80976e;font-size:12px}.event-entry:first-child{color:#4c6046}.page-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:14px 0 17px;color:#929986;gap:15px;font-size:8px;letter-spacing:.5px}.footer-sep{margin:0 8px;color:#b2b7a6}.page-footer>span:nth-child(2){letter-spacing:0}.page-footer .text-button{font-size:9px}dialog{border:1px solid #d6dccd;border-radius:12px;background:var(--paper);color:var(--ink);padding:28px;max-width:500px;width:calc(100% - 30px);max-height:85dvh;box-shadow:0 15px 80px #23332535}dialog::backdrop{background:#26342e66;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-top h2{font-family:Georgia,serif;font-weight:400;font-size:28px;margin:5px 0 15px}.dialog-top button{font-size:22px;width:44px;height:44px}.dialog-copy{font-size:12px;line-height:1.8;color:#77816c;margin:0 0 18px}.dialog-form label{display:block;font-size:10px;font-weight:600;letter-spacing:.5px;margin:15px 0}.dialog-form input,.dialog-form select{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #cdd5c3;border-radius:5px;background:#fffef8;color:#384b32;min-height:44px}.dialog-form .primary-button{margin-top:10px}.dialog-controls{display:grid;gap:10px}.dialog-controls button{border:1px solid #d4dccb;border-radius:5px;min-height:44px;text-align:left;padding:12px 14px;font-size:12px}.dialog-controls button:hover{background:#eef1e6}.manual h3{font-size:12px;margin:20px 0 7px}.manual p,.manual li{font-size:12px;line-height:1.8;color:#718069}.manual ul{padding-left:18px}.manual kbd{font-family:inherit;font-size:10px;border:1px solid #d4dacb;border-radius:3px;padding:2px 4px;background:#f0f2e9}.notification{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);background:#304536;color:#fff9e8;border-radius:7px;padding:13px 20px;font-size:12px;box-shadow:0 4px 20px #0002;opacity:0;pointer-events:none;transition:.2s;z-index:20;max-width:calc(100% - 30px);line-height:1.6}.notification.show{opacity:1;transform:translate(-50%,0)}.notification.error{background:#8a4532}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.army-icon.spent{opacity:.65}.busy .map-viewport{cursor:progress}
/* Keep SVG intrinsic sizing out of flex/grid measurements as the viewBox changes. */
#map{position:absolute;inset:0}
.map-card{align-self:start}
.map-viewport{flex:none}
.hex-cell.water polygon{fill:#b6cdd0;stroke:#97b9be}
.hex-cell.water.reachable polygon{fill:#a0c9c7;stroke:#5d9793}
.hex-cell.water.selected polygon{fill:#a6ccd0;stroke:var(--orange)}
.wave-detail{fill:none;stroke:#83aab2;stroke-width:1;opacity:.6}

.legend-sea{background:#a4c3c8}
.flight-path{stroke:#8567a6;stroke-dasharray:7 4}
.production-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.production-grid button{display:flex;justify-content:space-between;align-items:center;gap:6px;border:1px solid #d8dbce;border-radius:4px;padding:10px 8px;min-height:42px;text-align:left;font-size:10px}
.production-grid button small{font-size:8px;color:#829173;white-space:nowrap}
.production-grid button.active{background:#e7edda;border-color:#9eaf88}
.production-grid button:hover:not(:disabled){background:#edf0e3}
.city-options{display:flex;flex-wrap:wrap;gap:5px 15px;margin-top:7px}
.base-label{display:block;margin-top:12px;font-size:8px;color:#7b896d;letter-spacing:1px}
.base-label select{display:block;width:100%;margin-top:7px;min-height:44px;padding:9px;border:1px solid #d3dcc9;border-radius:4px;background:#f6f7ef;color:#465d3c;font-size:10px;letter-spacing:0}
.cargo-heading{display:flex;justify-content:space-between;margin:15px 0 6px;padding-top:12px;border-top:1px solid #e2e6d8;font-size:8px;letter-spacing:1px;color:#7a866c}
.selection-card{max-height:560px;overflow:auto}
.app-button{display:flex;align-items:center;gap:7px;border:1px solid #d7ddce;border-radius:5px;min-height:38px;padding:8px 10px;font-size:10px;white-space:nowrap}
.app-button .status-dot{background:#a4a88c}.app-button.offline-ready .status-dot{background:#5e9868}.app-button.update-ready .status-dot{background:#c38b43}
.session-banner{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 15px;margin-bottom:15px;border:1px solid #dfcda5;background:#f1ead8;border-radius:5px;color:#7f6b43;font-size:11px}
.session-banner[hidden],[hidden]{display:none!important}.session-banner button{border:1px solid #c5af7b;border-radius:4px;min-height:40px;font-size:10px;white-space:nowrap;padding:8px 11px}
.save-section-title{font-size:12px;margin:22px 0 10px}.save-entries{display:grid;gap:8px}.save-entry{border:1px solid #dce2d2;border-radius:5px;padding:12px;background:#f6f7ef}.save-entry strong{display:block;font-size:12px;font-weight:500}.save-entry small{display:block;font-size:9px;line-height:1.7;color:#8b947e;margin-top:5px}.save-entry-actions{display:flex;gap:10px;margin-top:8px}.save-entry-actions button{font-size:10px;color:#5f7450;min-height:36px;padding:6px 9px;border:1px solid #d4ddc7;border-radius:4px}.save-entry-actions button:hover{background:#e7eddd}
.app-readiness{display:flex;align-items:center;gap:9px;padding:14px;border:1px solid #cbd9be;background:#eef3e6;border-radius:5px;margin:7px 0 18px}.app-readiness strong{font-size:12px;font-weight:500}.app-readiness small{margin-left:auto;font-size:10px;color:#81916e}.error-copy{color:#a46046}.app-version{font-size:9px;color:#9da58c;margin-top:20px}
@media(max-width:760px){#app-label{display:none}.app-button{width:32px;justify-content:center;padding:7px;min-height:36px}#help-button{display:none}.session-banner{font-size:10px;padding:10px}.save-entry-actions button{min-height:44px}.app-readiness{padding:11px}.app-readiness strong{font-size:11px}.production-grid button{min-height:44px}}
@media(min-width:1500px){.map-viewport{height:610px}.roster-list{max-height:200px}h1{font-size:40px}}
@media(max-width:1100px){.topbar{padding:0 24px}.edition{display:none}main{padding:27px 24px 0}.game-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.campaign-heading h1{font-size:31px}.map-viewport{height:530px}.legend{gap:9px}.map-footer{font-size:8px}#survey-label{display:none}.theatre{font-size:8px}.theatre>span:last-child{display:none}.empire-stats span{font-size:7px}.event-entry:nth-child(n+3){display:none}}
@media(max-width:760px){.topbar{height:72px;padding:0 18px;gap:12px}.brand{font-size:15px;letter-spacing:2px;gap:8px}.brand-mark{width:31px;height:35px;font-size:25px;padding:4px 7px}.brand-sub{font-size:7px;letter-spacing:4px}.topbar nav{gap:4px}.quiet-button{font-size:10px;padding:9px}.outline-button{font-size:0;width:40px;height:40px;min-height:40px;padding:8px}.outline-button span{font-size:20px;margin:0}.icon-button{font-size:12px;width:26px;height:26px}main{padding:22px 16px 0}.campaign-heading{margin-bottom:20px}.campaign-heading h1{font-size:27px;max-width:260px;line-height:1.15;margin:8px 0}.campaign-heading p{font-size:10px;line-height:1.7;max-width:220px}.campaign-heading .eyebrow{font-size:8px}.turn-card{min-width:92px;padding-left:13px}.turn-card>div{gap:7px}.turn-card>div>span:first-child{font-size:32px}.turn-card>div>span:nth-child(2){font-size:7px}.turn-card small{display:none}.game-layout{grid-template-columns:1fr;gap:14px}.map-viewport{height:47dvh;min-height:290px;max-height:480px}.map-toolbar{height:44px;padding:7px 12px}.map-instruction{font-size:9px;padding:8px 10px}.map-footer{padding:10px 12px;font-size:8px}.legend{gap:14px}.map-caption{font-size:7px;left:14px;bottom:20px;letter-spacing:1px}.map-compass{left:15px;top:19px}.command-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px}.empire-card{grid-column:1/-1;padding:12px 14px}.empire-card>.section-label{float:left;max-width:44%;height:40px;font-size:8px;letter-spacing:.7px;flex-wrap:wrap;gap:6px}.save-status{width:100%;margin-left:27px;margin-top:-8px}.empire-stats{margin:0 0 0 47%;gap:6px}.empire-stats strong{font-size:23px}.empire-stats span{font-size:6px;letter-spacing:.6px}.empire-stats>div+div{padding-left:9px}.selection-card{padding:14px;grid-column:1/-1}.selected-heading{margin:13px 0 12px}.selection-card .unit-metrics{margin-top:9px;margin-bottom:13px}.command-buttons{grid-template-columns:repeat(4,1fr)}.command-buttons button{font-size:10px;min-height:44px;padding:10px}.keycap{display:none}.field-note{font-size:10px;margin-top:10px}.roster-card{grid-column:1/-1}.roster-list{display:flex;max-height:115px;gap:5px}.roster-row{width:auto;min-width:160px}.turn-actions{grid-column:1/-1}.end-turn{min-height:48px}.turn-actions p{font-size:9px}.event-list{gap:10px;display:block}.event-entry{margin-bottom:9px}.event-entry:nth-child(n+3){display:none}.dispatches{padding-top:23px}.page-footer{font-size:7px;flex-wrap:wrap;gap:8px}.page-footer>span:nth-child(2){display:none}.map-button{min-height:30px}.zoom-controls button{width:44px;height:44px}dialog{padding:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.rules-choice-label{display:block;font-size:10px;letter-spacing:.7px;margin:20px 0 8px;color:var(--muted)}#rules-choice{width:100%;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px}.rules-hash{display:block;overflow-wrap:anywhere;font-size:10px;margin-top:5px}.rules-table-wrap{overflow:auto;margin:12px 0 18px;border:1px solid var(--line);border-radius:5px}.rules-table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}.rules-table caption{text-align:left;padding:10px;font-size:10px;color:var(--muted);white-space:normal}.rules-table th,.rules-table td{padding:9px 8px;text-align:left;border-top:1px solid var(--line)}.rules-table th small{display:block;font-size:9px;color:var(--muted);font-weight:400;margin-top:4px}.rules-note{margin:18px 0 0}.workshop-tutorial{background:#eef1e6;border:1px solid #d6ddc8;border-radius:7px;padding:15px}.workshop-tutorial h3{font-family:Georgia,serif;font-weight:400;margin:0 0 8px;font-size:20px}.workshop-tutorial p{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 12px}.tutorial-panel{display:flex;align-items:center;gap:22px;padding:20px;background:#eef1e6;border:1px solid #c5d1b6;border-radius:8px;margin-bottom:20px}.tutorial-panel[hidden]{display:none}.tutorial-panel>div:first-child{flex:1}.tutorial-panel h2{font:24px Georgia,serif;margin:8px 0}.tutorial-panel p{font-size:12px;line-height:1.8;margin:0;color:#617155}.tutorial-actions{display:grid;gap:8px;min-width:155px}.tutorial-actions button{border:1px solid #bbc9ac;border-radius:5px;padding:11px 13px;min-height:44px;text-align:left;font-size:12px}.tutorial-actions button:first-child{background:var(--green);color:white}.tutorial-target{fill:#f5d68c44;stroke:#b58b3d;stroke-width:3;stroke-dasharray:4 3;pointer-events:none}.page-footer{flex-wrap:wrap}@media(max-width:650px){.tutorial-panel{display:block;padding:16px}.tutorial-actions{margin-top:14px;grid-template-columns:1fr 1fr}.tutorial-actions button:last-child{grid-column:1/-1}.tutorial-panel h2{font-size:22px}.rules-table{font-size:10px}}
.campaign-heading p,.tutorial-panel p,.dialog-copy,.workshop-tutorial p{overflow-wrap:anywhere}.roster-row>span:nth-child(2){min-width:0;overflow-wrap:anywhere}

.road-feature { fill: #b38b56; stroke: #ad875a; stroke-width: 4; stroke-linecap: round; opacity: .85; }
.installation-feature rect { fill: #fff6dd; stroke: currentColor; stroke-width: 1.5; }
.installation-feature text { fill: currentColor; font-size: 11px; font-weight: 700; }
/* Shared role icons stay decorative; labels and hex/button hit areas carry interaction. */
.unit-icon{display:inline-block;width:28px;height:21px;flex:none;vertical-align:middle;color:currentColor;overflow:visible;pointer-events:none}
.unit-symbol{pointer-events:none}
.selected-emblem .unit-icon{width:36px;height:27px}
.production-grid button>span{display:flex;align-items:center;gap:5px}
.production-grid .unit-icon{width:24px;height:18px}
.roster-symbol{display:flex;align-items:center;justify-content:center}
.roster-row .unit-icon{width:24px;height:18px}
.rules-table th .unit-icon{margin-right:5px}
.unit-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 22px}
.unit-legend-item{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #d8dbce;border-radius:6px;min-width:0}
.unit-legend-item .unit-icon{width:40px;height:30px;color:#52664f}
.unit-legend-item strong{display:block;font-size:13px}
.unit-legend-item small{display:block;font-size:11px;line-height:1.4;margin-top:3px}
@media(max-width:400px){.unit-legend-item{gap:4px;padding:8px 5px}.unit-legend-item .unit-icon{width:32px;height:24px}}
@media(forced-colors:active){.unit-legend-item .unit-icon{color:CanvasText}.unit-legend-item{border-color:CanvasText}.army-icon{fill:Canvas;stroke:CanvasText}.unit-symbol{color:CanvasText}}

/* The field manual includes unit recognition on phones as well as desktop. */
#main-menu #help-button{display:inline-flex}

.modal-notification{position:sticky;top:0;z-index:20;padding:12px 16px;margin:0 0 12px;border:1px solid #53705a;border-radius:6px;background:#edf4e8;color:#233e2c;box-shadow:0 2px 8px #0002;font-size:14px;line-height:1.5}.modal-notification.error{background:#fff0e9;border-color:#a3492c;color:#722b19}

.air-range-rebase{fill:#8063ab;fill-opacity:.12;stroke:#8063ab;stroke-opacity:.45;stroke-width:1}.air-range-return{fill:#287b9c;fill-opacity:.23;stroke:#287b9c;stroke-opacity:.55;stroke-width:1}.air-range-now{stroke:#075473;stroke-opacity:1;stroke-width:2}.range-return{color:#287b9c}.range-rebase{color:#8063ab}

/* Keep dismissal reachable while long dialogs scroll. */
.dialog-top{position:sticky;top:-28px;z-index:10;background:var(--paper);padding:12px 0 8px;border-bottom:1px solid var(--line);margin-bottom:16px}
.dialog-top button{flex:0 0 52px;width:52px;height:52px;font-size:30px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}

.map-first .dialog-top [data-close],.map-first #close-menu{font-size:30px;line-height:1;width:52px;height:52px}
