/* Criado por Vinícius Manzano. */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(/fonts/unbounded-latin-wght-normal.woff2) format('woff2'); }

:root {
  --bg-rail: #0b0c11;
  --bg-side: #11131b;
  --bg-main: #0d0e14;
  --bg-elev: #1e2130;
  --bg-hover: #262a3c;
  --bg-input: #1a1d29;
  --surface: #161823;
  --border: #23263a;
  --border-2: #2f3450;
  --text: #eceef6;
  --text-2: #c9cde0;
  --muted: #9aa0b8;
  --accent: #3b5bff;
  --accent-2: #6d83ff;
  --cyan: #3ecadc;
  --magenta: #c026d3;
  --grad: linear-gradient(135deg, #3ecadc 0%, #3b5bff 50%, #c026d3 100%);
  --live: #ff3b5c;
  --ok: #23c55e;
  --warn: #f5a623;
  --radius: 14px;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg-main); color: var(--text); font-size: 15px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #8fb4ff; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--live); margin: 0; font-size: 14px; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
code { background: var(--bg-rail); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover:not(:disabled) { background: var(--bg-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; background-size: 140% 140%; background-position: 0% 50%; transition: background-position .3s, filter .15s; }
.btn.primary:hover:not(:disabled) { background: var(--grad); background-size: 140% 140%; background-position: 100% 50%; filter: brightness(1.08); }
.btn.danger { background: #d83a52; border-color: #d83a52; color: #fff; }
.btn.danger-ghost { background: transparent; border-color: transparent; color: #ff6b81; }
.btn.danger-ghost:hover { background: rgba(255,59,92,.12); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--bg-hover); }
.btn.icon { padding: 7px 9px; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.big { padding: 12px 26px; font-size: 16px; }
.btn.on { background: rgba(255,59,92,.15); border-color: var(--live); }
.btn.active { background: #2c2750; border-color: var(--accent); }
.btn.live.streaming { background: var(--live); border-color: var(--live); color: #fff; }
.link { background: none; border: 0; padding: 0; color: #8fb4ff; cursor: pointer; }
.link:hover { text-decoration: underline; }
input, select, textarea {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; outline: none; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.field input, .field select, .field textarea { color: var(--text); font-weight: 400; font-size: 15px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > * { flex: 1; }
.row.center { align-items: center; }
.row.center > * { flex: 0 0 auto; }

.avatar {
  border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; flex: 0 0 auto;
  background: var(--bg-elev); user-select: none;
}
.avatar img, .server-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.status-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #5d6070; border: 3px solid var(--bg-side); }
.status-dot.on { background: var(--ok); }
.server-icon { border-radius: 16px; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; font-size: 15px; transition: border-radius .15s; }

.auth { min-height: 100%; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 15% 10%, rgba(62,202,220,.28), transparent 45%), radial-gradient(circle at 85% 90%, rgba(192,38,211,.28), transparent 45%), var(--bg-rail); }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 14px; background: var(--bg-side); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.auth-card h2 { margin: 0; font-size: 20px; }
.auth-card h3 { margin: 4px 0 0; font-size: 16px; }
.auth-form { display: grid; gap: 12px; }
.brand { font-weight: 800; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; }
.brand { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { filter: drop-shadow(0 4px 14px rgba(106,92,255,.45)); }
.invite-preview { display: flex; gap: 14px; align-items: center; background: var(--bg-elev); padding: 14px; border-radius: 12px; }
.invite-preview h2 { margin: 2px 0; }
.switch { margin: 0; font-size: 14px; color: var(--muted); }
/* 🔑 Esqueci a senha */
.reset-step { background: var(--bg-elev); border-radius: 12px; padding: 14px; margin: 10px 0; }
.reset-step h3 { margin: 0 0 10px; font-size: 15px; }
.auth-ok { margin: 4px 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: rgba(62,202,220,.1); border: 1px solid rgba(62,202,220,.3); color: var(--text); }
.ap-reset { margin: 10px 0; }
.reset-code-big { font-size: 22px; font-weight: 800; letter-spacing: 2px; background: var(--bg-elev); padding: 8px 14px; border-radius: 10px; border: 1px dashed rgba(62,202,220,.5); user-select: all; }

.layout { height: 100dvh; display: grid; grid-template-columns: 72px 250px 1fr auto; overflow: hidden; }
.rail { background: var(--bg-rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; scrollbar-width: none; }
.rail-sep { width: 32px; height: 2px; background: var(--border); border-radius: 2px; flex: 0 0 auto; }
.server-list { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rail-btn { position: relative; width: 48px; height: 48px; padding: 0; border: 0; background: none; border-radius: 16px; flex: 0 0 auto; }
.rail-btn::before { content: ''; position: absolute; left: -12px; top: 50%; width: 4px; height: 0; background: #fff; border-radius: 0 4px 4px 0; transform: translateY(-50%); transition: height .15s; }
.rail-btn.unread::before { height: 8px; }
.rail-btn:hover::before { height: 20px; }
.rail-btn.active::before { height: 40px; background: linear-gradient(var(--cyan), var(--magenta)); }
.rail-btn:hover .server-icon, .rail-btn.active .server-icon { border-radius: 14px; }
.rail-btn:not(.active) .server-icon { border-radius: 50%; }
.rail-btn.home img { width: 48px; height: 48px; border-radius: 50%; transition: border-radius .15s; object-fit: cover; }
.rail-btn.home.active img, .rail-btn.home:hover img { border-radius: 14px; }
.rail-btn.add { background: var(--bg-elev); color: var(--ok); font-size: 26px; border-radius: 50%; transition: border-radius .15s, background .15s; }
.rail-btn.add:hover { background: var(--ok); color: #fff; border-radius: 14px; }
.rail-btn.admin { background: var(--bg-elev); font-size: 20px; border-radius: 50%; transition: border-radius .15s, background .15s; }
.rail-btn.admin:hover { background: var(--grad); border-radius: 14px; }

.admin-admins { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: grid; gap: 8px; background: var(--bg-side); }
.admin-admins-head { font-weight: 600; font-size: 14px; }
.admin-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-admins .row input { flex: 1; min-width: 0; }
.chip-x { background: none; border: 0; color: var(--muted); padding: 0 2px; font-size: 12px; }
.chip-x:hover { color: #ff6b81; }
.admin-panel { display: flex; flex-direction: column; gap: 12px; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.admin-stats span { background: var(--bg-elev); border-radius: 999px; padding: 4px 10px; }
.admin-stats .live { background: rgba(35,197,94,.15); color: var(--ok); }
.admin-server { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; background: var(--bg-side); }
.admin-server-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Sem isto, em ecrã estreito o flex encolhe a LARGURA do ícone (a altura fica igual) e a imagem
   fica esticada/cortada. flex:0 0 auto trava o tamanho; object-fit:cover trata o resto. */
.admin-server-head .server-icon { flex: 0 0 auto; }
.admin-server-info { flex: 1; min-width: 140px; display: flex; flex-direction: column; font-size: 13px; }
.admin-server-info strong { font-size: 15px; }
.admin-channels { margin-top: 8px; display: grid; gap: 4px; }
.admin-ch { border-radius: 8px; padding: 4px 6px; }
.admin-ch.busy { background: rgba(62,202,220,.07); }
.admin-ch-name { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; padding: 2px 0; font-size: 14px; color: var(--text-2); text-align: left; }
button.admin-ch-name:hover { color: var(--text); }
.admin-ch-name .ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-ch-name .small { margin-left: auto; font-size: 12px; }
.admin-parts { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px 22px; }
.admin-part { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; background: var(--bg-elev); border-radius: 999px; padding: 2px 8px 2px 2px; }
.rail-voice { position: absolute; right: -4px; bottom: -4px; background: var(--ok); border-radius: 50%; font-size: 10px; width: 20px; height: 20px; display: grid; place-items: center; border: 3px solid var(--bg-rail); }

.sidebar { background: var(--bg-side); display: grid; grid-template-rows: auto 1fr auto auto; min-height: 0; min-width: 0; }
.side-header { height: 52px; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 12px; min-width: 0; overflow: hidden; }
.side-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-menu-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 6px; border-radius: 6px; }
.server-menu-btn:hover { background: var(--bg-hover); }
.side-list { overflow-y: auto; padding: 8px; }
.side-section { display: flex; justify-content: space-between; align-items: center; padding: 14px 6px 4px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.mini-btn { background: none; border: 0; color: var(--muted); font-size: 16px; padding: 0 4px; line-height: 1; }
.mini-btn:hover { color: var(--text); }
.side-item { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 8px; border-radius: 6px; color: var(--text-2); text-align: left; }
.side-item:hover { background: var(--bg-hover); color: var(--text); }
.side-item.active { background: var(--bg-elev); color: #fff; }
.side-item.unread .ch-name { color: #fff; font-weight: 700; }
.side-item.channel { padding: 0; }
.ch-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 8px; color: inherit; text-align: left; }
.ch-icon { width: 20px; text-align: center; color: var(--muted); flex: 0 0 auto; }
.ch-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-gear { opacity: 0; font-size: 14px; }
.side-item:hover .ch-gear, .side-item.active .ch-gear { opacity: 1; }
.ch-chat { opacity: 0; font-size: 14px; flex: 0 0 auto; }
.side-item:hover .ch-chat, .side-item.active .ch-chat { opacity: 1; }
.side-item.connected .ch-icon { color: var(--ok); }
.side-item.spawner .ch-main { color: var(--text-2); font-style: italic; }
.side-item.spawner .ch-icon { color: var(--ok); font-style: normal; }
.side-item.temp-room .ch-icon { font-size: 13px; }
.room-card.spawner { border-style: dashed; }
.side-empty { color: var(--muted); font-size: 13px; padding: 4px 8px; }
.voice-parts { padding-left: 30px; display: grid; gap: 2px; }
.vp { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px; font-size: 13px; color: var(--text-2); }
.vp .avatar { box-shadow: 0 0 0 2px transparent; transition: box-shadow .1s; }
.vp.speaking .avatar { box-shadow: 0 0 0 2px var(--ok); }
.vp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-icons { display: flex; gap: 3px; align-items: center; font-size: 11px; }
.srv-icon { background: rgba(216,58,82,.25); border-radius: 4px; padding: 0 2px; }
.btn.forced, #upMute.forced, #upDeafen.forced { background: rgba(216,58,82,.25); border-color: #d83a52; }
.vp-vol { font-size: 10px; color: var(--muted); background: var(--bg-elev); border-radius: 4px; padding: 0 4px; }

.vol-ctl { padding: 8px 10px 6px; display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.vol-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.vol-head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vol-val { color: var(--cyan); font-variant-numeric: tabular-nums; flex: none; }
.vol-ctl input[type=range] { width: 100%; padding: 0; margin: 0; accent-color: var(--accent); height: 22px; }
.vol-ctl input[type=range]:disabled { opacity: .4; }
.vol-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.vol-actions .btn:first-child { flex: 1; }
.vol-hint { font-size: 11px; color: var(--muted); }
.live-pill { background: var(--live); color: #fff; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 3px; }

.voice-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--border); background: #1a2a22; }
.vb-info { flex: 1; min-width: 0; }
.vb-status { color: var(--ok); font-weight: 700; font-size: 13px; }
.vb-channel { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; }
.user-panel { display: flex; align-items: center; gap: 2px; padding: 8px; background: #17181d; }
.me-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px; border-radius: 6px; text-align: left; }
.me-btn:hover { background: var(--bg-hover); }
.me-names { display: grid; min-width: 0; line-height: 1.2; }
.me-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-user { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-panel .btn.icon { padding: 6px 7px; }

.main { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 0; }
.main-header { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.main-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.main-title span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hash, .at { color: var(--muted); font-size: 20px; font-weight: 400; }
.mobile-only { display: none; }
.view { min-height: 0; overflow: hidden; }

.member-panel { width: 240px; background: var(--bg-side); overflow-y: auto; padding: 8px; }
.member-panel h3 { font-size: 12px; color: var(--muted); margin: 16px 8px 6px; letter-spacing: .03em; }
.member { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 8px; border-radius: 6px; text-align: left; position: relative; overflow: hidden; }
.member:hover { background: var(--bg-hover); }
.member.offline { opacity: .45; }
/* 🎴 Banner do membro como fundo da linha (estilo Discord): esmaece da esquerda → direita; o GIF/link anima sozinho. */
.member > .member-bg { position: absolute; inset: 0; z-index: 0; opacity: .82; pointer-events: none; -webkit-mask: linear-gradient(90deg, transparent 0, transparent 24%, #000 88%); mask: linear-gradient(90deg, transparent 0, transparent 24%, #000 88%); }
.member-bg .pc-banner { position: absolute; inset: 0; border-radius: 0; }
.member-bg .pc-fx { position: absolute; inset: 0; border-radius: 0; overflow: hidden; }
.member.has-banner > :not(.member-bg) { position: relative; z-index: 1; }
.member.has-banner .member-name { text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.member.has-banner:hover > .member-bg { opacity: .95; }
.member-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.role-tag { font-size: 13px; }
.supporter-tag { font-size: 13px; filter: drop-shadow(0 0 4px rgba(245, 197, 24, .6)); }
.msg-author + .supporter-tag { margin-left: 2px; font-size: 12px; }
.member-card { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }

.home-view { overflow-y: auto; }
.home-inner { max-width: 640px; margin: 0 auto; padding: 48px 20px; }
.home-inner h1 { margin: 0 0 8px; }
.home-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 30px; }
.home-online h3 { font-size: 12px; color: var(--muted); }
.empty-home { padding: 40px; text-align: center; }

.chat-view { display: grid; grid-template-rows: 1fr auto auto; }
.messages { overflow-y: auto; padding: 16px 0 8px; overflow-anchor: none; }
.loading { padding: 20px; color: var(--muted); text-align: center; }
.chat-start { padding: 16px 20px 20px; }
.chat-start h2 { margin: 0 0 4px; font-size: 26px; }
.day-sep { display: flex; align-items: center; gap: 10px; margin: 16px 20px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.msg { position: relative; display: grid; grid-template-columns: 56px 1fr; padding: 4px 20px 4px 12px; margin-top: 12px; }
.msg.grouped { margin-top: 0; padding-top: 1px; padding-bottom: 1px; }
.msg:hover { background: rgba(0,0,0,.12); }
.msg.pending { opacity: .55; }
.msg-gutter { display: flex; justify-content: center; padding-top: 2px; }
.hover-time { visibility: hidden; font-size: 11px; color: var(--muted); padding-top: 4px; }
.msg:hover .hover-time { visibility: visible; }
.msg-body { min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-author { font-weight: 600; color: #fff; }
.msg-time { font-size: 12px; color: var(--muted); }
.msg-text { line-height: 1.45; overflow-wrap: anywhere; white-space: normal; color: var(--text); }
.msg-text a { word-break: break-all; }
.edited { font-size: 11px; color: var(--muted); }
.msg-actions { position: absolute; right: 16px; top: -14px; display: none; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 2px; z-index: 2; }
.msg:hover .msg-actions { display: flex; }
.msg-actions button { background: none; border: 0; padding: 4px 7px; border-radius: 6px; }
.msg-actions button:hover { background: var(--bg-hover); }
.edit-wrap { display: grid; gap: 4px; margin-top: 4px; }
.edit-box { width: 100%; min-height: 44px; }
.edit-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.msg-actions .act-save { padding: 4px 7px; border-radius: 6px; text-decoration: none; }
.msg-actions .act-save:hover { background: var(--bg-hover); }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.att-image img { max-width: min(420px, 100%); max-height: 320px; border-radius: 8px; display: block; background: var(--bg-elev); }
.att-video { max-width: min(680px, 100%); max-height: 460px; border-radius: 8px; background: #000; }
.att-file { display: flex; align-items: center; gap: 10px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; text-decoration: none; color: var(--text); max-width: 360px; }
.att-icon { font-size: 26px; }
.att-meta { display: grid; min-width: 0; flex: 1; }
.att-name { color: #8fb4ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-size { font-size: 12px; color: var(--muted); }
.typing { height: 20px; padding: 0 20px; font-size: 12px; color: var(--text-2); }
.composer { padding: 0 16px 16px; }
.composer-row { display: flex; align-items: flex-end; gap: 4px; background: var(--bg-input); border-radius: 10px; padding: 4px 6px; }
.composer textarea { flex: 1; min-width: 0; background: transparent; border: 0; resize: none; max-height: 200px; padding: 9px 4px; line-height: 1.4; }
.composer textarea:focus { border: 0; }
.pending { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.chip { display: flex; align-items: center; gap: 6px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 4px 6px 4px 4px; font-size: 13px; max-width: 240px; }
.chip img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-progress { color: var(--muted); font-size: 12px; }
.chip.uploading { opacity: .8; }
.chip button { background: none; border: 0; color: var(--muted); }
.drop-overlay { position: fixed; inset: 0; background: rgba(106,92,255,.25); border: 3px dashed var(--accent); display: grid; place-items: center; font-size: 24px; font-weight: 700; z-index: 60; pointer-events: none; }

.voice-view { display: grid; grid-template-rows: 1fr auto; position: relative; background: #111217; }
.voice-lobby { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; z-index: 1; background: var(--bg-main); }
.lobby-card { text-align: center; display: grid; gap: 10px; justify-items: center; }
.lobby-card h2 { margin: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.lobby-icon { font-size: 48px; }
.lobby-people { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 6px 0 10px; }
.stage { position: relative; padding: 14px; overflow: auto; min-height: 0; display: grid; gap: 12px; align-content: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.empty-stage { grid-column: 1 / -1; text-align: center; padding: 12vh 16px; }
.empty-icon { font-size: 44px; }
.empty-stage h2 { margin: 10px 0 6px; font-size: 19px; }
.tile { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; border: 2px solid transparent; cursor: pointer; }
.tile:hover { border-color: var(--border); }
.tile video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.tile.cam video { object-fit: cover; }
.tile.cam.mirror video { transform: scaleX(-1); }
/* Em ecrã inteiro o tijolo deixa de respeitar o 16:9 e enche o ecrã todo. */
.tile:fullscreen, .tile:-webkit-full-screen { width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; }
.tile:fullscreen video, .tile:-webkit-full-screen video { width: 100%; height: 100%; object-fit: contain; }
.tile video:fullscreen, .tile video:-webkit-full-screen { object-fit: contain; background: #000; }
.tile .overlay { position: absolute; inset: auto 0 0 0; padding: 10px 12px; display: flex; align-items: center; gap: 8px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 14px; }
.tile .who { font-weight: 600; }
.tile .what { color: #cfd3de; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.badge { background: var(--live); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.badge.q, .badge.cam { background: rgba(255,255,255,.15); font-weight: 500; }
.tile .tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tile .tools button { background: rgba(0,0,0,.5); border: 0; border-radius: 6px; padding: 4px 7px; }
.tile .tools .hide-live { padding-left: 9px; padding-right: 9px; white-space: nowrap; }
.tile .tools input[type=range] { width: 80px; padding: 0; accent-color: var(--accent); }
.tile .status { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: 14px; pointer-events: none; }
.tile .unmute { position: absolute; top: 10px; right: 10px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; }
.tile:fullscreen { border: 0; border-radius: 0; }
.stage.focus { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.stage.focus .tile.big { grid-column: 1 / -1; order: -1; }
.stage.focus .tile:not(.big) .what, .stage.focus .tile:not(.big) .tools, .stage.focus .tile:not(.big) .badge { display: none; }
.voice-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--bg-side); }
.voice-controls .group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.voice-controls .share input { width: 220px; }

.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
.modal::backdrop { background: rgba(0,0,0,.65); }
.modal-card { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); display: grid; grid-template-rows: auto 1fr auto; background: var(--bg-side); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.modal.wide .modal-card { width: min(760px, calc(100vw - 24px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 8px 18px 18px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; background: var(--bg-rail); }
.box { background: var(--bg-elev); border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.box h3 { margin: 0; font-size: 15px; }
.radio-card { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); }
.radio-card span:last-child { display: grid; }
.radio-card small { color: var(--muted); }
.rc-icon { font-size: 22px; width: 28px; text-align: center; }
.invite-link { flex: 3 !important; }
.invite-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg-elev); border-radius: 8px; padding: 8px 10px; }
.invite-row .muted { flex: 1; font-size: 13px; }
.settings { display: grid; grid-template-columns: 170px 1fr; gap: 18px; min-height: 360px; }
.tabs { display: grid; gap: 2px; align-content: start; }
.tabs button { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; color: var(--text-2); }
.tabs button:hover { background: var(--bg-hover); }
.tabs button.active { background: var(--bg-elev); color: #fff; }
.tab-content { min-width: 0; }
.danger-zone { border: 1px solid #d83a52; border-radius: 10px; padding: 14px; }
.danger-zone h3 { margin: 0; }
.pick-list { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.pick-list .muted { margin-left: auto; font-size: 12px; }
.meter-row { display: flex; align-items: center; gap: 10px; }
.meter { flex: 1; height: 8px; background: var(--bg-rail); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.meter-fill { height: 100%; width: 0; background: var(--ok); transition: width .08s linear; }
.cam-preview { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; object-fit: cover; transform: scaleX(-1); }
.popup-menu { position: fixed; z-index: 70; min-width: 220px; max-width: 300px; background: #111217; border: 1px solid var(--border); border-radius: 10px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.popup-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 2px; }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; font-size: 14px; }
.menu-item:hover { background: var(--grad); color: #fff; }
.menu-item.danger { color: #ff6b81; }
.menu-item.danger:hover { background: #d83a52; color: #fff; }
.icon-preview { display: grid; place-items: center; }

.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; width: min(92vw, 460px); }
.toast { background: var(--bg-elev); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.clickable { cursor: pointer; }
.toast.clickable:hover { border-color: var(--border-2); }
.toast.warn { border-left-color: var(--warn); }
.toast.err { border-left-color: var(--live); }
.conn-banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--warn); color: #111; font-weight: 600; padding: 8px 16px; border-radius: 999px; z-index: 80; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; }

@media (max-width: 1099px) {
  .layout { grid-template-columns: 72px 250px 1fr; }
  .member-panel { position: fixed; right: 0; top: 0; bottom: 0; z-index: 40; box-shadow: -10px 0 30px rgba(0,0,0,.4); }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .rail, .sidebar { position: fixed; top: 0; bottom: 0; z-index: 40; transform: translateX(calc(-100% - 90px)); transition: transform .2s; visibility: hidden; }
  .layout.drawer-open .rail, .layout.drawer-open .sidebar { visibility: visible; }
  .rail { left: 0; width: 72px; }
  .sidebar { left: 72px; width: min(280px, calc(100vw - 72px)); }
  .layout.drawer-open .rail, .layout.drawer-open .sidebar { transform: none; }
  .mobile-only { display: inline-flex; }
  .settings { grid-template-columns: 1fr; }
  .tabs { display: flex; overflow-x: auto; }
  .msg { grid-template-columns: 48px 1fr; padding-right: 10px; }
  .voice-controls .share input { width: 100%; }
  .voice-controls .share { flex: 1 1 100%; }
  .composer { padding: 0 8px 10px; }
}

.pw-wrap { position: relative; display: grid; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.eye-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 4px 6px; font-size: 16px; opacity: .7; border-radius: 6px; line-height: 1; }
.eye-btn:hover { opacity: 1; background: var(--bg-hover); }
.icon-edit { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; }
.icon-edit::after { content: '📷'; position: absolute; right: -2px; bottom: -2px; background: var(--grad); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; border: 3px solid var(--bg-side); }

.rail-btn.install { background: var(--bg-elev); color: var(--cyan); font-size: 20px; border-radius: 50%; margin-top: auto; transition: border-radius .15s, background .15s; }
.rail-btn.install:hover { background: var(--grad); color: #fff; border-radius: 14px; }
.install-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(62,202,220,.12), rgba(192,38,211,.12)); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 26px; }
.install-card img { width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto; }
.install-card > div { flex: 1; min-width: 0; }
.install-card p { margin: 2px 0 0; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.4; }

@media (hover: none) {
  .msg:hover { background: none; }
  .msg:hover .msg-actions { display: none; }
  .msg.show-actions { background: rgba(0,0,0,.14); }
  .msg.show-actions .msg-actions { display: flex; }
  .msg-actions { top: -18px; }
  .msg-actions button { padding: 8px 12px; font-size: 16px; }
  .ch-gear { opacity: .7; }
  .ch-chat { opacity: .7; }
  .hover-time { display: none; }
  .tile .tools button { padding: 7px 10px; }
}

.composer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.user-panel { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.voice-controls { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.main-header { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }

@media (max-width: 760px) {
  input, select, textarea, .composer textarea { font-size: 16px; }
  .auth-card { padding: 22px 18px; border-radius: 14px; }
  .main-header { height: 50px; }
  .main-title { font-size: 16px; }
  .messages { padding-top: 8px; }
  .chat-start { padding: 12px 14px 16px; }
  .chat-start h2 { font-size: 21px; }
  .day-sep { margin: 12px 12px 4px; }
  .msg { padding: 4px 10px 4px 4px; }
  .msg-actions { right: 8px; }
  .att-image img, .att-video { max-width: 100%; }
  .typing { padding: 0 12px; }
  .stage { padding: 8px; gap: 8px; grid-template-columns: 1fr; }
  .tile .overlay { padding: 8px; gap: 6px; font-size: 13px; flex-wrap: wrap; }
  .tile .tools input[type=range] { width: 64px; }
  .voice-controls { padding: 8px 10px; gap: 8px; }
  .voice-controls .group:last-child { margin-left: auto; }
  .voice-controls .btn { padding: 8px 10px; }
  .home-inner { padding: 28px 16px; }
  .install-card { flex-wrap: wrap; }
  .install-card .btn { width: 100%; }
  .modal-card, .modal.wide .modal-card { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .modal { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .modal-body { padding: 8px 14px 16px; }
  .settings { min-height: 0; gap: 12px; }
  .tabs button { white-space: nowrap; }
  .row { flex-wrap: wrap; }
  .member-panel { width: min(280px, 85vw); }
  .popup-menu { max-width: calc(100vw - 16px); }
  .menu-item { padding: 11px 12px; }
  .side-item, .ch-main { padding-top: 9px; padding-bottom: 9px; }
  .rail-btn.install { margin-top: 8px; }
}
@media (max-width: 380px) {
  .voice-controls .share select { flex: 1; }
  .voice-controls #vcMute span { display: none; }
  .msg { grid-template-columns: 44px 1fr; }
  .msg-gutter .avatar { width: 34px !important; height: 34px !important; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .main-header { height: 42px; }
  .stage { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .empty-stage { padding: 4vh 16px; }
}
@media (min-width: 1800px) {
  .layout { grid-template-columns: 72px 280px 1fr auto; }
  .member-panel { width: 280px; }
  .msg-text { font-size: 16px; }
}

.settings { grid-template-columns: 170px minmax(0, 1fr); }
.tabs { min-width: 0; }
.modal-body hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 6px 0; }
.modal-body .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 760px) {
  .settings { grid-template-columns: minmax(0, 1fr); }
  .field input, .field select, .field textarea, .pw-wrap { min-width: 0; max-width: 100%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .voice-controls { flex-wrap: nowrap; overflow-x: auto; padding: 6px 10px; }
  .voice-controls .share { flex: 0 1 auto; flex-wrap: nowrap; }
  .voice-controls .share input { width: 170px; }
  .voice-controls .btn { padding: 6px 9px; }
  .voice-controls .group:last-child { margin-left: 0; }
}

.ch-lock { font-size: 11px; opacity: .7; margin-left: auto; }
.ch-limit { font-size: 11px; color: var(--muted); background: var(--bg-rail); border-radius: 999px; padding: 1px 7px; margin-left: auto; flex: 0 0 auto; }
.ch-lock + .ch-limit { margin-left: 4px; }
.ch-limit.full { color: #fff; background: #b3263c; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-btn { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--text-2); }
.chip-btn.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.limit-custom { width: 70px; padding: 6px 8px; border-radius: 999px; text-align: center; }
.role-checks { display: grid; gap: 4px; padding-left: 4px; max-height: 240px; overflow-y: auto; }
.role-check { padding: 6px 8px; border-radius: 8px; }
.role-check:hover { background: var(--bg-hover); }
.role-check.locked { opacity: .45; }
.role-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: 0 0 auto; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.role-dot.big { width: 18px; height: 18px; }
.role-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.role-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-elev); border-radius: 6px; padding: 2px 7px; font-size: 12px; }
.mc-info { min-width: 0; flex: 1; }
/* Nome comprido no cartão de membro não pode transbordar o cartão. */
.mc-info > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-info > .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.between { justify-content: space-between; }
.row.between > p { flex: 1 1 240px; margin: 0; font-size: 13px; }
.role-row { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border-radius: 10px; padding: 10px 12px; }
.role-row.locked { opacity: .55; }
.role-meta { flex: 1; min-width: 0; display: grid; }
.role-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.empty-roles { text-align: center; padding: 20px; color: var(--muted); background: var(--bg-elev); border-radius: 12px; }
.empty-roles div { font-size: 34px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; padding: 0; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.swatches input[type=color] { width: 36px; height: 30px; padding: 0; border-radius: 8px; background: none; }
.role-preview { font-weight: 700; }
.perm-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.perm { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px; cursor: pointer; }
.perm:has(input:checked) { border-color: var(--accent); }
.perm.locked { opacity: .45; cursor: not-allowed; }
.perm span { display: grid; gap: 2px; }
.perm small { color: var(--muted); font-size: 12px; }
.perm input { margin-top: 3px; }
@media (max-width: 760px) {
  .role-row { flex-wrap: wrap; }
  .role-actions { width: 100%; justify-content: flex-start; }
}

.terms-check { align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.terms-check input { margin-top: 3px; flex: 0 0 auto; }
.legal-links { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.legal-links a { color: var(--muted); }
.legal-links a:hover { color: var(--text); }
.modal-body a.btn { text-decoration: none; color: var(--text); }
.meeting-badge { font-size: 12px; font-weight: 700; color: #ffd166; background: rgba(255,209,102,.12); border: 1px solid rgba(255,209,102,.35); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

.live-preview { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #1d3b4f, #2b1d4f 60%, #4f1d44); border: 1px solid var(--border); }
.lp-game { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: rgba(255,255,255,.45); }
.lp-cam { position: absolute; display: grid; place-items: center; background: #111; border: 3px solid transparent; border-image: var(--grad) 1; font-size: 20px; transition: all .15s; }
.lp-cam.shape-circle { border-radius: 50%; border-image: none; border-color: #6a5cff; aspect-ratio: 1; }
.lp-cam.shape-rect { aspect-ratio: 16 / 9; border-radius: 4px; }
.lp-cam.size-s { width: 18%; } .lp-cam.size-m { width: 25%; } .lp-cam.size-l { width: 34%; }
.lp-cam.pos-tl { top: 4%; left: 2%; } .lp-cam.pos-tr { top: 4%; right: 2%; }
.chroma-hint { margin-bottom: 0; }
.chroma-note { font-size: 12px; color: var(--text-2); background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.18); border-radius: 10px; padding: 8px 10px; }
.lp-cam.pos-bl { bottom: 4%; left: 2%; } .lp-cam.pos-br { bottom: 4%; right: 2%; }
.lp-cam.hidden { display: none; }
/* Layout vertical: câmera em cima, jogo em baixo (preview). --split = altura da câmera. */
.live-preview.split { aspect-ratio: 9 / 16; max-height: 300px; margin: 0 auto; --split: 50%; }
.live-preview.split .lp-game { inset: var(--split) 0 0 0; background: #000; }
.live-preview.split .lp-cam { inset: 0 0 calc(100% - var(--split)) 0 !important; width: auto !important; border-image: none; border: 0; border-bottom: 2px solid var(--accent); border-radius: 0; }
.gate-meter { position: relative; overflow: visible; }
.gate-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; background: #ffd166; border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 6px rgba(255,209,102,.8); }
.meter-fill.closed { background: #6b6f80; }
.tips { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.tips summary { cursor: pointer; font-weight: 600; }
.tips ul { margin: 10px 0 2px; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }

.vp.movable { cursor: grab; }
.vp.movable:hover { background: var(--bg-hover); }
.vp.movable:active { cursor: grabbing; }
.side-item.channel.drop-target { background: rgba(62,202,220,.18); outline: 2px dashed var(--cyan); outline-offset: -2px; }
body.dragging-vp .side-item.channel .ch-main { pointer-events: none; }

.chat-view { display: block; }
.chat-panel { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
.voice-view { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); position: relative; background: #111217; }
.voice-main { position: relative; display: grid; grid-template-rows: 1fr auto; min-width: 0; min-height: 0; }
.voice-chat { width: 360px; min-height: 0; display: none; grid-template-rows: auto minmax(0, 1fr); border-left: 1px solid var(--border); background: var(--bg-main); }
.voice-chat.open { display: grid; }
.vchat-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.vchat-slot { min-height: 0; display: grid; }
.voice-chat .messages { padding-top: 8px; }
.voice-chat .chat-start h2 { font-size: 18px; }
.voice-chat .msg { grid-template-columns: 46px 1fr; padding-left: 6px; padding-right: 10px; }
.voice-chat .msg-gutter .avatar { width: 34px !important; height: 34px !important; }
.voice-chat .composer { padding: 0 10px 10px; }
.voice-view, .voice-chat, .vchat-slot { overflow: hidden; }
.voice-chat, .vchat-slot, .chat-panel { grid-template-columns: minmax(0, 1fr); }
.composer, .composer-row { min-width: 0; }
.voice-chat .composer-row { gap: 0; padding: 4px; }
.voice-chat .composer-row .btn.icon { width: 32px; min-width: 32px; padding: 0; }
.voice-chat .att-image img, .voice-chat .att-video { max-width: 100%; }
.chat-toggle { position: relative; }
.chat-toggle.active { background: var(--bg-elev); }
.chat-toggle .dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--bg-main); }
@media (max-width: 1280px) { .voice-chat { width: 320px; } }
@media (max-width: 899px) {
  .voice-chat { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); z-index: 20; box-shadow: -12px 0 30px rgba(0,0,0,.45); }
}

h1, h2, .modal-head h2, .side-title, .chat-start h2 { font-family: var(--font-display); letter-spacing: -.01em; }
.modal-head h2 { font-size: 18px; }
.chat-start h2 { font-weight: 700; }
.layout { grid-template-columns: 76px 260px 1fr auto; }
@media (max-width: 1099px) { .layout { grid-template-columns: 76px 260px 1fr; } }
@media (min-width: 1800px) { .layout { grid-template-columns: 76px 280px 1fr auto; } }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }
.rail { background: var(--bg-rail); border-right: 1px solid #1a1c28; gap: 8px; padding: 18px 0 16px; }
.rail-logo { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 15px; background: none; margin-bottom: 14px; flex: 0 0 auto; }
.rail-logo img { width: 46px; height: 46px; border-radius: 15px; display: block; }
.nav-btn { position: relative; width: 50px; height: 50px; border-radius: 16px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; transition: background .12s, color .12s; }
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn:hover { background: var(--bg-elev); color: var(--text); }
.nav-btn.active { background: var(--bg-elev); color: var(--cyan); }
.nav-btn.unread::after { content: ''; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--live); border: 2px solid var(--bg-rail); }
.rail-spacer { flex: 1 1 auto; }
.rail #installBtn, .rail #adminBtn { font-size: 0; }

.srv-switch { display: inline-flex; align-items: center; gap: 8px; height: 38px; max-width: 100%; min-width: 0; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid #2a2e40; background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; line-height: 1; }
.srv-switch:hover { border-color: var(--border-2); background: var(--bg-elev); }
.srv-switch .server-icon { border-radius: 10px !important; flex: 0 0 auto; }
.srv-switch .sw-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-switch .sw-live { font-size: 12px; color: #ff6b84; white-space: nowrap; }
.srv-switch .sw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: 0 0 auto; }
.srv-switch svg { flex: 0 0 auto; color: var(--muted); }
.side-header .srv-switch, .side-switch .srv-switch { width: 100%; justify-content: flex-start; }
.side-switch { padding: 4px 0 10px; }
.side-switch .srv-switch .sw-name { flex: 1; text-align: left; }
.side-header .srv-switch .sw-name { flex: 1; text-align: left; }
.srv-menu { display: grid; gap: 2px; min-width: 300px; }
.srv-menu-title { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; padding: 8px 10px 4px; }
.srv-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 0; background: none; text-align: left; }
.srv-row:hover { background: var(--bg-elev); }
.srv-row.current { background: var(--bg-elev); }
.srv-row .server-icon { border-radius: 12px !important; flex: 0 0 auto; }
.srv-row .srv-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.srv-row strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-row .srv-sub { font-size: 12px; font-weight: 600; color: var(--muted); }
.srv-row .srv-sub.live { color: #ff6b84; }
.srv-row .srv-sub.voice { color: #4ade80; }
.srv-row .srv-cur { font-size: 12px; color: var(--cyan); font-weight: 700; }
.srv-row .srv-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.popup-menu:has(.srv-menu) { max-width: 360px; }
.popup-menu { border-radius: 16px; background: #11131b; border-color: var(--border-2); padding: 8px; }

.layout.palco-mode { grid-template-columns: 76px minmax(0, 1fr); }
.layout.palco-mode .sidebar, .layout.palco-mode .member-panel { display: none; }
.layout.palco-mode .main-header { display: none; }
.layout.palco-mode .main { grid-template-rows: 1fr; }
.palco-view { overflow-y: auto; }
.palco { display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 100%; }
.palco-main { padding: 26px 32px 120px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.palco-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.palco-head .ph-left { display: grid; gap: 10px; min-width: 0; justify-items: start; }
.palco-head h1 { margin: 0; font-size: 30px; font-weight: 700; }
.btn-live { height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--live); color: #fff; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 9px; }
.btn-live::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.btn-live:hover { filter: brightness(1.08); }
.stories { display: flex; gap: 18px; overflow-x: auto; padding: 12px 4px 6px; scrollbar-width: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; flex: 0 0 auto; background: none; border: 0; padding: 0; color: var(--text); }
.story .ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: #2a2e40; display: grid; }
.story.live .ring { background: var(--grad); }
.story.voice .ring { background: var(--ok); }
.story .ring .avatar { width: 100% !important; height: 100% !important; border: 3px solid var(--bg-main); border-radius: 50%; font-size: 22px !important; }
.story .st-name { font-size: 13px; font-weight: 700; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .st-sub { font-size: 11px; font-weight: 800; color: var(--muted); margin-top: -4px; letter-spacing: .02em; }
.story.live .st-sub { color: #ff6b84; }
.story.voice .st-sub { color: #4ade80; }
.lives { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.live-card { border-radius: 22px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; }
.live-card .lc-shot { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; background: linear-gradient(160deg, #1b3a4a, #0f1a2e 60%, #231236); cursor: pointer; border: 0; padding: 0; color: #c9d6e6; width: 100%; }
.live-card:nth-child(2n) .lc-shot { background: linear-gradient(160deg, #3a1b3c, #1a1030 60%, #0f2233); }
.live-card:nth-child(3n) .lc-shot { background: linear-gradient(160deg, #1f3a2a, #0f1f1a 60%, #1a1236); }
.lc-shot .lc-game { font-family: var(--font-display); font-size: 22px; font-weight: 700; padding: 0 20px; text-align: center; }
.lc-shot .lc-badge { position: absolute; top: 14px; left: 14px; background: var(--live); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.lc-shot .lc-viewers { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.lc-shot .lc-cam { position: absolute; left: 14px; bottom: 14px; background: rgba(0,0,0,.55); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.lc-foot { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.lc-foot .lc-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lc-foot strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-foot .lc-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-watch { height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--text); color: #0d0e14; font-weight: 800; font-size: 14px; white-space: nowrap; }
.btn-watch:hover { background: #fff; }
.palco-empty { border-radius: 22px; border: 1px dashed var(--border-2); padding: 42px 24px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.palco-empty h2 { margin: 0; font-size: 20px; }
.palco-empty p { margin: 0; color: var(--muted); max-width: 440px; line-height: 1.5; }
.palco-aside { border-left: 1px solid #1a1c28; padding: 26px 22px 120px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.crew-card { border-radius: 20px; padding: 18px; background: linear-gradient(135deg, rgba(62,202,220,.14), rgba(192,38,211,.14)); border: 1px solid var(--border-2); display: grid; gap: 10px; }
.crew-card strong { font-family: var(--font-display); font-size: 16px; }
.crew-card p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.crew-card button { height: 44px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.crew-card button:disabled { opacity: .6; cursor: default; }
.aside-title { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.aside-sec { display: grid; gap: 10px; }
.room-card { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 12px 14px; display: grid; gap: 10px; text-align: left; width: 100%; color: var(--text); }
.room-card:hover { border-color: var(--border-2); background: #1a1d2a; }
.room-card.empty { background: none; border-style: dashed; color: var(--muted); }
.room-card.here { border-color: var(--ok); }
.room-card .rc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.room-card .rc-top strong { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-card .rc-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.room-card .rc-people { display: flex; gap: 6px; flex-wrap: wrap; }
.last-msg { font-size: 14px; line-height: 1.5; color: var(--text-2); background: none; border: 0; padding: 0; text-align: left; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.last-msg strong { margin-right: 4px; }
.last-msg:hover { color: var(--text); }

.voice-pill { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 25; display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 999px; background: #1e2130; border: 1px solid var(--border-2); box-shadow: 0 14px 40px rgba(0,0,0,.5); max-width: calc(100vw - 24px); }
.voice-pill .vp-where { background: none; border: 0; color: #4ade80; font-weight: 800; font-size: 13px; padding: 0 10px 0 8px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-pill .pill-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #2a2e40; color: var(--text); display: grid; place-items: center; flex: 0 0 auto; }
.voice-pill .pill-btn svg { width: 20px; height: 20px; }
.voice-pill .pill-btn.on { background: rgba(255,59,92,.2); color: #ff6b84; }
.voice-pill .pill-leave { width: 54px; border-radius: 999px; background: #e11d48; color: #fff; }

@media (max-width: 1180px) {
  .palco { grid-template-columns: minmax(0, 1fr); }
  .palco-aside { border-left: 0; border-top: 1px solid #1a1c28; padding-top: 22px; }
}
@media (max-width: 760px) {
  .layout.palco-mode { grid-template-columns: 1fr; }
  .layout.palco-mode .main-header { display: flex; }
  .layout.palco-mode .main { grid-template-rows: auto 1fr; }
  .layout.palco-mode .sidebar { display: grid; }
  .rail { width: 76px; }
  .sidebar { left: 76px; width: min(280px, calc(100vw - 76px)); }
  .palco-main { padding: 16px 16px 24px; gap: 18px; }
  .palco-head h1 { font-size: 22px; }
  .palco-head .btn-live { width: 100%; justify-content: center; }
  .lives { grid-template-columns: 1fr; gap: 14px; }
  .palco-aside { padding: 18px 16px 110px; }
  .story { width: 64px; }
  .story .ring { width: 58px; height: 58px; }
  .voice-pill .vp-where { max-width: 120px; }
}

.msg.has-reply { margin-top: 6px; }
.msg-reply { display: flex; align-items: center; gap: 6px; max-width: 100%; background: none; border: 0; padding: 0 0 2px; font-size: 13px; color: var(--muted); text-align: left; cursor: pointer; }
.msg-reply:hover { color: var(--text-2); }
.msg-reply .mr-arrow { color: var(--cyan); font-weight: 800; }
.msg-reply strong { color: var(--text-2); white-space: nowrap; }
.msg-reply .mr-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.msg.flash { background: rgba(62,202,220,.14) !important; transition: background .3s; }
.msg.bot .msg-author { color: #22C55E !important; font-weight: 800; }
.bot-tag { font-size: 10px; font-weight: 800; background: #5865F2; color: #fff; border-radius: 4px; padding: 1px 5px; letter-spacing: .04em; }
.bot-avatar { border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 2px #22C55E, 0 0 10px rgba(34,197,94,.35); background: #0F172A; }
.bot-avatar.elfo-mood { object-fit: contain; object-position: center bottom; background: radial-gradient(circle at 50% 60%, #16323a, #0F172A 70%); }
.bot-avatar.mood-serio { filter: grayscale(1) contrast(1.05); box-shadow: 0 0 0 2px #9ca3af; }
.elfo-thinking { display: inline-flex; align-items: center; gap: 6px; color: #22C55E; }
.elfo-thinking img { width: 18px; height: 18px; animation: elfo-bob 1.2s ease-in-out infinite; }
@keyframes elfo-bob { 50% { transform: translateY(-2px) rotate(-4deg); } }
.elfo-sleep { width: 96px; height: 96px; object-fit: contain; display: block; margin: 0 auto 8px; opacity: .92; animation: elfo-breathe 3.2s ease-in-out infinite; }
@keyframes elfo-breathe { 50% { transform: scale(1.03); } }
.chat-start.is-empty { text-align: center; padding-top: 40px; }
.elfo-name { color: #22C55E; display: inline-flex; align-items: center; gap: 4px; }
.elfo-mini { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px #22C55E; }
.elfo-grid img.cemoji { width: 28px; height: 28px; }
.elfo-emotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.elfo-emotes figure { margin: 0; text-align: center; padding: 6px 4px; border-radius: 10px; background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.18); }
.elfo-emotes img { width: 48px; height: 48px; object-fit: contain; }
.elfo-emotes figcaption { font-size: 10px; color: var(--text-2); word-break: break-all; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.reaction { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--text-2); }
.reaction:hover { border-color: var(--border-2); background: var(--bg-elev); }
.reaction.mine { border-color: var(--accent); background: rgba(59,91,255,.18); color: var(--text); }
.reaction .r-count { font-size: 12px; font-weight: 800; }
.reaction.add { opacity: .6; padding: 0 8px; }
.reaction.add:hover { opacity: 1; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 40px); gap: 4px; padding: 4px; }
.emoji-grid button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; font-size: 22px; }
.emoji-grid button:hover { background: var(--bg-elev); }
.reply-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 12px; margin-bottom: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.reply-bar .rb-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar strong { color: var(--text); }

.quote-line { display: inline-block; border-left: 3px solid var(--border-2); padding-left: 8px; color: var(--text-2); }
.mention { background: rgba(59,91,255,.18); color: #b9c6ff; border-radius: 4px; padding: 0 3px; font-weight: 700; }
.mention.me { background: rgba(245,166,35,.22); color: #ffd28a; }
.cemoji { width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; }
.reaction .cemoji { width: 18px; height: 18px; vertical-align: -4px; }
.game-icon { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 28%; overflow: hidden; color: #fff; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
.game-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; }
.game-pick { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 700; text-align: center; }
.game-pick:hover, .game-pick.on { border-color: var(--accent); background: rgba(59,91,255,.12); }
.game-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.game-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sound-emoji { font-size: 26px; width: 40px; text-align: center; }
.emoji-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.emoji-card { display: grid; justify-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.emoji-card img { width: 44px; height: 44px; object-fit: contain; }
.botzin-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 14px; background: #0F172A; border: 1px solid rgba(34,197,94,.35); }
.botzin-hero img.elfo-logo { width: min(100%, 360px); height: auto; border-radius: 10px; }
.botzin-hero p { margin: 2px 0 0; }
.botzin-tab h3 { margin: 10px 0 0; font-size: 15px; }
.gameid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
@media (max-width: 600px) { .gameid-grid { grid-template-columns: minmax(0, 1fr); } }
.rules-text { white-space: pre-wrap; line-height: 1.55; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }

.card-poll, .card-bet, .card-lfg { margin-top: 6px; max-width: min(460px, 100%); box-sizing: border-box; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 12px; display: grid; gap: 8px; }
.cp-q { font-weight: 800; font-size: 15px; }
.cp-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--bg-input); text-align: left; }
.cp-opt:hover:not(:disabled) { border-color: var(--accent); }
.cp-opt:disabled { cursor: default; opacity: .85; }
.cp-opt.mine { border-color: var(--accent); }
.cp-opt.won { border-color: var(--ok); }
.cp-bar { position: absolute; inset: 0 auto 0 0; background: rgba(59,91,255,.22); transition: width .3s; }
.cp-opt.won .cp-bar { background: rgba(35,197,94,.25); }
.cp-label, .cp-pct { position: relative; }
.cp-label { font-weight: 700; }
.cp-pct { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cp-foot, .cb-status { font-size: 12px; color: var(--muted); }
.cb-admin { gap: 8px; }
.card-lfg { background: linear-gradient(135deg, rgba(62,202,220,.1), rgba(59,91,255,.1)); }
.card-lfg.full { background: linear-gradient(135deg, rgba(35,197,94,.14), rgba(62,202,220,.1)); }
.cl-top { display: flex; gap: 10px; align-items: center; }
.cl-people { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cl-slot { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--border-2); display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 12px; }
.msg.bot .msg-text { background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.28); border-left: 3px solid #22C55E; border-radius: 12px; padding: 8px 12px; display: inline-block; max-width: 100%; }

.mention-box { display: grid; gap: 2px; padding: 6px; margin-bottom: 6px; border-radius: 14px; background: #11131b; border: 1px solid var(--border-2); max-height: 260px; overflow-y: auto; }
.mb-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; border: 0; background: none; text-align: left; }
.mb-item.on, .mb-item:hover { background: var(--bg-elev); }
.mb-special { width: 24px; text-align: center; font-size: 18px; }
.rec-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 6px; border-radius: 14px; background: rgba(255,59,92,.1); border: 1px solid rgba(255,59,92,.35); }
.rec-bar #recTime { font-weight: 800; font-variant-numeric: tabular-nums; }
.rec-bar .muted { flex: 1; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: .3; } }
#micBtn.on { color: var(--live); }
.emoji-picker { display: grid; gap: 4px; max-width: 300px; }
.ep-title { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; padding: 6px 6px 2px; }
.emoji-picker .emoji-grid { grid-template-columns: repeat(auto-fill, 40px); }
.emoji-picker .cemoji { width: 28px; height: 28px; }
.attachments audio { max-width: min(360px, 100%); }

.member-extras { display: grid; gap: 6px; padding: 0 12px 10px; font-size: 13px; color: var(--text-2); }
.mx-ids { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-id { display: grid; text-align: left; gap: 0; padding: 5px 9px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.mx-id small { font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mx-id:hover { border-color: var(--accent); }
.mx-totals { font-size: 12px; color: var(--muted); }
.mx-warned { font-size: 11px; font-weight: 800; color: #ff9a9a; background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.35); padding: 3px 9px; border-radius: 999px; width: fit-content; max-width: 100%; }
.mx-badges-head { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; margin-top: 4px; }
.mx-badges { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.badge-award { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(245,166,35,.15); color: #ffd28a; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-more { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--bg-elev); color: var(--text-2); border: 1px solid var(--border); cursor: pointer; }
.badge-more:hover { border-color: var(--border-2); color: var(--text); }
.badge-list { display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.badge-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge-row small { color: var(--muted); font-size: 12px; text-align: right; flex: 0 0 auto; }
.popup-menu.member-menu { max-width: 340px; }
.member-lines { display: grid; min-width: 0; flex: 1; }
.member-status { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lc-center { display: grid; justify-items: center; gap: 10px; }
.lc-center .game-icon { box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.story { position: relative; }
.st-game { position: absolute; top: 40px; right: 11px; z-index: 3; }
.st-game .game-icon { border: 2px solid var(--bg-main); }
.crew-btns { display: flex; gap: 8px; }
.crew-btns button { flex: 1; }
.crew-card button.secondary { background: rgba(255,255,255,.08); border: 1px solid var(--border-2); }
.crew-card .crew-push { background: none !important; height: auto !important; color: #c9cde0; font-weight: 600; padding: 0; text-align: left; }
.aside-head { display: flex; justify-content: space-between; align-items: center; }
.mini-link { background: none; border: 0; color: var(--cyan); font-weight: 800; font-size: 13px; padding: 2px 4px; }
.event-card { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 12px; display: grid; gap: 8px; }
.ev-top { display: flex; gap: 10px; align-items: center; }
.ev-info { display: grid; min-width: 0; }
.ev-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-people { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.ev-btns { display: flex; gap: 6px; }
.rank-group { display: grid; gap: 4px; }
.rank-group small { color: var(--muted); font-weight: 700; font-size: 12px; }
.rank-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rank-n { width: 18px; font-weight: 800; color: var(--muted); }
.rank-n.n1 { color: #facc15; } .rank-n.n2 { color: #cbd5e1; } .rank-n.n3 { color: #d97706; }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { color: var(--muted); font-size: 13px; white-space: nowrap; }
.my-points { font-size: 13px; color: var(--text-2); background: rgba(59,91,255,.12); border-radius: 10px; padding: 8px 10px; }

.game-chip { max-width: 220px; gap: 8px; }
.game-chip .gc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-chip.empty { border-style: dashed; color: var(--text-2); }
.tile .what { display: inline-flex; align-items: center; gap: 6px; }
.react-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.float-react { position: absolute; bottom: 8%; font-size: 34px; animation: floatup 2.5s ease-out forwards; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
@keyframes floatup { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: 1; transform: translateY(-10px) scale(1.1); } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }
.react-grid { grid-template-columns: repeat(4, 44px); }
.react-grid button { font-size: 26px; width: 44px; height: 44px; }
.soundboard { display: grid; gap: 6px; max-width: 320px; }
.sb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sb-item { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 700; }
.sb-item:hover { border-color: var(--accent); background: rgba(59,91,255,.12); }
.sb-emoji { font-size: 24px; }
.tile .tools button.on { background: rgba(255,59,92,.35); }
.voice-controls .group.fun .btn { font-size: 18px; }
@media (max-width: 760px) {
  .game-chip { max-width: 150px; }
  .card-poll, .card-bet, .card-lfg { max-width: 100%; }
}

.build-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }
.build-sources .bs-label { color: var(--text-2); font-weight: 700; }
.build-sources .bs-chip { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; color: #8fb4ff; text-decoration: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.build-sources .bs-chip:hover { border-color: #8fb4ff; }
.build-sources .bs-queries { flex-basis: 100%; color: var(--muted); }
.build-sources .bs-queries a { color: var(--text-2); }

.st-game .game-icon { width: 22px !important; height: 22px !important; border-radius: 7px; }
.lc-game-symbol { font-size: 46px; opacity: .85; }
.card-poll.closed { opacity: .88; }
.card-poll.closed .cp-opt { cursor: default; }
.card-poll .cp-opt:disabled { opacity: .78; }

.game-hub { margin: 20px 0 8px; padding: 16px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012)); border-radius: 20px; }
.game-hub-head h2 { margin: 0; font-size: 18px; }
.game-hub-head p { margin: 3px 0 12px; }
.game-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.game-hub-card { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); color: inherit; text-align: left; cursor: pointer; }
.game-hub-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.gh-info { min-width: 0; display: grid; gap: 3px; }
.gh-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-avatars { display: flex; align-items: center; }
.gh-avatars > * + * { margin-left: -6px; }
.mx-game { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: rgba(75, 92, 255, .09); border: 1px solid var(--border); }
@media (max-width: 600px) { .game-hub-grid { grid-template-columns: 1fr; } }

.game-icon.has-img { background: #0b0c10; }
.vp-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-icons { flex: 1 1 auto; }
.vp-game { margin-left: auto; display: inline-flex; flex: 0 0 auto; }
.vp-game .game-icon { border-radius: 6px; }
.streamer-tag { font-size: 12px; filter: saturate(1.3); }
.member-game { display: inline-flex; flex: 0 0 auto; margin-left: 4px; }
.member-game .game-icon { border-radius: 7px; }
.member-playing b { color: var(--text-2); font-weight: 700; }
.voice-bar { flex-wrap: wrap; }
.vb-game { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; padding: 2px 0 8px; margin-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 700; font-size: 14px; min-width: 0; }
.vb-game .game-icon { border-radius: 8px; }
.vb-game .vbg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.me-game { display: flex; align-items: center; gap: 5px; }
.me-game .game-icon { border-radius: 4px; }
.me-game span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-streamer { color: #ff6b8b; font-weight: 700; }
.streamer-banner { flex: 1 1 100%; order: -1; background: linear-gradient(90deg, rgba(255,45,85,.18), rgba(192,38,211,.18)); border: 1px solid rgba(255,45,85,.45); color: #ffd6df; font-size: 12px; padding: 6px 12px; border-radius: 10px; }
.streamer-banner b { color: #fff; }
.streamer-mode .sensitive { filter: blur(7px); transition: filter .15s; }
.streamer-mode .sensitive:hover, .streamer-mode .sensitive:focus { filter: none; }
@media (max-width: 700px) { .streamer-banner { font-size: 11px; padding: 5px 9px; } }
.mb-cmd strong { font-family: var(--font-mono, ui-monospace, monospace); }
.mb-cmd .mb-args { font-size: 11px; color: var(--text-2); background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.mb-cmd .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#composer.punished .composer-row { opacity: .75; outline: 1px dashed rgba(255, 90, 110, .6); }
#composer.punished textarea::placeholder { color: #ff8a9e; }
.mod-active { display: grid; gap: 6px; }
.mod-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); }
.mod-row-info { display: grid; flex: 1; min-width: 0; }
.mod-row-info .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-status { font-weight: 600; }
.mod-list { display: grid; gap: 4px; max-height: 180px; overflow: auto; }
.mod-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; font-size: 13px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.rules-list p { margin: 0 0 10px; line-height: 1.55; }
.rules-list h3 { margin: 14px 0 6px; }
.ar-progress { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); }
.ar-row { display: grid; grid-template-columns: auto 1fr 120px; gap: 8px; align-items: center; font-size: 13px; }
.ar-row > span:first-child:not(.game-icon) { grid-column: span 1; }
.ar-row:not(:has(.game-icon)) { grid-template-columns: 1fr 120px; }
.ar-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.ar-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #3ecadc, #3b5bff, #c026d3); }

.auth-wrap { width: 100%; max-width: 980px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px); gap: 36px; align-items: center; }
.auth-hero { display: grid; gap: 14px; color: var(--text); }
.auth-hero .brand { font-size: 20px; }
.hero-hello { margin: 6px 0 0; color: #7ee3f0; font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.hero-title { margin: 0; font-family: var(--font-display, inherit); font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.02em; }
.hero-title span { background: linear-gradient(90deg, #3ecadc, #3b5bff 55%, #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; max-width: 46ch; }
.hero-feats { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-feats li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.hero-feats .hf-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; font-size: 20px; border-radius: 11px; background: linear-gradient(135deg, rgba(62,202,220,.2), rgba(192,38,211,.2)); }
.hero-feats b { display: block; font-size: 14px; }
.hero-feats small { color: var(--muted); font-size: 12.5px; }
.hero-note { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.welcome-tip { display: flex; gap: 12px; align-items: flex-start; }
.welcome-tip .wt-icon { font-size: 22px; width: 32px; text-align: center; }
.welcome-tip p { margin: 2px 0 0; }
@media (max-width: 860px) {
  .auth { place-items: start center; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 460px; }
  .auth-hero { gap: 8px; text-align: left; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14.5px; }
  .hero-feats, .hero-note { display: none; }
}
.welcome-card { position: relative; margin: 4px 0 18px; padding: 18px 20px; border-radius: 20px; border: 1px solid rgba(62,202,220,.35); background: linear-gradient(135deg, rgba(62,202,220,.10), rgba(59,91,255,.08) 50%, rgba(192,38,211,.10)); display: grid; gap: 10px; }
.welcome-card h2 { margin: 0; font-size: 20px; padding-right: 30px; }
.welcome-card > p { margin: 0; }
.welcome-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.welcome-card .wc-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--text-2); }
.wc-actions { gap: 8px; flex-wrap: wrap; }

.unread-count { flex: 0 0 auto; min-width: 20px; height: 18px; padding: 0 6px; margin-left: auto; border-radius: 999px; background: var(--live); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg-side); font-variant-numeric: tabular-nums; }
.side-item .ch-main .unread-count { margin-left: 6px; }
.side-item.dm .unread-count { margin-left: auto; }
.sw-count { margin-left: 2px; }
.srv-row .unread-count { box-shadow: none; }
.nav-btn.unread[data-count]::after { content: attr(data-count); width: auto; min-width: 18px; height: 18px; padding: 0 5px; top: 4px; right: 2px; border-radius: 999px; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 14px; text-align: center; box-sizing: border-box; }

.vbg-text { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.vbg-text .vbg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbg-sub { font-size: 11.5px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-game-info { display: grid; min-width: 0; line-height: 1.25; }
.mx-game-info b, .mx-game-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detector-box { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(124, 92, 255, 0.45); background: rgba(124, 92, 255, 0.1); }
.detector-box p { margin: 0; }
.detector-box .row { display: flex; gap: 8px; flex-wrap: wrap; }
.detector-box.ok { display: block; border-color: rgba(59, 165, 93, 0.45); background: rgba(59, 165, 93, 0.1); }
.msg { padding-right: 40px; }
.msg-more { position: absolute; right: 8px; top: 4px; width: 28px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; opacity: .35; cursor: pointer; }
.msg-more.can-edit { opacity: .7; }
.msg:hover .msg-more, .msg.show-actions .msg-more, .msg-more:focus-visible { opacity: 1; background: var(--bg-hover); color: var(--text); }
.msg-actions { right: 40px; }
.voice-chat .msg { padding-right: 36px; }
.legal-links .credits { display: block; margin-top: 6px; opacity: .8; }
.img-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 6, 10, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 24px 24px; }
.img-viewer > img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.iv-bar { position: absolute; top: 10px; left: 16px; right: 16px; display: flex; align-items: center; gap: 8px; }
.iv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 600; }
.att-image { cursor: zoom-in; }
.popup-menu { max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; }
.srv-rows { display: grid; gap: 2px; max-height: min(52dvh, 440px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.srv-rows::-webkit-scrollbar, .popup-menu::-webkit-scrollbar { width: 8px; }
.srv-rows::-webkit-scrollbar-thumb, .popup-menu::-webkit-scrollbar-thumb { background: #2a2e40; border-radius: 8px; }
.status-dot.st-online { background: #23a55a; }
.status-dot.st-idle { background: #f0b232; }
.status-dot.st-idle::after { content: ''; position: absolute; left: -2px; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg-side); }
.status-dot.st-dnd { background: #f23f43; }
.status-dot.st-dnd::after { content: ''; position: absolute; left: 1px; right: 1px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--bg-side); }
.status-dot.st-invisible { background: var(--bg-side); box-shadow: inset 0 0 0 2px #80848e; }
.status-dot.st-playing { background: #23a55a; }
.status-dot.st-streaming { background: #9b59ff; }
.status-dot.st-offline { background: #5d6070; }
.status-dot { overflow: hidden; }
.me-status { cursor: pointer; }
.me-status:hover, .me-status:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.me-st-dnd { color: #f5868a; }
.me-st-idle { color: #f0c46a; }
.me-st-invisible { color: #a5a9b4; }
.me-st-streaming { color: #c4a5ff; }
.ptt-box { display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); }
.ptt-box[hidden] { display: none; }

/* 🎶 Música em grupo */
.music-dock { position: fixed; right: 16px; bottom: 96px; width: 320px; max-width: calc(100vw - 32px); z-index: 60; background: var(--bg-elev, #151822); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.45); overflow: hidden; }
.music-video { aspect-ratio: 16 / 9; background: #000; }
.music-frame { width: 100%; height: 100%; border: 0; display: block; }
.music-dock.mini .music-video { height: 1px; aspect-ratio: auto; overflow: hidden; opacity: 0; }
.music-info { display: grid; gap: 2px; padding: 8px 12px 0; min-width: 0; }
.music-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.music-by { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-ctrls { display: flex; align-items: center; gap: 4px; padding: 6px 8px 8px; }
.music-vol { flex: 1; min-width: 60px; accent-color: #22C55E; }
.music-vol-icon { font-size: 12px; margin-left: 4px; }
#vcMusic.on { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.5); }
@media (max-width: 640px) { .music-dock { right: 8px; left: 8px; width: auto; bottom: 150px; } }

/* 💬 Legendas */
.caption-box { position: fixed; left: 50%; transform: translateX(-50%); bottom: 110px; z-index: 61; width: min(720px, calc(100vw - 32px)); display: grid; gap: 4px; pointer-events: none; }
.caption-line { background: rgba(0,0,0,.78); color: #fff; padding: 6px 12px; border-radius: 10px; font-size: 16px; line-height: 1.35; text-align: center; text-shadow: 0 1px 2px #000; }
.caption-line b { color: #86efac; }
.caption-line.interim .caption-text { opacity: .75; }
#vcCaptions.on { background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.5); }
.swatch.none { display: grid; place-items: center; font-size: 11px; color: var(--muted); background: transparent; border: 1px dashed var(--border-2); }
.name-color-preview { font-weight: 800; }
.gather-toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 14px; background: #0F172A; border: 1px solid rgba(34,197,94,.5); box-shadow: 0 12px 40px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }

/* ☀️ Tema claro */
:root[data-theme="light"] {
  --bg-rail: #e2e5ee;
  --bg-side: #f1f2f7;
  --bg-main: #ffffff;
  --bg-elev: #ffffff;
  --bg-hover: #e7e9f1;
  --bg-input: #eceef4;
  --surface: #f5f6fa;
  --border: #dde0ea;
  --border-2: #c6cbd9;
  --text: #141722;
  --text-2: #363c50;
  --muted: #646b82;
  color-scheme: light;
}
:root[data-theme="light"] a { color: #2f55d4; }
:root[data-theme="light"] .btn.active { background: #e2e7ff; }
:root[data-theme="light"] .voice-bar { background: #e5f5eb; }
:root[data-theme="light"] .user-panel { background: #e6e8f0; }
:root[data-theme="light"] .popup-menu, :root[data-theme="light"] .mention-box { background: #ffffff; box-shadow: 0 12px 40px rgba(20,23,34,.18); }
:root[data-theme="light"] .story .ring { background: #d3d8e4; }
:root[data-theme="light"] .room-card:hover { background: #eef0f6; }
:root[data-theme="light"] .voice-pill .pill-btn { background: #e1e4ee; }
:root[data-theme="light"] .srv-rows::-webkit-scrollbar-thumb, :root[data-theme="light"] .popup-menu::-webkit-scrollbar-thumb { background: #c3c8d6; }
:root[data-theme="light"] .msg.bot .msg-text { background: rgba(34,197,94,.08); }
:root[data-theme="light"] .msg.bot .msg-author, :root[data-theme="light"] .elfo-name { color: #15803d !important; }
/* A sala de voz (vídeo) continua escura, como no cinema. */
:root[data-theme="light"] .stage, :root[data-theme="light"] .music-dock, :root[data-theme="light"] .gather-toast {
  --bg-elev: #1e2130; --bg-hover: #262a3c; --bg-input: #1a1d29; --surface: #161823; --border: #23263a; --border-2: #2f3450;
  --text: #eceef6; --text-2: #c9cde0; --muted: #9aa0b8; color: var(--text); color-scheme: dark;
}
:root[data-theme="light"] .side-item.active, :root[data-theme="light"] .side-item.unread .ch-name, :root[data-theme="light"] .msg-author, :root[data-theme="light"] .tabs button.active { color: var(--text); }
:root[data-theme="light"] .side-item.active { background: #e3e6f0; }
:root[data-theme="light"] .crew-card button.secondary { background: #fff; color: var(--text); }
:root[data-theme="light"] .crew-card .crew-push { color: var(--text-2); }
:root[data-theme="light"] .voice-view { background: var(--bg-main); }
:root[data-theme="light"] .stage { background: #111217; }
.mc-origin { padding: 0 12px 8px; line-height: 1.4; }

/* 🎞️ Estúdio de clipes */
.clip-studio .cs-previews { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.cs-prev { background: #000; border-radius: 10px; border: 1px solid var(--border-2); max-width: 100%; }
.cs-prev.wide { width: min(100%, 480px); height: auto; aspect-ratio: 16 / 9; }
.cs-prev.tall { width: 150px; height: auto; aspect-ratio: 9 / 16; cursor: ew-resize; touch-action: none; }
.cs-trim { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-trim label { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.cs-trim input, .cs-tall-opts input[type=range] { accent-color: #22C55E; width: 100%; }
.cs-range { font-size: 13px; color: var(--muted); }
.cs-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--bg-input); overflow: hidden; }
.cs-bar-fill { width: 0; height: 100%; background: #22C55E; transition: width .2s; }
.cs-results { display: grid; gap: 8px; }
.cs-result { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-result span { min-width: 170px; font-weight: 700; }
.att-video-wrap { display: grid; gap: 6px; justify-items: start; }
.att-edit { font-size: 12px; }

/* 📱 Vídeo do telemóvel a converter antes do envio */
.tap-continue { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9999; box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.chip .chip-note { font-size: 11px; opacity: .8; }
.att-video-fail { display: grid; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--bg-3, #1f2230); max-width: 480px; }
.home-hello { margin: 0 0 4px; font-weight: 700; color: var(--muted, #9aa3b2); }
.home-title { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; }
.home-title span { background: linear-gradient(90deg, #3ecadc, #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-sub { margin: 0 0 18px; font-size: 15px; }
.exe-card .exe-icon { width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto; display: grid; place-items: center; font-size: 28px; background: rgba(255,255,255,.06); }
.hero-exe { margin-top: 12px; justify-self: start; width: fit-content; }
.side-item.dm { position: relative; }
.side-item.dm .dm-del { margin-left: auto; opacity: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; font-size: 12px; color: var(--muted, #9aa3b2); }
.side-item.dm:hover .dm-del, .side-item.dm:focus-within .dm-del, .side-item.dm.active .dm-del { opacity: 1; }
.side-item.dm .dm-del:hover { background: rgba(239,68,68,.18); color: #f87171; }
@media (hover: none) { .side-item.dm .dm-del { opacity: .7; } }
.side-item.dm .unread-count + .dm-del { margin-left: 6px; }
.wm-request { display: grid; gap: 6px; }
.wm-request .hint { margin: 0; }
.wm-form { display: grid; gap: 6px; }
.wm-note { width: 100%; resize: vertical; }
.wm-status { margin: 0; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.05); }
.wm-status.pending { color: #fbbf24; }
.wm-status.denied { color: #f87171; }

/* 🛡️ Painel do administrador — separadores, localizador de pessoas */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.admin-tabs button { background: var(--bg-elev); border: 1px solid transparent; color: var(--text-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.admin-tabs button.active { background: rgba(62,202,220,.15); border-color: rgba(62,202,220,.45); color: var(--text, #fff); }
.admin-people { display: grid; gap: 10px; }
.admin-search-row { align-items: center; }
.admin-search { flex: 1; min-width: 0; }
.admin-people-list { display: grid; gap: 4px; max-height: 42vh; overflow: auto; }
.admin-person-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--bg-side); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; color: inherit; cursor: pointer; }
.admin-person-row:hover { background: var(--bg-hover); }
.apr-wrap { display: flex; gap: 6px; align-items: stretch; }
.apr-wrap .admin-person-row { flex: 1; min-width: 0; }
.apr-dm { flex: 0 0 auto; align-self: center; }
.apr-names { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.apr-names b, .apr-names span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apr-stats { display: flex; gap: 8px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; justify-content: flex-end; }
.admin-person { border: 1px solid rgba(62,202,220,.35); border-radius: var(--radius); padding: 12px; background: var(--bg-side); display: grid; gap: 8px; }
.admin-person h4 { margin: 8px 0 0; font-size: 14px; }
.ap-head { display: flex; align-items: center; gap: 10px; }
.ap-names { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ap-table { display: grid; gap: 4px; }
.ap-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg-elev); border-radius: 8px; padding: 6px 8px; font-size: 13px; border: 0; color: inherit; text-align: left; width: 100%; }
.ap-row.link-row { cursor: pointer; }
.ap-row.link-row:hover { background: var(--bg-hover); }
.ap-main { font-weight: 600; }
.ap-tag { font-size: 12px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 1px 8px; }
.ap-row .btn { margin-left: auto; }
.ap-srv { display: grid; gap: 6px; padding: 8px; border-radius: 8px; background: var(--bg-elev); }
.ap-srv .row { align-items: center; justify-content: space-between; }
.admin-admins-head.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wm-req { display: grid; gap: 6px; padding: 8px; border-radius: 8px; background: var(--bg-elev); }
.wm-req .row { align-items: center; gap: 8px; flex-wrap: wrap; }
.wm-msg { margin: 0; font-style: italic; color: var(--text-2); }
.social-row input.soc-label { width: 130px; flex: 0 0 auto; }
.social-row input.soc-url { flex: 1; min-width: 0; }
@media (max-width: 640px) { .apr-stats { display: none; } }

/* 🎬 VoiceClub Cinema */
.cinema { display: grid; gap: 8px; align-content: start; flex: 0 0 auto; padding: 10px; margin: 8px 10px 0; border-radius: 14px; background: linear-gradient(180deg, rgba(192,38,211,.10), rgba(62,202,220,.06)); border: 1px solid var(--border); }
.cin-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 62vh; background: #000; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.cin-screen .cin-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.cin-idle { text-align: center; padding: 20px; max-width: 560px; color: #e5e7eb; }
.cin-idle h2 { margin: 6px 0; }
.cin-idle-icon { font-size: 56px; }
.cin-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: rgba(0,0,0,.55); color: #fff; text-align: center; padding: 16px; z-index: 2; }
.cin-overlay.countdown { background: radial-gradient(circle, rgba(0,0,0,.55), rgba(0,0,0,.85)); }
.cin-count { font-size: clamp(64px, 14vw, 160px); font-weight: 900; line-height: 1; text-shadow: 0 6px 30px rgba(192,38,211,.6); font-variant-numeric: tabular-nums; }
.cin-count-sub { font-size: 16px; font-weight: 600; max-width: 520px; }
.cin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cin-now { display: flex; flex-direction: column; min-width: 160px; flex: 1; }
.cin-now b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cin-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cin-vol { width: 90px; }
.cin-cd { height: auto; min-height: 34px; padding: 6px 30px 6px 12px; line-height: 1.3; font-size: 14px; border-radius: 999px; width: auto; }
.cin-badge { font-size: 12px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px 8px; }
.cin-source { display: flex; gap: 6px; flex-wrap: wrap; }
.cin-source .cin-url { flex: 2; min-width: 200px; }
.cin-source .cin-title { flex: 1; min-width: 120px; }
.cin-vote { display: grid; gap: 6px; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.18); }
.cin-vote.empty { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cin-vote-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cin-vote-head b { flex: 1; }
.cin-options { display: grid; gap: 4px; }
.cin-opt { position: relative; display: flex; align-items: center; gap: 6px; border-radius: 8px; overflow: hidden; background: var(--bg-elev); }
.cin-opt-fill { position: absolute; inset: 0 auto 0 0; background: rgba(62,202,220,.18); transition: width .3s; pointer-events: none; }
.cin-opt.mine { outline: 2px solid rgba(62,202,220,.7); }
.cin-opt.win { outline: 2px solid #eab308; }
.cin-opt-main { position: relative; flex: 1; display: flex; justify-content: space-between; gap: 8px; align-items: center; background: none; border: 0; color: inherit; text-align: left; padding: 8px 10px; cursor: pointer; }
.cin-opt-main:disabled { cursor: default; }
.cin-opt-title { font-weight: 600; }
.cin-opt .chip-x { position: relative; margin-right: 6px; }
.cin-sugg-row { display: flex; gap: 6px; }
.cin-sugg-row .cin-sugg { flex: 1; min-width: 0; }
@media (max-width: 700px) { .cinema { margin: 6px 4px 0; padding: 8px; } .cin-screen { max-height: 40vh; } }
.cin-sugg-row .btn { flex: 0 0 auto; }
.exe-card a.btn, .hero-exe { text-decoration: none; }

/* ↕️ Arrastar canais e salas */
.side-item.channel[draggable="true"] { cursor: grab; }
.side-item.channel.dragging { opacity: .45; }
.side-item.channel.drop-before { box-shadow: inset 0 3px 0 #3ecadc; }
.side-item.channel.drop-after { box-shadow: inset 0 -3px 0 #3ecadc; }

/* 🧝 Emotes do Elfo maiores (no texto, sozinhos na mensagem, nas reações e no seletor) */
.cemoji.elfo-emoji { width: 38px; height: 38px; vertical-align: -12px; }
.cemoji.jumbo { width: 48px; height: 48px; vertical-align: middle; }
.cemoji.elfo-emoji.jumbo { width: 72px; height: 72px; }
.reaction .cemoji.elfo-emoji { width: 26px; height: 26px; vertical-align: -7px; }
.elfo-grid img.cemoji { width: 44px; height: 44px; }
/* 🎬 A transmissão do filme vai para dentro do ecrã do cinema */
.cin-screen .tile.in-cinema { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; z-index: 1; }
.cin-screen .tile.in-cinema video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cin-screen .cin-overlay { z-index: 3; }
#stage.cinema-empty { display: none; }
.cin-external { display: grid; justify-items: center; gap: 10px; }
.cin-ext-logo { font-weight: 900; font-size: 30px; color: #e5e7eb; letter-spacing: .02em; }
.cin-external a.btn { text-decoration: none; }
/* 📺 Cinema a passar: só a imagem, grande; controlos escondidos (a moderação abre em "⚙️ Controlos") */
.cin-more { display: none; }
.cinema.showing .cin-more { display: inline-flex; }
.cinema.showing .cin-idle { display: none; }
.cinema.showing .cin-screen { max-height: calc(100vh - 230px); }
.cinema.showing:not(.controls-open) .cin-source,
.cinema.showing:not(.controls-open) .cin-vote:not(.open),
.cinema.showing:not(.controls-open) .cin-bar > .cin-ctl:last-of-type { display: none; }
/* 📺 Live na sala de cinema: esconde o 1.º ecrã (o do cinema), fica o ecrã da transmissão com a barra de controlos */
.cinema.live-on .cin-screen { display: none; }
.cinema.live-on { margin-bottom: 0; }
.cin-overlay.on-stage { position: absolute; inset: 0; z-index: 5; border-radius: 12px; }
.voice-main:has(> #cinemaPanel.live-on:not([hidden])) { grid-template-rows: auto 1fr auto; }
.voice-main:has(> #cinemaPanel.live-on:not([hidden])) > #stage { min-height: 0; }
/* 🗳️ Votação do filme numa janela por cima */
.cin-vote-chip.live { background: rgba(62,202,220,.18); border-color: rgba(62,202,220,.55); }
.cin-vote-modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: rgba(0,0,0,.55); padding: 16px; }
.cin-vote-card { position: relative; width: min(560px, 100%); max-height: min(80vh, 720px); overflow: auto; background: var(--bg-side, #15171f); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cin-vote-card .cin-vote { background: none; padding: 0; }
.cin-vote-card .cin-vote-head { padding-right: 34px; }
.cin-vote-card .cin-options { max-height: 50vh; overflow: auto; }
.cin-vote-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: inherit; cursor: pointer; }
.cin-vote-x:hover { background: rgba(255,255,255,.16); }
/* 🗳️ Criar votação (até 5 filmes + tempo) */
.cin-vote-chip.live[data-left]::after { content: ' · ⏱ ' attr(data-left); }
.cin-vote-create { display: grid; gap: 8px; }
.cin-create-row { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 6px; align-items: center; }
.cin-create-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(62,202,220,.18); }
.cin-create-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cin-vote-timer { font-weight: 800; font-variant-numeric: tabular-nums; color: #3ecadc; }
@media (max-width: 560px) { .cin-create-row { grid-template-columns: 22px 1fr; } .cin-create-row .cvc-url { grid-column: 2; } }
/* 💡 Aviso: voz pelo navegador */
.voice-hint { position: fixed; right: 18px; top: 64px; z-index: 950; width: min(380px, calc(100vw - 36px)); display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg-side, #15171f); border: 1px solid rgba(62,202,220,.45); box-shadow: 0 16px 50px rgba(0,0,0,.5); transition: opacity .8s; }
.voice-hint { animation: vhIn .35s ease-out; } @keyframes vhIn { from { transform: translateY(-10px); opacity: 0; } }
.voice-hint.fade { opacity: 0; }
.voice-hint .vh-icon { font-size: 22px; }
.voice-hint .vh-text { display: grid; gap: 6px; flex: 1; }
.voice-hint .vh-text p { margin: 0; font-size: 13px; color: var(--text-2, #c9ced8); line-height: 1.45; }
.voice-hint .vh-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.voice-hint .vh-actions a.btn { text-decoration: none; }
.voice-hint .vh-x { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; font-size: 13px; }

/* ⚡ Modo leve (PCs fracos): sem animações, desfoques nem brilhos, que custam processador e placa gráfica. */
html.lite *, html.lite *::before, html.lite *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .vp.speaking .avatar, html.lite .tile.speaking { transition: none !important; }
html.lite .modal, html.lite .popup-menu, html.lite .toast, html.lite .voice-hint { box-shadow: none !important; }

/* Janela em segundo plano (a jogar, minimizada, noutra aba): animações decorativas param para não gastar placa gráfica/processador. */
html.bg *, html.bg *::before, html.bg *::after { animation-play-state: paused !important; }

/* Lista do que só o app para PC tem (aviso na voz pelo navegador e cartão de download). */
.perks { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 5px; font-size: 13px; line-height: 1.4; color: var(--text-2, #c9ced8); }
.perks li { display: flex; gap: 8px; align-items: flex-start; }
.perks .perk-icon { flex: 0 0 18px; text-align: center; }
.perks b { color: var(--text, #fff); font-weight: 600; }
.voice-hint { width: min(420px, calc(100vw - 36px)); }
.exe-card .perks { margin-top: 6px; }

.ov-saved { color: #3ddc84; }
.ov-saved.warn { color: #f5b84a; }
/* 🔐 2FA */
.twofa-secret { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.twofa-secret code { font-size: 16px; letter-spacing: 2px; background: var(--bg-2, #1b1e27); padding: 8px 12px; border-radius: 8px; word-break: break-all; user-select: all; }
.backup-codes { background: var(--bg-2, #1b1e27); border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.8; letter-spacing: 1px; margin: 0; white-space: pre; }

/* ===== Página de apresentação (antes do login) ===== */
.landing { min-height: 100%; background: var(--bg-main); color: var(--text); overflow-x: hidden; }
.lp-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 5vw, 56px); background: color-mix(in srgb, var(--bg-main) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.lp-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.lp-brand img { width: 30px; height: 30px; border-radius: 8px; }
.lp-nav-links { display: flex; align-items: center; gap: clamp(10px, 3vw, 28px); }
.lp-nav-links a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.lp-nav-links a:hover { color: var(--text); }
@media (max-width: 620px) { .lp-nav-links a { display: none; } .lp-nav { padding: 12px 16px; } #lpEnter { padding: 9px 14px; font-size: 14px; } .nav-short { display: none; } }

.btn.big { padding: 13px 24px; font-size: 16px; border-radius: 12px; }
.btn.primary { background: var(--grad); border: 0; color: #fff; font-weight: 700; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--grad); }

.lp-hero { position: relative; text-align: center; padding: clamp(56px, 12vw, 120px) clamp(16px, 5vw, 56px) clamp(40px, 8vw, 80px); overflow: hidden; }
.lp-hero-glow { position: absolute; inset: -30% 0 auto 0; height: 600px; background: radial-gradient(60% 60% at 50% 0%, rgba(62,202,220,.22), rgba(192,38,211,.14) 45%, transparent 70%); pointer-events: none; }
.lp-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.lp-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--bg-elev); color: var(--text-2); font-size: 13px; font-weight: 600; }
.lp-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 8vw, 76px); line-height: 1.02; margin: 20px 0 0; letter-spacing: -0.02em; }
.lp-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-2); line-height: 1.5; max-width: 620px; margin: 20px auto 0; }
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.lp-note { color: var(--muted); font-size: 14px; margin-top: 18px; }
/* Hero em 2 colunas: texto à esquerda, logotipo do VoiceClub à direita. */
.lp-hero-split { max-width: 1120px; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 56px); align-items: center; text-align: left; }
.lp-hero-split .lp-title { font-size: clamp(32px, 5vw, 56px); }
.lp-hero-split .lp-sub { margin: 18px 0 0; max-width: 54ch; }
.lp-hero-split .lp-cta { justify-content: flex-start; }
.lp-geo { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: #bfc6dc; background: rgba(62,202,220,.08); border: 1px solid rgba(62,202,220,.28); padding: 8px 14px; border-radius: 999px; }
.lp-hero-art { position: relative; display: grid; place-items: center; }
.lp-logo-halo { position: absolute; width: min(330px, 80%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.45), transparent 62%); filter: blur(10px); }
.lp-logo-big { position: relative; width: min(240px, 60vw); height: auto; border-radius: 52px; box-shadow: 0 30px 80px rgba(124,108,255,.45); }
.pc-badge .pc-logo { width: 56%; height: auto; border-radius: 40px; background: #0b0c15; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
@media (max-width: 860px) {
  .lp-hero-split { grid-template-columns: 1fr; text-align: center; }
  .lp-hero-split .lp-cta { justify-content: center; }
  .lp-hero-split .lp-sub { margin-left: auto; margin-right: auto; }
  .lp-geo { margin-left: auto; margin-right: auto; }
  .lp-hero-art { order: -1; margin-bottom: 4px; }
  .lp-logo-big { width: 150px; }
}

.lp-section { max-width: 1080px; margin: 0 auto; padding: clamp(48px, 9vw, 96px) clamp(16px, 5vw, 40px); }
.lp-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4.5vw, 42px); text-align: center; margin: 0 0 8px; letter-spacing: -0.01em; }
.lp-h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 40px; }
.lp-feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .15s, border-color .15s; }
.lp-feat:hover { transform: translateY(-3px); border-color: var(--border-2); }
.lp-ic { font-size: 30px; display: block; }
.lp-feat h3 { font-size: 18px; margin: 14px 0 6px; }
.lp-feat p { color: var(--text-2); font-size: 15px; line-height: 1.5; margin: 0; }

.lp-shots-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.lp-shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 40px; }
.lp-shot { margin: 0; }
.lp-shot figcaption { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 12px; }
.shot-frame { border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; background: var(--bg-side); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.shot-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--bg-rail); border-bottom: 1px solid var(--border); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.shot-bar i:first-child { background: #ff5f57; } .shot-bar i:nth-child(2) { background: #febc2e; } .shot-bar i:nth-child(3) { background: #28c840; }
.shot-body { height: 190px; display: flex; gap: 8px; padding: 10px; }
.ss-rail { width: 46px; background: var(--bg-rail); border-radius: 8px; flex: none; }
.ss-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ss-side { width: 70px; background: var(--bg-elev); border-radius: 8px; flex: none; }
.ss-tile { background: var(--grad); border-radius: 8px; flex: 1; opacity: .85; }
.ss-tile.sm { flex: .5; background: var(--bg-elev); }
.ss-big { flex: 1; background: var(--grad); border-radius: 8px; opacity: .85; }
.ss-dots { display: flex; gap: 6px; }
.ss-dots span { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-elev); }
.ss-dots span:first-child { box-shadow: 0 0 0 2px var(--ok); }
.ss-chat { width: 92px; background: var(--bg-main); border-radius: 8px; flex: none; padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.ss-msg { height: 10px; border-radius: 4px; background: var(--bg-elev); }
.ss-msg.short { width: 60%; }
.shot-cinema { flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ss-screen { width: 80%; height: 120px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #1b2030, #0a0c12); display: grid; place-items: center; font-size: 36px; }
.ss-ctl { display: flex; gap: 8px; }
.ss-ctl span { width: 34px; height: 12px; border-radius: 999px; background: var(--bg-elev); }
.ss-ctl span:nth-child(2) { background: var(--grad); }

.lp-pc { display: flex; align-items: center; gap: clamp(24px, 6vw, 64px); flex-wrap: wrap; }
.lp-pc-text { flex: 1 1 340px; }
.lp-pc-text .lp-h2 { text-align: left; }
.lp-perks { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 14px; }
.lp-perks li { font-size: 16px; color: var(--text-2); line-height: 1.45; }
.lp-perks b { color: var(--text); }
.lp-pc-art { flex: 1 1 260px; display: grid; place-items: center; }
.pc-badge { width: min(260px, 70vw); aspect-ratio: 1; border-radius: 28px; background: var(--grad); display: grid; place-items: center; font-size: 96px; box-shadow: 0 30px 80px rgba(62,202,220,.25); }

.lp-foot { border-top: 1px solid var(--border); text-align: center; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lp-foot .lp-brand { font-size: 18px; }
.lp-foot-note { color: var(--muted); font-size: 14px; margin: 0; }
.lp-foot-links { font-size: 14px; margin: 0; }
.lp-foot-links a { color: var(--text-2); }

/* capturas reais em moldura limpa */
.shot-frame img { display: block; width: 100%; height: auto; }
.lp-shot .shot-frame { transition: transform .2s, box-shadow .2s; }
.lp-shot:hover .shot-frame { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(0,0,0,.5); }

/* aurora animada no hero */
.lp-aurora { position: absolute; inset: -20% -10% auto -10%; height: 680px; pointer-events: none; filter: blur(70px); opacity: .55; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 90%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 90%); }
.lp-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.lp-aurora span:nth-child(1) { width: 520px; height: 520px; left: 8%; top: -60px; background: #3ecadc; animation: aur1 16s ease-in-out infinite; }
.lp-aurora span:nth-child(2) { width: 560px; height: 560px; right: 6%; top: -40px; background: #c026d3; animation: aur2 20s ease-in-out infinite; }
.lp-aurora span:nth-child(3) { width: 460px; height: 460px; left: 42%; top: 60px; background: #3b5bff; animation: aur3 18s ease-in-out infinite; }
@keyframes aur1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.15); } }
@keyframes aur2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-70px,50px) scale(.9); } }
@keyframes aur3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.1); } }
.lp-hero-inner { z-index: 1; }

/* aparecer ao rolar */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.lp-features .reveal.in, .lp-shot-grid .reveal.in { transition-delay: var(--d, 0s); }

.lp-foot-credit { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.lp-foot-credit a { color: var(--accent); font-weight: 700; }

/* === Apresentação nova: janela de demo no hero, destaques, comparação e CTA final === */
.lp-demo { max-width: 680px; margin: 42px auto 0; border-radius: 20px; border: 1px solid var(--border-2); background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; text-align: left; }
.lp-demo-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.lp-demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f55; }
.lp-demo-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #ff4b5c; }
.lp-demo-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4b5c; animation: lpPulse 1.8s infinite; }
@keyframes lpPulse { 0% { box-shadow: 0 0 0 0 rgba(255,75,92,.6); } 70% { box-shadow: 0 0 0 9px rgba(255,75,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,75,92,0); } }
.lp-demo-stage { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; background: radial-gradient(circle at 68% 42%, rgba(124,108,255,.35), transparent 45%), radial-gradient(circle at 25% 75%, rgba(62,202,220,.28), transparent 42%), linear-gradient(135deg, #0a1324, #150f2e); }
.lp-demo-game { font-family: var(--font-display); font-weight: 800; font-size: clamp(16px, 3vw, 26px); color: #aab6dc; opacity: .9; }
.lp-demo-cam { position: absolute; right: 14px; bottom: 14px; width: 28%; aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--accent); background: linear-gradient(135deg, #2a3550, #3a2a55); display: grid; place-items: center; font-size: clamp(22px, 4vw, 30px); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.lp-demo-cc { position: absolute; left: 14px; bottom: 14px; font-size: 13px; font-weight: 600; color: #eaf0ff; background: rgba(0,0,0,.6); padding: 6px 11px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); max-width: 56%; }
.lp-demo-cap { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 12px; border-top: 1px solid var(--border); background: var(--bg-elev); }
.lp-tag { background: rgba(124,108,255,.14); color: #c3bcff; border: 1px solid rgba(124,108,255,.3); padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; }

.lp-feat--hot { border-color: rgba(124,108,255,.45); background: linear-gradient(180deg, rgba(124,108,255,.08), var(--surface)); }
.lp-flag { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #c3bcff; background: rgba(124,108,255,.14); border: 1px solid rgba(124,108,255,.3); padding: 3px 9px; border-radius: 999px; }

.lp-vs { margin-top: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.lp-vs-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; border-top: 1px solid var(--border); }
.lp-vs-row:first-child { border-top: 0; }
.lp-vs-row > div { padding: 15px 18px; font-size: 15px; }
.lp-vs-head { background: var(--bg-elev); font-weight: 800; }
.lp-vs-head .lp-vs-us { color: var(--accent); }
.lp-vs-feat { font-weight: 600; }
.lp-vs-them { color: var(--muted); }
.lp-vs-them::before { content: "✕ "; color: #5a6075; font-weight: 800; }
.lp-vs-win { color: var(--ok); font-weight: 700; }
.lp-vs-win::before { content: "✓ "; font-weight: 800; }

.lp-final { max-width: 1080px; margin: 0 auto; border-radius: 24px; border: 1px solid var(--border-2); background: linear-gradient(135deg, rgba(124,108,255,.18), rgba(62,202,220,.1)); padding: clamp(36px, 6vw, 54px) 24px; text-align: center; }
.lp-final h2 { margin: 0; }
.lp-final p { color: var(--text-2); max-width: 48ch; margin: 14px auto 0; }
.lp-final .lp-cta { margin-top: 24px; }

/* Tablet / telemóvel: a tabela de comparação empilha e ganha rótulos */
@media (max-width: 720px) {
  .lp-vs-row { grid-template-columns: 1fr; }
  .lp-vs-head { display: none; }
  .lp-vs-row > div { padding: 9px 16px; }
  .lp-vs-feat { font-weight: 800; padding-top: 14px !important; }
  .lp-vs-them::before { content: "Concorrência: ✕ "; }
  .lp-vs-win { padding-bottom: 14px !important; }
  .lp-vs-win::before { content: "VoiceClub: ✓ "; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-aurora span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.nav-short { display: none; }
@media (max-width: 620px) { .nav-full { display: none; } .nav-short { display: inline; } .lp-brand { font-size: 17px; } .lp-brand img { width: 26px; height: 26px; } }

/* No telemóvel a aurora é mais contida (senão vira um bloco de cor) e o herói fica mais justo. */
@media (max-width: 640px) {
  .lp-hero { padding: clamp(40px, 10vw, 72px) 20px clamp(28px, 7vw, 48px); }
  .lp-aurora { height: 440px; opacity: .42; filter: blur(60px); }
  .lp-aurora span:nth-child(1) { width: 300px; height: 300px; left: -6%; top: -30px; }
  .lp-aurora span:nth-child(2) { width: 320px; height: 320px; right: -8%; top: 10px; }
  .lp-aurora span:nth-child(3) { width: 260px; height: 260px; left: 38%; top: 90px; }
}

/* ── carrossel de streamers (rodapé da apresentação) ───────────────────────── */
.lp-streamers { overflow: hidden; }
.lp-streamers-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.lp-streamers-rail {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lp-streamers-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 6px 0;
  will-change: transform;
  /* O movimento é feito por JavaScript (landing.js) para andar em qualquer telemóvel. */
}

/* Cartão de streamer (opção B): foto grande, nome, etiqueta da plataforma e "Ver canal". */
.lp-streamer {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex: 0 0 auto; width: 176px;
  padding: 22px 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  text-decoration: none; color: var(--text); text-align: center;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.lp-streamer:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.lp-streamer:focus-visible { outline: 2px solid var(--border-2); outline-offset: 3px; }
.lp-streamer-av {
  width: 76px; height: 76px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff;
  background: #2a2f45; box-shadow: 0 0 0 3px color-mix(in srgb, var(--border-2) 70%, transparent);
}
.lp-streamer-av img { width: 100%; height: 100%; object-fit: cover; }
.lp-streamer-name { font-size: 16px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-streamer-plat { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 11px; border-radius: 999px; background: var(--bg-elev); color: var(--text-2); }
.lp-streamer-plat.kick { background: rgba(83, 252, 24, .14); color: #53fc18; }
.lp-streamer-plat.twitch { background: rgba(145, 70, 255, .18); color: #a582ff; }
.lp-streamer-plat.youtube { background: rgba(255, 0, 0, .14); color: #ff6b6b; }
.lp-streamer-plat.instagram { background: rgba(214, 41, 118, .16); color: #ff79b0; }
.lp-streamer-go { font-size: 12px; color: var(--muted); }
.lp-streamer:hover .lp-streamer-go { color: var(--text-2); }

/* ⭐ Banner de ligar a conta Kick (apoiador) — topo do main, para quem ainda não ligou. */
.kick-banner { position: relative; display: flex; align-items: center; gap: 16px; margin: 12px 16px 0; padding: 14px 16px; border-radius: 16px;
  background: radial-gradient(130% 160% at 0% 0%, rgba(245,197,24,.12), transparent 55%), linear-gradient(180deg, #211f1a 0%, var(--bg-elev) 70%);
  border: 1px solid rgba(245,166,35,.45); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.kick-banner .kb-star { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: radial-gradient(circle at 30% 25%, rgba(245,197,24,.35), rgba(245,166,35,.12)); border: 1px solid rgba(245,197,24,.4); filter: drop-shadow(0 0 8px rgba(245,197,24,.4)); }
.kick-banner .kb-txt { flex: 1; min-width: 0; }
.kick-banner .kb-ttl { margin: 0; font-size: 15px; font-weight: 700; }
.kick-banner .kb-ttl b { background: linear-gradient(90deg, #f5c518, #f5a623); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kick-banner .kb-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.kick-banner .kb-acts { flex: none; display: flex; align-items: center; gap: 8px; }
.kick-banner .btn.kb-kick { background: linear-gradient(135deg, #53fc18, #2fd60e); border-color: transparent; color: #0a1a05; font-weight: 700; box-shadow: 0 4px 14px rgba(83,252,24,.25); white-space: nowrap; }
.kick-banner .btn.kb-kick:hover:not(:disabled) { filter: brightness(1.06); background: linear-gradient(135deg, #53fc18, #2fd60e); }
.kick-banner .kb-close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.kick-banner .kb-close:hover { color: var(--text); }
@media (max-width: 640px) {
  .kick-banner { flex-wrap: wrap; gap: 12px; }
  .kick-banner .kb-acts { width: 100%; }
  .kick-banner .btn.kb-kick { flex: 1; text-align: center; }
}

/* 📢 Modal de Aviso do VoiceClub */
.aviso-modal { display: grid; gap: 14px; }
.aviso-head { display: flex; align-items: center; gap: 13px; }
.aviso-badge { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 25px;
  background: radial-gradient(circle at 30% 25%, rgba(109,131,255,.45), rgba(192,38,211,.18)); border: 1px solid rgba(109,131,255,.4); filter: drop-shadow(0 0 10px rgba(109,131,255,.35)); }
.aviso-ttl { font-size: 18px; font-weight: 800; margin: 0; }
.aviso-ttl .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aviso-when { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.aviso-body { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.aviso-body strong { color: var(--text); }

/* ===== 🎴 Card de perfil (flag PERFIL_CARD) ===== */
.popup-menu.has-profile-card { max-width: 340px; }
.profile-card { position: relative; margin: -8px -8px 6px; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--surface); }
.pc-top { position: relative; height: 112px; }
.pc-banner { position: absolute; inset: 0; overflow: hidden; }
.pc-b-img { background-size: cover; background-position: center; }
.pc-b-aurora { background: linear-gradient(120deg,#3a1c71,#6a2a9e,#2b5876,#4e4376,#b14bc7); background-size: 320% 320%; animation: pc-aur 11s ease infinite; }
@keyframes pc-aur { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.pc-blob { position: absolute; border-radius: 50%; filter: blur(26px); opacity: .6; mix-blend-mode: screen; animation: pc-float 9s ease-in-out infinite; }
.pc-blob.b1 { width: 150px; height: 150px; background: #ff5ca8; left: 8%; top: -44px; }
.pc-blob.b2 { width: 130px; height: 130px; background: #49c6ff; right: 10%; top: -24px; animation-delay: -3s; }
.pc-blob.b3 { width: 120px; height: 120px; background: #8c6bff; left: 45%; top: 28px; animation-delay: -5s; }
@keyframes pc-float { 0%,100%{transform:translate(0,0)} 50%{transform:translate(16px,12px)} }
.pc-b-ember { background: radial-gradient(130% 100% at 50% 120%,#ff8a2b,#b1241f 32%,#3a0f16 68%,#140708); }
.pc-ember { position: absolute; bottom: -6px; border-radius: 50%; background: #ffd79a; box-shadow: 0 0 8px 2px rgba(255,170,80,.9); animation: pc-rise 3.6s linear infinite; }
@keyframes pc-rise { 0%{transform:translateY(0) scale(1);opacity:0} 12%{opacity:1} 100%{transform:translateY(-130px) scale(.3);opacity:0} }
.pc-b-waves { background: linear-gradient(180deg,#0b2b3a,#0e3f52); }
.pc-wave { position: absolute; left: -20%; right: -20%; height: 220%; bottom: -80%; background: radial-gradient(60% 40% at 50% 50%, rgba(73,198,255,.55), transparent 70%); animation: pc-sw 7s ease-in-out infinite; }
.pc-wave.w2 { bottom: -90%; background: radial-gradient(60% 40% at 50% 50%, rgba(124,92,255,.5), transparent 70%); animation-duration: 9s; animation-direction: reverse; }
@keyframes pc-sw { 0%,100%{transform:translateX(-6%) scaleY(1)} 50%{transform:translateX(6%) scaleY(1.15)} }

.pc-fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; border-radius: 16px 16px 0 0; }
.pc-fx-fire .pc-fire-glow { position: absolute; inset: 0; box-shadow: inset 0 -60px 60px -28px rgba(255,90,20,.6), inset 0 0 0 2px rgba(255,120,40,.45); border-radius: inherit; }
.pc-flame { position: absolute; bottom: -30px; border-radius: 50% 50% 45% 45%; filter: blur(10px); mix-blend-mode: screen; animation: pc-flick .5s ease-in-out infinite alternate; }
@keyframes pc-flick { from{transform:scaleY(1) translateX(0);opacity:.85} to{transform:scaleY(1.25) translateX(6px);opacity:1} }
.pc-fx-em { position: absolute; bottom: 0; border-radius: 50%; background: #ffd79a; box-shadow: 0 0 8px 2px rgba(255,160,60,.9); animation: pc-emb 2.8s linear infinite; }
@keyframes pc-emb { 0%{transform:translateY(0) scale(1);opacity:0} 10%{opacity:1} 100%{transform:translateY(-300px) scale(.2);opacity:0} }
.pc-fx-petals .pc-bloom { position: absolute; inset: 0; box-shadow: inset 0 0 50px rgba(255,160,210,.28); border-radius: inherit; }
.pc-petal { position: absolute; top: -16px; width: 12px; height: 9px; background: radial-gradient(circle at 30% 30%,#ffd6ea,#ff8fc4); border-radius: 60% 10% 60% 10%; opacity: .95; animation: pc-petal linear infinite; }
@keyframes pc-petal { 0%{transform:translate(0,-16px) rotate(0);opacity:0} 10%{opacity:1} 100%{transform:translate(26px,360px) rotate(360deg);opacity:0} }
@keyframes pc-shake { 0%,100%{transform:translate(0,0)} 3%{transform:translate(-2px,1px)} 6%{transform:translate(2px,-1px)} 9%{transform:translate(0,0)} }
/* 🪟 Vidro partido: teia de rachas a partir do ponto de impacto + brilho que varre o vidro. */
.pc-fx-shatter svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-gcrack, .pc-gring { stroke: rgba(222,236,255,.82); fill: none; stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(150,200,255,.75)); stroke-dasharray: 600; stroke-dashoffset: 600; animation: pc-draw 3.6s ease-out infinite; }
.pc-gcrack { stroke-width: 1; }
.pc-gring { stroke-width: .85; stroke: rgba(196,218,255,.6); }
@keyframes pc-draw { 0%{stroke-dashoffset:600} 35%{stroke-dashoffset:0} 88%{stroke-dashoffset:0;opacity:1} 100%{opacity:.2;stroke-dashoffset:0} }
.pc-glass-hit { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(190,220,255,.5) 45%, transparent 72%); filter: drop-shadow(0 0 5px rgba(170,210,255,.8)); }
.pc-glass-glint { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.16) 47%, rgba(255,255,255,.42) 50%, rgba(255,255,255,.16) 53%, transparent 62%); transform: translateX(-130%); animation: pc-glint 5s ease-in-out infinite; }
@keyframes pc-glint { 0%,55%{transform:translateX(-130%)} 82%,100%{transform:translateX(130%)} }

.pc-avwrap { position: relative; padding: 0 16px; margin-top: -40px; z-index: 7; }
.pc-av { display: inline-block; border-radius: 50%; border: 5px solid var(--surface); overflow: hidden; line-height: 0; background: var(--bg-elev); }
.pc-status { position: absolute; left: 74px; bottom: 2px; width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--surface); background: #5d6070; }
.pc-status.on { background: #3fcf6b; }
.pc-body { padding: 8px 16px 14px; position: relative; z-index: 7; }
.pc-name { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; }
.pc-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-star { color: #ffcc48; font-size: 16px; flex: none; }
.pc-handle { color: var(--muted); font-size: 13px; margin-top: 1px; }
.pc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev); }
.pc-cdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pc-chip.pc-sup { color: #ffcc48; border-color: #6a5618; background: #2a2410; }
.pc-pres { margin-top: 11px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 7px 11px; }
.pc-pdot { width: 8px; height: 8px; border-radius: 50%; background: #5d6070; flex: none; }
.pc-pdot.on, .pc-pdot.live { background: #3fcf6b; box-shadow: 0 0 8px #3fcf6b; }
.pc-pres .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-stats { margin-top: 10px; display: flex; gap: 7px; }
.pc-stat { flex: 1; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 7px 4px; text-align: center; min-width: 0; }
.pc-si { font-size: 15px; line-height: 1; }
.pc-sv { font-size: 12px; font-weight: 800; margin-top: 3px; }
.pc-sl { font-size: 8px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.pc-stat.soon .pc-sv { color: var(--muted); font-weight: 700; font-size: 11px; }
.pc-actions { margin-top: 12px; display: flex; gap: 8px; }
.pc-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 10px; border-radius: 10px; font-weight: 800; font-size: 13px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); cursor: pointer; }
.pc-btn:hover { background: var(--bg-hover); }
.pc-btn.join { flex: 1.6; background: linear-gradient(135deg,#2faa55,#1c8a43); border: none; color: #fff; }
.pc-btn.join small { font-weight: 700; opacity: .85; }

/* ===== 🎴 Card de perfil — banners/efeitos extra + modal de cargos ===== */
/* Galáxia */
.pc-b-galaxy { background: radial-gradient(120% 90% at 70% 20%, #3a2a6e 0%, #1a1340 40%, #0a0820 100%); }
.pc-gstar { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 4px 1px rgba(255,255,255,.7); animation: pc-tw 3s ease-in-out infinite; }
@keyframes pc-tw { 0%,100%{opacity:.25;transform:scale(.7)} 50%{opacity:1;transform:scale(1.1)} }
/* Pôr do sol */
.pc-b-sunset { background: linear-gradient(180deg,#2a1a4e 0%,#7c3a8e 35%,#ff6a8a 70%,#ffb24d 100%); background-size: 100% 180%; animation: pc-sunset 10s ease-in-out infinite alternate; }
@keyframes pc-sunset { from{background-position:50% 0} to{background-position:50% 40%} }

/* ❄️ Neve */
.pc-fx-snow .pc-flake { position: absolute; top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 5px rgba(255,255,255,.8); animation: pc-snow linear infinite; }
@keyframes pc-snow { 0%{transform:translate(0,-10px);opacity:0} 10%{opacity:1} 100%{transform:translate(18px,360px);opacity:.2} }
/* 🎉 Confetes */
.pc-fx-confetti .pc-conf { position: absolute; top: -12px; border-radius: 2px; animation: pc-conf linear infinite; }
@keyframes pc-conf { 0%{transform:translate(0,-12px) rotate(0);opacity:0} 10%{opacity:1} 100%{transform:translate(24px,360px) rotate(540deg);opacity:.3} }

/* chip "+N" (ver todos os cargos) */
.pc-chip.pc-more { cursor: pointer; color: var(--text-2); font-weight: 800; }
.pc-chip.pc-more:hover { background: var(--bg-hover); border-color: var(--border-2); }
/* modal de cargos */
.role-list { display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.role-row { display: flex; align-items: center; gap: 9px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: 14px; }

/* 🌙 Vaga-lumes (banner noturno quente com pontos a brilhar — como no vídeo) */
.pc-b-fireflies { background: radial-gradient(110% 130% at 50% 135%, #3a2a14 0%, #17140a 45%, #0a0a08 100%); }
.pc-ff { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe68a; box-shadow: 0 0 9px 3px rgba(255,210,100,.85); animation: pc-ff ease-in-out infinite; }
@keyframes pc-ff { 0%,100%{opacity:.12;transform:translate(0,0)} 50%{opacity:1;transform:translate(6px,-8px)} }

/* 🤍 Branco / 🖤 Preto (minimalistas com brilho a passar) */
.pc-b-white { background: linear-gradient(135deg,#f4f6fb,#cfd4e2); }
.pc-b-black { background: linear-gradient(135deg,#232530,#0a0a0e); }
.pc-b-white::after, .pc-b-black::after { content:""; position:absolute; inset:0; background:linear-gradient(115deg, transparent 42%, rgba(255,255,255,.22) 50%, transparent 58%); background-size:250% 100%; animation: pc-sheen 4.5s ease-in-out infinite; }
@keyframes pc-sheen { 0%{background-position:160% 0} 100%{background-position:-60% 0} }

/* 👊 Soco a partir/quebrar: o clarão, o ponto de impacto, as rachas a disparar do centro e o tremor. */
.pc-fx-punch { animation: pc-phit 1.8s ease-out infinite; }
@keyframes pc-phit { 0%{transform:translate(0,0)} 3%{transform:translate(3px,-2px)} 6%{transform:translate(-3px,2px)} 9%{transform:translate(2px,1px)} 12%{transform:translate(0,0)} 100%{transform:translate(0,0)} }
.pc-fx-punch .pc-flash { position:absolute; inset:0; background:radial-gradient(circle at 50% 46%, rgba(255,255,255,.7), transparent 52%); animation: pc-flash 1.8s ease-out infinite; }
@keyframes pc-flash { 0%{opacity:.9} 12%{opacity:0} 100%{opacity:0} }
.pc-fx-punch .pc-punch-hit { position:absolute; left:50%; top:46%; width:28px; height:28px; margin:-14px 0 0 -14px; border-radius:50%; background:radial-gradient(circle, #fff, rgba(255,214,150,.6) 42%, transparent 72%); animation: pc-phit-core 1.8s ease-out infinite; }
@keyframes pc-phit-core { 0%{transform:scale(0);opacity:1} 10%{transform:scale(1.3);opacity:1} 32%{opacity:.5} 60%{opacity:0} 100%{opacity:0} }
.pc-fx-punch .pc-punch-cracks { position:absolute; left:50%; top:46%; width:0; height:0; }
.pc-pcrack { position:absolute; left:0; top:0; width:2px; margin-left:-1px; transform-origin:50% 0; background:linear-gradient(to bottom, rgba(255,255,255,.95), rgba(170,205,255,.08)); filter:drop-shadow(0 0 2px rgba(150,200,255,.75)); clip-path:inset(0 0 100% 0); animation: pc-pcrack 1.8s ease-out infinite; }
@keyframes pc-pcrack { 0%{clip-path:inset(0 0 100% 0);opacity:0} 9%{clip-path:inset(0 0 0 0);opacity:1} 55%{opacity:.85} 85%{opacity:0} 100%{clip-path:inset(0 0 0 0);opacity:0} }
.pc-fx-punch .pc-shock { position:absolute; left:50%; top:46%; width:12px; height:12px; border-radius:50%; border:3px solid rgba(255,255,255,.9); transform:translate(-50%,-50%) scale(0); animation: pc-shock 1.8s ease-out infinite; }
@keyframes pc-shock { 0%{transform:translate(-50%,-50%) scale(0);opacity:.9;border-width:4px} 70%{opacity:.4} 100%{transform:translate(-50%,-50%) scale(13);opacity:0;border-width:1px} }

/* 🌫️ Névoa: camadas largas, suaves e esborratadas que derivam devagar de lado a lado. */
.pc-fx-smoke .pc-fog { position:absolute; left:-60%; width:220%; height:70%; border-radius:50%; background:radial-gradient(ellipse 60% 100% at 50% 50%, rgba(206,211,224,.95), rgba(206,211,224,.28) 55%, transparent 72%); filter:blur(16px); animation: pc-fog ease-in-out infinite; }
@keyframes pc-fog { 0%{transform:translateX(-12%)} 50%{transform:translateX(12%)} 100%{transform:translateX(-12%)} }

/* ⚡ Trovão: clarão duplo forte + relâmpagos ramificados. */
.pc-fx-lightning svg { position:absolute; inset:0; width:100%; height:100%; }
.pc-fx-lightning .pc-lflash { position:absolute; inset:0; background:linear-gradient(to bottom, rgba(214,230,255,.85), rgba(150,180,235,.35)); opacity:0; animation: pc-lflash 4.2s steps(1) infinite; }
@keyframes pc-lflash { 0%,100%{opacity:0} 2%{opacity:.9} 4%{opacity:.12} 6%{opacity:.75} 9%{opacity:0} }
.pc-bolt { stroke:#eaf4ff; stroke-width:3; fill:none; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 6px #bcdcff) drop-shadow(0 0 12px #8ab6ff); opacity:0; animation: pc-boltf 4.2s steps(1) infinite; }
.pc-bolt-b { stroke-width:2; }
@keyframes pc-boltf { 0%,100%{opacity:0} 2%{opacity:1} 5%{opacity:.2} 6%{opacity:.9} 9%{opacity:0} }

/* 💜 Aba Apoiar (doação Pix) */
.support-tiers { display: grid; gap: 8px; margin: 6px 0; }
.sup-tier { display: flex; align-items: center; gap: 12px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.sup-ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--bg-input); border: 1px solid var(--border); flex: none; }
.sup-info b { font-size: 14px; }
.pix-box { margin-top: 14px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.pix-qr { width: 230px; height: 230px; border-radius: 16px; display: block; background: #fff; }

/* ===== 💜 Decorações animadas no avatar (apoiadores) — card + lista + voz ===== */
.deco-av { position: relative; display: inline-block; line-height: 0; vertical-align: middle; flex: 0 0 auto; }
.deco-av > .avatar { display: block; }
.av-deco { position: absolute; inset: -16%; border-radius: 50%; pointer-events: none; z-index: 1; }
@keyframes dspin { to { transform: rotate(360deg); } }
@keyframes dpulse { 0%,100%{opacity:.6;transform:scale(.96)} 50%{opacity:1;transform:scale(1.03)} }
@keyframes dflick { 0%,100%{opacity:.75} 50%{opacity:1} }
/* 8 decorações (anel fino). Todas partilham a máscara fina, menos o neon (anel duplo). */
.d-glow, .d-chama, .d-chamas, .d-neve, .d-gelo, .d-dark, .d-light, .d-turbo, .d-raio { -webkit-mask: radial-gradient(farthest-side,transparent 83%,#000 87% 93%,transparent 97%); mask: radial-gradient(farthest-side,transparent 83%,#000 87% 93%,transparent 97%); }
.d-chama, .d-chamas { background: conic-gradient(from 150deg,#ff3b0f,#ff8a2b,#ffce6b,#ff5a1e,#ff8a2b,#ff3b0f); filter: drop-shadow(0 0 6px rgba(255,100,20,.95)); animation: dspin 6s linear infinite, dflick .4s ease-in-out infinite; }
.d-neve, .d-gelo { background: conic-gradient(from 0deg,#eafaff,#8fd4ff,#ffffff,#a7e0ff,#eafaff); filter: drop-shadow(0 0 6px rgba(170,225,255,.95)); animation: dspin 9s linear infinite; }
.d-dark { background: conic-gradient(from 0deg,#2a0f3e,#6a2fae,#120a1e,#4a1f7e,#2a0f3e); filter: drop-shadow(0 0 7px rgba(150,70,230,.85)); animation: dspin 7s linear infinite; }
.d-light { background: radial-gradient(farthest-side,#ffffff 55%,#dbe8ff 100%); filter: drop-shadow(0 0 8px rgba(255,255,255,.95)); animation: dpulse 2s ease-in-out infinite; }
.d-turbo { background: conic-gradient(from 0deg,#00e5ff,#7c5cff,#ff5ca8,#ffd23f,#00e5ff); filter: drop-shadow(0 0 4px rgba(124,92,255,.8)); animation: dspin 3s linear infinite; }
.d-raio { background: conic-gradient(from 0deg,#2a3a6e 0 58%,#9ecbff 64%,#fff 69%,#9ecbff 74%,#2a3a6e 80% 100%); filter: drop-shadow(0 0 5px #6fa8ff); animation: dspin 1.2s steps(8) infinite; }
.d-neon { background: radial-gradient(farthest-side,#ff4fd8 0 78%,#4fd2ff 86% 100%); -webkit-mask: radial-gradient(farthest-side,transparent 74%,#000 78% 82%,transparent 86%,#000 90% 94%,transparent 98%); mask: radial-gradient(farthest-side,transparent 74%,#000 78% 82%,transparent 86%,#000 90% 94%,transparent 98%); filter: drop-shadow(0 0 4px #ff4fd8); animation: dpulse 1.6s ease-in-out infinite; }
/* Dourado — também o anel por defeito do apoiador que não escolheu decoração. Usa a máscara fina partilhada. */
.d-glow { background: conic-gradient(from 0deg,#ffd23f,#ffb04d,#ff8a2b,#ffe3a0,#ffd23f); filter: drop-shadow(0 0 5px rgba(255,190,90,.85)); animation: dspin 4.5s linear infinite; }
/* No card, o anel manda: tira o aro/branco e o corte do .pc-av para o anel aparecer inteiro. */
.pc-av:has(.deco-av) { border: none; overflow: visible; background: none; }

/* ===== 💜 Página "Apoie o VoiceClub" (aba Apoiar) ===== */
.sup2 { display: grid; gap: 14px; }
.sup2-hero { text-align: center; padding: 6px 2px 2px; position: relative; }
.sup2-kick { color: #b06bff; font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.sup2-title { font-size: 24px; line-height: 1.12; font-weight: 900; margin: 6px 0 0; letter-spacing: -.01em; }
.sup2-sub { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin: 8px auto 0; max-width: 420px; }
.sup2-sub b { color: var(--text); }
.sup2-cta { margin: 14px auto 2px; display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #141018; font-weight: 800; font-size: 15px; border: none; border-radius: 999px; padding: 12px 26px; cursor: pointer; box-shadow: 0 10px 28px rgba(255,255,255,.12); }
.sup2-cta:hover { transform: translateY(-1px); }
.sup2-note { color: var(--muted); font-size: 11.5px; margin-top: 8px; }
.sup2-sec { text-align: center; font-weight: 800; font-size: 15px; margin: 4px 0 2px; }
.sup2-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.sup2-lv { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 13px 8px; text-align: center; }
.sup2-lv.hl { border-color: #5a3aa0; box-shadow: 0 0 0 1px #5a3aa0; }
.sup2-lv.have { border-color: #2faa55; box-shadow: 0 0 0 1px #2faa55; }
.sup2-lvic { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.i-star { background: linear-gradient(135deg,#ff6ea6,#b06bff); }
.i-bolt { background: linear-gradient(135deg,#49c6ff,#2a7fff); }
.i-fire { background: linear-gradient(135deg,#ff9a3d,#ff4d2e); }
.i-diam { background: linear-gradient(135deg,#9a6bff,#6b3aff); }
.i-crown { background: linear-gradient(135deg,#ffd23f,#ffa52e); }
.sup2-lvname { font-weight: 800; font-size: 13.5px; }
.sup2-lvval { color: var(--muted); font-size: 12px; margin-top: 1px; }
.sup2-lvperk { color: var(--text-2); font-size: 11px; line-height: 1.35; margin-top: 7px; }
.sup2-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.sup2-amt { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 12px 6px; font-weight: 800; cursor: pointer; display: grid; gap: 2px; }
.sup2-amt:hover { background: var(--bg-hover); border-color: #5a3aa0; }
.sup2-amt .lv { font-size: 10px; font-weight: 700; color: var(--muted); }
.sup2-pay { display: grid; gap: 10px; justify-items: center; text-align: center; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.sup2-copia { width: 100%; font-size: 11px; word-break: break-all; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 8px; color: var(--text-2); }
.sup2-wait { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.sup2-spin { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: #b06bff; border-radius: 50%; animation: dspin .8s linear infinite; }
.sup2-ok { color: #3fcf6b; font-weight: 800; font-size: 15px; }
.sup2-tabs { display: flex; gap: 5px; justify-content: center; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 4px; width: max-content; margin: 0 auto; }
.sup2-tab { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; border: none; background: none; }
.sup2-tab.on { background: var(--bg-hover); color: var(--text); }
.sup2-rank { display: grid; gap: 8px; }
.sup2-rrow { display: flex; align-items: center; gap: 11px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; }
.sup2-pos { font-weight: 900; font-size: 15px; color: var(--muted); width: 16px; text-align: center; flex: none; }
.sup2-rmeta { min-width: 0; }
.sup2-rname { font-weight: 800; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup2-rhandle { color: var(--muted); font-size: 11.5px; }
.sup2-rright { margin-left: auto; display: flex; align-items: center; gap: 9px; flex: none; }
.sup2-tbadge { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-input); }
.sup2-rval { color: #3fcf6b; font-weight: 800; font-size: 13.5px; }
.sup2-empty { text-align: center; color: var(--muted); font-size: 12.5px; padding: 10px; }
/* Escolher a decoração (entre as desbloqueadas) */
.deco-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; }
.deco-opt { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 10px 4px 7px; display: grid; justify-items: center; gap: 5px; cursor: pointer; }
.deco-opt.on { border-color: #b06bff; box-shadow: 0 0 0 1px #b06bff; }
.deco-opt.locked { opacity: .4; cursor: not-allowed; }
.deco-opt small { font-size: 10px; color: var(--text-2); }

/* ===== 💜 Página pública de apoio (landing #apoiar) ===== */
.lp-apoiar .apoiar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 14px auto 0; align-items: start; }
.apoiar-box { background: var(--bg-side, #141622); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.apoiar-sec { font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.apoiar-sec.center { text-align: center; }
.apoiar-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-input, #1b1e2c); color: var(--text); font-size: 15px; }
.apoiar-input:focus { outline: none; border-color: #7c5cff; }
.apoiar-input.err { border-color: #ff5c5c; }
.apoiar-hint { color: var(--muted); font-size: 12px; margin: 8px 0 12px; }
.apoiar-err { color: #ff6a6a; font-size: 13px; text-align: center; margin-top: 10px; }
.apoiar-mode { color: #ffb24d; font-size: 12.5px; margin-top: 12px; text-align: center; }
.apoiar-levels { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.apoiar-rank-wrap { max-width: 620px; margin: 28px auto 0; }
#apoiarPay { margin-top: 14px; }
#apoiarPay:empty { margin-top: 0; }
@media (max-width: 720px) { .lp-apoiar .apoiar-grid { grid-template-columns: 1fr; } }
