/* SOCIAL: quadro do grupo, convites, cartaozinho do jogador, janelas Grupo / Guilda / Hoje, linha "Hoje" das missoes.
   Mesmas cores de telas.css (#ui). Tudo em "em", sem barra de rolagem: lista longa vira pagina, o chat mostra so as ultimas linhas. */

/* ---------- Hoje (objetivos do dia) no painel de missoes ---------- */
.vv-hoje { display: flex; flex-direction: column; gap: .15em; width: 100%; padding: .2em 0 .25em; margin: .1em 0 .05em; text-align: left;
  background: none; border: 0; border-top: 1px solid #3a3222; border-bottom: 1px solid #3a3222; border-radius: 0; }
.vv-hoje:hover .vv-ho { border-color: var(--viva); }
.vv-ho-l { display: flex; gap: .2em; }
.vv-ho { flex: 1 1 0; min-width: 0; text-align: center; font-size: .86em; font-weight: 700; padding: .05em .25em; border-radius: 1em; white-space: nowrap;
  background: #24262b; border: 1px solid #45474e; color: var(--txt); }
.vv-ho.feito { background: #1f4a24; border-color: var(--verde-b); color: #d6f5d0; }
.vv-ho-s { display: flex; align-items: center; gap: .3em; font-size: .85em; white-space: nowrap; color: var(--cinza); font-weight: 400; }
.vv-ho-s b { color: var(--titulo); letter-spacing: .08em; text-transform: uppercase; font-size: .9em; }
.vv-ho-s em { color: var(--viva); letter-spacing: -.05em; font-size: .95em; }
.vv-hoje.selo .vv-ho-s em { text-shadow: 0 0 .5em rgba(232, 196, 90, .8); }
.vv-hoje.brilha { animation: vv-brilha 1s ease-in-out 3; }
@keyframes vv-brilha { 50% { background: rgba(232, 196, 90, .28); } }
.vv-selos-g { color: var(--viva); letter-spacing: .12em; font-size: 1.2em; }

/* ---------- quadro do grupo (canto esquerdo, abaixo das missoes) ---------- */
.vv-grupo-q { width: 13.5em; padding: .3em .4em; display: flex; flex-direction: column; gap: .2em; font-size: .88em; }
.vv-grupo-q.sem { width: auto; padding: 0; background: none; border: 0; box-shadow: none; }
.vv-gpill { padding: .1em .7em; border-radius: 1em; font-size: .8em; background: rgba(23, 24, 27, .88); border: 1px solid var(--borda); color: var(--titulo); }
.vv-gpill:hover { border-color: var(--viva); background: var(--ativo); }
.vv-gtop { display: flex; align-items: center; justify-content: space-between; gap: .4em; padding: 0; background: none; border: 0; text-align: left; }
.vv-gtop b { color: var(--titulo); letter-spacing: .08em; text-transform: uppercase; font-size: .85em; }
.vv-gm { position: relative; overflow: hidden; display: flex; align-items: center; gap: .3em; width: 100%; height: 1.75em; padding: 0 .4em; text-align: left;
  background: #14151a; border: 1px solid #3d3a31; border-radius: .3em; }
.vv-gm:hover { border-color: var(--viva); }
.vv-gm > * { position: relative; z-index: 1; }
.vv-gm > .vv-gv { position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; opacity: .5; transition: width .25s; }
.vv-gm.longe { border-style: dashed; }
.vv-gm.longe .vv-gn { opacity: .65; }
.vv-gdot { flex: none; width: .65em; height: .65em; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .7); }
.vv-gn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.vv-gnv { flex: none; text-shadow: 0 1px 2px #000; }
.vv-glonge { flex: none; font-size: .72em; padding: 0 .35em; border-radius: .8em; background: rgba(0, 0, 0, .55); color: #ffd9a0; border: 1px solid #7a6030; }

/* ---------- convites ---------- */
#vv-hud .vv-conv { top: 3.3em; left: 50%; transform: translateX(-50%); width: 24em; max-width: calc(100% - 1em); padding: .35em .5em; display: flex; flex-direction: column; gap: .3em;
  border-color: var(--viva); background: rgba(54, 40, 10, .96); z-index: 8; }
.vv-conv-i { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.vv-conv-t { min-width: 0; font-weight: 400; line-height: 1.2; }
.vv-conv-t b { color: var(--titulo); }
.vv-conv-i .vv-linha { flex: none; gap: .3em; }
.vv-conv-i .vv-bt { padding: .2em .6em; }

/* ---------- cartaozinho do jogador ---------- */
#vv-hud .vv-jcard { width: 14em; padding: .4em .5em; display: flex; flex-direction: column; gap: .3em; border-color: var(--viva); z-index: 9; pointer-events: auto; }
.vv-xp { width: 1.6em; height: 1.6em; font-size: .85em; }
.vv-jc-g { color: #e6c874 !important; }
.vv-jc-b { display: flex; flex-direction: column; gap: .25em; }
.vv-jc-b .vv-bt { padding: .3em .5em; }

/* ---------- botao da guilda ---------- */
.vv-guildab .vv-bolinha { position: absolute; right: -.35em; top: -.45em; z-index: 1; min-width: .95em; height: .95em; padding: 0; }
.vv-guildab .vv-ico-txt { font-size: .9em; }

/* aviso dourado: selo e premio dos 7 */
#vv-hud .vv-aviso.ouro { border-color: #f0c040; background: rgba(54, 40, 10, .95); color: #ffe9a8; }

/* ---------- campos de texto ---------- */
.vv-campo { flex: 1; min-width: 0; font: inherit; font-weight: 400; color: var(--txt); background: #0e0f12; border: 1px solid var(--borda); border-radius: .3em; padding: .3em .5em; user-select: text; -webkit-user-select: text; }
.vv-campo::placeholder { color: #77746b; }
.vv-campo:focus { border-color: var(--viva); outline: none; }
#ui .vv-campo:focus-visible { outline: none; }

/* ---------- janelas ---------- */
.vv-j-guilda { width: 66em; }
.vv-j-grupo, .vv-j-hoje { width: 32em; }
.vv-j-chat { width: 34em; }
.vv-col-chat { justify-content: flex-end; }
.vv-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: .15em; height: 12.5em; overflow: hidden; padding: .4em .5em; background: var(--f3); border: 1px solid #3d3a31; border-radius: .35em; }
.vv-cl { font-weight: 400; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; word-break: break-word; flex: none; }
.vv-cl b { color: #9fd4ff; }
.vv-cl b.eu { color: var(--titulo); }
.vv-chat-in { flex: none; }
.vv-chat-abas { display: flex; gap: .3em; flex: none; margin-bottom: .25em; }
.vv-chat-abas .vv-aba { position: relative; flex: 1; padding: .2em .6em; font: inherit; font-weight: 700; cursor: pointer; color: var(--txt); background: #1b1c20; border: 1px solid #3d3a31; border-radius: .3em; }
.vv-chat-abas .vv-aba.ativa { color: var(--titulo); border-color: var(--viva); background: #26241b; }
.vv-chat-abas .vv-pt { position: absolute; top: .2em; right: .3em; width: .5em; height: .5em; border-radius: 50%; background: #e05a3a; }
.vv-gmem { padding: .25em .6em; }
.vv-gmem.off { opacity: .6; }
.vv-cn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-gmem .vv-bt { padding: .1em .5em; }
.vv-placar { display: flex; gap: 1em; justify-content: center; font-size: 1.3em; }
.vv-placar small { display: block; text-align: center; }
.vv-placar > span { text-align: center; }
.vv-avisos-caixas { flex-wrap: wrap; gap: .3em .9em; }

/* =====================================================================================
   MINI (janela de canto): tudo compacto
   ===================================================================================== */
@media (max-width: 800px), (max-height: 450px) {
  .vv-grupo-q { width: 12em; padding: .25em .3em; gap: .15em; }
  .vv-gm { height: 1.55em; }
  .vv-ho { font-size: .8em; }
  .vv-ho-s { font-size: .8em; }
  #vv-hud .vv-conv { top: auto; bottom: .4em; left: .4em; transform: none; width: 15em; max-width: calc(100% - .8em); z-index: 12; }
  .vv-conv-i { flex-direction: column; align-items: stretch; gap: .2em; }
  .vv-conv-i .vv-linha { justify-content: flex-end; }
  .vv-j-guilda, .vv-j-grupo, .vv-j-hoje { width: 100%; }
  .vv-chat { height: auto; flex: 1; min-height: 0; padding: .25em .4em; }
  .vv-chat-abas { margin-bottom: .15em; }
  .vv-chat-abas .vv-aba { padding: .1em .4em; }
  .vv-j-chat { width: 100%; }
  .vv-col-chat.ativa { justify-content: flex-start; }
  .vv-campo { padding: .22em .4em; }
  .vv-placar { font-size: 1.1em; }
  .vv-gmem { padding: .15em .45em; }
  #vv-hud .vv-jcard { width: 12.5em; }
}

/* =====================================================================================
   PARTE 13: evento do dono (pilula no HUD + cartao em Hoje) e aba Conquistas
   ===================================================================================== */
#vv-hud .vv-evento { display: inline-flex; align-items: center; gap: .35em; max-width: 100%; cursor: pointer; overflow: hidden; }
#vv-hud .vv-evento[hidden] { display: none !important; }
#vv-hud .vv-evento b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#vv-hud .vv-evento small { flex: none; white-space: nowrap; color: #f0dca4; }
.vv-evcard { border-color: var(--viva); background: linear-gradient(#3a2c10, #1e2024); }
.vv-conq { gap: .25em; padding: .4em .6em; }
.vv-conq .vv-barra-p { height: .5em; }
.vv-conq small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vv-umalinha { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 800px), (max-height: 450px) {
  #vv-hud .vv-evento { font-size: .8em; max-width: 12.5em; }
  .vv-conq { padding: .2em .4em; gap: .12em; }
  .vv-conq .vv-barra-p { height: .5em; }
  .vv-evcard { padding: .3em .45em; gap: .1em; }
}

/* PvP ligado: o nome fica vermelho (sobre o boneco, no perfil e nas listas) */
.vv-gn.pvp, .vv-nome-pvp { color: #ff8274; text-shadow: 0 0 3px #000; }

/* RANKING (janela): linhas de uma so linha, sem rolagem; a pagina se ajusta pelo tamanho da tela */
.vv-rk-cab, .vv-rk-l { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) minmax(0, 6.5em) 2.6em; align-items: center; gap: .4em; padding: .15em .5em; min-width: 0; }
.vv-rk-cab { color: var(--cinza); font-size: .8em; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #3d3a31; }
.vv-rk { display: flex; flex-direction: column; gap: .2em; }
.vv-rk-l { background: var(--f2); border: 1px solid #3d3a31; border-radius: .35em; padding-top: .3em; padding-bottom: .3em; }
.vv-rk-l.top { border-color: var(--borda); background: linear-gradient(#262219, #1e2024); }
.vv-rk-l.meu { border-color: var(--viva); background: var(--ativo); }
.vv-rk-p, .vv-rk-nv { text-align: center; }
.vv-rk-nv { color: var(--viva); }
.vv-rk-n, .vv-rk-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-rk-v { color: var(--cinza); font-weight: 400; }
.vv-rk-med { display: block; width: 1.5em; height: 1.5em; margin: 0 auto; object-fit: contain; }
.vv-rk-msg { text-align: center; padding: 2em 0; }
@media (max-width: 800px), (max-height: 450px) {
  .vv-rk-cab, .vv-rk-l { grid-template-columns: 1.8em minmax(0, 1fr) minmax(0, 5em) 2.2em; gap: .3em; }
  .vv-rk-l { padding-top: .2em; padding-bottom: .2em; }
  .vv-rk-med { width: 1.3em; height: 1.3em; }
}

/* ---------- balao do chat (perto da barra de botoes; tecla C ou Enter) ---------- */
.vv-chatb { position: absolute; right: calc(100% + .3em); top: 22%; width: 1.9em; height: 1.9em; padding: .3em; border-radius: 50%; color: #cbbd97;
  background: rgba(14, 15, 18, .8); border: 1px solid var(--borda); opacity: .85; }
.vv-chatb svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.vv-chatb:hover { opacity: 1; color: var(--titulo); border-color: var(--viva); }
.vv-chatb .vv-bolinha { position: absolute; right: -.15em; top: -.15em; min-width: .8em; height: .8em; padding: 0; }
@media (max-width: 800px), (max-height: 450px) {
  .vv-chatb { position: relative; right: auto; top: auto; flex: none; width: 2.3em; height: 2.3em; padding: .45em; border-radius: .45em; }
}
