/* TELA DE EQUIPAMENTOS — opção A (15/11): src/ui/tela-equipamentos.js. Herói no meio, peças em volta, mochila ao lado. */
/* z 7000: acima da arena e da barra do PC, abaixo do holofote dos guias (8000) e dos diálogos do jogo (10600) */
.teq-fundo{position:fixed;inset:0;z-index:7000;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(4,5,9,.74);color:#e8dcc0;font-family:var(--font-body);box-sizing:border-box}
.teq-fundo[hidden]{display:none!important}
html.teq-aberta #gameTooltip{z-index:12100}
.teq-fundo button{cursor:var(--cur-mao,pointer);font-family:inherit}
.teq-fundo button:disabled{cursor:var(--cur-seta,default)}
.teq-janela{position:relative;display:flex;flex-direction:column;gap:12px;width:min(1000px,100%);max-height:100%;box-sizing:border-box;padding:14px 16px;border:1px solid rgba(214,170,90,.55);border-radius:14px;
  background:linear-gradient(180deg,rgba(28,24,20,.98),rgba(14,13,16,.99));box-shadow:0 24px 60px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,220,150,.08);cursor:var(--cur-seta,default)}
.teq-cab{display:flex;align-items:center;gap:10px;min-height:36px}
.teq-cab h2{margin:0;margin-right:auto;font:700 calc(19px * var(--text-scale,1))/1 var(--font-display);letter-spacing:.14em;color:#f1d79a;white-space:nowrap}
.teq-acoes-topo{display:flex;align-items:center;gap:8px}
.teq-x{width:36px;height:36px;border-radius:9px;border:1px solid rgba(214,170,90,.45);background:rgba(0,0,0,.35);color:#f1e3c0;font-size:17px;padding:0}
.teq-x:hover{border-color:#ffd56a}
.teq-montar{display:flex;align-items:center;gap:8px;height:36px;padding:0 12px 0 6px;border-radius:9px;border:1px solid rgba(255,190,90,.6);
  background:linear-gradient(180deg,#5a3a14,#2e1d0b);color:#ffe2a6;font:800 calc(12px * var(--text-scale,1))/1 Inter,system-ui,sans-serif;letter-spacing:.08em;white-space:nowrap}
.teq-montar.a-pe{background:linear-gradient(180deg,#24402a,#132116);border-color:rgba(111,220,140,.55);color:#d6ffe0}
.teq-montar:not(:disabled):hover{filter:brightness(1.15)}
.teq-montar:disabled{opacity:.6}
.teq-mt-arte{display:inline-block;flex:0 0 auto;width:44px;height:25px;background:no-repeat 0 0/300% 200%}
.teq-corpo{display:flex;gap:16px;min-height:0}
.teq-ficha{display:flex;gap:12px;align-items:stretch;justify-content:center;flex:0 0 auto}
.teq-col{display:flex;flex-direction:column;gap:10px;justify-content:center}
.teq-slot,.teq-cand{position:relative;display:flex;align-items:center;justify-content:center;padding:0;border-radius:10px;border:1px solid rgba(255,255,255,.14);
  background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.06),rgba(0,0,0,.35));color:inherit}
.teq-slot{width:70px;height:70px}
.teq-slot .teq-arte{width:50px;height:50px;object-fit:contain;margin-top:-8px}
.teq-sil{display:inline-flex;width:30px;height:30px;color:rgba(255,255,255,.25);margin-top:-8px}.teq-sil svg{width:100%;height:100%}
.teq-rot{position:absolute;left:0;right:0;bottom:4px;font:700 9px/1 Inter,system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:rgba(232,220,192,.66);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 2px}
.teq-mais{position:absolute;top:3px;right:5px;font:800 calc(11px * var(--text-scale,1))/1 Inter,sans-serif;color:#ffd56a;text-shadow:0 1px 2px #000}
.teq-fundo .r-common{border-color:rgba(200,200,200,.3)}.teq-fundo .r-uncommon{border-color:rgba(134,168,79,.65)}.teq-fundo .r-rare{border-color:rgba(90,150,255,.65)}
.teq-fundo .r-epic{border-color:rgba(186,104,255,.7)}.teq-fundo .r-legendary{border-color:rgba(255,184,77,.75)}
/* 20/11 (print do autor: "os itens não têm os contornos das raridades"): Ancient, Primordial e Mítico tinham o vermelho
   do Sanguine ou cor nenhuma. Cada um com a sua cor; as peças VESTIDAS ganham a mesma moldura do Inventário
   (moldura-raridade.css e sets-blood-castle.css incluem .teq-slot). */
.teq-fundo .r-ancient{border-color:rgba(111,240,176,.75)}.teq-fundo .r-primordial{border-color:var(--rarity-primordial,#fbf8f1)}
.teq-fundo .r-mitico{border-color:var(--rarity-mitico,#ff7fc0)}.teq-fundo .r-sanguine{border-color:var(--bc1,#ff5a6e)}
.teq-slot.sel{outline:2px solid #ffd56a;outline-offset:1px}
.teq-slot.vazio{border-style:dashed}
.teq-slot.sel{border-color:#ffd56a;box-shadow:0 0 0 2px #ffd56a}
.teq-slot:not(.sel):hover,.teq-cand:not(.vazio):hover{border-color:#ffd56a}
.teq-palco{position:relative;width:250px;min-height:350px;border-radius:12px;overflow:hidden;border:1px solid rgba(214,170,90,.25);
  background:radial-gradient(ellipse at 50% 72%,rgba(255,200,110,.2),transparent 55%),linear-gradient(180deg,#1a1820,#0f0e13)}
.teq-retrato{position:absolute;left:0;right:0;top:0;bottom:70px;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
/* 20/11 (print do autor: o herói no dragão vazava do quadro): --teq-cabe (tela-equipamentos.js, caber) encolhe só o que não cabe */
.teq-retrato .col-ficha-lutador{transform:scale(calc(var(--teq-heroi,1.45) * var(--teq-cabe,1)));transform-origin:50% 100%}
/* a pé (16/11): o quadro é do tamanho do herói montado; sem a montaria embaixo dele o herói cresce para ocupar o quadro */
.teq-retrato.teq-a-pe .col-ficha-lutador{transform:scale(calc(var(--teq-heroi,1.45) * var(--teq-a-pe,1.3) * var(--teq-cabe,1)))}
.teq-palco.teq-sem-mt .teq-retrato{bottom:26px}
.teq-mt{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center}
.teq-mt-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:150px;height:58px;padding:2px 0 0;border-radius:10px;border:1px solid rgba(255,184,77,.55);background:rgba(10,9,12,.85);color:inherit}
.teq-mt-slot .teq-mt-arte{width:76px;height:42px}
.teq-mt-slot:hover{border-color:#ffd56a}
.teq-montado{position:absolute;top:-8px;right:-6px;padding:2px 6px;border-radius:6px;background:#2c6b35;color:#d9ffd9;font:800 calc(9px * var(--text-scale,1))/1.2 Inter,sans-serif;letter-spacing:.06em}
.teq-lado{flex:1;display:flex;flex-direction:column;gap:10px;min-width:0}
.teq-atual{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.3);min-height:58px}
.teq-atual-arte{flex:0 0 56px;height:56px;display:flex;align-items:center;justify-content:center}
.teq-atual-arte .teq-arte{width:54px;height:54px;object-fit:contain}.teq-atual-arte .teq-sil{margin:0}
.teq-atual-txt{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.teq-atual-txt small{font:800 calc(9px * var(--text-scale,1))/1 Inter,sans-serif;letter-spacing:.12em;color:#b89a5c}
.teq-atual-txt b{font-size:calc(15px * var(--text-scale,1));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.teq-atual-txt em{font-style:normal;font-size:calc(12px * var(--text-scale,1));color:#bdb39c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.teq-bt{flex:0 0 auto;height:32px;padding:0 14px;border-radius:8px;border:1px solid rgba(214,170,90,.5);background:rgba(0,0,0,.4);color:#f1e3c0;font:800 calc(11px * var(--text-scale,1))/1 Inter,sans-serif;letter-spacing:.08em}
.teq-bt:hover{border-color:#ffd56a}
.teq-moch{display:flex;flex-direction:column;gap:8px}
.teq-moch-cab{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:24px;font:800 calc(10px * var(--text-scale,1))/1 Inter,sans-serif;letter-spacing:.12em;color:#b89a5c}
.teq-moch-cab b{color:#e8dcc0}
.teq-pag{display:flex;align-items:center;gap:6px}
.teq-pag button{width:26px;height:24px;border-radius:6px;border:1px solid rgba(214,170,90,.4);background:rgba(0,0,0,.35);color:#f1e3c0;font-size:15px;line-height:1;padding:0}
.teq-pag button:disabled{opacity:.35}
.teq-grade{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.teq-cand{aspect-ratio:1;max-height:96px;width:100%;box-sizing:border-box}
.teq-cand .teq-arte{width:72%;height:72%;object-fit:contain}
.teq-cand.vazio{border-style:dashed;border-color:rgba(255,255,255,.07);background:rgba(0,0,0,.18)}
.teq-cand.teq-nao{background:repeating-linear-gradient(135deg,rgba(255,255,255,.04) 0 6px,rgba(0,0,0,.35) 6px 12px);opacity:.6}
.teq-up{position:absolute;left:5px;top:3px;color:#5fe07a;font-size:12px;font-weight:900;text-shadow:0 1px 2px #000}
.teq-vazia{font-size:calc(12px * var(--text-scale,1));color:rgba(232,220,192,.55)}
.teq-aviso{min-height:16px;font-size:calc(12px * var(--text-scale,1));color:rgba(232,220,192,.55);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.teq-aviso.on{color:#ffe2a6}
.teq-rodape{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.teq-auto{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:9px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.35);color:#cbbf9f;font:800 calc(11px * var(--text-scale,1))/1 Inter,sans-serif;letter-spacing:.08em;white-space:nowrap}
.teq-auto i{position:relative;width:26px;height:14px;border-radius:8px;background:#555}
.teq-auto i::after{content:"";position:absolute;left:2px;top:2px;width:10px;height:10px;border-radius:50%;background:#ddd;transition:left .15s}
.teq-auto.on{border-color:rgba(95,224,122,.5);background:rgba(20,60,32,.55);color:#cfffd8}
.teq-auto.on i{background:#3fbf5f}.teq-auto.on i::after{left:14px;background:#eaffef}
.teq-auto[hidden]{display:none}
.teq-sets{margin-left:auto;min-width:0;flex:0 1 520px}
.teq-sets .eqs-barra{margin:0}
/* PC baixo (notebook com zoom): tudo encolhe junto para caber sem rolar */
@media (min-width:701px) and (max-height:700px){
  .teq-janela{gap:8px;padding:10px 14px}.teq-palco{min-height:300px}.teq-slot{width:60px;height:60px}.teq-slot .teq-arte{width:42px;height:42px}
  .teq-col{gap:8px}.teq-retrato .col-ficha-lutador{--teq-heroi:1.25}.teq-cand{max-height:74px}.teq-grade{gap:6px}
}
@media (min-width:701px) and (max-height:600px){.teq-palco{min-height:260px}.teq-slot{width:52px;height:52px}.teq-cand{max-height:60px}.teq-retrato .col-ficha-lutador{--teq-heroi:1.05}}
/* celular: folha inteira, ficha em cima e mochila embaixo */
@media (max-width:700px){
  .teq-fundo{padding:0;align-items:stretch}
  .teq-janela{width:100%;max-height:none;height:100%;border-radius:0;border:0;padding:10px 10px calc(10px + env(safe-area-inset-bottom,0px));gap:8px;overflow:hidden}
  /* o cabeçalho não cresce com o texto 130% (não cabe em 360) */
  .teq-cab{gap:6px}.teq-cab h2{font-size:15px;letter-spacing:.08em;min-width:0}
  .teq-montar{height:32px;padding:0 8px 0 4px;font-size:10px;letter-spacing:.04em}.teq-montar .teq-mt-arte{width:36px;height:20px}
  .teq-x{flex:0 0 32px;width:32px;height:32px}
  .teq-corpo{flex-direction:column;gap:8px;flex:1}
  .teq-ficha{gap:6px;flex:1 1 auto;min-height:0}
  .teq-col{gap:6px}
  .teq-slot{width:54px;height:54px}.teq-slot .teq-arte{width:38px;height:38px}.teq-rot{font-size:7.5px;letter-spacing:0;padding:0 1px}
  .teq-palco{width:auto;flex:1;min-height:250px}
  .teq-retrato{bottom:58px}.teq-retrato .col-ficha-lutador{--teq-heroi:1.3}
  .teq-mt-slot{width:120px;height:48px}.teq-mt-slot .teq-mt-arte{width:62px;height:34px}
  .teq-lado{flex:0 0 auto;gap:6px}
  .teq-atual{padding:6px 8px;min-height:0}.teq-atual-arte{flex-basis:42px;height:42px}.teq-atual-arte .teq-arte{width:40px;height:40px}
  .teq-atual-txt b{font-size:calc(13px * var(--text-scale,1))}
  .teq-grade{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .teq-cand{max-height:none}
  .teq-aviso{display:none}.teq-aviso.on{display:block}
  .teq-rodape{gap:6px}.teq-auto{width:100%;justify-content:center}.teq-sets{margin-left:0;width:100%}
}
@media (max-width:700px) and (max-height:760px){.teq-palco{min-height:200px}.teq-retrato .col-ficha-lutador{--teq-heroi:1.05}.teq-cand{max-height:60px;aspect-ratio:auto;height:60px}}
/* celular deitado: lado a lado, compacto */
@media (max-height:500px) and (orientation:landscape){
  .teq-fundo{padding:0}
  .teq-janela{width:100%;height:100%;max-height:none;border-radius:0;padding:6px 10px;gap:6px}
  .teq-cab{min-height:30px}.teq-x,.teq-montar{height:30px}
  .teq-corpo{flex:1;min-height:0}
  .teq-palco{width:170px;min-height:0}.teq-slot{width:48px;height:46px}.teq-slot .teq-arte{width:32px;height:32px}.teq-col{gap:4px}
  .teq-rot{font-size:6.5px;letter-spacing:0;padding:0}.teq-retrato{bottom:50px}.teq-retrato .col-ficha-lutador{--teq-heroi:.95}
  .teq-mt-slot{width:100px;height:42px}.teq-mt-slot .teq-mt-arte{width:54px;height:30px}
  .teq-atual{padding:4px 8px;min-height:0}.teq-atual-arte{flex-basis:36px;height:36px}.teq-atual-arte .teq-arte{width:34px;height:34px}
  .teq-grade{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.teq-cand{max-height:48px}
  .teq-aviso{display:none}
}
/* O VESTIR NO HERÓI no cartão EQUIPADOS do Inventário */
.inv-c-cab-dir{display:flex;align-items:center;gap:8px}
.inv-c-vestir{height:24px;padding:0 9px;border-radius:7px;border:1px solid rgba(214,170,90,.55);background:rgba(90,60,20,.45);color:#ffe2a6;font:800 calc(9.5px * var(--text-scale,1))/1 Inter,sans-serif;letter-spacing:.08em;cursor:var(--cur-mao,pointer);white-space:nowrap}
.inv-c-vestir:hover{border-color:#ffd56a}
/* BRINCOS DE MONSTRO (17/11, SQL 3047; src/ui/brincos-ui.js): 2 lugares pequenos nos cantos de cima do quadro do herói.
   O brinco = a orbe da raridade (a mesma da Domada) com o monstro dentro. */
.teq-brincos{position:absolute;left:8px;right:8px;top:8px;display:flex;justify-content:space-between;pointer-events:none;z-index:2}
.teq-brinco{pointer-events:auto;position:relative;display:flex;align-items:center;justify-content:center;width:50px;height:50px;padding:0;border-radius:50%;
  border:1px solid rgba(255,255,255,.16);background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.06),rgba(0,0,0,.55));color:rgba(255,255,255,.3)}
.teq-brinco.vazio{border-style:dashed}
.teq-brinco:not(.sel):hover{border-color:#ffd56a}
.teq-brinco.sel{border-color:#ffd56a;box-shadow:0 0 0 2px #ffd56a}
.teq-brinco:not(.vazio){border-color:transparent;background:none}
.br-gancho{display:inline-flex;width:24px;height:24px}.br-gancho svg{width:100%;height:100%}
.br-gancho.grande{width:34px;height:34px;color:rgba(255,255,255,.28)}
.br-joia{position:relative;display:block;width:100%;height:100%}
.br-joia .br-orbe{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.br-joia .br-monstro{position:absolute;left:22%;top:22%;width:56%;height:56%;border-radius:50%;object-fit:cover;object-position:50% 20%;pointer-events:none}
.teq-atual-arte .br-joia,.teq-atual-arte .br-joia.grande{width:100%;height:100%;max-width:56px;max-height:56px}
.teq-fundo .br-comum{border-color:rgba(200,200,200,.35)}.teq-fundo .br-raro{border-color:rgba(95,200,120,.6)}
.teq-fundo .br-epico{border-color:rgba(186,104,255,.7)}.teq-fundo .br-lendario{border-color:rgba(255,184,77,.75)}
.br-atual .br-marca{color:#ffd99a;font-weight:700}
.br-atual .teq-atual-txt small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* a mesma altura de linha da Arma (com texto maior a caixa não cresce ao trocar para o brinco) */
.teq-atual-txt b,.teq-atual-txt b.item-name{line-height:calc(19px * var(--text-scale,1))}.teq-atual-txt em{line-height:1.25}
.br-grade .br-cand .br-joia{width:auto;height:78%;aspect-ratio:1}
.br-grade .br-cand.sel{border-color:#ffd56a;box-shadow:0 0 0 2px #ffd56a}
/* tocar num brinco da mochila: o que ele faz + EQUIPAR/RECICLAR/VENDER (cabe na mesma altura do quadro da Arma) */
.br-escolhido .br-ver{cursor:var(--cur-mao,pointer)}.br-escolhido .br-ver:hover .br-linha{color:#fff1c9}
/* 18/11: o efeito inteiro em até 2 linhas, na mesma altura do quadro da Arma (etiqueta + nome + 1 linha) */
.br-escolhido .teq-atual-txt{height:calc(43px * var(--text-scale,1) + 6px);overflow:hidden;justify-content:center}
.br-escolhido .br-rar{font-weight:600;font-size:.78em;color:#bfae86}
.br-escolhido .br-linha{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:calc(11px * var(--text-scale,1));line-height:1.18}
/* PC: os botões numa coluna estreita, para o efeito ter espaço (até 2 linhas inteiras) */
.br-bts{flex:0 0 112px;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:3px}
.br-bts .teq-bt{flex:1 1 0;min-height:16px;max-height:26px;height:auto;padding:0 8px;font-size:calc(9.5px * var(--text-scale,1));cursor:var(--cur-mao,pointer)}
.br-bts .teq-bt:disabled{cursor:var(--cur-seta,default)}
.br-bts .teq-bt.sec{border-color:rgba(255,255,255,.2);color:#d8d0bd}
.br-grade .teq-cand.teq-nao{opacity:.45}
.teq-bt:disabled{opacity:.45}
@media (min-width:701px) and (max-height:700px){.teq-brinco{width:44px;height:44px}}
@media (max-width:700px){
  .teq-brincos{left:6px;right:6px;top:6px}.teq-brinco{width:42px;height:42px}
  .br-bts{flex:0 0 auto;align-self:center;display:grid;grid-template-columns:1fr 1fr;gap:3px}.br-bts [data-br="vestir"]{grid-column:1/-1}.br-bts .teq-bt{flex:none;max-height:none;height:19px;padding:0 6px;font-size:calc(8.5px * var(--text-scale,1));letter-spacing:.03em}
}
@media (max-height:500px) and (orientation:landscape){.teq-brincos{left:4px;right:4px;top:4px}.teq-brinco{width:36px;height:36px}.br-bts .teq-bt{height:16px}}
