/* JANELAS 2: o que entrou com o jogo online (missões abertas, onde caçar, fundir, conta).
   Usa as mesmas cores de telas.css (--borda, --viva, --titulo, --ativo, --txt, --cinza, --verde-b). Sem barra de rolagem. */

/* ---------- ficha: item que a vocação não usa ---------- */
.vv-so-para { color: #ff8a7a; font-weight: 700; }

/* ---------- missões: liga/desliga grande ---------- */
.vv-liga-linha { display: flex; align-items: center; gap: .9em; min-width: 0; }
.vv-liga-linha p { margin: 0; color: var(--cinza); font-size: .9em; min-width: 0; }
.vv-liga {
  display: inline-flex; align-items: center; gap: .65em; flex: 0 0 auto;
  padding: .5em 1.1em .5em .6em; border: 2px solid var(--borda); border-radius: 2em;
  background: #1e2024; color: var(--txt); font: inherit; font-weight: 700; font-size: 1.05em; cursor: pointer;
}
.vv-liga:hover { border-color: var(--viva); }
.vv-liga:focus-visible, .vv-caixinha:focus-visible { outline: 2px solid var(--viva); outline-offset: 2px; }
.vv-liga i { position: relative; flex: 0 0 auto; width: 2.5em; height: 1.3em; border-radius: 1em; background: #3b3d42; border: 1px solid #55514a; }
.vv-liga i::after { content: ''; position: absolute; top: .12em; left: .14em; width: .96em; height: .96em; border-radius: 50%; background: #b9b5aa; }
.vv-liga.ligado { background: var(--ativo); border-color: var(--viva); color: var(--titulo); }
.vv-liga.ligado i { background: var(--viva); border-color: var(--viva); }
.vv-liga.ligado i::after { left: auto; right: .14em; background: #2a2212; }
.vv-liga small { font-weight: 400; opacity: .85; }

/* ---------- missões: ordem da fila e modo compacto ---------- */
.vv-m-ordem { display: inline-block; min-width: 1.4em; text-align: center; margin-left: .4em; padding: 0 .25em; border-radius: .6em; background: #2a2a2f; color: var(--cinza); font-size: .95em; font-weight: 700; letter-spacing: 0; }
.vv-m-ordem.agora { background: var(--ativo); color: var(--titulo); }
.vv-m-lista { display: flex; flex-direction: column; gap: .2em; min-height: 0; }
.vv-m-linha1 { display: flex; align-items: center; gap: .3em; padding: .12em .35em; border: 1px solid #3d3a31; border-radius: .35em; background: #1e2024; min-width: 0; }
.vv-m-linha1.dourado { border-color: var(--viva); }
.vv-m-linha1.pronta { border-color: var(--verde-b); }
.vv-m-linha1 .vv-m-ordem { margin: 0; flex: none; }
.vv-m-t1 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: var(--titulo); }
.vv-m-linha1 small { flex: none; color: var(--cinza); }
.vv-m-linha1 .vv-bt { flex: none; padding: .12em .6em; font-size: .88em; }
.vv-m-linha1 .vv-so-na-mao { flex: none; width: 1.6em; text-align: center; }
.vv-liga-linha .vv-bt { flex: none; padding: .3em .7em; font-size: .9em; }

/* ---------- venda automática (aba da mochila) ---------- */
.vv-vauto-q { display: flex; flex-direction: column; gap: .5em; padding: .3em .1em; min-height: 0; }
.vv-vauto { flex: none; width: 2.6em; height: 2.6em; padding: .35em; border-radius: 50%; background: #24262b; border: 2px solid var(--borda); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vv-vauto:hover { border-color: var(--viva); }
.vv-vauto.ligado { background: var(--ativo); border-color: var(--viva); }
.vv-vauto .vv-fig { width: 1.5em; height: 1.5em; }
.vv-vauto-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.vv-vauto-t b { color: var(--titulo); }
.vv-vauto-t small, .vv-vauto-ult { color: var(--cinza); }
.vv-vauto-pct { min-width: 2.6em; text-align: center; color: var(--titulo); }
.vv-vauto-r { display: flex; flex-wrap: wrap; align-items: center; gap: .1em .5em; }
.vv-vauto-r small { color: var(--cinza); }

/* ---------- missões: grade de cartões ---------- */
.vv-missoes-g { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: .5em; flex: 1; min-height: 0; }
.vv-m-cartao { display: flex; flex-direction: column; gap: .22em; min-width: 0; min-height: 0; overflow: hidden; }
.vv-m-cartao.pronta { border-color: var(--verde-b); }
.vv-m-linha { text-transform: uppercase; letter-spacing: .06em; font-size: .72em; color: var(--cinza); }
.vv-m-linha.historia { color: var(--titulo); }
.vv-m-titulo { font-size: 1.08em; color: var(--titulo); line-height: 1.15; }
.vv-m-cartao > small { color: var(--cinza); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-m-texto { margin: 0; font-size: .86em; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.vv-m-objetivo { font-size: .88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-m-cartao .vv-pils { display: flex; flex-wrap: wrap; gap: .25em; max-height: 3.6em; overflow: hidden; }
.vv-m-pe { margin-top: auto; padding-top: .2em; display: flex; align-items: center; justify-content: space-between; gap: .4em; min-height: 2em; }
.vv-m-pe .vv-bt { padding: .25em .9em; }
.vv-so-na-mao { color: var(--cinza); font-size: .86em; font-style: italic; }
.vv-caixinha { display: inline-flex; align-items: center; gap: .45em; padding: .2em .3em; border: 0; background: none; color: var(--txt); font: inherit; font-size: .9em; cursor: pointer; }
.vv-caixinha i { flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border: 2px solid var(--borda); border-radius: .25em; background: #15171a; color: transparent; font-style: normal; font-weight: 900; font-size: .85em; line-height: 1; }
.vv-caixinha:hover i { border-color: var(--viva); }
.vv-caixinha[aria-checked="true"] { color: var(--titulo); }
.vv-caixinha[aria-checked="true"] i { background: var(--viva); border-color: var(--viva); color: #2a2212; }
.vv-entregues { color: var(--cinza); }
.vv-entregues b { color: var(--txt); }

/* ---------- mapa: coluna "onde caçar" ---------- */
.vv-col.vv-col-caca { flex: 0 0 17em; }
.vv-caca-lista { display: flex; flex-direction: column; gap: .3em; min-height: 0; }
.vv-caca { display: flex; align-items: center; gap: .5em; padding: .3em .4em .3em .6em; border: 1px solid #3d3a31; border-radius: .35em; background: #1e2024; min-width: 0; }
.vv-caca.ativa { background: var(--ativo); border-color: var(--viva); }
button.vv-caca { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.vv-caca:hover { border-color: var(--viva); }
.vv-caca-ir { color: var(--titulo); font-size: .88em; white-space: nowrap; flex: 0 0 auto; }
.vv-caca-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.vv-caca-nome b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-caca-nome small { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.vv-caca-n { flex: 0 0 auto; width: 1.45em; height: 1.45em; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .82em; font-weight: 700; color: #fff; background: #0e1014; border: 1.5px solid #d6b45a; }
.vv-caca-nome small { color: var(--cinza); }
.vv-caca.ativa .vv-caca-nome b { color: var(--titulo); }
.vv-caca .vv-bt { padding: .22em .6em; font-size: .88em; white-space: nowrap; flex: 0 0 auto; }
.vv-cacando { color: var(--titulo); font-weight: 700; font-size: .88em; white-space: nowrap; flex: 0 0 auto; padding-right: .3em; }
.vv-caca-frase { margin: 0; color: var(--cinza); font-size: .86em; line-height: 1.3; }
.vv-caca-livre { width: 100%; }

/* ---------- ferreiro: fundir ---------- */
.vv-fundir { display: flex; flex-direction: column; gap: .35em; }
.vv-fundir small { color: var(--cinza); }

/* ---------- configurações: conta ---------- */
.vv-conta b { color: var(--titulo); }

/* ---------- janela pequena ---------- */
@media (max-width: 800px), (max-height: 450px) {
  .vv-liga { font-size: .95em; padding: .35em .8em .35em .45em; }
  .vv-liga-linha { gap: .6em; }
  .vv-liga-linha p { font-size: .8em; line-height: 1.2; }
  .vv-m-cartao { gap: .12em; }
  .vv-m-pe { min-height: 0; }
}
@media (max-width: 800px) and (orientation: portrait) {
  .vv-liga-linha { flex-direction: column; align-items: stretch; gap: .3em; }
  .vv-liga { justify-content: flex-start; }
}

/* mapa: escolha do andar (4 botões, sem rolagem) */
.vv-andares { display: flex; gap: .3em; flex: none; }
.vv-andares .vv-andar { flex: 1 1 0; min-width: 0; padding: .25em .3em; font-size: .86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-andares .vv-andar.ativa { background: var(--ativo); border-color: var(--viva); color: var(--titulo); }

/* ---------- guardião de viagem: destinos em cartões ---------- */
.vv-j-guardiao { width: 62em; }
.vv-dests { grid-template-columns: repeat(4, 1fr); align-content: start; }
.vv-dest { border-top: .3em solid var(--faixa, var(--borda)); gap: .2em; justify-content: flex-start; }
.vv-dest b, .vv-dest small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-dest.aqui { opacity: .5; }
.vv-chip { display: inline-flex; align-items: center; gap: .35em; font-size: .82em; color: var(--faixa, var(--cinza)); font-weight: 700; }
.vv-chip i { width: .65em; height: .65em; border-radius: 50%; background: var(--faixa, var(--cinza)); flex: none; }
.vv-previa { display: flex; flex-direction: column; gap: .3em; flex: 1 1 100%; width: 100%; min-width: 0; min-height: 0; }
.vv-previa canvas { flex: 1; min-height: 6em; width: 100%; border-top: .25em solid var(--faixa, #3d3a31); }
.vv-previa-i { margin: 0; flex: none; font-size: .9em; color: var(--cinza); }
.vv-previa-i b { color: var(--titulo); font-weight: 700; }
.vv-aviso-viagem { padding: .35em .6em; border: 1px solid #d0604f; border-radius: .35em; background: #3a1a17; color: #ffd0c8; font-weight: 400; line-height: 1.3; }
.vv-caca { border-left: .3em solid var(--faixa, #3d3a31); }
@media (max-width: 800px), (max-height: 450px) {
  .vv-dests { grid-template-columns: repeat(3, 1fr); gap: .35em; }
  .vv-dest { padding: .3em .4em; }
  .vv-aviso-viagem { padding: .2em .45em; font-size: .85em; }
}
@media (max-width: 800px) and (orientation: portrait) {
  .vv-dests { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- raridade: balão, item de outra vocação, faixa de mochila cheia ---------- */
.vv-f-bonus { color: #bfe3ff; }
.vv-f-sub b { font-weight: 700; }
.vv-slot.outra .vv-fig { opacity: .38; filter: grayscale(1); }
.vv-slot.outra { border-style: dashed; }
.vv-so-voc { position: absolute; right: -.15em; top: -.15em; z-index: 2; width: 1.35em; height: 1.35em; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 700; font-size: .62em; line-height: 1; color: #ffd9d2; background: #8c2a22; border: 1px solid #e8c45a; border-radius: 50%; box-shadow: 0 1px 2px #000; }
#vv-hud .vv-cheia { top: .6em; left: 50%; transform: translateX(-50%); max-width: calc(100% - 2em); text-align: center;
  font-size: .8em; font-weight: 400; line-height: 1.25; pointer-events: none; }
#vv-hud .vv-faixa:not([hidden]) ~ .vv-cheia { top: 2.9em; }
#vv-hud .vv-aviso.rar { border-color: var(--rar-aviso, #4a4c53); }
.vv-linha-semitem { color: #ffb0a6; font-size: .85em; }
.vv-bonus-resumo { font-size: .8em; color: #bfe3ff; font-weight: 400; }
@media (max-width: 800px), (max-height: 450px) {
  #vv-hud .vv-cheia { font-size: .68em; top: 4.9em; left: auto; right: .4em; transform: none; width: 15em; max-width: calc(100% - 8em); }
  #vv-hud .vv-faixa:not([hidden]) ~ .vv-cheia { top: 4.9em; }
}

/* ---------- medidor de caça ---------- */
.vv-med { display: flex; flex-direction: column; gap: .3em; min-height: 0; }
.vv-med-topo { display: flex; align-items: center; gap: .6em; }
.vv-med-t { font-size: 1.5em; color: var(--titulo); font-variant-numeric: tabular-nums; }
.vv-med-on { color: var(--verde-b); font-weight: 700; }
.vv-med-off { color: var(--cinza); }
.vv-med-l { display: flex; align-items: baseline; gap: .6em; padding: .15em .5em; border: 1px solid #3d3a31; border-radius: .35em; background: #1e2024; }
.vv-med-l span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-med-l b { font-variant-numeric: tabular-nums; }
.vv-med-l small { min-width: 6.5em; text-align: right; color: var(--cinza); }
.vv-med-l.lucro b { color: var(--titulo); }
.vv-med.mini { gap: .15em; }
.vv-med.mini .vv-med-t { font-size: 1.2em; }
.vv-med.mini .vv-med-l { padding: .05em .4em; }
.vv-med.mini .vv-med-l small { min-width: 5em; }
.vv-bdia { border-color: #6fbf73; }
.vv-bdia b { color: #9be8a0; }
.vv-bdia small { display: block; color: var(--cinza); }

/* áreas trancadas (cadeado e motivo) */
.vv-caca.trancada, .vv-dest.trancada { border-left-color: #b4574a; }
.vv-caca.trancada .vv-caca-n { border-color: #ff9a86; background: #2a1412; font-size: .7em; }
.vv-caca-nome small.vv-trava, .vv-dest.trancada small { color: #ff9a86; }
.vv-dest.trancada { background: #231c1c; }

/* mapa M: caixa do mapa com botões + − e "centrar em mim" por cima, no canto */
.vv-mapa-caixa { position: relative; flex: 1; min-height: 0; display: flex; }
.vv-mapa-ctl { position: absolute; top: .4em; right: .4em; display: flex; flex-direction: column; gap: .25em; }
.vv-mapa-ctl .vv-bt { padding: .15em .45em; min-width: 1.9em; font-size: .95em; line-height: 1.2; background: rgba(14, 16, 20, .88); }
.vv-mapa-ctl .vv-bt.vv-centrar { font-size: .8em; }

/* janelinha de morte */
.vv-j-morte { width: 28em; }
.vv-morte-resumo { font-size: 1.05em; color: #ffb4a6; margin: 0 0 .4em; }
.vv-morte-resumo.nada { color: #b9e6a8; }
.vv-morte-lista { display: flex; flex-direction: column; gap: .25em; margin-bottom: .5em; }
.vv-morte-l { display: flex; justify-content: space-between; gap: .6em; padding: .3em .55em; border: 1px solid #3d3a31; border-radius: .35em; background: #1e2024; color: var(--cinza); }
.vv-morte-l.perdeu { border-color: #b4574a; background: #2a1715; color: #fff; }
.vv-morte-l.perdeu b { color: #ff8f7c; }
.vv-morte-escolha { display: flex; gap: .4em; flex-wrap: wrap; margin-right: .5em; }

/* mapa: onde estou, quando não é uma área de caça */
.vv-caca-aqui { margin: 0; padding: .2em .5em; flex: none; border-left: .3em solid var(--viva); background: var(--ativo); border-radius: .3em; font-weight: 400; }
.vv-caca-aqui b { color: var(--titulo); }
