/* Estilos do Gerador de estilo (#visual), fora do estilo.css desde 12/11/2026 (item 10 de velocidade, 6ª leva do CSS partido).
   Baixado sem travar a página (index.html). Todas as classes vis- são só desta seção e do visual.js. */
.vis-barra { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 12px 0; }
.vis-barra .vis-fonte { border-bottom: 0; padding-bottom: 0; }
.vis-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.vis-slot { background: var(--panel); border: 1px solid var(--line); border-radius: var(--raio-cartao); padding: 10px; display: grid; gap: 8px; align-content: start; }
.vis-slot h4 { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vis-img { aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c, #6d8298) 70%, #fff), var(--c, #6d8298)); display: grid; place-items: center; overflow: hidden; }
.vis-img img { width: 100%; height: 100%; object-fit: contain; }
.vis-img span { color: #fff; font-weight: 700; opacity: .85; padding: 8px; text-align: center; }
.vis-slot p { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.vis-slot .evo-acoes { gap: 6px; }
.vis-slot .botao { padding: 6px 10px; font-size: .85rem; }
.vis-escolha, .vis-previa { margin-top: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--raio-cartao); padding: 12px; }
.vis-escolha input { font: inherit; padding: 9px 10px; border-radius: var(--raio-campo); border: 1px solid var(--line); background: var(--sky); color: var(--ink); width: 100%; box-sizing: border-box; }
.vis-opcoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr)); gap: 8px; margin-top: 10px; list-style: none; padding: 0; }
.vis-opcoes button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px; width: 100%; text-align: center; font-size: .8rem; font-weight: 600; padding: 6px; border-radius: 12px; background: var(--sky); overflow-wrap: anywhere; }
.vis-opcoes button:focus-visible { outline: 3px solid var(--signal); }
.vis-opcoes img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--c, #6d8298); }
.vis-previa img { display: block; width: min(100%, 420px); border-radius: 14px; margin-bottom: 10px; }
.vis-salvos { list-style: none; padding: 0; display: grid; gap: 8px; }
.vis-salvos li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.vis-salvos span { overflow-wrap: anywhere; flex: 1 1 200px; }
/* Filtros da escolha de peça: temporada, raridade, itens por página e páginas (14/11/2026). */
.vis-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; margin-top: 10px; }
.vis-filtros label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted, #a4bdd2); }
.vis-filtros label[hidden] { display: none; }
.vis-filtros select { font: inherit; font-size: .9rem; padding: 8px 10px; border-radius: var(--raio-campo); border: 1px solid var(--line); background: var(--sky); color: var(--ink); width: 100%; }
.vis-paginas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-weight: 600; }
.vis-paginas[hidden] { display: none; }
.vis-paginas button { font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--sky); color: var(--ink); cursor: pointer; }
.vis-paginas button:disabled { opacity: .4; cursor: default; }
.vis-paginas button:focus-visible, .vis-filtros select:focus-visible { outline: 3px solid var(--signal); }
/* Banner de tela inteira do Gerador de visual (pedido do Vitor de 14/11/2026 00:26): um visual completo em destaque, os
   itens trocam um de cada vez e a pessoa trava o que gostou; "Usar este visual" leva a combinação para a montagem. */
.tela > .cabeca.vis-heroi:first-child { margin-top: -28px; }
.cabeca.vis-heroi { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); align-items: center; gap: 12px;
  width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; box-sizing: border-box;
  min-height: max(520px, calc(100vh - var(--sl-topo-alt, 64px))); min-height: max(520px, calc(100svh - var(--sl-topo-alt, 64px)));
  padding: clamp(20px, 4vw, 36px) max(clamp(20px, 4vw, 36px), calc(50vw - 50% + clamp(20px, 4vw, 36px)));
  color: #f7fcff; --vc: #8240cc;
  background: radial-gradient(60% 70% at 70% 52%, color-mix(in srgb, var(--vc) 55%, transparent), transparent 70%), radial-gradient(40% 50% at 20% 110%, rgba(47, 224, 255, .16), transparent 70%), linear-gradient(160deg, #1d1140 0%, #0e2a47 55%, #081427 100%);
  transition: --vc .6s; }
.cabeca.vis-heroi::before { content: ""; position: absolute; inset: -20%; background: repeating-conic-gradient(from 0deg at 70% 55%, rgba(255, 255, 255, .055) 0deg 6deg, transparent 6deg 18deg); animation: vis-raios 60s linear infinite; pointer-events: none; mask-image: radial-gradient(closest-side at 70% 55%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(closest-side at 70% 55%, #000 30%, transparent 100%); }
@keyframes vis-raios { to { transform: rotate(360deg); } }
.vis-heroi-txt { position: relative; z-index: 2; display: grid; gap: 10px; max-width: 52ch; }
.vis-heroi-txt .eyebrow { color: #ffd21f; }
.vis-heroi-txt h2 { color: #fff; margin: 0; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .95; }
.vis-heroi-txt p { color: #d8eef8; margin: 0; }
.vis-heroi-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.vis-cta { font-weight: 800; font-size: 1.08rem; padding: 14px 24px; background: #ffd21f; color: #0b1020; border-color: #ffd21f; box-shadow: 0 8px 26px rgba(255, 210, 31, .35); }
.vis-cta2 { font-weight: 800; font-size: 1.02rem; padding: 14px 22px; background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.vis-heroi-dica { font-size: .9rem; color: #b9d3e6 !important; }
.vis-palco { position: relative; z-index: 1; height: min(78vh, 760px); min-height: 420px; }
.vis-palco::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 3%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.vis-p { box-sizing: border-box; position: absolute; display: grid; place-items: center; transition: transform .25s; }
.vis-p-btn { all: unset; box-sizing: border-box; position: relative; display: grid; place-items: center; width: 100%; height: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: inherit; }
.vis-p-btn:focus-visible { outline: 3px solid #ffd21f; outline-offset: 4px; }
.vis-p-troca { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); opacity: 0; pointer-events: none; font: 800 .85rem/1 var(--body); color: #0b1020; background: #ffd21f; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: opacity .2s, transform .2s; }
.vis-p-btn:hover .vis-p-troca, .vis-p-btn:focus-visible .vis-p-troca { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .vis-p-peca .vis-p-troca { opacity: 1; top: auto; bottom: 8px; transform: translateX(-50%); font-size: .7rem; padding: 5px 9px; } }
.vis-p img { width: 100%; height: 100%; object-fit: contain; transition: opacity .45s, transform .45s; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }
.vis-p.trocando img { opacity: 0; transform: scale(.94); }
.vis-p:hover { transform: translateY(-4px); }

.vis-p .vis-p-nome { position: absolute; left: 50%; bottom: -6px; transform: translate(-50%, 100%); white-space: nowrap; max-width: 220%; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(9, 18, 36, .78); padding: 3px 10px; border-radius: 999px; pointer-events: none; }
.vis-p .vis-trava { all: unset; box-sizing: border-box; cursor: pointer; z-index: 2; position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(9, 18, 36, .82); border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.vis-p .vis-trava:focus-visible { outline: 3px solid #ffd21f; outline-offset: 2px; }
.vis-p .vis-trava svg { width: 15px; height: 15px; }
.vis-p .vis-trava[aria-pressed="true"] { background: #ffd21f; color: #0b1020; border-color: #ffd21f; }
.vis-p-peca { width: clamp(96px, 11vw, 168px); aspect-ratio: 1; border-radius: 20px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c, #6d8298) 65%, #fff), var(--c, #6d8298)); box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .18) inset; padding: 6px; }
.vis-p-peca.travado { box-shadow: 0 0 0 3px #ffd21f, 0 12px 30px rgba(0, 0, 0, .35); }
.vis-p-traje { left: 50%; top: 2%; width: min(62%, 560px); height: 92%; transform: translateX(-50%); }
.vis-p-traje:hover { transform: translateX(-50%) translateY(-4px); }
.vis-p-traje .vis-p-nome { bottom: 4%; transform: translate(-50%, 0); font-size: .95rem; padding: 5px 14px; }
.vis-p-traje .vis-trava { top: 4%; right: 8%; }
.vis-p[data-tipo="backpack"] { left: 2%; top: 8%; transform: rotate(-6deg); }
.vis-p[data-tipo="pickaxe"] { left: 4%; top: 56%; transform: rotate(5deg); }
.vis-p[data-tipo="glider"] { right: 2%; top: 6%; transform: rotate(6deg); }
.vis-p[data-tipo="wrap"] { right: 4%; top: 55%; transform: rotate(-5deg); }
.vis-p-peca:hover { transform: rotate(0) translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .cabeca.vis-heroi::before { animation: none; } .vis-p img { transition: none; } }
@media (max-width: 900px) {
  .cabeca.vis-heroi { grid-template-columns: 1fr; min-height: auto; padding-top: 28px; padding-bottom: 36px; align-items: start; }
  .vis-palco { height: min(118vw, 560px); min-height: 0; order: -1; }
  .vis-p-traje { width: 64%; }
  .vis-p-peca { width: clamp(72px, 22vw, 120px); border-radius: 16px; }
  .vis-p .vis-p-nome { font-size: .7rem; }
}
/* Botões de ação da montagem em destaque. */
.vis-acoes { gap: 10px; }
.vis-acoes .botao { font-size: 1.02rem; font-weight: 800; padding: 13px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.vis-acoes .vis-ac-gerar { background: #ffd21f; color: #0b1020; border-color: #ffd21f; box-shadow: 0 8px 24px rgba(255, 210, 31, .35); }
.vis-acoes .vis-ac-sortear { background: #2fe0ff; color: #0e2a47; border-color: #2fe0ff; box-shadow: 0 8px 24px rgba(47, 224, 255, .28); }
.vis-acoes .vis-ac-salvar { background: rgba(255, 255, 255, .08); border: 2px solid currentColor; }
.vis-acoes .botao:disabled { opacity: .5; box-shadow: none; }
.vis-acoes .botao::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.vis-ac-gerar { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E"); }
.vis-ac-sortear { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5M4 20 21 3M21 16v5h-5M15 15l6 6M4 4l5 5'/%3E%3C/svg%3E"); }
.vis-ac-salvar { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21 12 16 5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.vis-previa img { display: block; width: min(100%, 720px); height: auto; margin: 0 auto 12px; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.vis-p img:not([src]) { visibility: hidden; }

/* Janelas do banner (escolher peça e imagem pronta). */
html.vis-janela-aberta { overflow: hidden; }
.vis-janela-fundo { position: fixed; inset: 0; z-index: 9400; display: grid; place-items: center; padding: 16px; background: rgba(3, 8, 18, .78); backdrop-filter: blur(3px); }
.vis-janela-fundo[hidden] { display: none; }
.vis-janela { box-sizing: border-box; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: #0c1426; color: #eaf1ff; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.vis-janela-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vis-janela-topo h3 { margin: 0; font-size: 1.3rem; color: #ffd21f; }
.vis-janela-x { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .1); }
.vis-janela-x:focus-visible { outline: 3px solid #ffd21f; }
.vis-esc-ctrl { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vis-esc-ctrl input { flex: 1 1 220px; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; }
.vis-esc-fonte { display: flex; gap: 6px; }
.vis-esc-fonte button { all: unset; cursor: pointer; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-weight: 700; font-size: .9rem; }
.vis-esc-fonte button[aria-pressed="true"] { background: #ffd21f; color: #0b1020; border-color: #ffd21f; }
.vis-esc-fonte button:focus-visible { outline: 3px solid #ffd21f; outline-offset: 2px; }
.vis-esc-msg { margin: 0; color: #a4bdd2; min-height: 1em; }
.vis-esc-grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.vis-esc-item { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 8px; border-radius: 14px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c, #6d8298) 70%, #fff), var(--c, #6d8298) 70%); border: 2px solid transparent; }
.vis-esc-item:hover, .vis-esc-item:focus-visible { border-color: #ffd21f; }
.vis-esc-item img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.vis-esc-item span { font-size: .8rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); line-height: 1.2; }
.vis-esc-rodape { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vis-res { width: min(560px, 100%); justify-items: center; }
.vis-res .vis-janela-topo { width: 100%; }
.vis-res-img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.vis-res-msg { margin: 0; color: #a4bdd2; text-align: center; }
.vis-res .vis-acoes { justify-content: center; }
.vis-res .vis-acoes .vis-ac-salvar { color: #fff; }
.vis-res-carregando { width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #1d1140, #0e2a47); }
.vis-res-carregando span { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .2); border-top-color: #ffd21f; animation: vis-gira 1s linear infinite; }
@keyframes vis-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vis-res-carregando span { animation: none; } }
.vis-res .vis-acoes .vis-ac-salvar::before { display: none; }
