/* TO THE BEATZ v23.18 - unified icon counters and slight height rebalance.
   Shared by Solo / Local 1vs1 / Online / Tutorial, never changes game logic. */
.battle-fullscreen-v11 .battle-top-v11{
  grid-template-columns:clamp(32px,8vw,40px) minmax(0,1fr) 18px minmax(0,1fr)!important;
  height:54px!important;min-height:54px!important;gap:5px!important;
}
.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11{
  min-height:50px!important;height:52px!important;max-height:52px!important;
  box-sizing:border-box!important;padding:4px!important;overflow:hidden!important;
}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  gap:4px!important;min-width:0!important;overflow:hidden!important;
}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident>b{
  line-height:1.15!important;margin:0!important;overflow:hidden!important;
  white-space:nowrap!important;text-overflow:ellipsis!important;
}
/* New graphic stats. The old conflicting CSS applied three-column grids, large B tags,
   flex-wrapping and pseudo separators. Suppress all of that in this specific HUD. */
.battle-fullscreen-v11 .battle-top-v11 .ttb2194-battle-counts.ttb2318-icons{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:flex-start!important;
  gap:clamp(2px,.8vw,4px)!important;width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;white-space:nowrap!important;
  overflow:visible!important;line-height:1!important;letter-spacing:0!important;
}
.battle-fullscreen-v11 .battle-top-v11 .ttb2194-battle-counts.ttb2318-icons em{
  display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;gap:2px!important;
  flex:0 0 auto!important;width:auto!important;min-width:0!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;background:none!important;color:#fff!important;
  font-size:9px!important;font-style:normal!important;line-height:1!important;
}
.battle-fullscreen-v11 .battle-top-v11 .ttb2194-battle-counts.ttb2318-icons em::before,
.battle-fullscreen-v11 .battle-top-v11 .ttb2194-battle-counts.ttb2318-icons em::after{
  content:none!important;display:none!important;
}
.battle-fullscreen-v11 .battle-top-v11 .ttb2194-battle-counts.ttb2318-icons em img{
  display:block!important;position:static!important;inset:auto!important;
  width:clamp(12px,3.2vw,14px)!important;height:clamp(12px,3.2vw,14px)!important;
  min-width:0!important;max-width:none!important;max-height:none!important;
  object-fit:contain!important;border-radius:0!important;filter:none!important;
  opacity:1!important;transform:none!important;pointer-events:none!important;
}
.battle-fullscreen-v11 .battle-top-v11 .ttb2194-battle-counts.ttb2318-icons em b{
  display:inline!important;width:auto!important;font-size:clamp(8px,2.25vw,10px)!important;
  font-weight:900!important;line-height:1!important;letter-spacing:0!important;
  color:#e8faff!important;white-space:nowrap!important;overflow:visible!important;
}
/* Keep the online profile compact: avatar is moved to its dedicated icon cell. */
#ttb-v200-battle-root .battle-player-v11 .ttb232-ident .v200-top-profile{
  display:block!important;width:100%!important;height:auto!important;min-width:0!important;
  text-align:left!important;overflow:hidden!important;
}
#ttb-v200-battle-root .battle-player-v11 .ttb232-ident .v200-top-profile>div:last-child{
  display:flex!important;flex-direction:column!important;gap:4px!important;
  min-width:0!important;width:100%!important;padding:0!important;
  align-items:flex-start!important;justify-content:center!important;
}
#ttb-v200-battle-root .battle-player-v11 .ttb232-ident .v200-top-profile>div:last-child>b{
  display:block!important;max-width:100%!important;line-height:1.12!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#ttb-v200-battle-root .battle-player-v11 .ttb232-icon .v200-mini-avatar{
  width:30px!important;height:30px!important;border:0!important;overflow:visible!important;
}
/* Online header and energy row get a little more vertical breathing room.
   The board receives the remaining height, shrinking slots by a few pixels. */
#ttb-v200-battle-root .v200-arena .v200-solo-parity{
  grid-template-rows:54px 28px 28px 24px minmax(0,1fr) 25px 32px 122px 44px 33px!important;
  gap:4px!important;
}
#ttb-v200-battle-root .v200-solo-parity>.battle-energy-v11.cpu{
  align-self:stretch!important;align-items:center!important;padding-top:5px!important;
}
/* Solo, local one-versus-one and tutorial use the same layout. */
.battle-fullscreen-v11:not(.v200-solo-parity){
  grid-template-rows:54px 28px 24px minmax(170px,1fr) 28px 34px 120px 44px!important;
  gap:4px!important;
}
.battle-fullscreen-v11:not(.v200-solo-parity)>.battle-energy-v11.cpu{
  align-self:stretch!important;padding-top:5px!important;
}
@media(max-height:700px){
 .battle-fullscreen-v11 .battle-top-v11{height:51px!important;min-height:51px!important}
 .battle-fullscreen-v11 .battle-top-v11 .battle-player-v11{height:49px!important;min-height:49px!important;max-height:49px!important}
 #ttb-v200-battle-root .v200-arena .v200-solo-parity{
   grid-template-rows:51px 25px 25px 22px minmax(0,1fr) 22px 28px 100px 40px 28px!important;
   gap:4px!important;
 }
 .battle-fullscreen-v11:not(.v200-solo-parity){
   grid-template-rows:51px 25px 22px minmax(120px,1fr) 23px 28px 100px 40px!important;
   gap:4px!important;
 }
}
@media(max-width:390px){
 .battle-fullscreen-v11 .battle-top-v11 .ttb2194-battle-counts.ttb2318-icons{gap:2px!important}
 .battle-fullscreen-v11 .battle-top-v11 .ttb2194-battle-counts.ttb2318-icons em{gap:1px!important}
 .battle-fullscreen-v11 .battle-top-v11 .ttb2194-battle-counts.ttb2318-icons em img{width:12px!important;height:12px!important}
 .battle-fullscreen-v11 .battle-top-v11 .ttb2194-battle-counts.ttb2318-icons em b{font-size:8px!important}
}
