/* Aether Vault 3.11.239
   - Field cards should look like collectible cards again.
   - Remove decorative board borders and the static YOUR TURN midline.
   - Keep the arena filling the viewport. */

/* Seamless fullscreen arena: remove the heavy framing around the game. */
body:has(.av226-screen){background:#080c10!important}
body:has(.av226-screen) .av226-screen{
  grid-template-columns:minmax(0,1fr) clamp(285px,19vw,332px);
  grid-template-rows:54px minmax(0,1fr) 36px clamp(210px,27dvh,292px)!important;
  background:#080c10!important;
}
.av226-screen .av226-topbar{
  border-bottom:0!important;
  box-shadow:0 6px 18px #0006!important;
}
.av226-screen .av226-board{
  box-shadow:none!important;
  background:radial-gradient(ellipse at 50% 50%,#19352a18 0%,#1114128e 67%,#070d13c8 100%),linear-gradient(90deg,#170d0e88,transparent 14%,transparent 86%,#170d0e88),url('/cardgame/assets/ember-arena.webp') center 47% / cover no-repeat!important;
}
.av226-board:before,.av226-board:after{display:none!important}
.av226-screen .av226-reader{
  border-left:0!important;
  box-shadow:inset 0 0 18px #0006!important;
}
.av226-screen .av226-logline{
  border-top:0!important;border-bottom:0!important;
  background:linear-gradient(#2b211f,#171821)!important;
}
.av226-screen .av226-handdock{
  box-shadow:inset 0 6px 16px #0005!important;
}
.av226-screen [data-arena-expand]{display:none!important}

/* Remove the static in-the-middle YOUR TURN badge. Pop-up callout stays. */
.av226-midline{display:none!important}
.av226-tabletop{grid-template-rows:minmax(0,1fr) 0 minmax(0,1fr)!important;padding:8px 132px 8px 22px}

/* Large collectible-style field cards. */
.av226-screen .av226-enemyrow .av226-rowcenter{padding-top:18px}
.av226-screen .av226-fieldcards{gap:clamp(8px,1vw,16px);align-items:center;justify-content:center}
.av226-screen .av226-minion,
.av226-screen .av226-slot{
  flex:0 1 clamp(132px,13.2vw,206px);
  width:clamp(132px,13.2vw,206px);
}
.av226-screen .av226-minion{
  height:min(97%,306px);
  max-height:306px;
  align-self:center;
  justify-content:center;
  overflow:visible;
}
.av226-screen .av226-slot{
  height:min(80%,220px);
  max-height:220px;
  border:1px dashed #cba76855;
  background:radial-gradient(ellipse at center,#cda65b15 0%,transparent 70%);
}
.av226-screen .av226-minionselect{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  border-radius:14px;
  background:none!important;
  border:0!important;
  padding:0!important;
}
.av226-screen .av239-battlecard.card{
  width:100%;
  height:100%;
  aspect-ratio:auto;
  margin:0;
  padding:7px;
  border-width:2px;
  border-radius:15px;
  box-shadow:0 14px 28px #000a,inset 0 0 3px #ffdda8;
  transform:none;
}
.av226-screen .av239-battlecard.card:hover{transform:none}
.av226-screen .av239-battlecard .inner{
  border-radius:10px;
  border-color:#efd49a90;
}
.av226-screen .av239-battlecard .ctop{
  height:14%;
  padding:5px 8px;
}
.av226-screen .av239-battlecard .ctop strong{
  font-size:clamp(10px,.95vw,14px);
}
.av226-screen .av239-battlecard .artbox{
  flex:1 1 auto;
  min-height:0;
}
.av226-screen .av239-battlecard .art{
  height:100%;
  width:100%;
}
.av226-screen .av239-battlecard .power{
  bottom:8px;right:7px;font-size:clamp(16px,1.45vw,22px);
}
.av226-screen .av239-battlecard .power small{font-size:7px}
.av226-screen .av239-battlecard .cbottom{
  height:24%;
  padding:8px 8px 7px;
  gap:3px;
}
.av226-screen .av239-battlecard .type{
  font-size:clamp(8px,.7vw,10px);
  line-height:1.25;
}
.av226-screen .av239-battlecard .flavor{
  font:700 clamp(8px,.74vw,10.5px)/1.18 'DM Sans',sans-serif;
  color:#f0f4fb;
  white-space:normal;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  text-align:left;
}
.av226-screen .av239-battlecard .serial{
  font-size:clamp(7px,.65vw,9px);
}

/* Selection and hover should feel like moving a real card, not a box. */
.av226-screen .av226-minion.focused .av239-battlecard,
.av226-screen .av226-minionselect:hover .av239-battlecard{
  box-shadow:0 16px 30px #000b,0 0 18px #f0cb7e7a,inset 0 0 3px #ffe6b4!important;
  transform:translateY(-4px) rotate(.2deg);
}

/* Player buttons stay below cards and unobstructed. */
.av226-screen .av226-minionactions{
  flex:0 0 32px;
  height:32px;
  gap:5px;
  width:100%;
  padding:5px 0 0;
}
.av226-screen .av226-rivalbar{flex:0 0 18px;height:18px;margin:3px 0 0;padding:0}

/* Hand cards should also keep the collectible style without being shrunk too much. */
.av226-screen .av226-handdock{padding:8px 16px 10px}
.av226-screen .av226-hand{gap:clamp(7px,.9vw,14px)}
.av226-screen .av226-handcard{
  flex:0 1 min(230px,calc((100% - 40px)/4));
  max-width:230px;
}
.av226-screen .av226-cardface.av237-handface{
  padding:7px!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
}
.av226-screen .av226-cardface.av237-handface .av226-cardart{border-radius:0!important}

/* Reader artwork more collectible-card-like, less boxed off. */
.av226-reader .focus-art{border:0!important;box-shadow:0 8px 18px #0007!important}

@media(max-width:1300px){
  .av226-screen .av226-minion,.av226-screen .av226-slot{width:clamp(114px,12vw,176px);flex-basis:clamp(114px,12vw,176px)}
  .av226-screen .av226-minion{height:min(96%,275px);max-height:275px}
}
@media(max-height:770px){
  body:has(.av226-screen) .av226-screen{grid-template-rows:48px minmax(0,1fr) 32px clamp(196px,28dvh,228px)!important}
  .av226-screen .av226-minion,.av226-screen .av226-slot{width:clamp(104px,11.8vw,162px);flex-basis:clamp(104px,11.8vw,162px)}
  .av226-screen .av226-minion{height:min(95%,244px);max-height:244px}
  .av226-screen .av239-battlecard .ctop strong{font-size:clamp(9px,.9vw,12px)}
  .av226-screen .av239-battlecard .flavor{-webkit-line-clamp:1;font-size:clamp(8px,.72vw,9.5px)}
  .av226-screen .av239-battlecard .cbottom{height:23%}
}
@media(max-width:1040px){
  body:has(.av226-screen) .av226-screen{grid-template-columns:minmax(0,1fr)!important}
  .av226-screen .av226-reader{border-left:0!important}
}
@media(max-width:720px){
  body:has(.av226-screen) .av226-screen{grid-template-rows:48px minmax(0,1fr) 32px 210px!important}
  .av226-tabletop{padding:5px 72px 5px 5px!important}
  .av226-screen .av226-minion,.av226-screen .av226-slot{width:clamp(56px,12vw,96px);flex-basis:clamp(56px,12vw,96px)}
  .av226-screen .av226-minion{height:min(92%,188px);max-height:188px}
  .av226-screen .av239-battlecard.card{padding:3px;border-radius:8px}
  .av226-screen .av239-battlecard .ctop{padding:3px 5px}
  .av226-screen .av239-battlecard .ctop strong{font-size:8px}
  .av226-screen .av239-battlecard .cbottom{padding:4px;height:25%}
  .av226-screen .av239-battlecard .type{font-size:6.5px}
  .av226-screen .av239-battlecard .flavor{display:none}
  .av226-screen .av239-battlecard .serial{font-size:6px}
  .av226-screen .av239-battlecard .power{font-size:12px;bottom:5px;right:4px}
}
