/* DIREÇÃO 3 "BRIGHT ADVENTURE" (25/11, escolha dele na folha brand/raw/menus2/folha-menus.jpg; ele: "abertura do site meio feia,
   menus muito bagunçados"). Madeira pintada com contorno escuro grosso, botões em pílula, UMA fonte grande e legível, casas
   redondas nas skills, capa de dia. Peças: brand/gerar-pecas3.mjs → brand/preparar-pecas3.py → /assets/ui/*3.webp, capa3.jpg.
   Tudo atrás de body.t3 (?tema=0 volta ao visual antigo). Os seletores usam :where(.t3) para ter a MESMA força dos originais
   de jogo.css (este arquivo vem depois e ganha no empate, sem atropelar as exceções como .classe, .item, .heroi). */
:where(.t3) {
  --titulo: 'Lilita One', 'Nunito', sans-serif; --texto: 'Nunito', sans-serif;
  --ciano: #ffcf5a; --ciano2: #e0972a; --violeta: #8fd14f; --ouro: #ffd04a;
  --papel: #fff6e2; --apagado: #e8cfa6; --fundo: #1d130b;
  --vidro: linear-gradient(180deg, #8a5a2c, #6e4421);
  --borda: rgba(42, 22, 11, .9); --brilho: 0 4px 0 rgba(42, 22, 11, .55);
  --tinta: #2a160b;                  /* contorno escuro das peças */
  --sombra-txt: 0 2px 0 rgba(42, 22, 11, .85), 0 0 3px rgba(42, 22, 11, .6);
}
:where(.t3) body, body:where(.t3) { font-size: 16px; }
:where(.t3) .titulo { letter-spacing: .03em; }

/* ---------- painéis: tábua de madeira pintada ---------- */
:where(.t3) .moldura { filter: drop-shadow(0 6px 0 rgba(30, 16, 8, .45)) drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
:where(.t3) .moldura > .vidro { border: 16px solid transparent; border-image: url('/assets/ui/painel3.webp') 34 fill / 16px stretch; text-shadow: var(--sombra-txt); }
:where(.t3) .vidro { border-radius: 14px; }

/* ---------- botões: pílula de madeira; o principal verde, o de carteira azul ---------- */
:where(.t3) button, :where(.t3) .botao {
  font: 400 16px var(--titulo); letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: var(--sombra-txt);
  padding: 2px 20px; border: 14px solid transparent; border-width: 13px 22px; border-image: url('/assets/ui/botao-madeira3.webp') 64 86 fill / 13px 22px stretch;
  background: none; filter: drop-shadow(0 3px 0 rgba(30, 16, 8, .4));
}
:where(.t3) button:hover { filter: brightness(1.1) drop-shadow(0 3px 0 rgba(30, 16, 8, .4)); }
:where(.t3) button:active { transform: translateY(2px); filter: drop-shadow(0 1px 0 rgba(30, 16, 8, .4)); }
:where(.t3) button.primario { color: #fff; background: none; border-image-source: url('/assets/ui/botao-verde3.webp'); text-shadow: 0 2px 0 #1f3b10, 0 0 3px #1f3b10; box-shadow: none; filter: drop-shadow(0 3px 0 rgba(20, 40, 10, .45)); }
:where(.t3) button.azul, :where(.t3) #bt-phantom, :where(.t3) .bt-phantom { border-image-source: url('/assets/ui/botao-azul3.webp'); text-shadow: 0 2px 0 #0f2546, 0 0 3px #0f2546; }
:where(.t3) button.grande { font-size: 24px; padding: 4px 44px; letter-spacing: .05em; border-width: 16px 28px; }
:where(.t3) button, :where(.t3) .botao, :where(.t3) #nome { border-image-slice: 64 86 fill; }

/* ---------- campos de texto: caixa funda com contorno grosso ---------- */
:where(.t3) #email, :where(.t3) #senha, :where(.t3) #novo-nome, :where(.t3) #nome {
  font: 700 17px var(--texto); letter-spacing: 0; color: #fff6e2; padding: 10px 14px; border: 3px solid var(--tinta); border-image: none; border-radius: 12px;
  background: #3a2414; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35);
}
:where(.t3) #email::placeholder, :where(.t3) #senha::placeholder, :where(.t3) #novo-nome::placeholder, :where(.t3) #nome::placeholder { color: #b89772; letter-spacing: 0; font-size: 15px; }
:where(.t3) #email:focus, :where(.t3) #senha:focus, :where(.t3) #novo-nome:focus, :where(.t3) #nome:focus { filter: none; border-color: #ffcf5a; }

/* ---------- casas das skills: anel redondo de madeira ---------- */
:where(.t3) .slot { width: 86px; }
:where(.t3) .slot .hex { width: 86px; height: 86px; }
:where(.t3) .slot .hex::after { background: url('/assets/ui/slot3.webp') center / contain no-repeat; }
:where(.t3) .slot .ico, :where(.t3) .slot .cd { top: 50%; width: 64%; height: 64%; clip-path: circle(50%); border-radius: 50%; background-size: 115%; }
:where(.t3) .slot.ult { width: 100px; } :where(.t3) .slot.ult .hex { width: 100px; height: 100px; }
:where(.t3) .slot.ult .hex::after { filter: sepia(.6) saturate(2.2) hue-rotate(-8deg) brightness(1.12); }
:where(.t3) .slot.ult .ico, :where(.t3) .slot.ult .cd { width: 64%; height: 64%; }
:where(.t3) .slot .tecla { background: var(--tinta); outline: 0; border-radius: 6px; color: #fff6e2; font-family: var(--titulo); }
:where(.t3) .slot .custo { top: 2px; right: 2px; }
:where(.t3) .classe .soq i { clip-path: circle(50%); border-radius: 50%; }

/* ---------- células de item e retratos ---------- */
:where(.t3) #inventario .item, :where(.t3) #loja .item { background: #3a2414; border-radius: 10px; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .35), 0 0 0 3px var(--tinta); }
:where(.t3) .membro .ret, :where(.t3) #trocar button, :where(.t3) .pocao-hud { border-image-source: url('/assets/ui/painel3.webp'); }
:where(.t3) #trocar button.on { background: linear-gradient(160deg, #8fd14f, #3d7a1e); border-radius: 10px; }

/* ---------- textos pequenos: nada de letra miúda ---------- */
:where(.t3) #tutorial .tut-rotulo, :where(.t3) #tutorial .tut-passo, :where(.t3) #tutorial .tut-pular { font-size: 12px; letter-spacing: .06em; }
:where(.t3) #tutorial .tut-titulo { font-size: 20px; letter-spacing: .02em; }
:where(.t3) #tutorial p { font: 700 15px/1.4 var(--texto); color: #fff6e2; }
:where(.t3) #chat .msg { font-weight: 700; }
:where(.t3) #topo { font-size: 16px; letter-spacing: .12em; }
:where(.t3) #minimapa { border: 4px solid var(--tinta); border-radius: 50%; outline: 3px solid #b5793f; overflow: hidden; }
:where(.t3) #barras .num { font: 400 14px var(--titulo); color: #fff6e2; text-shadow: var(--sombra-txt); }
:where(.t3) #barras .b { height: 14px; border-radius: 7px; border: 2px solid var(--tinta); }

/* ---------- capa: o templo de dia, logo menor, heróis grandes ---------- */
:where(.t3) #login { background: #6fb6e8; }
:where(.t3) #login::before { background-image: url('/assets/ui/capa3.jpg'); filter: blur(22px) brightness(.8) saturate(1.1); }
:where(.t3) #cena { background-image: url('/assets/ui/capa3.jpg'); }
:where(.t3) #cena::after { background: linear-gradient(90deg, rgba(111, 182, 232, .9), transparent 6%, transparent 94%, rgba(111, 182, 232, .9)), linear-gradient(transparent 72%, rgba(20, 40, 10, .45) 100%); }
:where(.t3) #logo { width: min(calc(100vh * 1920 / 1072 * .36), 80vw); top: 1.5vh; }
:where(.t3) .luz { background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(255, 236, 160, .55), rgba(255, 210, 110, .18) 45%, transparent 70%); }
:where(.t3) .luz::after { background: radial-gradient(ellipse, rgba(255, 240, 180, .95), transparent 70%); }

/* rodada 1 das fotos (25/11): o drop-shadow borrado com animação no logo pintava um retângulo do fundo atrás dele;
   o anel da skill agora tem furo (o ícone aparece por baixo); o minimapa grande não vira elipse */
:where(.t3) #logo { filter: drop-shadow(0 5px 0 rgba(42, 22, 11, .55)); animation: none; }
:where(.t3) #minimapa.grande { border-radius: 14px; }
:where(.t3) .slot .ico { background-color: #2a1a10; }

/* a coluna de 6 botões de texto à direita da barra vira uma grade 2×3 de pílulas menores (metade da altura).
   Quando o Gemini voltar, viram ícones (brand/gerar-icones3.mjs) */
:where(.t3) .botoes-baixo { grid-template-columns: 1fr 1fr; gap: 6px 6px; align-self: flex-end; }
:where(.t3) .botoes-baixo button { font-size: 13px; padding: 0 6px; border-width: 10px 16px; min-width: 92px; }

/* rodada 2 (26/11): o que ainda era do visual antigo. Hexágono ciano da classe e do herói → anel redondo de madeira
   (slot3.webp, furo de 62% no meio); brilho de escolhido dourado, não ciano; barra do topo em pílulas; tutorial e dica
   em madeira com texto claro; selo "em breve" grosso */
:where(.t3) .classe { color: #fff6e2; text-shadow: var(--sombra-txt); font: 400 14px var(--titulo); letter-spacing: .04em; }
:where(.t3) .classe .soq, :where(.t3) .heroi .soq { width: 84px; height: 84px; }
:where(.t3) .classe .soq::after, :where(.t3) .heroi .soq::after { background-image: url('/assets/ui/slot3.webp'); }
:where(.t3) .classe .soq i, :where(.t3) .heroi .soq i { top: 50%; width: 62%; height: 62%; clip-path: circle(50%); border-radius: 50%; background-color: #3a2414; color: #ffcf5a; }
:where(.t3) .classe.on, :where(.t3) .heroi.on b { color: #ffcf5a; text-shadow: var(--sombra-txt); }
:where(.t3) .classe.on .soq, :where(.t3) .heroi.on .soq { filter: drop-shadow(0 0 0 #ffcf5a) drop-shadow(0 0 9px rgba(255, 207, 90, .95)); }
:where(.t3) .classe.on .soq::after { filter: sepia(.6) saturate(2.2) hue-rotate(-8deg) brightness(1.15); }
:where(.t3) .heroi { color: #fff6e2; }
:where(.t3) .heroi b { font: 400 17px var(--titulo); color: #fff6e2; text-shadow: var(--sombra-txt); }
:where(.t3) .heroi small { font: 400 12px var(--titulo); letter-spacing: .1em; color: #ffcf5a; text-shadow: var(--sombra-txt); }
:where(.t3) .heroi em { font: 700 12px var(--texto); color: #f0dcb8; text-shadow: var(--sombra-txt); }
@media (max-width: 900px) { :where(.t3) .classe { width: 70px; font-size: 12px; } :where(.t3) .classe .soq { width: 64px; height: 64px; } }
@media (max-width: 760px) { :where(.t3) .heroi { width: 96px; } :where(.t3) .heroi .soq { width: 70px; height: 70px; } }

:where(.t3) #cf-nav { gap: 6px; }
:where(.t3) #cf-nav button { font: 400 14px var(--titulo); letter-spacing: .05em; color: #fff; padding: 0 4px; border: 0 solid transparent; border-width: 11px 17px; border-image: url('/assets/ui/botao-madeira3.webp') 64 86 fill / 11px 17px stretch; background: none; border-radius: 0; text-shadow: var(--sombra-txt); }
:where(.t3) #cf-nav button:first-child { color: #fff; background: none; border-image-source: url('/assets/ui/botao-verde3.webp'); text-shadow: 0 2px 0 #1f3b10, 0 0 3px #1f3b10; }
:where(.t3) #cf-nav button.cf-fb { color: #fff; background: none; border-image-source: url('/assets/ui/botao-azul3.webp'); text-shadow: 0 2px 0 #0f2546, 0 0 3px #0f2546; }
@media (max-width: 760px) { :where(.t3) #cf-nav { gap: 4px; } :where(.t3) #cf-nav button { font-size: 11px; letter-spacing: .02em; padding: 0 2px; border-width: 8px 12px; } }

:where(.t3) #tutorial .vidro { box-shadow: none; }
:where(.t3) #tutorial .tut-rotulo { color: #ffcf5a; font-family: var(--titulo); font-weight: 400; }
:where(.t3) #tutorial .tut-passo { color: #f0dcb8; font-family: var(--titulo); font-weight: 400; }
:where(.t3) #tutorial .tut-titulo { font: 400 21px var(--titulo); color: #fff6e2; }
:where(.t3) #tutorial .tut-pular { font: 400 12px var(--titulo); color: #fff6e2; border: 2px solid rgba(255, 246, 226, .55); border-radius: 8px; padding: 1px 8px; }
:where(.t3) #tutorial .tut-dica { border-top: 2px solid rgba(42, 22, 11, .55); color: #ffe7a8; }
:where(.t3) #dica b { font: 400 18px var(--titulo); color: #fff6e2; letter-spacing: .03em; }
:where(.t3) #dica .meta { font: 400 12px var(--titulo); color: #ffcf5a; }
:where(.t3) #dica p { font: 700 14px/1.4 var(--texto); color: #f3e2c4; }
:where(.t3) #tutorial kbd, :where(.t3) #ajuda kbd { font: 400 12px/20px var(--titulo); color: #2a160b; background: #ffcf5a; border: 2px solid var(--tinta); border-radius: 6px; box-shadow: 0 2px 0 var(--tinta); }

:where(.t3) #em-breve b { font: 400 clamp(22px, 2.6vw, 34px)/1 var(--titulo); letter-spacing: .05em; color: #2a160b; background: linear-gradient(180deg, #ffe08a, #f2b33a); border: 4px solid var(--tinta); border-radius: 16px; clip-path: none; box-shadow: 0 5px 0 var(--tinta); }
/* a faixa de runas ciano dos lados da barra de skills era do visual antigo */
:where(.t3) #barra > .vidro::before, :where(.t3) #barra > .vidro::after { display: none; }
/* loja no celular: a 2ª poção saía cortada à direita (os botões grossos não cabiam em 390 px) */
:where(.t3) .pocao { background: rgba(42, 22, 11, .35); box-shadow: inset 0 0 0 2px rgba(42, 22, 11, .5); border-radius: 10px; min-width: 0; }
:where(.t3) .pocao small, :where(.t3) #loja .nota, :where(.t3) .vazio { color: #f0dcb8; }
:where(.t3) .compra { flex-wrap: wrap; justify-content: center; }
@media (max-width: 760px) {
  :where(.t3) .pocoes { gap: 6px; } :where(.t3) .pocao { padding: 6px 4px; }
  :where(.t3) #loja button, :where(.t3) .compra button { font-size: 11px; padding: 0 2px; border-width: 9px 12px; }
}
