/* Aether Vault 3.11.235 — keep the real-card appearance from 3.11.234,
   but center both ranks safely inside the board (not under its borders). */

/* 3.11.234 mistakenly pushed one rank to the very top and the other to
   the bottom. Each side now has its own safe middle lane. */
.av226-screen .av226-rowcenter{
  justify-content:center;
  min-height:0;
}
.av226-screen .av226-fieldcards{
  align-items:center;
  justify-content:center;
  height:100%;
  min-height:0;
  padding-top:0;
  padding-bottom:0;
}
.av226-screen .av226-enemyrow .av226-rowcenter{
  position:relative;
  padding-top:25px; /* reserved for the rival's concealed cards */
}
.av226-screen .av226-enemyhand{
  top:2px;
  z-index:4;
}
.av226-screen .av226-enemyrow .av226-fieldcards{
  align-items:center;
  height:100%;
  padding-top:0;
}

/* Don't let a full-height card touch the top border or the battle log.
   Reserve room for both the portrait and its Power / Attack controls. */
.av226-screen .av226-minion{
  height:min(76%,184px);
  max-height:184px;
  min-height:0;
  justify-content:center;
  align-self:center;
}
.av226-screen .av226-minionselect{
  flex:1 1 auto;
  min-height:55px;
  max-height:151px;
}
.av226-screen .av226-minionactions{
  flex:0 0 32px;
  height:32px;
  padding-top:5px;
}
.av226-screen .av226-rivalbar{
  flex:0 0 20px;
  height:20px;
  margin-top:4px;
}
.av226-screen .av226-slot{
  height:min(68%,150px);
  align-self:center;
  max-height:150px;
}

/* Keep clear physical space around both rows at shorter screen heights. */
@media(max-height:770px){
  .av226-screen .av226-enemyrow .av226-rowcenter{padding-top:20px}
  .av226-screen .av226-minion{height:min(76%,151px);max-height:151px}
  .av226-screen .av226-minionselect{max-height:123px;min-height:42px}
  .av226-screen .av226-minionactions{flex-basis:26px;height:26px}
  .av226-screen .av226-rivalbar{flex-basis:17px;height:17px;margin-top:2px}
  .av226-screen .av226-slot{height:min(66%,120px);max-height:120px}
}
@media(max-width:720px){
  .av226-screen .av226-enemyrow .av226-rowcenter{padding-top:17px}
  .av226-screen .av226-minion{height:min(74%,125px);max-height:125px}
  .av226-screen .av226-minionselect{max-height:103px;min-height:35px}
  .av226-screen .av226-minionactions{flex-basis:24px;height:24px;padding-top:2px}
  .av226-screen .av226-rivalbar{flex-basis:15px;height:15px}
  .av226-screen .av226-slot{height:min(65%,101px);max-height:101px}
}
