#gameScreen:not(.tactical-layout) /* Preserve the original Swiss palette; spend the phone's height on the board. */
.battle-drawers{display:none}#gameScreen:not(.tactical-layout) .board-dock{display:none}
/* Hover is a read-only tooltip; only an explicitly pinned inspector owns input. */
#effectInspector[data-pinned=false]{pointer-events:none}
.entry-priority{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:20px}.entry-priority p{font-size:14px;line-height:1.5}.entry-priority button{margin-top:8px;min-height:44px}
.tactical-role{font-size:13px;line-height:1.5;text-align:left;padding:8px 12px;background:var(--panel);color:var(--ink);margin:0}
.background-notes{margin-top:16px;border-top:1px solid var(--line)}.background-notes summary{min-height:44px;cursor:pointer;padding:10px 0}.background-notes p{font-size:13px;line-height:1.5}
.draft-card{display:flex;flex-direction:column}.draft-card .draft-body{order:-1;width:100%}.draft-card .system-card>.tactical-role,.inspector-body>.system-card>.tactical-role,.card-detail>.system-card>.tactical-role{display:none}
#actionFeedback{font-size:12px;line-height:1.4;max-height:70px;overflow:auto;border-left:3px solid var(--accent-ink);padding-left:6px}#gameScreen:not(.tactical-layout) .board-dock-feedback{font-size:12px;line-height:1.4;border-top:1px solid var(--line);padding-top:4px}
@media(max-width:1100px){
 #gameScreen:not(.tactical-layout) .battle-drawers{display:flex;flex:none;gap:6px;padding:2px 0 4px;min-width:0}
 #gameScreen:not(.tactical-layout) .battle-drawers button{min-height:44px;padding:4px 8px;font-size:12px;flex:1;min-width:0}
 #gameScreen:not(.tactical-layout) .battle-drawers button[aria-expanded=true]{background:var(--accent-ink);color:var(--panel)}
 #gameScreen:not(.tactical-layout) .arena,#gameScreen:not(.tactical-layout):has(#tutorialPanel:not([hidden])) .arena{display:flex!important;flex-direction:column!important;gap:4px!important;min-height:0}
 #gameScreen:not(.tactical-layout) .arena>.crew-column,#gameScreen:not(.tactical-layout):has(#tutorialPanel:not([hidden])) .arena>.crew-column{display:none!important;flex:0 0 auto;width:100%;max-height:128px;min-height:0;overflow:auto;padding:0}
 #gameScreen:not(.tactical-layout).crew-open .arena>.crew-column,#gameScreen:not(.tactical-layout).crew-open:has(#tutorialPanel:not([hidden])) .arena>.crew-column{display:block!important}
 #gameScreen:not(.tactical-layout) #crews,#gameScreen:not(.tactical-layout):has(#tutorialPanel:not([hidden])) #crews{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;height:auto}
 #gameScreen:not(.tactical-layout) .crew-heading,#gameScreen:not(.tactical-layout):has(#tutorialPanel:not([hidden])) .crew-heading{flex-direction:row;align-items:center;gap:4px}
 #gameScreen:not(.tactical-layout) .crew-unit,#gameScreen:not(.tactical-layout):has(#tutorialPanel:not([hidden])) .crew-unit{display:grid!important;grid-template-columns:minmax(0,1fr) 30px;gap:3px}
 #gameScreen:not(.tactical-layout) .unit-title strong,#gameScreen:not(.tactical-layout):has(#tutorialPanel:not([hidden])) .unit-title strong{font-size:12px}
 #gameScreen:not(.tactical-layout) .arena>.map-column,#gameScreen:not(.tactical-layout):has(#tutorialPanel:not([hidden])) .arena>.map-column{flex:1 1 0;min-height:120px;display:flex!important;flex-direction:column;gap:0;overflow:hidden;padding:0}
 #gameScreen:not(.tactical-layout) .map-heading{flex:none}#gameScreen:not(.tactical-layout) .map-scroll{flex:1 1 0;min-height:80px;width:100%}
 #gameScreen:not(.tactical-layout) .map-rule-note{display:none;flex:none}#gameScreen:not(.tactical-layout).info-open .map-rule-note{display:block;max-height:60px;overflow:auto;font-size:12px}
 #gameScreen:not(.tactical-layout) .map-caption{flex:none;max-height:20px;min-height:14px}#gameScreen:not(.tactical-layout) .board-tools{flex:none}
 #gameScreen:not(.tactical-layout) .arena>.action-column{display:block!important;flex:0 0 auto;max-height:42dvh;min-height:0;overflow:auto;width:100%}
 #gameScreen:not(.tactical-layout) .action-panel{height:94px;min-height:88px;padding:4px 0;overflow:auto}
 #gameScreen:not(.tactical-layout) .shop-section{display:none!important;height:86px;min-height:0;margin-top:4px!important}
 #gameScreen:not(.tactical-layout).shop-open .shop-section{display:grid!important}
 #gameScreen:not(.tactical-layout) .tutorial-panel{max-height:70px}#gameScreen:not(.tactical-layout) .tutorial-panel>div{max-height:60px}
 #gameScreen:not(.tactical-layout) .board-preview{line-height:1.25;flex-basis:100%}#gameScreen:not(.tactical-layout) .board-tools button{min-height:44px;flex:1 1 auto;padding:4px;font-size:11px}
 #gameScreen:not(.tactical-layout) .board-tools [data-board-history]{flex:0 0 44px}#gameScreen:not(.tactical-layout) .board-tools [data-board-mode]{order:0}#gameScreen:not(.tactical-layout) .board-tools [data-board-center]{order:1}#gameScreen:not(.tactical-layout) .board-tools [data-board-full]{order:2}#gameScreen:not(.tactical-layout) .board-tools [data-board-history]{order:3}#gameScreen:not(.tactical-layout) .board-preview{order:4}#gameScreen:not(.tactical-layout) .board-tools [data-board-confirm],#gameScreen:not(.tactical-layout) .board-tools [data-board-cancel]{order:5}
 #gameScreen:not(.tactical-layout) .board-tools:not(:has([data-board-confirm]:not([hidden]))) .board-preview{display:none}
 #gameScreen:not(.tactical-layout) .assist-bar>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-basis:0}
 #gameScreen:not(.tactical-layout) .assist-bar{display:none!important}#gameScreen:not(.tactical-layout).settings-open .assist-bar:not([hidden]){display:flex!important;position:fixed;z-index:26;top:var(--drawer-bottom,145px);left:8px;right:8px;min-height:44px;padding:8px;flex-wrap:wrap}
 #gameScreen:not(.tactical-layout).settings-open .assist-bar>span{white-space:normal;overflow:visible;flex-basis:100%}#gameScreen:not(.tactical-layout) .assist-bar .match-settings{position:static}#gameScreen:not(.tactical-layout) .assist-bar .match-settings>div{top:100%;right:0}
 #gameScreen:not(.tactical-layout) .masthead{height:44px;min-height:44px}#gameScreen:not(.tactical-layout) .masthead nav [data-glossary]{display:none}
 #gameScreen:not(.tactical-layout) .action-panel:has(#actionFeedback:not([hidden])) #instruction{display:none}
 #gameScreen:not(.tactical-layout) #actionFeedback{max-height:40px;grid-column:1;grid-row:2}
 #gameScreen:not(.tactical-layout) #controls button,#gameScreen:not(.tactical-layout) #controls:has(.danger) button{min-height:44px}
 #gameScreen:not(.tactical-layout) .action-panel:has(#actionFeedback:not([hidden])) #compactInstruction{display:none}
 #gameScreen:not(.tactical-layout) .map-heading{min-height:24px}#gameScreen:not(.tactical-layout) .map-heading h1{font-size:16px}#gameScreen:not(.tactical-layout) .collapse-clock{display:none}
 #homeScreen .home-entry{grid-row:1}#homeScreen .home-story{grid-row:2}
}
/* The full-board overlay owns its controls, so no action is hidden behind it. */
#gameScreen:not(.tactical-layout).board-expanded .map-column{display:flex!important;flex-direction:column;gap:0}
#gameScreen:not(.tactical-layout).board-expanded .map-scroll{flex:1 1 0;min-height:80px}
#gameScreen:not(.tactical-layout).board-expanded .map-heading,#gameScreen:not(.tactical-layout).board-expanded .board-tools,#gameScreen:not(.tactical-layout).board-expanded .map-caption{flex:none}
#gameScreen:not(.tactical-layout).board-expanded .map-rule-note{display:none!important}
#gameScreen:not(.tactical-layout).board-expanded .board-dock{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,42%);gap:6px;flex:0 0 auto;max-height:32dvh;min-height:72px;padding-top:8px;border-top:1px solid var(--ink);overflow:auto;background:var(--panel)}#gameScreen:not(.tactical-layout)
.board-dock-step{min-width:0;overflow:auto;line-height:1.35}#gameScreen:not(.tactical-layout) .board-dock-step strong{display:block;font-size:13px}#gameScreen:not(.tactical-layout) .board-dock-step p{font-size:12px;margin:4px 0}#gameScreen:not(.tactical-layout)
.board-dock-actions{display:flex;flex-wrap:wrap;align-content:start;gap:4px}#gameScreen:not(.tactical-layout) .board-dock-actions button{flex:1 1 auto;min-height:44px;padding:5px;font-size:12px}#gameScreen:not(.tactical-layout) .board-dock-actions .dice-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%}#gameScreen:not(.tactical-layout)
.board-dock-actions .dice-choices button{min-width:32px}
@media(max-height:450px){#gameScreen:not(.tactical-layout).board-expanded .board-dock{max-height:36dvh;min-height:60px}#gameScreen:not(.tactical-layout) .board-dock-step p{margin:2px 0}#gameScreen:not(.tactical-layout) .board-dock-actions button{min-height:36px}}
@media(max-width:1100px) and (orientation:landscape){
 #gameScreen:not(.tactical-layout) .arena,#gameScreen:not(.tactical-layout):has(#tutorialPanel:not([hidden])) .arena{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(190px,31%)!important;grid-template-rows:minmax(0,1fr)!important}
 #gameScreen:not(.tactical-layout) .arena>.map-column,#gameScreen:not(.tactical-layout):has(#tutorialPanel:not([hidden])) .arena>.map-column{grid-column:1;grid-row:1;min-height:0}
 #gameScreen:not(.tactical-layout) .arena>.action-column,#gameScreen:not(.tactical-layout):has(#tutorialPanel:not([hidden])) .arena>.action-column{grid-column:2;grid-row:1;display:flex!important;flex-direction:column;gap:4px;max-height:none;width:auto;min-height:0}
 #gameScreen:not(.tactical-layout) .action-panel{height:auto;flex:1 1 0;min-height:70px;grid-template-columns:1fr;grid-template-rows:auto auto minmax(36px,1fr) auto}
 #gameScreen:not(.tactical-layout) #controls{grid-column:1;grid-row:3}#gameScreen:not(.tactical-layout) #selectedUnit{grid-column:1;grid-row:4}
 #gameScreen:not(.tactical-layout) .shop-section{height:142px;flex:0 0 auto;min-height:0}
 #gameScreen:not(.tactical-layout).crew-open .arena>.crew-column,#gameScreen:not(.tactical-layout).crew-open:has(#tutorialPanel:not([hidden])) .arena>.crew-column{position:absolute;z-index:20;left:0;top:0;width:min(360px,100%);max-height:100%;background:var(--panel);padding:8px;border:1px solid var(--ink)}
}
