.battle-result button:focus-visible,.camera-toggle:focus-visible{outline:2px solid #f2c396;outline-offset:-4px}.action-console{--action-size: 36px;--camera-control-size: 40px;--action-popup-offset: 4px;display:flex;align-items:stretch;gap:4px}.action-console:has(.camera-disclosure[open]){--action-popup-offset: calc(var(--camera-control-size) + 10px)}.action-panel{gap:3px;min-width:0;padding:2px;border:1px solid var(--tool-border);background:#252d23;box-shadow:2px 3px #11171085}.command-tools{display:flex;min-width:0;gap:2px}.command-button,.command-end{display:inline-flex;min-height:var(--action-size);align-items:center;justify-content:center;gap:5px;padding:3px 7px;border:1px solid transparent;border-radius:0;background:#353f31;color:#f1ead2;font:700 .8125rem/1.12 system-ui,sans-serif;white-space:nowrap;cursor:pointer}.command-symbol{--glyph-size: 14px;position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:var(--glyph-size);min-height:var(--glyph-size)}.command-short-label{display:none}.command-button:hover:not(:disabled){border-color:#a9b78f;background:#43513c}.command-button[data-state=selected]:not(:disabled){--active-line: #536440;border-color:#e4d9ac;background:#ded4ab;color:#222a1d;box-shadow:inset 0 -3px var(--active-line)}:is(#mode-attack,#mode-ram)[data-state=selected]:not(:disabled){border-color:#a7583d;background:#813f2e;color:#fff0d7;box-shadow:inset 0 -3px #dfa587}#mode-move[data-state=selected]:focus-visible{outline-color:var(--active-line)}.command-button:disabled{background:#2c332a;color:#b6b4a2;cursor:default}.command-button:is([data-state=used],[data-state=exhausted],[data-state=locked]) .command-symbol:after{position:absolute;width:100%;height:1px;background:currentColor;box-shadow:0 0 0 1px #2c332a;transform:rotate(-45deg);content:""}.command-button[data-state=used]:disabled{background:repeating-linear-gradient(135deg,#252d24 0 1px,#30372e 1px 5px)}.command-button[data-state=used] .command-symbol:after{right:-1px;bottom:0;width:7px;height:4px;border:solid currentColor;border-width:0 0 2px 2px;background:#2c332a;transform:rotate(-45deg)}.command-objective:not(:disabled){border-color:#b8a269;background:#4a4434;color:#f8dfab}.command-objective:hover:not(:disabled){background:#5e5035}.command-cost{padding:2px 4px;border:1px solid #b8a26966;font-size:.6875rem;line-height:1}.command-button[data-state=running]:disabled{border-color:#ba9e61;background:#494332;color:#f4dfaa}.command-end{border-color:#bbaa81;background:#d4c5a0;color:#282b21}.action-panel .command-end:focus-visible{outline-color:#55563c}.command-end:hover:not(:disabled){background:#f0e2bf}.command-end:disabled{border-color:#6a6b59;background:#3f4437;color:#c5bfaa;cursor:default}.action-panel button[aria-description]:after{position:absolute;z-index:1;bottom:calc(100% + var(--action-popup-offset));left:0;display:none;width:max-content;max-width:calc(100vw - var(--controls-left) - var(--controls-right));box-sizing:border-box;padding:5px 8px;border:1px solid var(--tool-border);background:#252d23;color:#f0e7cd;font:500 .75rem/1.25 system-ui,sans-serif;text-align:left;white-space:normal;pointer-events:none;content:attr(aria-description)}.action-panel button[aria-description]:focus-visible:after{display:block}.action-console:has(.action-panel button[aria-description]:focus-visible) .battle-feedback{opacity:0}@media(hover:hover){.action-panel:has(button[aria-description]:hover) button:not(:hover):after{display:none}.action-panel button[aria-description]:hover:after{display:block}.action-console:has(.action-panel button[aria-description]:hover) .battle-feedback{opacity:0}}.camera-disclosure{pointer-events:auto}.camera-toggle{display:grid;place-items:center;width:calc(var(--action-size) + 6px);height:100%;border:1px solid var(--tool-border);background:#252d23;color:#e2ddc7;list-style:none;box-shadow:2px 3px #11171085;cursor:pointer}.camera-toggle::-webkit-details-marker{display:none}.camera-toggle:hover,.camera-disclosure[open] .camera-toggle{border-color:#a9b78f;background:#43513c}.camera-glyph{position:relative;width:18px;height:12px;border:1px solid currentColor}.camera-glyph:before,.camera-glyph:after{position:absolute;content:""}.camera-glyph:before{inset:2px 5px;border:1px solid currentColor;border-radius:50%}.camera-glyph:after{top:-4px;left:2px;width:6px;height:3px;border:1px solid currentColor}.camera-disclosure .camera-tools{z-index:2;bottom:calc(100% + 4px);right:0;background:#252d23}.camera-disclosure .camera-tools button{min-width:var(--camera-control-size);min-height:var(--camera-control-size)}.camera-disclosure .camera-tools [id^=rotate-]{font-size:1.25rem}.battle-feedback{position:absolute;bottom:calc(100% + var(--action-popup-offset));left:0;width:max-content;max-width:calc(100vw - var(--controls-left) - var(--controls-right));margin:0;padding:4px 6px;border:1px solid var(--tool-border);background:#252d23ef;color:#f0e7cd;font-size:.75rem;line-height:1.25;pointer-events:none}.battle-feedback:empty{display:none}.battle-result{width:min(22rem,calc(100% - 2rem));padding:20px;border:1px solid #8f8b73;background:#ddd4b8;color:#252b21;box-shadow:6px 7px #101610a3}.battle-result::backdrop{background:#181d15b0}.battle-result h2{margin:0;font-size:1.5rem;line-height:1.1}.battle-result p{margin:8px 0 17px;font-size:.9375rem}.battle-result button{min-height:42px;padding:7px 12px;border:1px solid #737e5f;background:#35432f;color:#f1e7cc;font:700 .875rem system-ui,sans-serif;cursor:pointer}.battle-result button:hover{background:#4c5b42}@media(pointer:coarse){.action-console{--action-size: 44px;--camera-control-size: 44px}}@media(max-width:700px){.viewport{--controls-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) ;--controls-left: calc(10px + env(safe-area-inset-left, 0px)) ;--controls-right: calc(10px + env(safe-area-inset-right, 0px)) ;--picker-top: calc(10px + env(safe-area-inset-top, 0px)) }.action-console{--action-size: 44px;--camera-control-size: 44px}.camera-disclosure .camera-tools{right:auto;left:0}}@media(max-width:460px){.command-button,.command-end{min-width:44px;flex-direction:column;gap:2px;padding-inline:4px;font-size:.6875rem;text-align:center;white-space:normal}.command-end{flex-shrink:0}.command-objective .command-wide-label{display:none}.command-objective .command-short-label{display:inline}.command-objective .command-cost{order:-1;padding:1px 2px;font-size:.5625rem}}@media(max-width:370px){#mode-move .command-wide-label{display:none}#mode-move .command-short-label{display:inline}.command-end{width:52px}}@media(max-width:310px){.command-tools{flex-wrap:wrap}}.battle-readout{position:absolute;z-index:1;top:var(--picker-top);left:var(--controls-left);width:min(21rem,calc(100% - var(--controls-left) - var(--controls-right) - 70px));border:1px solid var(--tool-border);background:#273024;box-shadow:2px 3px #11171085}.mission-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:3px 8px;min-height:30px;padding:4px 7px;background:#dcd4b8;color:#282e23}.mission-header h1{margin:0;font-size:.8125rem;line-height:1.15;letter-spacing:-.015em}.mission-status{display:flex;align-items:center;gap:6px;color:#3c4131;font-size:.6875rem;white-space:nowrap}.mission-status strong{color:#3f5135;font-weight:760}.battle-readout:is([data-phase=enemy],[data-phase=lost]) .mission-status strong{color:#713122}.mission-round{padding-inline-start:6px;border-inline-start:1px solid #343d3155;font-variant-numeric:tabular-nums}.mission-objectives{display:grid;grid-template-columns:minmax(max-content,1fr) auto;border-bottom:1px solid #7a816e73;color:#e9e3c9;font-size:.6875rem}.mission-objectives>div{display:flex;align-items:center;gap:5px;min-height:26px;padding:3px 7px;white-space:nowrap}.mission-objectives>div:first-child{border-inline-end:1px solid #7a816e73}.mission-objectives strong{font-weight:680}.objective-relay:is([data-state=urgent],[data-state=expired]) strong{color:#ffc293}.objective-relay[data-state=active] strong{color:#c8dea9}.objective-package strong{color:#f8dfab}#echelon-objectives[data-state=carried] .objective-extraction,#echelon-objectives[data-state=delivered] .objective-package strong{color:#c8dea9;font-weight:680}.objective-health small{color:#d8d4bd;font-size:inherit}.battle-squad{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.battle-unit{display:flex;min-width:0;min-height:44px;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:4px 7px;border:0;border-radius:0;background:#273024;color:#f0e7cd;font:inherit;text-align:left;cursor:pointer}.battle-unit+.battle-unit{border-inline-start:1px solid #7a816e73}.battle-unit:hover:not(:disabled),.battle-unit[aria-pressed=true]{background:#405038}.battle-unit[aria-pressed=true]{box-shadow:inset 2px 0 #b5c399}.battle-unit:focus-visible{outline:2px solid #f2c396;outline-offset:-3px}.battle-unit:disabled{cursor:default}.battle-unit[data-lost=true]{background:#292c25;color:#bbb49e}.battle-unit .battle-unit-heading{flex-wrap:nowrap;gap:4px;max-width:100%}.battle-unit strong{overflow:hidden;font-size:.8125rem;line-height:1.12;text-overflow:ellipsis;white-space:nowrap}.battle-unit .unit-action-indicators{--glyph-size: 9px}.battle-unit .unit-action-indicator{inline-size:12px;block-size:12px}.battle-unit-values{display:flex;gap:2px 7px;font-size:.6875rem;font-variant-numeric:tabular-nums;font-weight:650;line-height:1.15;white-space:nowrap}.battle-unit-values span+span{color:#dce8bf}.battle-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:390px){.mission-round-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.objective-health #objective-meter{--health-pip-gap: 1px;--health-pip-size: 6px}}@media(max-width:320px){.mission-objectives{grid-template-columns:minmax(0,1fr) auto}.mission-objectives>div{flex-wrap:wrap;gap:2px 4px;padding-inline:5px;white-space:normal}}.action-glyph{position:relative;display:inline-block;flex:none;inline-size:var(--glyph-size, 14px);block-size:var(--glyph-size, 14px)}.action-glyph:before,.action-glyph:after{position:absolute;box-sizing:border-box;content:""}.action-glyph[data-glyph=move]:before,.action-glyph[data-glyph=move]:after{inset-block-start:27%;inline-size:45%;block-size:45%;border-block-start:1.5px solid currentColor;border-inline-end:1.5px solid currentColor;transform:rotate(45deg)}.action-glyph[data-glyph=move]:before{inset-inline-start:3%}.action-glyph[data-glyph=move]:after{inset-inline-start:36%}.action-glyph[data-glyph=attack]{background:linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat,linear-gradient(currentColor,currentColor) center / 1px 100% no-repeat}.action-glyph[data-glyph=attack]:before{inset:16%;border:1px solid currentColor;border-radius:50%}.action-glyph[data-glyph=ram]:before,.action-glyph[data-glyph=ram]:after{inset:0;background:currentColor}.action-glyph[data-glyph=ram]:before{clip-path:polygon(3% 19%,43% 19%,73% 50%,43% 81%,3% 81%,26% 50%)}.action-glyph[data-glyph=ram]:after{clip-path:polygon(78% 26%,93% 8%,100% 16%,86% 34%,100% 45%,100% 55%,86% 66%,100% 84%,93% 92%,78% 74%,88% 50%)}.battle-world-labels{position:absolute;inset:0;overflow:hidden;pointer-events:none}.battle-world-label{position:absolute;top:0;left:0;padding:3px 6px 4px;border:1px solid #899273;background:#282f22ed;color:#f2f1dc;font-size:.72rem;font-weight:750;line-height:1;white-space:nowrap}.battle-world-unit{--health-fill: #cad4a7;display:grid;justify-items:center;gap:1px;padding:1px 2px;font-size:.625rem}.battle-world-unit-heading{display:flex;align-items:center;gap:2px}.battle-world-health,#objective-meter{display:flex;gap:var(--health-pip-gap, 1px)}.battle-world-health>span,#objective-meter>span{inline-size:var(--health-pip-size, 4px);block-size:var(--health-pip-size, 4px);border:1px solid #f3eed055;background:#191d17}.battle-world-health>.is-filled,#objective-meter>.is-filled{border-color:var(--health-fill);background:var(--health-fill)}#objective-meter{--health-fill: #d0c38e;--health-pip-gap: 2px;--health-pip-size: 7px;align-self:center}.battle-unit-heading{display:flex;flex-wrap:wrap;align-items:center;gap:2px 5px}.battle-unit-name[data-exhausted=true]{color:#a8ab95}.unit-action-indicators{--glyph-size: 11px;display:inline-flex;gap:2px;color:#a2a48e}.unit-action-indicator{display:inline-grid;flex:none;place-items:center;inline-size:15px;block-size:15px;border:1px dashed #a2a48e83}.unit-action-indicator[data-ready=true]{border-color:#b3bd96;border-style:solid;background:#d1e4ac29;color:#eff4d3}.battle-world-unit .unit-action-indicators{--glyph-size: 8px;gap:1px}.battle-world-unit .unit-action-indicator{inline-size:10px;block-size:10px}.battle-world-label[data-faction=enemy]{--health-fill: #e4a38f;border-color:#b18171;background:#3b2b29ed}.battle-world-label[data-faction=objective]{--health-fill: #ffe5a9;display:grid;justify-items:center;gap:2px;border-color:#c0a168;background:#403725ee;color:#ffe5a9}.battle-world-label:is([data-faction=relay],[data-faction=package],[data-faction=extraction]){padding:2px 4px 3px;border-color:#c9ad71;background:#403725f5;color:#ffe4a7;font-size:.64rem}.battle-world-label:is([data-faction=relay][data-active=true],[data-faction=extraction]){border-color:#b0c38d;background:#2e3926f5;color:#dfebc4}.battle-world-label[hidden]{display:none}.battle-damage-marker{position:absolute;z-index:1;top:0;left:0;padding-bottom:22px;white-space:nowrap}.battle-damage-number{display:block;color:#ffc08a;font:850 clamp(1rem,2.5vw,1.5rem)/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;-webkit-text-stroke:.09em #37241c;paint-order:stroke fill;text-shadow:0 2px #37241c;animation:battle-damage-rise .92s ease-out both}.battle-damage-number.is-lethal{color:#ffe3aa}@keyframes battle-damage-rise{0%{opacity:.65;transform:scale(.82)}14%{opacity:1;transform:translateY(-5px) scale(1.09)}40%{transform:translateY(-14px) scale(1)}65%{opacity:1}to{opacity:0;transform:translateY(-34px)}}@media(prefers-reduced-motion:reduce){.battle-damage-number{animation-name:battle-damage-hold}}@keyframes battle-damage-hold{0%,78%{opacity:1}to{opacity:0}}@media(max-width:560px){.battle-world-label[data-faction=objective]{padding:2px 4px 3px;font-size:.64rem}}
