/* Final short-laptop legibility pass for the composed battle board. */
@media (min-width:1101px) and (max-height:760px){
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-formation="ranks3"] #game>.encounter #enemies>.enemy>.unit-card-face>h3.hybrid-unit-name,
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-formation="ranks3"] #game>.formation :is(#front,#middle,#rear)>.hero>.unit-card-face>h3.hybrid-unit-name{font:700 16px/17px var(--fantasy-title)!important;height:30px!important;min-height:30px!important}
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-formation="ranks3"] #game>.encounter #enemies>.enemy>.unit-card-face .enemy-copy>.hp,
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-formation="ranks3"] #game>.formation :is(#front,#middle,#rear)>.hero>.unit-card-face .hero-body>.hp{font:700 16px/18px system-ui!important}
}
body[data-story="true"] .ability-face15 .af15-cost{min-width:33px!important;padding:1px 2px!important}
body[data-story="true"] .ability-face15 .af15-cost{font-size:18px!important;line-height:22px!important}
body[data-story="true"] .ability-face15 .af15-cost>.af15-symbol{display:none!important}
@media (min-width:900px){
 body[data-story="true"][data-style="hybrid"] #lootPanel .loot-reward-card .ability-face15{grid-template-rows:minmax(38px,max-content) minmax(100px,1fr) auto auto!important}
 body[data-story="true"][data-style="hybrid"] #lootPanel .loot-reward-card .af15-heading{height:auto!important;min-height:38px!important}
 body[data-story="true"][data-style="hybrid"] #lootPanel .loot-reward-card .af15-name{font-size:16px!important;line-height:19px!important;max-height:none!important}
 body[data-story="true"][data-style="hybrid"] #lootPanel .loot-reward-card .af15-effect{height:auto!important;min-height:0!important;max-height:none!important;font-size:16px!important;line-height:20px!important}
 body[data-story="true"][data-style="hybrid"] #lootPanel .loot-reward-card .plain-card-copy21{font-size:16px!important;line-height:20px!important}
}
@media (min-width:1101px) and (max-height:760px){
 body[data-story="true"][data-style="hybrid"][data-view="expedition"][data-phase="battle"] .story-danger-track308{width:190px!important}
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game[data-visible-party="2"] #front.hero-row:has(>.hero:nth-child(2))>.hero>.readiness19{left:auto!important;right:calc(100% + 8px)!important;top:calc(50% - 14px)!important;bottom:auto!important;transform:none!important;width:auto!important;min-width:105px!important;max-width:none!important;font-size:16px!important;line-height:20px!important}
 /* Stack selection controls left of the timeline. The taller Play label grows upward. */
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>.controls .turn-actions :is(#cancelButton,#inspectButton),
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #playSelf18:not([hidden]){right:210px!important}
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #playSelf18:not([hidden]){bottom:232px!important}
 body[data-story="true"][data-style="hybrid"][data-view="expedition"][data-phase="battle"] .story-danger-track308 :is(.story-danger-heading308,.story-danger-row308)>small{font-size:16px!important;line-height:19px!important}
 body[data-story="true"][data-style="hybrid"][data-combat="true"][data-view="expedition"][data-phase="battle"] #playerHud #resources #threatInfo{width:130px!important;min-width:130px!important;max-width:130px!important;height:104px!important;min-height:104px!important;left:calc(50% - 65px)!important;right:auto!important;top:88px!important;bottom:auto!important}
 body[data-story="true"][data-style="hybrid"][data-combat="true"][data-view="expedition"][data-phase="battle"] #playerHud #resources #threatInfo :is(.threat-value>span,.threat-next){font-size:16px!important;line-height:19px!important}
 body[data-story="true"][data-knowledge="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>.encounter #enemies>.enemy.unit-shell>.unit-card-face .enemy-copy>.intent{font-size:16px!important;line-height:19px!important;height:42px!important;min-height:42px!important;transform:translateY(-6px)!important}
 body[data-story="true"][data-knowledge="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>.encounter #enemies>.enemy.unit-shell>.unit-card-face .enemy-copy>.knowledge-combat-stats{font-size:16px!important;line-height:20px!important;bottom:58px!important}
}
/* The lifted face retains the blocked reason in its reserved footer. */
body[data-story="true"][data-style="hybrid"] #hand .shared-ability-card15:is(:hover,:focus-visible,.selected) .card-unavailable18{display:block!important}
body[data-story=true] #game .move-targetable{
 outline:3px solid #b39bef!important;outline-offset:-3px!important;
 box-shadow:0 0 0 2px #251936,0 0 15px #ad8dff!important;cursor:pointer!important
}
body[data-story=true][data-style=hybrid][data-progression=xp][data-view=expedition][data-phase=battle][data-cycle-phase] #game>.formation :is(#front,#middle,#rear)>.empty.move-targetable{
 visibility:visible!important;pointer-events:auto!important;position:relative!important;z-index:5!important;
 background:rgba(34,26,53,.92)!important;color:#f5e8ff!important
}
body[data-story=true] #game #moveSelected[aria-pressed=true]{
 background:#523b70!important;border-color:#c7adfb!important;color:#fff4d5!important
}

/* Keep Tess's Quest, stretch and landmark controls above the party cards. */
@media (min-width:1200px){
 body[data-story=true][data-style=hybrid][data-view=expedition][data-phase=battle] #storyGoalHost17:has(.story-objective-scout340){
  display:grid!important;grid-template-columns:minmax(170px,1fr) minmax(200px,.82fr) minmax(190px,1.1fr);align-items:start;gap:5px;
  width:min(870px,calc(100vw - 625px))!important;height:38px!important
 }
 body[data-story=true][data-style=hybrid][data-view=expedition][data-phase=battle] #storyGoalHost17:has(.story-objective-scout340) :is(.story-goal17,.story-goal-bonus140,.story-objective-scout340){
  box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:38px!important;margin:0!important
 }
 body[data-story=true][data-style=hybrid][data-view=expedition][data-phase=battle] #storyGoalHost17:has(.story-objective-scout340) .story-goal-bonus140{height:auto!important;min-width:0!important;white-space:normal!important;display:block!important;font-size:16px!important;line-height:20px!important;padding:3px 5px!important}
 body[data-story=true][data-style=hybrid][data-view=expedition][data-phase=battle] #storyGoalHost17:has(.story-objective-scout340) .story-objective-scout340{height:auto!important;min-width:0!important;font-size:16px!important;line-height:20px!important;white-space:normal!important;padding:3px 5px!important}
 body[data-story=true][data-style=hybrid][data-view=expedition][data-phase=battle] #storyGoalHost17:has(.story-objective-scout340) .story-objective-scout340 small{display:none!important}
}

@media (min-width:900px) and (max-width:1199px){
 body[data-story=true][data-style=hybrid][data-progression=xp][data-view=expedition][data-phase=battle][data-cycle-phase] #game #moveSelected{left:calc(50% + 205px)!important;right:auto!important}
 body[data-story=true][data-style=hybrid][data-progression=xp][data-view=expedition][data-phase=battle][data-cycle-phase]:has(#moveSelected[aria-pressed=true]) #game #fieldActions .fire-source{pointer-events:none!important;opacity:.35!important}
 body[data-story=true][data-style=hybrid][data-progression=xp][data-view=expedition][data-phase=battle][data-cycle-phase]:has(#moveSelected[aria-pressed=true]) #game #fieldActions .fire-source *{pointer-events:none!important}
}

/* Existing Move guidance follows mode; mark the composed face, not only its shell. */
body[data-story=true][data-move-mode=true] #game#game>.formation :is(#front,#middle,#rear)>.hero.move-targetable>.unit-card-face{outline:3px solid #c7adfb!important;outline-offset:2px!important;box-shadow:0 0 0 2px #251936,0 0 15px #ad8dff!important}
@media(min-width:900px){
 body[data-story=true][data-style=hybrid][data-progression=xp][data-view=expedition][data-phase=battle][data-cycle-phase][data-move-mode=true] #game>.formation>.section-line>#selectionHint{display:block!important;position:fixed!important;left:2px!important;bottom:calc(var(--combat-hand-h,144px) + 10px)!important;top:auto!important;width:146px!important;padding:7px 9px!important;background:#152b23!important;color:#f8e8bc!important;border:1px solid #a99867!important;font:15px/20px Georgia,serif!important;z-index:25!important}
}
