/* Companion-first planning: the four decisions remain visible while only one
   companion's controls occupy the foreground. No tactical state lives in CSS. */
#game-layout #combat-party-picker{order:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}
#game-layout .combat-party-choice{position:relative;display:grid;grid-template-columns:1fr;align-content:start;justify-items:center;gap:3px;min-width:48px;min-height:80px;padding:7px 4px;border:1px solid #627777;border-radius:12px;background:#142b32;color:#f3e9d2;font:inherit;text-align:center;cursor:pointer}
#game-layout .combat-party-choice>span{height:35px;width:32px;overflow:hidden;display:block}
#game-layout .combat-party-choice>span svg{height:40px;width:32px}
#game-layout .combat-party-choice strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
#game-layout .combat-party-choice small{font-size:10px;line-height:1.4;color:#ccd4c1;overflow-wrap:anywhere}
#game-layout .combat-party-choice[aria-pressed=true]{border:2px solid #e5c58d;padding:6px 3px;background:#304537}
#game-layout .combat-party-choice[aria-pressed=true]::after{content:'✓';position:absolute;top:4px;right:5px;color:#f6dca8;font-size:12px}
#game-layout #command-list .command-row[hidden]{display:none!important}
#game-layout #command-list{gap:0}
#game-layout #battle-pattern-targets{order:4;min-width:0}
.bp-pattern{margin:10px 14px;padding:10px 12px;border-left:3px solid #d5b879;background:#122b32;color:#ede5cc;border-radius:4px 10px 10px 4px;line-height:1.5;font-size:12px}
.bp-pattern>strong{color:#f8dc9e}.bp-pattern p{margin:4px 0}.bp-pattern ul{display:flex;flex-wrap:wrap;gap:4px 12px;margin:5px 0 0;padding-left:16px;color:#f3ceaf}.bp-reserved{color:#c8e3a7}
.bp-targets{display:grid;gap:8px;min-width:0}.bp-target-heading{display:flex;flex-wrap:wrap;gap:3px 8px;justify-content:space-between;color:#f1dfb9;font-size:12px}.bp-target-heading small{color:#c9d2c2;line-height:1.45}
.bp-target{display:grid;gap:7px;min-height:48px;width:100%;padding:12px;border:1px solid #b5945e;border-radius:12px;background:#202f31;color:#f5e5c4;font:inherit;text-align:left;cursor:pointer;line-height:1.5;overflow-wrap:anywhere}
.bp-target[aria-pressed=true]{border:2px solid #dac58e;padding:11px;background:#2b4437}.bp-target:disabled{cursor:default;border-color:#5d7172;background:#14272c;color:#bfccbf;opacity:1}
.bp-target-name{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 12px}.bp-target-name b{font-size:14px}.bp-target-name em{font-size:11px;font-style:normal;color:#e1c795}
.bp-known,.bp-roll{display:grid;gap:2px;font-size:12px}.bp-known small,.bp-roll small{color:#b9cdbb;font-size:10px;letter-spacing:.025em}.bp-roll{border-top:1px solid #526e6066;padding-top:6px}.bp-queue{font-size:12px;color:#ecdaa5}.bp-reason,.bp-boundary{font-size:11px;line-height:1.5;color:#d0d6c1}.bp-boundary{margin:0}
:is(.bp-target,.combat-party-choice):focus-visible{outline:3px solid #ffe8b1;outline-offset:3px}
html[data-contrast=high] :is(.bp-pattern,.bp-target,.combat-party-choice){background:#081b22;color:#fff7e6;border-color:#f4dda7}
html[data-text-size=large] :is(.bp-target,.bp-pattern,.bp-target-heading,.bp-known,.bp-roll,.bp-queue,.bp-boundary){font-size:1rem}
html[data-text-size=large] #game-layout .combat-party-choice strong{font-size:.94rem}
html[data-text-size=large] #game-layout .combat-party-choice small{font-size:.8rem}
@media(max-width:640px){
 #game-layout #commands-panel{gap:9px;padding:12px}
 #game-layout #combat-party-picker{gap:6px}
 #game-layout .command-row{padding:9px}
 #game-layout .command-legend{font-size:14px;gap:6px}
 #game-layout .command-legend .command-portrait{width:30px;height:36px}
 #game-layout .command-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #game-layout .command-choice{min-height:48px;padding:8px;line-height:1.4}
 #game-layout .command-choice.chosen{padding:7px}
 #game-layout .command-type{font-size:10px}
 #game-layout .command-choice>strong{font-size:13px}
 #game-layout .command-choice .command-values,#game-layout .command-choice .command-outlook{font-size:11px}
 #game-layout #suggest-commands{align-self:flex-end;min-height:48px}
 .bp-pattern{margin:8px 10px;padding:8px 10px}
 .bp-target{padding:9px}.bp-target[aria-pressed=true]{padding:8px}
}
@media(forced-colors:active){.bp-pattern,.bp-target,#game-layout .combat-party-choice{border:1px solid CanvasText;background:Canvas;color:CanvasText}.bp-target[aria-pressed=true],#game-layout .combat-party-choice[aria-pressed=true]{outline:2px solid Highlight}}
/* The active intent and real HP remain readable beside the commit control,
   including while inspecting another companion lower on a short phone. */
#action-dock .dock-tactical{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 12px;border-bottom:1px solid #73837866;padding:0 0 7px;font-size:12px;line-height:1.5;color:#eadfc4}
#action-dock .dock-tactical[hidden]{display:none!important}
#action-dock .dock-tactical b{font-weight:600;color:#c8d7c1}
#action-dock .dock-intent{color:#ffcea9}
#action-dock .dock-reserve{color:#d7e8ac}
#game-layout #turn-preparation-dice{order:10}
#game-layout #tactical-options-dice{order:10}
#game-layout #reconsider-dice{order:1;min-height:48px;align-self:flex-end;font-size:12px;color:#ead2a0}
.tp-evidence{border-top:1px solid #6e846855;margin-top:8px}
.tp-evidence>summary{min-height:48px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;color:#ead6a9;list-style:none}
.tp-evidence>summary::before{content:'+';font-size:19px}
.tp-evidence[open]>summary::before{content:'−'}
@media(max-width:640px){
 body[data-screen=adventure] #action-dock:has(.dock-tactical:not([hidden])){grid-template-rows:auto auto auto}
 #action-dock .dock-tactical{order:-1;width:100%;font-size:11px;gap:3px 9px}
 #game-layout .hand-panel>.quick-start,#game-layout .hand-panel>.roll-tools{display:none}
 #game-layout #dice-tray .die-inspect{min-height:48px}
 #game-layout #dice-tray .die-skill{min-height:48px}
 #game-layout #dice-tray .die-owner{flex-direction:column;gap:0;min-height:48px;margin-bottom:3px}
 #game-layout #dice-tray .die-portrait{height:25px;width:24px}
 #game-layout #dice-tray .die-portrait>svg{height:28px;width:24px}
 #game-layout #dice-tray .die-button{min-height:58px}
 #game-layout #dice-tray .die-wrap{padding:6px 4px;gap:3px}
 #game-layout #dice-tray .die-inspect{font-size:10px}
 #game-layout #dice-tray .face-tray{display:none}
 .tp-card .tp-lead{display:none}
}
html[data-text-size=large] #action-dock .dock-tactical{font-size:.875rem}
/* One battle workspace in either renderer. The original buttons keep their
   handlers; arrival/navigation prose yields to the scene and active decision.
   Phase gates deliberately include Daily, playback and result presentation. */
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) :is(#home-vista,#phase-track,.world-navigation,.world-location){display:none!important}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) .topbar{min-height:56px;height:auto;padding:4px 0;gap:8px;flex-wrap:nowrap;align-items:center}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) .topbar :is(.brand-sub,.edition,#play-nav){display:none}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) .adventure-nav{display:flex;flex:1;gap:4px;margin:0;width:auto;padding:0;order:initial}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) :is(.adventure-nav-item,.top-actions>.quiet-button,.home-tools>summary){min-height:48px;padding:5px 10px;font-size:12px}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) .top-actions{display:flex;flex:none;gap:4px;width:auto;margin:0}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #campaign-view-controls{display:none!important} /* View choice remains in Settings. */
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout>.play-column{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-width:none;margin:0}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout>.play-column>*{grid-column:1;grid-row:auto;order:6;min-width:0}
body[data-screen="adventure"]:not(.world-overlay-open):is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout #campaign-diorama{order:0;position:relative;top:auto}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout #arena{order:1;height:auto;min-height:0;position:relative;top:auto;padding-bottom:10px}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout .play-column>:is(#hand-panel,#commands-panel,#review-panel){order:3;display:flex;flex-direction:column;gap:8px;padding:14px;min-height:0}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .arena-top{padding:9px 12px;gap:7px;min-height:0}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .combatants{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);padding:8px 12px;gap:12px}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .combatant{min-width:0}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .fighter-info{padding:7px 9px;border-radius:9px}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena :is(.versus,.fighter-caption,.arena-caption){display:none}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #arena :is(#turn-order,#action-callout){display:none}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #arena .battle-utility{margin:0;padding:0 12px;min-height:48px}
/* Do not hide content until the bridge has bound a working disclosure. */
html body[data-screen="adventure"][data-campaign-disclosures="ready"]:is([data-phase="dice"],[data-phase="command"]) #arena:not([data-battle-details-open="true"])>:is(#enemy-plan,#battle-build){display:none}
html body[data-screen="adventure"][data-campaign-disclosures="ready"]:not(.world-overlay-open):is([data-phase="dice"],[data-phase="command"]) #arena:has(>:is(#enemy-plan,#battle-build):not([hidden]):not(:empty))>#campaign-battle-details-toggle{display:flex;min-height:48px;margin:4px 12px 0;width:calc(100% - 24px);padding:7px 10px;font-size:12px}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout .hand-heading{padding:0 0 7px;gap:8px;margin:0;min-height:0}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout .hand-heading h2{font-size:20px;line-height:1.35}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout .hand-heading .micro{display:none}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout .hand-panel>:is(.quick-start,.roll-tools){display:none}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #dice-tray{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0;padding:0;max-width:none}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #dice-tray .die-wrap{padding:5px;gap:3px;min-height:0}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #dice-tray .die-owner{display:flex;flex-direction:column;gap:1px;min-height:48px;margin:0;padding:2px;font-size:12px;line-height:1.4}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #dice-tray .die-portrait{height:26px;width:26px}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #dice-tray .die-portrait>svg{height:30px;width:26px}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #dice-tray :is(.die-skill,.die-inspect,.die-faces,.die-selection-state,.face-tray){display:none}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #dice-tray .die-name{font-size:12px;min-height:0;margin-top:4px;gap:2px;line-height:1.4}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #dice-tray .die-button{height:64px;min-height:64px;max-height:none;width:100%}
#focused-die-tools{display:none}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #focused-die-tools:not([hidden]){order:6;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 8px;padding:0;min-width:0}
#focused-die-tools .focused-die-name{grid-column:1/-1;font-size:12px;color:#dacda7;line-height:1.4}
#focused-die-tools :is(.die-skill,.die-inspect){display:flex;align-items:center;justify-content:center;gap:4px;min-height:48px;min-width:48px;padding:6px 8px;font-size:12px}
#focused-die-tools .die-skill :is(strong,small){font-size:12px;line-height:1.4}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #hand-panel>:is(.hand-tools,#selection-strip){order:5}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #hand-panel>#selection-hint{order:5;font-size:12px;margin:0}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #hand-panel>#selection-strip>span{display:none}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #hand-panel>:is(#dice-danger,#turn-preparation-dice,#tactical-options-dice,#dice-tactics){order:10}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout .command-choice{min-height:48px;padding:9px}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout .command-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #commands-panel>:is(#command-danger,#command-decision,#command-tactics,#turn-preparation-command,#tactical-options-command){order:6}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #reconsider-dice{min-height:48px;padding:4px 8px;margin:0}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout :is(#campaign-tactics-toggle,.command-inspect,.command-training-link,.tp-action,.tactic-opportunity-action){min-height:48px}
.bp-needs{font-size:11px;line-height:1.45;color:#cdd9c8}
.bp-explanation{margin-top:3px}.bp-explanation>summary{min-height:48px;display:flex;align-items:center;gap:8px;cursor:pointer;color:#e7d3a5}.bp-explanation>summary::before{content:'+'}.bp-explanation[open]>summary::before{content:'−'}.bp-explanation>summary:focus-visible{outline:3px solid #f5d49b;outline-offset:2px}
/* The illustrated party occupies the actual stage rather than postage stamps. */
body[data-screen="adventure"]:not(.campaign-diorama-active):is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena :is(.fighter-art,#hero-art,#enemy-art){height:clamp(170px,30dvh,300px);min-height:0;margin:0;padding:0}
body[data-screen="adventure"]:not(.campaign-diorama-active):is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena #enemy-art img{height:100%;width:100%;max-width:260px;object-fit:contain}
body[data-screen="adventure"]:not(.campaign-diorama-active):is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena #party-stage{height:100%;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;margin:0;padding:0;align-items:end}
body[data-screen="adventure"]:not(.campaign-diorama-active):is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .stage-member{height:100%;min-height:0;padding:0;border:0;background:transparent;display:flex;flex-direction:column;justify-content:flex-end}
body[data-screen="adventure"]:not(.campaign-diorama-active):is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .member-figure{height:calc(100% - 40px);min-height:0}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .stage-guide-button{position:absolute;inset:0;min-height:48px;min-width:0;padding:0;display:flex;align-items:flex-end;justify-content:center;background:transparent}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .stage-name{font-size:11px;line-height:1.4;padding:3px;background:#10272bdc;border-radius:4px}
body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #arena :is(.stage-action,.stage-level){display:none}
@media(min-width:1000px){
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout>.play-column{grid-template-columns:minmax(0,1.22fr) minmax(400px,1fr);gap:12px 18px;align-items:start}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout #arena{grid-column:1;grid-row:1;position:sticky;top:10px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout .play-column>:is(#hand-panel,#commands-panel,#review-panel){grid-column:2;grid-row:1/span 4;max-height:calc(100dvh - 210px);overflow:auto;overscroll-behavior:contain;scroll-padding-block:12px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout #journey-coach{grid-column:1;grid-row:5}
 body[data-screen="adventure"]:not(.world-overlay-open).campaign-diorama-active:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout #campaign-diorama{grid-column:1;grid-row:1}
 body[data-screen="adventure"].campaign-diorama-active:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout #arena{grid-row:2;position:relative;top:auto}
 body[data-screen="adventure"]:not(.world-overlay-open).campaign-diorama-active:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout #campaign-diorama iframe{height:clamp(320px,46dvh,560px)}
}
@media(max-width:640px){
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) .topbar{gap:2px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) .topbar .brand{display:none}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) :is(.adventure-nav-item,.top-actions>.quiet-button,.home-tools>summary){min-width:44px;font-size:11px;padding:4px;flex-direction:column;gap:1px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) .adventure-nav-item svg{width:16px;height:16px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .combatants{padding:4px 8px;gap:8px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .fighter-meta{display:flex;flex-wrap:wrap;gap:2px 7px;font-size:11px;line-height:1.4}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .fighter-info{padding:5px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .enemy-ward{display:flex;flex-wrap:wrap;gap:2px 5px;padding:3px;margin-top:3px;font-size:11px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .enemy-ward>small{display:none}
 body[data-screen="adventure"]:not(.campaign-diorama-active):is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena :is(.fighter-art,#hero-art,#enemy-art){height:clamp(120px,20dvh,180px)}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena .intent-badge{font-size:11px;line-height:1.4;padding:5px;margin:0;min-height:0}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout .hand-heading h2{font-size:18px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout .play-column>:is(#hand-panel,#commands-panel){padding:10px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #battle-pattern-status .bp-pattern{margin:5px 8px;padding:5px 8px;font-size:12px}
 body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #arena .battle-utility{display:none} /* History is also in the result panel. */
}
/* Text enlargement and short landscape devices retain normal document flow.
   Nothing is clipped to a fixed-height game canvas. */
html[data-text-size="large"] body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout>.play-column{grid-template-columns:minmax(0,1fr)}
html[data-text-size="large"] body[data-screen="adventure"]:not(.world-overlay-open):is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout .play-column>*{grid-column:1;grid-row:auto;max-height:none;overflow:visible;position:relative;top:auto}
html[data-text-size="large"] body[data-screen="adventure"] #game-layout #dice-tray{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-text-size="large"] #game-layout :is(.die-name,.die-owner,.focused-die-name,.die-skill strong,.die-skill small,.bp-explanation>summary){font-size:1rem}
@media(max-height:560px){body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #game-layout .play-column>:is(#hand-panel,#commands-panel,#review-panel){max-height:none;overflow:visible}}
/* Explicit text enlargement also applies to compact battle controls. The
   navigation can wrap instead of pushing Settings beyond a narrow viewport. */
html[data-text-size="large"] body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) .topbar{flex-wrap:wrap}
html[data-text-size="large"] body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) .adventure-nav{flex-wrap:wrap;flex-basis:100%;justify-content:flex-start}
html[data-text-size="large"] body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) .top-actions{flex:1 1 auto;flex-wrap:wrap}
html[data-text-size="large"] body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) :is(.adventure-nav-item,.top-actions>.quiet-button,.home-tools>summary){font-size:1rem;line-height:1.5;max-width:none;white-space:normal;overflow-wrap:anywhere}
html[data-text-size="large"] body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"]) #game-layout #dice-tray :is(.die-owner,.die-name){font-size:1rem;line-height:1.5}
html[data-text-size="large"] body[data-screen="adventure"]:is([data-phase="dice"],[data-phase="command"],[data-phase="playback"],[data-phase="result"]) #arena :is(.fighter-meta,.intent-badge,.enemy-ward,.stage-name){font-size:1rem;line-height:1.5}
