/* 9.1 · a visible world, a single command surface, explicit detail. */
.world-first{--dock-height:62px;--sheet-height:clamp(210px,calc(var(--app-height,100dvh)*.4),330px);--field-panel:#142d2ff5;--field-line:#a8b4a43b}
.world-first #dock{position:relative;padding-left:8px;padding-right:8px;background:#152d2f;border-top:1px solid #a1ad8545;box-shadow:none}
.world-first #compact-dock{height:100%;padding:4px 0;gap:0;max-width:670px}
.world-first #compact-dock button{gap:3px;padding:2px 4px;font:550 11px system-ui;border-radius:7px;min-width:0;min-height:44px}
.world-first #compact-dock svg,.world-first #invasion-button svg{width:21px;height:21px;stroke:#dbc38d;stroke-width:1.65;fill:none}
.world-first #field-army-button[hidden],.world-first #field-camp-button[hidden]{display:none!important}
.world-first.in-expedition #compact-dock{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.world-first.in-expedition #compact-dock [data-do="compact:build"],.world-first.in-expedition #compact-dock [data-do="compact:train"],.world-first.in-expedition #compact-dock [data-do="compact:grow"]{display:none!important}
.world-first #topbar{background:#152d2f;border-bottom:1px solid #c3bb9250}
.world-first .wordmark{font-size:15px;letter-spacing:.11em}
.world-first #battlefield{isolation:isolate}
.world-first #invasion-hud,.world-first.in-expedition #invasion-hud{position:absolute;top:8px;left:8px;right:58px;width:auto;max-width:454px;height:56px;padding:0;display:flex;align-items:center;gap:6px;border:1px solid var(--field-line);border-radius:10px;background:#142d2fec;backdrop-filter:blur(10px);box-shadow:0 2px 10px #061b2420;z-index:3;overflow:hidden}
.world-first #invasion-hud[hidden]{display:none}
.field-mission-label{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:3px;border:0;background:none;min-height:54px;padding:5px 9px;text-align:left;overflow:hidden}
.field-mission-label small{font:550 8px system-ui;letter-spacing:.035em;color:#acc3b5;white-space:nowrap}.field-mission-label small span{float:right;color:#b5c4b1;letter-spacing:.04em;font-size:7px;padding-left:5px}
.field-mission-label strong{font:600 12px/1.15 system-ui;color:#f2e5c6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.field-mission-status{font:450 9px/1.2 system-ui;color:#c0ccbe;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.field-advance{height:44px;min-height:44px;min-width:66px;flex:none;margin-right:7px;padding:6px 9px;background:#e2c28d;color:#183435;border:0;border-radius:7px;font:700 11px system-ui}
.field-goal-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:#d4c58a0d;pointer-events:none}.field-goal-progress i{display:block;height:100%;background:#dbcf9b;transition:width .3s linear}
.world-first #world-tools{right:6px;top:8px;gap:4px;z-index:3}.world-first #world-tools button{height:42px;width:42px;min-height:42px;background:#193438d6;border:1px solid #b2b99f3c;border-radius:10px;box-shadow:none;display:grid;place-items:center}
.world-first #world-tools svg{width:20px;height:20px;fill:none;stroke:#e4d4ad;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.world-first #people-button{display:none!important}
.world-first #field-selection{position:absolute;inset:0 8px var(--safe-bottom) 8px;max-width:690px;margin:auto;display:flex;align-items:center;gap:3px;color:#eee5cc;background:#152d2f;z-index:4;padding:4px 0;overflow:hidden}
.world-first #field-selection[hidden]{display:none}
.world-first.field-has-selection #compact-dock{visibility:hidden}
.field-selection-name{flex:1;min-width:0;display:flex;align-items:center;gap:7px;text-align:left;border:0;background:none;padding:0 3px;min-height:48px;overflow:hidden}
.field-selection-name img{width:38px;height:45px;object-fit:contain;object-position:center;flex:none;filter:drop-shadow(0 2px 2px #0005)}
.field-selection-name span{min-width:0;display:flex;flex-direction:column;gap:4px}.field-selection-name strong{font:600 12px/1.2 system-ui;color:#f4e9cc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.field-selection-name small{font:450 9px/1.3 system-ui;color:#b7cbbf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.field-small-action{height:48px;min-height:44px;min-width:48px;padding:3px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#2a444544;border:1px solid #b2b8952b;border-radius:7px;color:#eeddb6;font:550 10px system-ui}.field-small-action svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.field-clear{min-height:44px;width:38px;flex:none;padding:7px;background:none;border:0;display:grid;place-items:center;color:#b6c6be}.field-clear svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.6;fill:none}
#field-tracking,.world-first #stop-follow{position:absolute;top:auto;bottom:9px;left:9px;transform:none;z-index:3;max-width:calc(100% - 68px);height:32px;min-height:32px;padding:0 12px;border-radius:18px;border:1px solid #b7c2a74d;background:#1b393ccc;font:550 10px system-ui;color:#e8dfbf}
#field-tracking[hidden]{display:none}
.world-first #compact-sheet{height:var(--sheet-height);max-height:calc(100% - 80px);width:100%;max-width:660px;border:1px solid #a9bda14d;border-bottom:0;border-radius:15px 15px 0 0;background:#173235fa;box-shadow:0 -10px 28px #091d243d;z-index:10}
.world-first #compact-sheet>header{height:45px;padding-left:15px;gap:10px}.world-first #compact-sheet-title{font:600 14px system-ui;flex:1}.field-sheet-pause{font:500 8px system-ui;letter-spacing:.1em;color:#b3c0b1}.world-first #compact-sheet-close{min-width:44px}
.world-first #compact-sheet-body{padding:11px 13px 16px;font-size:12px}
.field-mission-detail h3{font:400 21px/1.2 Georgia,serif;margin:0 0 6px;color:#f0dfba}.field-mission-detail p{font:12px/1.5 system-ui;color:#bcd0c3;margin:7px 0}.field-mission-detail p.field-live{font-weight:600;color:#e0cb9c}
.field-mission-detail h4{font:600 11px system-ui;color:#b8c9b8;margin:18px 0 8px}
.field-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.field-detail-actions button{min-height:44px;padding:8px 9px;font:550 11px/1.3 system-ui;background:#2b4848;border:1px solid #bdc2983b;border-radius:7px}.field-detail-actions button.primary{background:#dfc28e;color:#183536}.field-detail-actions button:disabled{opacity:.42}
.field-save-note{font:10px system-ui;color:#9cb5aa;padding-top:12px}
.world-first.compact-sheet-open #invasion-hud,.world-first.compact-sheet-open #world-tools,.world-first.compact-sheet-open #field-tracking,.world-first.compact-sheet-open #stop-follow,.world-first.compact-sheet-open #field-selection{visibility:hidden;pointer-events:none}
.world-first.compact-sheet-open #compact-dock{visibility:visible}
.world-first.invasion-overlay-open #invasion-hud,.world-first.invasion-overlay-open #field-selection,.world-first.invasion-overlay-open #world-tools,.world-first.game-modal-open #invasion-hud,.world-first.game-modal-open #field-selection,.world-first.game-modal-open #world-tools{visibility:hidden;pointer-events:none}
.world-first.invasion-overlay-open #announcements,.world-first.game-modal-open #announcements,.world-first.compact-sheet-open #announcements{display:none}
.world-first #announcements{top:auto;bottom:calc(var(--dock-height) + var(--safe-bottom) + 10px);max-width:min(460px,calc(100% - 24px));z-index:15}.world-first .toast{font:500 11px/1.45 system-ui;padding:8px 12px;box-shadow:0 3px 12px #12292333;background:#efe4c9f2;border:0}
.world-first #pause-veil{background:#0e252036;backdrop-filter:none}.world-first #pause-veil>span{font-size:11px}.world-first #pause-veil button{min-height:44px;font-size:12px;padding:9px 19px}
.world-first #objective{max-width:calc(100% - 68px);width:330px}.world-first #objective-button{height:44px;border-radius:10px}
.world-first #minimap-wrap.map-open{top:calc(var(--top-height) + var(--safe-top) + 8px);z-index:13;background:#173437f5}
.world-first #modal-layer{z-index:60}.world-first #invasion-overlay{height:var(--app-height,100dvh);bottom:auto}
#field-objective-arrow{position:absolute;z-index:2;min-height:36px;height:36px;max-width:130px;display:flex;align-items:center;gap:5px;padding:0 10px;border:1px solid #e0c69088;border-radius:18px;background:#19373de0;color:#f0ddb8;font:600 10px system-ui;transform:translate(-50%,-50%)}#field-objective-arrow[hidden]{display:none}#field-objective-arrow svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.world-first.compact-sheet-open #field-objective-arrow,.world-first.invasion-overlay-open #field-objective-arrow,.world-first.game-modal-open #field-objective-arrow{visibility:hidden}
@media(max-width:580px){.world-first #compact-dock button{font-size:10px}.world-first #compact-dock svg{width:20px;height:20px}.world-first #topbar{padding-left:8px;padding-right:6px}.world-first .wordmark{font-size:14px}.world-first .resource b{font-size:11px}.world-first .resource small{font-size:8px}.world-first .resource img{width:16px}.world-first .top-actions .icon-button{width:35px;min-width:35px}.world-first #sound-button{display:none}.field-mission-label strong{font-size:11px}.field-mission-label small span{display:none}.field-selection-name strong{font-size:11px}.field-selection-name small{font-size:9px}.field-selection-name img{width:31px;height:41px}.field-clear{width:34px}.field-small-action{min-width:46px}}
@media(min-width:760px){.world-first{--dock-height:64px}.world-first #field-selection{gap:10px}.field-selection-name strong{font-size:14px}.field-selection-name small{font-size:11px}.field-selection-name img{width:44px;height:52px}.field-small-action{min-width:70px;font-size:11px}.world-first #compact-dock button{font-size:12px}.world-first #compact-dock svg{width:22px;height:22px}.field-mission-label strong{font-size:13px}.field-mission-label small{font-size:9px}.field-mission-status{font-size:10px}}
@media(max-height:480px) and (min-width:600px){.world-first{--top-height:38px;--dock-height:54px;--sheet-height:calc(var(--app-height,100dvh)*.56)}.world-first #compact-sheet{max-width:440px;left:auto;right:0;max-height:calc(100% - 10px)}.world-first #compact-dock button{font-size:10px;gap:2px}.world-first #compact-dock svg{width:18px;height:18px}.world-first #invasion-hud{height:56px;max-width:385px}.field-mission-label{min-height:54px}.field-selection-name img{height:41px}.field-small-action{height:44px}.world-first #world-tools{flex-direction:row}.world-first #invasion-hud{right:150px}.world-first .wordmark{font-size:12px}}
@media(prefers-reduced-motion:reduce){.field-goal-progress i{transition:none}}

.world-first #fullscreen-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block;margin:auto}
/* Touch browsers retain :hover after a tap; keep command contrast stable. */
.world-first #invasion-hud .field-advance{background:#e2c28d;color:#183435}
.world-first #field-selection .field-selection-name{background:transparent}
.world-first #field-selection .field-small-action{background:#294647;color:#eeddb6}
.world-first #field-selection .field-clear{background:transparent;color:#c1d0c5}
.world-first #invasion-hud .field-mission-label{background:transparent}

#field-objective-arrow{width:max-content;white-space:nowrap}
