/* INTERFACE — direção C "vidro escuro com runas": painéis escuros quase opacos (sem desfoque: o blur por cima do 3D
   custa placa em todo quadro), bordas finas ciano/violeta, cantos chanfrados, soquetes hexagonais nas skills.
   Arte (ícones, retratos, fundo) gerada no Gemini: brand/gerar-icones.mjs → brand/preparar-ui.py → /assets/ui/. */
:root {
  --titulo: 'Cinzel', Georgia, serif; --texto: 'Spectral', Georgia, serif;
  --ciano: #5fe6ff; --ciano2: #2fb8d8; --violeta: #a77bff; --ouro: #ffd27a; --vida: #e2483c; --mana: #3fa8ff;
  --papel: #dff4f6; --apagado: #7f9ca3; --fundo: #05090c;
  --vidro: linear-gradient(180deg, rgba(30, 38, 45, .96), rgba(13, 18, 22, .96));
  --borda: rgba(110, 230, 255, .38); --brilho: 0 0 18px rgba(70, 210, 255, .16), inset 0 0 22px rgba(70, 210, 255, .06);
  --chanfro: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  /* uma faixa de runas desenhada em SVG (não depende de fonte com runas) */
  --runas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='132' fill='none' stroke='%235fe6ff' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M4 4v14M4 6l6-2M4 11l6-2'/%3E%3Cpath d='M4 26v14M4 26l6 4-6 4 6 6'/%3E%3Cpath d='M7 48v14M3 52l4-4 4 4'/%3E%3Cpath d='M3 70l4 7 4-7M7 77v7'/%3E%3Cpath d='M4 92v14M4 92l6 7-6 7'/%3E%3Cpath d='M3 114l8 10M11 114l-8 10M7 112v14'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--fundo); color: var(--papel); font-family: var(--texto); font-size: 15px; overflow: hidden; }
#palco { position: fixed; inset: 0; }
#palco canvas { display: block; width: 100%; height: 100%; }
#rotulos, #numeros { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#erro { position: fixed; left: 8px; bottom: 8px; max-width: 60vw; background: #7a1c1c; color: #fff; padding: 8px 10px; border-radius: 8px; font: 12px/1.4 monospace; z-index: 50; white-space: pre-wrap; }
b { font-weight: 600; }

/* ---------- peças comuns ---------- */
.vidro { position: relative; background: var(--vidro); clip-path: var(--chanfro); }
/* a borda fina que acompanha o chanfro: um contorno por trás do painel */
.moldura { position: relative; padding: 1px; background: linear-gradient(160deg, rgba(110, 230, 255, .55), rgba(167, 123, 255, .35) 55%, rgba(110, 230, 255, .2)); clip-path: var(--chanfro); filter: drop-shadow(0 0 10px rgba(70, 210, 255, .18)); }
.moldura > .vidro { height: 100%; }
.losango { display: inline-block; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--ciano); box-shadow: 0 0 6px var(--ciano); vertical-align: middle; }
.titulo { font-family: var(--titulo); letter-spacing: .08em; }
button, .botao { font: 600 14px var(--titulo); letter-spacing: .1em; text-transform: uppercase; color: var(--papel); cursor: pointer; border: 0; padding: 11px 20px; background: linear-gradient(180deg, rgba(25, 52, 62, .95), rgba(8, 20, 26, .95)); clip-path: var(--chanfro); box-shadow: inset 0 0 0 1px var(--borda); transition: filter .15s, transform .1s; }
button:hover { filter: brightness(1.25); } button:active { transform: translateY(1px); }
button.primario { color: #031014; background: linear-gradient(180deg, #8af0ff, #2fb8d8); box-shadow: inset 0 0 0 1px #c8f8ff, 0 0 20px rgba(95, 230, 255, .5); }
button.grande { font-size: 17px; padding: 15px 34px; }

/* ---------- tela de entrada: o portão (tela 1) com a escolha em hexágonos (tela 5) ----------
   A cena ocupa sempre a ALTURA toda (no ultrawide 32:9 ela não é cortada em cima/embaixo; as laterais ganham o mesmo
   fundo desfocado). As luzes dos pedestais ficam presas aos heróis porque a cena é uma caixa com a proporção da imagem. */
#login { position: fixed; inset: 0; z-index: 20; overflow: hidden; background: #05080a; }
#login::before { content: ''; position: absolute; inset: -40px; background: url('/assets/ui/portao.jpg') center / cover; filter: blur(22px) brightness(.32); }
#cena { position: absolute; left: 50%; top: 0; height: 100%; width: calc(100vh * 1920 / 1072); transform: translateX(-50%); background: url('/assets/ui/portao.jpg') center / 100% 100% no-repeat; transform-origin: 50% 46%; transition: transform 1.1s cubic-bezier(.5, 0, .9, .4), filter 1.1s ease-in; }
#cena::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #05080a, transparent 6%, transparent 94%, #05080a), linear-gradient(transparent 70%, rgba(3, 6, 8, .75) 100%); pointer-events: none; }
#logo { position: absolute; left: 50%; top: .5vh; width: min(calc(100vh * 1920 / 1072 * .54), 96vw); transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .8)); animation: logo 6s ease-in-out infinite; transition: opacity .6s; }
@keyframes logo { 50% { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .8)) drop-shadow(0 0 26px rgba(255, 200, 90, .28)); } }
.luz { position: absolute; width: 11%; height: 32%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 1;
  background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(120, 235, 255, .5), rgba(95, 230, 255, .16) 45%, transparent 70%); mix-blend-mode: screen; }
.luz::after { content: ''; position: absolute; left: 50%; bottom: 4%; width: 80%; height: 9%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(140, 240, 255, .95), transparent 70%); }
.luz.on { opacity: 1; animation: luz 2.2s ease-in-out infinite; }
@keyframes luz { 50% { filter: brightness(1.4); } }
/* o painel: UMA faixa baixa em cima da escada (nome | 5 hexágonos | PLAY), a descrição embaixo */
#entrar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: min(1020px, calc(100vw - 16px)); text-align: center; z-index: 3; transition: opacity .5s; }
#entrar > .moldura > .vidro { padding: 0 8px; }
#entrar .linha-entrar { display: flex; align-items: center; justify-content: center; gap: 16px; }
#nome { width: 230px; flex: none; font: 600 15px var(--titulo); letter-spacing: .06em; padding: 4px 10px; color: #fff; text-align: center; outline: 0;
  border: 11px solid transparent; border-image: url('/assets/ui/botao.webp') 30 / 11px stretch; background: #0b1013 padding-box; }
#nome::placeholder { color: #6f8a92; letter-spacing: .12em; font-size: 13px; }
#classes { display: flex; justify-content: center; gap: 2px; }
.classe { width: 78px; padding: 0; border: 0; background: none; box-shadow: none; clip-path: none; border-image: none; cursor: pointer; display: grid; justify-items: center; gap: 0; font: 600 12px var(--titulo); letter-spacing: .05em; text-transform: none; color: #b9d3d8; transition: transform .15s; }
.classe:hover { transform: translateY(-3px); filter: none; }
.classe .soq { position: relative; width: 62px; height: 72px; }
.classe .soq i { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; background: #061015 center / 125% no-repeat; }
.classe .soq::after { content: ''; position: absolute; inset: 0; background: url('/assets/ui/hex.webp') center / contain no-repeat; }
.classe.on { color: #8ff0ff; text-shadow: 0 0 10px rgba(95, 230, 255, .8); }
.classe.on .soq { filter: drop-shadow(0 0 10px rgba(95, 230, 255, .9)); }
.classe.on .soq::after { filter: brightness(1.35); }
#entrar .grande { flex: none; min-width: 200px; }
#sobre { margin: 2px auto 4px; min-height: 18px; font-size: 13px; font-style: italic; color: #a9c3c8; }
#sobre b { font: 600 10px var(--titulo); letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: var(--ciano); margin-right: 8px; }
.teclas { color: #8aa3aa; font-size: 11px; margin: 4px 0 0; text-shadow: 0 1px 3px #000; }
.teclas kbd { font: 600 10px var(--titulo); padding: 0 5px; border: 1px solid rgba(110, 230, 255, .35); background: rgba(0, 0, 0, .5); color: var(--papel); margin: 0 2px; }
/* PLAY: a câmera mergulha no portão e escurece */
#login.descendo #cena { transform: translateX(-50%) scale(2.4); filter: brightness(0); }
#login.descendo #entrar, #login.descendo #logo { opacity: 0; }
@media (max-width: 900px) {
  #entrar .linha-entrar { flex-direction: column; gap: 6px; } #nome { width: 100%; }
  .classe { width: 64px; font-size: 10px; } .classe .soq { width: 54px; height: 63px; } .classe .soq i { width: 32px; height: 32px; }
  .teclas { display: none; } #logo { top: 3vh; }
}

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
#topo { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; pointer-events: none; font: 600 13px var(--titulo); letter-spacing: .3em; text-transform: uppercase; color: #bfeff7; text-shadow: 0 0 10px rgba(95, 230, 255, .5); white-space: nowrap; }
#topo::before, #topo::after { content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--ciano)); }
#topo::after { transform: scaleX(-1); }
#ping { color: var(--apagado); font: 12px var(--texto); letter-spacing: 0; text-transform: none; text-shadow: none; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); }

/* o grupo (canto de cima à esquerda) */
#party { position: absolute; top: 218px; left: 14px; display: grid; gap: 10px; pointer-events: none; }
/* minimapa (18/10): canto superior esquerdo, moldura de pedra igual aos menus; clique ou N = grande */
#minimapa { position: absolute; top: 14px; left: 14px; width: 190px; height: 190px; cursor: pointer; z-index: 3; border: 2px solid rgba(110, 230, 255, .45); outline: 1px solid rgba(0, 0, 0, .6); background: #06090d; }
#minimapa canvas { display: block; }   /* sem filter/clip-path: o canvas muda 20x/s e o filtro em cima dele corrompia a composição */
#minimapa::after { content: 'N'; position: absolute; right: 8px; bottom: 6px; font: 600 10px var(--titulo); color: rgba(220, 240, 250, .55); letter-spacing: .1em; pointer-events: none; }
#minimapa.grande ~ #party { display: none; }
.membro { display: flex; gap: 10px; align-items: center; width: 236px; }
.membro .ret { width: 54px; height: 54px; flex: none; padding: 2px; clip-path: var(--chanfro); background: linear-gradient(160deg, var(--ciano), rgba(167, 123, 255, .6)); box-shadow: 0 0 12px rgba(95, 230, 255, .35); }
.membro .ret i { display: block; width: 100%; height: 100%; clip-path: var(--chanfro); background: #061015 center / cover; }
.membro.eu .ret { background: linear-gradient(160deg, var(--ouro), var(--ciano)); }
.membro .txt { flex: 1; min-width: 0; }
.membro b { display: block; font: 600 15px var(--titulo); letter-spacing: .04em; text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.membro small { color: var(--ciano); font: 600 10px var(--titulo); letter-spacing: .18em; text-transform: uppercase; }
.membro.morto { filter: grayscale(1) brightness(.6); }
.membro .reviver { color: var(--ouro); }
.b { position: relative; height: 6px; margin-top: 4px; background: rgba(0, 0, 0, .65); box-shadow: inset 0 0 0 1px rgba(110, 230, 255, .2); overflow: hidden; }
.b .v { height: 100%; background: linear-gradient(90deg, #8f1f1a, var(--vida) 70%, #ff8a72); box-shadow: 0 0 8px rgba(226, 72, 60, .6); transition: width .15s; }
.b.m .v { background: linear-gradient(90deg, #1b4f9a, var(--mana) 70%, #9fe0ff); box-shadow: 0 0 8px rgba(63, 168, 255, .6); }

/* registro (canto de baixo à direita), como o painel da referência */
#log { position: absolute; right: 14px; bottom: 14px; width: 340px; padding: 1px; pointer-events: none; }
/* chat global (22/10): canto de baixo à esquerda, acima do painel da praça */
#chat { position: absolute; left: 14px; bottom: 132px; width: min(400px, 40vw); pointer-events: none; z-index: 4; }
#chat-linhas { display: flex; flex-direction: column; gap: 3px; max-height: 220px; overflow: hidden; justify-content: flex-end; }
#chat .msg { font: 500 14px var(--texto); color: #eef3f4; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.8); line-height: 1.35; transition: opacity 1.5s; overflow-wrap: anywhere; }
#chat .msg b { font: 700 13px var(--titulo); letter-spacing: .03em; margin-right: 6px; }
#chat .msg .gm { background: linear-gradient(180deg, #ffe08a, #c8961e); color: #2a1a06; font: 800 10px var(--titulo); padding: 1px 4px; border-radius: 3px; margin-right: 5px; }
#chat .msg.velha { opacity: 0; }
#chat.aberto .msg.velha { opacity: .85; }
#chat-input { pointer-events: auto; width: 100%; margin-top: 6px; box-sizing: border-box; padding: 8px 10px; font: 500 14px var(--texto); color: #fff; background: rgba(6, 12, 16, .88); border: 1px solid rgba(110, 230, 255, .55); border-radius: 4px; outline: none; }
#chat-dica { margin: 4px 0 0; font: 600 11px var(--titulo); color: rgba(220, 240, 250, .55); letter-spacing: .08em; }
#chat.aberto #chat-dica { display: none; }
@media (max-width: 760px) { #chat { bottom: 96px; width: 70vw; } }
#log > .vidro { padding: 12px 16px 10px; display: grid; gap: 2px; min-height: 40px; }
#log .vidro::before { content: ''; position: absolute; left: 50%; top: 0; width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid var(--ciano); background: #061015; }
.linha { font-size: 14px; line-height: 1.35; padding: 3px 0; border-bottom: 1px solid rgba(110, 230, 255, .1); transition: opacity 1.2s; color: #cfe7ea; }
.linha:last-child { border-bottom: 0; }
.linha.velha { opacity: .45; } .linha b { color: #8ff0ff; font-weight: 600; }
.linha.bad b, .linha.bad { color: #ff9b8f; } .linha.good b { color: #8fffb0; } .linha.mem { color: #d4c2ff; font-style: italic; } .linha.sys { color: #a9c3c8; }
.linha small { color: var(--apagado); font-size: 11px; }
.casta { font: 700 9px var(--titulo); letter-spacing: .15em; padding: 1px 6px; color: #031014; background: var(--ciano); vertical-align: 2px; } .casta.elite { background: var(--violeta); } .casta.chefe { background: var(--vida); color: #fff; }

/* dica do enigma */
#hint { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); padding: 9px 22px; pointer-events: none; font-style: italic; color: #cff6ff; background: var(--vidro); clip-path: var(--chanfro); box-shadow: inset 0 0 0 1px var(--borda); white-space: nowrap; }
#hint::before { content: '◆ '; color: var(--ciano); font-style: normal; }

/* faixa grande (emboscada, chefe acordou) */
#banner { position: absolute; top: 26%; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; white-space: nowrap; }
#banner h2 { font: 700 clamp(36px, 5vw, 64px)/1 var(--titulo); letter-spacing: .16em; margin: 0; color: #f0fdff; text-transform: uppercase; text-shadow: 0 0 26px rgba(95, 230, 255, .65), 0 4px 20px #000; }
#banner p { margin: 10px 0 0; font: italic 19px var(--texto); color: #c9b6ff; display: flex; align-items: center; justify-content: center; gap: 14px; }
#banner p::before, #banner p::after { content: ''; width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--violeta)); }
#banner p::after { transform: scaleX(-1); }
#banner.vai { animation: sobe 2.6s ease-out forwards; }
@keyframes sobe { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.92); letter-spacing: .3em; } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* barra do chefe: hexágono comprido com caveira e runas */
#boss { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); width: min(620px, 72vw); text-align: center; pointer-events: none; }
#boss-nome { display: block; font: 700 22px var(--titulo); letter-spacing: .22em; text-transform: uppercase; color: #f3e9ff; text-shadow: 0 0 14px rgba(167, 123, 255, .7); margin-bottom: 6px; }
#boss .placa { position: relative; display: flex; align-items: center; height: 34px; padding: 0 28px 0 46px; background: linear-gradient(90deg, rgba(110, 230, 255, .6), rgba(167, 123, 255, .6)); clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%); filter: drop-shadow(0 0 12px rgba(95, 230, 255, .35)); }
#boss .placa::before { content: ''; position: absolute; inset: 1px; background: #050b0f; clip-path: inherit; }
#boss .cav { position: absolute; left: 14px; top: 50%; width: 28px; height: 28px; transform: translateY(-50%); z-index: 1; display: grid; place-items: center; font-size: 17px; filter: grayscale(1) brightness(2); }
#boss .b { flex: 1; height: 14px; margin: 0; z-index: 1; background: #1a0c0e; box-shadow: inset 0 0 0 1px rgba(255, 120, 100, .35); }
#boss .b .v { background: linear-gradient(180deg, #ff7a66, #b0281e); }
#boss-txt { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 2; font: 600 12px var(--titulo); letter-spacing: .1em; color: #fff; text-shadow: 0 1px 3px #000; }

/* caído */
#caido { position: absolute; top: 38%; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; padding: 18px 34px; background: linear-gradient(180deg, rgba(48, 10, 16, .92), rgba(16, 4, 8, .9)); clip-path: var(--chanfro); box-shadow: inset 0 0 0 1px rgba(255, 110, 110, .4); }
#caido h2 { margin: 0 0 6px; font: 700 26px var(--titulo); letter-spacing: .14em; text-transform: uppercase; color: #ffd0cc; }
#caido p { margin: 0; color: #e8c4c0; }

/* trocar de classe na praça: os 5 retratos */
#hub { position: absolute; left: 14px; bottom: 14px; padding: 1px; }
#hub .vidro { padding: 10px 12px; display: grid; gap: 6px; }
#hub .rotulo-hub { font: 600 10px var(--titulo); letter-spacing: .25em; text-transform: uppercase; color: var(--ciano); }
#trocar { display: flex; gap: 6px; }
#trocar button { width: 46px; height: 46px; padding: 2px; background: rgba(110, 230, 255, .2); box-shadow: none; }
#trocar button i { display: block; width: 100%; height: 100%; clip-path: var(--chanfro); background: #061015 center / cover; }
#trocar button.on { background: linear-gradient(160deg, var(--ciano), var(--violeta)); }

/* ficha do portal */
#portal { position: absolute; left: 50%; bottom: 236px; transform: translateX(-50%); width: min(540px, 92vw); padding: 1px; }
#portal .vidro { padding: 18px 22px 16px; }
#portal h3 { margin: 0 0 4px; font: 700 24px var(--titulo); letter-spacing: .1em; text-transform: uppercase; }
#portal p { margin: 4px 0; color: #c4dde1; } #portal .mem { color: #d4c2ff; font-style: italic; font-size: 14px; }
#portal .membros { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
#portal .membros span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; font-size: 14px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(110, 230, 255, .25); clip-path: var(--chanfro); }
#portal .membros i { width: 24px; height: 24px; clip-path: var(--chanfro); background: center / cover; }
#portal .membros small { color: var(--apagado); }
#portal .botoes { display: flex; gap: 10px; justify-content: flex-end; }

/* a barra de baixo: vida e mana em cima, 5 soquetes hexagonais, runas dos lados */
#baixo { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 10px; }
#barra { padding: 1px; }
#barra > .vidro { padding: 12px 34px 10px; }
#barra > .vidro::before, #barra > .vidro::after { content: ''; position: absolute; top: 12px; bottom: 12px; width: 14px; background: var(--runas) repeat-y center / 12px 112px; opacity: .55; }
#barra > .vidro::before { left: 9px; } #barra > .vidro::after { right: 9px; }
#barras { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 0 6px 10px; }
#barras .item { display: flex; align-items: center; gap: 7px; }
#barras .item > span:first-child { width: 14px; text-align: center; font-size: 12px; }
#barras .b { flex: 1; height: 10px; margin: 0; }
#barras .b .esc { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, rgba(255, 230, 150, .9), rgba(255, 210, 122, .6)); box-shadow: 0 0 8px var(--ouro); }
#barras .num { width: 64px; font: 600 12px var(--titulo); color: #cfe7ea; text-align: right; position: static; margin: 0; text-shadow: none; }
#efeitos { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); display: flex; gap: 5px; white-space: nowrap; pointer-events: none; }
.ef { font: 600 11px var(--titulo); letter-spacing: .06em; padding: 3px 9px; background: var(--vidro); clip-path: var(--chanfro); box-shadow: inset 0 0 0 1px var(--borda); color: #cff6ff; }
.ef.ruim { box-shadow: inset 0 0 0 1px rgba(255, 110, 110, .6); color: #ffb3ad; }
#skills { display: flex; gap: 12px; align-items: flex-end; justify-content: center; }
.slot { position: relative; width: 72px; cursor: pointer; user-select: none; display: grid; justify-items: center; gap: 4px; }
.slot .hex { position: relative; width: 72px; height: 82px; padding: 2px; clip-path: var(--hex); background: linear-gradient(160deg, var(--ciano), rgba(47, 184, 216, .35) 60%, var(--ciano2)); transition: filter .15s; }
.slot .hex::after { content: ''; position: absolute; inset: 0; clip-path: var(--hex); box-shadow: inset 0 0 14px rgba(95, 230, 255, .55); pointer-events: none; }
.slot .ico { width: 100%; height: 100%; clip-path: var(--hex); background: #061015 center / cover; }
.slot .cd { position: absolute; inset: 2px; clip-path: var(--hex); display: grid; place-content: center; font: 700 22px var(--titulo); color: #fff; text-shadow: 0 0 6px #000, 0 0 2px #000; pointer-events: none;
  background: conic-gradient(rgba(2, 8, 12, .78) calc(var(--k, 0) * 360deg), transparent 0); }
.slot .tecla { font: 600 11px var(--titulo); letter-spacing: .08em; min-width: 30px; text-align: center; padding: 2px 6px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(110, 230, 255, .3); color: #d9f6fa; }
.slot .custo { position: absolute; top: 2px; right: 0; font: 600 10px var(--titulo); color: #9fd8ff; text-shadow: 0 1px 2px #000; }
.slot:hover .hex { filter: brightness(1.3); }
.slot.frio .ico { filter: grayscale(.7) brightness(.6); }
.slot.sem-mana .ico { filter: grayscale(.4) brightness(.55) sepia(1) hue-rotate(170deg); }
.slot.pronto .hex { animation: pronto .5s ease-out; }
@keyframes pronto { 0% { filter: brightness(2.4); } 100% { filter: brightness(1); } }
.slot.ult { width: 84px; } .slot.ult .hex { width: 84px; height: 96px; background: linear-gradient(160deg, #e3c8ff, var(--violeta) 45%, var(--ouro)); }
.slot.ult .hex::after { box-shadow: inset 0 0 18px rgba(200, 160, 255, .8); }
.slot.ult:not(.frio) .hex { animation: ultpulsa 2.4s ease-in-out infinite; }
@keyframes ultpulsa { 50% { filter: brightness(1.35) drop-shadow(0 0 8px #a77bff); } }
#dica { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: 300px; padding: 1px; pointer-events: none; }
#dica .vidro { padding: 12px 16px; text-align: left; }
#dica b { font: 700 16px var(--titulo); letter-spacing: .06em; color: #eafcff; } #dica .meta { float: right; font: 600 11px var(--titulo); color: var(--ciano); margin-top: 3px; }
#dica p { margin: 6px 0 0; color: #b9d3d7; font-size: 14px; line-height: 1.35; }
#sair { padding: 9px 14px; font-size: 11px; margin-bottom: 4px; }

/* ajuda (Tab) */
#ajuda { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 92vw); padding: 1px; }
#ajuda .vidro { padding: 20px 26px; }
#ajuda h3 { margin: 0 0 10px; font: 700 20px var(--titulo); letter-spacing: .14em; text-transform: uppercase; }
#ajuda p { color: #c4dde1; line-height: 1.5; }

/* fim da run */
#fim { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, 94vw); padding: 1px; text-align: center; }
#fim .vidro { padding: 26px 30px 24px; }
#fim h2 { margin: 0; font: 700 46px/1.1 var(--titulo); letter-spacing: .16em; text-transform: uppercase; color: #f0fdff; text-shadow: 0 0 24px rgba(95, 230, 255, .6); }
#fim.derrota h2 { color: #ffd6d0; text-shadow: 0 0 24px rgba(255, 90, 70, .55); }
#fim-sub { color: #a9c3c8; font-style: italic; margin: 8px 0 16px; }
#fim table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
#fim th { font: 600 10px var(--titulo); letter-spacing: .2em; text-transform: uppercase; color: var(--apagado); padding: 4px 8px; text-align: right; }
#fim th:first-child, #fim td:first-child { text-align: left; }
#fim td { padding: 6px 8px; text-align: right; border-top: 1px solid rgba(110, 230, 255, .12); font: 600 15px var(--titulo); }
#fim td .quem { display: inline-flex; align-items: center; gap: 8px; }
#fim td i { width: 28px; height: 28px; clip-path: var(--chanfro); background: center / cover; }
#fim .mem { color: #d4c2ff; font-style: italic; margin: 0 auto 18px; max-width: 460px; }

/* rótulos no mundo */
.rotulo { position: absolute; left: 0; top: 0; font: 600 12px var(--titulo); letter-spacing: .05em; padding: 1px 8px; background: rgba(4, 10, 14, .72); border-bottom: 2px solid; margin-left: -30px; margin-top: -26px; white-space: nowrap; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 50%, calc(100% - 4px) 100%, 4px 100%, 0 50%); }
.barra-mob { position: absolute; left: 0; top: 0; width: 46px; height: 5px; background: rgba(0, 0, 0, .75); box-shadow: 0 0 0 1px rgba(255, 120, 100, .35); margin-left: -23px; margin-top: -10px; overflow: hidden; }
.barra-mob i { display: block; height: 100%; background: linear-gradient(90deg, #a8261c, #ff6a52); }
.num { position: absolute; left: 0; top: 0; font: 700 19px var(--titulo); color: #ffe7a8; text-shadow: 0 0 2px #000, 0 2px 6px #000; margin-left: -10px; margin-top: -10px; }
.num.dano-heroi { color: #ff8b7a; } .num.cura { color: #8fffb0; }

@media (max-width: 1100px) { #classes { grid-template-columns: repeat(3, 1fr); } #log { width: 280px; } }
@media (max-width: 760px) {
  #classes { grid-template-columns: repeat(2, 1fr); } .classe small { display: none; }
  #log { display: none; } #party { transform: scale(.8); transform-origin: top left; }
  #baixo { transform: translateX(-50%) scale(.72); transform-origin: bottom center; }
}

/* ---------- MENUS v2 (17/10): "ardósia escura com rachaduras ciano", casando com a logo ----------
   As peças são imagens geradas no Gemini (brand/gerar-pecas.mjs → brand/preparar-pecas.py) usadas como border-image:
   painel.webp (moldura com runas nos cantos), botao.webp / botao-ouro.webp, hex.webp (soquete das skills). */
.moldura { padding: 0; background: none; clip-path: none; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); }
.moldura > .vidro { background: none; clip-path: none; border: 20px solid transparent; border-image: url('/assets/ui/painel.webp') 54 fill / 20px stretch; }
#log > .vidro { padding: 0 4px; } #log .vidro::before { display: none; }
#portal .vidro { padding: 4px 8px 2px; } #hub .vidro { padding: 0 2px; } #ajuda .vidro { padding: 6px 10px; } #fim .vidro { padding: 10px 14px 8px; } #dica .vidro { padding: 0 4px; }
#barra > .vidro { padding: 0 22px; }
#barra > .vidro::before { left: -6px; } #barra > .vidro::after { right: -6px; }
button, .botao { clip-path: none; box-shadow: none; padding: 4px 16px; border: 12px solid transparent; border-image: url('/assets/ui/botao.webp') 30 / 12px stretch; background: #0e1418 padding-box; color: #cfeff5; }
button.primario { color: #ffe3a3; background: linear-gradient(180deg, #2a2116, #120e09) padding-box; border-image-source: url('/assets/ui/botao-ouro.webp'); box-shadow: none; text-shadow: 0 0 10px rgba(255, 190, 80, .6); filter: drop-shadow(0 0 12px rgba(255, 190, 80, .25)); }
button.grande { font-size: 19px; padding: 6px 30px; letter-spacing: .18em; }
#trocar button, .classe { border: 0; border-image: none; background: none; padding: 0; }
#trocar button { width: 46px; height: 46px; border: 4px solid transparent; border-image: url('/assets/ui/painel.webp') 54 fill / 4px; }
#trocar button.on { border-image: none; background: linear-gradient(160deg, var(--ciano), #2c353d); padding: 2px; }
/* retratos do grupo: moldurinha de pedra */
.membro .ret { width: 56px; height: 56px; padding: 0; clip-path: none; background: none; box-shadow: none; border: 6px solid transparent; border-image: url('/assets/ui/painel.webp') 54 fill / 6px; }
.membro .ret i { clip-path: none; }
.membro.eu .ret { filter: drop-shadow(0 0 6px rgba(255, 210, 122, .8)); }
/* soquetes das skills: o anel de pedra por cima do ícone redondo */
.slot { width: 84px; }
.slot .hex { width: 84px; height: 98px; padding: 0; clip-path: none; background: none; }
.slot .hex::after { inset: 0; clip-path: none; box-shadow: none; background: url('/assets/ui/hex.webp') center / contain no-repeat; }
.slot .ico { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; transform: translate(-50%, -50%); clip-path: none; border-radius: 50%; background-size: 125%; background-position: center; }
.slot .cd { inset: auto; left: 50%; top: 50%; width: 50px; height: 50px; transform: translate(-50%, -50%); clip-path: none; border-radius: 50%; }
.slot.ult { width: 98px; } .slot.ult .hex { width: 98px; height: 114px; background: none; }
.slot.ult .hex::after { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.05); box-shadow: none; }
.slot.ult .ico, .slot.ult .cd { width: 58px; height: 58px; }
.slot.ult:not(.frio) .hex { animation: ultpulsa 2.4s ease-in-out infinite; }
@keyframes ultpulsa { 50% { filter: brightness(1.25) drop-shadow(0 0 10px rgba(255, 200, 90, .7)); } }
.slot .tecla { border: 0; box-shadow: none; background: rgba(8, 12, 15, .85); outline: 1px solid rgba(110, 230, 255, .35); }
.slot .custo { top: 8px; right: 4px; }
/* barra do chefe e marca no canto */
#boss .placa { background: linear-gradient(90deg, rgba(95, 230, 255, .7), #3a454e 30%, #3a454e 70%, rgba(95, 230, 255, .7)); }
#boss .placa::before { background: #0c1115; }
#boss-nome { color: #eafcff; text-shadow: 0 0 14px rgba(95, 230, 255, .6); }
#marca { position: absolute; right: 16px; top: 10px; width: 170px; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .8)); opacity: .95; }
#hint, #caido, .ef { border: 0; }
@media (max-width: 760px) { #marca { display: none; } }

/* peças v2 mais limpas (17/10, "muitos raios, poluído"): pedra lisa, poucas rachaduras; o soquete tem furo HEXAGONAL
   (46% da largura e da altura, centro a 49% da altura), então ícone e recarga são recortados em hexágono nesse furo */
.moldura > .vidro { border-image: url('/assets/ui/painel.webp') 40 fill / 20px stretch; }
button, .botao, #nome { border-image-slice: 34; }
#trocar button, .membro .ret { border-image-slice: 40; }
.slot { width: 96px; } .slot .hex { width: 96px; height: 113px; }
.slot .ico, .slot .cd { top: 49.2%; width: 48%; height: 48%; border-radius: 0; clip-path: var(--hex); background-size: 120%; }
.slot.ult { width: 112px; } .slot.ult .hex { width: 112px; height: 132px; }
.slot.ult .ico, .slot.ult .cd { width: 48%; height: 48%; }
.slot .custo { top: 14px; right: 8px; }
.classe { width: 92px; } .classe .soq { width: 84px; height: 99px; }
.classe .soq i { top: 49.2%; width: 48%; height: 48%; border-radius: 0; clip-path: var(--hex); background-size: 120%; }
@media (max-width: 900px) { .classe { width: 66px; } .classe .soq { width: 60px; height: 71px; } }

/* ---------- entrada como MMO (17/10): conta → seus heróis → criar herói ---------- */
#email, #senha, #novo-nome { display: block; width: 100%; font: 600 15px var(--titulo); letter-spacing: .06em; padding: 4px 10px; color: #fff; text-align: center; outline: 0;
  border: 11px solid transparent; border-image: url('/assets/ui/botao.webp') 34 / 11px stretch; background: #0b1013 padding-box; }
#email::placeholder, #senha::placeholder, #novo-nome::placeholder { color: #6f8a92; letter-spacing: .12em; font-size: 13px; }
#email:focus, #senha:focus, #novo-nome:focus { filter: brightness(1.25) drop-shadow(0 0 6px rgba(95, 230, 255, .5)); }
.tela .vidro { padding: 2px 10px 4px !important; }
.tela .acoes { display: grid; gap: 6px; justify-items: center; flex: none; }
.tela .erro { margin: 6px 0 0; color: #ff9b8f; font-style: italic; }
.tela .nota { margin: 6px auto 0; color: #7f9ca3; font-size: 12px; font-style: italic; max-width: 640px; }
#tela-conta .campos { display: grid; gap: 6px; width: 300px; }
#troca-modo { margin: 0; font-size: 13px; color: #a9c3c8; } #troca-modo a { color: var(--ciano); }
.ou { font: 600 12px var(--titulo); letter-spacing: .3em; text-transform: uppercase; color: #6f8a92; }
button.phantom { display: inline-flex; align-items: center; gap: 10px; color: #fff; background: linear-gradient(180deg, #4a3d7a, #2a2246) padding-box; }
button.phantom img { width: 26px; height: 26px; border-radius: 6px; }
.topo-tela { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 2px; }
.topo-tela .titulo { font: 700 15px var(--titulo); letter-spacing: .25em; text-transform: uppercase; color: #eafcff; }
#conta-rotulo { font-size: 12px; color: #7f9ca3; }
#lista-herois { display: flex; gap: 4px; }
.heroi { width: 128px; padding: 0 0 4px; border: 0; border-image: none; background: none; display: grid; justify-items: center; gap: 0; cursor: pointer; color: #b9d3d8; text-transform: none; letter-spacing: normal; font: 400 12px var(--texto); transition: transform .15s; }
.heroi:hover { transform: translateY(-3px); filter: none; }
.heroi .soq { position: relative; width: 74px; height: 87px; }
.heroi .soq i { position: absolute; left: 50%; top: 49.2%; width: 48%; height: 48%; transform: translate(-50%, -50%); clip-path: var(--hex); background: #061015 center / 120% no-repeat; font: 700 26px var(--titulo); font-style: normal; color: var(--ciano); display: grid; place-content: center; }
.heroi .soq::after { content: ''; position: absolute; inset: 0; background: url('/assets/ui/hex.webp') center / contain no-repeat; }
.heroi b { font: 700 15px var(--titulo); color: #eafcff; letter-spacing: .04em; }
.heroi small { font: 600 10px var(--titulo); letter-spacing: .18em; text-transform: uppercase; color: var(--ciano); }
.heroi em { font-size: 11px; color: #8aa3aa; line-height: 1.3; margin-top: 2px; }
.heroi.on .soq { filter: drop-shadow(0 0 10px rgba(95, 230, 255, .9)); } .heroi.on b { color: #8ff0ff; text-shadow: 0 0 10px rgba(95, 230, 255, .7); }
.heroi.novo { opacity: .75; } .heroi.novo:hover { opacity: 1; }
.menores { display: flex; gap: 6px; } .menores button { font-size: 11px; padding: 2px 10px; }
#previa { width: 200px; height: 250px; flex: none; cursor: grab; background: radial-gradient(ellipse at 50% 70%, rgba(95, 230, 255, .14), transparent 65%); }
.col-criar { display: grid; gap: 4px; justify-items: center; min-width: 0; }
.col-criar #novo-nome { width: 280px; }
#criar-classes { display: flex; gap: 2px; }
#criar-sobre { margin: 0; font-size: 13px; font-style: italic; color: #a9c3c8; max-width: 520px; text-align: center; }
#criar-sobre b { font: 600 10px var(--titulo); letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: var(--ciano); margin-right: 8px; }
.aparencia { display: grid; grid-template-columns: auto auto; gap: 4px 18px; }
.aparencia label { display: flex; align-items: center; gap: 8px; font: 600 10px var(--titulo); letter-spacing: .15em; text-transform: uppercase; color: #8aa3aa; justify-content: flex-end; }
.amostras { display: flex; gap: 4px; }
.amostras .cor { width: 22px; height: 22px; padding: 0; border: 0; border-image: none; clip-path: var(--hex); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); }
.amostras .cor.on { outline: 2px solid var(--ciano); outline-offset: 1px; filter: drop-shadow(0 0 5px var(--ciano)); clip-path: none; }
.amostras .estilo { font-size: 11px; padding: 1px 8px; border-width: 8px; letter-spacing: .06em; text-transform: none; color: #b9d3d8; }
.amostras .estilo.on { color: #8ff0ff; text-shadow: 0 0 8px rgba(95, 230, 255, .9); filter: brightness(1.3) drop-shadow(0 0 6px rgba(95, 230, 255, .6)); }
#criar-skills { display: flex; gap: 3px; } #criar-skills i { width: 26px; height: 30px; clip-path: var(--hex); background: center / 120%; }

@media (max-width: 900px) {
  #tela-conta .campos { width: 100%; } #lista-herois { flex-wrap: wrap; justify-content: center; } .heroi { width: 92px; }
  #previa { width: 130px; height: 170px; } .aparencia { grid-template-columns: 1fr; } .col-criar #novo-nome { width: 100%; }
}

/* ---------- progressão (17/10): nível, experiência, crítico, ficha (C), Normal/Heroico no portal ---------- */
#xp { position: relative; height: 9px; margin: 6px 6px 2px; background: rgba(0, 0, 0, .7); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .3); }
#xp .v { height: 100%; width: 0; background: linear-gradient(90deg, #7a5a12, #ffd23f 80%, #fff1b0); box-shadow: 0 0 8px rgba(255, 210, 63, .6); transition: width .4s; }
#xp span { position: absolute; inset: -4px 0 0; text-align: center; font: 600 10px var(--titulo); letter-spacing: .1em; color: #fff3d0; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.membro .nv, .rotulo i { display: inline-block; min-width: 20px; margin-right: 6px; padding: 0 4px; font: 700 11px var(--titulo); font-style: normal; text-align: center; color: #1a1408; background: linear-gradient(#ffe08a, #c9962e); clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 50%, calc(100% - 4px) 100%, 4px 100%, 0 50%); vertical-align: 1px; }
.num.crit { font-size: 27px; color: #ffd23f; text-shadow: 0 0 2px #000, 0 0 12px rgba(255, 150, 40, .9); }
#ficha { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 430px; }
#ficha .vidro { padding: 4px 10px; }
#ficha h3 { margin: 0 0 8px; font: 700 20px var(--titulo); letter-spacing: .08em; color: #eafcff; } #ficha h3 small { display: block; font: 600 11px var(--titulo); letter-spacing: .2em; text-transform: uppercase; color: var(--ciano); }
#ficha table { width: 100%; border-collapse: collapse; }
#ficha th { text-align: left; font: 600 13px var(--titulo); color: #cfe7ea; padding: 4px 0; } #ficha td { font: 700 16px var(--titulo); color: #ffe08a; text-align: right; padding: 4px 8px; }
#ficha td.explica { font: italic 11px var(--texto); color: #7f9ca3; text-align: left; }
#ficha tr { border-top: 1px solid rgba(110, 230, 255, .1); }
#ficha .derivados { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; margin-top: 10px; font-size: 12px; color: #a9c3c8; } #ficha .derivados b { color: #eafcff; font: 700 14px var(--titulo); margin-left: 4px; }
#ficha .nota { font-size: 11px; color: #7f9ca3; font-style: italic; margin: 8px 0 0; }
#portal .botoes button small { display: block; font-size: 10px; letter-spacing: .12em; opacity: .85; }
button.heroico { color: #ffd0f0; background: linear-gradient(180deg, #3a1630, #1a0a16) padding-box; text-shadow: 0 0 8px rgba(255, 90, 180, .6); }
.faixa-dificil small { color: #ff8b7a; } .faixa-facil small { color: #8aa3aa; }

/* ---------- itens (17/10): inventário (I), dica com comparação, raridades ---------- */
.r-comum { color: #cfd6da; } .r-raro { color: #4aa8ff; } .r-epico { color: #b77bff; } .r-lendario { color: #ff9a2a; }
.linha.loot b { font-weight: 600; } .linha.lend { color: #ffd6a0; text-shadow: 0 0 8px rgba(255, 150, 40, .5); }
.botoes-baixo { display: grid; gap: 6px; margin-bottom: 4px; } .botoes-baixo button { padding: 6px 14px; font-size: 11px; }
#inventario { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: min(640px, 96vw); }
#inventario .vidro { padding: 2px 8px 6px; }
.inv-topo { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .inv-topo .titulo { font: 700 18px var(--titulo); letter-spacing: .2em; text-transform: uppercase; color: #eafcff; } .inv-topo small { color: #7f9ca3; font-size: 11px; }
.inv-corpo { display: grid; grid-template-columns: 196px 1fr; gap: 14px; }
#inv-equip { position: relative; display: grid; grid-template-columns: 58px 1fr 58px; grid-template-rows: repeat(4, 58px); gap: 6px; }
#inv-equip .eq-cabeca { grid-area: 1 / 1; } #inv-equip .eq-peito { grid-area: 2 / 1; } #inv-equip .eq-maos { grid-area: 3 / 1; } #inv-equip .eq-pes { grid-area: 4 / 1; }
#inv-equip .eq-arma { grid-area: 1 / 3; } #inv-equip .eq-secundaria { grid-area: 2 / 3; } #inv-equip .eq-anel { grid-area: 3 / 3; } #inv-equip .eq-amuleto { grid-area: 4 / 3; }
.inv-retrato { grid-area: 1 / 2 / 5 / 3; background: center / cover; opacity: .55; clip-path: var(--hex); align-self: center; height: 110px; }
#inv-bolsa { display: grid; grid-template-columns: repeat(6, 58px); gap: 6px; }
#inv-conta { margin: 6px 0 0; text-align: right; font: 600 11px var(--titulo); color: #7f9ca3; }
#inventario .item { position: relative; width: 58px; height: 58px; padding: 0; border: 0; border-image: none; clip-path: none; background: #0b1114; box-shadow: inset 0 0 0 1px rgba(110, 230, 255, .14); cursor: pointer; filter: none; }
#inventario .item i { position: absolute; inset: 3px; background: center / cover; }
#inventario .item b { position: absolute; right: 3px; bottom: 1px; font: 700 10px var(--titulo); color: #fff; text-shadow: 0 0 2px #000, 0 0 3px #000; }
#inventario .item small { font: 600 8px var(--titulo); letter-spacing: .1em; text-transform: uppercase; color: #3f5a62; }
#inventario .item.r-comum { box-shadow: inset 0 0 0 2px #59646a; } #inventario .item.r-raro { box-shadow: inset 0 0 0 2px #2f7fd6, 0 0 6px rgba(74, 168, 255, .4); }
#inventario .item.r-epico { box-shadow: inset 0 0 0 2px #8a52e0, 0 0 8px rgba(183, 123, 255, .5); } #inventario .item.r-lendario { box-shadow: inset 0 0 0 2px #ff8a1a, 0 0 12px rgba(255, 150, 40, .7); animation: lend 2s ease-in-out infinite; }
@keyframes lend { 50% { box-shadow: inset 0 0 0 2px #ffc36a, 0 0 18px rgba(255, 170, 60, .9); } }
#inventario .item.nao i { filter: grayscale(.6) brightness(.6) sepia(.4) hue-rotate(-30deg); } #inventario .item.nao b { color: #ff7a6a; }
#inventario .item:hover { filter: brightness(1.25); }
#tip { position: fixed; z-index: 40; width: 270px; padding: 10px 12px; pointer-events: none; background: rgba(8, 12, 15, .97); box-shadow: inset 0 0 0 1px rgba(110, 230, 255, .3), 0 8px 24px rgba(0, 0, 0, .7); font-size: 13px; }
#tip > b { display: block; font: 700 15px var(--titulo); } #tip small { display: block; font: 600 10px var(--titulo); letter-spacing: .14em; text-transform: uppercase; color: #7f9ca3; margin-bottom: 6px; }
#tip .req { font-size: 12px; color: #a9c3c8; margin-bottom: 4px; } #tip .req.ruim { color: #ff7a6a; }
#tip .atr { color: #eafcff; } #tip .sec { color: #8fffb0; } #tip .lend { margin-top: 6px; color: #ffd6a0; font-style: italic; line-height: 1.35; }
#tip .comp { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(110, 230, 255, .15); font-size: 12px; color: #a9c3c8; } #tip .mais { color: #8fffb0; } #tip .menos { color: #ff8b7a; }

/* ---------- economia (17/10): carteira, poções, barracas, forja, mercador, leilão; ícones de pixel (estilo Minecraft) ---------- */
#inventario .item i, #loja .item i, img.px, #carteira img, .moeda img, .pocao-hud img { image-rendering: pixelated; }
#carteira { position: absolute; right: 16px; top: 74px; display: flex; gap: 10px; pointer-events: none; font: 600 13px var(--titulo); color: #ffe7a8; text-shadow: 0 1px 3px #000; }
#carteira span, .moeda { display: inline-flex; align-items: center; gap: 3px; } #carteira img, .moeda img { width: 20px; height: 20px; }
.moeda { font: 600 13px var(--titulo); color: #ffe7a8; } .moeda.falta { color: #ff8b7a; }
#pocoes-hud { display: grid; gap: 6px; margin-bottom: 6px; }
.pocao-hud { position: relative; width: 46px; height: 46px; padding: 0; border: 6px solid transparent; border-image: url('/assets/ui/painel.webp') 40 fill / 6px; background: none; overflow: hidden; }
.pocao-hud img { width: 100%; height: 100%; } .pocao-hud b { position: absolute; right: 2px; bottom: 0; font: 700 11px var(--titulo); color: #fff; text-shadow: 0 0 3px #000; } .pocao-hud em { position: absolute; left: 2px; top: 0; font: 700 10px var(--titulo); font-style: normal; color: #cfe7ea; text-shadow: 0 0 3px #000; }
.pocao-hud .cd { position: absolute; inset: 0; background: conic-gradient(rgba(2, 8, 12, .75) calc(var(--k, 0) * 360deg), transparent 0); pointer-events: none; }
.rotulo-loja { position: absolute; left: 0; top: 0; transform-origin: center; margin-left: -70px; width: 140px; text-align: center; padding: 3px 6px; background: rgba(6, 10, 13, .78); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .35); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%); }
.rotulo-loja b { display: block; font: 700 13px var(--titulo); color: #ffe7a8; letter-spacing: .06em; } .rotulo-loja small { font: 600 9px var(--titulo); letter-spacing: .12em; text-transform: uppercase; color: #8aa3aa; }
.rotulo-loja.perto { box-shadow: inset 0 0 0 1px #ffd27a, 0 0 14px rgba(255, 210, 122, .5); } .rotulo-loja.perto small { color: #ffd27a; }
#inv-conta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; } .conta-bolsa { margin-left: 8px; }
.num.ouro { color: #ffd23f; font-size: 16px; }
#tip .por { margin-top: 4px; font-size: 11px; color: #8aa3aa; font-style: italic; }
#loja { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); width: min(860px, 96vw); max-height: 86vh; }
#loja .vidro { padding: 2px 8px 6px; max-height: 80vh; overflow-y: auto; }
.loja-topo { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; } .loja-topo .titulo { font: 700 20px var(--titulo); letter-spacing: .16em; text-transform: uppercase; color: #ffe7a8; }
.carteira-mini { display: flex; gap: 10px; margin-left: auto; } .fechar { padding: 0 10px; font-size: 14px; }
.loja-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; }
.grade-itens { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; } .grade-itens.larga { gap: 10px; }
#loja .item { position: relative; width: 54px; height: 54px; padding: 0; border: 0; border-image: none; clip-path: none; background: #0b1114; box-shadow: inset 0 0 0 1px rgba(110, 230, 255, .14); cursor: pointer; }
#loja .item i { position: absolute; inset: 4px; background: center / contain no-repeat; }
#loja .item b { position: absolute; right: 3px; bottom: 1px; font: 700 10px var(--titulo); color: #fff; text-shadow: 0 0 3px #000; }
#loja .item em { position: absolute; left: 3px; top: 1px; font: 700 9px var(--titulo); font-style: normal; color: #8ff0ff; }
#loja .item.r-comum { box-shadow: inset 0 0 0 2px #59646a; } #loja .item.r-raro { box-shadow: inset 0 0 0 2px #2f7fd6; } #loja .item.r-epico { box-shadow: inset 0 0 0 2px #8a52e0; } #loja .item.r-lendario { box-shadow: inset 0 0 0 2px #ff8a1a, 0 0 10px rgba(255, 150, 40, .6); }
#loja .item.on { outline: 2px solid #ffd27a; outline-offset: 1px; }
.venda { display: grid; justify-items: center; gap: 2px; }
.detalhe { background: rgba(0, 0, 0, .3); padding: 10px 12px; box-shadow: inset 0 0 0 1px rgba(110, 230, 255, .12); }
.detalhe.ok { animation: forjaOk .9s ease-out; } .detalhe.falhou { animation: forjaFalha .6s ease-out; }
@keyframes forjaOk { 0% { box-shadow: inset 0 0 0 2px #ffd27a, 0 0 40px rgba(255, 210, 122, .9); } 100% { box-shadow: inset 0 0 0 1px rgba(110, 230, 255, .12); } }
@keyframes forjaFalha { 0%, 40% { transform: translateX(-6px); box-shadow: inset 0 0 0 2px #ff6a5a; } 20%, 60% { transform: translateX(6px); } 100% { transform: none; } }
.forja-item { display: flex; gap: 10px; align-items: center; } .forja-item img { width: 56px; height: 56px; } .forja-item b { display: block; font: 700 16px var(--titulo); } .forja-item small { color: #8aa3aa; font-size: 11px; }
.trilha { display: flex; gap: 3px; margin: 10px 0; } .trilha i { flex: 1; height: 8px; background: #1a2228; } .trilha i.feito.f1 { background: #ff9a4a; } .trilha i.feito.f2 { background: #9fd8ff; } .trilha i.feito.f3 { background: #ff7ad8; box-shadow: 0 0 6px #ff7ad8; }
.stats { width: 100%; border-collapse: collapse; font-size: 13px; } .stats td { padding: 2px 4px; } .stats td:nth-child(2) { color: #eafcff; font-weight: 600; } .stats .mais { color: #8fffb0; }
.custo { margin: 10px 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .chance { color: #ffd27a; font-weight: 600; } .custo small { color: #7f9ca3; }
.max { color: #ffd27a; font-weight: 600; } .vazio { color: #6f8a92; font-style: italic; } #loja .nota { color: #7f9ca3; font-size: 12px; font-style: italic; }
.pocoes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .pocao { display: grid; justify-items: center; gap: 4px; padding: 12px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(110, 230, 255, .12); }
.pocao img { width: 64px; height: 64px; } .pocao b { font: 700 16px var(--titulo); } .pocao small { color: #8aa3aa; } .compra { display: flex; gap: 6px; } .compra button { font-size: 11px; padding: 2px 10px; }
.abas { display: flex; gap: 6px; margin-bottom: 10px; } .abas button { font-size: 12px; padding: 2px 14px; } .abas button.on { color: #ffd27a; filter: brightness(1.3); }
.filtros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.filtros input, .filtros select, .detalhe input, .detalhe select { font: 600 12px var(--titulo); color: #eafcff; background: #0b1013; border: 1px solid rgba(110, 230, 255, .3); padding: 5px 8px; }
.filtros input[type=number] { width: 70px; } .filtros input[data-f=texto] { flex: 1; min-width: 160px; }
.lista-leilao { display: grid; gap: 4px; max-height: 46vh; overflow-y: auto; }
.anuncio { display: grid; grid-template-columns: 40px 1fr 110px 50px 110px 80px; gap: 8px; align-items: center; padding: 4px 6px; background: rgba(0, 0, 0, .3); }
.anuncio img { width: 36px; height: 36px; } .anuncio .nome b { display: block; font: 600 13px var(--titulo); } .anuncio .nome small { color: #7f9ca3; font-size: 11px; }
.anuncio .vend { color: #a9c3c8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .anuncio .tempo { color: #7f9ca3; font-size: 12px; } .anuncio button { font-size: 11px; padding: 2px 8px; }
.paginas { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 6px; color: #7f9ca3; font-size: 12px; } .paginas button { font-size: 11px; padding: 2px 10px; }
.materiais { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .mat { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 2px 10px; } .mat img { width: 22px; height: 22px; } .mat.on { color: #ffd27a; filter: brightness(1.3); }
.detalhe label { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; font: 600 12px var(--titulo); color: #a9c3c8; } .detalhe .alvo { display: flex; align-items: center; gap: 8px; min-height: 44px; } .alvo img { width: 40px; height: 40px; } .alvo input { width: 70px; }
@media (max-width: 760px) { .loja-corpo { grid-template-columns: 1fr; } .anuncio { grid-template-columns: 36px 1fr 90px 70px; } .anuncio .vend, .anuncio .tempo { display: none; } }

#tip .elem { margin-top: 4px; font-size: 12px; font-weight: 600; } #tip .qual { margin-top: 4px; font-size: 11px; color: #7f9ca3; }

/* ---------- loja de skins ---------- */
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.skin { display: grid; gap: 3px; justify-items: start; text-align: left; padding: 8px 10px; border: 0; border-image: none; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(110, 230, 255, .15); text-transform: none; letter-spacing: normal; font: 400 12px var(--texto); color: #cfe7ea; }
.skin i { width: 100%; height: 36px; display: block; } .skin b { font: 700 14px var(--titulo); color: #eafcff; } .skin small { color: #ffd27a; font: 600 11px var(--titulo); } .skin em { font-size: 11px; font-style: normal; }
.skin.on { box-shadow: inset 0 0 0 2px #ffd27a, 0 0 12px rgba(255, 210, 122, .4); }
.previa-skin { width: 100%; height: 280px; display: block; background: radial-gradient(ellipse at 50% 70%, rgba(255, 210, 122, .14), transparent 65%); cursor: grab; }
.nome-skin { display: block; text-align: center; font: 700 18px var(--titulo); color: #ffe7a8; margin: 4px 0 8px; }

/* selo de Game Master */
.gm { display: inline-block; margin-right: 6px; padding: 0 5px; font: 800 10px var(--titulo); font-style: normal; letter-spacing: .08em; color: #2a0a0e; background: linear-gradient(#ffe58a, #e8a42a); box-shadow: 0 0 8px rgba(255, 60, 70, .8), inset 0 0 0 1px #ff3a4a; vertical-align: 1px; }
.rotulo b.gm { margin-left: 4px; }

/* rótulo da barraca (18/10): plaquinha de pedra igual aos menus, só de perto, com a tecla */
.rotulo-loja { width: auto; margin-left: 0; transform-origin: 0 0; padding: 0 10px; clip-path: none; background: #0b1013 padding-box; box-shadow: none; border: 9px solid transparent; border-image: url('/assets/ui/botao.webp') 34 / 9px stretch; display: flex; align-items: center; gap: 8px; white-space: nowrap; translate: -50% 0; }
.rotulo-loja b { font: 700 14px var(--titulo); letter-spacing: .08em; color: #eafcff; text-transform: uppercase; }
.rotulo-loja kbd { font: 700 12px var(--titulo); color: #031014; background: #8af0ff; padding: 0 6px; box-shadow: 0 0 8px rgba(95, 230, 255, .7); }

/* som */
#painel-som { position: absolute; right: 14px; bottom: 150px; width: 240px; }
#painel-som .vidro { padding: 2px 6px; display: grid; gap: 6px; }
#painel-som label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 600 12px var(--titulo); letter-spacing: .1em; text-transform: uppercase; color: #cfe7ea; }
#painel-som input { width: 130px; accent-color: #5fe6ff; }
#painel-som small { color: #7f9ca3; font-size: 11px; }

/* mercado em token (20/10) */
.abas.mercados button.on { background: linear-gradient(180deg, rgba(255, 210, 90, .35), rgba(255, 170, 40, .18)); color: #ffe7a8; }
.anuncio.token .moeda.token { font: 600 14px var(--titulo); color: #ffd27a; white-space: nowrap; }

/* "How it works" na página inicial (22/10): botões no alto e o painel com abas, sem rolagem */
#cf-nav { position: absolute; top: 14px; right: 18px; z-index: 6; display: flex; gap: 8px; }
#cf-nav button { font: 600 13px var(--titulo); letter-spacing: .12em; text-transform: uppercase; color: #e8f4f6; padding: 9px 16px; background: rgba(8, 14, 18, .72); border: 1px solid rgba(110, 230, 255, .45); border-radius: 4px; cursor: pointer; }
#cf-nav button:first-child { color: #2a1a06; background: linear-gradient(180deg, #ffe08a, #d9a531); border-color: #ffe7a8; }
#cf-nav button:hover { filter: brightness(1.15); }
#cf { position: absolute; z-index: 7; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(980px, calc(100vw - 32px)); }
#cf > .vidro { position: relative; padding: 18px 26px 24px; }
#cf .fechar { position: absolute; top: 10px; right: 12px; }
#cf .cf-abas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 40px 14px 0; }
#cf h2 { margin: 4px 0 14px; font: 700 26px var(--titulo); letter-spacing: .06em; color: #ffe7a8; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
#cf .cf-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
#cf .cf-item { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
#cf .cf-ic { font-size: 26px; line-height: 1; width: 36px; flex: none; text-align: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
#cf .cf-item b { display: block; font: 700 15px var(--titulo); letter-spacing: .04em; color: #f4ecdf; margin-bottom: 3px; }
#cf .cf-item p { margin: 0; font: 15px/1.45 var(--texto); color: #cfe0e4; }
@media (max-width: 760px) { #cf .cf-grade { grid-template-columns: 1fr; gap: 10px; } #cf h2 { font-size: 20px; } #cf > .vidro { padding: 14px 14px 18px; } #cf .cf-abas { gap: 4px; } #cf .cf-abas button { font-size: 10px; padding: 2px 7px; letter-spacing: .04em; }
  #cf-nav { top: auto; bottom: 8px; right: 50%; transform: translateX(50%); } #cf-nav button { padding: 7px 10px; font-size: 11px; white-space: nowrap; letter-spacing: .06em; } #login #entrar { bottom: 52px; } }

/* aviso para todos (22/10): faixa no alto, empurra o topo do HUD para baixo enquanto aparece */
#anuncio { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px 44px; font: 600 15px var(--texto); color: #fff6e0; text-align: center; background: linear-gradient(180deg, rgba(60, 40, 6, .95), rgba(34, 22, 4, .92)); border-bottom: 1px solid #e7b94a; box-shadow: 0 2px 14px rgba(0, 0, 0, .6); text-shadow: 0 1px 2px #000; }
#anuncio[hidden] { display: none; }
#anuncio .an-tipo { flex: none; font: 800 11px var(--titulo); letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; color: #2a1a06; background: linear-gradient(180deg, #ffe08a, #c8961e); text-shadow: none; }
#anuncio .an-conta { flex: none; font: 700 15px var(--titulo); letter-spacing: .06em; color: #ffd6d0; font-variant-numeric: tabular-nums; }
#anuncio .an-conta:empty { display: none; }
#anuncio .an-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: rgba(255, 255, 255, .6); font-size: 15px; cursor: pointer; padding: 4px 6px; }
#anuncio .an-x:hover { color: #fff; }
#anuncio.an-manutencao { background: linear-gradient(180deg, rgba(92, 14, 14, .96), rgba(50, 8, 8, .93)); border-bottom-color: #ff6a5a; }
#anuncio.an-manutencao .an-tipo { color: #fff; background: linear-gradient(180deg, #ff6a5a, #b3261e); }
#anuncio.an-evento { background: linear-gradient(180deg, rgba(8, 44, 60, .96), rgba(4, 24, 34, .93)); border-bottom-color: #6ee6ff; }
#anuncio.an-evento .an-tipo { background: linear-gradient(180deg, #a9f2ff, #36b6d6); }
body.com-anuncio #hud { top: 38px; } body.com-anuncio #cf-nav { top: 50px; }   /* o HUD inteiro desce: minimapa, grupo, logo e topo ficam visíveis */
@media (max-width: 760px) { #anuncio { font-size: 13px; padding: 6px 34px 6px 10px; gap: 8px; flex-wrap: wrap; } body.com-anuncio #cf-nav { top: auto; } }

/* Master (22/10): o terceiro botão do portal, dourado-fogo */
button.mestre { color: #ffe3a3; background: linear-gradient(180deg, #4a2108, #1e0b03) padding-box; text-shadow: 0 0 10px rgba(255, 150, 40, .8); }
#portal .botoes { flex-wrap: wrap; }   /* 4 botões (sair + 3 dificuldades) quebram linha em vez de vazar */

/* 22/10: raridade Set (verde), dica do conjunto, abas do ferreiro e botões de infusão */
.r-conjunto { color: #3fe08a; }
#inventario .item.r-conjunto { box-shadow: inset 0 0 0 2px #23b866, 0 0 8px rgba(63, 224, 138, .45); } #loja .item.r-conjunto { box-shadow: inset 0 0 0 2px #23b866; }
#tip .conj { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(63, 224, 138, .3); color: #7f9a8a; font-size: 13px; }
#tip .conj b { display: block; color: #3fe08a; margin-bottom: 2px; } #tip .conj .ativo { color: #9dffc6; } #tip .conj small { display: block; margin-top: 3px; color: #7f9a8a; font-style: italic; }
.forja-abas { margin: 0 0 10px; }
.infusoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.infusao { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 8px 10px; text-align: left; border: 1px solid var(--cor); background: rgba(0, 0, 0, .35); color: #eef3f4; cursor: pointer; }
.infusao b { color: var(--cor); font: 700 14px var(--titulo); letter-spacing: .06em; } .infusao em { font-size: 11px; color: #ff8b7a; }
.infusao.on, .infusao:disabled { opacity: .5; cursor: default; } .infusao:not(:disabled):hover { filter: brightness(1.25); }
