#welcomeName{visibility:hidden;display:inline-block;vertical-align:middle;color:#f4f8f8!important}
#welcomeName.da-role-owner,#welcomeName.da-role-admin,#welcomeName.da-role-leader{color:#f4f8f8!important}
#welcomeName .da-welcome-greeting{color:#f4f8f8!important}
#welcomeName .da-welcome-user{color:#f4f8f8!important}
#welcomeName.da-role-owner .da-welcome-user{color:#00eaf4!important}
#welcomeName.da-role-admin .da-welcome-user{color:#ff9f43!important}
#welcomeName.da-role-leader .da-welcome-user{color:#4da3ff!important}
#welcomeRoleBadge{display:none!important}
#welcomeName.da-role-owner::after,#welcomeName.da-role-admin::after{display:inline-flex;align-items:center;margin-left:9px;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:950;line-height:1;letter-spacing:.1em;vertical-align:middle}
#welcomeName.da-role-owner::after{content:"OWNER";color:#00eaf4;border:1px solid rgba(0,234,244,.55);background:rgba(0,234,244,.1)}
#welcomeName.da-role-admin::after{content:"ADMIN";color:#ff9f43;border:1px solid rgba(255,159,67,.5);background:rgba(255,159,67,.1)}
.lobby-top>div:first-child>small{display:block;margin-bottom:10px;color:#00eaf4}
.lobby-top{align-items:flex-end;margin-bottom:12px}.lobby-top .top-actions{flex-wrap:wrap;justify-content:flex-end}.lobby-top .top-actions button{min-height:42px;padding:10px 14px}
.lobby-utility-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 20px;padding:9px 11px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(7,16,18,.72);backdrop-filter:blur(8px);box-shadow:0 10px 30px rgba(0,0,0,.16)}
.lobby-utility-group{display:flex;align-items:center;gap:9px;min-width:0}.lobby-utility-label{font-size:9px;font-weight:900;letter-spacing:.12em;color:var(--muted);white-space:nowrap}.lobby-utility-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.lobby-utility-actions .small-btn{padding:7px 10px;font-size:12px;border-radius:9px}.lobby-status-group{margin-left:auto}.lobby-status-group .availability{padding:7px 12px;font-size:12px;min-width:104px;border-radius:9px}
#formStatsBtn,#matchHistoryBtn{background:#0c1a1d;color:#d9e5e6;border-color:#27464a}#formStatsBtn:hover,#matchHistoryBtn:hover{border-color:var(--cyan);color:#00eaf4}
@media(max-width:760px){.lobby-top{align-items:flex-start;flex-direction:column}.lobby-top .top-actions{width:100%;justify-content:flex-start}.lobby-utility-row{align-items:flex-start;flex-direction:column}.lobby-status-group{margin-left:0}.lobby-utility-group{width:100%;justify-content:space-between}.lobby-utility-actions{justify-content:flex-end}}
@media(max-width:500px){.lobby-top .top-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.lobby-top .top-actions button{padding:9px 7px;font-size:12px;min-width:0}.lobby-utility-group{align-items:flex-start;flex-direction:column}.lobby-utility-actions{width:100%;justify-content:flex-start}.lobby-status-group .availability{width:100%}}


/* Mobile lobby compaction v1: applies only to the lobby, not match rooms. */
@media(max-width:700px){
  /* About 20% larger than the former 36vw lobby logo. */
  body.dartarena-lobby header .brand-logo{
    width:clamp(115px,43.2vw,220px);
  }
  #lobbyView .lobby-utility-row{
    align-items:stretch;
    padding:10px 11px;
    margin-bottom:16px;
    gap:10px;
  }
  #lobbyView .lobby-utility-group{
    gap:7px;
  }
  #lobbyView #lobbyStatsActions > .lobby-utility-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    justify-self:stretch;
    width:100%;
    min-width:0;
    min-height:46px;
    padding:6px 5px!important;
    font-size:12px;
    line-height:1.2;
    text-align:center;
    white-space:normal;
    overflow-wrap:break-word;
  }
  #lobbyView .lobby-status-group{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    width:100%;
    margin-left:0;
    padding-top:9px;
    border-top:1px solid rgba(255,255,255,.08);
    gap:10px;
  }
  #lobbyView .lobby-status-group .lobby-utility-label{
    flex:0 0 auto;
  }
  #lobbyView .lobby-status-group #availabilityBtn{
    flex:0 0 auto;
    width:clamp(140px,48%,190px);
    min-height:44px!important;
    padding:8px 12px!important;
    font-size:12px;
    line-height:1.15;
    white-space:nowrap;
  }
}
@media(max-width:380px){
  body.dartarena-lobby header .brand-logo{
    width:clamp(110px,39.6vw,151px);
  }
  #lobbyView #lobbyStatsActions > .lobby-utility-btn{
    min-height:44px;
  }
}

/* Mobile lobby: 2-by-2 top actions, shorter empty cards, no hidden prompt gap. */
#lobbyView #acceptedRoomPrompt[hidden]{display:none!important;margin:0!important}
#lobbyView #acceptedRoomPrompt:empty{display:none!important}
@media(max-width:760px){
  #lobbyView .lobby-top .top-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:8px;
  }
  #lobbyView .lobby-top .top-actions > button{
    width:100%;
    min-width:0;
    min-height:44px;
    padding:8px 8px!important;
    font-size:12px;
    line-height:1.2;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  #lobbyView .lobby-grid{
    gap:14px;
    align-items:start;
  }
  #lobbyView .lobby-grid > .card{
    min-width:0;
    padding:17px 18px;
  }
  #lobbyView .lobby-grid > .card .heading{
    margin-bottom:10px;
  }
  #lobbyView .lobby-grid > .card .heading h2{
    font-size:22px;
  }
  #lobbyView .lobby-grid > .card:first-child > .muted.compact{
    margin:0;
    font-size:12px;
    line-height:1.4;
  }
  #lobbyView #playerList,
  #lobbyView #challengeList,
  #lobbyView #sentChallengeList{
    margin-top:8px;
    gap:8px;
  }
  #lobbyView #playerList > p.muted,
  #lobbyView #challengeList > p.muted,
  #lobbyView #sentChallengeList > p.muted{
    margin:0;
    padding:3px 0 0;
    font-size:13px;
    line-height:1.45;
  }
  #lobbyView .lobby-grid > .card:nth-child(2) > small{
    display:block;
    margin-top:11px;
    font-size:10px;
  }
  #lobbyView #challengeList + div{
    margin-top:12px!important;
  }
  #lobbyView #challengeList + div > small{
    font-size:10px;
  }
}
