/* Scoped header profile layout; verify against current production before publishing. */
html body header .header-player-panel{
  grid-template-columns:108px minmax(0,1fr) 126px!important;
  column-gap:12px!important;
}
html body header .header-player-avatar{
  width:108px!important;height:138px!important;
  min-width:108px!important;align-self:center!important;
}
html body header .header-player-avatar img{
  width:100%!important;height:100%!important;
  object-fit:cover!important;display:block;
}
html body header .header-trophy-counts{
  width:126px!important;justify-self:end!important;
}
@media(max-width:700px){
  html body header .header-player-panel{
    grid-template-columns:90px minmax(0,1fr) 80px!important;
    column-gap:10px!important;
  }
  html body header .header-player-avatar{
    width:90px!important;min-width:90px!important;height:116px!important;
  }
  html body header .header-trophy-counts{width:80px!important}
}
/* Append after the current profile tools CSS when AWS is available. */
html body header .header-trophy-counts .header-trophy-counter{
  grid-template-columns:24px 20px minmax(0,1fr)!important;
  gap:4px!important;
  padding:5px 8px!important;
  min-height:36px!important;
  align-items:center!important;
}
html body header .header-trophy-counts .header-trophy-counter>svg,
html body header .header-trophy-counts .header-trophy-counter>img{
  width:23px!important;height:23px!important;
  object-fit:contain;justify-self:center;
}
html body header .header-trophy-counts .header-participation-count small{
  font-size:6.2px!important;letter-spacing:0!important;
  line-height:1.25!important;word-break:normal!important;
  overflow-wrap:normal!important;text-align:left!important;
}
@media(max-width:700px){
  html body header .header-trophy-counts .header-trophy-counter{
    grid-template-columns:20px 20px!important;padding:4px!important;
  }
}

/* Enlarge squads and attached muzzle flashes together. */
.elb-cover-left{transform:scale(1.23);transform-origin:right bottom}.elb-cover-right{transform:scale(1.23);transform-origin:left bottom}

/* Fit squads horizontally between page edge and central logo; retain arena height. */
.elb-cover-group{transform:none!important;width:calc(50% - 175px)!important}
.elb-cover-group>img{object-fit:fill!important;object-position:center bottom}
@media(max-width:1000px){.elb-cover-group{width:calc(50% - 140px)!important}}

/* Give the squads more horizontal room, with no vertical enlargement. */
html body header:has(>.elb-battle-5v5)>.brand{width:300px!important}
.elb-cover-group{width:calc(50% - 150px)!important;overflow:hidden}
@media(max-width:1000px){html body header:has(>.elb-battle-5v5)>.brand{width:250px!important}.elb-cover-group{width:calc(50% - 125px)!important}}
