/* GGHQ - (c) 2026 Npro. All rights reserved. */
:root {
  --bg: #0d0d10; --bg2: #121215; --panel: #18181c; --panel2: #1f1f24; --panel3: #2a2a31;
  --line: #34343c; --text: #f2f2f4; --muted: #a6a6b0; --dim: #74747e;
  --purple: #8b5cf6; --cyan: #2ee6c5; --pink: #f472b6; --green: #34d399; --red: #f87171; --yellow: #facc15;
  --grad: linear-gradient(120deg, #a855f7 0%, #3b82f6 40%, #14d8c4 75%, #7ee34b 100%);
  --rgb: linear-gradient(90deg, #a855f7, #3b82f6, #14e0c8, #5ee35b, #f5d90a, #ff8a1f);
  --glow: 0 0 0 1px rgba(139,92,246,.35), 0 6px 24px rgba(139,92,246,.25);
  --r: 14px; --rail: 280px; --members: 250px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); }
body { overflow: hidden; }
a { color: var(--cyan); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,.2); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--purple); padding: 0; }
input[type=range] { padding: 0; accent-color: var(--cyan); background: none; border: 0; box-shadow: none; }
input[type=color] { padding: 2px; width: 44px; height: 36px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.screen { position: fixed; inset: 0; }
.center-screen { display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto;
  background: radial-gradient(900px 500px at 20% -10%, rgba(139,92,246,.25), transparent 60%), radial-gradient(700px 500px at 110% 110%, rgba(46,230,197,.18), transparent 60%), var(--bg); }

/* buttons */
.primary, .secondary, .danger, .ghost { border-radius: 12px; padding: 11px 18px; font-weight: 650; transition: transform .08s, filter .15s; }
.primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.primary:hover { filter: brightness(1.1); }
.primary:active, .secondary:active, .danger:active { transform: scale(.97); }
.secondary { background: var(--panel3); border: 1px solid var(--line); }
.secondary:hover { border-color: var(--purple); }
.danger { background: rgba(248,113,113,.15); color: #fca5a5; border: 1px solid rgba(248,113,113,.4); }
.ghost { color: var(--muted); }
.ghost:hover { color: var(--text); }
.primary.small, .secondary.small, .danger.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.wide { width: 100%; }
button:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-btn:hover { background: var(--panel3); }
.icon-btn.small { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
.icon-btn.on { background: rgba(46,230,197,.15); box-shadow: inset 0 0 0 1px rgba(46,230,197,.5); }
.chip-btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.chip-btn:hover { border-color: var(--purple); }
.badge-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rail-head .badge-count { position: static; margin-left: 6px; }

/* logo */
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .3px; }
.logo .px { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 15px; box-shadow: var(--glow); font-style: italic; }
.logo .word { font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.big { justify-content: center; margin: 4px 0 6px; }
.logo.big .px { width: 48px; height: 48px; font-size: 21px; border-radius: 14px; }
.logo.big .word { font-size: 32px; }

/* join */
.join-card { width: 100%; max-width: 400px; background: rgba(24,24,28,.85); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.join-card h2 { text-align: center; }
.mascot-wrap { width: 120px; height: 120px; margin: -10px auto 0; }
.tagline { text-align: center; color: var(--muted); margin: 0 0 18px; }
.field-label { display: block; font-weight: 600; margin: 8px 0 6px; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 2px 10px; min-height: 16px; }
.hint.bad { color: var(--red); } .hint.good { color: var(--green); }
.check { display: flex; align-items: center; gap: 10px; margin: 10px 0; cursor: pointer; }
.check.small { font-size: 13px; color: var(--muted); }
.join-card .primary { margin-top: 10px; }
.join-card .ghost { margin-top: 6px; }
.fine { text-align: center; font-size: 12px; color: var(--dim); margin: 14px 0 0; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; margin: 8px 0; }
.note.owner { border-color: rgba(250,204,21,.5); background: rgba(250,204,21,.08); }
.note.warn { border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.08); }
.big-emoji { font-size: 54px; text-align: center; }

/* layout */
#appScreen { display: flex; }
.rail { width: var(--rail); flex-shrink: 0; background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 30; }
.rail-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.rail-scroll { flex: 1; overflow-y: auto; padding: 4px 10px 10px; }
.rail-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 2px 4px; }
.rail-head { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); font-weight: 700; margin: 16px 6px 6px; display: flex; align-items: center; }
.nav-item, .room-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; position: relative; color: var(--text); text-decoration: none; }
.nav-item:hover, .room-item:hover { background: var(--panel); }
.nav-item.on, .room-item.on { background: var(--panel2); box-shadow: inset 3px 0 0 var(--purple); }
.ni-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--panel2); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.room-item .ri-txt { flex: 1; min-width: 0; }
.room-item .ri-txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 14px; }
.room-item .ri-txt span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-item.unread .ri-txt b { color: #fff; font-weight: 800; }
.room-item .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.room-item .cnt.mention { background: var(--pink); }
.ri-flags { display: flex; gap: 4px; font-size: 12px; }
.live-pill { background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; letter-spacing: .5px; }
.call-pill { background: rgba(52,211,153,.18); color: var(--green); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.empty-small { color: var(--dim); font-size: 13px; padding: 6px 10px; }
.me-btn { display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg); text-align: left; }
.me-btn:hover { background: var(--panel); }
.me-txt { flex: 1; min-width: 0; }
.me-txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-txt span { font-size: 12px; color: var(--muted); }
.shade { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 25; }
main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.topbar { height: 58px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid var(--line); background: rgba(18,18,21,.9); backdrop-filter: blur(6px); }
.tb-title { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; padding: 4px 6px; border-radius: 10px; }
.tb-title.clickable:hover { background: var(--panel); }
.tb-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.tb-title span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-actions { display: flex; gap: 2px; }
.menu-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }

/* discover */
.discover-body { flex: 1; overflow-y: auto; padding: 16px; }
.hero { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(46,230,197,.1)); border: 1px solid var(--line); margin-bottom: 16px; }
.hero h2 { margin: 0 0 4px; }
.hero p { margin: 0 0 12px; }
.hero-mascot { width: 96px; height: 96px; flex-shrink: 0; }
.hero-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.search-row { margin-bottom: 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.chip i { font-style: normal; color: var(--muted); margin-left: 4px; }
.chip.on i { color: #eee; }
.room-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.room-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.room-card:hover { border-color: rgba(139,92,246,.6); }
.rc-top { display: flex; gap: 10px; align-items: center; }
.rc-emoji { width: 46px; height: 46px; border-radius: 13px; background: var(--panel3); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.rc-name { font-weight: 700; }
.rc-game { font-size: 12px; color: var(--cyan); }
.rc-desc { font-size: 13px; color: var(--muted); min-height: 18px; }
.rc-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.rc-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--panel3); color: var(--muted); }
.tag.feat { background: rgba(250,204,21,.15); color: var(--yellow); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty-state .es-mascot { width: 110px; height: 110px; margin: 0 auto 8px; }

/* room */
.room-body { flex: 1; min-height: 0; display: flex; }
.chat-col { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.messages { flex: 1; overflow-y: auto; padding: 12px 12px 6px; overscroll-behavior: contain; }
.member-panel { width: var(--members); flex-shrink: 0; border-left: 1px solid var(--line); background: var(--bg2); overflow-y: auto; padding: 10px 8px; }
.mp-head { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; margin: 14px 8px 6px; display: flex; align-items: center; gap: 6px; }
.mp-head i { font-style: normal; color: var(--dim); font-weight: 600; }
.mp-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.mp-item:hover { background: var(--panel); }
.mp-item.off { opacity: .45; }
.mp-item .mp-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-item .mp-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-req { margin: 6px 4px 12px; padding: 10px; border-radius: 12px; background: rgba(244,114,182,.08); border: 1px solid rgba(244,114,182,.35); }

.announce-bar, .pin-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.announce-bar { background: linear-gradient(90deg, rgba(139,92,246,.22), rgba(46,230,197,.1)); }
.ab-body, .pin-bar > div { flex: 1; min-width: 0; }
.ab-body b, .pin-bar b { display: block; font-size: 11px; color: var(--cyan); text-transform: uppercase; letter-spacing: .6px; }
.ab-body span, .pin-bar span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-bar { background: var(--bg2); }
.ab-ico { font-size: 20px; }

/* avatars */
.av { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #0d0d10; font-size: 16px; background-size: cover; background-position: center; position: relative; }
.av.sm { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }
.av.lg { width: 84px; height: 84px; border-radius: 24px; font-size: 34px; }
.av.xl { width: 112px; height: 112px; border-radius: 30px; font-size: 46px; border: 4px solid var(--panel); }
.av.xl .dot { width: 18px; height: 18px; border-width: 3px; border-color: var(--panel); }
.av .dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg2); }
.av-slot { display: inline-flex; }

/* messages */
.msg { display: flex; gap: 10px; padding: 3px 4px; border-radius: 12px; position: relative; }
.msg.first { margin-top: 10px; }
.msg .av { margin-top: 2px; cursor: pointer; }
.msg .av-gap { width: 38px; flex-shrink: 0; }
.msg-main { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.msg-head .nm { font-weight: 700; cursor: pointer; }
.msg-head .tm { font-size: 11px; color: var(--dim); }
.role-ico { font-size: 12px; }
.rank-ico { font-size: 12px; opacity: .9; }
.bubble { display: inline-block; max-width: 100%; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; padding: 1px 0; }
.bubble .mention { background: rgba(46,230,197,.18); color: var(--cyan); padding: 0 3px; border-radius: 5px; font-weight: 600; }
.msg.mentions-me { background: rgba(250,204,21,.07); box-shadow: inset 3px 0 0 var(--yellow); }
.msg.flash { animation: flash 1.2s; }
@keyframes flash { 0%, 40% { background: rgba(139,92,246,.3); } 100% { background: transparent; } }
.msg:hover { background: rgba(255,255,255,.02); }
.msg.sys { justify-content: center; padding: 6px; font-size: 12.5px; color: var(--muted); }
.msg.sys:hover { background: none; }
.quote { border-left: 3px solid var(--purple); background: var(--panel); padding: 4px 8px; border-radius: 0 8px 8px 0; font-size: 13px; margin: 2px 0 4px; cursor: pointer; max-width: 460px; }
.quote b { color: var(--cyan); margin-right: 6px; font-size: 12px; }
.quote span { color: var(--muted); }
.rx-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.rx-row button { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; }
.rx-row button.mine { border-color: var(--purple); background: rgba(139,92,246,.18); }
.rx-row b { font-size: 11px; color: var(--muted); }
.media-img { max-width: min(340px, 100%); max-height: 340px; border-radius: 12px; display: block; margin-top: 4px; cursor: zoom-in; }
.media-vid { max-width: min(420px, 100%); max-height: 320px; border-radius: 12px; display: block; margin-top: 4px; background: #000; }
.media-aud { width: min(340px, 100%); margin-top: 4px; }
.file-card { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-top: 4px; max-width: 100%; text-decoration: none; color: var(--text); }
.file-card .fc-ico { font-size: 24px; }
.file-card small { display: block; color: var(--muted); }
.yt-card { margin-top: 6px; width: min(360px, 100%); border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.yt-thumb { position: relative; aspect-ratio: 16/9; background: #000 center/cover; cursor: pointer; }
.yt-thumb::after { content: "▶"; position: absolute; inset: 0; margin: auto; width: 56px; height: 40px; border-radius: 10px; background: rgba(255,0,0,.85); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.yt-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-thumb.playing::after { display: none; }
.yt-btns { display: flex; gap: 6px; padding: 8px; }
.play-all { font-size: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(46,230,197,.15); color: var(--cyan); border: 1px solid rgba(46,230,197,.4); font-weight: 600; }
.play-all:hover { background: rgba(46,230,197,.25); }
.announce-card { border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(46,230,197,.1)); border: 1px solid rgba(139,92,246,.5); margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.announce-card .ac-h { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--cyan); font-weight: 800; margin-bottom: 4px; }
.invite-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid rgba(46,230,197,.45); margin-top: 4px; max-width: 360px; }
.invite-card .ic-e { font-size: 28px; }
.invite-card .ic-t { flex: 1; min-width: 0; }
.invite-card .ic-t small { display: block; color: var(--muted); }
.hover-acts { position: absolute; right: 8px; top: -12px; display: none; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 2px; z-index: 2; }
.hover-acts button { width: 30px; height: 28px; border-radius: 8px; font-size: 14px; }
.hover-acts button:hover { background: var(--panel3); }
@media (hover: hover) { .msg:not(.sys):hover .hover-acts { display: flex; } }
.day-sep { text-align: center; font-size: 11px; color: var(--dim); margin: 16px 0 6px; text-transform: uppercase; letter-spacing: 1px; }
.welcome-card { margin: 8px 4px 14px; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.welcome-card .wc-e { font-size: 30px; }
.welcome-card p { margin: 4px 0 0; white-space: pre-wrap; color: var(--muted); }
.typing { height: 18px; font-size: 12px; color: var(--muted); padding: 0 16px; }
.compose-note { margin: 0 12px 6px; padding: 7px 10px; border-radius: 10px; background: var(--panel); font-size: 12.5px; color: var(--muted); }
.compose-note.warn { color: #fca5a5; background: rgba(248,113,113,.08); }
.join-bar { margin: 0 12px 10px; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.reply-bar { display: flex; align-items: center; gap: 8px; margin: 0 12px; padding: 6px 10px; border-radius: 10px 10px 0 0; background: var(--panel2); font-size: 13px; }
.reply-bar > div { flex: 1; min-width: 0; }
.reply-bar b { color: var(--cyan); margin-right: 6px; }
.reply-bar span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer { display: flex; align-items: flex-end; gap: 4px; margin: 0 10px calc(10px + var(--safe-b)); padding: 5px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.composer:focus-within { border-color: rgba(139,92,246,.7); }
.composer.disabled { opacity: .55; pointer-events: none; }
.composer textarea { border: 0; background: none; resize: none; max-height: 140px; padding: 9px 6px; box-shadow: none !important; }
.send-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 16px; flex-shrink: 0; }
.upload-bar { position: relative; height: 22px; margin: -4px 12px 10px; border-radius: 8px; background: var(--panel); overflow: hidden; font-size: 12px; }
#uploadFill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad); opacity: .5; transition: width .2s; }
#uploadTxt { position: relative; padding: 0 10px; line-height: 22px; }
.mention-pop { position: absolute; left: 12px; right: 12px; bottom: 64px; max-height: 220px; overflow-y: auto; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; z-index: 10; padding: 4px; }
.mention-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 8px; text-align: left; }
.mention-pop button.on, .mention-pop button:hover { background: var(--panel3); }

/* call bar */
.call-bar { padding: 10px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(52,211,153,.1), rgba(18,18,21,.6)); }
.cb-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.live-dot.green { background: var(--green); box-shadow: 0 0 10px var(--green); }
.call-people { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 8px; }
.cp { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 66px; cursor: pointer; }
.cp .av { width: 48px; height: 48px; border-radius: 16px; transition: box-shadow .1s; }
.cp.speaking .av { box-shadow: 0 0 0 3px var(--green), 0 0 16px var(--green); }
.cp.muted .av { filter: grayscale(.7); }
.cp small { font-size: 11px; max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp .cp-mic { position: absolute; }
.cp-wrap { position: relative; }
.cp-wrap .mute-ico { position: absolute; right: -4px; bottom: -4px; font-size: 13px; background: var(--bg); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.call-controls { display: flex; gap: 10px; align-items: center; }
.round { width: 46px; height: 46px; border-radius: 50%; background: var(--panel3); font-size: 19px; border: 1px solid var(--line); }
.round.off { background: rgba(248,113,113,.2); border-color: rgba(248,113,113,.5); }
.round.danger { background: #dc2626; border-color: #dc2626; }
.round.leave { width: auto; padding: 0 18px; border-radius: 23px; font-size: 14px; font-weight: 700; color: #fff; }
.round.ptt { width: auto; padding: 0 18px; border-radius: 23px; font-size: 14px; font-weight: 700; user-select: none; -webkit-user-select: none; touch-action: none; }
.round.ptt.held { background: var(--green); color: #0d0d10; }

/* stream */
.stream-box { border-bottom: 1px solid var(--line); background: #07060d; }
.sb-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.live-badge { background: #ef4444; color: #fff; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 6px; letter-spacing: .6px; }
.sb-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sb-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.sb-title span { font-size: 12px; }
.sb-stage { position: relative; background: #000; aspect-ratio: 16/9; max-height: 52vh; width: 100%; display: flex; align-items: center; justify-content: center; }
.sb-stage video { width: 100%; height: 100%; object-fit: contain; }
.sb-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); pointer-events: none; }
.float-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floater { position: absolute; bottom: 10px; font-size: 30px; animation: floatUp 2.6s ease-out forwards; }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-20px) scale(1.1); } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }
.sb-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; flex-wrap: wrap; }
.s-reacts { display: flex; gap: 2px; }
.s-reacts button { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }
.s-reacts button:hover { background: var(--panel3); }
.sb-right { display: flex; gap: 6px; align-items: center; }
.stream-box.mini .sb-stage, .stream-box.mini .sb-controls { display: none; }
.player-box.mini .pb-stage { display: none; }

/* player */
.player-box { border-bottom: 1px solid var(--line); background: #07060d; }
.pb-stage { position: relative; aspect-ratio: 16/9; max-height: 42vh; width: 100%; background: #000; }
.pb-stage.audio { aspect-ratio: auto; height: 70px; }
#pbFrame, #pbFrame iframe, #pbVideo { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pb-tap { position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; padding: 12px 18px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700; z-index: 3; }
.pb-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
.pb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.pb-info b, .pb-info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-btns { display: flex; gap: 2px; }
.pb-queue { max-height: 180px; overflow-y: auto; padding: 0 10px 10px; }
.pq { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--panel); margin-top: 4px; font-size: 13px; }
.pq span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* menus */
.pop-menu { position: fixed; z-index: 60; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 200px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.pop-menu > button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; }
.pop-menu > button:hover { background: var(--panel3); }
.danger-txt { color: #fca5a5; }
.quick-reacts { display: flex; gap: 2px; padding: 2px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.quick-reacts button { width: 36px; height: 36px; border-radius: 10px; font-size: 19px; }
.quick-reacts button:hover { background: var(--panel3); }
.emoji-panel { position: fixed; z-index: 61; width: 320px; max-width: calc(100vw - 16px); background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); overflow: hidden; }
.ep-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.ep-tabs button { padding: 8px 10px; font-size: 18px; flex-shrink: 0; }
.ep-tabs button.on { box-shadow: inset 0 -2px 0 var(--purple); }
.ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); max-height: 240px; overflow-y: auto; padding: 6px; }
.ep-grid button { font-size: 22px; height: 36px; border-radius: 8px; }
.ep-grid button:hover { background: var(--panel3); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(4,3,10,.7); backdrop-filter: blur(3px); padding: 16px; }
.sheet { width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.6); overflow: hidden; }
.sheet.wide { max-width: 640px; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; flex: 1; font-size: 17px; }
.sheet-body { padding: 16px; overflow-y: auto; }
.sheet-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.form-row { margin-bottom: 14px; }
.form-row > label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.form-row .help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 90px; padding: 10px 8px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; text-align: center; }
.seg button small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.seg button.on { border-color: var(--purple); background: rgba(139,92,246,.15); }
.emoji-pick { display: flex; gap: 4px; flex-wrap: wrap; }
.emoji-pick button { width: 40px; height: 40px; font-size: 21px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.emoji-pick button.on { border-color: var(--purple); background: rgba(139,92,246,.2); }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs button { padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; position: relative; }
.tabs button.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--purple); }
.tabs .badge-count { position: static; margin-left: 4px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--bg2); margin-bottom: 6px; }
.list-row .lr-txt { flex: 1; min-width: 0; }
.list-row .lr-txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-txt small { color: var(--muted); }
.cat-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cat-row input[type=text] { flex: 1; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.btn-grid button { text-align: left; }
.uc-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 14px; }
.uc-head h2 { margin: 4px 0 0; font-size: 20px; }
.rank-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--panel3); font-size: 12px; font-weight: 700; }
.rank-bar { height: 6px; border-radius: 3px; background: var(--panel3); overflow: hidden; margin-top: 6px; width: 180px; }
.rank-bar div { height: 100%; background: var(--rgb); }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); font-weight: 800; margin: 14px 0 6px; }
.qr-box { background: #fff; padding: 12px; border-radius: 14px; width: fit-content; margin: 8px auto; }
.qr-box img, .qr-box canvas { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.code-box { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--bg2); border: 1px dashed var(--line); padding: 8px 10px; border-radius: 10px; word-break: break-all; user-select: all; }
.invite-code { font-family: ui-monospace, Consolas, monospace; font-size: 26px; letter-spacing: 4px; text-align: center; font-weight: 800; color: var(--cyan); }
.meter { height: 8px; border-radius: 4px; background: var(--panel3); overflow: hidden; }
.meter div { height: 100%; width: 0; background: var(--green); transition: width .08s; }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input { flex: 1; }
.range-row span { width: 42px; text-align: right; font-size: 12px; color: var(--muted); }
video.scan { width: 100%; border-radius: 12px; background: #000; }
.img-view { max-width: 100%; max-height: 80vh; display: block; margin: auto; border-radius: 12px; }

/* toasts */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: 12px; z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 20px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 12px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.5); font-size: 14px; animation: tin .25s; cursor: default; }
.toast.click { cursor: pointer; }
.toast.click:hover { border-color: var(--cyan); }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }

/* mascot */
.mascot { width: 100%; height: 100%; }
.mascot .bob { animation: bob 3s ease-in-out infinite; transform-origin: 50% 80%; }
.mascot .eye { animation: blink 4.5s infinite; transform-origin: center; transform-box: fill-box; }
.mascot.wave .arm { animation: wave .8s ease-in-out 3; transform-origin: 20% 90%; transform-box: fill-box; }
.mascot.dance .bob { animation: dance .5s ease-in-out infinite; }
.mascot.sleep .eye { animation: none; transform: scaleY(.15); }
.mascot.sleep .zz { display: block; }
.mascot .zz { display: none; animation: zz 2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-35deg); } }
@keyframes dance { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-6px); } }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -14px); } }

/* responsive */
.only-mobile { display: none !important; }
.mp-top { display: none; align-items: center; justify-content: space-between; margin: 0 4px 4px; }
.mp-top b { font-size: 15px; }
.member-shade { display: none; }
@media (max-width: 1100px) {
  .member-panel { display: none; }
  .member-panel.open { display: block; position: absolute; right: 0; top: 0; bottom: 0; z-index: 21; width: min(320px, 85vw); box-shadow: -12px 0 30px rgba(0,0,0,.5); }
  .member-panel.open .mp-top { display: flex; }
  .member-shade:not(.hidden) { display: block; position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.5); }
}
@media (max-width: 820px) {
  .only-mobile { display: inline-flex !important; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .22s ease; width: min(86vw, 320px); }
  .rail.open { transform: none; }
  .topbar { height: 54px; padding: 0 6px; }
  .tb-actions .icon-btn { width: 36px; }
  .messages { padding: 8px 8px 4px; }
  .msg .av, .msg .av-gap { width: 34px; height: 34px; }
  .hero { flex-direction: column; text-align: center; }
  .hero-btns { justify-content: center; }
  .room-cards { grid-template-columns: 1fr; }
  .sheet { max-height: calc(100dvh - 20px); border-radius: 18px; }
  .modal { padding: 10px; align-items: flex-end; }
  .sb-stage { max-height: 34vh; }
  .toast { font-size: 13px; padding: 8px 12px; }
  .pb-stage { max-height: 30vh; }
}

/* server dashboard */
.srv-status { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; border: 1px solid var(--line); background: var(--bg2); }
.srv-status b { display: block; }
.srv-status span { font-size: 13px; color: var(--muted); }
.srv-status .srv-ico { font-size: 24px; color: inherit; }
.srv-status.warn { border-color: rgba(250,204,21,.5); background: rgba(250,204,21,.07); }
.srv-status.crit { border-color: rgba(248,113,113,.6); background: rgba(248,113,113,.08); }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.srv-tile { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.srv-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.srv-badge { font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; }
.srv-big { font-size: 22px; font-weight: 800; margin: 2px 0 6px; }
.srv-bar { height: 6px; border-radius: 3px; background: var(--panel3); overflow: hidden; }
.srv-bar div { height: 100%; border-radius: 3px; }
.srv-bar .good { background: var(--green); } .srv-bar .warn { background: var(--yellow); } .srv-bar .crit { background: var(--red); }
.srv-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.srv-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.srv-chart { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 4px; }
.srv-ch-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.srv-ch-head b { color: var(--text); }
.srv-svg { width: 100%; height: auto; display: block; touch-action: none; }
.srv-grid-l { stroke: var(--line); stroke-width: 1; }
.srv-ax { fill: var(--dim); font-size: 9px; font-family: var(--font); }
.srv-line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.srv-dot { fill: var(--cyan); stroke: var(--bg2); stroke-width: 2; }
.srv-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.srv-tip { position: absolute; top: 26px; background: var(--panel3); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: 11.5px; pointer-events: none; white-space: nowrap; }

/* social: feed, posts, profile */
.feed-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.feed-col { max-width: 640px; margin: 0 auto; padding: 14px 12px 40px; }
.post-composer { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.pcm-top { display: flex; gap: 10px; align-items: flex-start; }
.pcm-top textarea { border: 0; background: var(--bg2); resize: none; min-height: 44px; }
.pcm-media { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pcm-media:empty { display: none; }
.pcm-thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #000; }
.pcm-thumb img, .pcm-thumb video { width: 100%; height: 100%; object-fit: cover; }
.pcm-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.7); font-size: 11px; }
.pcm-vid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; pointer-events: none; }
.pcm-prog { font-size: 12px; color: var(--cyan); margin-top: 6px; }
.pcm-bar { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.pcm-vis { width: auto; padding: 6px 8px; font-size: 13px; border-radius: 999px; }
.grow { flex: 1; }
.feed-tabs { display: flex; gap: 6px; margin: 4px 0 12px; }
.feed-tabs button { padding: 7px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.feed-tabs button.on { background: var(--grad); border-color: transparent; color: #fff; }
.new-posts { display: block; margin: 0 auto 10px; padding: 7px 16px; border-radius: 999px; background: var(--cyan); color: #0d0d10; font-weight: 700; font-size: 13px; }
.suggest { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.sg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sg-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.sg-card { flex-shrink: 0; width: 140px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); text-align: center; }
.sg-card .av { cursor: pointer; width: 64px; height: 64px; font-size: 26px; border-radius: 20px; }
.sg-card b { cursor: pointer; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.post-card.pinned { border-color: rgba(250,204,21,.45); }
.post-card.in-modal { margin: 0; border: 0; background: none; }
.pc-head { display: flex; gap: 10px; align-items: center; padding: 12px 12px 6px; }
.pc-head .av { cursor: pointer; }
.pc-who { flex: 1; min-width: 0; }
.pc-who b { cursor: pointer; margin-right: 4px; }
.pc-sub { display: block; font-size: 12px; color: var(--muted); }
.pc-text { padding: 2px 14px 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.pc-text .mention { color: var(--cyan); font-weight: 600; }
.pc-media { display: grid; gap: 2px; background: #000; }
.pc-media.n1 { grid-template-columns: 1fr; }
.pc-media.n2 { grid-template-columns: 1fr 1fr; }
.pc-media.n3 { grid-template-columns: 1fr 1fr; }
.pc-media.n3 .pc-cell:first-child { grid-column: span 2; }
.pc-media.n4 { grid-template-columns: 1fr 1fr; }
.pc-cell { position: relative; background: #000; }
.pc-media.n1 .pc-cell img, .pc-media.n1 .pc-cell video { width: 100%; max-height: 560px; object-fit: contain; display: block; }
.pc-media:not(.n1) .pc-cell { aspect-ratio: 1; }
.pc-media:not(.n1) .pc-cell img, .pc-media:not(.n1) .pc-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-cell img { cursor: zoom-in; }
.pc-more { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; pointer-events: none; }
.pc-yt { position: relative; aspect-ratio: 16/9; background: #000 center/cover; cursor: pointer; }
.pc-yt::after { content: "▶"; position: absolute; inset: 0; margin: auto; width: 64px; height: 44px; border-radius: 12px; background: rgba(255,0,0,.85); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.pc-yt.playing::after { display: none; }
.pc-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pc-stats { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 4px; font-size: 13px; color: var(--muted); min-height: 30px; }
.pc-stats button { color: var(--muted); }
.pc-stats button:hover { color: var(--text); text-decoration: underline; }
.pc-acts { display: flex; border-top: 1px solid var(--line); margin: 0 8px; }
.pc-acts button { flex: 1; padding: 9px 4px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); margin: 4px 0; }
.pc-acts button:hover { background: var(--panel2); color: var(--text); }
.pc-acts button.on { color: var(--pink); }
.pc-comments { padding: 4px 12px 12px; border-top: 1px solid var(--line); }
.cm-row { display: flex; gap: 8px; margin-top: 8px; }
.cm-row .av { cursor: pointer; }
.cm-main { min-width: 0; flex: 1; }
.cm-bubble { display: inline-block; max-width: 100%; background: var(--panel2); border-radius: 14px; padding: 6px 12px; overflow-wrap: anywhere; font-size: 14px; }
.cm-bubble b { cursor: pointer; font-size: 13px; margin-right: 6px; }
.cm-re { font-size: 11px; color: var(--cyan); }
.cm-meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); padding: 2px 10px; }
.link-btn { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.link-btn:hover { color: var(--text); }
.cm-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.cm-form input { border-radius: 999px; padding: 8px 14px; }
.send-btn.small { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.rx-pop { min-width: 0; }
.rx-pop .quick-reacts { border: 0; margin: 0; padding: 0; }
.prof-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 12px; }
.prof-cover { height: 180px; background: linear-gradient(135deg, #3b1d6e 0%, #1e2a6b 50%, #0e4f63 100%) center/cover; }
.prof-cover.edit { height: 130px; border-radius: 12px; }
.prof-body { position: relative; padding: 0 16px 14px; }
.prof-av { margin-top: -58px; display: inline-block; }
.prof-actions { position: absolute; right: 14px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 62%; }
.prof-name { margin: 8px 0 4px; font-size: 24px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prof-rank { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.prof-status { margin-top: 8px; color: var(--cyan); font-weight: 600; }
.prof-bio { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.prof-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.prof-ids { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.gid { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); text-align: left; }
.gid small { color: var(--muted); font-size: 11px; }
.gid b { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.gid:hover { border-color: var(--cyan); }
.prof-stats { display: flex; gap: 4px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.prof-stats button { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px; border-radius: 10px; }
.prof-stats button:hover { background: var(--panel2); }
.prof-stats b { font-size: 17px; }
.prof-stats span { font-size: 12px; color: var(--muted); }
.notif.new { border-left: 3px solid var(--pink); }
@media (max-width: 820px) {
  .prof-cover { height: 130px; }
  .prof-actions { position: static; justify-content: flex-start; max-width: none; margin-top: 8px; }
  .av.xl { width: 92px; height: 92px; font-size: 38px; }
  .prof-av { margin-top: -46px; }
  .feed-col { padding: 10px 8px 40px; }
}

/* creator socials, highlights, followers */
.prof-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.prof-sec-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.prof-sec-h b { font-size: 15px; }
.soc-row { display: flex; gap: 8px; flex-wrap: wrap; }
.soc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #fff; text-decoration: none; border: 1px solid transparent; transition: transform .08s, filter .15s; }
.soc-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.soc-ico { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.soc-youtube { background: #c4302b; }
.soc-facebook { background: #1b5fd1; }
.soc-tiktok { background: #111; border-color: #2a2a2a; box-shadow: -2px 0 0 #25f4ee inset, 2px 0 0 #fe2c55 inset; }
.soc-twitch { background: #6d3fd6; }
.soc-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.soc-kick { background: #1f8f3a; }
.soc-tag { flex-shrink: 0; width: 132px; padding: 7px 10px; font-size: 13px; }
.hl-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.hl-card { flex-shrink: 0; width: 220px; text-align: left; scroll-snap-align: start; }
.hl-thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000 center/cover; border: 1px solid var(--line); }
.hl-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hl-play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.hl-card:hover .hl-thumb { border-color: var(--cyan); }
.hl-title { display: block; font-size: 13px; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.hl-player iframe, .hl-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fol-list { display: flex; flex-direction: column; gap: 2px; }
.fol-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; }
.fol-row:hover { background: var(--panel2); }
.fol-row .av { cursor: pointer; }
@media (max-width: 820px) { .hl-card { width: 170px; } .soc-tag { width: 112px; } }

/* badges */
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; cursor: pointer; }
.bdg { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 6px; border-radius: 999px; background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(46,230,197,.14)); border: 1px solid rgba(139,92,246,.45); font-size: 12px; font-weight: 700; white-space: nowrap; }
.bdg-i { font-size: 15px; }
.bdg.more { padding: 4px 10px; background: var(--panel3); border-color: var(--line); }
.bdg.none { background: var(--bg2); border-color: var(--line); color: var(--muted); font-weight: 600; padding: 4px 12px; }
.badge-row:hover .bdg { border-color: var(--cyan); }
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bdg-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 12px 8px; border-radius: 14px; background: linear-gradient(160deg, rgba(139,92,246,.16), rgba(46,230,197,.08)); border: 1px solid rgba(139,92,246,.45); }
.bdg-card.locked { background: var(--bg2); border-color: var(--line); }
.bdg-card.locked .bdg-big { filter: grayscale(1); opacity: .45; }
.bdg-big { font-size: 30px; }
.bdg-card small { color: var(--muted); font-size: 11.5px; }
.bdg-card .rank-bar { width: 100%; margin-top: 4px; }
.bdg-prog { font-weight: 700; }
.bdg-ok { color: var(--green) !important; font-weight: 700; }

.soc-row.in-card { margin-top: 10px; }
.soc-row.in-card .soc-btn { padding: 6px 13px 6px 7px; font-size: 13px; }
.soc-row.in-card .soc-ico { width: 20px; height: 20px; font-size: 11px; }
.soc-add { display: block; margin-top: 10px; color: var(--cyan); font-size: 13px; }
.prof-av + .badge-row { margin-top: 8px; }

.hl-in-card { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.hl-in-card .prof-sec-h { margin-bottom: 8px; }

/* profile wallpaper */
#profileView { position: relative; overflow: hidden; }
#profileView > .topbar, #profileView > .feed-scroll { position: relative; z-index: 1; }
.prof-wall { position: absolute; inset: 0; z-index: 0; background-color: var(--bg); }
.prof-wall::after { content: ""; position: absolute; inset: 0; background: rgba(8,8,10, var(--dim, 0)); }
.prof-wall.blur { filter: blur(10px); transform: scale(1.06); }
#profileView.has-wall .topbar { background: rgba(18,18,21,.75); }
#profileView.has-wall .prof-card, #profileView.has-wall .prof-sec, #profileView.has-wall .post-card, #profileView.has-wall .post-composer { background: rgba(24,24,28,.88); backdrop-filter: blur(6px); }
.wp-neon { background: radial-gradient(900px 600px at 15% 10%, rgba(139,92,246,.75), transparent 60%), radial-gradient(800px 600px at 90% 80%, rgba(46,230,197,.6), transparent 60%), #0d0d10 !important; }
.wp-cyber { background: linear-gradient(rgba(46,230,197,.18) 1px, transparent 1px) 0 0/44px 44px, linear-gradient(90deg, rgba(46,230,197,.18) 1px, transparent 1px) 0 0/44px 44px, linear-gradient(180deg, #0c0a18, #1b0f45 55%, #3b0d5c) !important; }
.wp-galaxy { background: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent), radial-gradient(2px 2px at 40% 70%, #ddd, transparent), radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 10% 85%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent), radial-gradient(700px 500px at 70% 40%, rgba(59,130,246,.55), transparent 65%), radial-gradient(600px 400px at 20% 80%, rgba(244,114,182,.45), transparent 65%), #05040d !important; background-size: 300px 300px, 260px 260px, 340px 340px, 280px 280px, 220px 220px, 380px 380px, auto, auto !important; }
.wp-sunset { background: linear-gradient(180deg, #2b1055 0%, #7b1e7a 35%, #d9455f 65%, #f9a03f 100%) !important; }
.wp-ocean { background: radial-gradient(800px 500px at 80% 0%, rgba(46,230,197,.55), transparent 60%), linear-gradient(180deg, #03203c 0%, #034a6b 50%, #0a7a8f 100%) !important; }
.wp-forest { background: radial-gradient(700px 500px at 20% 10%, rgba(52,211,153,.45), transparent 60%), linear-gradient(180deg, #06231a 0%, #0b3d2b 50%, #14532d 100%) !important; }
.wp-lava { background: radial-gradient(700px 500px at 50% 110%, rgba(251,146,60,.85), transparent 60%), radial-gradient(500px 400px at 10% 90%, rgba(239,68,68,.7), transparent 60%), linear-gradient(180deg, #120404, #3b0a0a) !important; }
.wp-gold { background: radial-gradient(800px 500px at 30% 0%, rgba(250,204,21,.55), transparent 60%), linear-gradient(135deg, #1a1405 0%, #3d2c06 50%, #6b4a0a 100%) !important; }
.wall-prev { position: relative; height: 120px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 8px; }
.wall-prev .prof-wall { position: absolute; inset: 0; }
.wall-prev-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 12px; background: rgba(24,24,28,.88); border: 1px solid var(--line); font-weight: 700; font-size: 13px; z-index: 1; }
.wall-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-bottom: 10px; }
.wall-tile { position: relative; height: 58px; border-radius: 10px; border: 2px solid var(--line); overflow: hidden; display: flex; align-items: flex-end; padding: 4px 6px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; }
.wall-tile.none { align-items: center; justify-content: center; background: var(--bg2); color: var(--muted); text-shadow: none; }
.wall-tile.upload { align-items: center; justify-content: center; background: var(--panel3); }
.wall-tile.on { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(46,230,197,.35); }

/* 1.5.1: full-width profile, cover/avatar tools, reposition */
.feed-col.prof-col { max-width: none; padding: 14px 18px 40px; }
.prof-col > #profComposer, .prof-col > #profPosts, .prof-col > #profMore, .prof-col #profHead > .prof-sec { max-width: 760px; margin-left: auto; margin-right: auto; }
.prof-col .prof-cover { height: clamp(180px, 24vw, 380px); position: relative; background-position: 50% 50%; }
.prof-col .prof-av { margin-top: -74px; position: relative; }
.prof-col .av.xl { width: 148px; height: 148px; border-radius: 38px; font-size: 60px; }
.prof-col .prof-body { padding-left: 28px; padding-right: 28px; }
.cover-tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; z-index: 2; }
button.glass { background: rgba(10,10,12,.62); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
button.glass:hover { background: rgba(10,10,12,.82); }
.av-tools { position: absolute; left: 100%; bottom: 6px; margin-left: -30px; display: flex; gap: 4px; z-index: 2; }
.av-tool { width: 34px; height: 34px; border-radius: 50%; padding: 0; display: grid; place-items: center; background: var(--panel3); border: 2px solid var(--panel); font-size: 15px; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.av-tool:hover { background: var(--purple); }
.repos { cursor: grab; touch-action: none; outline: 3px dashed var(--cyan); outline-offset: -3px; }
.repos:active { cursor: grabbing; }
.repos-tip { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(10,10,12,.75); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; pointer-events: none; white-space: nowrap; z-index: 3; }
.av .repos-tip { font-size: 10px; padding: 4px 8px; }
.repos-bar { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 3; }
.prof-av > .repos-bar { left: 0; right: auto; bottom: auto; top: calc(100% + 6px); white-space: nowrap; }
.drop-on { outline: 3px dashed var(--purple) !important; outline-offset: -3px; filter: brightness(1.15); }
.wall-upload-btn { width: 100%; margin: 4px 0 8px; }
@media (max-width: 820px) {
  .feed-col.prof-col { padding: 0 0 40px; }
  .prof-col .prof-card { border-radius: 0; border-left: 0; border-right: 0; }
  .prof-col #profComposer, .prof-col #profPosts, .prof-col #profHead > .prof-sec { padding: 0 10px; }
  .prof-col .prof-cover { height: 170px; }
  .prof-col .prof-av { margin-top: -56px; }
  .prof-col .av.xl { width: 112px; height: 112px; border-radius: 30px; font-size: 46px; }
  .prof-col .prof-body { padding-left: 14px; padding-right: 14px; }
  .cover-tools button { font-size: 12px; padding: 6px 9px; }
}
.glass.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; font-weight: 700; }
#profileView.has-wall .prof-card { background: rgba(24,24,28,.94); }
@media (max-width: 820px) { .cover-tools { top: 10px; bottom: auto; right: 10px; } .prof-col .repos-bar { top: 10px; bottom: auto; } .prof-av > .repos-bar { top: calc(100% + 6px); } }

/* 1.5.2: no cover, big profile picture beside the info */
.av.xxl { width: 300px; height: 300px; border-radius: 56px; font-size: 130px; border: 5px solid rgba(255,255,255,.08); box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 2px rgba(139,92,246,.35); }
.av.xxl .dot { width: 30px; height: 30px; right: 10px; bottom: 10px; border-width: 4px; border-color: var(--panel); }
.prof-col .prof-body { padding-top: 26px; }
.prof-top { display: flex; gap: 28px; align-items: flex-start; }
.prof-col .prof-av { margin-top: 0; flex-shrink: 0; }
.prof-info { flex: 1; min-width: 0; padding-top: 52px; }
.prof-info > .badge-row:first-child { margin-top: 0; }
.prof-col .prof-actions { top: 26px; right: 28px; max-width: 55%; }
.av-tools { left: auto; right: 10px; bottom: 10px; margin-left: 0; }
.av-tool { width: 40px; height: 40px; font-size: 17px; }
@media (max-width: 1100px) { .av.xxl { width: 220px; height: 220px; border-radius: 44px; font-size: 96px; } }
@media (max-width: 820px) {
  .prof-col .prof-body { padding-top: 18px; }
  .prof-top { flex-direction: column; align-items: center; gap: 10px; }
  .av.xxl { width: 200px; height: 200px; border-radius: 40px; font-size: 88px; }
  .prof-info { padding-top: 0; width: 100%; }
  .prof-col .prof-actions { position: static; max-width: none; justify-content: center; margin-top: 10px; }
}
.av-tools { left: 10px; right: auto; }

/* 1.5.3: place the profile picture anywhere */
.prof-top.stage { position: relative; display: block; height: 400px; margin: 0 -8px 14px; border-radius: 16px; }
.prof-top.stage .prof-av.free { position: absolute; left: 0; top: 0; }
.prof-top.stage + .prof-info { padding-top: 0; }
.prof-top.placing { outline: 3px dashed var(--cyan); outline-offset: -3px; background: rgba(46,230,197,.06); }
.prof-top.placing .prof-av { cursor: grab; touch-action: none; z-index: 3; }
.prof-top.placing .prof-av:active { cursor: grabbing; }
.place-tip { top: 20px; transform: translateX(-50%); }
.place-bar { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; justify-content: flex-end; z-index: 4; }
.place-spots { display: grid; grid-template-columns: repeat(3, 28px); gap: 3px; padding: 4px; border-radius: 10px; background: rgba(10,10,12,.7); }
.spot { width: 28px; height: 24px; padding: 0; border-radius: 6px; background: var(--panel3); color: #fff; font-size: 12px; }
.spot:hover { background: var(--purple); }
.prof-actions { z-index: 2; }
@media (max-width: 1100px) { .prof-top.stage { height: 320px; } }
@media (max-width: 820px) {
  .prof-top.stage { height: 300px; margin: 0 0 12px; }
  .place-bar { left: 8px; right: 8px; bottom: 8px; }
}

/* 1.6.0: no cover - one movable profile group on the page */
.prof-stage { position: relative; margin-bottom: 14px; }
.prof-group { position: absolute; left: 0; top: 0; width: 360px; margin: 0; padding: 22px 20px 18px; text-align: center; border-radius: 26px;
  background: rgba(24,24,28,.82) !important; backdrop-filter: blur(12px); box-shadow: 0 20px 60px rgba(0,0,0,.45); overflow: visible; }
.prof-group .prof-av { margin: 0 auto 4px; display: inline-block; position: relative; }
.prof-group .av.xxl { width: 300px; height: 300px; border-radius: 56px; font-size: 130px; }
.prof-group .badge-row, .prof-group .prof-rank, .prof-group .soc-row, .prof-group .prof-chips, .prof-group .prof-ids { justify-content: center; }
.prof-group .badge-row { margin-top: 10px; }
.prof-group .prof-name { margin-top: 8px; }
.prof-group .soc-add { display: inline-block; }
.prof-group .prof-actions { position: static; max-width: none; justify-content: center; margin-top: 14px; }
.prof-stat-sec { padding: 6px 10px !important; }
.prof-stat-sec .prof-stats { border-top: 0; margin-top: 0; padding-top: 4px; }
#profileView.has-wall .prof-sec { background: rgba(24,24,28,.86); }
.prof-group.placing { cursor: grab; touch-action: none; outline: 3px dashed var(--cyan); outline-offset: 4px; z-index: 5; }
.prof-group.placing:active { cursor: grabbing; }
.move-shield { position: absolute; inset: 0; z-index: 6; border-radius: 26px; }
.prof-stage.placing { outline: 2px dashed rgba(46,230,197,.45); outline-offset: -2px; border-radius: 18px; background: rgba(46,230,197,.04); }
.place-bar { position: fixed; left: 50%; right: auto; bottom: 18px; top: auto; transform: translateX(-50%); z-index: 70; display: flex; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.55); flex-wrap: nowrap; }
.place-lbl { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
@media (max-width: 1100px) { .prof-group { width: 300px; } .prof-group .av.xxl { width: 240px; height: 240px; border-radius: 46px; font-size: 104px; } }
@media (max-width: 820px) {
  .prof-stage { margin: 8px 10px 12px; }
  .prof-group { width: min(340px, calc(100% - 0px)); }
  .prof-group .av.xxl { width: 200px; height: 200px; border-radius: 40px; font-size: 88px; }
  .place-bar { left: 8px; right: 8px; transform: none; bottom: 10px; flex-wrap: wrap; justify-content: center; }
  .place-lbl { display: none; }
}
@media (max-width: 820px) { .prof-col .prof-card.prof-group { border-radius: 24px; border: 1px solid var(--line); } }
.prof-group .prof-name { justify-content: center; text-align: center; }
.prof-group { width: 392px; }
@media (max-width: 1100px) { .prof-group { width: 340px; } }
@media (max-width: 820px) { .prof-group { width: min(360px, 100%); } }
.prof-group .prof-actions { gap: 4px; } .prof-group .prof-actions button.small { padding: 7px 9px; }

/* 1.6.1: Spotify player on the profile */
.prof-spot { position: absolute; left: 0; top: 0; width: 380px; height: 352px; border-radius: 14px; overflow: visible; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.prof-spot iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; display: block; background: #121212; }
.prof-spot.placing { cursor: grab; touch-action: none; outline: 3px dashed rgba(30,215,96,.8); outline-offset: 4px; z-index: 5; }
.stage-item.placing.sel { outline-color: var(--cyan); outline-style: solid; z-index: 6; }
.prof-spot .move-shield { border-radius: 14px; background: rgba(0,0,0,.08); }
.spot-grip { position: absolute; right: -10px; bottom: -10px; width: 26px; height: 26px; border-radius: 8px; z-index: 8; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 45%, #1ed760 46%, #1ed760 54%, transparent 55%, transparent 65%, #1ed760 66%, #1ed760 74%, transparent 75%), var(--panel2); border: 2px solid #1ed760; }
.soc-spotify { background: #1ed760; color: #06210f; }
.place-which { display: flex; gap: 4px; }
.place-which .chip-btn.on { background: var(--cyan); color: #06121a; border-color: var(--cyan); }
@media (max-width: 820px) { .place-which .chip-btn { padding: 6px 8px; font-size: 12px; } }

/* 1.7.0: profile boxes (drag + resize anywhere) */
.feed-col.prof-col { max-width: none; padding: 14px 18px 40px; }
.prof-canvas { position: relative; min-height: 200px; }
.pbox { position: absolute; display: flex; flex-direction: column; min-width: 0; background: rgba(24,24,28,var(--box-op,.88)); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 16px 44px rgba(0,0,0,.4); backdrop-filter: blur(10px); overflow: hidden; margin: 0; }
#profileView.has-wall .pbox { background: rgba(24,24,28,var(--box-op,.88)); }
.pbox-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.pbox-h b { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbox-body { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
.pbox-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; height: 100%; min-height: 80px; }
/* card */
.pbox-card { container-type: inline-size; }
.pbox-card .pbox-body { padding: 18px 16px; text-align: center; }
.pbox-card .prof-av { margin: 0 auto 6px; display: inline-block; position: relative; }
.pbox-card .av.xxl { width: min(300px, 78cqw); height: min(300px, 78cqw); border-radius: min(56px, 15cqw); font-size: min(130px, 34cqw); }
.pbox-card .badge-row, .pbox-card .prof-rank, .pbox-card .soc-row, .pbox-card .prof-chips, .pbox-card .prof-ids { justify-content: center; }
.pbox-card .prof-name { justify-content: center; text-align: center; margin-top: 8px; }
.pbox-card .soc-add { display: inline-block; }
.pbox-card .prof-stats { margin-top: 12px; }
.pbox .prof-actions { position: static; max-width: none; justify-content: center; margin-top: 14px; gap: 4px; flex-wrap: wrap; }
.pbox .prof-actions button.small { padding: 7px 9px; }
/* music */
.pbox-music .pbox-body { padding: 0; }
.pbox-music iframe { width: 100%; height: 100%; border: 0; display: block; background: #121212; }
.pbox-music .pbox-empty { padding: 12px; }
/* friends */
.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.fr-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.fr-tile:hover { border-color: var(--purple); }
.fr-tile b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-tile small { font-size: 10px; color: var(--muted); }
/* highlights */
.pbox .hl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; overflow: visible; }
.pbox .hl-card { width: auto; }
/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.gal-tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--panel3) center/cover no-repeat; border: 0; padding: 0; }
.gal-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-tile .hl-play { font-size: 18px; }
.photo-view { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; border-radius: 10px; }
/* posts */
.pbox-posts .pbox-body { padding: 12px; }
.pbox-posts #profMore { margin-top: 8px; }
/* phones: stacked */
.prof-canvas.stacked { display: flex; flex-direction: column; gap: 12px; height: auto !important; }
.prof-canvas.stacked .pbox { position: relative; width: auto !important; }
.prof-canvas.stacked .pbox-card .pbox-body, .prof-canvas.stacked .pbox-posts .pbox-body { overflow: visible; }
@media (max-width: 820px) { .feed-col.prof-col { padding: 8px 8px 40px; } .prof-canvas.stacked .pbox { border-radius: 16px; } }
/* arrange mode */
.prof-canvas.arranging { outline: 2px dashed rgba(46,230,197,.35); outline-offset: 4px; border-radius: 12px; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 20px 20px; }
.arranging .pbox { cursor: grab; touch-action: none; outline: 2px dashed var(--cyan); outline-offset: -2px; user-select: none; }
.arranging .pbox.dragging { cursor: grabbing; outline-style: solid; box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 3px rgba(46,230,197,.35); }
.arranging .move-shield { position: absolute; inset: 0; z-index: 5; border-radius: 20px; background: rgba(46,230,197,.04); }
.pbox-tag { position: absolute; left: 10px; top: 10px; z-index: 6; background: var(--cyan); color: #06121a; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.pbox-x { position: absolute; right: 8px; top: 8px; z-index: 7; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: #e11d48; color: #fff; font-weight: 800; }
.pgrip { position: absolute; z-index: 7; }
.pgrip.g-se { right: 2px; bottom: 2px; width: 22px; height: 22px; cursor: nwse-resize; border-radius: 6px;
  background: linear-gradient(135deg, transparent 45%, var(--cyan) 46%, var(--cyan) 54%, transparent 55%, transparent 65%, var(--cyan) 66%, var(--cyan) 74%, transparent 75%), rgba(10,10,12,.8); }
.pgrip.g-e { right: 0; top: 30%; bottom: 30%; width: 10px; cursor: ew-resize; }
.pgrip.g-s { bottom: 0; left: 30%; right: 30%; height: 10px; cursor: ns-resize; }
.pgrip.g-e::after, .pgrip.g-s::after { content: ""; position: absolute; background: var(--cyan); border-radius: 4px; }
.pgrip.g-e::after { right: 2px; top: 50%; width: 4px; height: 36px; transform: translateY(-50%); }
.pgrip.g-s::after { bottom: 2px; left: 50%; height: 4px; width: 36px; transform: translateX(-50%); }
.arrange-bar { max-width: calc(100vw - 30px); flex-wrap: wrap; justify-content: center; }
.arr-hidden { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.zoom-row { min-width: 220px; }
.prof-canvas.bg-mode .pbox { opacity: .25; pointer-events: none; }
.wall-drag-layer { position: absolute; inset: 0; z-index: 40; cursor: move; touch-action: none; background: transparent; }
.prof-col .prof-canvas .pbox.prof-card { border-radius: 20px; border: 1px solid var(--line); margin: 0; }
@media (max-width: 820px) { .prof-col .prof-canvas .pbox.prof-card { border-radius: 16px; } }

/* 2.0.0: GGHQ brand (RGB) */
.logo .logo-img { height: 38px; width: auto; filter: drop-shadow(0 2px 10px rgba(110,90,255,.45)); }
.logo .word { background: var(--rgb); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 1px; }
.logo.big .logo-img { height: auto; width: min(280px, 74%); filter: drop-shadow(0 10px 34px rgba(80,140,255,.35)); }
.brand-sub { text-align: center; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.slogan { text-align: center; font-weight: 800; font-size: 15px; margin: 8px 0 2px; background: var(--rgb); -webkit-background-clip: text; background-clip: text; color: transparent; }
button.primary, .primary { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
/* RGB edge on key cards, like a lit keyboard */
.join-card { position: relative; }
.join-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--rgb);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .8; }
.rail { box-shadow: inset -1px 0 0 rgba(255,255,255,.04); }
@media (min-width: 821px) { .rail { position: relative; } }
.rail::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #a855f7, #3b82f6, #14e0c8, #5ee35b, #f5d90a, #ff8a1f); opacity: .55; pointer-events: none; }

.fr-grid > .pbox-empty, .gal-grid > .pbox-empty { grid-column: 1 / -1; }
.wp-rgb { background: radial-gradient(700px 500px at 10% 10%, rgba(168,85,247,.55), transparent 60%), radial-gradient(700px 500px at 50% 100%, rgba(20,224,200,.42), transparent 60%), radial-gradient(600px 450px at 95% 20%, rgba(255,138,31,.35), transparent 60%), radial-gradient(500px 400px at 75% 70%, rgba(94,227,91,.35), transparent 60%), #08080b !important; }

/* 2.1: box opacity */
.pbox.see-through { box-shadow: none; border-color: rgba(255,255,255,.12); }
.pbox.see-through .pbox-h { border-bottom-color: rgba(255,255,255,.1); }
.pbox.see-through .pbox-body { text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.pbox.see-through .post-card, .pbox.see-through .post-composer, .pbox.see-through .fr-tile { background: rgba(24,24,28,.55); }
.arranging .pbox.sel { outline: 3px solid #2ee6c5; outline-offset: -3px; }
.op-row { gap: 8px; min-width: 360px; }
.op-row input { flex: 1; min-width: 110px; }
.op-name { font-size: 13px; white-space: nowrap; }

/* 2.2: Spotify auto-play */
.sp-holder, .sp-holder > div, .sp-holder iframe { width: 100%; height: 100%; border: 0; display: block; background: #121212; }
.sp-chip { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(30,215,96,.6); background: rgba(10,14,12,.92); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 18px rgba(30,215,96,.35); animation: spPulse 2s ease-in-out infinite; backdrop-filter: blur(8px); }
.sp-chip.on { animation: none; border-color: rgba(30,215,96,.35); }
@keyframes spPulse { 0%,100% { box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 10px rgba(30,215,96,.25); } 50% { box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 26px rgba(30,215,96,.7); } }
.sp-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sp-eq i { width: 3px; background: #1ed760; border-radius: 2px; height: 30%; }
.sp-chip.on .sp-eq i { animation: spEq .9s ease-in-out infinite; }
.sp-chip.on .sp-eq i:nth-child(2) { animation-delay: .2s; } .sp-chip.on .sp-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes spEq { 0%,100% { height: 25%; } 50% { height: 100%; } }
@media (max-width: 820px) { .sp-chip { bottom: 76px; font-size: 13px; } }

/* 2.2.1: one Spotify player across the app */
.sp-dock { position: fixed; z-index: 30; display: flex; flex-direction: column; background: #121212; overflow: hidden; }
.sp-dock .sp-mini-h { display: none; }
.sp-dock-body, .sp-dock-body > div, .sp-dock-body iframe { flex: 1; width: 100%; height: 100%; border: 0; display: block; min-height: 0; }
.sp-dock.arranging { pointer-events: none; opacity: .55; }
.sp-dock.parked { left: -10000px !important; top: 0 !important; width: 320px !important; height: 152px !important; visibility: hidden; }
.sp-dock.mini { right: 16px; bottom: 16px; left: auto; top: auto; width: 320px; height: 124px; border-radius: 16px; z-index: 65;
  border: 1px solid rgba(30,215,96,.45); box-shadow: 0 14px 40px rgba(0,0,0,.6), 0 0 18px rgba(30,215,96,.25); }
.sp-dock.mini .sp-mini-h { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; background: #0d1a12; flex-shrink: 0; }
.sp-mini-name { flex: 1; font-size: 12px; font-weight: 800; color: #d9ffe6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-mini-btn { width: 26px; height: 26px; padding: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; }
.sp-mini-btn:hover { background: #1ed760; color: #06210f; }
.sp-dock.mini .sp-dock-body { height: 80px; flex: none; }
@media (max-width: 820px) { .sp-dock.mini { right: 8px; left: 8px; bottom: 70px; width: auto; } }
.sp-dock.mini { bottom: 92px; }
@media (max-width: 820px) { .sp-dock.mini { bottom: 128px; } }
