/* Chat da Tropa · coluna do computador (Figma "15 · Site · Chat", P1–P10, cartão 440:7284, peças 429:2691).
   Medidas da referência (AtlasBet): coluna de 296 px, fundo #13111A, linhas #221F2B, linha com o mouse #16141E.
   Abaixo de 1024 px a coluna fica escondida (o celular ganha a gaveta em outra etapa). */

.chat, .topo-chat { display: none; }

/* ---------- botão "Chat" da barra de cima (aparece com a coluna fechada) ---------- */
@media (min-width: 1024px) {
  .topo-chat {
    display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 14px; border-radius: 12px;
    background: var(--cartao); border: 1px solid var(--borda); font: 700 14px/1 var(--f-ui); color: #fff; transition: background-color .15s, border-color .15s;
  }
  .topo-chat:hover { background: var(--elevado); border-color: #4A3F7A; }
  .topo-chat svg { width: 18px; height: 18px; fill: var(--roxo); }
  .topo-chat__n { min-width: 22px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--roxo); font: 700 11px/18px var(--f-ui); text-align: center; }
  html.chat-aberto .aviso, html.chat-aberto .cookies { right: calc(296px + 28px); }
}
@media (min-width: 1280px) {
  :is(html.chat-aberto, html:not(.chat-fechado):not(.chat-off):has(.app > .chat)) :is(.aviso, .cookies) { right: calc(296px + 28px); }
}

/* ---------- coluna ---------- */
@media (min-width: 1024px) {
  .chat {
    position: sticky; top: 0; z-index: 25; display: none; flex-direction: column; width: 296px; height: 100vh; height: 100dvh;
    background: #13111A; box-shadow: inset 1px 0 0 #221F2B; font-family: var(--f-ui); color: #C8C3D4;
  }
}
@media (min-width: 1024px) { html.chat-aberto .chat { display: flex; } }
/* A partir de 1280 px a coluna é aberta por padrão no próprio CSS: aparece já no primeiro desenho da página.
   O chat.js põe "chat-fechado" (a pessoa fechou) ou "chat-off" (chat desligado) no <html> para esconder. */
@media (min-width: 1280px) { html:not(.chat-fechado):not(.chat-off) .chat { display: flex; } }
/* 1024–1279 px: o miolo ficaria estreito demais com 3 colunas; o chat abre por cima, preso à direita */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .chat { position: fixed; right: 0; z-index: 45; box-shadow: inset 1px 0 0 #221F2B, -24px 0 48px rgba(0, 0, 0, .5); }
}
.chat svg { flex: none; }
.chat button { -webkit-tap-highlight-color: transparent; }
.chat :focus-visible, .chat-banir :focus-visible { outline: 2px solid var(--roxo-claro); outline-offset: 1px; border-radius: 6px; }

/* cabeçalho */
.chat__cabeca { display: flex; align-items: center; gap: 8px; height: 56px; flex: none; padding: 0 10px 0 16px; box-shadow: inset 0 -1px 0 #221F2B; }
.chat__icone { width: 20px; height: 20px; fill: var(--roxo); }
.chat__titulo { margin: 0; font: 700 15px/20px var(--f-ui); color: #fff; }
.chat__fechar, .chat__painel-x { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 8px; color: #8A849A; transition: background-color .15s, color .15s; }
.chat__fechar:hover, .chat__painel-x:hover { background: #1E1B27; color: #fff; }
.chat__fechar svg, .chat__painel-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* lista */
.chat__corpo { position: relative; flex: 1; min-height: 0; }
.chat__lista {
  height: 100%; margin: 0; padding: 6px 10px 8px; list-style: none; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #2A2633 transparent;
}
.chat__vazio { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; font: 500 13px/1.4 var(--f-ui); color: #6E6684; text-align: center; pointer-events: none; }

/* mensagem */
.chat-msg { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; padding: 8px 10px 7px; border-radius: 10px; font: 400 14px/20px var(--f-ui); overflow-wrap: anywhere; }
.chat-msg:hover, .chat-msg.is-menu, .chat-msg.is-perfil { background: #16141E; }
.chat-msg.is-mencao { background: rgba(155, 77, 255, .1); box-shadow: inset 0 0 0 1px rgba(155, 77, 255, .5); }
.chat-msg.is-perfil { box-shadow: inset 0 0 0 1px rgba(155, 77, 255, .5); }
.chat-msg + .chat-msg.is-mencao, .chat-msg.is-mencao + .chat-msg { margin-top: 2px; }
.chat-av { grid-column: 1; align-self: start; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -3px; padding: 2px; border-radius: 6px;
  background: linear-gradient(#211E2C, #16141E); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: box-shadow .15s; }
.chat-av:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 2px var(--roxo); }
.chat-av__img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
.chat-av__letra { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; background: #3B3350; font: 700 11px/1 var(--f-ui); color: #E4E0EE; }
.chat-corpo { grid-column: 2; min-width: 0; }
.chat-resp ~ .chat-av, .chat-resp ~ .chat-corpo { grid-row: 2; }
.chat-nome { display: inline; padding: 0; font: 600 14px/20px var(--f-ui); color: #fff; overflow-wrap: anywhere; }
.chat-nome:hover { text-decoration: underline; text-underline-offset: 3px; }
.chat-texto { color: #C8C3D4; }
.chat-apagada { color: #6E6684; font-style: italic; }
.chat-mencao { font-weight: 600; color: #B57BFF; }
.chat-emote { display: inline-block; width: auto; height: 28px; max-width: 84px; margin: 2px 0; vertical-align: middle; object-fit: contain; }
.chat-hora, .chat-mais { position: absolute; top: 7px; opacity: 0; pointer-events: none; transition: opacity .12s; }
.chat-hora { right: 38px; padding: 0 4px 0 10px; font: 500 11px/22px var(--f-ui); color: #6E6684; background: linear-gradient(90deg, rgba(22, 20, 30, 0), #16141E 10px); }
.chat-msg:not(:has(.chat-mais)) .chat-hora { right: 8px; }
.chat-mais { right: 8px; display: grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; background: #2A2540; font: 700 14px/1 var(--f-ui); color: #E4E0EE; letter-spacing: -1px; }
.chat-mais:hover, .chat-msg.is-menu .chat-mais { background: #3B3260; color: #fff; }
.chat-msg:hover .chat-hora, .chat-msg:hover .chat-mais, .chat-msg.is-menu .chat-hora, .chat-msg.is-menu .chat-mais, .chat-mais:focus-visible { opacity: 1; pointer-events: auto; }
.chat-msg.is-mencao .chat-hora { background: linear-gradient(90deg, rgba(31, 22, 47, 0), #1F162F 10px); }
/* linha da resposta (em cima da mensagem) */
.chat-resp { grid-column: 1 / -1; grid-row: 1; position: relative; display: flex; gap: 4px; min-width: 0; margin: -2px 0 2px; padding-left: 24px; font: 400 12px/18px var(--f-ui); color: #9A94A8; white-space: nowrap; }
.chat-resp::before { content: ""; position: absolute; left: 11px; top: 5px; width: 8px; height: 7px; border: solid #4A4458; border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 4px; }
.chat-resp b { flex: none; font-weight: 600; color: #B57BFF; }
.chat-resp span { overflow: hidden; text-overflow: ellipsis; }
.chat-resp__apagada { font-style: italic; color: #6E6684; }

/* pílula do nível e etiquetas */
.chat-nivel {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; margin-right: 6px; padding: 0 6px 0 2px; border-radius: 4px; vertical-align: top;
  background: color-mix(in srgb, var(--nv) 16%, #13111A); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nv) 55%, transparent);
  font: italic 700 12px/20px var(--f-ui); color: color-mix(in srgb, var(--nv) 45%, #fff);
}
.chat-nivel i { font-style: italic; }
.chat-nivel__bdg, .chat-perfil__bdg { position: relative; display: inline-block; flex: none; width: 16px; height: 16px; }
.chat-nivel__bdg__miolo, .chat-nivel__bdg i, .chat-perfil__bdg i { position: absolute; left: 13%; top: 21%; width: 74%; height: 66%; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: radial-gradient(circle, #221A33, #110D1A); }
.chat-nivel__bdg__moldura, .chat-perfil__bdg__moldura { position: absolute; left: 0; top: 9.5%; width: 100%; height: 89.2%; object-fit: contain; }
.chat-nivel__bdg__garrafa, .chat-perfil__bdg__garrafa { position: absolute; left: 8%; top: 6.9%; width: 84%; height: auto; }
.chat-nivel__bdg--00 img, .chat-perfil__bdg--00 img { width: 100%; height: 100%; object-fit: contain; }
.chat-tag { display: inline-flex; align-items: center; height: 16px; margin-right: 6px; padding: 0 5px; border-radius: 4px; vertical-align: top; position: relative; top: 2px; font: 700 10px/16px var(--f-ui); letter-spacing: .04em; text-transform: uppercase; }
.chat-tag--streamer { color: #B57BFF; background: rgba(155, 77, 255, .14); }
.chat-tag--mod { color: #53FC18; background: rgba(83, 252, 24, .14); }
.chat-tag--sub { color: #FFC414; background: rgba(255, 196, 20, .14); }

/* pílula "Chat pausado" */
.chat__pausado {
  position: absolute; left: 50%; bottom: 12px; z-index: 3; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 10px;
  border-radius: 999px; background: #1E1B27; border: 1px solid #2E2A3A; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); font: 600 13px/1 var(--f-ui); color: #fff; white-space: nowrap;
}
.chat__pausado:hover { background: #2A2540; }
.chat__pausado svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }

/* painéis em cima do rodapé (regras e emotes) */
.chat__painel { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 4; padding: 12px 14px 14px; border-radius: 12px; background: #17151F; border: 1px solid #2A2633; box-shadow: 0 -12px 32px rgba(0, 0, 0, .45); }
.chat__painel-cabeca { display: flex; align-items: center; margin: -4px -6px 8px 0; }
.chat__painel-cabeca h3 { margin: 0; font: 700 14px/20px var(--f-ui); color: #fff; }
.chat__painel-x { width: 28px; height: 28px; }
.chat__regras ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.chat__regras li { position: relative; padding-left: 15px; font: 400 12.5px/18px var(--f-ui); color: #C8C3D4; }
.chat__regras li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--roxo); }
.chat__picker { padding: 10px; }
.chat__abas { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: #0F0D15; }
.chat__aba { height: 30px; border-radius: 8px; font: 600 12.5px/1 var(--f-ui); color: #8A849A; }
.chat__aba.is-on { background: #221F2B; color: #fff; }
.chat__busca { display: flex; align-items: center; gap: 8px; height: 34px; margin: 8px 0 10px; padding: 0 10px; border-radius: 9px; background: #0F0D15; border: 1px solid #221F2B; }
.chat__busca:focus-within { border-color: #4A3F7A; }
.chat__busca svg { width: 14px; height: 14px; fill: none; stroke: #6E6684; stroke-width: 2; stroke-linecap: round; }
.chat__busca input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font: 400 12.5px/1 var(--f-ui); color: #fff; }
.chat__busca input::placeholder { color: #6E6684; }
.chat__busca input:focus-visible { outline: 0; }
.chat__busca input::-webkit-search-cancel-button { display: none; }
.chat__grade { max-height: 216px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2A2633 transparent; }
.chat__grade h4 { margin: 2px 0 6px; font: 700 10px/14px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: #8A849A; }
.chat__grade h4:not(:first-child) { margin-top: 10px; }
.chat__grade ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.chat__emote { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-height: 40px; border-radius: 8px; font-size: 22px; line-height: 1; transition: background-color .12s; }
.chat__emote img { width: 28px; height: 28px; object-fit: contain; }
.chat__emote:hover, .chat__emote:focus-visible { background: #221F2B; box-shadow: inset 0 0 0 1px #4A3F7A; }
.chat__grade-vazio { margin: 14px 0; font: 500 12px/1.4 var(--f-ui); color: #6E6684; text-align: center; }
.chat__previa { display: flex; align-items: center; gap: 8px; height: 36px; margin-top: 8px; padding: 0 10px; border-radius: 9px; background: #0F0D15; font: 600 12px/1 var(--f-ui); color: #fff; }
.chat__previa:empty { visibility: hidden; }
.chat__previa img { width: 20px; height: 20px; object-fit: contain; }
.chat__previa .chat__previa-emoji { font-size: 18px; }
.chat__previa small { margin-left: auto; font: 400 11px/1 var(--f-ui); color: #6E6684; }

/* menu "⋯" */
.chat-menu { position: absolute; right: 10px; z-index: 5; width: 200px; padding: 4px; border-radius: 10px; background: #1A1722; border: 1px solid #2A2633; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
.chat-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border-radius: 7px; font: 500 13px/1.25 var(--f-ui); color: #E4E0EE; text-align: left; }
.chat-menu__item:hover, .chat-menu__item:focus-visible { background: #24202F; }
.chat-menu__item svg { width: 16px; height: 16px; fill: none; stroke: #8A849A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-menu__item--perigo { color: #FF6B7A; }
.chat-menu__item--perigo svg { stroke: #FF6B7A; }
.chat-menu__item--perigo:hover, .chat-menu__item--perigo:focus-visible { background: rgba(255, 59, 78, .14); }
.chat-menu__item--2fa { padding: 8px 10px; color: #C9A5FF; text-decoration: underline; text-underline-offset: 3px; }
.chat-menu__sep { height: 1px; margin: 3px 4px; background: #2A2633; }

/* rodapé */
.chat__pe { display: grid; gap: 10px; flex: none; padding: 2px 14px 12px; }
.chat__aviso { display: flex; gap: 8px; padding: 9px 12px; border-radius: 10px; font: 600 12px/16px var(--f-ui); border: 1px solid; }
.chat__aviso svg { width: 14px; height: 14px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat__aviso small { display: block; margin-top: 2px; font-weight: 400; font-size: 11px; color: #9A94A8; }
.chat__aviso a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.chat__aviso--erro { color: #FF6B7A; background: rgba(255, 59, 78, .08); border-color: rgba(255, 59, 78, .4); }
.chat__aviso--espera { color: #FFC414; background: rgba(255, 196, 20, .07); border-color: rgba(255, 196, 20, .38); }
.chat__aviso--mudo { color: #C9A5FF; background: rgba(155, 77, 255, .1); border-color: rgba(155, 77, 255, .5); }
.chat__aviso--ok { color: #8CFF66; background: rgba(83, 252, 24, .07); border-color: rgba(83, 252, 24, .35); }
.chat__resp { display: flex; align-items: center; gap: 6px; margin: 0 0 -4px; padding: 0 2px 0 6px; font: 400 12px/18px var(--f-ui); color: #9A94A8; }
.chat__resp > svg { width: 12px; height: 12px; fill: none; stroke: #6E6684; stroke-width: 2; stroke-linecap: round; }
.chat__resp span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__resp b { font-weight: 600; color: #B57BFF; }
.chat__resp button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #8A849A; }
.chat__resp button:hover { background: #1E1B27; color: #fff; }
.chat__resp button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat__caixa, .chat__visitante { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 5px 0 0; border-radius: 12px; background: #0F0D15; border: 1px solid #221F2B; transition: border-color .15s; }
.chat__caixa:focus-within { border-color: #4A3F7A; }
.chat__caixa.is-erro { border-color: #FF3B4E; }
.chat__caixa.is-espera { border-color: rgba(255, 196, 20, .6); }
.chat__texto { flex: 1; min-width: 0; height: 20px; max-height: 80px; margin: 11px 0 11px 14px; padding: 0; border: 0; outline: 0; resize: none; background: none; overflow-y: hidden; font: 400 14px/20px var(--f-ui); color: #fff; scrollbar-width: none; }
.chat__texto::placeholder { color: #6E6684; }
.chat__texto:disabled { cursor: not-allowed; }
.chat__texto:focus-visible { outline: 0; }
.chat__conta { flex: none; font: 500 11px/1 var(--f-ui); color: #6E6684; }
.chat__emotes-btn { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; color: #8A849A; transition: background-color .15s, color .15s; }
.chat__emotes-btn:hover, .chat__emotes-btn[aria-expanded="true"] { background: #2A2540; color: #C9A5FF; }
.chat__emotes-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.chat__enviar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--roxo); color: #fff; transition: background-color .15s; }
.chat__enviar:hover { background: var(--roxo-claro); }
.chat__enviar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat__enviar:disabled { background: #221F2B; color: #6E6684; cursor: default; }
.chat__enviar.is-espera svg { display: none; }
.chat__enviar b { font: 700 13px/1 var(--f-ui); color: #C8C3D4; }
.chat__caixa.is-mudo { opacity: .7; }
.chat__visitante { justify-content: space-between; padding-left: 14px; }
.chat__visitante span { font: 400 14px/20px var(--f-ui); color: #9A94A8; }
.chat__entrar { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 8px; background: var(--roxo); font: 700 14px/1 var(--f-ui); color: #fff; }
.chat__entrar:hover { background: var(--roxo-claro); }
.chat__base { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.chat__online { display: inline-flex; align-items: center; gap: 0; font: 400 13px/1 var(--f-ui); color: #9A94A8; }
.chat__online i { width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #53FC18; }
.chat__online b { margin-right: 4px; font-weight: 700; color: #fff; }
.chat__regras-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #221F2B; color: #8A8694; transition: background-color .15s, color .15s; }
.chat__regras-btn:hover { color: #fff; }
.chat__regras-btn[aria-expanded="true"] { background: #3A2D5A; color: #C9A5FF; }
.chat__regras-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* cartão de perfil (ao lado da coluna, preso à linha clicada). Desenho "Perfil/Cartão horizontal" (Figma 603:1127):
   deitado quando o cartão tem 600 px ou mais (PC e tablet), em pé quando é estreito (gaveta do celular): o mesmo HTML,
   trocado pela largura do próprio cartão (container query). O mesmo cartão abre na Corrida 4FLY (corrida.css .cb-perfil). */
.chat-cartao { position: fixed; right: calc(296px + 12px); z-index: 60; width: min(760px, calc(100vw - 296px - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: none;
  border-radius: 16px; background: #16141E; border: 1px solid #221F2B; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.chat-perfil { position: relative; container-type: inline-size; font-family: var(--f-ui); --nv: #9B4DFF; }
.chat-perfil__fechar { position: absolute; top: 16px; right: 16px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(15, 13, 21, .6); font-size: 13px; color: #fff; }
.chat-perfil__fechar:hover { background: rgba(15, 13, 21, .9); }

/* em pé (cartão estreito): foto com o emblema ao lado do nome e do nível, no tom da garrafa; o resto embaixo */
.chat-perfil__corpo { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; padding: 26px 20px 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--nv) 32%, transparent), color-mix(in srgb, var(--nv) 8%, transparent) 75%, transparent) top / 100% 184px no-repeat; }
.chat-perfil__jogador, .chat-perfil__dados { display: contents; }
.chat-perfil__retrato { grid-column: 1; grid-row: 1 / span 2; align-self: start; position: relative; width: 96px; height: 124px; }
/* foto redonda e limpa, como na Kick: sem moldura escura; o zoom leve por dentro some com o canto (ou o anel) preto
   das fotos que já vêm redondas da Kick (pedido do Astro, 24/11/2026) */
.chat-perfil__foto { display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #2A2638; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.chat-perfil__foto img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.chat-perfil__foto--letra { display: grid; place-items: center; background: #3B3350; font: 700 34px/1 var(--f-ui); color: #fff; }
/* emblema: botão com a dica do estágio, preso embaixo da foto */
.chat-perfil__emblema { position: absolute; left: 50%; bottom: 0; display: block; width: 48px; padding: 0; border: 0; background: none; transform: translateX(-50%); cursor: pointer; }
.chat-perfil__emblema .chat-perfil__bdg { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 200 / 232; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55)); }
.chat-perfil__emblema .chat-perfil__bdg--00 { aspect-ratio: auto; }
.chat-perfil__bdg--00 img { height: auto; }
.chat-perfil__quem { grid-column: 2; grid-row: 1; min-width: 0; padding-right: 44px; }
.chat-perfil__nome-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.chat-perfil__nome-linha .chat-tag { margin: 0; top: 0; }
.chat-perfil__nome { font: 700 22px/28px var(--f-ui); color: #fff; overflow-wrap: anywhere; }
.chat-perfil__desde { display: block; margin-top: 2px; font: 400 12px/16px var(--f-ui); color: #8A849A; }
.chat-perfil__nivel { grid-column: 2; grid-row: 2; align-self: end; min-width: 0; margin-top: 10px; }
.chat-perfil__nivel > b { margin-right: 8px; font: 700 18px/22px var(--f-ui); color: #fff; }
.chat-perfil__nivel > small:first-of-type { display: inline-block; font: 400 12px/16px var(--f-ui); color: #9A94A8; white-space: nowrap; } /* "Jack Daniel's · estágio 4 de 5" desce inteiro */
.chat-perfil__xp { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; }
button.chat-perfil__xp { cursor: pointer; }
.chat-perfil__barra { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: #221F2B; overflow: hidden; }
.chat-perfil__barra i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--roxo), #D2A8FF); }
.chat-perfil__faltam { display: block; margin-top: 5px; text-align: right; font: 400 11px/14px var(--f-ui); color: #8A849A; }
.chat-perfil__nums, .chat-perfil__garrafas, .chat-perfil__botoes, .chat-perfil__mod { grid-column: 1 / -1; }
.chat-perfil__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.chat-perfil__num { padding: 10px 12px; border-radius: 10px; background: #13111A; border: 1px solid #221F2B; }
.chat-perfil__num small { display: block; font: 400 11px/14px var(--f-ui); color: #8A849A; }
.chat-perfil__num b { display: block; margin-top: 4px; font: 700 17px/22px var(--f-ui); color: #fff; }
.chat-perfil__nums .chat-perfil__num:first-child b { color: #FFC414; }
.chat-perfil__garrafas { margin-top: 16px; }
.chat-perfil__gcab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.chat-perfil__gcab h4 { margin: 0; font: 700 11px/14px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: #6E6684; }
.chat-perfil__gcab small { font: 400 11px/14px var(--f-ui); color: #8A849A; }
.chat-perfil__garrafas ul { display: flex; justify-content: space-between; gap: 4px; margin: 0; padding: 0; list-style: none; }
.chat-perfil__garrafas li { display: block; }
.chat-perfil__garrafas li.is-falta .chat-perfil__gbdg { opacity: .22; } /* só a badge: a dica fica nítida */
.chat-perfil__gbtn { display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.chat-perfil__gbtn:hover .chat-perfil__gbdg { filter: brightness(1.15); }
.chat-perfil__garrafas li.is-falta .chat-perfil__gbtn:hover .chat-perfil__gbdg { opacity: .45; }
.chat-perfil__gbdg { position: relative; display: block; width: 36px; aspect-ratio: 200 / 232; }
.chat-perfil__gbdg__miolo { position: absolute; left: 13%; top: 21%; width: 74%; height: 66%; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: radial-gradient(circle, #221A33, #110D1A); }
.chat-perfil__gbdg__moldura { position: absolute; left: 0; top: 9.5%; width: 100%; height: 89.2%; object-fit: contain; }
.chat-perfil__gbdg__garrafa { position: absolute; left: 8%; top: 6.9%; width: 84%; height: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.chat-perfil__botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.chat-perfil__btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px; border-radius: 10px; background: #221F2B; font: 600 14px/1 var(--f-ui); color: #fff; transition: background-color .15s; }
.chat-perfil__btn:hover { background: #2E2A3A; }
.chat-perfil__btn--cheio { background: var(--roxo); }
.chat-perfil__botoes > :only-child { grid-column: 1 / -1; } /* sem "Mencionar" (banido, silenciado): "Ver na Kick" ocupa a linha */
.chat-perfil__btn--cheio:hover { background: var(--roxo-claro); }
.chat-perfil__mod { margin-top: 12px; padding: 12px; border-radius: 12px; background: #13111A; border: 1px solid #221F2B; }
.chat-perfil__mod p { margin: 0 0 10px; font: 400 11px/14px var(--f-ui); color: #6E6684; }
.chat-perfil__mod p b { margin-right: 4px; font: 700 11px/14px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: #53FC18; }
.chat-perfil__silenciar { display: flex; align-items: center; gap: 6px; font: 500 13px/1 var(--f-ui); color: #C8C3D4; }
.chat-perfil__silenciar span { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.chat-perfil__silenciar svg { color: #8A849A; }
.chat-perfil__btn svg, .chat-perfil__banir svg { flex: none; }
.chat-perfil__mod-btn { height: 30px; padding: 0 10px; border-radius: 8px; background: #221F2B; font: 600 12.5px/1 var(--f-ui); color: #fff; }
.chat-perfil__mod-btn:hover { background: #2E2A3A; }
/* "Outro tempo": silêncio com os minutos que o mod escolher (1 a 1440), alinhado com o "Silenciar" de cima */
.chat-perfil__outro { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font: 500 13px/1 var(--f-ui); color: #C8C3D4; }
.chat-perfil__outro > span { margin-right: auto; padding-left: 22px; }
.chat-perfil__min { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; background: #221F2B; cursor: text; }
.chat-perfil__min:focus-within { box-shadow: 0 0 0 2px var(--roxo); }
.chat-perfil__min input { width: 44px; padding: 0; border: 0; outline: none; background: none; color: #fff; font: 600 13px/1 var(--f-ui); text-align: right; appearance: textfield; -moz-appearance: textfield; }
.chat-perfil__min input::-webkit-outer-spin-button, .chat-perfil__min input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chat-perfil__min input::placeholder { color: #6E6684; }
.chat-perfil__min small { margin-left: 4px; font: 500 12px/1 var(--f-ui); color: #8A849A; }
.chat-perfil__banir { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 36px; margin-top: 10px; border-radius: 10px; background: rgba(255, 59, 78, .1); border: 1px solid rgba(255, 59, 78, .45); font: 600 13px/1 var(--f-ui); color: #FF6B7A; }
.chat-perfil__banir:hover { background: rgba(255, 59, 78, .18); }
.chat-cartao__carregando { padding: 40px 16px; font: 500 13px/1.4 var(--f-ui); color: #6E6684; text-align: center; }

/* dicas (barra de XP, emblema e garrafas; pedido do Astro, 24/11/2026): balão escuro como o das comunidades do menu, em cima
   do alvo; com mouse ao passar por cima, no teclado com o foco e no toque com um clique (.is-dica, ChatLogica.ligarDicas) */
.chat-perfil__xp, .chat-perfil__gbtn { position: relative; }
.chat-perfil :is(.chat-perfil__xp, .chat-perfil__emblema, .chat-perfil__gbtn)[data-dica]::after { content: attr(data-dica); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 6; width: max-content; max-width: 240px; padding: 8px 11px; border-radius: 10px; background: #1A1626; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); font: 600 12.5px/1.35 var(--f-ui); color: #fff; text-align: center; white-space: pre-line; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity .12s, transform .12s; }
.chat-perfil :is(.chat-perfil__xp, .chat-perfil__emblema, .chat-perfil__gbtn)[data-dica]:is(:hover, :focus-visible, .is-dica)::after { opacity: 1; transform: translate(-50%, 0); }
/* nas pontas o balão encosta no lado de dentro, para não passar da borda do cartão */
.chat-perfil__garrafas li:nth-child(-n+2) .chat-perfil__gbtn::after { left: -4px; transform: translate(0, 4px); }
.chat-perfil__garrafas li:nth-child(-n+2) .chat-perfil__gbtn:is(:hover, :focus-visible, .is-dica)::after { transform: translate(0, 0); }
.chat-perfil__garrafas li:nth-last-child(-n+2) .chat-perfil__gbtn::after { left: auto; right: -4px; transform: translate(0, 4px); }
.chat-perfil__garrafas li:nth-last-child(-n+2) .chat-perfil__gbtn:is(:hover, :focus-visible, .is-dica)::after { transform: translate(0, 0); }
.chat-perfil .chat-perfil__emblema[data-dica]::after { left: 0; transform: translate(0, 4px); } /* em pé, a foto fica no canto */
.chat-perfil .chat-perfil__emblema[data-dica]:is(:hover, :focus-visible, .is-dica)::after { transform: translate(0, 0); }

/* deitado (cartão com 600 px ou mais): à esquerda a foto com o emblema e o nível; à direita o resto */
@container (min-width: 600px) {
  .chat-perfil__corpo { grid-template-columns: 248px minmax(0, 1fr); column-gap: 0; padding: 0; background: none; }
  .chat-perfil__jogador { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px 24px; text-align: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--nv) 34%, transparent), color-mix(in srgb, var(--nv) 10%, transparent) 60%, transparent); border-right: 1px solid #221F2B; }
  .chat-perfil__dados { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 28px 28px 24px; }
  .chat-perfil__retrato { width: 124px; height: 158px; }
  .chat-perfil__foto { width: 124px; height: 124px; }
  .chat-perfil__foto--letra { font-size: 44px; }
  .chat-perfil__emblema { width: 60px; }
  .chat-perfil .chat-perfil__emblema[data-dica]::after { left: 50%; transform: translate(-50%, 4px); }
  .chat-perfil .chat-perfil__emblema[data-dica]:is(:hover, :focus-visible, .is-dica)::after { transform: translate(-50%, 0); }
  .chat-perfil__nivel { align-self: stretch; margin-top: 0; }
  .chat-perfil__nivel > b { display: block; margin: 0; font-size: 22px; line-height: 28px; }
  .chat-perfil__nivel > small:first-of-type { display: block; margin-top: 2px; white-space: normal; }
  .chat-perfil__barra { margin-top: 12px; }
  .chat-perfil__faltam { margin-top: 6px; text-align: center; }
  .chat-perfil__nome { font-size: 26px; line-height: 32px; }
  .chat-perfil__nums { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
  .chat-perfil__num { padding: 12px; }
  .chat-perfil__num b { font-size: 18px; }
  .chat-perfil__garrafas, .chat-perfil__botoes, .chat-perfil__mod { margin-top: 0; }
  .chat-perfil__gbdg { width: 44px; }
  .chat-perfil__botoes { display: flex; justify-content: flex-end; }
}
/* deitado mas apertado (tela de 1024 px com o chat aberto): os números em 2×2, sem quebrar os rótulos */
@container (min-width: 600px) and (max-width: 719.98px) {
  .chat-perfil__nums { grid-template-columns: 1fr 1fr; }
}

/* Janela do perfil nas listas de ranking (4FLY e loja; perfil-janela.js): o mesmo cartão, no meio da tela;
   no celular, gaveta de baixo com o puxador, como a do chat */
.perfil-janela { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  border-radius: 16px; background: #16141E; border: 1px solid #221F2B; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); color: #fff; }
.perfil-janela::backdrop { background: rgba(5, 3, 10, .62); }
html:has(.perfil-janela[open]) { overflow: hidden; }
html:has(.perfil-janela[open]) body { overflow: visible; } /* como html.chat-gaveta: o topo e o menu continuam presos no lugar */
@media (prefers-reduced-motion: no-preference) {
  .perfil-janela[open] { animation: perfil-janela-abre .2s cubic-bezier(.16, 1, .3, 1); }
  @keyframes perfil-janela-abre { from { opacity: 0; transform: translateY(10px) scale(.98); } }
}
@media (max-width: 1023.98px) {
  .perfil-janela { width: 100%; max-width: none; max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px)); margin: auto 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); border-width: 1px 0 0; border-radius: 16px 16px 0 0; }
  .perfil-janela .chat-puxador { position: absolute; top: 0; left: 0; z-index: 4; margin: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .perfil-janela[open] { animation: perfil-janela-sobe .28s cubic-bezier(.16, 1, .3, 1); }
    @keyframes perfil-janela-sobe { from { opacity: 0; transform: translateY(32px); } }
  }
}

/* confirmação de banir (P6) */
.chat-banir { width: min(400px, calc(100vw - 32px)); padding: 0; border: 1px solid #2A2633; border-radius: 14px; background: #17151F; color: #C8C3D4; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); font-family: var(--f-ui); }
.chat-banir::backdrop { background: rgba(8, 6, 14, .7); }
.chat-banir__caixa { padding: 20px; }
.chat-banir__topo { display: flex; align-items: center; gap: 12px; }
.chat-banir__icone { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: rgba(255, 59, 78, .16); }
.chat-banir__icone svg { width: 18px; height: 18px; fill: none; stroke: #FF3B4E; stroke-width: 2; stroke-linecap: round; }
.chat-banir h3 { flex: 1; min-width: 0; margin: 0; font: 700 18px/24px var(--f-ui); color: #fff; overflow-wrap: anywhere; }
.chat-banir__x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #8A849A; }
.chat-banir__x:hover { background: #221F2B; color: #fff; }
.chat-banir__x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat-banir p { margin: 12px 0 0; font: 400 14px/20px var(--f-ui); }
.chat-banir__apagar { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #1F1C29; border: 1px solid #2A2633; font: 500 13px/18px var(--f-ui); color: #E4E0EE; cursor: pointer; }
.chat-banir__apagar input { width: 16px; height: 16px; margin: 1px 0 0; flex: none; accent-color: #FF3B4E; }
.chat-banir__botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.chat-banir__cancelar, .chat-banir__ok { height: 40px; border-radius: 10px; font: 600 14px/1 var(--f-ui); color: #fff; }
.chat-banir__cancelar { background: #26232F; }
.chat-banir__cancelar:hover { background: #2E2A3A; }
.chat-banir__ok { background: #FF3B4E; }
.chat-banir__ok:hover { background: #FF5A6B; }

@media (prefers-reduced-motion: reduce) { .chat *, .topo-chat { transition: none !important; } }

/* Início com a coluna do chat aberta: o miolo perde 296 px. O título passa a seguir a largura que sobra
   (a conta do 5.4vw era sobre a tela inteira); abaixo de 1400 px o cartão da live desce para baixo do título. */
@media (min-width: 1280px) {
  :is(html.chat-aberto, html:not(.chat-fechado):not(.chat-off):has(.app > .chat)) .titulo-hero__00 { width: min(300px, 100%); }
}
@media (min-width: 1280px) and (max-width: 1439.98px) {
  :is(html.chat-aberto, html:not(.chat-fechado):not(.chat-off):has(.app > .chat)) .perfil { grid-template-columns: minmax(0, 1fr); } /* Minha conta: os números do mês não cabem ao lado do cartão */
}
@media (min-width: 1280px) and (max-width: 1399.98px) {
  :is(html.chat-aberto, html:not(.chat-fechado):not(.chat-off):has(.app > .chat)) .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  :is(html.chat-aberto, html:not(.chat-fechado):not(.chat-off):has(.app > .chat)) .titulo-hero { font-size: clamp(56px, calc((100vw - 672px) / 7.8), 80px); }
  :is(html.chat-aberto, html:not(.chat-fechado):not(.chat-off):has(.app > .chat)) .cartao-live { max-width: 460px; }
}
@media (min-width: 1400px) {
  :is(html.chat-aberto, html:not(.chat-fechado):not(.chat-off):has(.app > .chat)) .hero { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
  :is(html.chat-aberto, html:not(.chat-fechado):not(.chat-off):has(.app > .chat)) .titulo-hero { font-size: clamp(44px, calc((100vw - 1080px) / 7.8), 88px); }
}

/* ---------- celular (até 1023 px): gaveta do chat (Figma C1–C5, cartão "perfil-celular") ----------
   A gaveta vai do fim da 1ª linha da barra de cima (--chat-topo) até o topo da barra de baixo (--chat-barra), que
   continua à vista. Com o teclado aberto, o fundo da gaveta sobe junto (--chat-teclado, do visualViewport).
   O menu do mod, o cartão de perfil e a confirmação de banir abrem como gavetas de baixo, por cima de tudo. */
.chat__fechar-cel { display: none; }
.chat-fundo, .chat-puxador, .chat-menu__previa, .chat-menu__cancelar { display: none; }
@media (max-width: 1023.98px) {
  .chat {
    position: fixed; left: 0; right: 0; top: calc(var(--chat-topo, 64px) + var(--chat-vv-topo, 0px)); bottom: max(var(--chat-barra, 64px), var(--chat-teclado, 0px)); z-index: 50;
    display: none; flex-direction: column; border-radius: 16px 16px 0 0; background: #13111A; box-shadow: inset 0 1px 0 #2A2633, 0 -16px 40px rgba(0, 0, 0, .5);
    padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); font-family: var(--f-ui); color: #C8C3D4;
  }
  html.chat-gaveta .chat { display: flex; }
  /* página travada: só o <html> (ele passa a ser quem rola a tela, travado). O body volta a "visible": com o
     overflow-x dele, viraria a caixa que rola e a barra de cima (sticky) sairia do lugar. */
  html.chat-gaveta { overflow: hidden; }
  html.chat-gaveta body { overflow: visible; }
  /* a gaveta termina colada na barra de baixo: a barra fica opaca (nada da página aparece entre as duas) e o aviso e
     os cookies, que ficam em cima da barra, passam para trás da gaveta (não cobrem a caixa de mensagem) */
  html.chat-gaveta .barra { background: #110D1A; }
  html.chat-gaveta :is(.cookies, .aviso) { z-index: 45; }
  @media (prefers-reduced-motion: no-preference) { html.chat-gaveta .chat { animation: chat-sobe .28s cubic-bezier(.16, 1, .3, 1); } }
  @keyframes chat-sobe { from { opacity: 0; transform: translateY(32px); } }

  /* cabeçalho: setinha ⌄ no lugar do ✕ */
  .chat__cabeca { height: 56px; padding: 0 6px 0 18px; }
  .chat__titulo { font-size: 17px; }
  .chat__fechar { width: 44px; height: 44px; min-height: 44px; }
  .chat__fechar-pc { display: none; }
  .chat__fechar-cel { display: block; width: 22px; height: 22px; }

  /* mensagens em cartõezinhos (como na referência) */
  .chat__lista { padding: 8px 12px 10px; }
  .chat-msg { margin-top: 6px; padding: 10px 10px 9px; background: #16141E; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .chat-msg:first-child { margin-top: 0; }
  .chat-msg:hover { background: #16141E; }
  .chat-msg.is-menu, .chat-msg.is-perfil { background: #1E1B29; }
  .chat-msg.is-mencao { background: rgba(155, 77, 255, .12); }
  .chat-hora { display: none; }
  .chat-msg:hover .chat-mais { opacity: 0; pointer-events: none; } /* no toque o menu abre segurando o dedo */
  .chat-mais:focus, .chat-mais:focus-visible { opacity: 1; pointer-events: auto; } /* leitor de tela: o "⋯" continua alcançável */

  /* rodapé, campos com 16 px (o iPhone não dá zoom) e alvos de toque de 44 px */
  .chat__pe { padding: 4px 14px 12px; }
  .chat__caixa, .chat__visitante { min-height: 48px; }
  .chat__texto, .chat__busca input { font-size: 16px; }
  .chat__texto { line-height: 22px; height: 22px; margin: 13px 0 13px 14px; }
  .chat__emotes-btn, .chat__enviar, .chat__regras-btn, .chat__painel-x, .chat__resp button, .chat__entrar { position: relative; }
  .chat__emotes-btn::after, .chat__enviar::after, .chat__regras-btn::after, .chat__painel-x::after, .chat__resp button::after, .chat__entrar::after {
    content: ""; position: absolute; inset: calc(50% - 22px); }
  .chat__entrar::after { inset: calc(50% - 22px) 0; }
  .chat__aba { height: 40px; min-height: 44px; }
  .chat__busca { height: 44px; }
  .chat__picker { display: flex; flex-direction: column; max-height: calc(100% - 16px); }
  .chat__grade { flex: 0 1 auto; min-height: 0; max-height: 300px; overflow-x: hidden; }
  .chat__grade ul { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .chat__emote { max-height: 44px; }
  .chat__previa:empty { display: none; } /* sem mouse, a prévia só aparece depois de tocar num emote */

  /* fundo escuro das gavetas de baixo */
  .chat-fundo { position: fixed; inset: 0; z-index: 60; background: rgba(5, 3, 10, .62); touch-action: none; }
  .chat-fundo:not([hidden]) { display: block; }
  .chat-puxador { display: block; width: 100%; height: 22px; margin: -8px 0 4px; touch-action: none; cursor: grab; }
  .chat-puxador::before { content: ""; display: block; width: 40px; height: 4px; margin: 9px auto 0; border-radius: 2px; background: #3A3646; }

  /* menu da mensagem (segurar o dedo): gaveta de baixo com a mensagem em cima e "Cancelar" (C4) */
  .chat-menu {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; z-index: 70; width: auto; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border: 0; border-top: 1px solid #2A2633; border-radius: 16px 16px 0 0; background: #17151F;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, .55);
  }
  .chat-menu__previa { display: block; margin: 0 0 6px; padding: 0; list-style: none; }
  .chat-menu__previa .chat-msg { margin: 0; background: #1E1B27; }
  .chat-menu__previa .chat-mais { display: none; }
  .chat-menu__previa .chat-hora { display: block; position: static; opacity: 1; margin-top: 4px; padding: 0; background: none; text-align: right; } /* a hora só aparece aqui no celular */
  .chat-menu__item { min-height: 48px; gap: 14px; padding: 0 12px; font-size: 15px; }
  .chat-menu__item svg { width: 18px; height: 18px; }
  .chat-menu__item--2fa { min-height: 48px; }
  .chat-menu__item.chat-menu__cancelar { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 8px; border-radius: 12px; background: #26232F; font: 600 15px/1 var(--f-ui); color: #fff; }
  .chat-menu__item.chat-menu__cancelar:hover, .chat-menu__item.chat-menu__cancelar:focus-visible { background: #2E2A3A; }

  /* cartão de perfil: gaveta de baixo por cima do chat, com o puxador e o ✕ */
  .chat-cartao {
    left: 0; right: 0; bottom: 0; top: auto !important; z-index: 70; width: auto; max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px); border-width: 1px 0 0; border-radius: 16px 16px 0 0; overscroll-behavior: contain;
  }
  .chat-cartao .chat-puxador { position: absolute; top: 0; left: 0; z-index: 2; margin: 0; }
  .chat-perfil__fechar { width: 36px; height: 36px; top: 14px; }
  .chat-perfil__fechar::after { content: ""; position: absolute; inset: -4px; }
  .chat-perfil__btn, .chat-perfil__banir { min-height: 44px; }
  .chat-perfil__mod-btn { min-height: 44px; padding: 0 12px; }
  .chat-perfil__min { min-height: 44px; }
  .chat-perfil__min input { font-size: 16px; } /* o iPhone não dá zoom no campo */

  /* confirmar banir: gaveta de baixo também, com a caixinha já marcada */
  .chat-banir { width: 100%; max-width: 100%; margin: auto 0 0; border-width: 1px 0 0; border-radius: 16px 16px 0 0; }
  .chat-banir__caixa { padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .chat-banir__apagar { min-height: 44px; align-items: center; }
  .chat-banir__apagar input { width: 20px; height: 20px; }
  .chat-banir__cancelar, .chat-banir__ok { height: 48px; }
  .chat-banir__x { width: 44px; height: 44px; }
}
html.chat-off .barra__chat { display: none; }
