/* A stable hint area: selecting, changing or clearing an action cannot resize
   the battlefield. Longer or simultaneous notices scroll inside this area. */
.atb-dock .combat-notices{height:64px;min-height:64px;max-height:64px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#52788f #0b1829;scrollbar-gutter:stable;display:flex;flex-direction:column;gap:4px;margin-bottom:6px;min-width:0;outline-offset:1px}
.combat-notices>:is(.action-preview,.team-feedback,.elite-tactic){flex:none;margin:0;padding:5px 8px;font-size:13px;line-height:1.35}
.combat-notices:focus-visible{outline:1px solid #9adcf2;border-radius:4px}
.atb-action .action-affinity{display:block;flex:none;height:12px;min-height:12px;line-height:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Keep the large hero sprite, but limit its life meter to the free space
   between the potion buttons, measured against this stage rather than the viewport. */
.atb-stage{--combat-potion-width:68px;--combat-potion-inset:10px;--combat-potion-gap:8px}
.atb-stage:has(.atb-heroes>.self:only-child){container-type:inline-size}
.atb-stage .battle-potions{left:var(--combat-potion-inset);right:var(--combat-potion-inset)}
.atb-stage .battle-potion{width:var(--combat-potion-width)}
.atb-stage .battle-potion .empty-flask{font-size:24px;line-height:28px;flex:none}
.atb-stage:has(.atb-heroes>.self:only-child) .self>.atb-life{max-width:max(24px,calc(100cqw - 2 * (var(--combat-potion-width) + var(--combat-potion-inset) + var(--combat-potion-gap))))}
@media(max-height:650px){.atb-stage{--combat-potion-width:62px}.atb-dock .combat-notices{height:56px;min-height:56px;max-height:56px}.combat-notices>:is(.action-preview,.team-feedback,.elite-tactic){font-size:12px;line-height:1.3;padding:4px 7px}}
@media(max-height:650px) and (max-width:700px){.atb-action{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:32px 26px 24px 12px;justify-items:center;gap:0;height:104px;min-height:104px;padding:3px}.atb-action .ability-icon{height:32px}.atb-action strong{min-height:0;line-height:12px}.atb-action .action-cost{min-height:0;line-height:12px}}
@media(orientation:landscape) and (max-height:500px){.atb-dock{min-height:0;max-height:100%;overflow:auto}.atb-dock .combat-notices{height:48px;min-height:48px;max-height:48px}.atb-action{height:78px;min-height:78px;grid-template-columns:40px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 24px 12px;padding:4px}.atb-action strong{min-height:0;font-size:11px;line-height:1.15}.atb-action .action-cost{line-height:12px}}
@media(max-height:650px){
 .atb-battle:has(.staggered) .combat-notices{height:40px;min-height:40px;max-height:40px}
 .atb-battle .atb-stage:has(.staggered){grid-template-rows:18px minmax(0,1.6fr) 18px minmax(64px,1fr)}
 .atb-battle .atb-stage:has(.staggered):has(.pet-owner:not([hidden])){grid-template-rows:18px minmax(0,1.6fr) 18px 38px minmax(54px,1fr)}
 .atb-stage:has(.staggered) .atb-pets{height:38px;max-height:38px}
 .atb-stage:has(.staggered) .atb-pets .battle-sprite{height:14px;min-height:12px;max-height:14px;flex-basis:14px}
 .atb-stage:has(.staggered) .atb-heroes .battle-sprite{min-height:12px}
 .atb-enemies.staggered .atb-actor{padding:0 1px 1px;border-width:0}
 .atb-enemies.staggered .battle-sprite{height:auto;min-height:12px;flex:1 1 0}
 .atb-enemies.staggered .target-rift{height:0}
 .atb-enemies.staggered .actor-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .atb-stage .actor-status:empty{display:none}
}
