
/* v2.45 — The player needs to read mathematics, not squint at decoration.
   Hide the duplicated account summary only while the duel is visible. */
body.arena-active #topStats,
body:has(#page-play.active .nr167-battle-shell) #topStats {display:none!important}

/* A prior patch forced ALL four cards into 246px. Remove that ceiling. */
body.arena-active .versus-team-player .battle-choice-grid.versus-card-grid{
 flex:1 1 auto!important;
 height:auto!important;
 min-height:0!important;
 max-height:none!important;
}
body.arena-active .versus-card-grid .arena-card .ac-stat{
 min-width:0;
}
body.arena-active .versus-card-grid .arena-card .ac-formula,
body.arena-active .versus-card-grid .arena-card .ac-formula.static{
 overflow-wrap:normal!important;
 word-break:normal!important;
 white-space:normal!important;
 text-overflow:clip!important;
 min-width:0!important;
}

@media (min-width:1180px){
 body.arena-active .arena-main.versus-battlefield{
  grid-template-columns:minmax(0,1.46fr) minmax(0,.99fr) minmax(0,1.03fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:8px!important;
  padding:6px 8px!important;
 }
 body.arena-active .versus-team-player{grid-column:1!important;grid-row:1!important;overflow:hidden!important}
 body.arena-active .versus-centre-lane{grid-column:2!important;grid-row:1!important;min-width:0!important}
 body.arena-active .versus-team-opponent{grid-column:3!important;grid-row:1!important}
 body.arena-active .versus-team{padding:7px!important;gap:6px!important}
 body.arena-active .versus-team-player .battle-choice-grid.versus-card-grid{gap:7px!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
 body.arena-active .versus-card-grid .player-hand-card{min-height:0!important;}
 body.arena-active .versus-team-player .arena-card .ac-main{
  display:grid!important;
  grid-template-columns:minmax(0,24%) minmax(0,76%)!important;
  gap:4px!important;
  padding:3px!important;
 }
 body.arena-active .versus-team-player .arena-card .ac-picture{display:block!important;min-width:0!important;}
 body.arena-active .versus-team-player .arena-card .ac-maths{display:flex!important;min-width:0!important;gap:2px!important;}
 body.arena-active .versus-team-player .arena-card .ac-stat{
  grid-template-columns:17px minmax(0,1fr)!important;
  grid-template-rows:16px minmax(0,1fr)!important;
  gap:1px 4px!important;
  padding:3px 5px!important;
  min-height:0!important;
  align-items:center!important;
 }
 body.arena-active .versus-team-player .arena-card .ac-stat-name{
  font-size:clamp(10px,.68vw,13px)!important;
  line-height:1.15!important;
 }
 body.arena-active .versus-team-player .arena-card .ac-formula{
  font-size:clamp(13px,.84vw,17px)!important;
  line-height:1.24!important;
  padding:2px 0!important;
  justify-content:flex-start!important;
  text-align:left!important;
  align-items:center!important;
  gap:2px 5px!important;
 }
 body.arena-active .versus-team-player .arena-card .ac-expression{
  font-size:inherit!important;
  line-height:inherit!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
 }
 body.arena-active .versus-team-player .arena-card .ac-name{font-size:13px!important;padding:3px!important}
 body.arena-active .versus-team-player .arena-card .ac-meta{height:18px!important;min-height:18px!important}
 body.arena-active .versus-team-player .arena-card .ac-stat-icon .nr-attr-symbol{width:15px!important;height:15px!important}
 body.arena-active .versus-team-hint{height:14px!important;display:block!important;font-size:10px!important}
}
/* At intermediate widths the maths gets the full card instead of a miniature portrait. */
@media (min-width:750px) and (max-width:1179px){
 body.arena-active .versus-team-player .battle-choice-grid.versus-card-grid{gap:5px!important}
 body.arena-active .versus-team-player .arena-card .ac-main{grid-template-columns:1fr!important}
 body.arena-active .versus-team-player .arena-card .ac-picture{display:none!important}
 body.arena-active .versus-team-player .arena-card .ac-formula{font-size:clamp(11px,1.25vw,15px)!important;line-height:1.17!important}
 body.arena-active .versus-team-player .arena-card .ac-stat{grid-template-rows:14px minmax(0,1fr)!important;padding:2px 3px!important}
}
/* Keep vertical scrolling available on short or narrow displays; never crop questions. */
@media (max-width:749px){
 body.arena-active .versus-team-player .battle-choice-grid.versus-card-grid{min-height:0!important;height:auto!important;flex:1 1 auto!important}
 body.arena-active .versus-team-player .arena-card .ac-formula{font-size:clamp(10px,2.8vw,14px)!important;line-height:1.15!important}
}
