/* A large battlefield with optional card inspection and compact controls on the right.
   Panels remain in document flow: expanded details never get clipped. */
body[data-screen="battle"]{height:auto;min-height:100dvh;overflow:visible}
body[data-screen="battle"] .masthead{display:none}
body[data-screen="battle"] .statusbar{min-height:44px;padding:4px 12px;gap:12px;background:#171a1ee8;align-items:center}
body[data-screen="battle"] .statusbar>div:first-child{min-width:0}
body[data-screen="battle"] .statusbar strong{font:600 17px Source,sans-serif;color:#f1dfb8}
body[data-screen="battle"] .statusbar p{font-size:12px;line-height:1.25;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-screen="battle"] .opening-player{font-size:12px;margin-left:8px}
body[data-screen="battle"] .battle-counters{gap:6px;max-width:none;flex-wrap:nowrap}
body[data-screen="battle"] .battle-counters .badge{font-size:12px;padding:5px 9px}
body[data-screen="battle"] .battle-counters small{display:none}
body[data-screen="battle"] .clock-badge{min-width:75px}
body[data-screen="battle"] .arena-layout{display:grid;grid-template-columns:minmax(0,var(--board-fit-width,1fr)) minmax(0,var(--play-panel-width,320px));gap:12px;width:100%;max-width:var(--battle-layout-width,100%);margin:0 auto;padding:0 12px 12px;align-items:start;row-gap:0}
body[data-screen="battle"] .field-centre{display:flex;flex-direction:column;align-items:center;min-width:0;width:100%;order:initial}
body[data-screen="battle"] .field-toolbar{grid-column:1/-1;min-height:32px;width:100%;padding:2px 0 4px;gap:5px;justify-content:center;flex-wrap:wrap}
body[data-screen="battle"] .field-toolbar button{padding:4px 7px;font-size:12px;min-height:26px}
body[data-screen="battle"] .field-toolbar label{font-size:11px;gap:3px}
body[data-screen="battle"] .field-toolbar input{width:70px;max-width:70px;min-width:36px}
body[data-screen="battle"] #focusButton,body[data-screen="battle"] #mobileControls{display:none}
body[data-screen="battle"] #inspectButton{margin-left:0}
body[data-screen="battle"] .field-scroll{width:max-content;max-width:100%;max-height:var(--board-fit-height);padding:3px;border:1px solid #8b796052;border-radius:6px;overflow:auto;background:#23292e;box-shadow:0 12px 38px #0006}
body[data-screen="battle"] .field{gap:2px;padding:2px;border:0;border-radius:3px;background:linear-gradient(180deg,#343b41,#3b3834 43%,#303c40);margin:0}
body[data-screen="battle"] .cell{width:var(--cell);height:var(--cell);padding:1px;border-radius:3px;background:#343b4180;box-shadow:none;border:1px solid #b0a29444}
body[data-screen="battle"] .cell.empty.home{background:#344c564a}
body[data-screen="battle"] .cell.empty.enemy-home{background:#63404b40}
body[data-screen="battle"] .cell.standard{background:radial-gradient(ellipse,#96764f80,#54443844);border-color:#bfa36d85}
body[data-screen="battle"] .cell[data-seat="0"]{border:2px solid var(--army-ink);background:#2b434d}
body[data-screen="battle"] .cell[data-seat="1"]{border:2px solid var(--army-ink);background:#50343c}
body[data-screen="battle"] .cell .cardface{height:100%;width:100%;object-fit:contain;opacity:1;border-radius:2px}
body[data-screen="battle"] .cell .coordinate{font-size:9px;left:2px;top:1px;padding:0 1px}
body[data-screen="battle"] .field-key{display:none}
body[data-screen="battle"] .sidebar{min-width:0;max-height:none;height:auto;overflow:visible;order:initial}
body[data-screen="battle"] .reader-panel,body[data-screen="battle"] .right-panel{margin-top:0}
body[data-screen="battle"] .panel,body[data-screen="battle"] .reader-panel,body[data-screen="battle"] .hand-dock{padding:12px;border:1px solid #6b727880;border-radius:8px;background:linear-gradient(145deg,#23292ee8,#171a1eed)}
body[data-screen="battle"] .reader-panel{display:block}
body[data-screen="battle"] #expandCard{font-size:13px;min-height:34px;padding:6px 10px;margin:0 0 12px}
body[data-screen="battle"] #cardDetails>.cardface{width:100%;height:auto;max-height:min(500px,calc(100dvh - 220px));min-height:180px;margin:0 auto 12px;pointer-events:auto;cursor:zoom-in}
body[data-screen="battle"] #cardDetails h2{font-size:21px;line-height:1.25;margin:7px 0}
body[data-screen="battle"] #cardDetails p{font-size:15px;line-height:1.45}
body[data-screen="battle"] #cardDetails p:not(.rules-copy){display:none}
body[data-screen="battle"] #cardDetails .eyebrow{font-size:11px;line-height:1.4;margin:0}
body[data-screen="battle"] .right-panel{display:block;grid-column:auto;padding:0;border:0;background:none;container-type:inline-size;container-name:play-area}
body[data-screen="battle"] .play-panels{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
body[data-screen="battle"] .battle-sidebar{display:flex;flex-direction:column;gap:10px;padding:0;min-width:0}
body[data-screen="battle"] .turnrail{padding:0;margin:0;gap:8px;align-items:flex-start}
body[data-screen="battle"] .turnrail .identity b{font-size:16px;line-height:1.2;display:block}
body[data-screen="battle"] .statsline{font-size:12px;margin:5px 0 0;line-height:1.35}
body[data-screen="battle"] .count{font-size:20px;white-space:nowrap}
body[data-screen="battle"] .turnrail .small{font-size:12px}
body[data-screen="battle"] .command-tools{margin-top:10px}
body[data-screen="battle"] #commandButton{width:100%;font-size:13px;min-height:34px;padding:6px 10px}
body[data-screen="battle"] .command-help{margin-top:8px}
body[data-screen="battle"] .command-help summary{font-size:12px;line-height:1.3;color:var(--gold);cursor:pointer}
body[data-screen="battle"] .command-help p{font-size:14px;margin-top:8px;line-height:1.4}
body[data-screen="battle"] .own-prepared{margin-top:12px;padding-top:12px;border-top:1px solid #6b727880}
body[data-screen="battle"] .prepared-panel h3,body[data-screen="battle"] .hand-dock h3{font:600 14px Source,sans-serif;margin:0 0 9px;color:#f1dfb8}
body[data-screen="battle"] .commandrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
body[data-screen="battle"] .slot{flex-direction:column;justify-content:center;gap:5px;min-height:76px;padding:6px 3px;text-align:center;border-radius:5px}
body[data-screen="battle"] .slot b{font-size:12px;line-height:1.15;margin:0;max-width:100%;overflow-wrap:anywhere}
body[data-screen="battle"] .slot>span:first-child:not(.ready){font-size:20px;line-height:1;color:#bbc0c3}
body[data-screen="battle"] .slot .cardface{height:56px;width:40px;max-width:100%}
body[data-screen="battle"] .slot .ready{font-size:10px;line-height:1.2}
body[data-screen="battle"] .opponent-panel{background:#23292ed9;border-color:#6b727880}
body[data-screen="battle"] .opponent-panel h3{color:#ddaeb3;font-size:12px}
body[data-screen="battle"] .opponent-panel .turnrail{margin-bottom:10px}
body[data-screen="battle"] .opponent-panel .identity b{font-size:14px}
body[data-screen="battle"] .opponent-panel .slot{min-height:64px}
body[data-screen="battle"] .battle-tools>summary,body[data-screen="battle"] .battle-log>summary{font-size:13px;cursor:pointer}
body[data-screen="battle"] .battle-tools .split{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}
body[data-screen="battle"] .battle-tools button{font-size:12px;padding:7px 4px;min-height:34px}
body[data-screen="battle"] .right-panel #endButton{display:none}
body[data-screen="battle"] .battle-log .log{margin-top:8px;max-height:none;overflow:visible}
body[data-screen="battle"] .hand-dock{margin:0;min-width:0;display:flex;flex-direction:column;gap:0}
body[data-screen="battle"] .hand-tabs{padding:0 0 10px;gap:6px;display:grid;grid-template-columns:1fr 1fr}
body[data-screen="battle"] .hand-tabs button{font-size:13px;padding:6px 4px;min-height:34px;white-space:nowrap}
body[data-screen="battle"] .battle-hand{flex:none;overflow:visible}
body[data-screen="battle"] .battle-hand .hand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:6px;height:auto;margin:0;padding:0;overflow:visible}
body[data-screen="battle"] .battle-hand .hand-card{width:100%;min-width:0;max-width:none;height:auto;min-height:0;padding:4px;display:flex;flex-direction:column;gap:5px;border-radius:5px}
body[data-screen="battle"] .battle-hand .hand-card .cardface{height:auto!important;width:100%!important;max-width:112px;aspect-ratio:63/88;object-fit:contain;flex:none}
body[data-screen="battle"] .hand-card small{font-size:12px!important;max-width:100%;width:100%;height:28px;max-height:28px;line-height:1.15;white-space:normal;overflow:hidden;text-overflow:clip}
body[data-screen="battle"] .battle-hand .empty-hint{grid-column:1/-1;font-size:13px;min-height:90px;padding:12px}
body[data-screen="battle"] .hand-help{font-size:12px;line-height:1.35;color:var(--muted);margin:10px 0 0}
body[data-screen="battle"] .hand-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
body[data-screen="battle"] .hand-heading h3{margin:0}
body[data-screen="battle"] #fieldEnd{width:auto;font-size:13px;min-height:34px;padding:6px 10px;margin:0;white-space:nowrap;flex:none}
body[data-screen="battle"] .online-banner{padding:3px 12px;font-size:11px;min-height:28px}
body[data-screen="battle"] .online-banner small{display:none}
body[data-screen="battle"] .online-banner button{font-size:11px;padding:4px 8px}
@container play-area (min-width:380px){body[data-screen="battle"] .play-panels{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@container play-area (min-width:380px) and (max-width:439px){body[data-screen="battle"] .battle-hand .hand{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-screen="battle"] .commandrow{gap:4px}body[data-screen="battle"] .slot{padding-inline:1px}body[data-screen="battle"] .slot b{font-size:11px;overflow-wrap:normal}}
body[data-screen="battle"][data-battle-layout="compact"] .arena-layout{grid-template-columns:minmax(0,var(--board-fit-width)) minmax(0,var(--play-panel-width))}
body[data-screen="battle"][data-battle-layout="compact"] .reader-panel{display:none}
body[data-screen="battle"][data-battle-layout="stacked"] .arena-layout{display:flex;flex-direction:column;gap:0}
body[data-screen="battle"][data-battle-layout="stacked"] .reader-panel{display:none}
body[data-screen="battle"][data-battle-layout="stacked"] .right-panel{width:100%;margin:12px 0 0}
body[data-screen="battle"][data-battle-layout="stacked"] #mobileControls{display:block}
@media(max-width:759px){body[data-screen="battle"] .statusbar{padding:5px 8px;min-height:48px}body[data-screen="battle"] .opening-player,body[data-screen="battle"] .statusbar p{display:none}body[data-screen="battle"] .statusbar strong{font-size:15px}body[data-screen="battle"] .battle-counters{gap:3px}body[data-screen="battle"] .battle-counters .badge{font-size:10px;padding:4px}body[data-screen="battle"] .clock-badge{min-width:60px}body[data-screen="battle"] .field-toolbar{gap:4px}body[data-screen="battle"] .field-toolbar input{width:45px}body[data-screen="battle"] .field-toolbar button{padding:5px;font-size:11px}}

body[data-screen="battle"][data-battle-layout="stacked"] .battle-hand .hand{display:flex;overflow-x:auto;gap:8px;padding-bottom:5px;scroll-snap-type:x proximity}
body[data-screen="battle"][data-battle-layout="stacked"] .battle-hand .hand-card{flex:0 0 94px;scroll-snap-align:start}
body[data-screen="battle"][data-battle-layout="stacked"] .battle-hand .empty-hint{min-width:100%}

/* Command recovery choices remain available alongside the battlefield. */
.recover-picker{margin:12px 0;padding:10px;border:1px solid var(--gold);border-radius:8px;background:#23292e}
.recover-picker h3{margin:0 0 6px!important;font-size:15px!important}
.recover-picker p{font-size:12px!important;line-height:1.4!important}
.recover-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
.recover-choice{display:flex;flex-direction:column;align-items:center;gap:6px;padding:7px;min-width:0}
.recover-choice .cardface{width:58px;height:auto;aspect-ratio:63/88}
.recover-choice span{font-size:12px;line-height:1.2;overflow-wrap:anywhere}
.recover-choice.active{outline:2px solid var(--gold);background:#463b30}
.hand-visibility{margin:0 0 10px;color:var(--muted);font-size:12px;line-height:1.4}
.hand-visibility summary{cursor:pointer}
.hand-visibility p{margin-top:8px;font-size:12px!important}

/* Finished battles retain clear exits even while reviewing the board. */
.finished-battle{margin-bottom:12px;border-color:var(--gold,#d6b977);padding:16px}
.finished-battle h3{margin:0 0 8px}
.battle-finish-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.battle-finish-actions button{flex:1 1 150px;min-height:42px;white-space:normal}
.battle-result .battle-finish-actions{max-width:600px;margin:20px auto 12px}
.field-toolbar #backToMenu{border-color:var(--gold,#d6b977)}

/* Selection is reversible; only Confirm commits an action. */
body[data-screen="battle"] .selection-hint{font-size:14px;line-height:1.35;color:var(--muted);padding:6px 4px 8px;align-self:stretch}
body[data-screen="battle"] .action-review{position:sticky;top:8px;z-index:12;align-self:stretch;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 10px;padding:12px 14px;border:1px solid #d4b471;border-radius:8px;background:#23292ef5;box-shadow:0 6px 24px #0006}
.action-review strong{font-size:15px;line-height:1.35;display:block}.action-review span{display:block;font-size:12px;color:#e2cc9d;margin-top:5px}.review-buttons{display:flex;gap:8px;flex:none}.review-buttons button{min-height:42px;padding:8px 12px}
body[data-screen="battle"] .cell.preview-target{outline:3px solid #f0d188;outline-offset:-3px;background:#75603e99;z-index:1}
.preview-badge{position:absolute;top:15px;left:2px;right:2px;z-index:5;font-size:11px;background:#f0d188;color:#171a1e;font-weight:bold;text-align:center;padding:2px}
body[data-screen="battle"] .cell .preview-ghost{position:absolute;inset:0;opacity:.5;pointer-events:none}
body[data-screen="battle"] .play-panels{grid-template-columns:minmax(0,1fr)}
body[data-screen="battle"] .opponent-panel .slot{min-height:58px;padding:5px 3px}
body[data-screen="battle"] .opponent-panel .slot .cardface{height:42px;width:30px}
body[data-screen="battle"] .opponent-panel .turnrail .portrait{display:none}
.large-card-reader{display:grid;grid-template-columns:minmax(180px,420px) minmax(160px,1fr);gap:24px;align-items:start}
.large-card-reader>.cardface{width:100%;height:auto;max-height:76dvh;object-fit:contain}
@media(max-width:700px){.large-card-reader{display:flex;flex-direction:column}.large-card-reader>.cardface{width:min(100%,360px);margin:auto}.action-review{flex-direction:column;align-items:stretch!important}.review-buttons button{flex:1}}

.command-mark{position:absolute;left:2px;right:2px;bottom:2px;z-index:4;background:#23292eee;color:#fff0b9;font-size:9px;line-height:1.2;padding:2px;text-align:center;pointer-events:none}.prepared-commands{border:1px solid #6b7278;border-radius:8px;padding:10px;margin:10px 0;font-size:.82rem}.prepared-commands ul{padding-left:16px;margin:8px 0}.prepared-commands li+li{margin-top:7px}.command-plan-summary{margin:12px 0}[data-plan-field]{width:100%;margin-bottom:14px}

/* The action stays beside its destination and never changes battlefield sizing. */
body[data-screen="battle"] .action-review.action-popover{position:fixed;z-index:80;width:max-content;max-width:min(310px,calc(100vw - 16px));box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px;background:#23292e;border:1px solid #c7a76b;border-radius:10px;box-shadow:0 8px 28px #0008;margin:0;animation:none;transition:none;}
.action-popover strong{display:block;font-size:14px;line-height:1.4;font-weight:500;overflow-wrap:anywhere;}
.action-popover span{display:block;font-size:13px;color:#d8c6a4;margin-top:4px;}
.action-popover .review-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;}
.action-popover button{min-height:40px;padding:8px 14px;white-space:normal;}
.action-popover button.primary{flex:1;min-width:90px;}
.followup-panel p{font-size:13px;margin-bottom:10px;}
@media(max-width:600px){.action-popover button{min-height:44px}body[data-screen="battle"] .action-review.action-popover{max-width:min(280px,calc(100vw - 16px))}}

/* Field guide uses only the spare margin. The battlefield's size and position stay fixed. */
body[data-screen="battle"] .field-centre{position:relative}
.selected-card-panel{display:none;position:absolute;right:calc(100% + 12px);top:0;width:var(--reader-width);max-height:calc(var(--board-fit-height) + 32px);overflow-y:auto;overscroll-behavior:contain;border:1px solid #6b72786b;border-radius:10px;background:linear-gradient(150deg,#23292ef5,#171a1ef5);box-shadow:0 12px 32px #0004;scrollbar-width:thin;text-align:left}
body[data-screen="battle"][data-battle-reader="open"] .selected-card-panel{display:block}
.reader-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-top:3px solid var(--reader-accent);border-bottom:1px solid #b7a07928}
.reader-heading .eyebrow{font-size:10px;letter-spacing:.16em;color:#d8bd87}
.reader-heading button{font-size:12px;background:transparent;border:0;padding:4px;min-height:28px;color:#e9d5b0}
.reader-card{display:block;border:0;padding:14px 16px 0;width:100%;background:none;box-shadow:none;cursor:zoom-in}
.reader-card .cardface{display:block;width:100%;height:auto;max-height:min(46dvh,430px);object-fit:contain;margin:auto}
.reader-copy{padding:16px}.reader-copy>.eyebrow{font-size:10px;letter-spacing:.08em;color:#bbc0c3}
.reader-copy h2{font-size:22px;line-height:1.15;margin:6px 0 12px;font-weight:600;color:#f4e8d1}
.reader-copy h3{font:600 13px Source,sans-serif;text-transform:uppercase;letter-spacing:.05em;color:#dfc38a;margin:14px 0 6px}
.reader-copy p,.reader-copy dd{font-size:14px;line-height:1.5;color:#eee6d7;margin:0}
.reader-copy dl{margin:14px 0 0}.reader-copy dt{font:600 11px Source,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#dec38e;margin-top:10px}.reader-copy dd{margin:4px 0 0}
.reader-copy .reader-footnote{font-size:12px;color:#bbc0c3;border-top:1px solid #b7a07928;padding-top:12px;margin-top:14px}
.reader-copy .reader-cost{font-size:12px;color:#d4b67c;margin-top:7px}
.card-state{display:inline-block;padding:5px 9px;background:#c7b07a15;border:1px solid #c7b07a40;border-radius:4px;font-size:12px;color:#e6d0a0;line-height:1.35}
.card-context .card-effect{font-size:13px;line-height:1.45;padding:9px 0;color:#e5b9c7}
.blocked-lanes{margin-top:13px;border-left:2px solid #bc8c76;padding-left:10px}
.blocked-lanes h4{font:600 11px Source,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#ddb59e;margin:0 0 8px}
.blocked-lanes p{font-size:12px!important;line-height:1.4!important;margin:0 0 8px!important}.blocked-lanes b,.blocked-lanes span{display:block}.blocked-lanes span{color:#bbc0c3}
.large-card-reader .card-context{margin-top:14px}.large-card-reader .blocked-lanes p{display:block!important}
.victory-info{margin:10px 0 0;padding:10px 0 0;border-top:1px solid #b7a07925}
.dominion-track{display:flex;align-items:center;gap:5px}.dominion-track i{width:9px;height:9px;transform:rotate(45deg);background:#ffffff09;border:1px solid #cbb68170;margin:0 2px}
.dominion-track i.earned{background:#d7b879;border-color:#f3d798;box-shadow:0 0 8px #d7b87925}
.dominion-track span{margin-left:auto;font-size:11px;color:#bbc0c3;white-space:nowrap}
.standard-track{display:flex;gap:5px;margin:8px 0}.standard-track span{font:11px Source,sans-serif;border:1px solid #bbc0c345;border-radius:3px;padding:3px 8px;color:#bbc0c3;background:#ffffff03}.standard-track span.held{color:#f5dca9;background:#a680382b;border-color:#c8a66c}
.victory-info p{font-size:12px;line-height:1.4;margin:0;color:#bbc0c3}
.victory-info.close p,.victory-info.stronghold p{color:#f0d69b}.victory-info.stronghold{border-top-color:#c4a16c8f}
/* A short, non-blocking handover; it never claims keyboard focus. */
.turn-announcement{position:fixed;z-index:65;pointer-events:none;display:flex;align-items:center;gap:16px;width:max-content;max-width:min(390px,calc(100vw - 28px));padding:17px 25px;background:linear-gradient(110deg,#23292ef5,#171a1ef5);border:1px solid #d0b174;border-left:4px solid var(--turn-accent,#d0b174);border-radius:6px;box-shadow:0 8px 40px #0007;opacity:0;visibility:hidden;transform:translate(-50%,-45%);transition:opacity 140ms ease,transform 180ms ease,visibility 140ms}
.turn-announcement.is-visible{opacity:1;visibility:visible;transform:translate(-50%,-50%)}
.turn-emblem{font-size:29px;color:#d7b779;text-shadow:0 0 18px #d7b77935}
.turn-announcement>div{min-width:0}.turn-kicker{display:block;font:12px Source,sans-serif;text-transform:uppercase;letter-spacing:.18em;color:#bdab87;margin-bottom:4px}
.turn-announcement strong{display:block;font:600 28px Source,sans-serif;color:#f8e9c7;line-height:1.12}.turn-subtitle{display:block;font:13px Source,sans-serif;color:#bbc0c3;margin-top:5px}
.turn-announcement.reduced{transition:none;transform:translate(-50%,-50%)}
body:not([data-screen="battle"]) .turn-announcement{display:none}
@media(prefers-reduced-motion:reduce){.turn-announcement{transition:none;transform:translate(-50%,-50%)}}
@media(max-width:600px){.turn-announcement{padding:12px 17px;gap:11px}.turn-announcement strong{font-size:23px}.turn-emblem{font-size:22px}.turn-kicker{letter-spacing:.08em}}
.battle-contributions{text-align:left;margin:24px 0 14px;padding:20px;border:1px solid #c7ab6c42;border-radius:8px;background:linear-gradient(140deg,#23292e80,#171a1e80)}
.battle-contributions>.eyebrow{font-size:10px;color:#d6ba7f;letter-spacing:.16em}.battle-contributions>h3{font-size:22px;color:#eee0c7;margin:5px 0 16px}
.contribution-army>h4{font:600 13px Source,sans-serif;color:#bbc0c3;margin:15px 0 10px}
.contribution-card{display:flex;align-items:flex-start;gap:14px;padding:13px 0;border-top:1px solid #bba38a24}.contribution-card>.cardface{width:64px;height:90px;object-fit:contain;flex:none;box-shadow:0 3px 12px #0004}.contribution-card h4{font:600 16px Source,sans-serif;color:#f2e7d1;margin:0 0 3px}.contribution-position{font-size:11px;color:#bbc0c3}.contribution-card ul{font-size:13px;line-height:1.5;color:#bbc0c3;padding-left:17px;margin:7px 0 0}.contribution-card li::marker{color:#c7a66a}
.battle-contributions .contribution-method,.battle-contributions .contribution-partial{font-size:11px!important;line-height:1.45;color:#bbc0c3;margin:14px 0 0}.battle-contributions .contribution-partial{color:#e2c38d}
.battle-result .battle-contributions{max-width:620px;margin-inline:auto}.battle-result .battle-contributions h3{font-size:21px}

/* Command watch: use the spare right margin without changing the battlefield. */
body[data-screen="battle"] .right-panel{position:relative}
.battle-signals{margin:0 0 12px;min-width:0;color:#f3e9d6;text-align:left}
body[data-screen="battle"][data-battle-signals="outside"] .battle-signals{position:absolute;left:calc(100% + 16px);top:0;width:var(--signal-width);margin:0}
.signal-command,.signal-tactics{border:1px solid #b89c6559;border-radius:10px;background:linear-gradient(150deg,#23292e,#171a1e);padding:18px;box-shadow:0 8px 28px #0003}
.signal-command{border-top:3px solid #c5ab73}.battle-signals[data-seat] .signal-command{border-top-color:var(--army-ink)}
.signal-eyebrow{text-transform:uppercase;letter-spacing:.16em;font:600 10px Source,sans-serif;color:#d7bd89;line-height:1.5}
.signal-command h2{font:600 23px Source,sans-serif;line-height:1.15;margin:9px 0 5px;color:#fff2d7;display:flex;gap:9px;align-items:center}
.signal-command h2 i{width:8px;height:8px;border-radius:50%;background:#d9b978;flex:none;box-shadow:0 0 10px #d9b97844}
.battle-signals[data-seat] .signal-command h2 i{background:var(--army-ink);box-shadow:0 0 12px color-mix(in srgb,var(--army-ink) 40%,transparent)}
.battle-signals[data-seat="1"] .signal-command h2 i{border-radius:0;transform:rotate(45deg)}
.signal-leader{font-size:13px;color:#bbc0c3;line-height:1.4;margin:0}
.signal-clock{--clock-remaining:100%;--clock-color:#d6b97a;display:grid;place-items:center;width:160px;height:160px;border-radius:50%;margin:18px auto;background:conic-gradient(var(--clock-color) var(--clock-remaining),#ffffff0d 0);padding:3px}
.signal-clock>div{border-radius:50%;width:100%;height:100%;background:#23292e;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px}
.signal-clock strong{font:600 40px/1.1 Source,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.04em;color:#ffefcd;margin:5px 0}
.signal-clock-label{font:600 10px Source,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#bbc0c3}
#signalClockHint{font-size:10px;color:#bbc0c3;max-width:115px;line-height:1.3}
.signal-clock.clock-low{--clock-color:#f3bb73}.signal-clock.clock-low strong,.signal-clock.clock-low #signalClockHint{color:#ffd49a}
.signal-clock.clock-critical{--clock-color:#ff9e99;animation:clock-warning 1.4s ease-in-out infinite}.signal-clock.clock-critical strong{color:#ffc2b9}
.signal-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;padding-bottom:13px;border-bottom:1px solid #c7ad772a}
.signal-actions>span{font-size:14px;color:#bbc0c3}.signal-actions>strong{font:600 27px Source,sans-serif;color:#f1d79f}.signal-actions small{font-size:14px;font-weight:400}.action-pips{display:flex;gap:7px;flex-basis:100%}.action-pips i{height:6px;border-radius:3px;background:#ffffff0b;border:1px solid #bbaa7752;flex:1}.action-pips i.available{background:#d7b979;border-color:#e4cc9c}
.signal-turn{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:13px;color:#bbc0c3}.signal-turn b{font:600 20px Source,sans-serif;color:#ede0c5}.signal-turn small{font-size:12px;color:#bbc0c3;font-weight:400}
.signal-help{font-size:11px;line-height:1.45;color:#bbc0c3;margin:8px 0 0}
.signal-tactics{margin-top:12px;padding:16px;border-color:#6b727863;background:linear-gradient(150deg,#23292e,#171a1e)}
.signal-empty{font-size:14px;line-height:1.45;margin:10px 0;color:#bbc0c3}.signal-note{display:block;font-size:11px;line-height:1.45;color:#bbc0c3}
.reveal-owner{font-size:12px;color:#bbc0c3;margin:10px 0 3px}.tactic-reveal h3{font:600 23px/1.15 Source,sans-serif;margin:0 0 12px;color:#f4dfb8}
.reveal-card{border:0;background:transparent;display:block;padding:0;margin:0 auto 14px;cursor:zoom-in}.reveal-card .cardface{height:auto;width:130px;aspect-ratio:63/88;object-fit:contain;border-radius:5px;box-shadow:0 8px 24px #0006}
.reveal-effect{font-size:14px;line-height:1.5;color:#f3e5ce;margin:0 0 10px;padding-left:10px;border-left:2px solid #d6b979}
.new-reveal .reveal-card{animation:tactic-unveil 600ms cubic-bezier(.2,.7,.2,1) both}.new-reveal .reveal-effect{animation:tactic-copy 500ms ease-out both}
.recent-tactics{margin-top:14px;border-top:1px solid #bba38a2b;padding-top:10px}.recent-tactics summary{font-size:12px;color:#cbb58d;cursor:pointer}.recent-tactics p{font-size:11px;line-height:1.5;margin:10px 0 0}.recent-tactics b,.recent-tactics span{display:block}.recent-tactics span{color:#bbc0c3;margin-top:3px}
body[data-screen="battle"] .cell.tactic-protected{animation:tactic-protection 1.3s ease-out both}
body[data-screen="battle"][data-battle-signals="inline"] .signal-command{display:grid;grid-template-columns:1fr 102px;column-gap:8px;padding:14px}
body[data-screen="battle"][data-battle-signals="inline"] .signal-command>.signal-eyebrow,body[data-screen="battle"][data-battle-signals="inline"] .signal-command>h2,body[data-screen="battle"][data-battle-signals="inline"] .signal-command>.signal-leader{grid-column:1}
body[data-screen="battle"][data-battle-signals="inline"] .signal-command>h2{font-size:21px}
body[data-screen="battle"][data-battle-signals="inline"] .signal-clock{grid-column:2;grid-row:1/5;width:102px;height:102px;margin:0}
body[data-screen="battle"][data-battle-signals="inline"] .signal-clock strong{font-size:28px}.battle-signals .signal-clock strong:empty{display:none}
body[data-screen="battle"][data-battle-signals="inline"] #signalClockHint{display:none}
body[data-screen="battle"][data-battle-signals="inline"] .signal-actions{grid-column:1;margin-top:8px;padding-bottom:0;border:0}
body[data-screen="battle"][data-battle-signals="inline"] .signal-turn,body[data-screen="battle"][data-battle-signals="inline"] .signal-help{grid-column:1/-1}
body[data-screen="battle"][data-battle-signals="inline"] .reveal-card{float:left;margin:0 12px 8px 0}
body[data-screen="battle"][data-battle-signals="inline"] .reveal-card .cardface{width:90px}
body[data-screen="battle"][data-battle-signals="inline"] .tactic-reveal:after{content:'';display:block;clear:both}
body[data-screen="battle"] .statusbar{position:sticky;top:0;z-index:45}
@media(max-width:759px){body[data-screen="battle"] .battle-counters .badge{font-size:11px}body[data-screen="battle"] .clock-badge{font-size:14px!important;font-weight:600}body[data-screen="battle"] .battle-counters .badge:first-child{display:none}body[data-screen="battle"] .statusbar>div:first-child{flex:1}body[data-screen="battle"] .statusbar strong{font-size:14px}}
@keyframes command-beacon{50%{box-shadow:0 0 0 5px #9be1d816}}
@keyframes clock-warning{50%{box-shadow:0 0 18px #f1966e33}}
@keyframes tactic-unveil{from{opacity:0;transform:perspective(600px) rotateY(-65deg) translateX(8px)}to{opacity:1;transform:none}}
@keyframes tactic-copy{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes tactic-protection{0%,55%{outline:3px solid #f4d58e;outline-offset:-3px;box-shadow:inset 0 0 22px #d8b66b66}100%{outline:3px solid transparent;outline-offset:-3px}}
html[data-motion="reduced"] .battle-signals *,html[data-motion="reduced"] .cell.tactic-protected{animation:none!important}
@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) .battle-signals *,html:not([data-motion="full"]) .cell.tactic-protected{animation:none!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* A defence decision overlays the field and never changes its dimensions. */
dialog.response-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:26px;border:1px solid #b99c67;border-top:3px solid #d5b579;border-radius:14px;background:linear-gradient(145deg,#23292e,#171a1e 70%);color:#f4edd9;box-shadow:0 24px 100px #0009;overflow:auto;animation:response-arrive 180ms ease-out}
dialog.response-dialog::backdrop{background:#171a1eb8;backdrop-filter:blur(2px)}
.response-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.response-heading h2{font:600 32px/1.1 Georgia,serif;margin:6px 0;color:#f4edd9}.response-heading h2:focus{outline:none}
.response-timer{display:flex;flex-direction:column;flex:none;text-align:right}.response-timer>span{font:600 12px Source,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:#bbc0c3}.response-timer strong{font:600 32px/1.2 Source,sans-serif;font-variant-numeric:tabular-nums;color:#e2c585}.response-timer strong.clock-low{color:#ffad9b}
#responseDescription{font-size:14px;color:#bbc0c3;line-height:1.5;margin:8px 0 20px}
.response-matchup{display:grid;grid-template-columns:1fr 90px 1fr;align-items:center;padding:18px 10px;background:#171a1e55;border:1px solid #bba38a25;border-radius:8px;margin-bottom:20px}
.response-matchup figure{margin:0;text-align:center;min-width:0}.response-matchup .cardface{display:block;width:92px;height:129px;object-fit:contain;margin:0 auto 9px;border-radius:4px;box-shadow:0 5px 20px #0005}.response-matchup figcaption span{display:block;text-transform:uppercase;letter-spacing:.035em;font-size:12px;color:#bbc0c3}.response-matchup figcaption strong{display:block;font:600 15px/1.3 Source,sans-serif;margin-top:4px;color:#f4edd9}.response-attack-type{text-align:center;font:600 12px Source,sans-serif;color:#d7b979}.response-attack-type>span{display:block;font-size:30px;margin-bottom:4px}
.response-choices{display:grid;gap:10px}.response-choices button{display:flex;align-items:center;text-align:left;white-space:normal;padding:13px 16px;gap:14px;width:100%;border-radius:8px}.response-choices button strong{display:block;font:600 18px Source,sans-serif}.response-choices button span span,.response-accept>span{display:block;font:400 14px/1.4 Source,sans-serif;margin:4px 0}.response-choices button small{display:block;font:400 12px/1.5 Source,sans-serif;color:#bbc0c3}
.response-choices .response-defence{background:#d5b57917;border:1px solid #d5b5799c;color:#f5dfb6}.response-defence:hover:enabled{background:#d5b57928}.response-defence .cardface{width:42px;height:59px;object-fit:contain;flex:none}.response-choices .response-accept{flex-direction:column;align-items:flex-start;gap:0;background:#ffffff04;border:1px solid #bbc0c377;color:#eee6d7}.response-accept:hover:enabled{border-color:#edb1a5;background:#edb1a50e}.response-choices button:focus-visible,#responseBack:focus-visible{outline:3px solid #91d9d5;outline-offset:3px}.response-choices button:disabled{opacity:.5;cursor:wait}
.response-expiry{font:400 12px/1.5 Source,sans-serif;color:#bbc0c3;text-align:center;margin:17px 0 0}.response-connection{font:600 13px/1.5 Source,sans-serif;color:#e5bd83;margin:14px 0 0}
.response-retreat-bar{position:fixed;top:8px;left:50%;transform:translateX(-50%);z-index:85;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;width:min(530px,calc(100vw - 24px));padding:13px 18px;border:1px solid #d5b579;border-radius:10px;background:#23292ef7;box-shadow:0 8px 30px #0008}.response-retreat-bar>div:first-child{flex:1;min-width:180px}.response-retreat-bar strong{color:#f2d9a8}.response-retreat-bar p{font:400 12px/1.4 Source,sans-serif;color:#bbc0c3;margin:4px 0 0}.response-retreat-bar .response-timer strong{font-size:25px}.response-retreat-bar button{font-size:12px;padding:8px 12px}.response-retreat-bar .response-connection{flex-basis:100%}
@keyframes response-arrive{from{opacity:.4;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
html[data-motion="reduced"] dialog.response-dialog{animation:none}@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) dialog.response-dialog{animation:none}}
@media(max-width:600px){dialog.response-dialog{padding:18px}.response-heading h2{font-size:25px}.response-timer strong{font-size:27px}.response-matchup{grid-template-columns:1fr 65px 1fr;padding:12px 5px;margin-bottom:14px}.response-matchup .cardface{width:72px;height:101px}.response-matchup figcaption strong{font-size:13px}.response-choices button{padding:11px 12px;gap:10px}.response-choices button strong{font-size:16px}.response-retreat-bar{top:8px}}
@media(max-height:640px){dialog.response-dialog{padding:16px}.response-matchup{padding:10px;margin-bottom:12px}.response-matchup .cardface{width:58px;height:81px}.response-heading h2{font-size:25px}#responseDescription{margin-bottom:10px}.response-choices button{padding:10px 12px}}

.response-view{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin:0 0 16px;padding:10px 13px;border:1px solid #9bbab184;background:#8ab8b20c;color:#cce8e2;font-size:14px;font-weight:600}.response-view span{font-size:12px;font-weight:400;color:#b2c5c7}.response-view:hover{background:#8ab8b222}.response-inspect-bar{width:min(610px,calc(100vw - 24px))}.response-inspect-bar #responseBack{font-size:13px;min-height:40px}.response-inspect-bar>div:first-child{min-width:170px}
body[data-screen="battle"] .cell.response-attacker{outline:3px solid #ec9f96;outline-offset:-4px}body[data-screen="battle"] .cell.response-defender{outline:3px solid #f3d798;outline-offset:-4px}
.tactic-placement{position:fixed;z-index:90;width:278px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:16px;border:1px solid #c7a76b;border-radius:10px;background:#23292e;box-shadow:0 10px 32px #0009;text-align:left}.tactic-placement-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tactic-placement h3{font:600 21px/1.2 Source,sans-serif;color:#f1dfb9;margin:5px 0 0}.tactic-placement-head>button{padding:4px 8px;background:transparent;border-color:transparent;font-size:17px;flex:none}.tactic-placement>p{font:400 13px/1.45 Source,sans-serif;color:#bbc0c3;margin:12px 0}.tactic-slot-choices{display:grid;gap:8px}.tactic-slot-choices button{display:block;width:100%;padding:11px 13px;text-align:left;background:#d5b57917;border:1px solid #d5b5798c;min-height:50px}.tactic-slot-choices button:hover:enabled{background:#d5b57930}.tactic-slot-choices strong{display:block;font-size:16px;color:#f4dfb8}.tactic-slot-choices span{display:block;font-size:12px;line-height:1.4;color:#bbc0c3;margin-top:4px}.tactic-placement .tactic-replace-note{color:#e2bc8d;font-size:12px;margin-bottom:0}.tactic-read{font-size:12px;border:0;background:transparent;color:#bbc0c3;text-decoration:underline;text-underline-offset:3px;margin-top:10px;padding:7px 0}.tactic-read:hover{background:transparent;color:#f1dfb9}
@media(max-width:600px){.response-view{align-items:flex-start;flex-direction:column;gap:3px}.response-inspect-bar{padding:10px 14px;gap:8px 12px}.response-inspect-bar>div:first-child{min-width:160px}.response-inspect-bar #responseBack{flex-basis:100%;min-height:36px;padding:6px 10px}.tactic-placement{padding:13px}.tactic-placement h3{font-size:19px}}
/* Keep the collapsed decision inside the top status strip, clear of zoom controls. */
.response-inspect-bar{top:0;left:0;transform:none;width:100%;height:44px;flex-wrap:nowrap;padding:4px 12px;gap:12px;border-width:0 0 1px;border-radius:0;box-shadow:none}.response-inspect-bar>div:first-child{min-width:0;display:flex;align-items:center;gap:14px;flex:1}.response-inspect-bar>div:first-child>strong{font:600 14px/1.15 Source,sans-serif}.response-inspect-bar p{margin:0;font-size:12px}.response-inspect-bar .response-timer{flex-direction:row;align-items:center;gap:8px}.response-inspect-bar .response-timer strong{font-size:23px}.response-inspect-bar #responseBack{flex-basis:auto;min-height:32px;padding:6px 12px;white-space:nowrap}.response-inspect-bar .response-connection{position:absolute;top:44px;right:12px;padding:8px 12px;background:#23292ef7;border-radius:0 0 8px 8px}.response-inspect-bar #responseRetry{flex:none}
@media(max-width:600px){.response-inspect-bar{gap:8px;padding-inline:10px}.response-inspect-bar>div:first-child>p,.response-inspect-bar .response-timer>span{display:none}.response-inspect-bar #responseBack{font-size:12px;padding:6px 9px}}
.tactic-placement-tools{display:flex;flex-direction:column-reverse;align-items:flex-end;gap:2px;flex:none}.tactic-placement-tools #closeTacticPlacement{font-size:16px;padding:0 5px;border:0;background:transparent}.tactic-placement-tools .tactic-read{margin:0;padding:2px 0;font-size:11px;white-space:nowrap}.tactic-slot-choices{grid-template-columns:repeat(auto-fit,minmax(104px,1fr))}.tactic-slot-choices button{padding:10px;min-height:64px}.tactic-placement .tactic-replace-note{margin:-4px 0 10px;font-size:11px;line-height:1.4}
/* Dominion stays in the sticky status strip, beside the turn and clock. */
body[data-screen="battle"] .statusbar>div:first-child{flex:1;overflow:hidden}
.dominion-scoreboard{display:flex;gap:7px;align-items:center;flex:none;color:#eee2c8}
.dominion-label{font-size:12px;text-transform:uppercase;letter-spacing:1px;line-height:1.15}.dominion-label small{display:block;font-size:12px;text-transform:none;letter-spacing:0;color:#bbc0c3;margin-top:3px}
.dominion-side{display:flex;align-items:center;gap:8px;min-height:36px;padding:2px 8px;border:1px solid #6b7278;border-radius:6px;background:#23292e}
.dominion-owner{font-size:12px;line-height:1.1}.dominion-side b{font:700 26px/1 Source,sans-serif;white-space:nowrap;color:#e2c78c}.dominion-side b small{font-size:13px;color:#bbc0c3;font-weight:400}
.dominion-pips{display:flex;gap:4px;margin:4px 1px 0}.dominion-pips i{width:5px;height:5px;transform:rotate(45deg);border:1px solid #917a59}.dominion-pips .earned{background:#e2c78c;border-color:#e2c78c}
.dominion-held{font-size:12px;text-align:center;color:#bbc0c3;line-height:1.05}.dominion-held span{display:block;font-size:12px;margin-top:3px}
.dominion-side[data-dominion-owner]{border-color:color-mix(in srgb,var(--army-ink) 50%,transparent)}.dominion-side.one-away{background:#493821;border-color:#cda956}.dominion-side.at-victory[data-dominion-owner]{background:color-mix(in srgb,var(--army-ink) 18%,#171b25);border-color:var(--army-ink)}
.dominion-side.point-earned{animation:dominion-gained 1.3s ease-out}.dominion-side.point-earned b{animation:dominion-number .7s ease-out}
body[data-screen="battle"] .selection-hint.dominion-warning{display:flex;gap:7px;align-items:center;padding:6px 4px 7px;min-height:34px;color:#f2d8ac;line-height:1.3}
.dominion-warning strong{font-size:14px;flex:none}.dominion-warning span{font-size:12px}.dominion-warning.danger{color:#ffb7ac!important;background:linear-gradient(90deg,#622b3b88,#23292e55);border-left:3px solid #f49b98;border-radius:4px}.dominion-warning.danger strong i{font-style:normal;display:inline-grid;place-items:center;width:17px;height:17px;margin-right:6px;border:1px solid currentColor;border-radius:50%;font-size:12px}.dominion-warning.winning{color:#a1ded0!important}
body[data-screen="battle"] .cell .standard-seal{position:absolute;right:1px;top:42%;z-index:4;font-size:clamp(9px,calc(var(--cell)*.13),17px);line-height:1;padding:2px 0;color:#dfbd73;text-shadow:0 1px 3px #000;pointer-events:none}
body[data-screen="battle"] .cell.standard-held{box-shadow:inset 0 0 0 1px #e2c78c}.cell.standard-held .standard-seal{color:var(--army-ink)!important}
body[data-screen="battle"] .cell.standard-winning{box-shadow:inset 0 0 0 3px #e2c78c,0 0 10px #d9b66b44}
@keyframes dominion-gained{0%,35%{box-shadow:0 0 18px #f4ce8599;background:#5a472b}100%{box-shadow:none}}
@keyframes dominion-number{0%{transform:scale(1.25)}100%{transform:scale(1)}}
@media(max-width:1199px){.dominion-held{display:none}.dominion-side{gap:6px;padding:2px 6px}.dominion-label{letter-spacing:.04em}}
@media(max-width:899px){body[data-screen="battle"] .statusbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}.dominion-scoreboard{grid-column:1/-1;grid-row:2;justify-content:center;width:100%}.dominion-side{min-height:34px;flex:1;justify-content:space-between;max-width:180px}.dominion-side b{font-size:25px}.dominion-held{display:block}.dominion-label{width:59px}.dominion-owner{font-size:12px}body[data-screen="battle"] .selection-hint.dominion-warning{flex-wrap:wrap;gap:2px;padding:6px 4px}.dominion-warning strong,.dominion-warning span{display:block;width:100%}.dominion-warning strong{font-size:13px}.dominion-warning span{font-size:12px}}
html[data-motion="reduced"] .dominion-side,html[data-motion="reduced"] .dominion-side b{animation:none!important}
@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) .dominion-side,html:not([data-motion="full"]) .dominion-side b{animation:none!important}}
.response-inspect-bar>.dominion-scoreboard{margin-left:auto}.response-inspect-bar>.response-timer{margin-left:0}
@media(max-width:899px){.response-inspect-bar{height:auto;min-height:82px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px 8px}.response-inspect-bar>.dominion-scoreboard{grid-column:1/-1;grid-row:2;margin:0}.response-inspect-bar>div:first-child p{display:none}.response-inspect-bar>button{grid-column:3;grid-row:1}.response-inspect-bar>.response-timer{grid-column:2;grid-row:1}}

.response-inspect-bar{height:auto;min-height:44px}.response-inspect-bar .response-connection{top:100%}

/* Public response cues stay on the field without covering or blocking moves. */
.field-centre{position:relative}
.response-notice{position:absolute;z-index:12;top:8px;left:50%;transform:translateX(-50%);width:min(420px,85%);padding:12px 18px;border:1px solid #d9bd79;border-radius:12px;background:#172027f2;box-shadow:0 8px 24px #0008;text-align:center;pointer-events:none;color:#f5eddc}
.response-notice strong,.response-notice span,.response-notice small{display:block}
.response-notice strong{color:#efd28c;font-size:16px}.response-notice span{margin:5px 0;font-size:13px}.response-notice small{font-size:12px;color:#d1d6db}
.stratagem-spotlight{position:fixed;z-index:90;left:50%;bottom:28px;transform:translateX(-50%);display:flex;gap:16px;align-items:center;width:min(480px,calc(100vw - 32px));padding:16px;border:1px solid #dfbf77;border-radius:16px;background:#18212af5;box-shadow:0 10px 45px #0009;pointer-events:none;color:#f5eddc;animation:stratagem-arrive .35s ease-out}
.stratagem-spotlight[hidden]{display:none}.stratagem-spotlight img{width:88px;height:124px;object-fit:contain;border-radius:7px}.stratagem-spotlight strong{display:block;font-size:23px;margin:5px 0}.stratagem-spotlight p{font-size:14px;margin:6px 0}.stratagem-spotlight small{color:#bfc7ce}.stratagem-spotlight .eyebrow{font-size:10px}
@keyframes stratagem-arrive{from{opacity:0;transform:translate(-50%,16px)}to{opacity:1;transform:translate(-50%,0)}}
@media(prefers-reduced-motion:reduce){.stratagem-spotlight{animation:none}}
@media(max-width:600px){.response-notice{top:4px;padding:8px}.response-notice strong{font-size:13px}.response-notice span,.response-notice small{font-size:12px}.stratagem-spotlight{bottom:12px;padding:12px;gap:12px}.stratagem-spotlight img{width:64px;height:90px}.stratagem-spotlight strong{font-size:19px}}

html[data-motion="reduced"] .stratagem-spotlight{animation:none}

/* Keep the pending defence within reach without moving the field or its clock. */
.response-quick-return{position:fixed;z-index:86;display:flex;flex-direction:column;align-items:center;gap:5px;max-width:calc(100vw - 16px);padding:8px;border:1px solid #d5b579;border-radius:10px;background:#23292ef5;box-shadow:0 5px 20px #0007}
.response-quick-return button{min-height:42px;padding:10px 16px;font-size:14px;white-space:nowrap}
.response-quick-return small{font:400 11px/1.2 Source,sans-serif;color:#bbc0c3;text-align:center}
.response-inspect-bar #responseBackTop{min-height:32px;padding:6px 12px;font-size:12px;white-space:nowrap}
@media(pointer:coarse){.response-quick-return small{display:none}.response-quick-return button{min-height:44px}}

/* The tutorial objective stays with the board, including on narrow screens. */
.tutorial-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;margin:0 0 22px;border:1px solid #b89a63;border-radius:10px;background:#23292e}
.tutorial-entry strong{color:#edcf8e;font-size:20px}
.tutorial-entry p{font-size:14px;line-height:1.4;margin:5px 0 0;color:#bbc0c3}
.tutorial-entry button{flex-shrink:0}
body[data-screen="battle"] .tutorial-coach{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:14px 16px;margin:10px 0 8px;border:1px solid #c7a867;border-radius:10px;background:linear-gradient(125deg,#343b41,#23292e);box-shadow:0 6px 20px #0003}
.tutorial-copy{min-width:0;flex:1}
.tutorial-coach .eyebrow{font-size:11px;letter-spacing:.12em;color:#e5c482;margin:0 0 5px}
.tutorial-coach h2{font:600 22px/1.15 Source,sans-serif;color:#fff1d4;margin:0 0 6px}
.tutorial-coach p{font-size:15px;line-height:1.4;margin:0;max-width:78ch}
.tutorial-explanation{margin-top:7px;color:#bbc0c3;font-size:13px}
.tutorial-explanation summary{cursor:pointer;color:#edd29d;line-height:1.35}
.tutorial-explanation p{font-size:14px;margin-top:6px}
.tutorial-controls{display:flex;flex-wrap:wrap;gap:6px;max-width:300px;justify-content:flex-end}
.tutorial-controls button{min-height:40px;padding:8px 12px;font-size:13px}
body[data-screen="battle"] .cell.tutorial-focus{outline:2px solid #ffe0a0;outline-offset:-3px;box-shadow:inset 0 0 0 3px #362818}
body[data-training="true"] .statusbar p,body[data-training="true"] .battle-counters .badge:first-child{display:none}
body[data-training="true"] .field-toolbar #battleMenu,body[data-training="true"] .field-toolbar #focusButton{display:none}
body[data-training="true"] #battleSignals{display:none}
@media(max-width:899px){body[data-screen="battle"] .tutorial-coach{padding:12px;gap:10px;flex-direction:column;align-items:stretch}.tutorial-coach h2{font-size:20px}.tutorial-coach p{font-size:14px}.tutorial-controls{max-width:none;justify-content:flex-start}.tutorial-controls button{min-height:40px}.tutorial-entry{align-items:stretch;flex-direction:column}.tutorial-entry button{width:100%}}

/* Confirmed Leader Commands are explained next to the battlefield. */
.command-notice{position:relative;display:flex;gap:12px;align-items:flex-start;width:100%;padding:12px 14px;margin:0 0 10px;background:var(--panel,#23292e);border:1px solid var(--bronze-line,#8a7357);border-left:3px solid var(--bronze-bright,#d0aa7f);border-radius:5px;color:var(--text,#eee6d7);box-sizing:border-box}
.command-notice-copy{min-width:0;flex:1}.command-notice .eyebrow{font-size:10px;letter-spacing:.07em}.command-notice strong{display:block;font:600 20px/1.25 Source,system-ui;margin:3px 0}.command-notice p{font-size:13px;line-height:1.5;margin:5px 0;color:var(--text,#eee6d7)}
.command-notice-close{flex-shrink:0;min-width:36px;min-height:36px;padding:5px;border:0;background:transparent;color:var(--muted,#bbc0c3)}.command-notice-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:7px}.command-notice-actions button{padding:5px 9px;min-height:30px;border:1px solid var(--bronze-line,#8a7357);font-size:11px;background:transparent;color:var(--bronze-bright,#d0aa7f)}.command-actions-left{font-size:13px;color:var(--muted,#bbc0c3)}
.command-notice-new{animation:command-arrival .38s ease-out both}.cell.command-noticed{animation:command-target-cue 1.1s ease-out}.command-mark b,.command-mark small{display:block}.command-mark b{font-weight:600}.command-mark small{font-size:8px;font-weight:400;line-height:1.2;color:var(--bronze-bright,#d0aa7f)}
.selected-command-effect{display:grid;gap:4px;padding:10px 13px;margin-bottom:8px;border-left:3px solid var(--bronze-bright,#d0aa7f);background:var(--panel,#23292e);font-size:12px;line-height:1.5;color:var(--text,#eee6d7)}.selected-command-effect strong{color:var(--bronze-bright,#d0aa7f)}
@keyframes command-arrival{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@keyframes command-target-cue{0%,100%{box-shadow:inset 0 0 0 0 #d0aa7f00}30%{box-shadow:inset 0 0 0 4px #d0aa7f}}
html[data-motion="reduced"] .command-notice-new,html[data-motion="reduced"] .cell.command-noticed{animation:none}
@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) .command-notice-new,html:not([data-motion="full"]) .cell.command-noticed{animation:none}}
@media(max-width:600px){.command-notice{padding:9px 10px;gap:7px}.command-notice strong{font-size:17px}.command-notice p{font-size:12px}.command-notice-actions button{min-height:36px}.command-mark small{display:none}.selected-command-effect{padding:8px 10px}}

.command-notice[hidden]{display:none}

.response-command-source{display:grid;gap:4px;padding:10px 12px;border-left:3px solid var(--bronze-bright,#d0aa7f);background:var(--panel,#23292e);font-size:13px;line-height:1.5}.response-command-source strong{color:var(--bronze-bright,#d0aa7f)}

body[data-screen="battle"] #app>.command-notice{width:calc(100% - 24px);max-width:1100px;margin:8px auto 6px;padding:9px 12px}
body[data-screen="battle"] #app>.selected-command-effect{width:calc(100% - 24px);max-width:1100px;margin:8px auto 6px}

@media(min-width:700px){.command-notice-copy{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:3px 14px;align-items:center}.command-notice-copy>strong{grid-column:1;grid-row:1;margin:0}.command-notice-copy>.eyebrow{grid-column:2;grid-row:1}.command-notice-copy>p,.command-notice-actions{grid-column:1/-1;margin:0}.command-notice-actions{margin-top:3px}}
body[data-screen="battle"] .cell{container-type:inline-size}
@container(max-width:70px){.command-mark small{display:none}.command-mark{font-size:8px;white-space:normal}}

body[data-screen="battle"] #app:has(>.response-inspect-bar){display:flex;flex-direction:column}
body[data-screen="battle"] #app>.response-inspect-bar{position:sticky;order:-1;flex:none}

/* The ground marker sits below the card. Orbit supplies its own 3D base. */
/* A seat owns its marker across camera changes and device handoffs. */
:root{--seat-one-ink:#80e6ef;--seat-two-ink:#f293b9}
[data-seat="0"],[data-dominion-owner="0"]{--army-ink:var(--seat-one-ink)}
[data-seat="1"],[data-dominion-owner="1"]{--army-ink:var(--seat-two-ink)}
.cell[data-fort-seat="0"]{--fort-ink:var(--seat-one-ink)}
.cell[data-fort-seat="1"]{--fort-ink:var(--seat-two-ink)}
.field-key [data-seat]{color:var(--army-ink)}
.cell .army-base{
 display:block;position:relative;flex:none;align-self:flex-start;isolation:isolate;
 height:84%;aspect-ratio:63/88;width:auto;max-width:100%;
 margin:2% auto 0;pointer-events:none;
}
.army-base::before{
 content:"";position:absolute;pointer-events:none;box-sizing:border-box;
 left:50%;top:60%;height:109%;aspect-ratio:1;
 transform:translate(-50%,-50%);border-radius:50%;
 border:clamp(2px,calc(3.4 * var(--base-unit,1cqi)),5px) solid var(--army-ink);
 opacity:.76;
 mask-image:linear-gradient(135deg,#000 0%,#0009 52%,#000e 100%);
 box-shadow:0 0 0 1px #17202a9c,inset 0 0 0 1px #17202a6b;
}
.army-base[data-seat="1"]::before{
 height:77%;border-radius:0;transform:translate(-50%,-50%) rotate(45deg);
}
.army-base>.cardface{position:relative;z-index:1}
.match-role::before,.field-key [data-seat]::before{
 content:"";display:inline-block;width:.58em;height:.58em;background:var(--army-ink);
 border-radius:50%;margin-right:.5em;vertical-align:.06em;
}
.match-player[data-seat="1"] .match-role::before,.field-key [data-seat="1"]::before{border-radius:0;transform:rotate(45deg)}

/* The sticky Defences control leaves the field clear while inspecting on a phone. */
@media (max-width:600px) {
  #app:has(> .response-inspect-bar) :is(.response-notice, .response-quick-return) { display:none; }
  .response-inspect-bar #responseBackTop { min-height:44px; font-size:14px; }
}
@media (pointer:coarse) {
  .response-view { min-height:44px; justify-content:center; }
  .response-view span { display:none; }
}
@media (max-width:600px) and (max-height:640px) {
  dialog.response-dialog { max-width:calc(100vw - 16px); padding:12px; }
  .response-heading { gap:8px; }
  .response-heading h2 { margin:4px 0; font-size:22px; }
  #responseDescription { margin:4px 0 7px; }
  .response-timer strong { font-size:24px; }
  .response-matchup {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px; padding:6px; margin-bottom:6px;
  }
  .response-matchup figure { display:flex; align-items:center; gap:6px; text-align:left; }
  .response-matchup .cardface { flex:none; width:26px; height:36px; margin:0; }
  .response-matchup figcaption strong { margin:2px 0 0; }
  .response-attack-type { grid-column:1/-1; grid-row:2; }
  .response-attack-type > span { display:inline; margin:0 4px 0 0; font-size:14px; }
  .response-view { margin-bottom:8px; }
  .response-choices { gap:6px; }
  .response-choices button { padding:8px 10px; }
  .response-expiry { margin-top:4px; }
}
