/* Aether Vault 3.11.238
   Restore full-card readability on the battlefield.
   Cards should look like complete cards again, with info integrated into the card. */

/* Slightly rebalance board space so full cards fit cleanly. */
body:has(.av226-screen) .av226-screen{
  grid-template-rows:50px minmax(0,1fr) 32px clamp(188px,25dvh,245px)!important;
}
.av226-screen .av226-tabletop{grid-template-rows:minmax(0,1fr) 24px minmax(0,1fr)}
.av226-screen .av226-fieldcards{gap:clamp(7px,1vw,15px)}
.av226-screen .av226-minion,
.av226-screen .av226-slot{
  flex:0 1 clamp(112px,11.6vw,180px);
  width:clamp(112px,11.6vw,180px);
}
.av226-screen .av226-minion{
  height:min(94%,252px);
  max-height:252px;
}
.av226-screen .av226-minionselect{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  border-radius:13px;
}

/* Full battlefield card */
.av226-screen .av238-fieldface{
  position:relative;
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
  min-height:0;
  padding:4px;
  border:1px solid #e7d7bd!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,#f9f1e4 0%,#eee0c8 74%,#e3d1b2 100%)!important;
  box-shadow:0 9px 18px #0009,0 2px 6px #0006!important;
  color:#241a14!important;
  overflow:hidden;
}
.av226-screen .av238-fieldface[data-rarity="Legendary"],
.av226-screen .av238-fieldface[data-rarity="Mythic"]{
  box-shadow:0 10px 20px #0009,0 0 12px #e8bf666e!important;
}
.av226-screen .av238-cost{
  position:absolute;
  top:6px;
  left:6px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:25px;
  height:25px;
  padding:0 6px;
  border-radius:8px;
  background:linear-gradient(180deg,#4674a1,#27415f);
  color:#fff;
  font:900 12px/1 Arial,sans-serif;
  box-shadow:0 2px 4px #0008;
}
.av226-screen .av238-art{
  flex:1 1 auto;
  min-height:0;
  width:100%;
  border:1px solid #d6c5a8;
  border-radius:9px 9px 4px 4px;
  background-position:center center!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-color:#131b24!important;
  box-shadow:inset 0 -10px 12px #00000050!important;
}
.av226-screen .av238-info{
  flex:0 0 52px;
  min-height:52px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  padding:4px 4px 2px;
}
.av226-screen .av238-name{
  display:block;
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  color:#2a2119;
  font:900 clamp(9px,.78vw,12px)/1.1 Georgia,serif;
}
.av226-screen .av238-trait{
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  color:#665442;
  font:700 clamp(8px,.68vw,10px)/1.05 Arial,sans-serif;
}
.av226-screen .av238-stats{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  margin-top:1px;
}
.av226-screen .av238-stat{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:#efe5d6;
  box-shadow:inset 0 0 0 1px #c9b79c;
  color:#4c3924;
  font:900 clamp(10px,.8vw,12px)/1 Arial,sans-serif;
}
.av226-screen .av238-stat.hp{
  color:#922b39;
}
.av226-screen .av226-minionactions{
  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;
}

/* Hand cards stay clean and readable. */
.av226-screen .av226-handcard{max-width:208px}

/* Selection and hover without hiding information. */
.av226-screen .av226-minionselect:hover .av238-fieldface,
.av226-screen .av226-minion.focused .av238-fieldface{
  box-shadow:0 10px 20px #000a,0 0 14px #efcb7b8a!important;
}

@media(max-height:770px){
  .av226-screen .av226-minion{height:min(93%,206px);max-height:206px}
  .av226-screen .av226-slot{height:min(80%,155px);max-height:155px}
  .av226-screen .av238-info{flex-basis:43px;min-height:43px;padding:3px 3px 1px}
  .av226-screen .av226-minionactions{flex-basis:27px;height:27px;padding-top:3px}
  .av226-screen .av226-rivalbar{flex-basis:14px;height:14px;margin-top:1px}
}
@media(max-width:1300px){
  .av226-screen .av226-minion,.av226-screen .av226-slot{width:clamp(96px,11vw,154px);flex-basis:clamp(96px,11vw,154px)}
}
@media(max-width:1040px){
  .av226-screen .av226-minion,.av226-screen .av226-slot{width:clamp(87px,12vw,148px);flex-basis:clamp(87px,12vw,148px)}
}
@media(max-width:720px){
  body:has(.av226-screen) .av226-screen{grid-template-rows:45px minmax(0,1fr) 30px 175px!important}
  .av226-screen .av226-minion,.av226-screen .av226-slot{width:clamp(44px,10vw,89px);flex-basis:clamp(44px,10vw,89px)}
  .av226-screen .av226-minion{height:min(90%,166px);max-height:166px}
  .av226-screen .av238-fieldface{padding:2px;border-radius:7px!important}
  .av226-screen .av238-art{border-radius:5px 5px 3px 3px}
  .av226-screen .av238-cost{top:3px;left:3px;min-width:16px;height:16px;padding:0 3px;font-size:8px}
  .av226-screen .av238-info{flex-basis:34px;min-height:34px;padding:2px 2px 1px}
  .av226-screen .av238-name{font-size:8px}
  .av226-screen .av238-trait{font-size:7px}
  .av226-screen .av238-stat{min-width:28px;height:14px;font-size:8px;padding:0 4px}
}
