/* =====================================================================
   Iru 3.27.0 — tema "vidro roxo à noite"
   ---------------------------------------------------------------------
   Carregado DEPOIS do style.css: só ajusta aparência e o layout do PC.
   Regras do tema:
   - Fundo bem escuro com brilhos roxo/azul fixos. Painéis grandes são
     quase opacos e SEM backdrop-filter (o fundo é fixo, então a cor
     levemente translúcida já dá o efeito e não pesa a placa de vídeo).
   - Vidro de verdade (blur) só no que FLUTUA: campo de escrever, menus,
     janelas, avisos, dicas, pílula da call, Ctrl+K.
   - Roxo só para ação e seleção. O resto é neutro.
   - Layout novo (barra de servidores, contexto, chat em foco) só no PC
     (> 820 px e sem html.mobile). O celular só ganha cores e fonte.
   ===================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }

/* ---------- 1. tokens ---------- */
:root {
  --gc-font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --v-fundo: #0a0813;
  --v-s1: rgba(20, 16, 32, .86);   /* painéis grandes (sólidos, levemente translúcidos) */
  --v-s2: rgba(30, 24, 48, .9);    /* cartões dentro dos painéis */
  --v-s3: rgba(44, 36, 70, .92);   /* hover forte */
  --v-hover: rgba(255, 255, 255, .045);
  --v-sel: rgba(167, 123, 255, .16);
  --v-linha: rgba(255, 255, 255, .07);
  --v-linha-forte: rgba(255, 255, 255, .12);

  /* vidro (só camadas flutuantes) */
  --v-vidro: rgba(26, 20, 42, .62);
  --v-vidro-forte: rgba(22, 17, 36, .78);
  --v-blur: blur(22px) saturate(150%);
  --v-luz: inset 0 1px 0 rgba(255, 255, 255, .07);
  --v-borda: 1px solid rgba(255, 255, 255, .09);

  --v-texto: #f3f0fa;
  --v-texto-2: #b9b2cc;
  --v-apagado: #9b93b2; /* 4.7.8: era #7d7592 (≈4:1 sobre os painéis); agora passa de 6:1 (WCAG AA com folga) */
  --v-roxo: #a77bff;
  --v-roxo-forte: #8a5cff;
  --v-roxo-glow: rgba(167, 123, 255, .35);
  --v-verde: #3ddc97;

  --v-r-sm: 8px;
  --v-r-md: 12px;
  --v-r-lg: 16px;
  --v-r-xl: 20px;
  --v-sombra-1: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(8, 4, 24, .3);
  --v-sombra-2: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(8, 4, 24, .5);
  --v-sombra-3: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 64px rgba(8, 4, 24, .6);
  --v-ease: cubic-bezier(.2, .8, .2, 1);

  /* apelidos antigos apontando para a paleta nova (o resto do CSS segue igual) */
  --bg: var(--v-fundo);
  --panel: var(--v-s1);
  --panel-2: var(--v-s2);
  --panel-3: var(--v-s3);
  --line: var(--v-linha);
  --text: var(--v-texto);
  --muted: var(--v-texto-2);
  --a2: var(--v-roxo);
  --glow: var(--v-roxo-glow);
  --gc-surface-2: #14101f;
  --gc-surface-3: #1c1730;
  --gc-surface-4: #262040;
  --gc-line: var(--v-linha);
  --gc-text: var(--v-texto);
  --gc-text-muted: var(--v-texto-2);
  --gc-brand-400: var(--v-roxo);
}
/* alto contraste continua mandando (acessibilidade) */
html.a11y-contraste { --v-s1: #07050d; --v-s2: #100c1d; --v-s3: #1b1530; --v-linha: rgba(255, 255, 255, .45); --v-texto-2: #e2dcf2; --v-apagado: #cfc8e2; }

/* ---------- 2. base ---------- */
body {
  font-family: var(--gc-font-sans);
  font-feature-settings: "cv11", "ss01", "ss03"; /* Inter: "a" e "l" mais legíveis */
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.003em;
  background:
    radial-gradient(1100px 680px at 6% -12%, rgba(124, 77, 255, .24), transparent 62%),
    radial-gradient(900px 620px at 104% 112%, rgba(58, 107, 255, .16), transparent 60%),
    radial-gradient(700px 520px at 62% 38%, rgba(199, 125, 255, .05), transparent 70%),
    var(--v-fundo);
  background-attachment: fixed;
}
/* ruído bem fraco por cima do fundo: tira o aspecto de cor chapada */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
#app, .join { position: relative; z-index: 1; }
.drag { background: transparent; }
button, input, select, textarea { font-family: inherit; }
::selection { background: rgba(167, 123, 255, .35); }

/* tipografia: só 3 pesos, títulos um pouco mais fechados */
h1, h2, h3, .stage-title, #chat-head-title, .ini-tit { letter-spacing: -.015em; }
.msg-head time, .msg-time, .vol-text, .ch-n, .badge, .pill { font-variant-numeric: tabular-nums; }

/* botões e ícones: transição suave e "afundar" ao clicar */
.btn, .icon-btn, .call-btn, .channel, button.member, .rail-btn, .pk-card {
  transition: background-color .15s var(--v-ease), color .15s var(--v-ease), border-color .15s var(--v-ease), box-shadow .2s var(--v-ease), transform .12s var(--v-ease), filter .15s;
}
.btn:active:not(:disabled), .icon-btn:active:not(:disabled), .call-btn:active:not(:disabled), .channel:active, button.member:active:not(:disabled) { transform: scale(.97); }
.btn { border-radius: var(--v-r-sm); border-color: var(--v-linha-forte); }
.btn.ghost { background: rgba(255, 255, 255, .04); }
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.btn.primary { background: linear-gradient(135deg, var(--v-roxo-forte), var(--v-roxo)); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 18px rgba(124, 77, 255, .28); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 8px 24px rgba(124, 77, 255, .4); }
.icon-btn { border-radius: var(--v-r-sm); color: var(--v-texto-2); }
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .07); color: var(--v-texto); }
input[type="text"], input:not([type]), input[type="password"], input[type="email"], input[type="search"], textarea, select {
  border-radius: var(--v-r-sm); background: rgba(0, 0, 0, .22); border-color: var(--v-linha-forte);
}
input:focus, textarea:focus, select:focus { border-color: rgba(167, 123, 255, .6); box-shadow: 0 0 0 3px rgba(167, 123, 255, .22); }
:focus-visible { outline-color: var(--v-roxo); }

/* rolagem: fina, só aparece com o mouse em cima do painel */
* { scrollbar-color: transparent transparent; }
*:hover { scrollbar-color: rgba(167, 123, 255, .35) transparent; }

/* ---------- 3. camadas flutuantes de vidro ---------- */
.modal { background: rgba(6, 4, 14, .55); backdrop-filter: blur(6px); }
.modal-card, .menu-pessoa, .st-pop, .lv-menu, .toast, .notif, .rail-tip, .pilula, .pl-card, .mu-drawer, .chat-agora {
  background: var(--v-vidro);
  -webkit-backdrop-filter: var(--v-blur);
  backdrop-filter: var(--v-blur);
  border: var(--v-borda);
  box-shadow: var(--v-luz), var(--v-sombra-2);
}
.modal-card { border-radius: var(--v-r-xl); background: var(--v-vidro-forte); box-shadow: var(--v-luz), var(--v-sombra-3); }
.menu-pessoa, .st-pop, .lv-menu, .pilula, .pl-card { border-radius: var(--v-r-lg); }
.toast { border-radius: var(--v-r-md); border-left-width: 3px; }
.notif { border-radius: var(--v-r-lg); }
/* sem suporte a blur (navegadores antigos): mais opaco para o texto continuar legível */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .modal-card, .menu-pessoa, .st-pop, .lv-menu, .toast, .notif, .rail-tip, .pilula, .pl-card, .mu-drawer, .chat-agora, .composer { background: #1a1529; }
}

/* ---------- 4. mensagens (todas as telas) ---------- */
.messages { gap: 0; padding: 12px 8px 16px; }
.msg:not(.system) { padding: 6px 10px; margin-top: 14px; border-radius: var(--v-r-sm); transition: background-color .12s; }
.msg.cont { margin-top: 0; padding-top: 2px; padding-bottom: 2px; }
.msg:not(.system):hover { background: rgba(255, 255, 255, .03); }
.msg-day { margin: 18px 6px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--v-apagado); }
.msg-day::before, .msg-day::after { background: var(--v-linha); }
.msg-head strong { font-weight: 650; font-size: 14px; }
.msg-head time { color: var(--v-apagado); font-size: 11px; }
.msg-text { color: #e9e5f3; line-height: 1.5; }
.msg.system { margin: 10px 0; color: var(--v-apagado); }
/* ações da mensagem: barrinha de vidro no canto, só no hover */
.messages:not(.dm-mode) .msg-actions {
  position: absolute; top: -14px; right: 10px; z-index: 2; padding: 3px; gap: 2px; border-radius: var(--v-r-sm);
  background: var(--v-vidro-forte); -webkit-backdrop-filter: var(--v-blur); backdrop-filter: var(--v-blur);
  border: var(--v-borda); box-shadow: var(--v-luz), var(--v-sombra-1);
  transform: translateY(2px); transition: opacity .12s, transform .15s var(--v-ease);
}
.messages:not(.dm-mode) .msg:hover .msg-actions, .messages:not(.dm-mode) .msg:focus-within .msg-actions { transform: none; }
.msg-actions .icon-btn { width: 28px; height: 28px; }
.msg.cont .msg-head { right: 10px; }
/* mensagem que cita você: fundo roxo bem leve e faixa à esquerda */
.msg.me-citou { background: rgba(167, 123, 255, .08); box-shadow: inset 3px 0 0 var(--v-roxo); }
.msg.me-citou:hover { background: rgba(167, 123, 255, .12); }
.mencao { background: rgba(167, 123, 255, .18); color: #dcc9ff; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.msg-novas { margin: 12px 6px 4px; }
.msg-reply { border-radius: 0 6px 6px 0; background: rgba(255, 255, 255, .03); }
/* conversa privada: balões mais limpos */
.messages.dm-mode .msg.mine .msg-body { background: linear-gradient(135deg, var(--v-roxo-forte), #9a6dff); box-shadow: 0 6px 18px rgba(124, 77, 255, .25); }
.messages.dm-mode .msg:not(.mine) .msg-body { background: rgba(255, 255, 255, .06); border: 1px solid var(--v-linha); }
.messages.dm-mode .msg:not(.system):hover { background: transparent; }
.messages.dm-mode .msg:not(.system) { margin-top: 10px; }
.messages.dm-mode .msg.cont { margin-top: 2px; }

/* ---------- 5. campo de escrever: flutuante, em vidro ---------- */
.composer {
  margin: 0 12px 12px; padding: 6px 6px 6px 8px; gap: 2px; align-items: center;
  border-radius: var(--v-r-lg); border: var(--v-borda); border-top: var(--v-borda);
  background: var(--v-vidro); -webkit-backdrop-filter: var(--v-blur); backdrop-filter: var(--v-blur);
  box-shadow: var(--v-luz), var(--v-sombra-1);
  transition: border-color .15s, box-shadow .2s var(--v-ease);
}
.composer:focus-within { border-color: rgba(167, 123, 255, .45); box-shadow: var(--v-luz), 0 0 0 3px rgba(167, 123, 255, .16), var(--v-sombra-1); }
.composer input#chat-input { min-width: 0; border: 0; background: transparent; box-shadow: none; padding: 9px 8px; font-size: 14.5px; }
.composer input#chat-input:focus { box-shadow: none; border: 0; }
.composer .icon-btn:not(.send) { opacity: .7; width: 34px; height: 34px; }
.composer .icon-btn:not(.send):hover { opacity: 1; }
.composer .send { width: 36px; height: 36px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .06); transition: background .2s var(--v-ease), box-shadow .2s, transform .12s; }
.composer:focus-within .send { background: linear-gradient(135deg, var(--v-roxo-forte), var(--v-roxo)); box-shadow: 0 4px 14px rgba(124, 77, 255, .4); }
.pending { background: transparent; padding: 8px 14px 0; }

/* ---------- 6. barra de servidores (PC) ---------- */
.rail { display: none; }
.rail-tip {
  position: fixed; z-index: 9800; transform: translateY(-50%); padding: 7px 11px; border-radius: var(--v-r-sm);
  font-size: 13px; font-weight: 600; color: var(--v-texto); white-space: nowrap; pointer-events: none;
  background: var(--v-vidro-forte); animation: v-tip .14s var(--v-ease);
}
.rail-tip[hidden] { display: none; }
@keyframes v-tip { from { opacity: 0; transform: translate(-4px, -50%); } }

@media (min-width: 821px) {
  html:not(.mobile) .app.com-rail .rail {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; min-height: 0;
    overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  }
  html:not(.mobile) .rail::-webkit-scrollbar { display: none; }
  .rail-srvs { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .rail-btn {
    position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 0; display: grid; place-items: center;
    border-radius: 16px; background: rgba(255, 255, 255, .05); color: var(--v-texto-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: border-radius .22s var(--v-ease), background-color .2s, color .15s, transform .12s var(--v-ease), box-shadow .2s;
  }
  .rail-btn:hover { border-radius: 14px; background: rgba(167, 123, 255, .18); color: #fff; }
  .rail-btn:active { transform: scale(.94); }
  .rail-btn.on { border-radius: 14px; background: rgba(167, 123, 255, .22); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(167, 123, 255, .35), 0 6px 18px rgba(124, 77, 255, .25); }
  .rail-btn .srv-ico.rail { width: 48px; height: 48px; font-size: 18px; border-radius: inherit; transition: border-radius .22s var(--v-ease); }
  .rail-srv { background: transparent; box-shadow: none; }
  .rail-srv.on { box-shadow: 0 0 0 2px rgba(167, 123, 255, .7), 0 6px 18px rgba(124, 77, 255, .3); }
  .rail-casa img { width: 28px; height: 28px; filter: drop-shadow(0 2px 6px rgba(124, 77, 255, .5)); }
  .rail-casa.on { background: linear-gradient(135deg, var(--v-roxo-forte), var(--v-roxo)); }
  /* pílula à esquerda: mostra onde você está (e cresce no hover), como no Discord */
  .rail-pill { position: absolute; left: -12px; top: 50%; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: #fff;
    transform: translateY(-50%); transition: height .22s var(--v-ease); }
  .rail-btn:hover .rail-pill { height: 18px; }
  .rail-btn.on .rail-pill { height: 36px; }
  .rail-ava .avatar { width: 48px; height: 48px; font-size: 18px; }
  .rail-dm { background: transparent; box-shadow: none; border-radius: 50%; }
  .rail-badge { position: absolute; right: -3px; bottom: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--bad); box-shadow: 0 0 0 3px #0e0b18; }
  .rail-badge.verde { background: var(--v-verde); color: #062418; }
  .rail-call { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
    background: var(--v-verde); color: #062418; box-shadow: 0 0 0 3px #0e0b18; }
  .rail-srv.na-call:not(.on) { box-shadow: 0 0 0 2px rgba(61, 220, 151, .55); }
  .rail-sep { flex: none; width: 28px; height: 2px; border-radius: 2px; background: var(--v-linha-forte); }
  .rail-acao { color: var(--v-verde); }
  .rail-acao:hover { background: var(--v-verde); color: #062418; }
  .rail-busca { color: var(--v-texto-2); margin-top: auto; }
  .rail-busca:hover { background: rgba(255, 255, 255, .12); color: #fff; }

  /* grade com a barra de servidores na frente */
  html:not(.mobile) .app.com-rail { grid-template-columns: 64px var(--side-w, 264px) minmax(0, 1fr) var(--chat-w, 380px); padding: 8px 8px 8px 4px; gap: 8px; }
  html:not(.mobile) .app.com-rail.chat-closed { grid-template-columns: 64px var(--side-w, 264px) minmax(0, 1fr); }

  /* painéis viram cartões inteiros (cantos arredondados embaixo também) */
  html:not(.mobile) .app.com-rail > .panel { border-radius: var(--v-r-lg); border: 1px solid var(--v-linha); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--v-sombra-1); }
  html:not(.mobile) .app.com-rail > .sidebar { background: rgba(16, 13, 26, .82); }

  /* ----- contexto da barra lateral ----- */
  /* servidores moram na barra de ícones: a lista deles sai da lateral */
  .app.com-rail .cat[data-sec="servidores"] { display: none !important; }
  .app.com-rail:not(.ctx-srv) #srv-mine { display: none !important; }
  /* servidor aberto: a lateral mostra só os canais dele (o resto continua no Lobby) */
  .app.com-rail.ctx-srv .server-head,
  .app.com-rail.ctx-srv .cat[data-sec="lobby"], .app.com-rail.ctx-srv #ch-chat,
  .app.com-rail.ctx-srv .cat[data-sec="diretas"], .app.com-rail.ctx-srv #dm-list, .app.com-rail.ctx-srv #fr-open,
  .app.com-rail.ctx-srv .cat[data-sec="lives"], .app.com-rail.ctx-srv #live-list,
  .app.com-rail.ctx-srv .cat[data-sec="jogos"], .app.com-rail.ctx-srv #jg-open-2, .app.com-rail.ctx-srv #jg-list,
  .app.com-rail.ctx-srv .cat[data-sec="online"], .app.com-rail.ctx-srv #online-list { display: none !important; }
  .app.com-rail.ctx-srv .channels #srv-mine, .app.com-rail.ctx-srv .channels #srv-mine.sec-off { display: block !important; padding: 0; margin: 0; }
  .app.com-rail.ctx-srv #srv-mine > li:not(.srv-atual) { display: none; }
  .app.com-rail.ctx-srv .channels { padding: 0 10px 12px; }
  /* cabeçalho do servidor aberto: nome grande, ações sempre visíveis */
  .app.com-rail.ctx-srv .srv-atual > .members { padding: 0; margin: 0 -10px 6px; }
  .app.com-rail.ctx-srv .srv-cab {
    position: sticky; top: 0; z-index: 3; padding: 12px 10px 12px 14px; gap: 2px; min-height: 60px;
    background: linear-gradient(180deg, rgba(167, 123, 255, .14), rgba(167, 123, 255, .02));
    border-bottom: 1px solid var(--v-linha);
    -webkit-backdrop-filter: var(--v-blur); backdrop-filter: var(--v-blur);
  }
  .app.com-rail.ctx-srv .srv-cab .channel.dm { padding: 4px 6px; gap: 10px; background: transparent; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
  .app.com-rail.ctx-srv .srv-cab .channel.dm:hover { background: rgba(255, 255, 255, .05); }
  .app.com-rail.ctx-srv .srv-cab .srv-ico.sm { width: 32px; height: 32px; font-size: 14px; border-radius: 10px; }
  .app.com-rail.ctx-srv .srv-cab .srv-act { opacity: .75; position: static; transform: none; pointer-events: auto; background: transparent; }
  .app.com-rail.ctx-srv .srv-cab .srv-act:hover { opacity: 1; }
  .app.com-rail.ctx-srv .srv-atual .ch-list { margin: 4px 0 8px; padding: 0; border: 0; gap: 2px; }
  .app.com-rail.ctx-srv .ch-sub { margin: 14px 8px 4px; font-size: 11px; letter-spacing: .08em; color: var(--v-apagado); }

  /* ----- Lobby (sem servidor aberto): conversas em destaque ----- */
  .app.com-rail:not(.ctx-srv) .cat[data-sec="diretas"] { margin-top: 18px; }
  .app.com-rail:not(.ctx-srv) #dm-list .channel.dm { padding: 7px 10px; min-height: 44px; }
  .app.com-rail:not(.ctx-srv) #dm-list .dm-ava .avatar { width: 32px; height: 32px; font-size: 13px; }

  /* ----- chat em foco: ocupa o centro (como no Discord) ----- */
  html:not(.mobile) .app.com-rail.chat-foco { grid-template-columns: 64px var(--side-w, 264px) minmax(0, 1fr); }
  .app.chat-foco > .stage {
    grid-column: 3; grid-row: 1; align-self: start; justify-self: end; z-index: 5; height: 56px;
    background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible;
  }
  .app.chat-foco > .stage > :not(.stage-head) { display: none !important; }
  .app.chat-foco > .stage .stage-head { border: 0; background: transparent; height: 56px; padding-right: 14px; }
  .app.chat-foco > .stage .stage-title, .app.chat-foco > .stage #stage-sub, .app.chat-foco #toggle-chat, .app.chat-foco > .stage .m-voltar { display: none !important; }
  .app.chat-foco > .chat {
    grid-column: 3; grid-row: 1; display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(320px, 30%, 380px);
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto;
  }
  .app.chat-foco > .chat > .resizer { display: none; }
  .app.chat-foco > .chat > .chat-head { grid-column: 1 / -1; grid-row: 1; height: 56px; padding-right: var(--topo-dir, 300px); }
  .app.chat-foco > .chat > .chat-dm-card { grid-column: 2; grid-row: 2; }
  .app.chat-foco > .chat > .mu-off { grid-column: 2; grid-row: 3; }
  .app.chat-foco > .chat > .music { grid-column: 2; grid-row: 4 / 8; max-height: none; align-self: stretch; }
  .app.chat-foco > .chat > .chat-dm-card, .app.chat-foco > .chat > .mu-off, .app.chat-foco > .chat > .music { border-left: 1px solid var(--v-linha); }
  .app.chat-foco > .chat > .mu-off { margin: 0; border-radius: 0; border-width: 0 0 1px 1px; }
  .app.chat-foco > .chat > .chat-agora { position: absolute; top: 64px; left: 24px; width: min(420px, 50%); margin: 0; }
  .app.chat-foco > .chat > .messages { grid-column: 1; grid-row: 2 / 6; padding: 16px 24px 16px; }
  .app.chat-foco > .chat > .pending { grid-column: 1; grid-row: 6; }
  .app.chat-foco > .chat > .composer { grid-column: 1; grid-row: 7; margin: 0 24px 18px; }
  .app.chat-foco > .chat > .jump { left: calc((100% - clamp(320px, 30%, 380px)) / 2); bottom: 84px; }
  .app.chat-foco .messages .msg-img, .app.chat-foco .messages .msg-video { max-width: min(420px, 100%); max-height: 320px; }
  /* conversa privada em foco: o cartão da pessoa vira o painel de perfil da direita */
  .app.chat-foco .chat-dm-card { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 18px 20px; margin: 0; border-radius: 0; }
  .app.chat-foco .chat-dm-card .avatar.lg { width: 88px; height: 88px; font-size: 34px; }
  .app.chat-foco .chat-dm-card .cdm-nome { font-size: 20px; }
  .app.chat-foco .chat-dm-card .cdm-txt { align-items: center; }

  /* chat lateral normal: um pouco mais largo (o campo de escrever ficava espremido) */
  .chat-expand { flex: none; }
}
/* botão de expandir não existe no celular */
.chat-expand { display: none; }
@media (min-width: 821px) { html:not(.mobile) .app.com-rail .chat-expand { display: grid; } html:not(.mobile) .app.com-rail .chat-head .where-chip { margin-right: auto; } }

/* ---------- 7. barra lateral, cabeçalhos e painel do usuário ---------- */
.server-head { border-bottom-color: var(--v-linha); }
.cat { color: var(--v-apagado); font-size: 11px; letter-spacing: .08em; font-weight: 700; }
.cat[data-sec]:hover { color: var(--v-texto-2); }
.channel { border-radius: var(--v-r-sm); color: var(--v-texto-2); position: relative; }
.channel:hover { background: var(--v-hover); color: var(--v-texto); }
.channel.on { background: var(--v-sel); color: #fff; font-weight: 600; }
.channel.on::before { content: ""; position: absolute; left: -2px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--v-roxo); box-shadow: 0 0 10px var(--v-roxo-glow); }
.ch-list { border-left-color: var(--v-linha); }
button.member:hover:not(:disabled), li.member.clickable:hover { background: var(--v-hover); }
.stage-head, .chat-head { border-bottom-color: var(--v-linha); }
.stage-head { height: 56px; }
.chat-head { height: 56px; }
.stage-title, #chat-head-title { font-weight: 650; font-size: 15px; }
.where-chip { background: rgba(255, 255, 255, .06); border: 1px solid var(--v-linha); color: var(--v-texto-2); }
.userpanel { background: rgba(10, 8, 18, .55); border-top-color: var(--v-linha); padding: 10px; }
@media (min-width: 821px) { html:not(.mobile) .userpanel { margin: 0 8px 8px; border: 1px solid var(--v-linha); border-radius: var(--v-r-md); box-shadow: var(--v-luz); } }

/* cartões e destaques do início: cantos e sombras no mesmo padrão */
.ic-call, .ini-cartao, .ini-card, .fr-card, .frc { border-radius: var(--v-r-md); }
.ic-call { background: var(--v-vidro); border: var(--v-borda); box-shadow: var(--v-luz), var(--v-sombra-1); }

/* ---------- 8. Ctrl+K ---------- */
.pl-modal { place-items: start center; padding-top: 14vh; z-index: 9600; }
.pl-card { width: min(620px, 100%); padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 66vh; }
.pl-topo { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--v-linha); color: var(--v-texto-2); }
.pl-campo { flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 4px 0; font-size: 16px; }
.pl-lista { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.pl-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--v-r-sm); cursor: pointer; }
.pl-item.on { background: var(--v-sel); }
.pl-item .avatar.sm, .pl-item .srv-ico.sm { width: 26px; height: 26px; }
.pl-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--v-texto-2); flex: none; }
.pl-nome { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.pl-sub { flex: 1; min-width: 0; color: var(--v-apagado); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-tipo { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--v-apagado); }
.pl-item.on .pl-tipo { color: var(--v-roxo); }
.pl-vazio { padding: 18px; text-align: center; color: var(--v-apagado); }
.pl-pe { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--v-linha); font-size: 12px; color: var(--v-apagado); }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-right: 2px; border-radius: 5px; font: 600 11px/1 var(--gc-font-sans);
  color: var(--v-texto-2); background: rgba(255, 255, 255, .07); border: 1px solid var(--v-linha-forte); box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }

/* ---------- 9. menos animação ---------- */
html.a11y-movimento .rail-btn, html.a11y-movimento .rail-pill, html.a11y-movimento .msg-actions { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .rail-btn, .rail-pill, .rail-tip { transition: none !important; animation: none !important; } }

/* ---------- 10. ajustes do contexto do servidor ---------- */
@media (min-width: 821px) {
  .app.com-rail.ctx-srv #cat-admin, .app.com-rail.ctx-srv #cat-admin ~ * { display: none !important; }
  .app.com-rail.ctx-srv .srv-cab .channel.dm.on { background: transparent; }
  .app.com-rail.ctx-srv .srv-cab .channel.dm::before { display: none; }
  .rail-pill { left: -8px; }
}

/* ---------- 11. perfil: bio vazia desalinhada ----------
   A bio vazia ganha a classe "empty", que é também a do estado vazio da sala (.empty: centralizado, 360 px, margin auto).
   Resultado: "Sobre mim / Sem bio." centralizado e a linha de cima mais curta que o resto. Aqui volta ao alinhamento do card. */
.profile-card .pf-bio.empty { max-width: none; width: auto; margin: var(--gc-sp-4, 16px) 0 0; text-align: start; }

/* ---------- 12. testador de controle em traço (4.1.0, referência do dono) ----------
   Tudo contorno claro e fino sobre o fundo; ao apertar, o botão enche de roxo (ou da cor do símbolo). */
.tc-desenho { background: radial-gradient(circle at 50% 45%, rgba(167, 123, 255, .10), transparent 70%), rgba(0, 0, 0, .18); border: 1px solid var(--v-linha); padding: 18px 14px 8px; }
.tc-svg { --tc-traco: #c9c3dd; --tc-fino: rgba(201, 195, 221, .55); stroke-linejoin: round; stroke-linecap: round; }
.tc-svg .tc-corpo, .tc-svg.tc-xbox .tc-corpo, .tc-svg.tc-ps .tc-corpo { fill: rgba(255, 255, 255, .02); stroke: var(--tc-traco); stroke-width: 2.6; }
.tc-svg .tc-bt, .tc-svg .tc-gat, .tc-svg .tc-base, .tc-svg .tc-touch, .tc-svg.tc-xbox .tc-face, .tc-svg.tc-ps .tc-face, .tc-svg .tc-seta, .tc-svg .tc-guia {
  fill: transparent; stroke: var(--tc-traco); stroke-width: 2.2; transition: fill .08s, stroke .08s, filter .12s; }
.tc-svg .tc-cruz { fill: transparent; stroke: none; }
.tc-svg .tc-stick { fill: transparent; stroke: var(--tc-traco); stroke-width: 2.2; }
.tc-svg .tc-stick.mexe { fill: rgba(167, 123, 255, .25); }
.tc-svg .tc-stick-topo { stroke: var(--tc-fino); stroke-width: 1.6; }
.tc-svg .tc-guia-anel { stroke: var(--tc-fino); }
.tc-svg .tc-barra-luz { fill: none; stroke: var(--tc-fino); stroke-width: 1.6; filter: none; }
.tc-svg .tc-simb { stroke: var(--tc-traco); stroke-width: 2; }
.tc-svg .tc-rot, .tc-svg .tc-letra-a, .tc-svg .tc-letra-b, .tc-svg .tc-letra-x, .tc-svg .tc-letra-y { fill: var(--tc-traco); font: 650 12px var(--gc-font-sans); }
.tc-svg .tc-furo { fill: var(--tc-fino); }
.tc-svg .tc-sombra { fill: rgba(167, 123, 255, .10); }
.tc-svg .tc-risco path { stroke: var(--tc-fino); stroke-width: 2; fill: none; }
.tc-svg .tc-gat-enche { fill: rgba(167, 123, 255, .55); }
/* apertado: enche de roxo com brilho; nos botões de rosto, a cor do símbolo/letra */
.tc-svg .tc-bt.on, .tc-svg .tc-gat.on, .tc-svg .tc-stick.on { fill: var(--v-roxo); stroke: #fff; filter: drop-shadow(0 0 8px rgba(167, 123, 255, .8)); }
.tc-svg.tc-xbox .tc-face[data-b="0"].on { fill: #3ccf6e; } .tc-svg.tc-xbox .tc-face[data-b="1"].on { fill: #ff5d6c; } .tc-svg.tc-xbox .tc-face[data-b="2"].on { fill: #4b9bff; } .tc-svg.tc-xbox .tc-face[data-b="3"].on { fill: #ffc83d; }
.tc-svg.tc-ps .tc-face[data-b="0"].on { fill: #7fa8ff; } .tc-svg.tc-ps .tc-face[data-b="1"].on { fill: #ff6b81; } .tc-svg.tc-ps .tc-face[data-b="2"].on { fill: #f08cd2; } .tc-svg.tc-ps .tc-face[data-b="3"].on { fill: #3fd6a0; }
.tc-svg .tc-face.on + .tc-rot, .tc-svg .tc-face.on + .tc-simb { fill: #10131a; stroke: #10131a; }
.tc-ult { background: rgba(255, 255, 255, .06); border: 1px solid var(--v-linha); }

/* ---------- 13. fontes do nome vendidas à parte (4.1.0) ---------- */
.nf-fonte-arredondada { font-family: "Iru Fredoka", var(--gc-font-sans), sans-serif !important; font-weight: 700 !important; }
.nf-fonte-macia { font-family: "Iru Comfortaa", var(--gc-font-sans), sans-serif !important; font-weight: 700 !important; }
.nf-fonte-gibi { font-family: "Iru Baloo 2", var(--gc-font-sans), sans-serif !important; font-weight: 700 !important; }
.nf-fonte-cursiva { font-family: "Iru Pacifico", var(--gc-font-sans), sans-serif !important; font-weight: 400 !important; letter-spacing: .01em; }
.nf-fonte-classica { font-family: "Iru Cinzel", var(--gc-font-sans), sans-serif !important; font-weight: 700 !important; letter-spacing: .04em; }
.nf-fonte-futurista { font-family: "Iru Orbitron", var(--gc-font-sans), sans-serif !important; font-weight: 700 !important; letter-spacing: .03em; font-size: .92em; }
[class*="nf-fonte"] :is(.cargo-tag, .hc-tag) { font-family: var(--gc-font-sans), sans-serif !important; font-weight: 700 !important; letter-spacing: normal; font-size: 11px; }

/* ---------- 14. tela pequena (notebook 1366/1280): o cabeçalho não quebra mais em 3 linhas ----------
   Títulos numa linha só com "…", botões sem quebrar, e o que é secundário some antes do principal. */
.stage-head, .chat-head { flex-wrap: nowrap; min-width: 0; gap: 8px; }
.stage-title, #chat-head-title { min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stage-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; font-size: 12.5px; }
.stage-head .spacer { flex: 1 1 0; min-width: 0; }
.stage-head > .btn, .stage-head > .mu-chip, .stage-head > .icon-btn, .stage-head > #os-chip, .chat-head > .icon-btn { flex: none; white-space: nowrap; }
#btn-update { padding: 5px 12px; }
.where-chip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.srv-cab .channel.dm, .srv-cab .channel.dm span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-name, .ini-nome, .ic-nome, .pl-canal, .pl-quem { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1440px) {
  .stage-head .dl-app { display: none; } /* "Baixar app" some primeiro: dá para baixar no menu da conta */
}
@media (max-width: 1280px) {
  #stage-sub { display: none; }
  html:not(.mobile) .app.com-rail { grid-template-columns: 60px minmax(200px, var(--side-w, 230px)) minmax(0, 1fr) minmax(300px, var(--chat-w, 340px)); gap: 6px; padding: 6px; }
  html:not(.mobile) .app.com-rail.chat-closed, html:not(.mobile) .app.com-rail.chat-foco { grid-template-columns: 60px minmax(200px, var(--side-w, 230px)) minmax(0, 1fr); }
  .rail-btn, .rail-btn .srv-ico.rail, .rail-ava .avatar { width: 44px; height: 44px; }
  .stage-head, .chat-head { padding-left: 12px; padding-right: 10px; }
  .chat-head .where-chip { max-width: 110px; }
}
@media (max-width: 1100px) and (min-width: 821px) {
  html:not(.mobile) .app.com-rail { grid-template-columns: 60px 200px minmax(0, 1fr) minmax(280px, 300px); }
  .mu-chip #mu-chip-text { display: none; }
}

/* ---------- 15. foto do servidor preenchendo o ícone (4.1.0) ----------
   Com display: inline-grid a % da imagem não tinha base e ela ficava no tamanho natural, num canto. */
.srv-ico { position: relative; }
.srv-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 16. 4.1.0: início do servidor, amigos, sininho, menu da pessoa, ligação, atividade, moderação ---------- */
/* "Início do servidor": parece botão de verdade, com destaque roxo (antes só o nome lá em cima abria a página) */
.channel.srv-home { margin: 4px 0 6px; padding: 9px 12px; font-weight: 650; color: #fff;
  background: linear-gradient(135deg, rgba(167, 123, 255, .22), rgba(58, 107, 255, .12)); border: 1px solid rgba(167, 123, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.channel.srv-home:hover { background: linear-gradient(135deg, rgba(167, 123, 255, .32), rgba(58, 107, 255, .18)); border-color: rgba(167, 123, 255, .5); }
.channel.srv-home.on { background: linear-gradient(135deg, var(--v-roxo-forte), #6f8bff); border-color: transparent; }
.channel.srv-home.on::before { display: none; }
.srv-home-dica { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); }

/* Amigos com pedido novo: acende */
#fr-open.tem-pedido { color: #fff; background: rgba(255, 93, 108, .1); box-shadow: inset 3px 0 0 #ff5d6c; }
#fr-open.tem-pedido #fr-count { background: #ff5d6c; color: #fff; }
.fr-bloq { display: grid; gap: 6px; }
.fr-bloq-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--v-r-md); background: rgba(255, 255, 255, .03); border: 1px solid var(--v-linha); }
.fr-bloq-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sininho: abas */
.ct-abas { display: flex; gap: 4px; padding: 4px; margin: 8px 12px 0; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.ct-aba { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--v-texto-2); font: 600 12.5px var(--gc-font-sans); cursor: pointer; }
.ct-aba[aria-selected="true"] { background: rgba(255, 255, 255, .09); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.ct-aba-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: #ff5d6c; color: #fff; font-size: 11px; }
.ct-pedido { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ct-ava .avatar { width: 36px; height: 36px; }
.ct-ped-acoes { display: flex; gap: 6px; flex: none; }
.ct-ver-amigos { margin: 0 auto 12px; display: flex; }

/* Menu da pessoa: seções separadas por linha fina, item perigoso em vermelho */
.mp-acoes { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--v-linha); }
.mp-item.mp-perigo { color: #ff7a86; }
.mp-item.mp-perigo:hover { background: rgba(255, 93, 108, .12); }

/* Ligação chegando / pedido para jogar: cartão de vidro no canto */
.lg-card { position: fixed; z-index: 9700; left: 50%; translate: -50% 0; top: 72px; width: min(360px, calc(100vw - 24px)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--v-r-xl); background: var(--v-vidro-forte); -webkit-backdrop-filter: var(--v-blur); backdrop-filter: var(--v-blur);
  border: var(--v-borda); box-shadow: var(--v-luz), var(--v-sombra-3); animation: lg-entra .25s var(--v-ease); }
.lg-card.lg-jogar { grid-template-columns: auto 1fr; }
.lg-card.lg-jogar .lg-acoes { grid-column: 1 / -1; justify-content: flex-end; }
@keyframes lg-entra { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.lg-ava .avatar { width: 48px; height: 48px; font-size: 20px; }
.lg-card:not(.lg-jogar) .lg-ava { animation: lg-pulsa 1.4s ease-in-out infinite; border-radius: 50%; }
@keyframes lg-pulsa { 50% { box-shadow: 0 0 0 8px rgba(61, 220, 151, .18); } }
.lg-txt { display: grid; min-width: 0; } .lg-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lg-txt small { color: var(--v-texto-2); }
.lg-acoes { display: flex; gap: 8px; }
.lg-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; transition: transform .12s var(--v-ease), filter .15s; }
.lg-btn:hover { filter: brightness(1.1); } .lg-btn:active { transform: scale(.94); }
.lg-sim { background: #2fbf7a; box-shadow: 0 6px 18px rgba(47, 191, 122, .4); }
.lg-nao { background: #ff5d6c; box-shadow: 0 6px 18px rgba(255, 93, 108, .35); }
html.a11y-movimento .lg-card, html.a11y-movimento .lg-ava { animation: none !important; }

/* Perfil: cartão "Jogando agora" */
.pf-act { display: flex !important; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--v-r-md);
  background: linear-gradient(135deg, rgba(61, 220, 151, .1), rgba(167, 123, 255, .08)); border: 1px solid rgba(61, 220, 151, .22); }
.pf-act[hidden] { display: none !important; }
.pf-act-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(61, 220, 151, .16); color: var(--v-verde); }
.pf-act-ico.musica { background: rgba(30, 215, 96, .14); color: #1ed760; }
.pf-act-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pf-act-txt small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--v-verde); font-weight: 700; }
.pf-act-txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-act-tempo { font-size: 12px; color: var(--v-texto-2); }
.pf-act-pedir { flex: none; }

/* Perfil: moderação em grade simétrica (ícone em cima, nome embaixo) */
.pf-mod { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.pf-mod-b { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 64px; padding: 10px 6px; border-radius: var(--v-r-md);
  border: 1px solid var(--v-linha-forte); background: rgba(255, 255, 255, .035); color: var(--v-texto); font: 600 12.5px var(--gc-font-sans); cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s var(--v-ease); }
.pf-mod-b:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.pf-mod-b:active { transform: scale(.97); }
.pf-mod-b.perigo { color: #ff7a86; } .pf-mod-b.perigo:hover { background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .35); }
.pf-mod-tempos { display: flex; gap: 6px; margin-top: 8px; padding: 6px; border-radius: var(--v-r-md); background: rgba(0, 0, 0, .25); }
.pf-mod-t { flex: 1; padding: 8px 6px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--v-texto); font: 600 12.5px var(--gc-font-sans); cursor: pointer; }
.pf-mod-t:hover { background: var(--v-sel); }

/* ---------- 17. cargos como chaves no perfil (dono) ---------- */
.pf-cargos-edit { display: flex; flex-wrap: wrap; gap: 6px; }
.cargo-chave { cursor: pointer; border: 1px dashed color-mix(in srgb, var(--rc) 55%, transparent); background: transparent; color: var(--v-texto-2); padding: 4px 10px; font: 600 12px var(--gc-font-sans); }
.cargo-chave::before { display: none; }
.cargo-chave-luz { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--rc); }
.cargo-chave.on { border-style: solid; color: #fff; background: color-mix(in srgb, var(--rc) 22%, transparent); }
.cargo-chave.on .cargo-chave-luz { background: var(--rc); box-shadow: 0 0 8px var(--rc); }

/* ---------- 18. página do servidor no visual novo (4.1.0) ----------
   Mesma linguagem dos cartões de vidro: cantos de 16, borda fina, sombra em camadas, títulos de seção pequenos. */
.ini { gap: 14px; }
.ini-hero { padding: 22px; border-radius: var(--v-r-xl); border: 1px solid var(--v-linha-forte);
  background: radial-gradient(600px 220px at 0% 0%, rgba(167, 123, 255, .22), transparent 70%), linear-gradient(135deg, rgba(30, 24, 48, .9), rgba(18, 14, 30, .9));
  box-shadow: var(--v-luz), var(--v-sombra-1); }
.ini-hero h2 { font-size: 24px; letter-spacing: -.02em; }
.ini-hero .srv-ico { border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.ini-tit { margin: 18px 2px 4px; font-size: 11px; font-weight: 700; color: var(--v-apagado); letter-spacing: .09em; }
.ini-voz, .ini-membro, .ini-srv, .ini-sinuca { border-radius: var(--v-r-lg); border: 1px solid var(--v-linha); background: rgba(255, 255, 255, .03);
  box-shadow: var(--v-luz); transition: border-color .15s, background .15s, transform .15s var(--v-ease); }
.ini-voz:hover, .ini-membro:hover, .ini-srv:hover { border-color: var(--v-linha-forte); background: rgba(255, 255, 255, .05); }
.ini-voz.ativo { border-color: rgba(61, 220, 151, .45); background: linear-gradient(160deg, rgba(61, 220, 151, .08), rgba(255, 255, 255, .02)); }
.ini-voz.aqui { box-shadow: var(--v-luz), 0 0 0 1px rgba(61, 220, 151, .35), 0 10px 30px rgba(10, 40, 30, .35); }
.ini-voz header b, .ini-voz header strong { font-size: 15px; }
.ini-membro { padding: 12px; }
.ini-membro.off { opacity: .55; }
.ini-chip { border-radius: 999px; border: 1px solid var(--v-linha); background: rgba(255, 255, 255, .04); }
.ini-chip.on { background: var(--v-sel); border-color: rgba(167, 123, 255, .4); color: #fff; }
.tc-svg .tc-cruz { stroke: var(--tc-traco); stroke-width: 2.2; }
.tc-svg.tc-xbox .tc-seta { stroke: transparent; }
.tc-svg.tc-xbox .tc-seta.on { stroke: #fff; }

/* ---------- 19. expressões do Iru (4.1.0, desenhos do dono) ---------- */
.iru-vinganca img.iru-cara { width: 220px; height: auto; filter: drop-shadow(0 0 28px rgba(255, 23, 68, .55)); animation: iruVingTreme .12s infinite alternate; }
.iru-zoeira img.iru-cara { width: 96px; height: auto; filter: drop-shadow(0 6px 16px rgba(124, 77, 255, .45)); animation: iruZoeiraRi .25s ease-in-out 6 alternate; }
.iru-zoeira.iru-bracos img.iru-cara { width: 120px; }
.nv-iru { display: block; width: 96px; height: auto; margin: 0 auto 6px; filter: drop-shadow(0 10px 22px rgba(124, 77, 255, .45)); animation: nv-iru-entra .5s var(--v-ease); }
@keyframes nv-iru-entra { from { opacity: 0; transform: translateY(10px) rotate(-6deg) scale(.9); } }
html.a11y-movimento .nv-iru, html.a11y-movimento .iru-cara { animation: none !important; }

/* ---------- 20. chat do canto: expandir E minimizar (4.1.0) + rosto novo do Iru ---------- */
@media (min-width: 821px) {
  html:not(.mobile) .app.com-rail:not(.chat-foco) .chat-close { display: grid; margin-left: 0; }
  html:not(.mobile) .app.com-rail .chat-head .chat-expand { margin-left: auto; }
}
.rail-casa { padding: 0; overflow: hidden; }
.rail-casa img { width: 48px !important; height: 48px !important; object-fit: cover; filter: none !important; }
.rail-casa.on { background: transparent !important; box-shadow: 0 0 0 2px var(--v-roxo), 0 6px 18px rgba(124, 77, 255, .35) !important; }
.server-logo, .drag-logo { border-radius: 50%; object-fit: cover; }

/* ---------- 21. criar evento (4.2.0) ---------- */
.ev2-card { width: min(620px, calc(100vw - 24px)); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.ev2-cab { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--v-linha);
  background: radial-gradient(420px 120px at 0 0, rgba(255, 200, 61, .14), transparent 70%); }
.ev2-cab h3 { margin: 0; font-size: 18px; } .ev2-cab small { color: var(--v-texto-2); }
.ev2-cab > div { flex: 1; min-width: 0; }
.ev2-cab-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 200, 61, .16); color: #ffc83d; flex: none; }
.ev2-form { display: grid; gap: 18px; padding: 16px 20px 0; overflow-y: auto; max-height: calc(88vh - 80px); }
.ev2-sec { display: grid; gap: 10px; }
.ev2-rot { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--v-texto-2); }
.ev2-n { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; background: var(--v-sel); color: #fff; }
.ev2-busca { width: 100%; padding: 10px 12px; }
.ev2-jogos { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; max-height: 236px; overflow-y: auto; padding: 2px; }
.ev2-jogo { position: relative; display: grid; gap: 6px; padding: 6px 6px 8px; border-radius: var(--v-r-md); border: 1px solid var(--v-linha); background: rgba(255, 255, 255, .03);
  color: var(--v-texto); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .12s var(--v-ease); }
.ev2-jogo:hover { border-color: var(--v-linha-forte); background: rgba(255, 255, 255, .06); }
.ev2-jogo:active { transform: scale(.97); }
.ev2-jogo.on { border-color: var(--v-roxo); background: var(--v-sel); box-shadow: 0 0 0 1px var(--v-roxo), 0 6px 18px rgba(124, 77, 255, .25); }
.ev2-capa { display: grid; place-items: center; aspect-ratio: 184 / 69; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #2a2146, #1a1530); color: var(--v-texto-2); }
.ev2-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev2-nome { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev2-ok { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--v-roxo); color: #fff; }
.ev2-vazio { grid-column: 1 / -1; color: var(--v-texto-2); font-size: 13px; padding: 12px; text-align: center; }
.ev2-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.ev2-seg button { flex: 1 1 auto; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--v-texto-2); font: 600 13px var(--gc-font-sans); cursor: pointer; white-space: nowrap; }
.ev2-seg button.on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.ev2-data { padding: 9px 12px; color-scheme: dark; }
.ev2-chave { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--v-r-md); border: 1px solid var(--v-linha);
  background: rgba(255, 255, 255, .03); color: var(--v-texto); text-align: left; cursor: pointer; }
.ev2-chave-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(124, 77, 255, .16); color: var(--v-roxo); }
.ev2-chave-txt { display: grid; gap: 2px; } .ev2-chave-txt small { color: var(--v-texto-2); font-size: 12px; line-height: 1.35; }
.ev2-trilho { width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .14); position: relative; transition: background .2s; }
.ev2-trilho i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--v-ease); }
.ev2-chave[aria-checked="true"] .ev2-trilho { background: var(--v-roxo); }
.ev2-chave[aria-checked="true"] .ev2-trilho i { transform: translateX(16px); }
.ev2-pessoas { display: flex; flex-wrap: wrap; gap: 6px; max-height: 140px; overflow-y: auto; }
.ev2-pessoa { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--v-linha); background: rgba(255, 255, 255, .03);
  color: var(--v-texto-2); font: 600 12.5px var(--gc-font-sans); cursor: pointer; }
.ev2-pessoa.on { border-color: var(--v-roxo); background: var(--v-sel); color: #fff; }
.ev2-todos { padding-left: 10px; }
.ev2-av { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #3a2a63; color: #fff; font-size: 11px; }
.ev2-av img { width: 100%; height: 100%; object-fit: cover; }
.ev2-on { width: 7px; height: 7px; border-radius: 50%; background: var(--v-verde); }
.ev2-dica { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--v-r-md); background: rgba(255, 200, 61, .07); border: 1px solid rgba(255, 200, 61, .18); color: var(--v-texto-2); font-size: 12.5px; }
.ev2-dica svg { color: #ffc83d; flex: none; margin-top: 1px; }
.ev2-pe { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 0 18px; margin-top: 2px;
  background: linear-gradient(transparent, var(--v-vidro-forte) 30%); }
.ev2-resumo { flex: 1; min-width: 0; margin: 0; font-size: 13px; color: var(--v-texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev2-resumo b { color: #fff; }
.ev2-botoes { display: flex; gap: 8px; flex: none; }
.ic-txt { display: inline-flex; align-items: center; gap: 4px; vertical-align: -2px; }
/* 4.2.0: escolher insígnia no Editar perfil */
.pf-ins-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pf-ins-opc { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--v-r-md); border: 1px solid var(--v-linha); background: rgba(255, 255, 255, .03); color: var(--v-texto); text-align: left; cursor: pointer; }
.pf-ins-opc span:last-child { display: grid; min-width: 0; } .pf-ins-opc b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pf-ins-opc small { color: var(--v-texto-2); font-size: 11.5px; }
.pf-ins-opc.on { border-color: #ffc83d; background: rgba(255, 200, 61, .1); box-shadow: 0 0 0 1px rgba(255, 200, 61, .5); }
.pf-ins-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(255, 200, 61, .15); color: #ffc83d; }
.pf-ins-ico.nenhuma { background: rgba(255, 255, 255, .06); color: var(--v-texto-2); }

/* ---------- 22. janela dos minijogos mais caprichada (4.2.0) ----------
   Vale para TODOS os jogos: cabeçalho com ícone, colunas em cartões, placar com posições, chat e campos no padrão. */
.jg-game-card { padding: 0; overflow: hidden; border-radius: var(--v-r-xl);
  background: radial-gradient(900px 260px at 0 0, rgba(167, 123, 255, .14), transparent 70%), var(--v-vidro-forte); }
.jg-game-card > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--v-linha); background: rgba(0, 0, 0, .12); }
#jg-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; letter-spacing: -.01em; }
.jg-tit-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(167, 123, 255, .3), rgba(58, 107, 255, .2)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.jg-game-card > header .btn { border-radius: 10px; padding: 7px 12px; }
.jg-layout { gap: 14px; padding: 14px; }
.jg-main { gap: 12px; }
.jg-aside { gap: 10px; }
/* placar: cartão com posição em medalha, o líder em dourado */
.jg-players { gap: 6px; max-height: 260px; }
.jg-players li { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--v-linha); font-size: 13.5px; }
.jg-players li::before { content: counter(pos); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .08); color: var(--v-texto-2); font-size: 11px; font-weight: 700; }
.jg-players li:first-child::before { background: linear-gradient(135deg, #ffd84d, #f0a020); color: #3a2400; }
.jg-players li:nth-child(2)::before { background: linear-gradient(135deg, #e7e9f2, #9aa1b5); color: #222; }
.jg-players li:nth-child(3)::before { background: linear-gradient(135deg, #f0b27a, #a8643a); color: #2a1406; }
.jg-players li.me { outline: 0; border-color: rgba(167, 123, 255, .55); background: rgba(167, 123, 255, .1); }
.jg-players li.acertou { border-color: rgba(61, 220, 151, .5); background: rgba(61, 220, 151, .1); }
.jg-players li b { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 15px; }
.jg-pname { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-pname em { color: #ffc83d; }
/* chat do jogo */
.jg-chat { border-radius: var(--v-r-md); border-color: var(--v-linha); background: rgba(0, 0, 0, .18); padding: 10px; gap: 6px; }
.jg-chat > * { padding: 4px 8px; border-radius: 8px; }
.jg-form { gap: 8px; }
.jg-form input { border-radius: 12px; padding: 10px 12px; }
.jg-form .btn { border-radius: 12px; padding: 0 16px; }
/* barras de ferramentas/configuração (Desenha, Stop, Forca…) */
.jg-tools, .jg-cfgs { border-radius: var(--v-r-md); border: 1px solid var(--v-linha); background: rgba(255, 255, 255, .03); padding: 10px 12px; gap: 10px; }
.jg-cfgs select, .jg-tools select { border-radius: 10px; padding: 6px 10px; background: rgba(0, 0, 0, .3); }
.jg-info, .jg-status { font-size: 13.5px; color: var(--v-texto-2); }
.jg-timer { font-variant-numeric: tabular-nums; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.jg-word { letter-spacing: .25em; font-weight: 700; font-size: 20px; }
/* Desenha & Adivinha: quadro como uma folha sobre a mesa (borda, sombra macia, cantos) */
.jg-main canvas:not(.jg-sinuca) { border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .06) inset; }
/* pote e apostas: cartão dourado discreto */
.jg-main [class*="pote"], .jg-ap { border-radius: var(--v-r-md); }
.ev2-pe { margin: 0 -20px; padding: 14px 20px 18px; background: #17122a; border-top: 1px solid var(--v-linha); }

/* ---------- 23. (4.3.0) controles nativos no padrão escuro ----------
   Seletor nativo abria a lista BRANCA (contraste horrível). color-scheme escuro + opções com fundo do tema. */
:root { color-scheme: dark; }
select { color-scheme: dark; appearance: none; -webkit-appearance: none; padding-right: 30px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b9b2cc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important; background-position: right 10px center !important; background-color: rgba(0, 0, 0, .3); color: var(--v-texto); }
select option, select optgroup { background: #1a1530; color: #f3f0fa; }
/* toda caixinha de marcar vira chave liga/desliga (pedido do dono); a lista de pessoas usa botão "Convidar" */
input[type="checkbox"]:not(.chave-nativa) { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 36px; height: 20px; margin: 0;
  border-radius: 999px; background: rgba(255, 255, 255, .16); border: 0; cursor: pointer; vertical-align: middle; transition: background .2s var(--v-ease); }
input[type="checkbox"]:not(.chave-nativa)::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .2s var(--v-ease); }
input[type="checkbox"]:not(.chave-nativa):checked { background: var(--v-roxo); }
input[type="checkbox"]:not(.chave-nativa):checked::after { transform: translateX(16px); }
input[type="checkbox"]:not(.chave-nativa):disabled { opacity: .4; cursor: not-allowed; }
input[type="checkbox"]:not(.chave-nativa):focus-visible { outline: 2px solid var(--v-roxo); outline-offset: 2px; }

/* ---------- 24. convidar para jogo: cartões com foto e status ---------- */
.jg-conv-lista { display: grid; gap: 6px; }
.jg-cv { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--v-r-md); border: 1px solid var(--v-linha); background: rgba(255, 255, 255, .03); }
.jg-cv.off { opacity: .55; }
.jg-cv-av { position: relative; width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #3a2a63; color: #fff; font-weight: 700; }
.jg-cv-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.jg-cv-st { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #17122a; background: #6f6886; }
.jg-cv-st.on { background: var(--v-verde); } .jg-cv-st.ausente { background: #ffc83d; } .jg-cv-st.np { background: #ff5d6c; }
.jg-cv-txt { flex: 1; min-width: 0; display: grid; } .jg-cv-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-cv-st-txt { font-size: 12px; color: var(--v-apagado); } .jg-cv-st-txt.on { color: var(--v-verde); } .jg-cv-st-txt.ausente { color: #ffc83d; } .jg-cv-st-txt.np { color: #ff7a86; }
.jg-cv-btn { flex: none; min-width: 108px; justify-content: center; }

/* ---------- 25. (4.3.0) chat flutuante de vidro e música em pílula no topo (só PC) ---------- */
@media (min-width: 821px) {
  /* o chat sai da grade: o centro ganha a largura toda */
  html:not(.mobile) .app.com-rail:not(.chat-foco), html:not(.mobile) .app.com-rail.chat-closed:not(.chat-foco) { grid-template-columns: 64px var(--side-w, 264px) minmax(0, 1fr) !important; }
  html:not(.mobile) .app.com-rail:not(.chat-foco):not(.chat-closed) > .chat {
    position: fixed; z-index: 60; right: 14px; top: calc(var(--titlebar, 32px) + 8px + 64px); bottom: 14px; width: var(--chat-w, 380px);
    border-radius: var(--v-r-xl); border: var(--v-borda); background: transparent !important; box-shadow: var(--v-luz), var(--v-sombra-3);
    animation: chat-entra .28s cubic-bezier(.34, 1.56, .64, 1);
  }
  /* o vidro fica num ::before (backdrop-filter no próprio .chat prenderia os filhos "fixed" dentro dele) */
  html:not(.mobile) .app.com-rail:not(.chat-foco):not(.chat-closed) > .chat::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(22, 17, 36, .72);
    -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
  @keyframes chat-entra { from { opacity: 0; transform: translateY(14px) scale(.97); } }
  html:not(.mobile) .app.com-rail:not(.chat-foco) .chat-head { border-radius: var(--v-r-xl) var(--v-r-xl) 0 0; }
  html:not(.mobile) .app.com-rail:not(.chat-foco):not(.chat-closed) .pilula { right: calc(var(--chat-w, 380px) + 30px); }
  html:not(.mobile) .app.com-rail:not(.chat-foco) .mu-off { display: none; }
  /* minimizado: balão no canto */
  .chat-bolha { display: none; }
  html:not(.mobile) .app.com-rail.chat-closed:not(.chat-foco) ~ .chat-bolha { display: grid; }
  .chat-bolha { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; place-items: center; border: var(--v-borda); color: #fff; cursor: pointer;
    background: linear-gradient(135deg, var(--v-roxo-forte), var(--v-roxo)); box-shadow: 0 10px 30px rgba(124, 77, 255, .45), var(--v-luz); animation: bolha-entra .35s cubic-bezier(.34, 1.56, .64, 1); transition: transform .15s var(--v-ease); }
  .chat-bolha:hover { transform: scale(1.06); } .chat-bolha:active { transform: scale(.95); }
  .chat-bolha[data-n]::after { content: attr(data-n); position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center;
    background: #ff5d6c; color: #fff; font: 700 11px var(--gc-font-sans); box-shadow: 0 0 0 3px #0e0b18; }
  @keyframes bolha-entra { from { opacity: 0; transform: scale(.6); } }
  html:not(.mobile) .app.com-rail .stage .pilula { right: 92px; }

  /* música: pílula no topo; abre com o mouse (mola), alfinete deixa aberta */
  .mu-vao { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; position: relative; }
  .music.mu-topo { position: relative; flex: 0 1 380px; max-width: 380px; min-width: 0; max-height: none; border: 0; background: none; z-index: 70; }
  .music.mu-topo .music-head { height: 36px; padding: 0 6px 0 4px; gap: 8px; border-radius: 999px; border: var(--v-borda); background: var(--v-vidro);
    -webkit-backdrop-filter: var(--v-blur); backdrop-filter: var(--v-blur); box-shadow: var(--v-luz); cursor: default; transition: border-radius .25s, background .2s; }
  .music.mu-topo .music-badge { width: 28px; height: 28px; border-radius: 50%; }
  .music.mu-topo .music-id strong, .music.mu-topo #mu-where, .music.mu-topo #mu-out, .music.mu-topo #mu-collapse, .music.mu-topo .mu-tab span:not(.gc-badge) { display: none; }
  .music.mu-topo .music-id { flex: 1; min-width: 0; }
  .music.mu-topo #mu-mini { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--v-texto); font-size: 13px; font-weight: 600; }
  .music.mu-topo .mu-tab { padding: 4px 8px; border-radius: 999px; }
  .music.mu-topo .mu-pino[aria-pressed="true"] { color: var(--v-roxo); background: var(--v-sel); }
  /* 4.3.0b: o painel completo flutua no canto direito (por cima do chat); o player segue montado: o som não para */
  .music.mu-topo .music-body {
    position: fixed; right: 14px; top: calc(var(--titlebar, 32px) + 8px + 64px); width: var(--chat-w, 380px); transform-origin: top right;
    max-height: min(62vh, 560px) !important; overflow: auto; padding: 12px !important; border-radius: var(--v-r-xl); display: flex !important; flex-direction: column; gap: 10px;
    background: rgba(22, 17, 36, .74); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
    border: var(--v-borda); box-shadow: var(--v-luz), var(--v-sombra-3);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.96); pointer-events: none;
    transition: opacity .2s var(--v-ease), transform .45s cubic-bezier(.34, 1.56, .64, 1), visibility 0s linear .2s; }
  .music.mu-topo .mu-composer { display: flex !important; padding: 0; border: 0; }
  .music.mu-topo.aberto .music-body, .music.mu-topo.fixo .music-body {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s var(--v-ease), transform .45s cubic-bezier(.34, 1.56, .64, 1), visibility 0s; }
  .music.mu-topo.aberto .music-head, .music.mu-topo.fixo .music-head { border-color: rgba(167, 123, 255, .5); background: rgba(167, 123, 255, .14); }
  .music.mu-topo .music-head { cursor: pointer; }
  .music.mu-topo .music-head:hover { background: rgba(255, 255, 255, .09); }
  .music.mu-topo .music-head > .mu-tab, .music.mu-topo .music-head > .mu-pino { display: none; }
  .mu-rapidos { display: inline-flex; gap: 2px; flex: none; }
  .mu-rapidos .icon-btn { width: 28px; height: 28px; border-radius: 50%; }
  .mu-rapidos .icon-btn:disabled { opacity: .35; }
  .mu-painel-cab { display: flex; align-items: center; gap: 6px; padding: 2px 2px 6px; border-bottom: 1px solid var(--v-linha); }
  .mu-painel-cab b { font-size: 14px; letter-spacing: -.01em; }
  .mu-painel-cab .mu-tab { padding: 4px 10px; border-radius: 999px; }
  .mu-painel-cab .mu-tab span:not(.gc-badge) { display: inline !important; }
  .mu-painel-cab .mu-pino[aria-pressed="true"] { color: var(--v-roxo); background: var(--v-sel); }
  /* os dois abertos: o chat desce para baixo do painel e eles ficam empilhados, com o mesmo vão */
  html:not(.mobile) .app.com-rail.mu-aberto:not(.chat-foco):not(.chat-closed) > .chat { top: calc(var(--titlebar, 32px) + 8px + 64px + var(--mu-h, 0px) + 10px); transition: top .42s cubic-bezier(.34, 1.56, .64, 1); }
  html:not(.mobile) .app.com-rail:not(.chat-foco):not(.chat-closed) > .chat { transition: top .42s cubic-bezier(.34, 1.56, .64, 1); }
  .music.mu-topo[hidden] { display: none; }
  #mu-chip { display: none !important; }
}
html.a11y-movimento .music.mu-topo .music-body, html.a11y-movimento .chat, html.a11y-movimento .chat-pop, html.a11y-movimento .chat-bolha { transition: none !important; animation: none !important; }
/* convidado: o cartão inteiro acende (não só o botão) */
.jg-cv:has(.jg-cv-btn[aria-pressed="true"]) { border-color: rgba(127, 240, 176, .45); background: linear-gradient(135deg, rgba(46, 204, 113, .13), rgba(46, 204, 113, .03)); box-shadow: 0 0 0 1px rgba(127, 240, 176, .2), inset 0 1px 0 rgba(255, 255, 255, .06); }
.jg-cv { transition: border-color .15s, background .2s, box-shadow .2s; }
.jg-cv-btn[aria-pressed="true"] { color: #fff; border-color: rgba(167, 123, 255, .5); }

/* ---------- 26. sinuca: efeito com explicação (4.3.0) ---------- */
.jg-efeito { border-radius: 16px; padding: 4px 14px 4px 4px; max-width: 400px; min-width: 0; background: rgba(255, 255, 255, .04); border-color: var(--v-linha); }
.jg-ef-txt { gap: 1px; line-height: 1.25; min-width: 0; }
.jg-ef-rot { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--v-apagado); font-weight: 700; }
.jg-ef-txt b { font-size: 13px; color: #fff; }
.jg-ef-txt .jg-ef-exp { font-size: 11.5px; color: var(--v-texto-2); white-space: normal; overflow-wrap: anywhere; }
/* 4.3.0: a mesa cabe na área que sobra (antes o canvas passava da altura e o rodapé do efeito ficava por cima da tabela) */
html:not(.mobile) #jg-body:not(.sn-empe):not(.sn-deitado) .jg-sn-mesa { container-type: size; }
html:not(.mobile) #jg-body:not(.sn-empe):not(.sn-deitado) .jg-sn-mesa > .jg-sinuca { width: min(100cqw, 100cqh * 1088 / 588); max-height: none; height: auto; }

/* 4.3.0: "Convidado" com cara de selecionado (verde da call), não um botão apagado */
.jg-cv-btn[aria-pressed="true"] { background: rgba(46, 204, 113, .16); color: #7ff0b0; border-color: rgba(127, 240, 176, .45); }
.jg-cv:has(.jg-cv-btn[aria-pressed="true"]) .jg-cv-av { box-shadow: 0 0 0 2px #7ff0b0; }

/* ---------- 27. (4.3.0) chat flutuante: setinha, lista de conversas e aviso de conversa nova ---------- */
.chat-voltar, .chat-casa, .chat-pop { display: none; }
@media (min-width: 821px) {
  html:not(.mobile) .app.com-rail:not(.chat-foco) .chat-voltar { display: inline-flex; }
  html:not(.mobile) .app.com-rail:not(.chat-foco) .chat-casa:not([hidden]) { display: block; }
  html:not(.mobile) .app.com-rail:not(.chat-foco) .chat-pop:not([hidden]) { display: flex; }
  html:not(.mobile) .app.com-rail.chat-em-casa:not(.chat-foco) .chat-head #chat-head-mark,
  html:not(.mobile) .app.com-rail.chat-em-casa:not(.chat-foco) .chat-head #chat-head-where,
  html:not(.mobile) .app.com-rail.chat-em-casa:not(.chat-foco) .chat-head #chat-expand { visibility: hidden; }
}
.chat { position: relative; }
.chat-casa { position: absolute; z-index: 30; left: 0; right: 0; top: var(--chat-head-h, 56px); bottom: 0; overflow: auto; padding: 10px 10px 16px;
  border-radius: 0 0 var(--v-r-xl) var(--v-r-xl); background: rgba(20, 15, 32, .92); animation: casa-entra .3s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes casa-entra { from { opacity: 0; transform: translateX(-12px); } }
.cc-secao + .cc-secao { margin-top: 14px; }
.cc-secao h4 { margin: 4px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v-apagado); }
.cc-lista { display: grid; gap: 2px; }
.cc-linha { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 14px; background: none; color: var(--v-texto); text-align: left; cursor: pointer; transition: background .15s, transform .15s; }
.cc-linha:hover { background: rgba(255, 255, 255, .06); } .cc-linha:active { transform: scale(.985); }
.cc-linha:focus-visible { outline: 2px solid var(--v-roxo); outline-offset: -2px; }
.cc-av { position: relative; flex: none; display: grid; place-items: center; }
.cc-hash { width: 32px; height: 32px; border-radius: 10px; background: var(--v-sel); color: var(--v-roxo); }
.cc-st { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2.5px #151020; }
.cc-on { background: #3ee08f; } .cc-ausente { background: #f6b94a; } .cc-np { background: #ff5d6c; } .cc-off { background: #6c6680; }
.cc-txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.cc-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-txt small { font-size: 12px; color: var(--v-texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: #ff5d6c; color: #fff; font: 700 11px var(--gc-font-sans); }
.cc-vazio { margin: 4px 8px; font-size: 13px; color: var(--v-texto-2); }
.chat-pop { position: absolute; z-index: 6; left: 10px; right: 10px; top: calc(var(--chat-head-h, 56px) + 8px); align-items: center; gap: 10px; padding: 8px 8px 8px 10px;
  border-radius: 16px; border: var(--v-borda); background: rgba(38, 30, 60, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--v-luz), 0 12px 30px rgba(0, 0, 0, .45); animation: pop-entra .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop-entra { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
.cp-txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.cp-txt b { font-size: 13px; } .cp-txt small { font-size: 12px; color: var(--v-texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 28. (4.3.0) adicionar direto, iluminação dos jogos, mesas vivas e movimento ---------- */
.sb-mais, .emo-mais { border: 1.5px dashed rgba(167, 123, 255, .5) !important; background: rgba(167, 123, 255, .07) !important; color: #cdb6ff !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; }
.sb-mais:hover, .emo-mais:hover { background: rgba(167, 123, 255, .16) !important; border-style: solid !important; }
.chave-linha { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }

/* iluminação sutil em todos os jogos: luz de cima e cantos um pouco mais escuros (não pega clique) */
#jg-body:not(.sn-cheia) { position: relative; isolation: isolate; }
#jg-body::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 70% at 50% -10%, rgba(196, 170, 255, .10), transparent 60%), radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, .28)); }
.jg-velha, .jg-mem, .jg-forca, .jg-stop-campos, .jg-main canvas:not(.jg-sinuca) { filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .35)); }
.jg-velha button, .jg-mem button { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .15s, box-shadow .2s; }
.jg-velha button:not(:disabled):hover, .jg-mem button:not(:disabled):hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 18px rgba(0, 0, 0, .3), 0 0 0 1px rgba(167, 123, 255, .35); }

/* mesas raras/épicas: brilho em volta seguindo o recorte da moldura (drop-shadow respeita a forma) */
.jg-sinuca[data-viva="raro"] { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--mesa-cor) 35%, transparent)); }
.jg-sinuca[data-viva="epico"] { animation: mesa-respira 4.5s ease-in-out infinite; }
@keyframes mesa-respira {
  0%, 100% { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--mesa-cor) 30%, transparent)); }
  50% { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--mesa-cor) 55%, transparent)); } }

/* movimento: tudo que abre entra com uma mola curta; botões afundam de leve ao clicar */
:root { --v-mola: cubic-bezier(.34, 1.56, .64, 1); }
.sb-painel, .emo-pop:not([hidden]), .st-pop, .ctx-menu, .menu-pessoa, .pular-caixa { animation: v-abre .34s var(--v-mola); transform-origin: bottom center; }
.modal:not([hidden]) > .modal-card, .modal:not([hidden]) .modal-card:first-child { animation: v-modal .42s var(--v-mola); }
.toast { animation: v-toast .4s var(--v-mola); }
@keyframes v-abre { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes v-modal { from { opacity: 0; transform: translateY(14px) scale(.965); } }
@keyframes v-toast { from { opacity: 0; transform: translateY(-10px) scale(.95); } }
.btn, .icon-btn, .rail-btn, .sb-som, .emo-i, .emo-e, .cc-linha, .channel { transition: transform .22s var(--v-mola), background-color .15s, border-color .15s, color .15s, box-shadow .2s, opacity .15s; }
.btn:active:not(:disabled), .icon-btn:active:not(:disabled), .sb-som:active, .emo-i:active, .emo-e:active { transform: scale(.94); }
.sb-som:hover, .emo-i:hover, .emo-e:hover { transform: translateY(-1px); }
html.a11y-movimento .sb-painel, html.a11y-movimento .emo-pop, html.a11y-movimento .modal-card, html.a11y-movimento .toast, html.a11y-movimento .st-pop,
html.a11y-movimento .jg-sinuca, html.a11y-movimento .chat-casa { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .sb-painel, .emo-pop, .modal-card, .toast, .jg-sinuca, .chat-casa, .chat-pop, .music.mu-topo .music-body { animation: none !important; transition: none !important; } }

/* ---------- 29. (4.3.0) eventos: botão no lugar, eliminação e pergunta bonita ---------- */
.ev-secao-topo { margin-bottom: 10px; }
.ev-vazio { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--v-r-lg); border: 1px dashed rgba(255, 201, 71, .35);
  background: linear-gradient(135deg, rgba(255, 201, 71, .07), rgba(255, 201, 71, .015)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.ev-vazio-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #ffd166; background: rgba(255, 201, 71, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.ev-vazio-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ev-vazio-txt b { font-size: 14px; } .ev-vazio-txt small { font-size: 12.5px; color: var(--v-texto-2); }
.ev-novo { display: flex; align-items: center; gap: 12px; min-height: 96px; padding: 14px 16px; border-radius: var(--v-r-lg); border: 1.5px dashed rgba(255, 201, 71, .35);
  background: rgba(255, 201, 71, .04); color: var(--v-texto); text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .25s var(--v-mola, ease); }
.ev-novo:hover { background: rgba(255, 201, 71, .09); border-style: solid; transform: translateY(-2px); }
.ev-novo span:last-child { display: grid; gap: 2px; } .ev-novo small { font-size: 12px; color: var(--v-texto-2); }
.ev-novo-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #ffd166; background: rgba(255, 201, 71, .12); }
.ev-elim { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; color: #e9ddff;
  background: linear-gradient(90deg, rgba(167, 123, 255, .16), rgba(255, 93, 108, .08)); border: 1px solid rgba(167, 123, 255, .3); }
.ev2-sub { margin-top: 8px; margin-left: 18px; width: calc(100% - 18px); animation: v-abre .3s var(--v-mola, ease); }
.ev2-sub[hidden] { display: none !important; }
.pergunta { display: grid; place-items: center; z-index: 400; }
.pergunta-card { width: min(420px, 92vw); padding: 24px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.pergunta-card h3 { margin: 6px 0 0; font-size: 17px; letter-spacing: -.01em; }
.pergunta-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--v-texto-2); }
.pergunta-ico { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: #cdb6ff; background: rgba(167, 123, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.pergunta-ico.perigo { color: #ff8d98; background: rgba(255, 93, 108, .16); }
.pergunta-acoes { display: flex; gap: 8px; width: 100%; } .pergunta-acoes .btn { flex: 1; justify-content: center; }
.ev-grade > .ev-novo { align-self: start; }

.chat-voltar { align-items: center; gap: 2px; height: 30px; padding: 0 10px 0 6px; margin-left: -4px; border-radius: 999px; border: 1px solid var(--v-linha); flex: none;
  background: rgba(255, 255, 255, .05); color: var(--v-texto); font: 600 12.5px var(--gc-font-sans); cursor: pointer; transition: background .15s, border-color .15s, transform .22s var(--v-mola, ease); }
.chat-voltar:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); }
.chat-voltar:active { transform: scale(.95); }
.chat-voltar:focus-visible { outline: 2px solid var(--v-roxo); outline-offset: 2px; }
.chat-casa { background: rgba(20, 15, 32, .55); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); } /* 4.3.2: vidro de volta (pedido do dono), com desfoque para o texto continuar legível */
/* chat flutuante é estreito: o selo "SERVIDOR/PRIVADO" sai do cabeçalho para o título caber (o "Agora: …" já diz onde é) */
@media (min-width: 821px) { html:not(.mobile) .app.com-rail:not(.chat-foco) .chat-head #chat-head-where { display: none; } }

/* ---------- 30. (4.3.2) favoritos soltos do chat, balão que abre/minimiza, números de não lidas ---------- */
@media (min-width: 821px) {
  html:not(.mobile) .mu-drawer.mu-solta { position: fixed; z-index: 75; top: calc(var(--titlebar, 32px) + 8px + 64px); right: 14px; bottom: 82px; left: auto; width: var(--chat-w, 380px); max-width: none;
    border-radius: var(--v-r-xl); border: var(--v-borda); overflow: hidden; background: rgba(22, 17, 36, .82); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
    box-shadow: var(--v-luz), var(--v-sombra-3); transform: translateY(12px) scale(.97); opacity: 0;
    transition: transform .42s var(--v-mola, ease), opacity .2s, visibility 0s linear .2s; }
  html:not(.mobile) .mu-drawer.mu-solta.open { transform: none; opacity: 1; transition: transform .42s var(--v-mola, ease), opacity .2s, visibility 0s; }
  /* o balão fica sempre: abre o chat logo acima dele e vira "minimizar" com o chat aberto */
  html:not(.mobile) .app.com-rail:not(.chat-foco) ~ .chat-bolha { display: grid; }
  html:not(.mobile) .app.com-rail:not(.chat-foco):not(.chat-closed) > .chat { bottom: 82px; }
}
.chat-bolha > svg { grid-area: 1 / 1; transition: opacity .2s, transform .35s var(--v-mola, ease); }
.chat-bolha > svg:last-of-type { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-bolha.aberto > svg:first-of-type { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-bolha.aberto > svg:last-of-type { opacity: 1; transform: none; }
.chat-bolha.aberto { background: rgba(38, 30, 60, .9); box-shadow: var(--v-luz), 0 10px 30px rgba(0, 0, 0, .45); }
.chat-voltar { position: relative; }
.chat-voltar[data-n]::after { content: attr(data-n); position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center;
  background: #ff5d6c; color: #fff; font: 700 10.5px var(--gc-font-sans); box-shadow: 0 0 0 2.5px #151020; animation: v-abre .3s var(--v-mola, ease); }

/* ---------- 31. (4.3.4) conversa em foco: cartão de perfil na coluna da direita ---------- */
.chat-dm-card .cdm-extra { display: none; }
.cdm-acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 821px) {
  html:not(.mobile) .app.chat-foco > .chat > .chat-dm-card { grid-row: 2 / 8; border-radius: 0 0 var(--v-r-xl) 0; align-self: stretch; overflow: auto; position: relative; justify-content: flex-start; padding: 0 20px 24px; gap: 12px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c1, #9d4edd) 38%, #0c0918) 0%, color-mix(in srgb, var(--c2, #2a1650) 30%, #0c0918) 42%, rgba(12, 9, 24, .35) 100%); }
  html:not(.mobile) .app.chat-foco .chat-dm-card .cdm-extra { display: revert; }
  /* 4.3.7: o banner vai inteiro até a borda (como no perfil) e só DEPOIS começa o degradê das cores */
  html:not(.mobile) .app.chat-foco .chat-dm-card .cdm-banner { display: block; align-self: stretch; height: 128px; margin: 0 -20px -52px; flex: none;
    background: linear-gradient(135deg, var(--c1, #9d4edd), var(--c2, #2a1650)) center / cover; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }
  html:not(.mobile) .app.chat-foco > .chat > .chat-dm-card { background: linear-gradient(180deg, transparent 0 128px, color-mix(in srgb, var(--c1, #9d4edd) 38%, #0c0918) 128px, color-mix(in srgb, var(--c2, #2a1650) 30%, #0c0918) 55%, rgba(12, 9, 24, .35) 100%) !important; }
  html:not(.mobile) .app.chat-foco .chat-dm-card .frc-ava { position: relative; z-index: 1; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .45)); }
  html:not(.mobile) .app.chat-foco .chat-dm-card .cdm-user { font-size: 13px; color: var(--v-texto-2); }
  .cdm-recado { position: relative; margin: 2px 0 0; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px; max-width: 100%; overflow-wrap: anywhere; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .cdm-tit { font-size: 13px; }
  .cdm-bloco { align-self: stretch; text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(12, 9, 24, .42); border: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
  .cdm-bloco p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--v-texto); overflow-wrap: anywhere; white-space: pre-line; }
  .cdm-rot { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v-apagado); }
}
@media (min-width: 821px) { html:not(.mobile) .app.chat-foco .chat-dm-card .cdm-txt { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; } }

/* ---------- 32. (4.3.5) reações, encaminhar, visto e cartão do YouTube compacto ---------- */
.yt-card.yt-compacto { grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 12px; max-width: 420px; padding: 8px; border-radius: 14px; border-left-width: 1px;
  background: rgba(255, 255, 255, .04); border-color: var(--v-linha); }
.yt-compacto .yt-capa { border-radius: 10px; }
.yt-compacto .yt-play { width: 34px; height: 24px; border-radius: 7px; }
.yt-compacto .yt-play::after { left: 13px; top: 6px; border-left-width: 10px; border-top-width: 6px; border-bottom-width: 6px; }
.yt-compacto .yt-cab { gap: 3px; }
.yt-compacto .yt-marca { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ff5a6e; }
.yt-compacto .yt-tit { font-size: 13px; color: var(--v-texto); }
.yt-compacto .yt-tit:hover { color: #fff; }
.yt-compacto .yt-canal { font-size: 11.5px; }
.yt-compacto .yt-bot { margin-top: 4px; padding: 3px 9px; font-size: 11.5px; }
.yt-card.yt-compacto.tocando { grid-template-columns: minmax(0, 1fr); }
.yt-card.yt-compacto.tocando .yt-player { order: 2; }

.msg-reacs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.msg-reac { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--v-linha); background: rgba(255, 255, 255, .05);
  color: var(--v-texto); font: 600 12px var(--gc-font-sans); cursor: pointer; transition: background .15s, border-color .15s, transform .2s var(--v-mola, ease); animation: v-abre .3s var(--v-mola, ease); }
.msg-reac span { font-size: 14px; line-height: 1; }
.msg-reac:hover { background: rgba(255, 255, 255, .1); }
.msg-reac.minha { border-color: rgba(167, 123, 255, .6); background: rgba(167, 123, 255, .18); color: #e9ddff; }
.msg-reac:active { transform: scale(.92); }
.reac-pop { position: fixed; z-index: 500; display: flex; gap: 2px; padding: 5px; border-radius: 999px; border: var(--v-borda); background: rgba(30, 24, 48, .92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--v-luz), 0 12px 30px rgba(0, 0, 0, .45); animation: v-abre .3s var(--v-mola, ease); }
.reac-pop button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 20px; cursor: pointer; transition: transform .22s var(--v-mola, ease), background .15s; }
.reac-pop button:hover { transform: scale(1.25) translateY(-2px); background: rgba(255, 255, 255, .08); }

.msg-fwd { margin: 2px 0 4px; padding: 8px 12px; border-left: 3px solid rgba(167, 123, 255, .7); border-radius: 4px 12px 12px 4px; background: rgba(167, 123, 255, .08); display: grid; gap: 3px; max-width: 460px; }
.fwd-cab { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--v-texto-2); flex-wrap: wrap; }
.fwd-cab b { color: var(--v-texto); }
.fwd-onde { font-size: 11px; color: var(--v-apagado); }
.msg-fwd .msg-text { font-size: 13.5px; }

.msg-visto { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin: -2px 6px 6px; font-size: 11px; color: var(--v-apagado); animation: v-abre .3s var(--v-mola, ease); }
.msg-visto.lido { color: #9fe6c0; }

.fw-card { width: min(440px, 92vw); padding: 18px; display: grid; gap: 10px; }
.fw-cab { display: flex; align-items: center; justify-content: space-between; } .fw-cab b { font-size: 16px; }
.fw-previa { display: grid; gap: 2px; padding: 8px 12px; border-left: 3px solid rgba(167, 123, 255, .7); border-radius: 4px 10px 10px 4px; background: rgba(167, 123, 255, .08); font-size: 13px; }
.fw-previa span { color: var(--v-texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-busca { width: 100%; }
.fw-lista { display: grid; gap: 2px; max-height: min(50vh, 380px); overflow: auto; }
.fw-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 12px; background: none; color: var(--v-texto); text-align: left; cursor: pointer; transition: background .15s; }
.fw-item:hover { background: rgba(255, 255, 255, .06); }
.fw-item > svg:last-child { margin-left: auto; color: var(--v-apagado); opacity: 0; transition: opacity .15s; } .fw-item:hover > svg:last-child { opacity: 1; }
.fw-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--v-sel); color: var(--v-roxo); flex: none; }
.fw-txt { display: grid; min-width: 0; } .fw-txt b { font-size: 14px; font-weight: 600; } .fw-txt small { font-size: 12px; color: var(--v-texto-2); }
.msg.mine .yt-card.yt-compacto, .msg.mine .msg-fwd { background: rgba(12, 9, 24, .28); border-color: rgba(255, 255, 255, .18); }
.msg.mine .yt-compacto .yt-marca { color: #ffd0d6; }
/* avisos de mensagem não ficam em cima do chat flutuante: com ele aberto, saem do lado */
@media (min-width: 821px) { html:not(.mobile) .app.com-rail:not(.chat-foco):not(.chat-closed) ~ .notifs { right: calc(var(--chat-w, 380px) + 30px); } }

/* ---------- 33. (4.3.6) pílula do IruBot: rótulo, respiro e some onde não há música ---------- */
@media (min-width: 821px) {
  .mu-vao.sem-musica > .music { visibility: hidden; pointer-events: none; }
  .music.mu-topo { flex: 0 1 400px; max-width: 400px; }
  .music.mu-topo .music-head { height: 44px; padding: 0 8px 0 5px; gap: 10px; }
  .music.mu-topo .music-badge { width: 34px; height: 34px; }
  .music.mu-topo .music-id { display: grid; gap: 0; line-height: 1.2; }
  .music.mu-topo .music-id strong { display: flex !important; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--v-apagado); }
  .music.mu-topo:not(.mu-parado) .music-id strong::after { content: "tocando"; padding: 1px 6px; border-radius: 999px; background: rgba(62, 224, 143, .14); color: #7ff0b0; letter-spacing: .04em; text-transform: none; font-weight: 600; }
  .music.mu-topo.mu-parado #mu-mini { color: var(--v-texto-2); font-weight: 500; }
  .music.mu-topo.mu-parado .mu-rapidos { display: none; }
  .music.mu-topo .music-body { top: calc(var(--titlebar, 32px) + 8px + 64px); }
}

/* 4.3.7: botões do cartão da conversa no padrão do perfil */
@media (min-width: 821px) {
  html:not(.mobile) .app.chat-foco .chat-dm-card .cdm-acoes { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  html:not(.mobile) .app.chat-foco .chat-dm-card .cdm-acoes .btn { width: 100%; min-height: 40px; justify-content: center; padding-inline: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html:not(.mobile) .app.chat-foco .chat-dm-card .cdm-acoes .cdm-largo { grid-column: 1 / -1; }
}

/* ---------- 34. (4.3.10) live em janela separada: aviso centralizado; selo LIVE sem cobrir o nome ---------- */
.live-view.is-popped { align-items: center; justify-content: center; }
.live-view.is-popped .popped-note { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  flex: 1; align-self: stretch; margin: 16px; padding: 32px; border-radius: var(--v-r-xl); border: 1px dashed rgba(255, 255, 255, .14);
  background: radial-gradient(60% 70% at 50% 40%, rgba(167, 123, 255, .10), transparent 70%); color: var(--v-texto-2); text-align: center; }
.live-view.is-popped .popped-note > svg { width: 56px; height: 56px; padding: 14px; border-radius: 18px; color: #cdb6ff; background: rgba(167, 123, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.live-view.is-popped .popped-note p { margin: 0; font-size: 15px; font-weight: 600; color: var(--v-texto); }
.live-view.is-popped .popped-note p::after { content: "Ela continua rodando lá; aqui fica livre para a call."; display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--v-texto-2); }
.stage-body.with-live .tile .tile-badges .live-pill { position: static; box-shadow: none; }

/* ===== 35. 4.4.1 — DM: mensagens seguidas da mesma pessoa bem coladas (cada uma no seu balão) =====
   .messages.dm-mode tem gap de 8px; -6px deixa 2px entre os balões. Cantos de dentro ficam menores. */
.messages.dm-mode .msg.cont:not(.system) { margin-top: -6px; }
.messages.dm-mode .msg:not(.mine):has(+ .msg.cont:not(.mine)) .msg-body { border-bottom-left-radius: 6px; }
.messages.dm-mode .msg.cont:not(.mine) .msg-body { border-top-left-radius: 6px; }
.messages.dm-mode .msg.mine:has(+ .msg.cont.mine) .msg-body { border-bottom-right-radius: 6px; }
.messages.dm-mode .msg.cont.mine .msg-body { border-top-right-radius: 6px; }

/* ===== 36. 4.3.11 — quadrinho na faixa da live: sempre foto à esquerda; nome, atividade e selos empilhados à direita ===== */
.stage-body.with-live .tile { grid-template-columns: auto minmax(0, 1fr); row-gap: 3px; align-content: center; }
.stage-body.with-live .tile > .avatar { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
.stage-body.with-live .tile-name, .stage-body.with-live .tile-act, .stage-body.with-live .tile-badges { grid-column: 2; justify-self: start; max-width: 100%; }
.stage-body.with-live .tile-name { align-self: end; }
.stage-body.with-live .tile-act { margin: 0; font-size: 12px; color: var(--v-texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.stage-body.with-live .tile-badges { align-self: start; justify-content: flex-start; }
.stage-body.with-live .tile-vol, .stage-body.with-live .tile > button { grid-column: 1 / -1; }

/* ===== 37. 4.3.11 — mensagens fixadas (barra no topo do chat) ===== */
.chat-fix { display: flex; align-items: center; gap: 10px; margin: 6px 10px 2px; padding: 8px 8px 8px 12px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(167, 123, 255, .16), rgba(167, 123, 255, .06)); border: 1px solid rgba(167, 123, 255, .32);
  box-shadow: inset 3px 0 0 var(--v-roxo); animation: v-abre .25s var(--v-mola, ease); }
.chat-fix[hidden] { display: none; }
.chat-fix .cf-ico { color: #cdb6ff; flex: none; display: grid; transform: rotate(35deg); }
.chat-fix .cf-corpo { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-fix small { font-size: 11px; color: #cdb6ff; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-fix .cf-texto { font-size: 13px; color: var(--v-texto); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.chat-fix .cf-texto .msg-text { color: inherit; }
.chat-fix .icon-btn { width: 28px; height: 28px; flex: none; }
.messages:not(.pode-fixar) .acao-fixar { display: none; }
.acao-fixar.on { color: #cdb6ff; }
html.a11y-movimento .chat-fix { animation: none; }

/* ===== 38. 4.5.1 — "⋯" da conversa: bolinha de vidro fixa no canto de cima à direita da área das mensagens ===== */
.chat > .chat-opcoes { position: absolute; z-index: 8; top: calc(var(--chat-head-h, 56px) + 10px); right: 16px; width: 36px; height: 36px; border-radius: 999px;
  background: rgba(30, 24, 46, .55); border: 1px solid rgba(255, 255, 255, .14); color: var(--v-texto);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12); transition: background-color .15s, transform .15s; }
.chat > .chat-opcoes[hidden] { display: none; }
.chat > .chat-opcoes:hover { background: rgba(60, 46, 92, .7); transform: translateY(-1px); }
.chat > .chat-opcoes:active { transform: scale(.94); }
.app.chat-foco > .chat > .chat-opcoes { top: 70px; right: calc(clamp(320px, 30%, 380px) + 20px); }
/* com mensagem fixada no topo, desce para não tapar a barra */
.chat:has(> .chat-fix:not([hidden])) > .chat-opcoes { top: calc(var(--chat-head-h, 56px) + 78px); }
.app.chat-foco > .chat:has(> .chat-fix:not([hidden])) > .chat-opcoes { top: 138px; }
html.a11y-movimento .chat > .chat-opcoes { transition: none; }
.app.chat-foco > .chat > .chat-fix { grid-column: 1; grid-row: 2; align-self: start; position: relative; z-index: 5; margin: 10px 24px 0; }
.app.chat-em-casa > .chat > .chat-opcoes { display: none; } /* na lista de conversas não tem conversa aberta */
/* 4.5.3: no chat pequeno (flutuante) o cartão da pessoa fica embaixo do cabeçalho: o "⋯" desce para a área das
   mensagens, logo abaixo dele (antes cobria o "Ver perfil") */
.app:not(.chat-foco) > .chat:has(> .chat-dm-card:not([hidden])) > .chat-opcoes { top: calc(var(--chat-head-h, 56px) + var(--cdm-h, 76px) + 10px); }
.app:not(.chat-foco) > .chat:has(> .chat-dm-card:not([hidden])):has(> .chat-fix:not([hidden])) > .chat-opcoes { top: calc(var(--chat-head-h, 56px) + var(--cdm-h, 76px) + 78px); }

/* ===== 4.6.0 — bordas renderizadas (bordas-arte.js) ===== */
.mold img.mold-img, img.mold-svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.mold-mini img.mold-svg, #pf-mold-prev img.mold-svg { position: absolute; inset: -43.75%; width: 187.5%; height: 187.5%; }
.mold-mini, #pf-mold-prev { position: relative; }
/* brilho que passa pelo metal: faixa clara girando, recortada na forma do aro (máscara de anel) */
.mold-reflexo { position: absolute; inset: 20%; border-radius: 50%; pointer-events: none; mix-blend-mode: plus-lighter;
  background: conic-gradient(from 0deg, transparent 0 78%, rgba(255,250,230,.0) 80%, rgba(255,250,230,.55) 84%, rgba(255,250,230,0) 88%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 60%, #000 62% 74%, transparent 76%); mask: radial-gradient(circle, transparent 0 60%, #000 62% 74%, transparent 76%);
  animation: mold-reflexo 6s linear infinite; }
@keyframes mold-reflexo { to { transform: rotate(360deg); } }
/* abóbora do Halloween: luz laranja embaixo que acende quando a pessoa fala */
.mold-abobora { position: absolute; left: 50%; top: 80%; width: 22%; height: 22%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,170,60,.75), rgba(255,110,0,.25) 45%, transparent 70%); opacity: .25; transition: opacity .25s; mix-blend-mode: plus-lighter; }
.speaking .mold-abobora, .mold-wrap.speaking .mold-abobora { opacity: 1; animation: mold-abobora 0.9s ease-in-out infinite alternate; }
@keyframes mold-abobora { from { transform: translate(-50%, -50%) scale(.9); } to { transform: translate(-50%, -50%) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .mold-reflexo, .speaking .mold-abobora { animation: none; } }
html.a11y-movimento .mold-reflexo, html.a11y-movimento .speaking .mold-abobora { animation: none; }
/* loja */
.os-prev-borda { display: grid; place-items: center; padding: 22px 0; }
.os-prev-borda .os-prev-av { width: 46px; height: 46px; }
.os-exp-bordas { display: flex; gap: 48px; align-items: center; justify-content: center; padding: 36px 24px; }
.os-exp-bgrande .os-exp-grande { width: 112px; height: 112px; font-size: 40px; }
.profile-card .pf-avatar-wrap > .mold-wrap { margin-left: max(0px, calc(var(--pf-mold-l, 0px) - 18px)); } /* 4.6.0: borda larga não corta na esquerda */
/* 4.6.1 (relato do dono): link na MINHA mensagem tinha contraste baixíssimo (lilás sobre o roxo do balão) */
.msg.mine .msg-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .7); font-weight: 600; }
.msg.mine .msg-link:hover { text-decoration-color: #fff; }
.msg.mine .msg-file { color: #fff; background: rgba(12, 9, 24, .28); border-color: rgba(255, 255, 255, .22); }
.msg.mine .msg-file span { color: rgba(255, 255, 255, .78); }
/* 4.6.1 (pedido do dono): chat flutuante encolhe quando o mouse sai (app.js initChatMini) e abre ao chegar perto.
   O "minimizar" de cima saiu: o balão de baixo já faz isso. */
@media (min-width: 821px) {
  html:not(.mobile) .app.com-rail:not(.chat-foco) #chat-close { display: none; }
  html:not(.mobile) .app.com-rail:not(.chat-foco):not(.chat-closed) > .chat { transition: top .42s cubic-bezier(.34, 1.56, .64, 1), width .38s cubic-bezier(.34, 1.3, .64, 1), opacity .25s; }
  html:not(.mobile) .app.com-rail.chat-mini:not(.chat-foco):not(.chat-closed) > .chat { top: calc(100vh - 82px - 236px) !important; width: 300px; opacity: .92; }
  html:not(.mobile) .app.com-rail.chat-mini:not(.chat-foco):not(.chat-closed) > .chat :is(.composer, #chat-dm-card, .chat-fix, #chat-opcoes, #chat-expand, .chat-casa, #chat-pop) { display: none !important; }
  html:not(.mobile) .app.com-rail.chat-mini:not(.chat-foco):not(.chat-closed) > .chat .messages { overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 30%); mask: linear-gradient(transparent, #000 30%); }
}
html.a11y-movimento .app.com-rail > .chat { transition: none !important; }
@media (prefers-reduced-motion: reduce) { html:not(.mobile) .app.com-rail > .chat { transition: none !important; } }
.mold-sub { margin: 14px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } /* 4.7.1 */
/* 4.7.1 (relato do dono): no chat pequenininho as mensagens ficavam espremidas ("mele/ca"): as ações escondidas
   (reagir, responder…) ainda ocupavam largura ao lado do balão. Encolhido não tem ações, e o cartão ficou mais largo. */
@media (min-width: 821px) {
  html:not(.mobile) .app.com-rail.chat-mini:not(.chat-foco):not(.chat-closed) > .chat { width: 340px; }
  html:not(.mobile) .app.com-rail.chat-mini:not(.chat-foco):not(.chat-closed) > .chat .msg-actions { display: none !important; }
  html:not(.mobile) .app.com-rail.chat-mini:not(.chat-foco):not(.chat-closed) > .chat .dm-mode .msg:not(.system),
  html:not(.mobile) .app.com-rail.chat-mini:not(.chat-foco):not(.chat-closed) > .chat .messages.dm-mode .msg:not(.system) { max-width: 88%; }
}
/* 4.7.1: miniatura das bordas no painel: o desenho (240 unidades) cabe nos 64 px da caixa, como o vetor antigo */
.mold-mini img.mold-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cfg-sobre-extra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } /* 4.7.1 */
/* 4.7.2: "Voltar para a call" no cabeçalho do chat */
.chat-volta-call { margin-left: auto; white-space: nowrap; gap: 6px; }
.chat-volta-call[hidden] { display: none !important; }
html:not(.mobile) .app.com-rail .chat-head .chat-volta-call:not([hidden]) + .chat-expand { margin-left: 6px; }
/* 4.7.6 (relato do dono): o cartão da sobreposição, mais alto, esticava o vizinho na grade e a etiqueta "Ligado" virava
   uma barra gigante. Cartões não esticam mais por dentro; o da sobreposição ocupa a linha inteira. */
.cfg-tile { align-content: start; }
.cfg-estado { align-self: start; }
.cfg-tile-wrap.cfg-largo { grid-column: 1 / -1; gap: 8px; }
.cfg-sobre-extra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-left: 4px; }
.cfg-sobre-extra .cfg-seg { flex-wrap: wrap; width: auto; flex: 0 1 auto; }
.cfg-sobre-extra .cfg-seg button { padding: 7px 12px; font-size: 13px; }
.cfg-sobre-extra > .btn { padding: 8px 14px; }

/* 4.7.8 — acabamento pedido pelo dono */
/* Área central: em vez de chapado, uma luz roxa bem fraca vindo do canto de cima e um verde quase nada embaixo
   (as cores da marca). Só degradê no fundo: não pesa a GPU e não mexe no texto. */
html:not(.mobile) .app:not(.chat-foco) > #stage {
  background:
    radial-gradient(110% 70% at 88% -12%, rgba(157, 78, 221, .16), transparent 62%),
    radial-gradient(80% 55% at -5% 112%, rgba(61, 220, 132, .06), transparent 60%),
    var(--v-s1);
}
/* Contraste: quem está offline não some mais com opacidade (opacidade apaga a foto e o texto juntos); fica cinza legível. */
.ini-membro.off, .jg-cv.off { opacity: .78; }
.ini-membro.off :is(b, span, small), .jg-cv.off :is(b, span, small) { color: var(--v-texto-2); }
.msg.system { color: var(--v-texto-2); }
.cat, .cc-secao h4 { color: var(--v-apagado); }
/* Lista de conversas: mais respiro, foto maior e linhas com altura fixa */
.chat-casa { padding: 14px 12px 20px; }
.cc-secao + .cc-secao { margin-top: 20px; }
.cc-secao h4 { margin: 2px 10px 8px; }
.cc-lista { gap: 4px; }
.cc-linha { min-height: 56px; padding: 10px 12px; gap: 12px; }
.cc-av .avatar { width: 36px; height: 36px; font-size: 15px; }
.cc-hash { width: 36px; height: 36px; }
.cc-txt { gap: 2px; }
.cc-vazio { margin: 2px 10px; padding: 14px; border-radius: 14px; border: 1px dashed var(--v-linha); text-align: center; }
/* Desligar: no hover acende um halo vermelho (dá certeza do clique antes de sair da call) */
.call-btn.hang { transition: transform .22s var(--v-mola), box-shadow .2s, filter .15s; }
.call-btn.hang:hover:not(:disabled) { background: var(--bad); border-color: transparent; filter: brightness(1.1); box-shadow: 0 0 0 4px rgba(255, 93, 125, .22), 0 0 22px rgba(255, 93, 125, .55); }
.call-btn.hang:active:not(:disabled) { box-shadow: 0 0 0 2px rgba(255, 93, 125, .35), 0 0 12px rgba(255, 93, 125, .5); }
#pl-sair:hover { box-shadow: 0 0 0 3px rgba(255, 93, 125, .22), 0 0 16px rgba(255, 93, 125, .5); }
.call-btn.enter:hover:not(:disabled) { background: #1f8f55; border-color: transparent; } /* 4.7.8: o hover genérico (.call-btn:hover) apagava o verde/vermelho */
/* 4.7.8 — Stop: revisão uma a uma + "Não valeu" */
.jg-stop-rev { display: grid; gap: 10px; overflow: auto; min-height: 0; padding: 2px; }
.jg-stop-rc { display: grid; gap: 6px; padding: 12px; border-radius: 16px; background: var(--v-s2); border: 1px solid var(--v-linha); opacity: .82; }
.jg-stop-rc.atual { opacity: 1; border-color: color-mix(in srgb, #ffb23d 55%, transparent); box-shadow: 0 10px 28px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 178, 61, .18) inset; }
.jg-stop-rc.entra { animation: stop-entra .45s var(--v-mola, cubic-bezier(.2, 1.4, .4, 1)) both; }
@keyframes stop-entra { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
.jg-stop-rc h4 { margin: 0 0 2px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--v-texto-2); text-transform: none; letter-spacing: 0; }
.jg-stop-rc h4 .i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #1b1300; background: linear-gradient(145deg, #ffe08a, #ffb23d); }
.jg-stop-rl { display: grid; grid-template-columns: minmax(80px, 140px) minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 38px; padding: 4px 6px 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.jg-stop-rl .quem { font-size: 12px; color: var(--v-texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-stop-rl .txt { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-stop-rl.meu { background: rgba(157, 78, 221, .1); }
.jg-stop-rl.vazia .txt, .jg-stop-rl.invalida .txt { color: var(--v-apagado); font-weight: 500; font-style: italic; }
.jg-stop-rl.anulada .txt { color: #ff8a9b; text-decoration: line-through; text-decoration-thickness: 2px; }
.jg-stop-rl .motivo { font-size: 11px; color: var(--v-apagado); }
.jg-stop-rl.anulada .motivo { color: #ff8a9b; font-weight: 700; }
.jg-stop-voto { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #ffb3bf; background: rgba(255, 93, 125, .1); border: 1px solid rgba(255, 93, 125, .35); transition: background .15s, transform .2s var(--v-mola); }
.jg-stop-voto:hover { background: rgba(255, 93, 125, .2); }
.jg-stop-voto:focus-visible { outline: 2px solid #ff5d7d; outline-offset: 2px; }
.jg-stop-voto.on { color: #fff; background: #e5485f; border-color: transparent; }
.jg-stop-voto .n, .jg-stop-voto-n { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.jg-stop-voto-n { color: #ffb3bf; }
.jg-stop-rev-tempo { width: 90px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.jg-stop-rev-barra { display: block; height: 100%; background: linear-gradient(90deg, #ffb23d, #ffe08a); transform-origin: left; }
.jg-stop-tab .resp.anulada { text-decoration: line-through; color: #ff8a9b; }
html.a11y-movimento .jg-stop-rc.entra { animation: none; }
@media (prefers-reduced-motion: reduce) { .jg-stop-rc.entra { animation: none; } }
