/* TELAS DO VILA VIVA — um tema só para o HUD e todas as janelas.
   Tudo é medido em "em": a letra base cresce e encolhe com a tela (16px em 1280x720),
   então a interface inteira encolhe junto. Nada de barra de rolagem: o que não cabe vira página.
   Janela de canto (pequena): ver o bloco "MINI" no fim. A conta é a mesma de CONSULTA_MINI em nucleo.js. */

#ui {
  --f1: #17181b; --f2: #1e2024; --f3: #14151a;
  --borda: #8a6f3a; --viva: #e8c45a; --titulo: #f0d58a; --ativo: #4e3d1c;
  --txt: #ece6d8; --cinza: #aaa69b; --verde: #2f6b33; --verde-b: #5fae5f;
  --slot: 3.625em;
  font: 700 16px/1.25 "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(10px, min(1.25vw, 2.2222vh), 28px);
  color: var(--txt);
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
#ui *, #ui *::before, #ui *::after { box-sizing: border-box; }
#ui [hidden] { display: none !important; }
#ui button { font: inherit; color: inherit; cursor: pointer; margin: 0; }
#ui button:disabled { cursor: default; }
#ui :focus-visible { outline: 2px solid #fff6c9; outline-offset: 1px; }
#ui .vv-janela:focus-visible { outline: none; }
#ui small { font-size: .8em; font-weight: 400; color: var(--cinza); }
#ui p { margin: 0; }
#ui i, #ui em { font-style: normal; }

/* ---------- peças ---------- */
.vv-fig { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.vv-semarte { background: #2a2c33; border: 1px dashed #4a4d57; border-radius: .25em; display: flex; align-items: center; justify-content: center;
  font-size: .7em; color: #8d909a; letter-spacing: .05em; }

.vv-painel { background: var(--f1); border: 1px solid var(--borda); border-radius: .45em; box-shadow: 0 .25em .8em rgba(0, 0, 0, .5); }

.vv-pil { display: inline-flex; align-items: center; gap: .3em; padding: .15em .65em; border-radius: 1em; font-size: .85em; white-space: nowrap;
  background: #2a2c31; border: 1px solid #45474e; color: var(--txt); }
.vv-pil small { font-size: .9em !important; }
.vv-pil.ouro { background: #3b2e17; border-color: #6e5626; } .vv-pil.ouro i { color: #f2c94c; }
.vv-pil.xp { background: #1b2f52; border-color: #35589a; } .vv-pil.xp i { color: #8fc0ff; }
.vv-pil.coin, .vv-pil.roxo { background: #2a1d42; border-color: #5a3f8c; } .vv-pil.coin i { color: #b98cf0; } .vv-pil.roxo { color: #d9c2ff; }
.vv-pil.pontos { background: #1f3a38; border-color: #3f8c84; color: #bff0e8; }
.vv-pil.verde { background: #1f4a24; border-color: var(--verde-b); color: #d6f5d0; }
.vv-pil.chave { background: #3a3320; border-color: #a58a45; color: var(--titulo); }
.vv-pil.nivel { background: var(--ativo); border-color: var(--viva); color: var(--titulo); }
.vv-pil.botao:hover { filter: brightness(1.25); }
.vv-pils { display: flex; flex-wrap: wrap; gap: .3em; justify-content: center; }

.vv-bt { background: #24262b; border: 1px solid var(--borda); border-radius: .35em; padding: .38em .9em; color: var(--txt); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .35em; }
.vv-bt:hover:not(:disabled) { border-color: var(--viva); background: #2e3137; }
.vv-bt.verde { background: var(--verde); border-color: var(--verde-b); }
.vv-bt.verde:hover:not(:disabled) { background: #3a8040; border-color: #8fd98f; }
.vv-bt.dourado, .vv-bt.ativa { background: var(--ativo); border-color: var(--viva); color: var(--titulo); }
.vv-bt.perigo { background: #6e2222; border-color: #d0604f; }
.vv-bt.grande { padding: .55em 1.2em; }
.vv-bt:disabled { opacity: .45; filter: grayscale(.7); }
.vv-bt .vv-pil { font-size: .8em; padding: .05em .5em; }
.vv-seta { padding: .25em .55em; min-width: 2em; }

.vv-barra-p { position: relative; height: 1.05em; background: #0e0f12; border: 1px solid #3b3d44; border-radius: .3em; overflow: hidden; }
.vv-barra-p > i { position: absolute; left: 0; top: 0; bottom: 0; background: #4d9a4f; }
.vv-barra-p > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .72em; text-shadow: 0 1px 2px #000; }
.vv-barra-p.vida > i { background: linear-gradient(#d84a3f, #a92a25); }
.vv-barra-p.mana > i { background: linear-gradient(#4a8fe0, #2a5fb0); }
.vv-barra-p.xp { height: .4em; } .vv-barra-p.xp > i { background: var(--viva); }
.vv-barra-p.verde > i { background: linear-gradient(#5fbf5f, #3a8a3d); }

.vv-slot { position: relative; width: var(--slot); height: var(--slot); flex: none; padding: .3em; background: var(--f3);
  border: 2px solid var(--rar, #33353c); border-radius: .35em; display: block; }
.vv-slot.vazio { border-color: #2c2e35; }
.vv-slot.fora { visibility: hidden; }
.vv-slot.menor { --slot: 2.9em; }
button.vv-slot:hover { background: #20222a; box-shadow: 0 0 .5em var(--rar); }
.vv-slot.alto::after { content: ""; position: absolute; inset: 0; background: rgba(170, 30, 30, .38); border-radius: .2em; pointer-events: none; }
.vv-qtd { position: absolute; right: .1em; bottom: .1em; z-index: 1; font-size: .66em; line-height: 1.1; padding: 0 .2em; background: rgba(8, 8, 10, .78); border-radius: .25em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px #000; }
.vv-mais-n { position: absolute; left: .2em; top: .05em; font-size: .72em; color: #8fe08f; text-shadow: 0 1px 2px #000; }
.vv-tecla { position: absolute; left: .2em; top: .05em; font-size: .68em; color: var(--titulo); text-shadow: 0 1px 2px #000, 0 0 3px #000; }

.vv-linha { display: flex; align-items: center; gap: .5em; min-width: 0; }
.vv-linha.fim { justify-content: flex-end; }
.vv-linha.meio { justify-content: center; }
.vv-mola, .vv-cresce { flex: 1; min-width: 0; }
.vv-cresce { display: flex; flex-direction: column; }
.vv-apagado { color: var(--cinza); font-weight: 400; font-size: .85em; }
.vv-alto { color: #ff6b5e !important; }
.vv-ganho { color: #7fe07f; }
.vv-texto { font-weight: 400; line-height: 1.4; }
.vv-grande { font-size: 1.15em; color: var(--titulo); }
.vv-risco { border: 0; border-top: 1px solid #3a3222; width: 100%; margin: .2em 0; }

.vv-pags { display: inline-flex; align-items: center; gap: .4em; font-size: .85em; }
.vv-pags b { min-width: 2.4em; text-align: center; color: var(--txt); letter-spacing: 0; font-family: "Trebuchet MS", Verdana, sans-serif; }

/* ---------- HUD ---------- */
#ui > #vv-hud { position: absolute; inset: 0; pointer-events: none; }
#vv-hud > * { position: absolute; }
#vv-hud .vv-canto { display: flex; gap: .45em; pointer-events: none; }
#vv-hud .vv-canto > *, #vv-hud .vv-lado > *, #vv-hud .vv-barra, #vv-hud .vv-faixa { pointer-events: auto; }
.vv-ce { left: .6em; top: .6em; flex-direction: column; align-items: flex-start; }
.vv-cd { right: .6em; top: .6em; flex-direction: column; align-items: flex-end; }
.vv-lado { display: flex; align-items: center; gap: .35em; pointer-events: none; }

.vv-retrato { width: 3.6em; height: 3.6em; flex: none; background: var(--f3); border: 1px solid #4b3f25; border-radius: .35em; padding: .2em; }
.vv-retrato .vv-fig { image-rendering: auto; }
.vv-rotulo { letter-spacing: .12em; color: var(--titulo) !important; font-weight: 700 !important; }
.vv-resumo { font-size: .85em; border-color: var(--verde-b); }

.vv-faixa { top: .6em; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .45em; padding: .3em .9em;
  background: rgba(78, 61, 28, .92); border: 1px solid var(--viva); border-radius: 1.2em; color: var(--titulo); letter-spacing: .06em; white-space: nowrap; }

.vv-redondo { width: 3.5em; height: 3.5em; border-radius: 50%; background: #24262b; border: 2px solid var(--borda); padding: .35em;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.vv-redondo:hover { border-color: var(--viva); }
.vv-redondo.ligado { background: var(--ativo); border-color: var(--viva); color: var(--titulo); box-shadow: 0 0 .8em rgba(232, 196, 90, .55); }
.vv-acao { position: relative; width: 3.2em; height: 3.2em; padding: .3em; background: var(--f3); border: 2px solid #5b4a28; border-radius: .4em; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
button.vv-acao:hover { border-color: var(--viva); }
.vv-acao.vazio { border-color: #2c2e35; }
.vv-acao.semnada .vv-fig, .vv-magia.semmana .vv-fig { opacity: .35; filter: grayscale(1); }
.vv-recarga { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--rec, 0) * 100%); background: rgba(5, 6, 9, .72); pointer-events: none; }
.vv-seg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1em; text-shadow: 0 1px 3px #000; pointer-events: none; }

.vv-avisos { left: .6em; bottom: .6em; display: flex; flex-direction: column; gap: .3em; align-items: flex-start; max-width: 19em; pointer-events: none; }
.vv-aviso { padding: .35em .7em; border-radius: .35em; background: rgba(23, 24, 27, .93); border: 1px solid #4a4c53; border-left-width: .3em;
  font-size: .85em; transition: opacity .35s; }
.vv-aviso.bom { border-color: var(--verde-b); color: #d6f5d0; }
.vv-aviso.ruim { border-color: #d0604f; color: #ffd0c8; }
.vv-aviso.raro { border-color: var(--viva); color: var(--titulo); }
.vv-aviso.some { opacity: 0; }

/* ---------- janela ---------- */
#vv-camada, #vv-confirma { position: absolute; inset: 0; }
#vv-camada { z-index: 20; } #vv-ficha { z-index: 30; } #vv-confirma { z-index: 40; }
.vv-fundo { position: absolute; inset: 0; background: rgba(6, 7, 9, .62); }
.vv-janela { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72em; max-width: calc(100% - 1.2em); max-height: calc(100% - 1.2em);
  display: flex; flex-direction: column; background: var(--f1); border: 1px solid var(--borda); border-radius: .5em;
  box-shadow: 0 .8em 2.5em rgba(0, 0, 0, .65); overflow: hidden; outline: none; }
.vv-cab { display: flex; align-items: center; gap: .8em; padding: .7em .9em .6em 1.1em; border-bottom: 1px solid #3a3222; background: linear-gradient(var(--f2), var(--f1)); flex: none; }
.vv-tit { min-width: 0; }
.vv-tit h2 { margin: 0; font: 700 1.3em Georgia, "Times New Roman", serif; letter-spacing: .14em; text-transform: uppercase; color: var(--titulo); white-space: nowrap; }
.vv-tit p { font-size: .8em; font-weight: 400; color: var(--cinza); margin-top: .15em !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-cab-extra { margin-left: auto; display: flex; align-items: center; gap: .5em; }
.vv-x { width: 2em; height: 2em; flex: none; background: #a32b2b; border: 1px solid #e06a5a; border-radius: .3em; color: #fff !important; line-height: 1; padding: 0; }
.vv-x:hover { background: #c43a36; }
.vv-abas { display: flex; gap: .35em; padding: .6em 1.1em 0; flex: none; flex-wrap: wrap; }
.vv-abas.dentro { padding: 0; }
.vv-aba { background: #24262b; border: 1px solid #5b4a28; border-radius: .35em; padding: .3em .9em; color: var(--txt); }
.vv-aba:hover { border-color: var(--viva); }
.vv-aba.ativa { background: var(--ativo); border-color: var(--viva); color: var(--titulo); }
.vv-secoes { display: none; }
.vv-corpo { display: flex; gap: .9em; padding: .8em 1.1em 1em; min-height: 0; flex: 1; }
.vv-col { display: flex; flex-direction: column; gap: .55em; min-width: 0; flex: 1 1 0; }
.vv-col.estreita { flex: 0 0 21em; } .vv-col.fina { flex: 0 0 11.5em; }
.vv-rodape { padding: .5em 1.1em .7em; border-top: 1px solid #3a3222; font-size: .8em; font-weight: 400; color: var(--cinza); flex: none; }
.vv-sub { margin: 0; font: 700 .82em Georgia, "Times New Roman", serif; letter-spacing: .14em; color: var(--titulo); display: flex; align-items: center; justify-content: space-between; gap: .5em; min-height: 1.6em; }
.vv-nota-beta { font-size: .7em !important; }

.vv-cartao { background: var(--f2); border: 1px solid #3d3a31; border-radius: .45em; padding: .6em .7em; display: flex; flex-direction: column; gap: .4em; min-width: 0; text-align: left; }
.vv-cartao.dourado { border-color: var(--borda); background: linear-gradient(#262219, #1e2024); }
.vv-cartao.ativa { background: var(--ativo); border-color: var(--viva); }
.vv-cartao.vv-vazio { align-items: center; justify-content: center; text-align: center; color: var(--cinza); font-weight: 400; min-height: 5em; }
.vv-cartao.botao:hover:not(:disabled) { border-color: var(--viva); }
.vv-cartao.botao:disabled { opacity: .45; }
.vv-cartoes { display: grid; gap: .5em; }
.vv-cartoes.dois { grid-template-columns: repeat(2, 1fr); }
.vv-cartoes.tres { grid-template-columns: repeat(3, 1fr); }
.vv-cartoes.quatro { grid-template-columns: repeat(4, 1fr); }

.vv-lista { display: flex; flex-direction: column; gap: .3em; }
.vv-item { display: flex; align-items: center; gap: .5em; padding: .4em .7em; background: var(--f2); border: 1px solid #3d3a31; border-radius: .35em; text-align: left; }
.vv-item.botao:hover:not(:disabled) { border-color: var(--viva); }
.vv-item.ativa { background: var(--ativo); border-color: var(--viva); color: var(--titulo); }
.vv-item.feito { color: #a8d8a0; } .vv-item.feito i { color: #6fd06f; }
.vv-item.futuro { color: #77746b; }
.vv-item:disabled, .vv-item.fechado { opacity: .5; }
.vv-pronta { display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: .3em .4em .3em .7em; border-radius: .35em;
  background: #1c3a20; border: 1px solid var(--verde-b); color: #d6f5d0; }
.vv-pronta.neutra { background: var(--f2); border-color: var(--borda); color: var(--txt); }
.vv-pronta .vv-bt { padding: .25em .8em; }
.vv-medalha { display: inline-block; width: 1.3em; height: 1.3em; border-radius: 50%; flex: none; overflow: hidden; border: 1px solid rgba(0, 0, 0, .5); }
.vv-medalha .vv-semarte { border: 0; background: transparent; }
.vv-medalha.bronze { background: #b0703a; } .vv-medalha.prata { background: #cfd4da; } .vv-medalha.ouro { background: #f2c94c; }
.vv-pil.medalha.prata { border-color: #cfd4da; } .vv-pil.medalha.ouro { border-color: #f2c94c; color: var(--titulo); } .vv-pil.medalha.bronze { border-color: #b0703a; }
.vv-pil.medalha .vv-medalha { width: 1em; height: 1em; }

/* ---------- A) mochila ---------- */
.vv-j-mochila { width: 73em; }
.vv-col-vestido { flex: 0 0 28em; }
.vv-caixa { background: var(--f2); border: 1px solid #3d3a31; border-radius: .45em; padding: .6em; }
.vv-boneca { display: grid; justify-content: center; gap: .3em 1.6em;
  grid-template-columns: repeat(3, auto);
  grid-template-areas: "amuleto cabeca tronco" "arma boneco escudo" "anel boneco pernas" ". botas picareta"; }
.vv-eq { display: flex; flex-direction: column; align-items: center; gap: .1em; }
.vv-eq small { font-size: .7em !important; }
.vv-boneco-g { width: 7.5em; align-self: center; justify-self: center; height: 9em; }
.vv-bloco { display: flex; flex-direction: column; gap: .4em; }
.vv-quatro { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; }
.vv-caixa-n { background: var(--f2); border: 1px solid #3d3a31; border-radius: .4em; padding: .35em .3em; display: flex; flex-direction: column; align-items: center; gap: .1em; }
.vv-caixa-n b { font-size: 1.15em; color: var(--titulo); }
.vv-caixa-n .ico { width: 1.6em; height: 1.6em; }
.vv-conj { color: var(--titulo); font-size: .85em; font-weight: 400; }
.vv-grade { display: grid; grid-template-columns: repeat(var(--cols, 8), minmax(0, var(--slot))); gap: .35em; justify-content: center; }
.vv-grade > .vv-slot { width: 100%; height: auto; aspect-ratio: 1; max-width: var(--slot); justify-self: center; }

/* ---------- ficha ---------- */
#vv-ficha { position: fixed; left: 0; top: 0; width: 17em; max-width: calc(100vw - 8px); padding: .6em .7em; display: flex; flex-direction: column; gap: .2em;
  background: #101115; border: 1px solid var(--borda); border-radius: .45em; box-shadow: 0 .5em 1.5em rgba(0, 0, 0, .7); }
#vv-ficha.fixa { border-color: var(--viva); }
.vv-f-nome { font-size: 1.05em; }
.vv-f-linha { font-size: .9em; }
.vv-f-conj { font-size: .85em; color: var(--titulo); font-weight: 400; }
.vv-f-valor { font-size: .85em; font-weight: 400; color: var(--cinza); margin-top: .2em; }
.vv-f-botoes { display: flex; gap: .4em; margin-top: .4em; }
.vv-f-botoes .vv-bt { flex: 1; padding: .38em .5em; }

/* ---------- B) missões ---------- */
.vv-j-missoes { width: 72em; min-height: 36em; }
.vv-ativa .vv-retrato { width: 3.4em; height: 3.4em; }
.vv-oferta { align-items: center; text-align: center; position: relative; gap: .3em; }
.vv-oferta > .vv-medalha { position: absolute; right: .5em; top: .5em; }
.vv-oferta .vv-retrato { width: 3.6em; height: 3.6em; }
.vv-oferta .vv-pils { min-height: 3.2em; align-content: center; }
.vv-oferta .vv-bt { align-self: stretch; }
.vv-oferta .vv-linha { width: 100%; gap: .3em; }
.vv-oferta .vv-linha .vv-bt { flex: 1; }
.vv-oferta-l { flex-direction: row; align-items: center; gap: .5em; }
.vv-oferta-l .vv-retrato { width: 2.8em; height: 2.8em; }
.vv-oferta-l .vv-pils { gap: .2em; }
.vv-col-bt { display: flex; flex-direction: column; gap: .2em; }
.vv-col-bt .vv-bt { padding: .2em .6em; }
.vv-vaga { min-height: 2.6em; padding: .3em; }
.vv-missao { flex: 1; }
.vv-passe { flex-direction: row; align-items: center; }
.vv-passe.fechado b { color: #9a968b; }

/* ---------- C) loja ---------- */
.vv-j-loja { width: 74em; min-height: 36em; }
.vv-cats .vv-item { padding: .45em .7em; }
.vv-cosmetico { align-items: center; text-align: center; gap: .3em; }
.vv-previa { width: 4.6em; height: 4.6em; background: var(--f3); border: 1px solid #3d3a31; border-radius: .4em; padding: .3em; flex: none; }
.vv-previa.grande { width: 9em; height: 9em; }
.vv-cosmetico .vv-bt { align-self: stretch; }
.vv-provador, .vv-painel-bau { align-items: center; text-align: center; flex: 1; }
.vv-embreve { flex: 1; }
.vv-embreve b { font-size: 1.3em; color: var(--titulo); font-family: Georgia, "Times New Roman", serif; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- D) enquanto você esteve fora ---------- */
.vv-j-fora { width: 74em; min-height: 34em; }
.vv-raros { flex-wrap: wrap; gap: .3em; min-height: 2.9em; }
.vv-bau { flex-direction: row; align-items: center; }
.vv-bau .vv-fig { width: 2.6em; height: 2.6em; flex: none; }
.vv-bau b { flex: 1; }
.vv-qtd-bau { color: var(--titulo); }
.vv-painel-bau .vv-sub { justify-content: center; }
.vv-ganhos { display: flex; flex-direction: column; gap: .25em; align-self: stretch; }
.vv-ganho-item { display: flex; align-items: center; gap: .5em; text-align: left; font-size: .9em; }
.brilho { filter: drop-shadow(0 0 .5em rgba(240, 213, 138, .9)); animation: vv-pulso 1.6s ease-in-out infinite; }
@keyframes vv-pulso { 50% { filter: drop-shadow(0 0 1em rgba(255, 230, 150, 1)); } }

/* ---------- E) NPCs ---------- */
.vv-j-mercado { width: 52em; }
.vv-produto { align-items: center; text-align: center; gap: .3em; }
.vv-produto .vv-bt { align-self: stretch; }
.vv-j-pocoes { width: 38em; }
.vv-j-repor { width: 30em; max-width: calc(100% - 1em); }
.vv-pocao .vv-bt { align-self: auto; padding: .2em .1em; min-width: 0; font-size: .85em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05em; line-height: 1.1; }
.vv-pocao .vv-linha { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25em; width: 100%; }
.vv-j-ferreiro { width: 50em; }
.vv-grade-eq { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.vv-grade-eq .vv-eq { padding: .35em; border: 1px solid transparent; border-radius: .4em; }
.vv-grade-eq .vv-eq.ativa { background: var(--ativo); border-color: var(--viva); }
.vv-melhoria { flex: 1; }
.vv-antes-depois { display: flex; align-items: center; gap: .6em; font-size: 1.05em; }
.vv-antes-depois span { flex: 1; font-weight: 400; }
.vv-j-templo, .vv-j-config, .vv-confirma { width: 32em; }
.vv-confirma .vv-texto { line-height: 1.6; }

/* ---------- F) mapa ---------- */
.vv-j-mapa { width: 74em; height: 41em; }
.vv-mapa-g { width: 100%; height: 100%; min-height: 0; flex: 1; display: block; background: #0d0f12; border: 1px solid #3d3a31; border-radius: .35em; image-rendering: pixelated; }

@media (prefers-reduced-motion: reduce) {
  #ui *, #ui *::before, #ui *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================================
   MINI — janela de canto (deitada ~480x270 ou em pé ~300x520).
   HUD compacto: vida/mana, Auto, abates e task. Janelas ocupam a tela toda,
   uma coluna por vez (as colunas viram abas no alto).
   ===================================================================================== */
@media (max-width: 800px), (max-height: 450px) {
  #ui { font-size: clamp(10px, min(2.1vw, 3.7vh), 14px); --slot: 3.1em; }

  /* HUD */
  .vv-ce { left: .4em; top: .4em; }
  .vv-cd { right: .4em; top: .4em; }
  .vv-avisos { left: .4em; bottom: .4em; max-width: calc(100% - 13em); }
  .vv-aviso:nth-last-child(n+3) { display: none; }

  /* janelas: tela toda */
  .vv-janela:not(.vv-confirma) { left: 0; top: 0; transform: none; width: 100% !important; height: 100% !important; max-width: none; max-height: none; min-height: 0 !important; border-radius: 0; border: 0; }
  .vv-confirma { width: 28em; }
  .vv-cab { padding: .4em .5em .35em .7em; }
  .vv-tit h2 { font-size: 1.1em; letter-spacing: .1em; }
  .vv-tit p, .vv-nota-beta, .vv-rodape { display: none; }
  .vv-abas { padding: .4em .7em 0; }
  .vv-secoes { display: flex; gap: .3em; padding: .4em .7em 0; flex: none; }
  .vv-secoes .vv-aba { flex: 1; padding: .3em .4em; }
  .vv-aba { padding: .25em .6em; }
  .vv-corpo { padding: .5em .7em .6em; }
  .vv-col { display: none; flex: 1 1 0 !important; gap: .4em; }
  .vv-col.ativa { display: flex; }
  .vv-previa.grande { width: 6.5em; height: 6.5em; }
  .vv-cartao { padding: .4em .5em; gap: .25em; }
}

/* mini deitada: aproveita a largura */
@media (max-height: 450px) and (orientation: landscape), (max-width: 800px) and (orientation: landscape) {
  .vv-col-vestido.ativa { flex-direction: row; align-items: center; }
  .vv-col-vestido .vv-boneca { gap: .1em 1em; padding: .3em .8em; }
  .vv-col-vestido .vv-bloco { flex: 1; }
  .vv-col-vestido .vv-quatro { grid-template-columns: repeat(2, 1fr); }
  .vv-boneco-g { width: 5em; height: 6.4em; }
  .vv-provador, .vv-painel-bau, .vv-missao { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; }
  .vv-missao > * { flex: 1 1 100%; } .vv-missao > .vv-grande, .vv-missao > small { flex: 0 1 auto; }
  .vv-cats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .vv-grade-eq { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .vv-grade-eq .vv-eq { min-width: 0; padding: .15em 0; }
  .vv-grade-eq .vv-eq small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6em !important; }
  .vv-oferta .vv-pils { min-height: 0; }
  .vv-ativa .vv-retrato { width: 2.4em; height: 2.4em; }
  .vv-ativa { padding: .3em .5em; gap: .15em; }
}

/* mini em pé: empilha */
@media (max-width: 800px) and (orientation: portrait) {
  #ui { font-size: clamp(10px, min(3.4vw, 1.95vh), 14px); }
  .vv-cartoes.tres, .vv-cartoes.quatro { grid-template-columns: repeat(2, 1fr); }
  .vv-cab-extra .vv-pil small { display: none; }
  .vv-avisos { bottom: 4.6em; max-width: calc(100% - 1em); }
  .vv-linha { flex-wrap: wrap; }
  .vv-perfil .vv-linha, .vv-eq, .vv-pronta { flex-wrap: nowrap; }
}

/* Icone com brilho (poção, espada, cajado, armadura): fileira de n quadros; muda o quadro por CSS (steps), sem JS por quadro. */
.vv-brilho { background-repeat: no-repeat; background-size: calc(var(--n) * 100%) 100%; background-position: 0 0; image-rendering: auto;
  animation: vv-brilho var(--seg, 1.2s) steps(var(--n)) infinite; }
@keyframes vv-brilho { to { background-position: calc(var(--n) / (var(--n) - 1) * 100%) 0; } }
@media (prefers-reduced-motion: reduce) { .vv-brilho { animation: none; } }
