.social-launch { display: none; flex: 0 0 36px; width: 36px; height: 36px; padding: 7px; border: 1px solid #49748a; background: #102129; color: #b2e6f4; border-radius: 4px; }
.social-launch svg { width: 20px; height: 20px; }
.social-enabled .social-launch { display: inline-flex; }
.social-player-name { display: inline; color: inherit; border: 0; background: none; padding: 2px 0; font: inherit; text-align: left; overflow-wrap: anywhere; }
.social-player-name:hover { text-decoration: underline; }
.social-presence { display: inline-block; width: 8px; height: 8px; margin-left: 7px; border: 1px solid #80919a; border-radius: 50%; vertical-align: middle; }
.social-presence.is-online { background: #64d78e; border-color: #64d78e; }
.social-echo { color: #c4a86a; font-size: 10px; margin-left: 5px; }
.social-dialog { box-sizing: border-box; width: min(480px,calc(100% - 24px)); max-height: min(720px,calc(100dvh - 24px)); padding: 0; border: 1px solid #4689a0; border-radius: 8px; background: #08131a; color: #d5edf4; }
.social-dialog::backdrop { background: #0009; }
.social-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #33515d; }
.social-dialog h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.social-dialog h3 { font-size: 18px; }
.social-dialog header button { flex: 0 0 36px; height: 36px; font: 24px Arial,sans-serif; }
.social-body { padding: 16px; }
.social-dialog button,.social-notice button { min-height: 40px; padding: 8px 12px; font-size: 14px; color: #e2f2f5; background: #163342; border: 1px solid #49748a; border-radius: 4px; white-space: normal; overflow-wrap: anywhere; }
.social-dialog button:disabled { opacity: .5; }
.social-dialog :focus-visible,.social-notice :focus-visible { outline: 2px solid #efc965; outline-offset: 3px; }
.social-profile-head { display: flex; align-items: center; gap: 16px; }
.social-avatar { position: relative; display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; color: #b2e6f4; background: #163342; border-radius: 4px; font-size: 28px; }
.social-avatar img { position: absolute; inset: 0; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.social-dialog p { font-size: 14px; line-height: 1.4; color: #a8c7d2; }
.social-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 16px 0; border-block: 1px solid #33515d; }
.social-stats dt { font-size: 13px; }.social-stats dd { margin: 6px 0 0; font-size: 22px; color: #edce78; }
.social-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.social-dialog details { border-top: 1px solid #33515d; padding-top: 16px; margin-top: 20px; }
.social-dialog summary { cursor: pointer; }
.social-dialog label { display: block; margin: 14px 0; font-size: 14px; }
.social-dialog select,.social-dialog textarea { display: block; box-sizing: border-box; width: 100%; padding: 10px; margin-top: 8px; border: 1px solid #49748a; border-radius: 4px; color: #e2f2f5; background: #040e13; font: 16px Arial,sans-serif; }
.social-friends { padding: 0; list-style: none; }
.social-friends li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #33515d; }
.social-friends small { color: #9fbcc7; }
.social-notice { box-sizing: border-box; padding: 16px; overflow: auto; overflow-wrap: anywhere; }
.social-notice[hidden] { display: none; }.social-notice p { font-size: 14px; }
.social-header-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.social-invitation-trigger { position: relative; width: 36px; min-width: 36px; padding: 7px !important; }
.social-invitation-trigger svg { display: block; width: 20px; height: 20px; }
.social-invitation-trigger:disabled { opacity: .45; }
.social-invitation-trigger.has-invitation { color: #ffe07b; border-color: #e3b546; background: #3a3016; }
.social-invitation-trigger.has-invitation::after { content: ''; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #ffe07b; }
.social-invitation-dialog { width: min(400px,calc(100% - 24px)); }
.social-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.social-dialog header { flex: 0 0 auto; }
.social-body { overflow: auto; min-height: 0; }
.social-friends [data-social-state] { font-size: 13px; color: #9fbcc7; }
.social-error { color: #edba7b !important; overflow-wrap: anywhere; }
.social-public-id { display:flex; align-items:center; gap:8px; margin-top:16px; }
.social-public-id code { min-width:0; overflow-wrap:anywhere; font-size:13px; user-select:text; }
.social-dialog input[type=search], .social-dialog input[readonly] { box-sizing:border-box; width:100%; min-width:0; padding:10px; color:#e2f2f5; background:#040e13; border:1px solid #49748a; font:16px Arial,sans-serif; user-select:text; }
.discovery-player { display:flex; align-items:center; gap:12px; width:100%; text-align:left; }
.discovery-player>span:last-child { min-width:0; }
.discovery-player small, .discovery-player strong { display:block; overflow-wrap:anywhere; }
.discovery-player small { font-size:12px; margin-top:4px; }
.discovery-results .social-avatar,.discovery-results .social-avatar img { width:40px; height:40px; flex-basis:40px; }
.social-battle-context:not([hidden]) { display:flex; justify-content:space-between; align-items:center; gap:8px; flex:0 0 auto; padding:8px 16px; border-bottom:1px solid #49748a; font-size:13px; }
.hud-profile-button { appearance:none; width:100%; padding:0; border:0; border-radius:0; background:none; color:inherit; font:inherit; text-align:inherit; }
.hud-profile-button:focus-visible { outline:2px solid #efc965; outline-offset:2px; }
.league-toolbar,.league-modes,.league-filters,.league-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; }
.league-toolbar { justify-content:space-between; }
.league-filters label { flex:1 1 110px; min-width:0; font-size:13px; }
.league-filters select { width:100%; min-width:0; display:block; margin-top:6px; padding:10px; background:#08131a; color:#d5edf4; border:1px solid #49748a; }
[data-league-browser] button { min-height:36px; padding:6px 10px; background:#163342; color:#d5edf4; border:1px solid #49748a; border-radius:4px; }
.league-modes button[aria-pressed=true] { border-color:#edce78; color:#edce78; }
.league-pagination { justify-content:center; }
.league-player { display:inline-flex; align-items:center; gap:8px; max-width:100%; }
.league-player img { width:28px; height:28px; flex:0 0 28px; object-fit:cover; border-radius:4px; }
.league-player span { overflow-wrap:anywhere; min-width:0; }
.league-table .is-focused-player { outline:2px solid #edce78; outline-offset:-2px; }
.league-table .social-player-name { border:0; background:none; padding:0; font:inherit; text-align:left; }
.league-table [role=columnheader] { min-width:0; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .league-table .rating-table-head,.league-table .rating-table-row { grid-template-columns:34px minmax(0,1fr) 28px 28px 34px 40px; gap:4px; padding-inline:4px; }
  .league-table .rating-table-head { font-size:11px; line-height:1.2; }
  .league-table .rating-table-row { font-size:13px; }
  .league-player { gap:4px; }
  .league-player img { width:22px; height:22px; flex-basis:22px; }
}
@media(max-width:600px) { .social-dialog { margin: auto auto 12px; } }
@media(max-width:420px) {
  .social-enabled .command-player-copy { display: none; }
  .social-enabled .command-player { min-width: 40px; max-width: 40px; width: 40px; padding: 4px; }
}
