/* =====================================================================
   Astra v5: página inicial nova (faixa, salas ativas, comunidade), barra lateral com
   nomes que recolhe pelo logo, página Salas, Criar sala com banner, música no centro.
   Preto, branco e cinza; vidro com desfoque; sem bordas marcadas. Carregado por último.
   ===================================================================== */
:root { --nav-w: 232px; --nav-gap: 10px; --v5-raio: 20px; --v5-vidro: rgba(255, 255, 255, .045); --v5-vidro-2: rgba(255, 255, 255, .08);
  --v5-sombra: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 50px rgba(0, 0, 0, .35); }
html.nav-recolhida { --nav-w: 76px; }
:root[data-tema="claro"] { --v5-vidro: rgba(255, 255, 255, .55); --v5-vidro-2: rgba(255, 255, 255, .85);
  --v5-sombra: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 14px 40px rgba(20, 20, 30, .08); }

/* painéis sem bordas marcadas: só o vidro e a sombra */
.lateral, .online, .principal, .trilho { border-color: transparent !important; }

/* ---------- janelas sempre por cima da barra (as configurações ficavam embaixo dela) ---------- */
.modal { z-index: 70; }
.modal.config { z-index: 70; }
.modal.visor { z-index: 75; }
.campainha { z-index: 80; }
body:has(.modal:not([hidden])) .trilho { opacity: 1; filter: none; }

/* botões da barra com [hidden] somem de verdade (o display da regra do botão ganhava do hidden) */
.trilho-bt[hidden], .trilho [hidden] { display: none !important; }
/* "Início" dentro da sala: mostra a página inicial por cima, a sala continua rodando embaixo */
html.v5-ver-inicio #sala { display: none !important; }
html.v5-ver-inicio #inicio { display: flex !important; }

/* ---------- ONLINE sem a estrelinha ---------- */
.online h3#txt-online::before { content: none; display: none; }

/* =====================================================================
   PC: barra lateral com nomes (expandida) ou só ícones (recolhida pelo logo)
   ===================================================================== */
@media (min-width: 861px) {
  .trilho { width: var(--nav-w); padding: 14px 12px 12px; align-items: stretch; gap: 4px; overflow: hidden;
    border-radius: 22px; background: color-mix(in srgb, var(--fundo-1) 72%, transparent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 50px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(22px) saturate(120%); backdrop-filter: blur(22px) saturate(120%);
    transition: width .34s var(--anim), padding .34s var(--anim); }
  :root[data-tema="claro"] .trilho { background: rgba(255, 255, 255, .7); box-shadow: 0 14px 40px rgba(20, 20, 30, .08); }
  /* (repete o seletor da v4 para ganhar dela nas telas largas) */
  html:not(.nav-recolhida) .trilho { width: var(--nav-w); padding: 14px 12px 12px; align-items: stretch; }
  html.nav-recolhida .trilho { padding: 14px 10px 12px; }

  /* topo: logo (estrela com órbita), "Astra" e a versão; clicar recolhe/expande */
  .trilho-marca { width: 100%; height: 52px; margin: 0 0 10px; padding: 6px 8px 6px 6px; gap: 10px; border-radius: 16px; justify-content: flex-start; }
  .trilho-logo-v5 { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
  .trilho-logo-v5 svg { width: 34px; height: 34px; overflow: visible; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .45)); }
  .tl-estrela { transform-box: fill-box; transform-origin: center; animation: v5-brilha 4s ease-in-out infinite; }
  :root[data-tema="claro"] .trilho-logo-v5 { background: #111; }
  /* logo do software (imagem) no lugar da estrela */
  .trilho-logo-img { overflow: hidden; background: #111; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 10px rgba(0, 0, 0, .35); }
  .trilho-logo-img img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
  .trilho-marca-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; overflow: hidden; }
  .trilho-nome { display: block; font-family: "Astra Marca", "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500;
    font-size: 25px; letter-spacing: -.01em; color: var(--texto-forte); }
  .trilho-versao { font-size: 10.5px; color: var(--fraco); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
  .trilho-versao:empty { display: none; }
  .trilho-seta { display: block; margin-left: auto; }

  /* itens com nome */
  .trilho-itens { align-items: stretch; gap: 3px; }
  .trilho-bt { width: 100%; height: 44px; display: flex; align-items: center; justify-content: flex-start; gap: 13px; padding: 0 13px; border-radius: 13px; }
  .trilho-bt span { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trilho-bt.ativo { background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .25); }
  .trilho-bt.ativo::before { left: -12px; top: 11px; bottom: 11px; }
  .trilho-contador, .trilho-qtd { position: static; margin-left: auto; box-shadow: none; flex: none; }
  .trilho-qtd { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
    color: var(--texto-forte); background: var(--v5-vidro-2); font-variant-numeric: tabular-nums; }
  .trilho-ponto { position: static; margin-left: auto; }

  /* Jogos com setinha para abrir os jogos */
  .trilho-grupo { position: relative; display: flex; flex-wrap: wrap; }
  .trilho-grupo > .trilho-bt { padding-right: 40px; }
  .trilho-abre { position: absolute; right: 4px; top: 6px; width: 32px; height: 32px; border: 0; border-radius: 10px; display: grid; place-items: center;
    background: transparent; color: var(--fraco); cursor: pointer; transition: background .2s, color .2s, transform .3s var(--anim); }
  .trilho-abre svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--anim); }
  .trilho-abre:hover { background: var(--v5-vidro-2); color: var(--texto-forte); }
  .trilho-grupo.aberto .trilho-abre svg { transform: rotate(180deg); }
  .trilho-sub { list-style: none; margin: 2px 0 4px; padding: 0 0 0 22px; width: 100%; display: grid; gap: 2px; position: relative;
    animation: v5-desce .25s var(--anim); }
  .trilho-sub::before { content: ""; position: absolute; left: 23px; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(var(--vidro-borda-forte), transparent); }
  .trilho-sub-bt { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px 0 16px; border: 0; border-radius: 10px;
    background: transparent; color: var(--texto); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
  .trilho-sub-bt svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--fraco); }
  .trilho-sub-bt span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .trilho-sub-bt small { font-size: 10.5px; color: var(--fraco); }
  .trilho-sub-bt:hover { background: var(--v5-vidro); color: var(--texto-forte); }
  .trilho-sub-todos { color: var(--fraco); font-size: 12px; }

  .trilho-tema { width: 100%; height: 40px; justify-content: flex-start; display: flex; align-items: center; gap: 13px; padding: 0 13px; }
  .trilho-tema span { display: block; font-size: 13px; font-weight: 600; }

  /* pé: o seu perfil (avatar, nick, status) e as configurações */
  .trilho .painel-usuario { margin: 8px 0 0; height: 56px; padding: 0 6px 0 8px; border-radius: 16px; border: 0; flex: none;
    background: var(--v5-vidro); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
  .trilho .painel-usuario .avatar { width: 36px; height: 36px; flex: none; }
  .trilho .painel-usuario .usuario-info { min-width: 0; }
  .trilho .painel-usuario .usuario-info b { padding-right: 0; font-size: 13.5px; }
  .trilho .painel-usuario .usuario-info .sub { max-width: none; font-size: 11.5px; }
  .trilho .painel-usuario #bt-privado { display: none; }          /* Mensagens já fica no menu (com o contador) */
  .trilho .painel-usuario .bt-config { position: relative; width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; }
  .trilho .painel-usuario .bt-config:hover { background: var(--v5-vidro-2); }
  .trilho .painel-usuario .bt-config .pv-contador { position: absolute; top: 2px; right: 2px; }
  .trilho .menu-status { left: 0; right: 0; }
  .trilho-voce { display: none; }

  /* recolhida: só os ícones (o logo continua lá para expandir de novo) */
  html.nav-recolhida .trilho-marca { width: 52px; padding: 6px; margin-inline: auto 0; }
  html.nav-recolhida .trilho-marca-txt, html.nav-recolhida .trilho-seta { display: none; }
  html.nav-recolhida .trilho-bt { width: 52px; padding: 0; justify-content: center; }
  html.nav-recolhida .trilho-bt span, html.nav-recolhida .trilho-qtd, html.nav-recolhida .trilho-abre, html.nav-recolhida .trilho-sub { display: none; }
  html.nav-recolhida .trilho-grupo > .trilho-bt { padding: 0; }
  html.nav-recolhida .trilho-contador { position: absolute; top: 4px; right: 4px; }
  html.nav-recolhida .trilho-ponto { position: absolute; top: 8px; right: 8px; }
  html.nav-recolhida .trilho .painel-usuario { display: none; }
  html.nav-recolhida .trilho-voce { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 0; }
  html.nav-recolhida .trilho-voce .trilho-bt { width: 46px; height: 46px; }

  /* ---------- grade: fora da sala só o centro e a coluna da direita; na sala, a coluna da sala volta ---------- */
  /* grade (com !important e especificidade crescente para nenhuma regra antiga ganhar):
     .sem-lado = chat/música escondidos (botão da barra do topo); .v5-sem-sala = coluna da sala escondida */
  html .app:not(.cinema) { padding-left: calc(var(--nav-w) + var(--nav-gap) * 2) !important; grid-template-columns: minmax(0, 1fr) 296px !important; }
  html .app.sem-lado:not(.cinema) { grid-template-columns: minmax(0, 1fr) !important; }
  html.v5-na-sala .app:not(.cinema) { grid-template-columns: 248px minmax(0, 1fr) 288px !important; }
  html.v5-na-sala .app.sem-lado:not(.cinema) { grid-template-columns: 248px minmax(0, 1fr) !important; }
  html.v5-na-sala.v5-sem-sala .app:not(.cinema) { grid-template-columns: minmax(0, 1fr) 288px !important; }
  html.v5-na-sala.v5-sem-sala .app.sem-lado:not(.cinema) { grid-template-columns: minmax(0, 1fr) !important; }
  html:not(.v5-na-sala) .lateral, html.v5-sem-sala .lateral { display: none !important; }
  .trilho-bt.ativo-suave { color: var(--texto-forte); background: var(--v5-vidro-2); }
  /* a coluna da sala não some mais ao recolher a barra (o recolher é só da barra) */
  html.nav-recolhida .lateral { opacity: 1; visibility: visible; overflow: hidden; border-width: 1px; pointer-events: auto; }
  .lateral .lateral-topo { display: none; }          /* o nome e a versão já ficam no topo da barra */
  /* conversa privada começa depois da barra */
  .privado, html.nav-recolhida .privado, html:not(.nav-recolhida) .privado { left: calc(var(--nav-w) + var(--nav-gap) * 2 + 4px); }
}

/* celular: o menu continua embaixo; Jogos sem a setinha */
@media (max-width: 860px) {
  .trilho-grupo { display: contents; }
  .trilho-abre, .trilho-sub, .trilho-qtd { display: none !important; }
  .trilho-logo-v5 { display: none; }
}

/* =====================================================================
   Início
   ===================================================================== */
.inicio-v5 { padding: 20px 24px 28px; gap: 26px; align-items: stretch; }
.inicio-v5 > * { width: 100%; max-width: 1120px; margin-inline: auto; flex-shrink: 0; }
.inicio-v5 .msg:empty { display: none; }

/* faixa: a Astra à direita, o nome com órbita e estrela à esquerda, tudo se dissolvendo no fundo */
.v5-hero { position: relative; min-height: clamp(280px, 34cqw, 380px); border-radius: 26px; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  background:
    radial-gradient(60% 90% at 78% 40%, rgba(255, 255, 255, .10), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(255, 255, 255, .05), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0));
  animation: v5-entra .5s var(--anim) both; }
.v5-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, color-mix(in srgb, var(--fundo-2) 55%, transparent)); }
/* a foto se dissolve em todas as bordas (máscara radial) e um reflexo desfocado dela faz o vidro da faixa */
.v5-hero-girl { position: absolute; z-index: 0; right: 0; top: 0; height: 100%; width: min(64%, 680px); object-fit: cover; object-position: 50% 26%;
  filter: grayscale(1) contrast(1.04); opacity: .9; pointer-events: none; user-select: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 60% 44%, #000 42%, rgba(0, 0, 0, .55) 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 78% at 60% 44%, #000 42%, rgba(0, 0, 0, .55) 66%, transparent 100%);
  animation: v5-girl 1s .1s var(--anim) both; }
.v5-hero { background:
    radial-gradient(70% 120% at 72% 40%, rgba(255, 255, 255, .09), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015) 55%, rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .035), 0 30px 80px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(24px) saturate(120%); backdrop-filter: blur(24px) saturate(120%); }
.v5-hero-txt { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.v5-hero-txt { position: relative; z-index: 2; padding: 34px clamp(24px, 5cqw, 56px); max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.v5-ola { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--fraco); }
.v5-marca { position: relative; display: inline-block; margin: 0 0 2px; padding: 0 .1em; line-height: 1; }
.v5-nome { position: relative; display: block; font-family: "Astra Marca", "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  font-style: italic; font-weight: 500; letter-spacing: -.01em; font-size: clamp(64px, 9cqw, 116px); padding: .02em .06em .1em 0;
  background: linear-gradient(180deg, #ffffff 0%, #ececef 40%, #a9abb2 66%, #f4f4f6 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .45)); }
.v5-orbita { position: absolute; left: -6%; top: -10%; width: 112%; height: 128%; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .4)); }
.v5-orbita ellipse { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: v5-orbita 1.6s .3s cubic-bezier(.6, 0, .2, 1) forwards; }
.v5-estrela { transform-box: fill-box; transform-origin: center; opacity: 0; animation: v5-brilha 3.4s 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px rgba(255, 255, 255, .7)); }
.v5-sub { margin: 0; max-width: 380px; font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--texto) 88%, transparent); }
.v5-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.v5-bt { height: 44px; padding: 0 20px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700; transition: transform .18s var(--anim), box-shadow .2s, background .2s, filter .2s; }
.v5-bt svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.v5-bt:hover { transform: translateY(-1px); }
.v5-bt:active { transform: scale(.97); }
.v5-bt:focus-visible { outline: 2px solid var(--texto-forte); outline-offset: 3px; }
.v5-bt-claro { background: linear-gradient(180deg, #ffffff, #d9d9de); color: #0b0b0d; box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(0, 0, 0, .35); }
.v5-bt-claro:hover { filter: brightness(1.04); box-shadow: inset 0 1px 0 #fff, 0 14px 32px rgba(0, 0, 0, .4); }
.v5-bt-vidro { background: rgba(255, 255, 255, .09); color: #f4f4f5; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.v5-bt-vidro:hover { background: rgba(255, 255, 255, .14); }
.v5-bt-p { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 12px; }
/* a faixa é sempre escura (a foto é escura), também no tema claro */
:root[data-tema="claro"] .v5-hero { background: linear-gradient(120deg, #18181b, #0b0b0d); }
:root[data-tema="claro"] .v5-hero .v5-ola, :root[data-tema="claro"] .v5-hero .v5-sub { color: #d4d4d8; }

/* blocos (Salas ativas) */
.v5-bloco { display: flex; flex-direction: column; gap: 14px; animation: v5-entra .5s .08s var(--anim) both; }
.v5-bloco-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v5-bloco-cab h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--texto-forte); }
.v5-ver { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--fraco); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 6px 8px; border-radius: 10px; transition: color .2s, background .2s; }
.v5-ver svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--anim); }
.v5-ver:hover { color: var(--texto-forte); background: var(--v5-vidro); }
.v5-ver:hover svg { transform: translateX(2px); }
.v5-ver[hidden] { display: none; }

/* ---------- cards de sala ---------- */
.v5-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v5-cards-todas { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@container centro (max-width: 760px) { .v5-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container centro (max-width: 520px) { .v5-cards { grid-template-columns: minmax(0, 1fr); } }
.v5-card { min-width: 0; }
.v5-card-bt { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; text-align: left;
  font: inherit; color: inherit; background: var(--v5-vidro); box-shadow: var(--v5-sombra);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .25s var(--anim), box-shadow .25s, background .25s; }
.v5-card-bt:hover:not(:disabled) { transform: translateY(-3px); background: var(--v5-vidro-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 26px 60px rgba(0, 0, 0, .45); }
.v5-card-bt:focus-visible { outline: 2px solid var(--texto-forte); outline-offset: 3px; }
.v5-card-bt:disabled { cursor: default; }
.v5-card-banner { position: relative; display: block; aspect-ratio: 16 / 7; background-size: cover; background-position: center; background-color: #141416;
  filter: grayscale(1); transition: transform .5s var(--anim), filter .3s; }
.v5-card-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55)); }
.v5-card-bt:hover .v5-card-banner { filter: none; transform: scale(1.03); }
.v5-vivo { position: absolute; z-index: 1; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #0b0b0d; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.v5-vivo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: v5-pulso 1.8s infinite; }
.v5-card-corpo { display: flex; flex-direction: column; gap: 12px; padding: 13px 14px 14px; flex: 1; }
.v5-card-topo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v5-card-nome { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--texto-forte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-priv { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--texto);
  background: var(--v5-vidro-2); }
.v5-priv svg, .v5-qtd svg, .v5-entrar svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v5-card-pe { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: auto; }
.v5-rostos { display: flex; flex: none; }
.v5-rostos .avatar { width: 24px; height: 24px; font-size: 9.5px; margin-left: -7px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--fundo-1) 90%, transparent); }
.v5-rostos .avatar:first-child { margin-left: 0; }
.v5-rostos .avatar .bolinha { display: none; }
.v5-qtd { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--fraco); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-entrar { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  color: #0b0b0d; background: linear-gradient(180deg, #fff, #dcdce1); box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(0, 0, 0, .25); transition: transform .2s var(--anim); }
.v5-card-bt:hover:not(:disabled) .v5-entrar { transform: translateX(2px); }
.v5-card.aqui .v5-entrar, .v5-card-bt:disabled .v5-entrar { background: var(--v5-vidro-2); color: var(--texto); box-shadow: none; }
.v5-card.aqui .v5-entrar svg { display: none; }
:root[data-tema="claro"] .v5-entrar { background: #111; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.v5-card-vazio .v5-card-bt { align-items: center; justify-content: center; gap: 6px; padding: 30px 18px; min-height: 180px; text-align: center; color: var(--fraco); }
.v5-card-vazio .v5-card-bt svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; width: 30px; height: 30px; margin-bottom: 6px;
  padding: 10px; box-sizing: content-box; border-radius: 16px; background: var(--v5-vidro-2); color: var(--texto-forte); }
.v5-card-vazio b { color: var(--texto-forte); font-size: 14.5px; }
.v5-card-vazio small { font-size: 12.5px; }
.v5-cards:not(.v5-cards-todas) .v5-card-vazio { grid-column: 1 / -1; }
.v5-cards:not(.v5-cards-todas) .v5-card-vazio .v5-card-bt { min-height: 140px; }

/* ---------- comunidade: compacta, perfis passando sem parar ---------- */
.v5-comunidade { display: flex; align-items: center; gap: 18px; padding: 14px 16px; border-radius: 20px; min-width: 0; overflow: hidden;
  background: var(--v5-vidro); box-shadow: var(--v5-sombra); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: v5-entra .5s .16s var(--anim) both; }
.v5-comunidade[hidden] { display: none; }
.v5-com-txt { display: flex; align-items: center; gap: 12px; flex: none; max-width: 300px; }
.v5-com-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--v5-vidro-2); color: var(--texto-forte); }
.v5-com-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v5-com-txt h2 { margin: 0; font-size: 14px; font-weight: 700; color: var(--texto-forte); line-height: 1.25; }
.v5-com-txt .sub { margin: 2px 0 0; font-size: 12px; }
.v5-com-faixa { flex: 1; min-width: 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.v5-com-trilha { display: flex; gap: 10px; width: max-content; animation: v5-rola var(--dur, 40s) linear infinite; }
.v5-com-faixa:hover .v5-com-trilha { animation-play-state: paused; }
.v5-pessoa { position: relative; display: flex; align-items: center; gap: 9px; width: 168px; height: 50px; padding: 0 12px 0 8px; border-radius: 14px; overflow: hidden; flex: none;
  background: var(--v5-vidro); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); isolation: isolate; }
/* a capa do perfil vira o fundinho do cartão (apagada, em preto e branco) */
.v5-pessoa::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--capa, none) center / cover; filter: grayscale(1) brightness(.45); opacity: .9; }
.v5-pessoa .avatar { width: 34px; height: 34px; flex: none; font-size: 12px; box-shadow: 0 0 0 2px var(--cor, rgba(255, 255, 255, .18)); }
.v5-pessoa .avatar .bolinha { display: none; }
.v5-pessoa-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.v5-pessoa-txt b { font-size: 12.5px; color: #f4f4f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-pessoa-txt small { font-size: 10.5px; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-tema="claro"] .v5-pessoa:not([style*="--capa"]) .v5-pessoa-txt b { color: #18181b; }
@container centro (max-width: 640px) {
  .v5-comunidade { flex-direction: column; align-items: stretch; gap: 12px; }
  .v5-com-txt { max-width: none; }
}

/* recado do Astra fora da sala: cartão discreto no início */
#v5-recado-casa:empty { display: none; }
#v5-recado-casa .recado-astra { margin: 0; border-radius: 18px; background: var(--v5-vidro); border: 0; box-shadow: var(--v5-sombra); }

/* ---------- página Salas ---------- */
#pg-salas .pagina-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
#pg-salas > * { max-width: 1120px; }

/* ---------- janela Criar sala ---------- */
.v5-criar { width: min(460px, 100%); display: flex; flex-direction: column; gap: 10px; border-radius: 22px; border: 0;
  background: color-mix(in srgb, var(--fundo-1) 88%, transparent); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 100px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.v5-criar-cab { display: flex; align-items: center; justify-content: space-between; }
.v5-criar-cab h2 { margin: 0; font-size: 19px; }
.v5-criar-cab .config-fechar { position: static; width: 34px; height: 34px; border-radius: 10px; }
.v5-criar-cab .config-fechar small { display: none; }
.v5-criar-banner { position: relative; display: block; width: 100%; aspect-ratio: 16 / 6; border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: #141416; color: #f4f4f5; font: inherit; }
.v5-criar-banner-img { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(1) brightness(.75); transition: transform .4s var(--anim), filter .3s; }
.v5-criar-banner.com-banner .v5-criar-banner-img { filter: none; }
.v5-criar-banner:hover .v5-criar-banner-img { transform: scale(1.03); }
.v5-criar-banner-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .45)); transition: opacity .2s; }
.v5-criar-banner-txt small { font-weight: 400; color: #d4d4d8; }
.v5-criar-banner-txt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.v5-criar-banner.com-banner .v5-criar-banner-txt { opacity: 0; }
.v5-criar-banner.com-banner:hover .v5-criar-banner-txt { opacity: 1; }
.v5-criar-banner:focus-visible { outline: 2px solid var(--texto-forte); outline-offset: 3px; }
#criar-banner-tirar { align-self: flex-start; margin-top: -4px; font-size: 12px; }
#criar-banner-tirar[hidden] { display: none; }
.v5-rotulo { font-size: 12px; font-weight: 600; color: var(--fraco); margin-top: 4px; }
.v5-criar #in-nome-sala { height: 44px; border-radius: 12px; font-size: 14.5px; }
.v5-criar .iv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v5-criar .iv-chips button { height: 28px; padding: 0 11px; border: 0; border-radius: 999px; font: inherit; font-size: 12px; cursor: pointer; color: var(--texto);
  background: var(--v5-vidro-2); transition: background .2s, color .2s; }
.v5-criar .iv-chips button:hover { background: var(--vidro-forte); color: var(--texto-forte); }
.v5-criar .privacidade-dica { margin: 0; font-size: 12px; color: var(--fraco); }
.v5-criar .msg:empty { display: none; }
.v5-criar .modal-rodape { margin-top: 6px; }

/* =====================================================================
   Música no centro (quando ninguém está transmitindo)
   ===================================================================== */
#palco.v5-com-musica #vazio { display: none; }
body.v5-musica-no-centro #mini-player { display: none !important; }
.v5-musica-centro { grid-column: 1 / -1; justify-self: center; position: relative; isolation: isolate; overflow: hidden;
  width: min(720px, 100%); display: flex; align-items: center; gap: 28px; padding: 28px; border-radius: 28px;
  background: rgba(255, 255, 255, .04); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 90px rgba(0, 0, 0, .45);
  animation: v5-entra .45s var(--anim) both; }
.v5-musica-centro[hidden] { display: none; }
.v5-mc-fundo { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(46px) grayscale(1) brightness(.5); opacity: .8; transform: scale(1.1); }
.v5-mc-capa { position: relative; flex: none; width: clamp(140px, 24cqw, 210px); aspect-ratio: 1; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
.v5-mc-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); }   /* corta as faixas pretas da miniatura do YouTube */
.v5-mc-capa img[hidden] { display: none; }
.v5-mc-capa img:not([hidden]) + .v5-mc-capa-vazia { display: none; }
.v5-mc-capa-vazia svg { fill: none; stroke: #e4e4e7; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.v5-musica-centro.pausada .v5-mc-capa img { filter: grayscale(.6) brightness(.75); }
.v5-mc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #f4f4f5; }
.v5-mc-onde { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a1a1aa; }
.v5-mc-titulo { font-size: clamp(18px, 2.6cqw, 26px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v5-mc-artista { font-size: 14px; color: #d4d4d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-mc-tempo { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; color: #a1a1aa; font-variant-numeric: tabular-nums; }
.v5-mc-trilha { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.v5-mc-trilha i { display: block; height: 100%; width: 0; border-radius: 4px; background: #fff; transition: width 1s linear; }
.v5-mc-controles { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.v5-mc-bt { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #f4f4f5;
  background: rgba(255, 255, 255, .1); transition: transform .18s var(--anim), background .2s; }
.v5-mc-bt svg { fill: currentColor; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.v5-mc-bt line { stroke-width: 2.2; stroke-linecap: round; }
.v5-mc-bt:hover:not(:disabled) { background: rgba(255, 255, 255, .18); transform: scale(1.05); }
.v5-mc-bt:active:not(:disabled) { transform: scale(.95); }
.v5-mc-bt:disabled { opacity: .35; cursor: default; }
.v5-mc-bt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.v5-mc-tocar { width: 52px; height: 52px; color: #0b0b0d; background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.v5-mc-tocar:hover:not(:disabled) { background: #fff; }
.v5-mc-mudo svg { fill: none; stroke-width: 2; stroke-linecap: round; }
.v5-mc-mudo.ligado { color: #a1a1aa; }
.v5-mc-som { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.v5-mc-som input[type="range"] { width: clamp(80px, 14cqw, 140px); height: 4px; margin: 0; -webkit-appearance: none; appearance: none; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, #fff var(--cheio, 50%), rgba(255, 255, 255, .18) var(--cheio, 50%)); box-shadow: none; padding: 0; border: 0; }
.v5-mc-som input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.v5-mc-som input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
@container centro (max-width: 620px) {
  .v5-musica-centro { flex-direction: column; text-align: center; gap: 18px; padding: 22px; }
  .v5-mc-info { align-items: center; width: 100%; }
  .v5-mc-tempo, .v5-mc-controles { width: 100%; justify-content: center; }
  .v5-mc-som { margin-left: 8px; }
}

/* =====================================================================
   MyWaifu: a aparição volta a ser pop-up transparente; o fundo escuro fica só na carteira.
   No PC a alça e a carteira começam depois da barra lateral.
   ===================================================================== */
html body #mw-carteira.aparicao { background: transparent; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }
@media (min-width: 861px) {
  html body #mw-alca, html body #mw-carteira { margin-left: calc(var(--nav-w) + var(--nav-gap) * 2 - 10px); }
}

/* ---------- animações discretas ---------- */
@keyframes v5-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes v5-girl { from { opacity: 0; transform: translateX(16px) scale(1.02); } to { opacity: .92; transform: none; } }
@keyframes v5-orbita { to { stroke-dashoffset: 0; } }
@keyframes v5-brilha { 0%, 100% { opacity: .55; transform: scale(.85) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@keyframes v5-rola { to { transform: translateX(calc(-50% - 5px)); } }
@keyframes v5-pulso { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@keyframes v5-desce { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .v5-hero, .v5-hero-girl, .v5-bloco, .v5-comunidade, .v5-musica-centro, .trilho-sub, .tl-estrela { animation: none !important; }
  .v5-orbita ellipse { animation: none; stroke-dashoffset: 0; }
  .v5-estrela { animation: none; opacity: .9; }
  .v5-com-trilha { animation: none; }
  .v5-com-faixa { overflow-x: auto; }
  .trilho, .v5-card-bt, .v5-card-banner { transition: none; }
}

/* celular */
@media (max-width: 860px) {
  .inicio-v5 { padding: 14px 12px 24px; gap: 20px; }
  .v5-hero { min-height: 400px; align-items: flex-end; }
  /* a Astra fica em cima e o texto embaixo, sobre um degradê escuro (sem texto em cima do rosto) */
  .v5-hero-girl { width: 100%; height: 72%; object-position: 50% 20%; opacity: .8;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .v5-hero::after { height: 70%; background: linear-gradient(transparent, rgba(10, 10, 12, .92) 55%); }
  .v5-hero-txt { padding: 20px 20px 22px; gap: 8px; }
  .v5-nome { font-size: 60px; }
  .v5-acoes { margin-top: 8px; }
  /* o tema fica nas Configurações: no menu de baixo cabem os 5 itens */
  .trilho-tema { display: none !important; }
}


/* =====================================================================
   v5.5: Início fiel à referência (bloco único; substitui os ajustes v5.1 a v5.4)
   ===================================================================== */
.inicio-v5 { gap: 22px; padding: 18px 24px 26px; }

/* ---------- banner: ~300px, a Astra só à direita, fundindo no preto ---------- */
.v5-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  height: clamp(260px, 24cqw, 320px); min-height: 0; border-radius: 24px;
  background: radial-gradient(70% 120% at 80% 30%, rgba(255, 255, 255, .06), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.v5-hero::before, .v5-hero::after { display: none; }
.v5-hero-girl { position: absolute; z-index: 0; top: 0; right: 0; left: auto; bottom: 0; width: 58%; max-width: 720px; height: 100%;
  object-fit: cover; object-position: 50% 24%; opacity: 1; transform: none;
  filter: grayscale(1) contrast(1.06) brightness(.82);
  /* degradê preto: some à esquerda (onde fica o texto) e embaixo, sem nenhum corte */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%), linear-gradient(180deg, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%), linear-gradient(180deg, #000 62%, transparent 100%);
  mask-composite: intersect;
  animation: v5-girl 1s .1s var(--anim) both; }
.v5-folhas { position: absolute; z-index: 1; top: 0; right: 0; width: 58%; height: 100%; pointer-events: none; overflow: visible; }
.v5-folhas use { transform-box: fill-box; transform-origin: center; opacity: .7; }
.v5-folhas .f1 { animation: v5-folha 9s ease-in-out infinite; }
.v5-folhas .f2 { animation: v5-folha 11s -3s ease-in-out infinite; opacity: .55; }
.v5-folhas .f3 { animation: v5-folha 13s -6s ease-in-out infinite; opacity: .3; }
@keyframes v5-folha { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(8px, 12px) rotate(12deg); } }
.v5-hero-txt { position: relative; z-index: 2; padding: 0 clamp(22px, 4cqw, 48px); max-width: 520px; gap: 8px; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.v5-nome { font-size: clamp(60px, 8cqw, 104px); }
.v5-sub { font-size: 15px; max-width: 340px; color: #e4e4e7; }
.v5-acoes { gap: 12px; margin-top: 12px; }
.v5-bt { height: 46px; padding: 0 22px; border-radius: 14px; font-size: 14.5px; }
.v5-bt-vidro { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.v5-bt-vidro:hover { background: rgba(255, 255, 255, .11); }
:root[data-tema="claro"] .v5-hero { background: linear-gradient(120deg, #18181b, #0b0b0d); }

/* "Assista relaxado" não esconde o menu lateral (antes não havia como voltar ao Início) */
@media (min-width: 861px) {
  body:has(.app.cinema) .trilho { display: flex !important; }
  html .app.cinema { padding-left: calc(var(--nav-w) + var(--nav-gap) * 2) !important; }
}

/* ---------- responder no chat ---------- */
#chat-lista li { position: relative; }
.chat-responder { position: absolute; top: 2px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 8px; display: grid; place-items: center;
  cursor: pointer; color: var(--texto); background: color-mix(in srgb, var(--fundo-1) 85%, transparent); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0; transition: opacity .15s; }
.chat-responder svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#chat-lista li:hover .chat-responder, .chat-responder:focus-visible { opacity: 1; }
@media (hover: none) { .chat-responder { opacity: .7; } }
.chat-resp { margin: 2px 0 3px; padding: 3px 8px; border-left: 2px solid rgba(255, 255, 255, .35); border-radius: 4px; font-size: 12px; color: var(--fraco);
  background: rgba(255, 255, 255, .04); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-resp b { color: var(--texto); font-weight: 700; }
.chat-resp-barra { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 6px 8px 6px 10px; border-radius: 10px; font-size: 12px; color: var(--fraco);
  background: rgba(255, 255, 255, .05); border-left: 2px solid rgba(255, 255, 255, .4); }
.chat-resp-barra[hidden] { display: none; }
.chat-resp-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-resp-txt b { color: var(--texto-forte); }
.chat-resp-x { flex: none; width: 22px; height: 22px; border: 0; border-radius: 6px; cursor: pointer; color: var(--texto); background: transparent; }
.chat-resp-x:hover { background: rgba(255, 255, 255, .1); }

@media (prefers-reduced-motion: reduce) { .v5-folhas use, .v5-com-trilha { animation: none !important; } }
@media (max-width: 860px) {
  .v5-hero { height: auto; min-height: 380px; align-items: flex-end; }
  .v5-hero-girl { width: 100%; max-width: none; height: 70%; bottom: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
  .v5-folhas { width: 100%; height: 70%; }
  .v5-hero-txt { padding: 20px 18px 22px; }
}/* v5.5 ajustes: citação no lugar certo da grade do chat; banner sem contorno em nenhuma borda */
.chat-lista li > .chat-resp, .chat-lista li > p { grid-column: 2; min-width: 0; }
.v5-hero { background: none; }
.v5-hero-girl {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 60%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 14%, #000 60%, transparent 100%); }
/* =====================================================================
   v5.6: Início sempre com o layout da página inicial (também quando se está numa sala)
   ===================================================================== */
@media (min-width: 861px) {
  html.v5-na-sala.v5-ver-inicio .app:not(.cinema) { grid-template-columns: minmax(0, 1fr) 296px !important; }
  html.v5-na-sala.v5-ver-inicio .app.sem-lado:not(.cinema) { grid-template-columns: minmax(0, 1fr) !important; }
  html.v5-ver-inicio .lateral { display: none !important; }
}
html.v5-ver-inicio #abas-direita { display: none !important; }

/* conteúdo centralizado e proporcional */
.inicio-v5 { padding: 16px clamp(18px, 2.4cqw, 34px) 26px; gap: 20px; }
.inicio-v5 > * { max-width: 1180px; }

/* banner: a Astra grande à direita, fundindo no preto */
.v5-hero { height: clamp(320px, 31cqw, 410px); border-radius: 0; overflow: visible; }
.v5-hero-girl { top: -16px; right: -1%; width: 64%; max-width: 820px; height: calc(100% + 16px); object-position: 50% 30%;
  filter: grayscale(1) contrast(1.08) brightness(.85);
  -webkit-mask-image: radial-gradient(120% 95% at 66% 38%, #000 40%, rgba(0, 0, 0, .7) 58%, transparent 80%), linear-gradient(90deg, transparent 0%, #000 34%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(120% 95% at 66% 38%, #000 40%, rgba(0, 0, 0, .7) 58%, transparent 80%), linear-gradient(90deg, transparent 0%, #000 34%);
  mask-composite: intersect; }
.v5-folhas { width: 64%; }
.v5-hero-txt { padding: 0 0 0 clamp(8px, 2cqw, 30px); max-width: 540px; }
.v5-nome { font-size: clamp(68px, 9cqw, 120px); }
.v5-sub { font-size: 16px; max-width: 360px; }
.v5-bt { height: 50px; padding: 0 24px; }

@media (max-width: 860px) {
  .v5-hero { height: auto; min-height: 400px; overflow: hidden; border-radius: 20px; }
  .v5-hero-girl { top: 0; right: 0; width: 100%; max-width: none; height: 72%;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .v5-folhas { width: 100%; }
  .v5-hero-txt { padding: 20px 18px 22px; }
}.v5-hero-girl {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 20%, #000 40%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 58%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 20%, #000 40%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 58%, transparent 100%);
  mask-composite: intersect; }
@media (max-width: 860px) {
  .v5-hero-girl { -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
}
/* =====================================================================
   v5.7: banner em painel de vidro (mesma linguagem dos cards das salas)
   ===================================================================== */
.inicio-v5 { gap: 26px; }
.v5-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; height: clamp(320px, 30cqw, 400px);
  background:
    radial-gradient(55% 90% at 74% 30%, rgba(255, 255, 255, .09), transparent 70%),
    linear-gradient(125deg, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .025) 45%, rgba(255, 255, 255, .045) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .045), 0 30px 70px rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(20px) saturate(120%); backdrop-filter: blur(20px) saturate(120%); }
/* a garota dentro do painel: grande à direita, sumindo suave para a esquerda e para baixo */
.v5-hero-girl { top: 0; right: 0; bottom: 0; height: 100%; width: 66%; max-width: none; object-fit: cover; object-position: 50% 28%;
  filter: grayscale(1) contrast(1.06) brightness(.9);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 18%, #000 42%), linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 18%, #000 42%), linear-gradient(180deg, #000 70%, transparent 100%);
  mask-composite: intersect; }
/* véu suave por cima: escurece a esquerda para o texto e dá profundidade embaixo */
.v5-hero::after { content: ""; display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 12, 14, .55) 0%, rgba(12, 12, 14, .15) 45%, transparent 70%),
              linear-gradient(180deg, transparent 60%, rgba(12, 12, 14, .35) 100%); }
.v5-folhas { width: 66%; z-index: 1; }
.v5-hero-txt { z-index: 2; padding: 0 clamp(26px, 4cqw, 52px); max-width: 560px; gap: 8px; }
.v5-ola { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; color: #e4e4e7;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-shadow: none; }
.v5-nome { font-size: clamp(64px, 8.4cqw, 112px); }
.v5-sub { font-size: 15.5px; max-width: 360px; color: #d4d4d8; }
.v5-acoes { margin-top: 10px; gap: 12px; }
.v5-bt { height: 48px; padding: 0 24px; }
.v5-bt-vidro { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.v5-hero-info { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13px; color: #a1a1aa; text-shadow: none; }
.v5-hero-info > span { display: inline-flex; align-items: center; gap: 6px; }
.v5-hero-info b { color: #f4f4f5; font-weight: 700; }
.v5-ponto { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
:root[data-tema="claro"] .v5-hero { background: linear-gradient(120deg, #18181b, #0b0b0d); }
@media (max-width: 860px) {
  .v5-hero { height: auto; min-height: 420px; align-items: flex-end; }
  .v5-hero-girl { width: 100%; height: 66%; bottom: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .v5-hero::after { background: linear-gradient(180deg, transparent 35%, rgba(12, 12, 14, .7) 75%); }
  .v5-hero-txt { padding: 20px 18px 22px; }
}.v5-hero { -webkit-backdrop-filter: none; backdrop-filter: none; }
.v5-hero { background-color: #141417; }
.v5-hero::after { top: 0; right: 0; bottom: 0; left: 0; height: auto; }

/* =====================================================================
   v5.8: banner menor e translúcido (vidro fosco), cards de sala compactos,
   barra só de ícones e a seta única da coluna da sala
   ===================================================================== */
.inicio-v5 { gap: 20px; }
.v5-hero { height: clamp(220px, 21cqw, 270px); border-radius: 22px;
  background-color: rgba(255, 255, 255, .035);
  background-image: radial-gradient(60% 120% at 80% 0%, rgba(255, 255, 255, .10), transparent 70%),
    linear-gradient(125deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015) 50%, rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 44px rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(22px) saturate(130%); backdrop-filter: blur(22px) saturate(130%); }
/* a arte fica translúcida, como se estivesse atrás do vidro */
.v5-hero-girl { width: 62%; object-position: 50% 30%; filter: grayscale(1) contrast(1.05) brightness(.95) opacity(.6); }
/* reflexo do vidro: luz diagonal suave e brilho na borda de cima */
.v5-hero::before { content: ""; display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(112deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 28%, transparent 42%, transparent 70%, rgba(255, 255, 255, .05) 100%); }
.v5-hero::after { background: linear-gradient(90deg, rgba(14, 14, 16, .45) 0%, rgba(14, 14, 16, .1) 45%, transparent 70%); }
.v5-folhas { width: 62%; opacity: .7; }
.v5-hero-txt { padding: 0 clamp(22px, 3.2cqw, 40px); gap: 6px; max-width: 520px; }
.v5-ola { height: 23px; font-size: 11.5px; }
.v5-nome { font-size: clamp(46px, 5.8cqw, 74px); }
.v5-sub { font-size: 14px; max-width: 340px; }
.v5-acoes { margin-top: 6px; gap: 10px; }
.v5-bt { height: 40px; padding: 0 18px; font-size: 13.5px; }
.v5-hero-info { margin-top: 6px; gap: 14px; font-size: 12.5px; }

/* salas ativas: caixas menores, até 4 lado a lado */
.v5-bloco { gap: 10px; }
.v5-bloco-cab h2 { font-size: 16px; }
.v5-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.v5-cards-todas { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@container centro (max-width: 900px) { .v5-cards:not(.v5-cards-todas) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container centro (max-width: 680px) { .v5-cards:not(.v5-cards-todas) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container centro (max-width: 440px) { .v5-cards:not(.v5-cards-todas) { grid-template-columns: minmax(0, 1fr); } }
.v5-card-bt { border-radius: 14px; }
.v5-card-banner { aspect-ratio: 16 / 6; }
.v5-vivo { top: 7px; left: 7px; padding: 3px 7px 3px 6px; font-size: 9.5px; }
.v5-card-corpo { gap: 8px; padding: 9px 11px 10px; }
.v5-card-nome { font-size: 13px; }
.v5-priv { padding: 2px 7px; font-size: 10.5px; }
.v5-rostos .avatar { width: 20px; height: 20px; font-size: 8.5px; margin-left: -6px; }
.v5-qtd { font-size: 11.5px; }
.v5-entrar { height: 26px; padding: 0 10px; font-size: 11.5px; border-radius: 8px; }
.v5-cards:not(.v5-cards-todas) .v5-card-vazio .v5-card-bt { min-height: 0; flex-direction: row; gap: 12px; padding: 14px 18px; }
.v5-card-vazio .v5-card-bt svg { width: 20px; height: 20px; padding: 8px; margin: 0; border-radius: 12px; }
.v5-card-vazio .v5-card-bt b { font-size: 13.5px; }
.v5-card-vazio .v5-card-bt small { font-size: 12px; }

/* barra lateral: só ícones, sem a setinha de expandir */
.trilho-seta { display: none !important; }

/* seta única que recolhe/mostra a coluna da sala */
.bt-coluna-seta { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0 2px 0 -6px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--fraco); cursor: pointer; transition: background .2s, color .2s; }
.bt-coluna-seta[hidden] { display: none; }
.bt-coluna-seta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--anim); }
.bt-coluna-seta:hover { background: var(--v5-vidro); color: var(--texto-forte); }
.bt-coluna-seta:focus-visible { outline: 2px solid var(--texto-forte); outline-offset: 2px; }
.bt-coluna-seta[aria-pressed="true"] svg { transform: rotate(180deg); }
html.v5-ver-inicio .bt-coluna-seta { display: none; }
@media (max-width: 860px) {
  .v5-hero { height: auto; min-height: 300px; }
  .v5-hero-girl { width: 100%; filter: grayscale(1) brightness(.95) opacity(.55); }
  .v5-folhas { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bt-coluna-seta svg { transition: none; } }/* celular: a barra de baixo também fica só com os ícones (maiores para tocar) */
@media (max-width: 860px) {
  .trilho-bt span:not(.sr) { display: none !important; }
  .trilho-bt svg { width: 22px; height: 22px; }
}
/* v5.3: balões do GG no chat (app.js baloesGG) */
.gg-ceu{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:2147483000}
.gg-balao{position:absolute;bottom:-160px;width:var(--l);height:calc(var(--l)*1.22);border-radius:50% 50% 48% 48%/55% 55% 45% 45%;
background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.75) 0 7%,transparent 18%),radial-gradient(circle at 50% 55%,var(--c),color-mix(in srgb,var(--c) 70%,#000));
box-shadow:inset -6px -10px 18px rgba(0,0,0,.18);animation:gg-sobe var(--t) cubic-bezier(.35,.1,.6,1) var(--a) forwards}
.gg-balao::before{content:"";position:absolute;left:50%;bottom:-7px;width:10px;height:8px;margin-left:-5px;background:color-mix(in srgb,var(--c) 75%,#000);clip-path:polygon(50% 0,100% 100%,0 100%)}
.gg-balao::after{content:"";position:absolute;left:50%;top:100%;width:1.5px;height:90px;margin-left:-.75px;background:rgba(255,255,255,.55);transform-origin:top;animation:gg-fio 1.4s ease-in-out infinite alternate}
@keyframes gg-sobe{0%{transform:translate(0,0) rotate(-4deg)}25%{transform:translate(var(--x1),-30vh) rotate(5deg)}50%{transform:translate(var(--x2),-60vh) rotate(-5deg)}75%{transform:translate(var(--x1),-90vh) rotate(4deg)}100%{transform:translate(var(--x2),calc(-100vh - 320px)) rotate(-3deg)}}
@keyframes gg-fio{from{transform:rotate(-8deg)}to{transform:rotate(8deg)}}
@media (prefers-reduced-motion:reduce){.gg-balao{animation-duration:calc(var(--t)*1.6)}}

/* =====================================================================
   v5.9 (2.7.20): banner do Início sem borda. Sem caixa, vidro ou sombra:
   a arte some no fundo (máscara nas 4 bordas) e o texto fica centrado na
   altura, com espaços fixos entre as linhas.
   ===================================================================== */
.v5-hero { height: auto; min-height: clamp(300px, 26cqw, 380px); display: flex; align-items: center;
  background: none !important; box-shadow: none; border-radius: 0; overflow: visible;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.v5-hero::before, .v5-hero::after { display: none; }
.v5-hero-girl { top: -6%; bottom: auto; right: -2%; width: 66%; max-width: 940px; height: 112%; object-position: 50% 30%;
  filter: grayscale(1) contrast(1.05) brightness(1); opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 42%, #000 66%, transparent 96%), linear-gradient(180deg, transparent 0%, #000 24%, #000 62%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 42%, #000 66%, transparent 96%), linear-gradient(180deg, transparent 0%, #000 24%, #000 62%, transparent 96%);
  mask-composite: intersect; }
.v5-folhas { width: 60%; opacity: .6; }
.v5-hero-txt { padding: 28px 0 28px clamp(6px, 1.6cqw, 24px); max-width: 560px; gap: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.v5-ola { margin-bottom: 16px; }
.v5-marca { margin: 0 0 8px; padding: 0; }
.v5-nome { margin-left: -.03em; }
.v5-sub { margin: 0 0 20px; font-size: 15px; max-width: 380px; }
.v5-acoes { margin: 0; }
.v5-hero-info { margin: 16px 0 0; }
@media (max-width: 860px) {
  .v5-hero { min-height: 340px; align-items: flex-end; }
  .v5-hero-girl { width: 100%; height: 100%; top: 0; opacity: .6; }
  .v5-hero-txt { padding: 20px 4px; }
}

/* esboço 2: textos de boas-vindas + selos, menina nova com bordas bem esfumadas */
.v5-hero { min-height: clamp(340px, 30cqw, 420px); }
.v5-hero-girl { top: -10%; right: 0; width: 56%; max-width: 760px; height: 120%; object-fit: cover; object-position: 60% 35%;
  filter: grayscale(1) contrast(1.08) brightness(1.02); opacity: .92;
  -webkit-mask-image: radial-gradient(ellipse 48% 46% at 56% 50%, #000 30%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.2) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 48% 46% at 56% 50%, #000 30%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.2) 78%, transparent 100%);
  -webkit-mask-composite: source-over; mask-composite: add; }
.v5-folhas { display: none; }
.v5-hero-txt { max-width: 640px; }
.v5-ola { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #f4f4f5;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.v5-ola::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f4f4f5; }
.v5-titulo { margin: 0 0 6px; font-size: clamp(30px, 3.4cqw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: #fff; }
.v5-sub { margin: 0 0 18px; font-size: 16px; max-width: none; color: #e4e4e7; }
.v5-selos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.v5-selo { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: #f4f4f5; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.16); text-shadow: none; }
.v5-selo svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v5-passos { margin-top: 14px; font-size: 14px; font-weight: 700; color: #f4f4f5; text-decoration: underline; text-underline-offset: 4px; }
.v5-passos:hover { color: #fff; }
/* esboço 3: a menina se funde com o fundo (screen tira o escuro da foto; máscara com queda longa e suave) */
.v5-hero-girl { top: -14%; right: -2%; width: 60%; height: 128%; object-position: 58% 38%;
  filter: grayscale(1) brightness(.98) contrast(.96); opacity: .95; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side at 54% 50%, #000 0%, rgba(0,0,0,.92) 28%, rgba(0,0,0,.7) 46%, rgba(0,0,0,.42) 62%, rgba(0,0,0,.18) 78%, rgba(0,0,0,.05) 90%, transparent 100%);
  mask-image: radial-gradient(closest-side at 54% 50%, #000 0%, rgba(0,0,0,.92) 28%, rgba(0,0,0,.7) 46%, rgba(0,0,0,.42) 62%, rgba(0,0,0,.18) 78%, rgba(0,0,0,.05) 90%, transparent 100%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.v5-hero-girl { top: -4%; height: 112%; }

/* 2.7.20: botão de desativar o áudio (fone) na barra lateral */
.trilho-surdo .ic-fone-off { display: none; }
.trilho-surdo[aria-pressed="true"] .ic-fone { display: none; }
.trilho-surdo[aria-pressed="true"] .ic-fone-off { display: block; }
.trilho-surdo[aria-pressed="true"] { color: #f23f43; }
.trilho-surdo[aria-pressed="true"]:hover { background: rgba(242, 63, 67, .12); }

/* 2.7.20: o botão da coluna da sala virou o ícone de pessoas (lista de membros). Aceso = coluna aberta. */
.bt-coluna-seta[aria-pressed="true"] svg { transform: none; }
.bt-coluna-seta[aria-pressed="false"] { color: var(--texto-forte); }
.bt-coluna-seta[aria-pressed="true"] { color: var(--fraco); }

/* 2.7.20: Salas, Jogos e Música sem fundo próprio: aparece o mesmo fundo do Início (papel de parede ou cor do tema).
   O Início e a sala por baixo ficam invisíveis enquanto a página está aberta (a sala continua rodando). */
.pagina, :root[data-tema] .pagina { background: radial-gradient(700px 380px at 85% 0%, rgba(255, 255, 255, .035), transparent 70%); }
.principal:has(> .pagina:not([hidden])) > #inicio,
.principal:has(> .pagina:not([hidden])) > #sala { visibility: hidden; }
/* 2.7.20: aparelho antigo sem :has (WebView velho do Android): a página volta a ter fundo próprio para não ficar por cima do Início. */
@supports not selector(:has(a)) {
  .pagina, :root[data-tema] .pagina { background: var(--fundo-2); background: radial-gradient(700px 380px at 85% 0%, rgba(255, 255, 255, .045), transparent 70%), color-mix(in srgb, var(--fundo-2) 98%, var(--fundo-pagina)); }
}

/* ---------- 2.7.20: Grupos (janelinha flutuante, igual às Mensagens privadas, redimensionável) ---------- */
.grupos { position: fixed; left: calc(var(--nav-w, 64px) + var(--nav-gap, 8px) * 2 + 4px); bottom: 12px; width: 600px; height: 520px;
  max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); z-index: 60; display: flex; overflow: hidden;
  background: color-mix(in srgb, var(--fundo-2) 92%, transparent); border: 1px solid var(--vidro-borda-forte, var(--fundo-3)); border-radius: var(--raio, 14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  animation: modal-entra .22s var(--anim, ease); font-size: 13px; }
.grupos[hidden] { display: none; }
.grupos.mexendo { user-select: none; animation: none; }
.gr-alca { position: absolute; top: 0; right: 0; width: 18px; height: 18px; cursor: nesw-resize; z-index: 3; touch-action: none; }
.gr-alca::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-top: 2px solid var(--fraco); border-right: 2px solid var(--fraco); border-radius: 0 3px 0 0; opacity: .45; }
.gr-alca:hover::after, .grupos.mexendo .gr-alca::after { opacity: 1; }
.gr-lado { width: 190px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--linha, var(--fundo-3)); padding: 10px 8px; min-height: 0; }
.gr-lado-cab { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; }
.gr-lado-cab b { font-size: 14px; color: var(--texto-forte); }
.gr-novo { width: 24px; height: 24px; border: 0; border-radius: 7px; background: var(--fundo-3); color: var(--texto-forte); font-size: 16px; line-height: 1; cursor: pointer; }
.gr-novo:hover { filter: brightness(1.3); }
.gr-lista { flex: 1; min-height: 0; overflow-y: auto; }
.gr-item { width: 100%; display: flex; gap: 8px; align-items: center; padding: 6px 7px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; margin-bottom: 1px; }
.gr-item:hover { background: color-mix(in srgb, var(--texto-forte) 5%, transparent); }
.gr-item.on { background: color-mix(in srgb, var(--texto-forte) 8%, transparent); }
.gr-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--fundo-3); color: var(--texto-forte); display: grid; place-items: center; font-weight: 700; font-size: 10.5px; flex: none; }
.gr-item-txt { min-width: 0; flex: 1; }
.gr-item-txt b, .gr-item-txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-item-txt b { font-size: 12.5px; font-weight: 600; color: var(--texto-forte); }
.gr-item-txt small { font-size: 11px; color: var(--fraco); }
.gr-item.nl .gr-item-txt small { color: var(--texto); }
.gr-n { background: var(--texto-forte); color: var(--fundo-1); font-size: 9.5px; font-weight: 800; border-radius: 8px; min-width: 15px; height: 15px; display: grid; place-items: center; padding: 0 4px; }
.gr-vazio-lista { color: var(--fraco); font-size: 12px; padding: 6px; margin: 0; }
.gr-conversa { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.gr-topo { display: flex; align-items: center; gap: 8px; padding: 9px 22px 9px 14px; border-bottom: 1px solid var(--linha, var(--fundo-3)); min-height: 32px; position: relative; }
.gr-titulo { flex: 1; min-width: 0; font-size: 13.5px; color: var(--texto-forte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-pilha { display: flex; align-items: center; padding-left: 6px; }
.gr-pilha .avatar { width: 20px; height: 20px; font-size: 8.5px; margin-left: -6px; box-shadow: 0 0 0 2px var(--fundo-2); }
.gr-pilha small { margin-left: 6px; font-size: 11px; color: var(--fraco); }
.gr-bt { flex: none; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--fraco); cursor: pointer; display: grid; place-items: center; }
.gr-bt svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.gr-mais svg { fill: currentColor; stroke: none; }
.gr-bt:hover { background: var(--fundo-3); color: var(--texto-forte); }
.gr-menu { position: absolute; right: 40px; top: 40px; z-index: 5; display: flex; flex-direction: column; min-width: 160px; padding: 5px; border-radius: 10px;
  background: var(--fundo-1); border: 1px solid var(--vidro-borda-forte, var(--fundo-3)); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.gr-menu button { border: 0; background: transparent; color: var(--texto); font: inherit; font-size: 12.5px; text-align: left; padding: 7px 9px; border-radius: 7px; cursor: pointer; }
.gr-menu button:hover { background: var(--fundo-3); color: var(--texto-forte); }
.gr-menu button.perigo { color: var(--vermelho, #e5484d); }
.gr-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 14px 6px; display: flex; flex-direction: column; }
.gr-msgs > :first-child { margin-top: auto; }
.gr-m { display: grid; grid-template-columns: 26px 1fr; column-gap: 9px; padding: 5px 4px 0; border-radius: 8px; }
.gr-m .avatar { width: 26px; height: 26px; font-size: 10px; grid-row: span 2; }
.gr-m.seguida { padding-top: 1px; }
.gr-m.seguida > p { grid-column: 2; }
.gr-m.enviando { opacity: .55; }
.gr-m.marcou { background: color-mix(in srgb, var(--texto-forte) 6%, transparent); box-shadow: inset 2px 0 0 var(--texto-forte); padding-bottom: 3px; }
.gr-cab b { font-size: 12.5px; font-weight: 600; }
.gr-cab time { color: var(--fraco); font-size: 10.5px; margin-left: 5px; }
.gr-m p { margin: 1px 0 0; color: var(--texto); font-size: 12.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.gr-men { color: var(--texto-forte); background: color-mix(in srgb, var(--texto-forte) 12%, transparent); border-radius: 4px; padding: 0 3px; }
.gr-vazio { margin: auto; color: var(--fraco); font-size: 12.5px; }
.gr-form { padding: 0 10px 10px; }
.gr-form[hidden] { display: none; }
.gr-texto { width: 100%; box-sizing: border-box; background: color-mix(in srgb, var(--fundo-0, #000) 60%, transparent); border: 1px solid var(--linha, var(--fundo-3)); border-radius: 10px;
  padding: 9px 12px; color: var(--texto-forte); font: inherit; font-size: 12.5px; outline: none; }
.gr-texto:focus { border-color: var(--vidro-borda-forte, var(--fraco)); }
.gr-boas { margin: auto; text-align: center; max-width: 260px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gr-boas b { color: var(--texto-forte); font-size: 14px; }
.gr-boas p { margin: 0; color: var(--fraco); font-size: 12.5px; line-height: 1.45; }
.gr-criar { margin: auto 0; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.gr-criar label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--texto-forte); font-weight: 600; }
.gr-criar label small { color: var(--fraco); font-weight: 400; }
.gr-criar input { background: color-mix(in srgb, var(--fundo-0, #000) 60%, transparent); border: 1px solid var(--linha, var(--fundo-3)); border-radius: 9px; padding: 8px 10px; color: var(--texto-forte); font: inherit; font-size: 12.5px; outline: none; }
.gr-sugestoes { display: flex; flex-wrap: wrap; gap: 5px; }
.gr-sugestoes:empty { display: none; }
.gr-chip { border: 1px solid var(--linha, var(--fundo-3)); background: transparent; color: var(--texto); font: inherit; font-size: 11.5px; padding: 3px 9px; border-radius: 99px; cursor: pointer; }
.gr-chip:hover { color: var(--texto-forte); border-color: var(--fraco); }
.gr-chip:disabled { opacity: .4; cursor: default; }
.gr-c-bts { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 700px) {
  .grupos { left: 8px; right: 8px; width: auto !important; height: auto !important; top: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .gr-alca { display: none; }
  .gr-lado { width: 120px; }
}

/* 2.7.20: o brilho da cor do perfil em volta da foto não é mais cortado na lateral do chat da sala */
.chat-lista { padding-left: 8px; }
.chat-lista .avatar.anel:not(.ao-vivo) { box-shadow: 0 0 3px 1px color-mix(in srgb, var(--anel) 85%, transparent), 0 0 8px 2px color-mix(in srgb, var(--anel) 50%, transparent); }
#trilho-grupos[aria-pressed="true"] { color: var(--texto-forte); background: var(--v5-vidro-2, var(--fundo-3)); }
