/* Community surfaces: profiles, friends, and cross-platform leaderboards. */
.community-panel{width:min(620px,94vw);max-height:min(90vh,860px);overflow:auto}
.community-player{display:flex;align-items:center;gap:10px;padding:10px 12px;margin:-3px 0 10px;border:1px solid rgba(93,225,255,.22);border-radius:10px;background:rgba(8,17,39,.78)}
.community-player>b{color:#dffaff;letter-spacing:.08em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.opt-in{margin-left:auto;display:flex;gap:7px;align-items:center;color:#aebdde;font:700 11px Orbitron,sans-serif;letter-spacing:.06em;cursor:pointer}
.opt-in input{width:18px;height:18px;accent-color:#3dff7a}
.lb-note{color:#9aabd0;font-size:14px;line-height:1.35;margin:5px auto 13px;max-width:540px}
.lb-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:8px 0}
.lb-tabs.compact{grid-template-columns:repeat(3,1fr);align-items:center}
.lb-tabs button{border:1px solid rgba(120,145,205,.35);border-radius:8px;background:rgba(7,12,29,.8);color:#8293ba;padding:9px 5px;font:700 11px Orbitron,sans-serif;letter-spacing:.06em;cursor:pointer}
.lb-tabs button.sel{color:#07101d;background:linear-gradient(135deg,#46e9ff,#93ffcc);border-color:transparent;box-shadow:0 0 15px rgba(70,233,255,.25)}
.lb-select{grid-column:1/-1;background:#091126;color:#dffaff;border:1px solid rgba(120,145,205,.4);border-radius:8px;padding:8px;font:700 12px Orbitron,sans-serif}
.leaderboard-rows{display:flex;flex-direction:column;gap:6px;min-height:150px;margin:12px 0}
.lb-row{display:grid;grid-template-columns:34px minmax(90px,1fr) auto 70px auto;align-items:center;gap:8px;padding:9px 11px;border-radius:8px;background:rgba(14,23,50,.78);border:1px solid rgba(121,148,211,.14);font-family:Rajdhani,sans-serif}
.lb-row.self{border-color:rgba(61,255,122,.55);box-shadow:inset 0 0 16px rgba(61,255,122,.08)}
.lb-rank{color:#7c8fb8;font:700 12px Orbitron,sans-serif}
.lb-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e7eeff}
.lb-row strong{color:#ffc93d;font:700 17px Orbitron,sans-serif}
.lb-badge{justify-self:end;padding:3px 5px;border-radius:4px;font:700 8px Orbitron,sans-serif;letter-spacing:.04em}
.lb-badge.local{color:#8fb6ff;background:rgba(70,120,255,.13)}
.lb-badge.casual{color:#ffd27d;background:rgba(255,172,48,.13)}
.lb-badge.verified{color:#75ffac;background:rgba(61,255,122,.13)}
.lb-report{border:0;background:transparent;color:#7183aa;font:700 8px Orbitron,sans-serif;cursor:pointer;padding:5px}.lb-report:hover,.lb-report:focus-visible{color:#ff8194}
.lb-empty{display:grid;place-items:center;min-height:145px;padding:20px;color:#8798bd;line-height:1.4;text-align:center}
.friends-box{margin:14px 0;border:1px solid rgba(169,123,255,.32);border-radius:10px;padding:10px;background:rgba(18,11,42,.42)}
.friends-box summary{cursor:pointer;color:#cbb4ff;font:700 12px Orbitron,sans-serif;letter-spacing:.1em}
.friend-code-line{display:flex;justify-content:space-between;gap:12px;margin:14px 0 9px;color:#8fa0c5;font:700 11px Orbitron,sans-serif}
.friend-code-line strong{color:#ffc93d;letter-spacing:.16em;user-select:all}
.friend-add{display:flex;gap:8px}.friend-add input,.profile-editor input{min-width:0;flex:1;background:#071022;color:#eef6ff;border:1px solid rgba(130,160,220,.4);border-radius:8px;padding:10px;font:700 14px Orbitron,sans-serif;text-transform:uppercase}
.friend-row{display:flex;justify-content:space-between;align-items:center;padding:8px 4px;border-bottom:1px solid rgba(130,150,200,.13);color:#dce9ff}
.friend-remove{border:0;background:transparent;color:#8fa0c5;font:700 9px Orbitron,sans-serif;cursor:pointer;padding:7px}
.friend-remove:hover,.friend-remove:focus-visible{color:#ff8194}
.ghostbtn.small{font-size:9px;margin-top:8px;padding:7px 10px}
.profile-list{display:flex;flex-direction:column;gap:7px;margin:12px 0}
.profile-row{display:grid;grid-template-columns:24px minmax(80px,1fr) auto;gap:8px;align-items:center;width:100%;padding:11px;border:1px solid rgba(120,145,205,.25);border-radius:9px;background:rgba(7,13,31,.8);color:#dbe8ff;text-align:left;cursor:pointer}
.profile-row.active{border-color:rgba(61,255,122,.55);background:rgba(22,53,47,.55)}
.profile-row span{color:#6dffab}.profile-row b{overflow:hidden;text-overflow:ellipsis}.profile-row small{font:700 8px Orbitron,sans-serif;color:#8395bb}
.profile-editor{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0;padding:13px;border:1px solid rgba(90,220,255,.2);border-radius:10px;background:rgba(6,20,40,.55)}
.profile-editor label{display:flex;align-items:center;gap:9px;flex:1 1 330px;color:#91a5cc;font:700 10px Orbitron,sans-serif}.profile-editor input{text-transform:none}
.profile-help{flex-basis:100%;color:#8192b5;font-size:12px;line-height:1.35}.profile-help code{color:#bfcef0}
.identity-buttons{display:flex;gap:8px;justify-content:center;margin:10px 0 16px;flex-wrap:wrap}
.platform-identity-status{margin:-7px auto 15px;max-width:470px;color:#8192b5;font-size:12px;line-height:1.4;text-align:center}.identity-buttons .ghostbtn:disabled{opacity:.5;cursor:wait}
.ghostbtn.danger{display:block;margin:0 auto 13px;color:#ff8ca0;border-color:rgba(255,92,122,.45)}
@media(max-width:520px){.community-panel{padding-inline:13px}.community-player{align-items:flex-start;flex-wrap:wrap}.opt-in{width:100%;margin-left:28px}.lb-row{grid-template-columns:27px minmax(70px,1fr) auto}.lb-badge{grid-column:2;justify-self:start}.lb-report{grid-column:3;grid-row:2}.profile-row{grid-template-columns:20px 1fr}.profile-row small{grid-column:2}.friend-code-line{flex-direction:column}.identity-buttons .ghostbtn{flex:1 1 45%}}
