/* ---- Socials sidebar (Steam-style friends list) ---- */
:root { --social-w: min(88vw, 320px); }
#socialPanel { position: fixed; top: 0; right: 0; bottom: 0; width: var(--social-w); z-index: 58; display: flex; flex-direction: column; background: rgba(9,10,18,.97); border-left: 1px solid #1f2937; box-shadow: -18px 0 40px rgba(0,0,0,.55); transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
body.social-open #socialPanel { transform: none; visibility: visible; }
#socialToggle { position: fixed; right: 0; top: 38%; z-index: 58; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .7rem .4rem; border-radius: .9rem 0 0 .9rem; background: rgba(17,24,39,.95); border: 1px solid #374151; border-right: none; color: #e5e7eb; font-weight: 900; font-size: .7rem; letter-spacing: .08em; box-shadow: -6px 6px 20px rgba(0,0,0,.45); transition: right .28s ease, background .2s; }
#socialToggle:hover { background: #1f2937; color: #fbbf24; }
body.social-open #socialToggle { right: var(--social-w); }
.social-toggle-label { writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; }
.social-toggle-online { font-size: .62rem; color: #34d399; }
.social-toggle-badge { min-width: 1.1rem; padding: 0 .25rem; border-radius: 999px; background: #ef4444; color: #fff; font-size: .62rem; line-height: 1.1rem; text-align: center; }
@media (min-width: 1280px) { body.social-open { padding-right: calc(var(--social-w) + 1.5rem) !important; } }
.soc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; background: #030712; border-radius: .75rem; padding: .25rem; }
.soc-tabs button { font-size: .72rem; font-weight: 900; padding: .45rem .25rem; border-radius: .55rem; color: #9ca3af; }
.soc-tabs button.on { background: #1f2937; color: #fbbf24; }
.soc-group { font-size: .65rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: #6b7280; padding: .75rem .25rem .3rem; display: flex; justify-content: space-between; cursor: pointer; user-select: none; }
.soc-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: .7rem; cursor: pointer; }
.soc-row:hover, .soc-row.open { background: rgba(31,41,55,.7); }
.soc-ava { position: relative; width: 2.1rem; height: 2.1rem; flex: none; border-radius: .6rem; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .9rem; color: #fff; background: linear-gradient(145deg, #374151, #111827); border: 2px solid #4b5563; }
.soc-ava.st-online, .soc-ava.st-menu, .soc-ava.st-lobby { border-color: #38bdf8; }
.soc-ava.st-game, .soc-ava.st-watch { border-color: #34d399; }
.soc-ava.st-away { border-color: #f59e0b; }
.soc-ava.st-offline { opacity: .55; }
.soc-name { font-size: .82rem; font-weight: 800; color: #f3f4f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soc-sub { font-size: .68rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soc-sub.st-menu, .soc-sub.st-lobby { color: #38bdf8; } .soc-sub.st-game, .soc-sub.st-watch { color: #34d399; } .soc-sub.st-away { color: #f59e0b; } .soc-sub.st-offline { color: #6b7280; }
.soc-tag { font-size: .62rem; font-weight: 900; color: #fbbf24; margin-left: .25rem; }
.soc-btn { font-size: .68rem; font-weight: 900; padding: .35rem .6rem; border-radius: .55rem; background: #1f2937; border: 1px solid #374151; color: #e5e7eb; white-space: nowrap; }
.soc-btn:hover { border-color: #f59e0b; color: #fbbf24; }
.soc-btn.go { background: #047857; border-color: #059669; color: #fff; }
.soc-btn.warn { background: rgba(69,10,10,.6); border-color: #7f1d1d; color: #fca5a5; }
.soc-input { flex: 1; min-width: 0; background: #030712; border: 1px solid #374151; border-radius: .65rem; padding: .5rem .7rem; font-size: .78rem; font-weight: 700; color: #fff; }
.soc-input:focus { outline: none; border-color: #f59e0b; }
.soc-card { background: rgba(17,24,39,.85); border: 1px solid #1f2937; border-radius: .9rem; padding: .7rem; }
