/* Aether Vault 3.11.244 — battle log in its own strip ABOVE the field.
   Preserve all collectible-card visuals, combat rules, and animations. */

/* Keep the same dedicated row heights, but put the short log track SECOND
   and the flexible battlefield track THIRD. Grid rows must be reordered,
   not just the child elements, or the battlefield gets only 34px tall. */
body:has(.av226-screen) .av226-screen{
  grid-template-rows:var(--av241-header-h) var(--av241-log-h) minmax(0,1fr) var(--av241-dock-h)!important;
}
.av226-screen .av226-topbar{grid-row:1!important}
.av226-screen .av226-logline{
  grid-column:1/-1!important;
  grid-row:2!important;
  position:relative!important;
  z-index:5!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
  border:0!important;
  padding:3px 12px!important;
  background:linear-gradient(90deg,#29201d,#1e1c24 63%,#1b1d27)!important;
  box-shadow:0 2px 5px #0006!important;
}
.av226-screen .av226-board{
  grid-column:1!important;
  grid-row:3!important;
  min-height:0!important;
  overflow:hidden!important;
}
.av226-screen .av226-reader{grid-row:3!important;min-height:0!important}
.av226-screen .av226-handdock,
.av226-screen .av226-results{grid-row:4!important}
.av226-screen .av226-logline span{min-width:0!important}
.av226-screen .av226-logline button{flex-shrink:0}

/* Reserve safe space for the creature and the Power/Attack buttons, including
   browser zoom and the shorter desktop windows that previously clipped them.
   No sizes or artwork styles are changed except where necessary to fit. */
@media(max-height:900px){
  .av226-screen{--av241-row-buffer:45px}
}
@media(max-width:720px){
  .av226-screen{--av241-row-buffer:40px}
}
