.social-nav-count{position:absolute;right:-1px;top:-2px;min-width:16px;height:16px;padding:0 3px;border:2px solid white;border-radius:10px;background:#ed6475;color:white;font:700 9px/12px system-ui;text-align:center}
.social-nav-count[hidden]{display:none}
.social-window,.social-profile-card{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#203148;font-size:14px;line-height:1.5;box-sizing:border-box}
.social-window *,.social-profile-card *{box-sizing:border-box}
.social-window button,.social-profile-card button,.social-window input,.social-profile-card input,.social-profile-card textarea{font:inherit}
.social-window button,.social-profile-card button{cursor:pointer}
.social-window button:disabled,.social-profile-card button:disabled{opacity:.5;cursor:default}
.social-window button:focus-visible,.social-profile-card button:focus-visible{outline:2px solid #0db4cc;outline-offset:3px}
.social-window{position:fixed;z-index:2200;right:28px;top:110px;width:360px;height:600px;min-width:300px;min-height:340px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);display:flex;flex-direction:column;border:1px solid #d8e6ec;border-radius:17px;background:#fff;box-shadow:0 22px 70px #24456426,0 3px 12px #2445640d;overflow:hidden;resize:both}
.social-window[hidden],.social-profile-host[hidden]{display:none!important}
.social-window.is-minimized{height:65px!important;min-height:65px;resize:none}
.social-window.is-minimized>:not(.social-window-head){display:none}
.social-window-head{flex:none;display:flex;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(115deg,#edfaff,#f8fcff);border-bottom:1px solid #e5eef3;cursor:grab;touch-action:none;user-select:none}
.social-window-head:active{cursor:grabbing}
.social-window-head .social-avatar{width:36px;height:36px;border-radius:11px}
.social-window-identity{min-width:0;flex:1}
.social-window-identity button{padding:0;border:0;background:none;font-weight:750;color:#21344a;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.social-window-identity small{display:block;font-size:11px;color:#14a790}
.social-window-controls{display:flex;gap:2px}
.social-icon-button{height:27px;width:27px;display:grid;place-items:center;padding:0;background:transparent;border:0;border-radius:7px;color:#8092a5;font-size:19px;line-height:1}
.social-icon-button:hover{background:#e5f1f6;color:#213e55}
.social-window-tabs{display:flex;gap:4px;padding:12px 16px 9px;flex:none;border-bottom:1px solid #edf2f6}
.social-window-tabs button{padding:6px 11px;border:0;border-radius:8px;background:none;color:#8291a3;font-size:12px;font-weight:650}
.social-window-tabs button.is-active{background:#e9f8fc;color:#00a3ba}
.social-window-toolbar{padding:12px 16px 4px;display:flex;gap:8px;flex:none}
.social-window-toolbar input{width:100%;min-width:0;border:1px solid #e2eaf0;background:#f8fafc;border-radius:9px;padding:8px 10px;color:#203148;font-size:12px;outline:none}
.social-window-toolbar input:focus{border-color:#2ac4d6;box-shadow:0 0 0 3px #15bdd011}
.social-add-button{width:34px;height:34px;border:1px solid #d6edf4;border-radius:9px;flex:none;background:#effafd;color:#08a6bf;font-size:23px;line-height:1}
.social-window-body{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:8px 9px 16px;scrollbar-width:thin;scrollbar-color:#dce6ed transparent}
.social-group-label{padding:12px 10px 5px;display:flex;align-items:center;gap:8px;color:#93a0af;font-size:11px;font-weight:650}
.social-group-label:after{content:"";height:1px;background:#edf2f6;flex:1}
.social-friend-row{display:flex;align-items:center;gap:11px;padding:10px;border-radius:10px}
.social-friend-row:hover{background:#f3f9fc}
.social-avatar{display:grid;place-items:center;position:relative;width:42px;height:42px;flex:none;background:#e7f6fc;color:#15a9c3;border:1px solid #d4edf7;border-radius:12px;font-size:22px;font-weight:800;line-height:1}
.social-avatar[data-avatar=crosshair]{background:linear-gradient(145deg,#10b9cf,#0d8fab);border-color:#0d9eb7;color:#fff;font-size:0;box-shadow:0 4px 10px #0ca2b533}
.social-avatar[data-avatar=crosshair]::before{content:"";width:43%;height:43%;border:2px solid currentColor;border-radius:50%;position:absolute}
.social-avatar[data-avatar=crosshair]::after{content:"";width:62%;height:62%;position:absolute;background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 100% no-repeat}
.social-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.social-avatar.has-image::before,.social-avatar.has-image::after,.social-avatar.has-image .social-avatar-fallback{display:none}
.social-avatar[data-avatar=bolt],.social-avatar[data-avatar=flame]{background:#fff3e8;color:#ee9d53;border-color:#fbe3c9}
.social-avatar[data-avatar=moon],.social-avatar[data-avatar=star]{background:#f2edff;color:#9b81e0;border-color:#e9dfff}
.social-avatar[data-avatar=leaf],.social-avatar[data-avatar=mountain]{background:#edf8f1;color:#4bac80;border-color:#dbefe3}
.social-status-dot{position:absolute;bottom:-3px;right:-3px;width:11px;height:11px;border:2px solid white;border-radius:50%;background:#adb9c5}
.social-status-dot.online{background:#13b5d0}.social-status-dot.playing{background:#22bf8a}
.social-friend-copy{flex:1;min-width:0}
.social-player-button{display:block;max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;background:none;border:0;padding:0;color:inherit;font-weight:700;font-size:13px;text-align:left}
.social-friend-copy small{display:block;font-size:11px;line-height:1.6;color:#8d9dad;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.social-friend-row.is-playing .social-friend-copy small{color:#17a777}.social-friend-row.is-online .social-friend-copy small{color:#16a8c1}
.social-friend-rating{font-size:11px;color:#91a0b1;background:#f5f8fb;border-radius:6px;padding:3px 6px;font-variant-numeric:tabular-nums}
.social-row-actions{display:flex;gap:4px;flex:none}
.social-row-actions button{font-size:11px;border:0;border-radius:7px;padding:5px 8px;color:#00a6be;background:#eaf9fd}
.social-row-actions .social-muted{background:#f2f5f8;color:#8492a3}
.social-window-footer{flex:none;padding:10px 18px;border-top:1px solid #e9f0f5;background:#fbfdff;color:#8b9daf;font-size:10px;display:flex;align-items:center;justify-content:space-between;min-height:35px}
.social-empty{padding:35px 16px;text-align:center;color:#94a3b4;font-size:12px}
.social-empty strong{display:block;margin-bottom:7px;font-size:14px;color:#60758b}
.social-primary,.social-secondary,.social-danger{padding:9px 15px;border-radius:9px;border:1px solid transparent;font-size:12px!important;font-weight:650;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.social-primary{background:#13b8cf;color:white}.social-primary:hover{background:#09aac2}
.social-secondary{background:white;color:#5d7188;border-color:#dfe8f0}.social-secondary:hover{background:#f5f9fc}
.social-danger{background:#fff6f6;color:#db6b7b;border-color:#f4e3e7}
.social-search-results{padding:3px 7px 8px;border-bottom:1px solid #edf2f6;margin-bottom:8px}
.social-context-menu{position:fixed;z-index:5200;min-width:170px;padding:6px;border:1px solid #dbe8ef;border-radius:11px;background:#fff;box-shadow:0 16px 45px #24456426}.social-context-menu button{display:block;width:100%;padding:9px 11px;border:0;border-radius:7px;background:transparent;color:#40566d;text-align:left;font-size:12px}.social-context-menu button:hover{background:#effafd;color:#009db6}.social-context-menu button.social-context-danger:hover{background:#fff4f5;color:#d86878}
.social-duel-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center;margin:3px 4px 8px;padding:10px;border:1px solid #dcecf1;border-radius:10px;background:#f8fcfd}.social-duel-row strong{font-size:12px}.social-duel-row small{grid-column:1/-1;color:#8a9aaa;font-size:10px}.social-duel-row span{grid-column:2;grid-row:1;display:flex;gap:4px}.social-duel-row button{border:0;border-radius:6px;padding:5px 7px;background:#e6f9fc;color:#079fb7;font-size:10px}.social-duel-row button+button{background:#f2f5f7;color:#82909c}
.social-duel-dialog{width:min(390px,100%);padding:28px;background:#fff;border:1px solid #dbe8ef;border-radius:18px;box-shadow:0 22px 70px #24456426;font:13px/1.5 system-ui;color:#243b50}.social-duel-dialog h3{margin:0;font-size:21px}.social-duel-dialog p{color:#8394a5;margin:8px 0 20px}.social-duel-dialog label{display:grid;gap:6px;margin:14px 0;color:#657b8f}.social-duel-dialog select{padding:10px;border:1px solid #dfe9ef;border-radius:9px;background:#fff;color:#243b50;font:inherit}.social-duel-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.social-duel-dialog small{color:#8b9bac}
.social-toast{position:fixed;z-index:7000;bottom:26px;left:50%;transform:translateX(-50%);padding:11px 22px;background:#243a50;color:white;border-radius:12px;font:13px/1.5 system-ui;box-shadow:0 8px 28px #23476526;max-width:calc(100vw - 32px);text-align:center}
.social-profile-host{position:fixed;inset:0;z-index:2400;display:grid;place-items:center;padding:32px;background:#233c5466;backdrop-filter:blur(7px)}
.social-profile-card{width:900px;max-width:100%;max-height:calc(100dvh - 64px);overflow:auto;background:white;border-radius:24px;border:1px solid #e0eaf1;box-shadow:0 25px 100px #15345233;scrollbar-width:thin;position:relative;overscroll-behavior:contain}
.social-profile-cover{height:156px;padding:20px 24px;background:radial-gradient(ellipse at 80% 15%,#ffffff99,transparent 48%),linear-gradient(125deg,#d3f4fc,#e8f2ff 65%,#d7e7ff);position:relative;overflow:hidden}
.social-profile-cover:before{content:"";position:absolute;width:400px;height:400px;right:5%;top:-220px;border:1px solid #ffffffaa;border-radius:50%;box-shadow:0 0 0 35px #ffffff22,0 0 0 70px #ffffff22;pointer-events:none}
.social-profile-cover[data-cover=ocean]{background:linear-gradient(125deg,#bedaf7,#dcf0fa,#bbefec)}
.social-profile-cover[data-cover=mint]{background:linear-gradient(125deg,#cef0df,#edfaf0,#d1f2ed)}
.social-profile-cover[data-cover=violet]{background:linear-gradient(125deg,#ded9fb,#f0edff,#dce7ff)}
.social-profile-cover[data-cover=sunset]{background:linear-gradient(125deg,#ffe1c8,#fff0e6,#f4d9e9)}
.social-profile-cover[data-cover=slate]{background:linear-gradient(125deg,#d1dde8,#e9eff4,#bdcede)}
.social-profile-cover-label{position:relative;color:#5f869f;font-size:10px;letter-spacing:3px;font-weight:750}
.social-profile-close{position:absolute;right:18px;top:16px;width:32px;height:32px;background:#ffffffb0;border:0;border-radius:10px;color:#71899e;font-size:23px;z-index:1}
.social-profile-identity{padding:0 32px 24px;display:flex;align-items:flex-start;gap:20px;position:relative;margin-top:-36px}
.social-profile-identity>.social-avatar{width:88px;height:88px;border:5px solid white;border-radius:24px;font-size:42px;box-shadow:0 4px 14px #25486212}
.social-profile-identity-copy{padding-top:45px;flex:1;min-width:0}
.social-profile-identity h2{font-size:25px;line-height:1.25;margin:0 0 7px;font-weight:800;letter-spacing:-.5px;overflow-wrap:anywhere}
.social-profile-meta{display:flex;gap:14px;flex-wrap:wrap;color:#91a0af;font-size:11px}
.social-profile-identity p{margin:12px 0 0;color:#6d8093;font-size:13px;overflow-wrap:anywhere}
.social-profile-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:54px;justify-content:flex-end;max-width:280px}
.social-profile-main{padding:0 32px 30px}
.social-profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:4px 0 28px}
.social-profile-stat{background:#f7fafc;border:1px solid #e8eff4;border-radius:12px;padding:16px 18px}
.social-profile-stat small{color:#8f9fb0;font-size:11px;display:block;margin-bottom:7px}
.social-profile-stat strong{font-size:24px;font-weight:800;letter-spacing:-.4px;font-variant-numeric:tabular-nums}
.social-profile-stat em{font-size:10px;display:block;margin-top:7px;color:#8fa0b0;font-style:normal}
.social-profile-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}
.social-profile-section-head h3{font-size:15px;margin:0;font-weight:750}
.social-duration-switch{display:flex;background:#f1f6f9;border-radius:9px;padding:3px;gap:3px}
.social-duration-switch button{border:0;background:none;color:#8494a5;padding:5px 12px;border-radius:6px;font-size:11px}
.social-duration-switch .is-active{background:white;color:#0ca6be;box-shadow:0 2px 5px #2b486b0d}
.social-profile-scores{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:26px}
.social-score-card{padding:15px;border:1px solid #e4edf4;border-radius:12px}
.social-score-card h4{font-size:12px;margin:0 0 10px;color:#647a90;font-weight:650}
.social-score-card strong{font-size:21px;display:block;font-weight:800;line-height:1.3}
.social-score-card small{font-size:10px;display:block;color:#9aa8b5;margin-top:7px}
.social-score-card button{margin-top:10px;background:#effafd;border:0;border-radius:6px;color:#06a5bb;padding:4px 8px;font-size:10px}
.social-profile-cosmetics{border-radius:12px;padding:17px 20px;background:#f8fbfd;border:1px solid #e6eef4;display:flex;gap:25px;align-items:center;font-size:12px;flex-wrap:wrap}
.social-profile-private-note{margin-top:4px;padding:14px 16px;border:1px dashed #dfe9ef;border-radius:10px;background:#fbfdfe;color:#97a6b2;font-size:11px}
.social-profile-cosmetics small{display:block;color:#98a8b6;font-size:10px;margin-bottom:5px}
.social-profile-cosmetics em{display:block;margin-top:7px;font-size:11px;font-style:normal;color:#70859a}
.social-profile-edit{padding:25px 32px 32px}
.social-profile-edit h3{margin-top:0;font-size:19px}
.social-profile-edit label{display:block;color:#70859a;font-size:12px;margin:20px 0 9px}
.social-avatar-picker{display:flex;gap:10px;flex-wrap:wrap;align-items:stretch}
.social-avatar-picker button{width:54px;height:54px;padding:4px;border-radius:14px;border:2px solid transparent;background:#fff}
.social-avatar-picker button .social-avatar{width:42px;height:42px;border:0}
.social-avatar-picker button.is-active{border-color:#12bad0;background:#effbfd;box-shadow:0 0 0 3px #13b8cf18}
.social-avatar-upload{width:158px;height:54px;margin:0!important;padding:6px 10px 6px 6px;display:flex!important;align-items:center;gap:8px;border:2px dashed #b9dce6;border-radius:14px;background:#f7fcfd;color:#557086;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.social-avatar-upload:hover,.social-avatar-upload.is-active{border-color:#12bad0;background:#effbfd;box-shadow:0 0 0 3px #13b8cf18}
.social-avatar-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.social-avatar-custom-preview{width:40px!important;height:40px!important;border-radius:10px!important;flex:none!important}
.social-avatar-upload-plus{display:grid;place-items:center;width:100%;height:100%;font-size:25px;font-weight:300;color:#10a7bd}
.social-avatar-upload-copy{display:grid;gap:1px;min-width:0}
.social-avatar-upload-copy strong{font-size:12px;color:#36556b}
.social-avatar-upload-copy small{font-size:10px;color:#8ea4b3;white-space:nowrap}
.social-avatar-help{display:block;margin-top:8px;color:#91a0af;font-size:10px}
.social-cover-picker{display:flex;gap:9px;flex-wrap:wrap}
.social-cover-picker button{width:65px;height:36px;border:2px solid transparent;border-radius:8px;padding:0}
.social-cover-picker button.is-active{border-color:#12bad0;box-shadow:0 0 0 3px #13b8cf11}
.social-profile-edit textarea{width:100%;resize:vertical;min-height:90px;border:1px solid #dfe9f1;border-radius:10px;padding:12px;color:#34485e;outline-color:#13b8cf;background:#fafcfe}.social-avatar-upload{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.social-avatar-upload input{max-width:240px;font-size:11px}.social-avatar-upload small{color:#91a0af;font-size:10px}
.social-profile-edit footer{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
.social-profile-error{padding:65px 28px;text-align:center;color:#8799aa}
.social-profile-error button{margin-top:20px}
.social-player-link{color:inherit;text-decoration:none;border:0;background:none;padding:0;font:inherit;cursor:pointer}
.social-player-link:hover{text-decoration:underline;text-decoration-color:#13b8cf;text-underline-offset:3px}
body.social-profile-open{overflow:hidden}
body[data-player-page] .social-profile-host{position:relative;inset:auto;background:transparent;backdrop-filter:none;padding:40px 24px;min-height:80vh}
body[data-player-page] .social-profile-card{max-height:none;box-shadow:0 12px 40px #2445640b}
body[data-player-page] .profile-landing{display:none}
@media(max-width:620px){
 .social-window{width:calc(100vw - 24px);height:580px;top:12px;right:12px;resize:none}
 .social-profile-host{padding:12px}.social-profile-card{max-height:calc(100dvh - 24px);border-radius:17px}
 .social-profile-cover{height:125px}.social-profile-identity{padding:0 20px 22px;gap:13px;flex-wrap:wrap}
 .social-profile-identity>.social-avatar{width:74px;height:74px;font-size:32px}.social-profile-identity-copy{padding-top:41px}
 .social-profile-identity h2{font-size:22px}.social-profile-actions{padding-top:3px;width:100%;max-width:none;justify-content:flex-start}
 .social-profile-main{padding:0 20px 22px}.social-profile-stats{grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:23px}
 .social-profile-stat{padding:13px 15px}.social-profile-scores{grid-template-columns:repeat(2,1fr);gap:9px}
 .social-profile-edit{padding:20px}.social-profile-cosmetics{gap:15px;padding:15px}
}
@media(prefers-reduced-motion:reduce){.social-window,.social-profile-card{scroll-behavior:auto}}
