/* LOJA ENTRE JOGADORES, FERREIRO (desmanchar, forjar) E GEMAS. Mesmas cores de telas.css. Sem barra de rolagem: o que não cabe vira página. */

/* bolinha do Correio (botão do HUD e aba) */
.vv-bolinha { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35em; height: 1.35em; padding: 0 .3em; border-radius: 1em;
  background: #d0342c; border: 1px solid #ffb0a6; color: #fff; font-size: .75em; font-style: normal; font-weight: 700; line-height: 1; }
.vv-lojab .vv-bolinha { position: absolute; right: -.4em; top: -.5em; z-index: 1; }
.vv-lojab .vv-ico-txt { font-size: .62em; }
.vv-aba .vv-bolinha { margin-left: .25em; vertical-align: .1em; }

/* janelas */
.vv-j-lojaj { width: 60em; min-height: 31em; }
.vv-j-gema { width: 46em; }
.vv-col-lj { gap: .4em; }
.vv-in { width: 9em; padding: .3em .5em; background: #0e0f12; border: 1px solid var(--borda); border-radius: .3em; color: var(--txt); font: inherit; -webkit-user-select: text; user-select: text; }
.vv-in:focus { outline: 2px solid var(--viva); outline-offset: 1px; }

/* filtros e linhas */
.vv-lj-filtros { display: flex; flex-wrap: wrap; gap: .3em; flex: none; }
.vv-lj-f, .vv-chip-f { padding: .22em .55em; font-size: .85em; flex: 1 1 auto; }
.vv-lj-sub { display: flex; gap: .35em; flex: none; }
.vv-lj-sub .vv-bt { padding: .25em .8em; }
.vv-lj-lista { display: flex; flex-direction: column; gap: .2em; min-height: 0; }
.vv-lj-linha { display: flex; align-items: center; gap: .5em; padding: .12em .3em .12em .25em; min-width: 0; background: var(--f2); border: 1px solid #3d3a31; border-radius: .35em; }
.vv-lj-linha:hover { border-color: var(--viva); }
.vv-lj-linha.meu { opacity: .7; }
.vv-lj-ic { position: relative; flex: none; width: 1.6em; height: 1.6em; padding: .1em; background: var(--f3); border: 1px solid var(--rar, #33353c); border-radius: .25em; }
.vv-lj-ic .vv-qtd { font-size: .6em; right: .05em; bottom: 0; }
.vv-lj-ic.moeda { display: flex; align-items: center; justify-content: center; color: var(--titulo); }
.vv-lj-nome { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: .5em; white-space: nowrap; overflow: hidden; }
.vv-lj-nome b { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.vv-lj-nome small { overflow: hidden; text-overflow: ellipsis; flex: 0 100 auto; }
.vv-lj-linha .vv-bt { padding: .12em .6em; font-size: .88em; flex: none; }
.vv-lj-linha .vv-pil { padding: .05em .5em; flex: none; }
.vv-lj-vazio { flex: 1; }
.vv-lj-dica { flex: 1; min-width: 0; font-weight: 400; font-size: .8em; color: var(--cinza); }
.vv-lj-calc { min-height: 1.5em; font-weight: 400; }
.vv-lj-topo .vv-slot { --slot: 3em; }
.vv-lj-det { display: flex; gap: .7em; flex: 1; min-height: 0; }
.vv-lj-lado { flex: 1; display: flex; flex-direction: column; gap: .35em; min-width: 0; }
.vv-lj-preco { display: flex; align-items: center; flex-wrap: wrap; gap: .3em; }
.vv-ficha-inline { flex: 0 0 15em; display: flex; flex-direction: column; gap: .15em; padding: .5em .6em; background: #101115; border: 1px solid var(--borda); border-radius: .45em; }
.vv-f-botoes { flex-wrap: wrap; }

/* ferreiro: desmanchar */
.vv-slot.escolhido { box-shadow: 0 0 .6em var(--viva); border-color: var(--viva); }
.vv-desm .vv-slot { --slot: 3em; }
.vv-desm-seta { color: var(--titulo); font-size: 1.3em; }
.vv-grade-gema .vv-eq small { font-size: .6em !important; min-height: 1em; }

/* ferreiro: forjar */
.vv-forja { display: flex; flex-direction: column; gap: .35em; flex: 1; min-height: 0; }
.vv-chip-f { flex: 1 1 0; padding: .2em .3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-forja-meio { gap: .6em; align-items: stretch; }
.vv-forja-item { flex: 1.1; min-width: 0; padding: .3em .4em; background: linear-gradient(#262219, #1e2024); border: 1px solid var(--borda); border-radius: .4em; }
.vv-forja-item .vv-slot { --slot: 3em; }
.vv-forja-rec { flex: 1.4; gap: .3em; justify-content: space-between; }
.vv-rec { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .05em; padding: .2em .1em; background: var(--f2); border: 1px solid #3d3a31; border-radius: .35em; min-width: 0; }
.vv-rec .vv-slot { --slot: 2.2em; padding: .15em; }
.vv-rec b { font-size: .85em; } .vv-rec small { font-size: .65em !important; text-align: center; line-height: 1.1; }
.vv-rec.falta { border-color: #d0604f; } .vv-rec.falta b { color: #ff6b5e; }
.vv-rec-ouro { color: #f2c94c; font-size: 1.6em; line-height: 1.3; }
.vv-forja-aviso { font-weight: 400; line-height: 1.25; }
.vv-bt.forjando { animation: vv-forja-pulso .35s ease-in-out infinite alternate; }
@keyframes vv-forja-pulso { to { filter: brightness(1.6); } }
.vv-forja-res { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; text-align: center; overflow: hidden; min-height: 14em; border-radius: .45em; }
.vv-forja-res .vv-slot { --slot: 4.4em; }
.vv-forja-tit { font: 700 1.3em Georgia, "Times New Roman", serif; letter-spacing: .1em; text-transform: uppercase; }
.vv-forja-bons { display: flex; flex-direction: column; }
.vv-forja-res.sucesso { background: radial-gradient(circle, rgba(232, 184, 74, .28), transparent 70%); animation: vv-clarao 1.2s ease-out; }
.vv-forja-res.sucesso .vv-forja-tit { color: var(--viva); text-shadow: 0 0 .6em rgba(232, 184, 74, .9); }
.vv-forja-res.sucesso .vv-forja-ic { animation: vv-ergue 1s cubic-bezier(.2, 1.4, .4, 1); }
.vv-forja-res.sucesso .vv-slot { box-shadow: 0 0 1.2em var(--viva); }
@keyframes vv-clarao { 0% { background-color: rgba(255, 240, 190, .9); } 100% { background-color: transparent; } }
@keyframes vv-ergue { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.vv-faiscas i { position: absolute; left: 50%; top: 45%; width: .35em; height: .35em; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 .5em #ffcf5a; opacity: 0; animation: vv-fagulha 1.2s ease-out .1s both; }
.vv-faiscas i:nth-child(1) { --dx: -7em; --dy: -5em; } .vv-faiscas i:nth-child(2) { --dx: 7em; --dy: -4em; } .vv-faiscas i:nth-child(3) { --dx: -5em; --dy: 4em; }
.vv-faiscas i:nth-child(4) { --dx: 6em; --dy: 5em; } .vv-faiscas i:nth-child(5) { --dx: 0; --dy: -6em; } .vv-faiscas i:nth-child(6) { --dx: -9em; --dy: 0; }
.vv-faiscas i:nth-child(7) { --dx: 9em; --dy: 0; } .vv-faiscas i:nth-child(8) { --dx: 0; --dy: 6em; }
@keyframes vv-fagulha { 0% { opacity: 1; transform: translate(0, 0) scale(1.6); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }
.vv-forja-res.falha { background: radial-gradient(circle, rgba(120, 30, 25, .25), transparent 70%); animation: vv-treme .5s ease-in-out; }
.vv-forja-res.falha .vv-forja-tit { color: #ff8a7a; }
.vv-forja-res.falha .vv-forja-ic { width: 4.4em; height: 4.4em; opacity: .85; animation: vv-cai .6s ease-in; }
@keyframes vv-treme { 0%, 100% { transform: none; } 20% { transform: translateX(-.5em); } 40% { transform: translateX(.5em); } 60% { transform: translateX(-.3em); } 80% { transform: translateX(.3em); } }
@keyframes vv-cai { 0% { transform: translateY(-2em); opacity: 0; } 100% { transform: none; opacity: .85; } }

/* gemas */
.vv-gemas { display: flex; flex-direction: column; gap: .25em; }
.vv-gema-l { display: flex; align-items: center; gap: .5em; padding: .15em .5em .15em .25em; text-align: left; background: var(--f2); border: 1px solid #3d3a31; border-radius: .35em; }
.vv-gema-l:hover { border-color: var(--viva); }
.vv-gema-l.ativa { background: var(--ativo); border-color: var(--viva); }
.vv-gema-l.semnada .vv-fig { opacity: .45; }
.vv-gema-l .vv-slot { --slot: 2.2em; padding: .15em; }
.vv-gema-n { color: var(--titulo); }
.vv-gema-previa { gap: .15em; padding: .35em .6em; font-weight: 400; line-height: 1.3; }
.vv-gema-previa.nao { border-color: #d0604f; }
.vv-gema-c .vv-bt { padding: .3em .4em; }

@media (max-width: 800px), (max-height: 450px) {
  .vv-col-lj { gap: .3em; }
  .vv-lj-linha { padding: .05em .25em; }
  .vv-lj-ic { width: 1.45em; height: 1.45em; }
  .vv-lj-f { font-size: .8em; padding: .15em .4em; }
  .vv-ficha-inline { flex-basis: 14em; padding: .35em .5em; font-size: .9em; }
  .vv-lj-topo .vv-slot { --slot: 2.6em; }
  .vv-forja { gap: .25em; }
  .vv-forja-res { min-height: 0; }
  .vv-forja-res .vv-slot { --slot: 3.2em; }
  .vv-forja-item .vv-slot { --slot: 2.6em; }
  .vv-rec .vv-slot { --slot: 1.9em; }
  .vv-gema-l .vv-slot { --slot: 1.9em; }
  .vv-gema-previa { padding: .2em .5em; font-size: .9em; }
  .vv-desm .vv-slot { --slot: 2.6em; }
}

.vv-nvmin { display: inline; margin-left: .4em; font-size: .75em; font-weight: 400; opacity: .7; }
.vv-repo-n { min-width: 3em; text-align: center; color: var(--titulo); }

/* loja de Vila Coins, aba Gemas: uma linha por gema (ícone, texto, botões x1 / x5 empilhados); nada passa da coluna */
.vv-cartoes.gemas { grid-template-columns: minmax(0, 1fr); gap: .35em; }
.vv-gema-c { flex-direction: row; align-items: center; gap: .6em; padding: .35em .5em; overflow: hidden; }
.vv-gema-c .vv-slot { flex: none; --slot: 3em; }
.vv-gema-c .vv-cresce { gap: .05em; min-width: 0; }
.vv-gema-c .vv-cresce b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-gema-c .vv-cresce small { line-height: 1.2; }
.vv-gema-bts { flex: none; display: flex; flex-direction: column; gap: .2em; }
.vv-gema-bts .vv-bt { padding: .1em .5em; font-size: .85em; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .3em; }
.vv-gema-nota { flex: none; line-height: 1.25; }
@media (max-width: 800px), (max-height: 450px) {
  .vv-gema-c { padding: .2em .4em; gap: .4em; }
  .vv-gema-c .vv-slot { --slot: 2.3em; }
  .vv-gema-c .vv-cresce small:nth-of-type(2) { display: none; }
  .vv-gema-bts { flex-direction: row; }
  .vv-gema-nota { display: none; }
}

/* loja de Vila Coins: cartões de cosmético preenchem a coluna (2 por fileira quando cabe; nunca uma tira estreita) */
.vv-cartoes.cosm { grid-template-columns: repeat(auto-fill, minmax(8em, 1fr)); align-content: start; }
.vv-cosmetico { min-width: 0; }
.vv-cosmetico > b { font-size: .92em; line-height: 1.15; overflow-wrap: anywhere; }
.vv-cosmetico .vv-bt { padding: .15em .3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ferreiro: fichas de vocação, peça e faixa (8 peças numa fila: moldura fina, letra menor, nada cortado) */
#ui .vv-janela .vv-chip-f { border-width: .22em; border-image-width: .22em; padding: 0; font-size: .78em; letter-spacing: -.02em; text-overflow: clip; min-width: 0; }

/* ---------- enfeites de Vila Coins: Brilho do Nome e molduras (prata / ouro) ---------- */
.brilho { color: #ffe9a8; text-shadow: 0 0 5px rgba(255,214,102,.85), 0 1px 2px #000; animation: vv-brilho-nome 3.6s ease-in-out infinite; }
@keyframes vv-brilho-nome { 50% { text-shadow: 0 0 8px rgba(255,214,102,.95), 0 1px 2px #000; } }
@media (prefers-reduced-motion: reduce) { .brilho { animation: none; } }
.vv-nome-previa { display: block; font-weight: bold; padding: .5em 0; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.vv-mold { display: inline-flex; padding: 3px; border-radius: 4px; border: 2px solid #9aa3ad; background: #14110d; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000; }
.vv-mold[data-moldura="ouro"] { border-color: #e0b343; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 0 6px rgba(224,179,67,.45); }
.vv-mold .vv-fig { max-height: 100%; }
.vv-perfil[data-moldura] .vv-retrato { border: 2px solid #9aa3ad; background: #14110d; box-shadow: 0 0 0 1px #000; }
.vv-perfil[data-moldura="ouro"] .vv-retrato { border-color: #e0b343; box-shadow: 0 0 0 1px #000, 0 0 6px rgba(224,179,67,.45); }
/* janela pequena: sem retrato, a moldura vira um fio na caixa do perfil */
@media (max-width: 800px), (max-height: 450px) {
  .vv-perfil[data-moldura] { outline: 1px solid #9aa3ad; outline-offset: -3px; }
  .vv-perfil[data-moldura="ouro"] { outline-color: #e0b343; }
}
