/* Aether Vault 3.11.237 — larger cards, entire artwork unobstructed.
   Actual names / attack / HP live below art instead of covering pictures. */

/* Expand the battlefield while retaining a complete playable hand. */
body:has(.av226-screen) .av226-screen{
  grid-template-rows:50px minmax(0,1fr) 32px clamp(188px,25dvh,245px)!important;
}
.av226-screen .av226-tabletop{padding-top:4px;padding-bottom:4px;grid-template-rows:minmax(0,1fr) 24px minmax(0,1fr)}
.av226-screen .av226-rowcenter,
.av226-screen .av226-enemyrow .av226-rowcenter{justify-content:center;min-height:0}
.av226-screen .av226-enemyrow .av226-rowcenter{padding-top:22px}
.av226-screen .av226-enemyhand{top:0}
.av226-screen .av226-fieldcards,
.av226-screen .av226-enemyrow .av226-fieldcards{
 align-items:center;justify-content:center;height:100%;padding:0;gap:clamp(6px,1vw,15px);
}

/* Put 4 large cards in the board, making use of all safely available height. */
.av226-screen .av226-minion{
 flex:0 1 clamp(115px,11.7vw,188px);
 width:clamp(115px,11.7vw,188px);
 height:min(93%,248px);max-height:248px;
 align-self:center;justify-content:center;
 margin:0;padding:0;overflow:visible;
}
.av226-screen .av226-minionselect{
 flex:1 1 auto;width:100%;min-height:0;max-height:none;
 border-radius:11px;
}
.av226-screen .av226-minionface{
 display:flex;flex-direction:column;
 width:100%;height:100%;min-height:0;padding:4px 4px 3px;
 border:1px solid #eadac0!important;border-radius:11px!important;
 overflow:hidden;background:#eaddc8!important;
 box-shadow:0 8px 18px #000a!important;
}
.av226-screen .av226-minionface::before{display:none!important}
.av226-screen .av226-minionart{
 position:relative;inset:auto!important;
 display:block;flex:1 1 auto;width:100%;height:auto;min-height:0;
 border:0!important;border-radius:7px 7px 3px 3px!important;
 background-position:center center!important;background-size:contain!important;
 background-repeat:no-repeat!important;background-color:#111923!important;
 box-shadow:none!important;
}
.av226-screen .av237-fieldcaption{
 display:flex;flex-direction:column;flex:0 0 41px;min-height:41px;
 align-items:stretch;justify-content:center;gap:1px;padding:2px 5px 0;
 color:#211912;background:#eaddc8;
}
.av226-screen .av226-minionname{
 display:block;position:static!important;
 left:auto!important;right:auto!important;bottom:auto!important;
 width:100%;margin:0;padding:0!important;
 background:none!important;max-height:27px;min-height:0;
 overflow:hidden;text-overflow:ellipsis;
 font:900 clamp(9px,.75vw,12px)/1.05 Georgia,serif!important;
 color:#33251a!important;text-align:center;text-shadow:none!important;
}
.av226-screen .av237-fieldstats{display:flex;align-items:center;justify-content:space-between;gap:8px;height:17px}
.av226-screen .av226-minionatk,.av226-screen .av226-minionhp{
 position:static!important;bottom:auto!important;left:auto!important;right:auto!important;
 display:inline-flex;align-items:center;justify-content:center;min-width:0;height:auto;
 padding:0!important;margin:0;border:0!important;border-radius:0!important;
 background:none!important;box-shadow:none!important;
 color:#4c3924!important;font:900 clamp(11px,.86vw,14px)/1.1 Arial,sans-serif!important;text-shadow:none!important;
}
.av226-screen .av226-minionhp{color:#9a2e3c!important}
.av226-screen .av226-minionactions{
 display:flex;flex:0 0 31px;height:31px;gap:5px;width:100%;padding:5px 0 0;
}
.av226-screen .av226-rivalbar{flex:0 0 17px;height:17px;margin:3px 0 0;padding:0;font-size:9px}
.av226-screen .av226-slot{height:min(86%,195px);max-height:195px;flex:0 1 clamp(115px,11.7vw,188px);width:clamp(115px,11.7vw,188px)}

/* The hand cards, too, show one full portrait with a footer instead of text laid over art. */
.av226-screen .av226-handdock{padding:5px 12px 7px;gap:3px}
.av226-screen .av226-handhead{flex:0 0 23px;min-height:23px}
.av226-screen .av226-hand{padding:2px 0 2px;align-items:stretch;gap:clamp(6px,.8vw,12px)}
.av226-screen .av226-handcard{
 flex:0 1 min(208px,calc((100% - 32px)/4));
 min-width:0;max-width:208px;height:100%;padding:0!important;gap:4px;
}
.av226-screen .av226-handpick{display:block;min-height:0;flex:1 1 auto;overflow:visible}
.av226-screen .av226-cardface.av237-handface{
 display:flex;flex-direction:column;gap:0;width:100%;height:100%;min-height:0;
 padding:4px;border:1px solid #eadac0!important;border-radius:11px!important;
 overflow:hidden;background:#eaddc8!important;box-shadow:0 8px 18px #000a!important;
}
.av226-screen .av226-cardart{
 display:block;flex:1 1 auto;width:100%;height:auto;min-height:0;
 margin:0;border:0!important;border-radius:7px 7px 3px 3px!important;
 background-position:center center!important;background-size:contain!important;
 background-repeat:no-repeat!important;background-color:#101925!important;
 box-shadow:none!important;
}
.av226-screen .av237-handcaption{
 flex:0 0 37px;display:flex;flex-direction:column;justify-content:center;
 min-height:37px;gap:1px;padding:2px 5px 0;background:#eaddc8;
}
.av226-screen .av237-handtitle{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:19px}
.av226-screen .av226-cardname{
 display:block;flex:1 1 auto;min-width:0;max-height:27px;min-height:0;
 margin:0;padding:0!important;overflow:hidden;text-overflow:ellipsis;
 font:900 clamp(10px,.8vw,12px)/1.1 Georgia,serif!important;text-align:left!important;
 color:#2b211a!important;text-shadow:none!important;
}
.av226-screen .av226-cardcost{
 position:static!important;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;
 width:auto;height:auto;min-width:21px;padding:2px 4px;
 border:0!important;border-radius:6px!important;
 background:#315b83!important;box-shadow:none!important;color:#fff!important;
 font:900 11px/1 Arial!important;
}
.av226-screen .av226-cardstats{display:flex;justify-content:space-between;flex:0 0 auto;margin:0;font:900 11px/1.1 Arial;color:#4c3924!important}
.av226-screen .av226-cardstats span:last-child{color:#8e2c37!important}
.av226-screen .av226-playbutton{flex:0 0 26px;height:26px;min-height:26px}

/* Hover and selection enhance the whole card but never obscure its image. */
.av226-screen .av226-minionselect:hover .av226-minionface,
.av226-screen .av226-handcard.selected .av226-cardface,
.av226-screen .av226-minion.focused .av226-minionface{
 box-shadow:0 8px 18px #000a,0 0 15px #f2d17b99!important;
}

/* Smaller viewports stay within board boundaries with legible controls. */
@media(max-height:770px){
 body:has(.av226-screen) .av226-screen{grid-template-rows:47px minmax(0,1fr) 30px clamp(176px,26dvh,201px)!important}
 .av226-screen .av226-minion{height:min(93%,202px);max-height:202px}
 .av226-screen .av226-slot{height:min(80%,155px);max-height:155px}
 .av226-screen .av226-enemyrow .av226-rowcenter{padding-top:17px}
 .av226-screen .av237-fieldcaption{flex-basis:35px;min-height:35px}
 .av226-screen .av226-minionactions{flex-basis:27px;height:27px;padding-top:3px}
 .av226-screen .av226-rivalbar{flex-basis:14px;height:14px;margin-top:1px}
 .av226-screen .av237-handcaption{flex-basis:33px;min-height:33px}
 .av226-screen .av226-playbutton{flex-basis:24px;height:24px;min-height:24px}
}
@media(max-width:1300px){
 .av226-screen .av226-minion,.av226-screen .av226-slot{width:clamp(95px,11vw,158px);flex-basis:clamp(95px,11vw,158px)}
}
@media(max-width:1040px){
 .av226-screen .av226-minion,.av226-screen .av226-slot{width:clamp(86px,12vw,155px);flex-basis:clamp(86px,12vw,155px)}
}
@media(max-width:720px){
 body:has(.av226-screen) .av226-screen{grid-template-rows:45px minmax(0,1fr) 30px 175px!important}
 .av226-screen .av226-tabletop{padding:4px 72px 4px 4px}
 .av226-screen .av226-minion,.av226-screen .av226-slot{width:clamp(43px,10vw,90px);flex-basis:clamp(43px,10vw,90px)}
 .av226-screen .av226-minion{height:min(90%,165px);max-height:165px}
 .av226-screen .av226-minionselect{max-height:none}
 .av226-screen .av226-fieldcards{gap:3px}
 .av226-screen .av226-minionface{border-radius:6px!important;padding:2px}
 .av226-screen .av226-minionart{border-radius:4px!important}
 .av226-screen .av237-fieldcaption{flex-basis:29px;min-height:29px;padding:1px 2px}
 .av226-screen .av226-minionname{font-size:8px!important;max-height:17px}
 .av226-screen .av226-minionatk,.av226-screen .av226-minionhp{font-size:9px!important}
 .av226-screen .av226-minionactions{height:24px;flex-basis:24px}
 .av226-screen .av226-cardname{font-size:9px!important}
 .av226-screen .av237-handcaption{padding:1px 2px;flex-basis:29px;min-height:29px}
 .av226-screen .av226-cardstats{font-size:9px}
 .av226-screen .av226-cardcost{font-size:9px!important;min-width:16px}
 .av226-screen .av226-handcard{flex-basis:min(170px,calc((100% - 16px)/4))}
}
@media(prefers-reduced-motion:reduce){
 .av226-screen .av226-minionface{animation:none!important}
}
