/* Chat ao vivo: mesma linguagem visual do site (escuro, painel #121214, bordas #242428, Inter). */
.chat, .chat * { box-sizing: border-box; }
.chat [hidden] { display: none !important; }
.chat { font: 14px/1.4 Inter, system-ui, sans-serif; color: var(--text); }
.chat button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--panel); position: relative; }
.chat__topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.chat__titulo { font-weight: 700; }
.chat__online { color: var(--muted); font-weight: 500; }
.chat__online b { color: var(--ok); }
.chat__lento { font-size: 11px; color: var(--warn); }
.chat__fixada { padding: 8px 12px; background: var(--panel-3); border-bottom: 1px solid var(--border); font-size: 13px; }
.chat__lista { flex: 1; overflow-y: auto; padding: 8px 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { position: relative; display: flex; gap: 8px; align-items: flex-start; padding: 5px 6px; border-radius: 8px; }
.msg:hover { background: var(--panel-2); }
.msg__foto { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--panel-3); }
.msg__corpo { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.msg__nome { font-weight: 600; color: var(--muted); font-size: 13px; }
.msg--eu .msg__nome { color: var(--pl); }
.msg--mod .msg__nome { color: var(--warn); }
.msg__tag { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 999px; background: var(--warn); color: #000; vertical-align: middle; }
.msg__hora { font-size: 10px; color: var(--muted); flex: 0 0 auto; opacity: 0; }
.msg:hover .msg__hora { opacity: 1; }
.msg__acoes { display: none; gap: 2px; flex: 0 0 auto; }
.msg__acoes button { padding: 0 4px; border-radius: 6px; }
.msg__acoes button:hover { background: var(--panel-3); }
.chat.moderador .msg:hover .msg__acoes { display: inline-flex; }
.chat__novas { position: absolute; left: 50%; transform: translateX(-50%); bottom: 118px; padding: 6px 12px; border-radius: 999px; background: var(--pl); color: #fff; font-weight: 600; font-size: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.chat__reacoes { display: flex; gap: 4px; padding: 6px 10px; border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.chat__reacoes button { font-size: 20px; line-height: 1; padding: 4px 6px; border-radius: 8px; transition: transform .1s; }
.chat__reacoes button:active { transform: scale(1.4); }
.chat__flutuantes { position: absolute; left: 0; right: 0; bottom: 110px; height: 55%; pointer-events: none; overflow: hidden; }
.chat__flutuantes span { position: absolute; bottom: 0; animation: subir 2.4s ease-out forwards; will-change: transform, opacity; }
@keyframes subir { 0% { transform: translateY(0) scale(.8); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-100%) translateY(-220px) scale(1.2) rotate(8deg); opacity: 0; } }
.chat__rodape { border-top: 1px solid var(--border); padding: 8px 10px 6px; background: var(--panel); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-weight: 600; }
.btn--google { width: 100%; justify-content: center; background: #fff; color: #1f1f1f; }
.btn--google:hover { background: #f1f1f1; }
.chat__aviso { min-height: 16px; font-size: 12px; color: var(--warn); text-align: center; margin-top: 4px; }
.chat__form { display: flex; align-items: center; gap: 6px; }
.chat__eu { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.chat__input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); outline: none; }
.chat__input:focus { border-color: var(--pl); }
.btn--enviar { padding: 7px 12px; background: var(--pl); color: #fff; }
.btn--enviar:disabled { opacity: .4; cursor: default; }
.btn--sair { padding: 6px 8px; font-size: 11px; color: var(--muted); }
.form--aviso::after { content: attr(data-aviso); display: block; width: 100%; font-size: 12px; color: var(--warn); }
.chat__regras { font-size: 10.5px; color: var(--muted); margin-top: 6px; text-align: center; }
@media (hover: none) { .msg__hora { opacity: 1; } }
