/* Personalizar novo (protótipo 2026-11-07): categorias com ícone, cartas com desenho, prévia grande com zoom, casa com pontos de tocar */
#visual .vn .v-topo { gap: 8px; padding-bottom: 6px; }
#visual .vn .v-topo b { flex: 1; }
#visual .vn .v-saldo { font-size: 13px; font-weight: 800; white-space: nowrap; }
.vn-foto { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--borda); background: rgba(255, 255, 255, 0.06); font-size: 18px; color: inherit; }
#visual .vn-abas { margin: 8px 12px 6px; }
#visual .vn-abas button { font-size: 14px; font-weight: 800; }

/* a prévia */
.vn-palco { position: relative; flex: none; height: clamp(140px, 30vh, 320px); margin: 0 12px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--borda);
  background: radial-gradient(ellipse 55% 60% at 50% 62%, rgba(255, 211, 107, 0.17), transparent 70%), linear-gradient(#18213a, #0b1120 85%); }
.vn-palco::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 12%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 70%); }
.vn-palco[data-aba="casa"]::after, .vn-palco[data-aba="mapa"]::after { display: none; }
.vn-quadro { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform 0.35s ease; z-index: 1; }
.vn-quadro > img { display: block; width: 100%; height: 100%; }
.vn-q-boneco .v-pb-pet { position: absolute; left: 72%; bottom: 0; width: auto; height: 34%; }
.vn-palco[data-aba="boneco"] .vn-q-casa, .vn-palco[data-aba="casa"] .vn-q-boneco, .vn-palco[data-aba="mapa"] .vn-quadro,
.vn-palco:not([data-aba="mapa"]) .vn-mapa { display: none; }
.vn-palco .v-salvo { position: absolute; left: 8px; top: 8px; z-index: 3; font-size: 12px; font-weight: 800; background: rgba(5, 8, 16, 0.7); padding: 3px 8px; border-radius: 8px; }
.vn-palco .v-salvo:empty { display: none; }
.vn-zoom { position: absolute; right: 8px; top: 8px; z-index: 3; font-size: 12px; font-weight: 800; border-radius: 999px; border: 1px solid var(--borda);
  background: rgba(10, 14, 24, 0.78); color: #fff; padding: 5px 10px; }
.vn-zoom[hidden] { display: none; }

/* os pontos de tocar na casa */
.vn-pontos { position: absolute; inset: 0; }
.vn-pc { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border-radius: 50%; border: 2px solid #fff;
  background: rgba(14, 18, 30, 0.8); font-size: 14px; line-height: 1; display: grid; place-items: center; color: #fff;
  transform: scale(calc(0.9 / var(--z, 1))); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55); transition: transform 0.35s ease; }
.vn-pc.on { background: var(--luz); animation: vn-pulso 1.3s ease-in-out infinite; }
@keyframes vn-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 211, 107, 0.7); } 50% { box-shadow: 0 0 0 9px rgba(255, 211, 107, 0); } }

/* o efeito da arma: tiros e faíscas da cor escolhida */
.vn-tiros { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
.vn-palco.ef .vn-tiros { display: block; }
.vn-palco.ef .v-pb-boneco { filter: drop-shadow(0 0 7px var(--ef1)); }
.vn-tiros i { position: absolute; left: 50%; width: 70px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--ef1) 60%, #fff);
  box-shadow: 0 0 10px var(--ef1), 0 0 18px var(--ef2); animation: vn-tiro 0.9s linear infinite; }
.vn-tiros i:nth-child(1) { top: 40%; }
.vn-tiros i:nth-child(2) { top: 48%; animation-delay: 0.3s; }
.vn-tiros i:nth-child(3) { top: 56%; animation-delay: 0.6s; }
.vn-tiros b { position: absolute; right: 9%; top: 42%; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 12%, var(--ef1) 30%, var(--ef2) 55%, transparent 70%); animation: vn-estouro 0.9s ease-out infinite; }
.vn-palco.arco .vn-tiros { animation: vn-arco 1.2s linear infinite; }
@keyframes vn-tiro { from { transform: translateX(0); opacity: 1; } to { transform: translateX(150px); opacity: 0; } }
@keyframes vn-estouro { 0% { transform: scale(0.3); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes vn-arco { to { filter: hue-rotate(360deg); } }

/* o mapa */
.vn-mapa { position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 30px, rgba(255, 255, 255, 0.04) 30px 31px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 255, 255, 0.04) 30px 31px), radial-gradient(circle at 40% 45%, #1a2a48, #0b1120 70%); }
.vn-outros i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ffd84d; opacity: 0.35; }
.vn-meu { position: absolute; left: 50%; top: 46%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; border: 3px solid #fff; background: var(--c, #ffd84d);
  animation: vn-ping 1.6s ease-out infinite; }
@keyframes vn-ping { 0% { box-shadow: 0 0 0 0 var(--c, #ffd84d); } 100% { box-shadow: 0 0 0 22px transparent; } }
.vn-meu-nome { position: absolute; left: 50%; top: calc(46% + 18px); transform: translateX(-50%); font-size: 14px; font-weight: 900; text-shadow: 0 1px 3px #000; }

/* as categorias */
.vn-cats { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 4px; scrollbar-width: none; }
.vn-cats::-webkit-scrollbar { display: none; }
.vn-cats:empty { display: none; }
.vn-cat { position: relative; flex: none; width: 64px; padding: 6px 2px 5px; border-radius: 12px; border: 1px solid var(--borda); background: rgba(255, 255, 255, 0.04);
  color: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vn-cat span { font-size: 22px; line-height: 1.15; }
.vn-cat small { font-size: 10.5px; font-weight: 800; line-height: 1.1; text-align: center; }
.vn-cat.on { border-color: var(--luz); background: rgba(255, 211, 107, 0.16); }
.vn-ponto { position: absolute; top: 4px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #ff4d5a; box-shadow: 0 0 0 2px #0b1120; }

/* a faixa que explica */
.vn-info { flex: none; margin: 4px 12px 0; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-size: 12.5px; line-height: 1.35;
  min-height: 34px; box-sizing: border-box; }
.vn-info b { color: #fff; }
.vn-ok { color: #6fdc8c; font-weight: 800; }
.vn-aviso { color: #7cc4ff; font-weight: 800; }
.vn-aviso.erro { color: #ff8a8d; }
.vn-info.treme { animation: vn-treme 0.35s ease; }
@keyframes vn-treme { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* a lista */
#visual .vn-lista { padding-top: 8px; }
.vn-cab { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.vn-cab b { font-size: 15px; }
.vn-filtro { border-radius: 999px; border: 1px solid var(--borda); background: transparent; color: var(--apagado); font-size: 12px; font-weight: 800; padding: 5px 11px; }
.vn-filtro.on { color: #0b1120; background: #6fdc8c; border-color: #6fdc8c; }
.vn-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vn-carta { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 7px; border-radius: 14px;
  border: 2px solid transparent; background: rgba(255, 255, 255, 0.06); color: inherit; min-height: 116px; }
.vn-carta.ok { background: linear-gradient(rgba(111, 220, 140, 0.11), rgba(255, 255, 255, 0.04)); }
.vn-carta.comprar { background: linear-gradient(rgba(255, 211, 107, 0.13), rgba(255, 255, 255, 0.04)); }
.vn-carta.trancado .vn-des { filter: grayscale(1) brightness(0.55); }
.vn-carta.trancado .vn-nome { color: var(--apagado); }
.vn-carta.on { border-color: var(--luz); box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.18); }
.vn-carta.on::after { content: "✓"; position: absolute; top: -7px; right: -5px; width: 21px; height: 21px; border-radius: 50%; background: var(--luz); color: #1a1408;
  font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.vn-carta[disabled] { opacity: 0.55; }
.vn-des { height: 58px; width: 100%; display: grid; place-items: center; }
.vn-des img { max-width: 86%; max-height: 58px; object-fit: contain; }
.vn-des-alto { height: 96px; }
.vn-des-alto img { max-height: 96px; }
.vn-x { font-style: normal; font-size: 30px; color: var(--apagado); }
.vn-nome { font-size: 11.5px; font-weight: 800; line-height: 1.15; text-align: center; min-height: 27px; display: flex; align-items: center; }
.vn-st { font-size: 11px; font-weight: 900; border-radius: 10px; padding: 2px 7px; text-align: center; line-height: 1.25; max-width: 100%; box-sizing: border-box; }
.vn-st.ok { color: #6fdc8c; }
.vn-st.preco { color: #1a1408; background: var(--luz); }
.vn-st.tranc { color: #d5dae4; background: rgba(255, 255, 255, 0.09); }
.vn-barra { display: block; width: 78%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.vn-barra b { display: block; height: 100%; background: #7cc4ff; }
.vn-bonus { font-size: 10px; font-weight: 900; color: #7cc4ff; }
.vn-bonus.lend { color: #c9a2ff; }
.vn-novo { position: absolute; top: 5px; left: 5px; background: #ff4d5a; color: #fff; font-size: 9px; font-weight: 900; font-style: normal; padding: 1px 5px; border-radius: 6px; }
.vn-ef { width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fff 0 7%, transparent 9%), radial-gradient(circle at 66% 60%, rgba(255, 255, 255, 0.85) 0 4%, transparent 6%),
    radial-gradient(circle, var(--a) 0 38%, var(--b) 62%, transparent 66%);
  box-shadow: 0 0 16px var(--a); }
.vn-ef.arco { background: radial-gradient(circle at 34% 32%, #fff 0 7%, transparent 9%), conic-gradient(#ff5a5a, #ffd36b, #8be37a, #39e0ff, #b58cff, #ff5a5a);
  clip-path: circle(46%); }
.vn-vazio { grid-column: 1 / -1; color: var(--apagado); font-size: 13px; margin: 6px 2px; }

/* as cores em bolinhas */
.vn-cores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 4px; }
.vn-cor { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: inherit; padding: 0; }
.vn-cor i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.18); box-sizing: border-box;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.25); }
.vn-cor.on i { border-color: var(--luz); box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.4), inset 0 -6px 10px rgba(0, 0, 0, 0.25); }
.vn-cor.trancado i { filter: grayscale(0.6) brightness(0.6); }
.vn-cor small { font-size: 10.5px; font-weight: 700; text-align: center; line-height: 1.1; }
.vn-cor em { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9.5px; font-weight: 900; background: var(--luz);
  color: #1a1408; border-radius: 999px; padding: 1px 5px; white-space: nowrap; }
.vn-orig { background: repeating-linear-gradient(45deg, #2a3142 0 6px, #3d465c 6px 12px); }
.vn-sub { margin: 14px 0 8px; font-size: 11.5px; font-weight: 900; color: var(--apagado); text-transform: uppercase; letter-spacing: 0.04em; }

/* a pichação */
.vn-frases { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vn-frase { padding: 14px 6px; border-radius: 12px; border: 2px solid transparent; font-family: Impact, "Arial Black", sans-serif; font-size: 15px; letter-spacing: 0.02em;
  background: linear-gradient(135deg, #8e9299, #6f747c); text-shadow: 0 0 2px #000, 2px 2px 0 rgba(0, 0, 0, 0.85); }
.vn-frase.on { border-color: var(--luz); box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.25); }
.vn-frase-nada { font-family: inherit; font-size: 13px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, 0.06); text-shadow: none; }

/* o rodapé */
#visual .vn-rodape { display: flex; gap: 8px; align-items: stretch; }
.vn-rodape .secundario { flex: none; width: 60px; padding: 4px 0; font-size: 19px; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: inherit; }
.vn-rodape .secundario small { font-size: 10px; font-weight: 800; }
.vn-rodape .secundario:disabled { opacity: 0.35; }
.vn-rodape .principal { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.vn-rodape .principal small { font-size: 11.5px; font-weight: 800; opacity: 0.85; }

/* a foto para postar */
.vn-foto-img { display: block; width: 62%; margin: 6px auto 10px; border-radius: 10px; }
.vn-baixar { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }

/* telas baixas (celular pequeno, PC com a janela baixa): tudo um pouco menor para a lista ter espaço */
@media (max-height: 720px) {
  #visual .vn-abas { margin: 6px 12px 4px; }
  #visual .vn-abas button { padding: 6px; }
  .vn-cats { padding: 6px 12px 2px; }
  .vn-cat { width: 56px; padding: 4px 2px; }
  .vn-cat span { font-size: 18px; }
  .vn-cat small { font-size: 9.5px; }
  .vn-info { font-size: 12px; padding: 5px 9px; min-height: 0; }
}

/* a janela de salvar e pagar (e o Pix da roupa e a foto): por cima de tudo, com fundo escuro que fecha ao tocar */
#visual .vn .v-compra { position: fixed; left: 50%; top: calc(5vh + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 41;
  width: min(92vw, 420px); max-height: 88vh; box-sizing: border-box; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 18px 16px 16px; border-radius: 18px; border: 1px solid var(--borda); background: #0f1626; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65); }
#visual .vn .v-compra.some { display: none; }
.vn-fundo-janela { display: none; position: fixed; inset: 0; z-index: 40; border: 0; padding: 0; margin: 0; background: rgba(3, 6, 12, 0.76); }
#visual .vn .v-compra:not(.some) + .vn-fundo-janela { display: block; }
.vn-j-tit { margin: 0 0 8px; font-size: 18px; font-weight: 900; }
.vn-j-lista { list-style: none; margin: 0 0 10px; padding: 0; }
.vn-j-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borda); }
.vn-j-des { flex: none; width: 46px; height: 46px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; overflow: hidden; }
.vn-j-des img { max-width: 40px; max-height: 40px; object-fit: contain; }
.vn-j-des .vn-ef { width: 32px; height: 32px; }
.vn-j-cor { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); box-sizing: border-box; }
.vn-j-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.25; }
.vn-j-nome small { font-size: 11.5px; color: var(--apagado); font-weight: 700; }
.vn-j-preco { flex: none; font-weight: 900; color: var(--luz); font-size: 14px; }
.vn-j-item.tranc .vn-j-des { filter: grayscale(1) brightness(0.6); }
.vn-j-item.tranc .vn-j-preco { color: var(--apagado); }
.vn-j-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin-top: 4px; }
.vn-j-total b { color: var(--luz); font-size: 18px; }
.vn-j-saldo { margin: 2px 0 8px; font-size: 13px; color: var(--apagado); }
.vn-j-aviso { margin: 6px 0; font-size: 13px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; background: rgba(255, 138, 141, 0.1); color: #ffc9ca; }
.vn-j-erro { margin: 6px 0; color: #ff8a8d; font-weight: 800; font-size: 13px; }
.vn-j-erro:empty { display: none; }
