/* PokéBattle V13.22 — safe UI/account patch. Battle engine untouched. */

/* Rule lives inside Product and stays compact. */
#page-battle #pbLobbyStable46 .pb46Fact:nth-child(2){overflow:visible!important}
#page-battle #pbLobbyStable46 .pb46ModeInline{
  display:block!important;
  margin-top:7px!important;
  padding-top:6px!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
  background:transparent!important;
}
#page-battle #pbLobbyStable46 .pb46ModeInline>small{
  display:block!important;
  margin:0 0 5px!important;
  color:#7f8aa0!important;
  font-size:7px!important;
  font-weight:1000!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}
#page-battle #pbLobbyStable46 .pb46ModeInline .pb46ModeBtns{
  display:flex!important;
  gap:5px!important;
  flex-wrap:nowrap!important;
  margin:0!important;
}
#page-battle #pbLobbyStable46 .pb46ModeInline .pb46ModeBtns button{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  min-height:25px!important;
  padding:4px 6px!important;
  border-radius:7px!important;
  font-size:8px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* On phones/tablets: Trophy -> Music -> Balance -> Profile. Desktop keeps its existing text button. */
@media(max-width:1100px){
  .topright{display:flex!important;align-items:center!important;gap:6px!important}
  #leaderboardTopBtnV131029{order:1!important;display:grid!important}
  #musicBtn{
    order:2!important;
    display:grid!important;
    place-items:center!important;
    width:38px!important;height:38px!important;min-width:38px!important;
    padding:0!important;border-radius:10px!important;
    font-size:0!important;line-height:1!important;
    border:1px solid rgba(141,119,255,.3)!important;
    background:#111725!important;color:#fff!important;
  }
  #musicBtn::before{content:'🎵';font-size:17px!important;line-height:1!important}
  .topright .balance{order:3!important}
  #topAvatar{order:4!important}
}
