:root {
  --fundo: #0d0f12;
  --placa: rgba(14, 16, 19, .86);
  --placa-solida: #121417;
  --bronze: rgba(255, 255, 255, .1);
  --bronze-claro: #c4a26a;
  --bronze-fio: transparent;
  --linha: rgba(255, 255, 255, .07);
  --linha-forte: rgba(255, 255, 255, .14);
  --texto: #ece8e1;
  --suave: #9b978f;
  --ouro: #d2ae68;
  --ouro-claro: #e8d3a2;
  --ouro-escuro: #8a6a30;
  --hp: #c8434b;
  --mp: #3f76cc;
  --xp: #8b7bd8;
  --eco: #a48ad8;
  --bom: #6fc58a;
  --ruim: #e9736f;
  --sombra: 0 12px 32px rgba(0, 0, 0, .45);
  --seguro-baixo: env(safe-area-inset-bottom, 0px);
  --canto: none;
  --grao: none;
  --titulo: Inter, system-ui, sans-serif;
  --marca: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--fundo); color: var(--texto); font: 14px/1.4 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input { user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }
#tela { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #33363c; border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- molduras: painel, diálogo, modal e cartão de entrada ---------- */
.painel, .dialogo, .modal-cartao, .cartao-entrada {
  background: var(--grao), linear-gradient(180deg, #17191d 0%, #111316 100%);
  border: 1px solid var(--bronze);
  border-radius: 6px;
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 235, 190, .07), 0 30px 80px rgba(0, 0, 0, .75);
}
.painel::before, .dialogo::before, .modal-cartao::before, .cartao-entrada::before {
  content: ''; position: absolute; inset: 4px; border: 1px solid var(--bronze-fio); border-radius: 3px; pointer-events: none;
}
.painel::after, .dialogo::after, .modal-cartao::after, .cartao-entrada::after {
  content: ''; position: absolute; inset: -6px; pointer-events: none;
  background: var(--canto) 0 0 / 14px no-repeat, var(--canto) 100% 0 / 14px no-repeat, var(--canto) 0 100% / 14px no-repeat, var(--canto) 100% 100% / 14px no-repeat;
}
.modal-cartao::after, .cartao-entrada::after { inset: 1px; }

/* ---------- botões ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 4px; font-weight: 700; letter-spacing: .02em; background: linear-gradient(180deg, #2a2d33, #1b1d21); border: 1px solid var(--bronze); color: #f0e2c0; box-shadow: inset 0 1px 0 rgba(255, 240, 210, .1), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 2px 0 rgba(0, 0, 0, .45); text-shadow: 0 1px 1px #000; transition: transform .08s, filter .15s, border-color .15s; white-space: nowrap; }
.botao:hover { filter: brightness(1.15); border-color: var(--bronze-claro); }
.botao:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.botao:disabled { opacity: .45; filter: grayscale(.6); cursor: default; }
.botao.ouro { background: linear-gradient(180deg, #f6d784, #d29a34 55%, #a8721e); color: #241505; border-color: #ffe7a8; text-shadow: 0 1px 0 rgba(255, 240, 200, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 rgba(0, 0, 0, .45), 0 0 18px rgba(240, 195, 90, .2); }
.botao.eco { background: linear-gradient(180deg, #9d7ce6, #5e3eae); border-color: #cdb8ff; color: #fff; }
.botao.perigo { background: linear-gradient(180deg, #8e2f2f, #5a1a1c); border-color: #c86060; color: #ffd6d6; }
.botao.grande { padding: 12px 18px; font-size: 15px; width: 100%; }
.botao.mini { padding: 4px 10px; font-size: 12px; }
.botao.leve { background: linear-gradient(180deg, #2b2430, #1b1620); }

/* ---------- carregando e entrada ---------- */
.selo { width: 46px; height: 58px; margin: 0 auto; background: linear-gradient(160deg, #fff6dd, var(--ouro) 45%, #8a5e1a); clip-path: polygon(50% 0, 100% 36%, 50% 100%, 0 36%); filter: drop-shadow(0 0 18px rgba(240, 195, 90, .6)); animation: pulsar 2.6s ease-in-out infinite; }
@keyframes pulsar { 50% { transform: translateY(-4px); filter: drop-shadow(0 0 28px rgba(240, 195, 90, .9)); } }
.carregando { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; gap: 16px; text-align: center; background: var(--grao), radial-gradient(900px 600px at 50% 30%, #1d2026, var(--fundo) 70%); }
.carregando h1, .marca h1 { font-family: var(--titulo); font-weight: 800; font-size: 34px; margin: 4px 0 0; letter-spacing: .04em; background: linear-gradient(180deg, #fff6dd, var(--ouro) 60%, #b07d24); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .8)); }
.progresso { width: min(320px, 76vw); height: 8px; border-radius: 2px; background: #0a0b0d; border: 1px solid #000; box-shadow: 0 0 0 1px var(--bronze); overflow: hidden; margin: 0 auto; }
.progresso i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #ffe7a8, var(--ouro) 50%, #a8771f); transition: width .25s; }
.carregando p { color: var(--suave); margin: 0; }

.entrada { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-columns: 1fr minmax(340px, 440px); align-items: center; gap: 24px; padding: 32px 5vw; background: linear-gradient(90deg, rgba(10, 12, 15, .85) 0%, rgba(10, 12, 15, .2) 45%, rgba(10, 12, 15, .55) 75%, rgba(10, 12, 15, .88)); }
.marca { align-self: start; max-width: 460px; margin-top: 4vh; }
.marca .selo { margin: 0 0 10px; }
.marca h1 { font-size: 46px; line-height: 1.05; }
.marca p { color: #e2d8c4; font-size: 15px; line-height: 1.6; text-shadow: 0 2px 8px #000; }
.cartao-entrada { position: relative; padding: 20px; max-height: calc(100vh - 64px); overflow: auto; }
.abas-entrada { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; border-bottom: 1px solid var(--linha-forte); }
.abas-entrada button { padding: 10px; font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.abas-entrada button.ativa { color: var(--ouro-claro); border-bottom-color: var(--bronze-claro); background: linear-gradient(0deg, rgba(201, 162, 92, .14), transparent); }
#form-entrada { display: grid; gap: 12px; }
#form-entrada label { display: grid; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .08em; }
#form-entrada input { background: #0b0c0e; border: 1px solid #33363c; border-radius: 3px; padding: 11px 12px; font-size: 15px; outline: none; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--texto); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); }
#form-entrada input:focus { border-color: var(--bronze-claro); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), 0 0 0 2px rgba(201, 162, 92, .2); }
.erro { color: var(--ruim); margin: 0; min-height: 18px; font-weight: 600; }
.classes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.classe { text-align: left; padding: 10px; border-radius: 4px; border: 1px solid #2d3035; background: linear-gradient(180deg, #1a1c20, #121417); display: grid; gap: 3px; transition: border-color .15s, background .15s; }
.classe:hover { border-color: var(--bronze); }
.classe b { font-size: 14px; font-family: var(--titulo); color: #f3e6c4; }
.classe small { color: var(--suave); font-size: 11.5px; line-height: 1.3; }
.classe.ativa { border-color: var(--bronze-claro); background: linear-gradient(180deg, rgba(201, 162, 92, .2), rgba(201, 162, 92, .04)); box-shadow: inset 0 0 0 1px rgba(255, 227, 160, .15), 0 0 14px rgba(240, 195, 90, .15); }
.classe-lore { grid-column: 1 / -1; color: #d8cdb8; font-size: 12.5px; font-style: italic; margin: 0; line-height: 1.5; }

/* ---------- placas e números sobre o 3D ---------- */
#placas, #numeros { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.placa { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 2px; will-change: transform; }
.placa.mascote { font: 600 10.5px Inter, sans-serif; letter-spacing: .03em; color: #e9d9a8; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, .8); white-space: nowrap; }
.placa .nome { font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .8); white-space: nowrap; }
.placa .nome small { font-weight: 600; opacity: .8; margin-left: 4px; }
.placa.monstro .nome { color: #ffd2c8; font-size: 11px; }
.placa.npc .nome { color: #bfe3ff; }
.placa.npc .nome em { display: block; font-style: normal; font-size: 10px; color: #9fc2e0; text-align: center; font-weight: 600; }
.placa.eu .nome { color: var(--ouro-claro); }
.placa.aliado .nome { color: #9ff0b6; }
.placa .vida { display: none; width: 48px; height: 5px; border-radius: 1px; background: rgba(0, 0, 0, .75); overflow: hidden; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(201, 162, 92, .25); }
.placa.com-vida .vida { display: block; }
.placa .vida i { display: block; height: 100%; background: linear-gradient(180deg, #ff7a6a, #c33a3a); }
.placa.jogador .vida i { background: linear-gradient(180deg, #8fe8a6, #3fae6a); }
.placa .marca-missao { display: block; text-align: center; margin-bottom: 2px; font-family: var(--titulo); font-weight: 800; font-size: 30px; color: var(--ouro); text-shadow: 0 0 10px rgba(240, 195, 90, .9), 0 2px 2px #000; line-height: 1; animation: flutuar 1.4s ease-in-out infinite; }
@keyframes flutuar { 50% { transform: translateY(-5px); } }
.placa.campeao .nome { color: #ffd77a; font-size: 13px; text-shadow: 0 0 8px rgba(255, 170, 60, .8), 0 1px 2px #000; }
.campeao-tag { display: block; text-align: center; font-family: var(--titulo); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #ffb84a; }
.num { position: absolute; left: 0; top: 0; font-weight: 800; font-size: 17px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 8px rgba(0, 0, 0, .6); white-space: nowrap; animation: subir 0.95s cubic-bezier(.2, .8, .3, 1) forwards; }
.num.crit { font-size: 25px; color: #ffcf4a; font-family: var(--titulo); }
.num.ferido { color: #ff8080; font-size: 15px; }
.num.cura { color: #7dff9a; }
.num.escudo { color: #ffd27a; font-size: 13px; }
.num.ganho-xp { color: #c8b0ff; font-size: 13px; }
@keyframes subir { 0% { opacity: 0; transform: translate(var(--x), var(--y)) translate(-50%, 0) scale(.6); } 15% { opacity: 1; transform: translate(var(--x), var(--y)) translate(-50%, -14px) scale(1.15); } 100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), var(--y)) translate(-50%, -64px) scale(1); } }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.hud > * { pointer-events: auto; }

.topo { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.topo > * { pointer-events: auto; }

/* ficha do Portador: retrato em anel por cima da placa das barras */
.ficha { display: flex; align-items: center; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.retrato-anel { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #24272c, #0e1013 75%); border: 2px solid var(--bronze-claro); box-shadow: 0 0 0 2px #120d08, 0 0 0 3px var(--bronze), inset 0 0 14px rgba(0, 0, 0, .9); flex: none; }
.retrato { width: 44px; height: 44px; display: grid; place-items: center; }
.retrato svg { width: 100%; height: 100%; }
.nivel { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); min-width: 28px; padding: 1px 6px; border-radius: 3px; text-align: center; font-family: var(--titulo); font-weight: 800; font-size: 12px; color: var(--ouro-claro); background: linear-gradient(180deg, #3e2f18, #18110a); border: 1px solid var(--bronze-claro); box-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.ficha-meio { margin-left: -16px; padding: 7px 12px 9px 26px; width: 250px; display: grid; gap: 4px; min-width: 0; background: var(--grao), var(--placa); border: 1px solid var(--bronze); border-left: 0; border-radius: 0 4px 4px 0; box-shadow: inset 0 1px 0 rgba(255, 235, 190, .07); }
.ficha-nome { display: flex; align-items: baseline; gap: 8px; }
.ficha-nome b { font-family: var(--titulo); font-size: 14px; color: #f6e9c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.ficha-nome small { color: var(--suave); font-size: 11px; font-weight: 600; }

.barra { position: relative; height: 15px; border-radius: 2px; background: #08090b; overflow: hidden; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(201, 162, 92, .3); }
.barra::after { content: ''; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .02)); pointer-events: none; }
.barra i { position: absolute; inset: 0 auto 0 0; width: 0; transition: width .15s linear; }
.barra span { position: absolute; inset: 0; z-index: 1; font-size: 10px; font-weight: 700; text-align: center; line-height: 13px; text-shadow: 0 1px 2px #000, 0 0 3px #000; font-variant-numeric: tabular-nums; }
.barra.hp i { background: linear-gradient(180deg, #ff8088, var(--hp) 55%, #8e2430); }
.barra.mp { height: 10px; }
.barra.mp span { line-height: 8px; font-size: 8.5px; }
.barra.mp i { background: linear-gradient(180deg, #8fbaff, var(--mp) 55%, #23498e); }
.barra.escudo { box-shadow: 0 0 0 1px var(--ouro), 0 0 10px rgba(240, 195, 90, .45); }

.topo-direita { display: flex; gap: 10px; align-items: flex-start; }
.bolsa-topo { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.moedas { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 3px; background: var(--placa); border: 1px solid var(--bronze); font-weight: 800; color: var(--ouro-claro); font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; box-shadow: 0 0 0 1px #000, var(--sombra); }
.ico-moeda { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff1b8, var(--ouro) 55%, var(--ouro-escuro)); box-shadow: 0 0 0 1px #5a3e10, 0 0 6px rgba(240, 195, 90, .5); display: inline-block; flex: none; }
.ajustes-botao { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 3px; background: var(--placa); border: 1px solid var(--bronze); color: #e6d4a8; box-shadow: 0 0 0 1px #000, var(--sombra); transition: border-color .15s, color .15s; }
.ajustes-botao:hover { border-color: var(--bronze-claro); color: var(--ouro-claro); }
.ajustes-botao svg { width: 18px; height: 18px; transition: transform .3s; }
.ajustes-botao:hover svg { transform: rotate(45deg); }

/* minimapa redondo com aro de bronze */
.minimapa { position: relative; width: 172px; height: 172px; flex: none; cursor: zoom-in; border-radius: 50%; padding: 5px; background: conic-gradient(from 0deg, #6b5230, #d8b26a, #6b5230, #b38a48, #6b5230, #d8b26a, #6b5230); box-shadow: 0 0 0 1px #000, 0 8px 24px rgba(0, 0, 0, .6); }
.minimapa canvas { width: 100%; height: 100%; display: block; border-radius: 50%; background: #2f72b8; box-shadow: inset 0 0 0 1px #000; }
.minimapa::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 18px rgba(0, 0, 0, .7); }
.minimapa::after { content: 'N'; position: absolute; top: -3px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-family: var(--titulo); font-size: 10px; font-weight: 800; color: #241505; background: radial-gradient(circle at 40% 35%, #fff1c8, var(--bronze-claro)); box-shadow: 0 0 0 1px #000; pointer-events: none; }
.minimapa span { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); max-width: 190px; padding: 3px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--titulo); font-size: 11.5px; font-weight: 700; color: var(--ouro-claro); text-shadow: 0 1px 2px #000; background: linear-gradient(180deg, #2e2418, #15100a); border: 1px solid var(--bronze-claro); border-radius: 2px; box-shadow: 0 0 0 1px #000, 0 3px 8px rgba(0, 0, 0, .6); pointer-events: none; }

/* menu: barra de botões quadrados no canto de baixo */
.menu { position: absolute; right: 14px; bottom: calc(18px + var(--seguro-baixo)); display: grid; grid-auto-flow: column; gap: 4px; padding: 5px; border-radius: 4px; background: var(--grao), var(--placa); border: 1px solid var(--bronze); box-shadow: 0 0 0 1px #000, var(--sombra); }
.menu button { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 3px; background: radial-gradient(circle at 50% 30%, #24272c, #111316); border: 1px solid #33363c; color: #d9c79e; box-shadow: inset 0 1px 0 rgba(255, 240, 210, .06), inset 0 -2px 6px rgba(0, 0, 0, .5); transition: border-color .15s, color .15s; }
.menu button:hover { border-color: var(--bronze-claro); color: var(--ouro-claro); }
.menu button span { display: none; }
.menu svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px #000); }
.menu button::after { position: absolute; right: 3px; bottom: 1px; font-size: 9px; font-weight: 800; color: rgba(240, 226, 192, .55); }
.menu button[data-painel="mochila"]::after { content: 'I'; } .menu button[data-painel="personagem"]::after { content: 'C'; } .menu button[data-painel="habilidades"]::after { content: 'H'; } .menu button[data-painel="feira"]::after { content: 'F'; }
.menu button[data-painel="guilda"]::after { content: 'G'; }
.menu button[data-painel="diarias"]::after { content: 'J'; } .menu button[data-painel="memorias"]::after { content: 'K'; } .menu button[data-painel="ranking"]::after { content: 'R'; } .menu button[data-painel="estabulo"]::after { content: 'U'; }
.ponto { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 1px #000, 0 0 8px #ff5a5a; }

/* missão: acompanhamento à direita, sem caixa pesada */
.missao { position: absolute; top: 210px; right: 14px; width: 220px; padding: 10px 12px 11px 14px; display: grid; gap: 6px; background: linear-gradient(90deg, rgba(10, 12, 15, 0), rgba(10, 12, 15, .55) 45%); border-right: 2px solid var(--bronze-claro); border-radius: 2px; }
.missao .rotulo { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-claro); }
.missao h3 { margin: 0; font-family: var(--titulo); font-size: 14.5px; line-height: 1.2; color: var(--ouro-claro); text-shadow: 0 1px 3px #000; }
.missao p { margin: 0; color: #e3d9c6; font-size: 12px; line-height: 1.4; text-shadow: 0 1px 2px #000; }
.missao .prog { height: 5px; border-radius: 1px; background: #08090b; border: 1px solid #000; overflow: hidden; }
.missao .prog i { display: block; height: 100%; background: linear-gradient(90deg, #b07d24, var(--ouro-claro)); }
.missao.pronta { border-right-color: var(--ouro); background: linear-gradient(90deg, rgba(60, 44, 12, 0), rgba(60, 44, 12, .7) 22%); }

/* chefe e alvo, no alto e no centro */
.chefe-faixa { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: min(440px, 46vw); padding: 7px 12px 9px; border-radius: 4px; background: var(--grao), linear-gradient(180deg, rgba(70, 16, 30, .94), rgba(28, 8, 16, .94)); border: 1px solid #a8434f; box-shadow: 0 0 0 1px #000, 0 0 30px rgba(255, 60, 90, .2); display: grid; gap: 6px; }
.chefe-linha { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.chefe-linha b { font-family: var(--titulo); color: #ffbcc8; letter-spacing: .04em; }
.chefe-linha span { flex: 1; color: #f2d6dc; }
.barra.chefe { height: 10px; box-shadow: 0 0 0 1px rgba(255, 120, 140, .35); }
.barra.chefe i { background: linear-gradient(180deg, #ff8a6a, #d8304c 55%, #7a1424); }

.alvo-info { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); width: min(300px, 60vw); padding: 7px 11px 9px; border-radius: 4px; background: var(--grao), var(--placa); border: 1px solid #8a4a3a; box-shadow: 0 0 0 1px #000, var(--sombra); display: grid; gap: 5px; }
.alvo-nome { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.alvo-nome b { font-family: var(--titulo); color: #ffd6c8; text-shadow: 0 1px 2px #000; }
.alvo-nome span { color: var(--suave); font-weight: 700; font-size: 11.5px; }
.barra.alvo i { background: linear-gradient(180deg, #ff9474, #c8402e 55%, #7a2018); }

/* barra de ações, no centro de baixo */
.acoes { position: absolute; left: 50%; bottom: calc(18px + var(--seguro-baixo)); transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 6px; border-radius: 4px; background: var(--grao), var(--placa); border: 1px solid var(--bronze); box-shadow: 0 0 0 1px #000, var(--sombra); }
.hab, .atacar { position: relative; width: 52px; height: 52px; border-radius: 3px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #24272c, #101215); border: 1px solid #33363c; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset 0 -3px 8px rgba(0, 0, 0, .5); transition: border-color .15s, transform .08s; }
.hab:hover, .atacar:hover { border-color: var(--bronze-claro); }
.hab:active, .atacar:active { transform: scale(.95); }
.hab .ico { position: absolute; inset: 0; display: grid; place-items: center; }
.hab .ico svg { width: 100%; height: 100%; }
.hab .recarga { position: absolute; inset: 0; background: conic-gradient(rgba(6, 4, 10, .8) var(--p, 0%), transparent 0); pointer-events: none; }
.hab .tecla, .atacar .tecla { position: absolute; top: 1px; left: 3px; z-index: 1; font-size: 10px; font-weight: 800; color: rgba(255, 245, 220, .85); text-shadow: 0 1px 1px #000, 0 0 3px #000; }
.hab .cd { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 18px; text-shadow: 0 2px 4px #000; }
.hab.travada { filter: grayscale(1) brightness(.55); }
.hab.sem-mana .ico { filter: grayscale(.7) brightness(.55) sepia(1) hue-rotate(190deg); }
.hab.pronta { border-color: var(--bronze-claro); box-shadow: inset 0 0 0 1px rgba(255, 227, 160, .25), 0 0 10px rgba(240, 195, 90, .25); }
.tonico .ico { padding: 7px; }
.tonico .qtd { position: absolute; right: 3px; bottom: 1px; z-index: 1; font-size: 11px; font-weight: 800; text-shadow: 0 1px 1px #000, 0 0 3px #000; }
.atacar { width: 62px; height: 62px; margin-left: 4px; color: #2a1a05; background: radial-gradient(circle at 50% 30%, #ffe7a8, #e0a43c 55%, #8e5c14); border-color: #ffe7a8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 8px rgba(80, 40, 0, .45), 0 0 14px rgba(240, 195, 90, .3); }
.atacar svg { width: 38px; height: 38px; filter: drop-shadow(0 1px 0 rgba(255, 240, 200, .6)); }
.eco { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 10px; border-radius: 3px; background: var(--placa); border: 1px solid var(--bronze); font-weight: 800; font-size: 12px; letter-spacing: .04em; color: #e6d4a8; box-shadow: 0 0 0 1px #000, var(--sombra); white-space: nowrap; text-shadow: 0 1px 1px #000; }
.eco .luz { width: 10px; height: 10px; border-radius: 50%; background: #4a4252; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8); }
.eco.ligado { color: #f1e6ff; background: linear-gradient(180deg, rgba(96, 66, 170, .95), rgba(52, 34, 104, .95)); border-color: #b59cf0; box-shadow: 0 0 0 1px #000, 0 0 20px rgba(180, 140, 240, .4); }
.eco.ligado .luz { background: #e9dcff; box-shadow: 0 0 8px #d2bcff, 0 0 16px var(--eco); animation: piscar 1.2s infinite; }
@keyframes piscar { 50% { opacity: .55; } }

/* chat: abas por canal, aumentar e recolher */
.chat { position: absolute; left: 14px; bottom: calc(22px + var(--seguro-baixo)); width: min(340px, calc(50vw - 332px)); display: grid; gap: 4px; transition: width .2s; }
.chat.grande { width: min(470px, calc(50vw - 332px)); }
.chat.grande .log { max-height: 340px; height: 340px; }
.chat-topo { display: flex; align-items: stretch; gap: 3px; opacity: .55; transition: opacity .2s; }
.chat:hover .chat-topo, .chat:focus-within .chat-topo, .chat.recolhido .chat-topo { opacity: 1; }
.chat-abas { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chat-abas button { position: relative; flex: none; padding: 3px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #b8ab94; background: rgba(10, 8, 14, .7); border: 1px solid #33363c; border-bottom-color: transparent; border-radius: 3px 3px 0 0; }
.chat-abas button.ativa { color: var(--ouro-claro); background: rgba(24, 18, 12, .92); border-color: var(--bronze); border-bottom-color: transparent; }
.chat-abas button i { position: absolute; top: -6px; right: -3px; font-style: normal; font-size: 9px; font-weight: 800; color: #1a1006; background: var(--ouro-claro); border-radius: 7px; padding: 0 4px; line-height: 13px; }
.chat-abas button i:empty { display: none; }
.chat-botao { flex: none; width: 24px; display: grid; place-items: center; background: rgba(10, 8, 14, .7); border: 1px solid #33363c; border-radius: 3px; color: #b8ab94; }
.chat-botao:hover { color: var(--ouro-claro); border-color: var(--bronze); }
.chat-botao svg { width: 14px; height: 14px; fill: currentColor; }
.chat .i-contrair, .chat.grande .i-expandir { display: none; }
.chat.grande .i-contrair { display: inline; }
.chat.recolhido .log, .chat.recolhido #form-chat { display: none; }
.log .canal { font-size: 10.5px; font-weight: 700; opacity: .9; }
.log .c-global, .log .c-global b { color: #ffcf7a; }
.log .c-grupo, .log .c-grupo b { color: #8fd2ff; }
.log .c-guilda, .log .c-guilda b { color: #8ef0a8; }
.log .c-sussurro, .log .c-sussurro b { color: #ff9ad8; }
.log b[data-nome] { cursor: pointer; }
.log b[data-nome]:hover { text-decoration: underline; }
#form-chat { display: flex; gap: 3px; }
#chat-canal { flex: none; min-width: 58px; padding: 0 8px; font-size: 11px; font-weight: 700; background: rgba(10, 8, 14, .85); border: 1px solid #33363c; border-radius: 3px; color: #e8dfcc; }
#chat-canal.canal-global { color: #ffcf7a; } #chat-canal.canal-grupo { color: #8fd2ff; } #chat-canal.canal-guilda { color: #8ef0a8; }
.chat-abrir { display: none; }
/* barra de coleta e de abrir baú, em cima da barra de atalhos */
.canal-acao { position: absolute; left: 50%; bottom: calc(150px + var(--seguro-baixo)); transform: translateX(-50%); width: 240px; text-align: center; pointer-events: none; }
.canal-acao span { display: block; font-size: 12px; font-weight: 700; color: #f0e2c2; text-shadow: 0 1px 3px #000; margin-bottom: 4px; letter-spacing: .03em; }
.canal-acao .prog { height: 9px; background: rgba(8, 6, 10, .85); border: 1px solid var(--bronze); border-radius: 2px; overflow: hidden; }
.canal-acao .prog i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #ffe7a8, #d49a2c); box-shadow: 0 0 8px rgba(255, 210, 120, .6); }
/* rótulo dos portais e fogueiras */
#rotulos-pontos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rotulo-ponto { position: absolute; left: 0; top: 0; white-space: nowrap; font: 700 12px Inter, sans-serif; letter-spacing: .04em; color: #ffe3a0; text-shadow: 0 1px 2px #000, 0 0 10px rgba(0, 0, 0, .8); }
.rp-entrada { color: #dccbff; } .rp-saida { color: #b8f0ff; } .rp-fogo { color: #ffc890; font-size: 11px; } .rp-movel { color: #f3d79a; font-size: 11px; }
body.em-dialogo #rotulos-pontos { opacity: 0; }
.log { max-height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 3px; background: linear-gradient(180deg, rgba(10, 8, 14, .15), rgba(10, 8, 14, .62)); font-size: 12.5px; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 22%); }
.log p { margin: 0; text-shadow: 0 1px 2px #000; line-height: 1.35; }
.log b { color: var(--ouro-claro); }
.log .sistema { color: #bdb2a0; font-style: italic; }
.log .raro { color: #d8b8ff; font-weight: 600; }
.log .chefe { color: #ff9ab8; font-weight: 700; }
#form-chat input { width: 100%; background: rgba(10, 8, 14, .78); border: 1px solid #33363c; border-radius: 3px; padding: 7px 10px; outline: none; font-size: 13px; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5); }
#form-chat input:focus { border-color: var(--bronze-claro); }

/* experiência: faixa fina dividida em dez */
.xp { position: absolute; left: 0; right: 0; bottom: 0; height: calc(7px + var(--seguro-baixo)); background: #08060b; border-top: 1px solid var(--bronze); padding-bottom: var(--seguro-baixo); }
.xp i { display: block; height: 6px; width: 0; background: linear-gradient(180deg, #d6c4ff, #8a62f0 60%, #5a38b8); box-shadow: 0 0 8px rgba(155, 123, 255, .7); transition: width .3s; }
.xp::after { content: ''; position: absolute; inset: 0 0 var(--seguro-baixo); background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0, 0, 0, .75) calc(10% - 1px) 10%); pointer-events: none; }
.xp span { position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px; font-size: 10px; font-weight: 700; color: #d4c6f4; text-shadow: 0 1px 2px #000; pointer-events: none; }

.feed { position: absolute; right: 16px; bottom: calc(86px + var(--seguro-baixo)); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
.feed div { padding: 4px 10px 4px 6px; border-radius: 2px; background: linear-gradient(90deg, rgba(10, 12, 15, 0), rgba(10, 12, 15, .82) 25%); border-right: 2px solid var(--bronze-claro); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; text-shadow: 0 1px 2px #000; animation: entrarDireita .25s ease-out, sumir .4s ease-in 3.6s forwards; }
.feed svg { width: 20px; height: 20px; }
@keyframes entrarDireita { from { opacity: 0; transform: translateX(18px); } }
@keyframes sumir { to { opacity: 0; transform: translateY(-6px); } }

/* grupo: placa com os quadros dos membros, embaixo da ficha */
.grupo { position: absolute; top: 108px; left: 14px; width: 236px; padding: 5px 6px 7px; display: grid; gap: 5px; pointer-events: auto; background: var(--grao), var(--placa); border: 1px solid var(--bronze); border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 6px 16px rgba(0, 0, 0, .5); }
.grupo-titulo { display: flex; align-items: center; gap: 6px; padding: 0 2px 4px; border-bottom: 1px solid var(--bronze-fio); font-family: var(--titulo); font-size: 11.5px; font-weight: 700; color: var(--ouro-claro); text-shadow: 0 1px 2px #000; letter-spacing: .05em; }
.grupo-titulo svg { width: 16px; height: 16px; color: var(--bronze-claro); flex: none; }
.grupo-titulo b { margin-left: auto; font-family: Inter, system-ui, sans-serif; font-size: 10.5px; font-weight: 700; color: #cdbb94; letter-spacing: 0; }
.grupo-titulo .coroa { position: static; width: 15px; height: 15px; margin-left: 2px; }
.membro { display: flex; align-items: center; gap: 7px; padding: 2px; border-radius: 3px; cursor: pointer; transition: background .15s; }
.membro:hover { background: rgba(201, 162, 92, .12); }
.m-emblema { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #24272c, #0e1013 75%); border: 1px solid var(--bronze-claro); box-shadow: 0 0 0 1px #120d08; }
.m-emblema svg { width: 23px; height: 23px; }
.coroa { position: absolute; top: -6px; left: -5px; width: 17px; height: 17px; color: var(--ouro); filter: drop-shadow(0 1px 1px #000) drop-shadow(0 0 4px rgba(240, 195, 90, .6)); }
.coroa svg { width: 100%; height: 100%; }
.m-meio { flex: 1; min-width: 0; display: grid; gap: 3px; }
.m-nome { display: flex; align-items: baseline; gap: 6px; }
.m-nome b { font-size: 12.5px; color: #f3e6c4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.m-nome small { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #cdbb94; white-space: nowrap; }
.barra.fina { height: 9px; }
.barra.fina.mp { height: 5px; }
.membro.longe .m-nome small { color: #e0a868; }
.membro.longe .barra i { filter: saturate(.35) brightness(.8); }
.membro.caido { filter: grayscale(1); opacity: .7; }

/* convite para o grupo: placa no alto, com o tempo correndo embaixo */
.convite { position: absolute; top: 170px; left: 50%; transform: translateX(-50%); z-index: 6; width: min(430px, 92vw); display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 12px 14px 0; background: var(--grao), var(--placa); border: 1px solid var(--bronze-claro); border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 12px 30px rgba(0, 0, 0, .6); animation: descer .22s ease-out; overflow: hidden; }
@keyframes descer { from { opacity: 0; transform: translate(-50%, -10px); } }
.convite-emblema { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #24272c, #0e1013 75%); border: 1px solid var(--bronze-claro); grid-row: span 2; }
.convite-emblema svg { width: 30px; height: 30px; }
.convite-texto b { display: block; font-family: var(--titulo); font-size: 14px; color: var(--ouro-claro); }
.convite-texto span { font-size: 12.5px; color: #e6d8b8; }
.convite-botoes { display: flex; gap: 6px; padding-bottom: 12px; }
.convite-tempo { grid-column: 1 / -1; height: 3px; margin: 0 -14px; background: #0a0b0d; }
.convite-tempo i { display: block; height: 100%; background: linear-gradient(90deg, var(--bronze), var(--ouro)); transform-origin: left; animation: correr linear forwards; }
@keyframes correr { to { transform: scaleX(0); } }

/* menu de um Portador */
.menu-ator { position: fixed; z-index: 30; min-width: 200px; padding: 6px; display: grid; gap: 3px; background: var(--grao), var(--placa); border: 1px solid var(--bronze-claro); border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 10px 24px rgba(0, 0, 0, .6); }
.menu-ator-topo { display: flex; align-items: center; gap: 9px; padding: 3px 4px 7px; margin-bottom: 2px; border-bottom: 1px solid var(--bronze-fio); }
.menu-ator-topo > svg { width: 30px; height: 30px; flex: none; }
.menu-ator-topo b { display: block; font-family: var(--titulo); font-size: 13px; color: var(--ouro-claro); }
.menu-ator-topo small { font-size: 11px; color: var(--suave); }
.menu-ator button { text-align: left; padding: 7px 10px; border-radius: 2px; font-size: 13px; font-weight: 600; color: #ecdfbf; background: transparent; border: 1px solid transparent; }
.menu-ator button:hover { background: rgba(201, 162, 92, .14); border-color: var(--bronze-fio); color: var(--ouro-claro); }
.menu-ator button.perigo { color: #ffb4b0; }
.menu-ator .dica { margin: 4px 6px; font-size: 11.5px; }
.td-acao { text-align: right; width: 1%; }

.avisos { position: absolute; top: 130px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; pointer-events: none; width: min(560px, 92vw); }
.aviso { padding: 8px 22px; font-weight: 700; font-size: 13.5px; text-align: center; color: #f3e6c4; text-shadow: 0 1px 2px #000; background: linear-gradient(90deg, rgba(10, 12, 15, 0), rgba(10, 12, 15, .88) 18%, rgba(10, 12, 15, .88) 82%, rgba(10, 12, 15, 0)); border-top: 1px solid var(--bronze-fio); border-bottom: 1px solid var(--bronze-fio); animation: cair .25s ease-out, sumir .4s ease-in 2.8s forwards; }
.aviso.bom { color: #c9ffd8; }
.aviso.grupo { color: #c4f5d2; }
.aviso.ruim { color: #ffc8c8; }
.aviso.raro, .aviso.habilidade { color: #ecdcff; background: linear-gradient(90deg, rgba(60, 40, 110, 0), rgba(60, 40, 110, .9) 18%, rgba(60, 40, 110, .9) 82%, rgba(60, 40, 110, 0)); border-color: rgba(200, 160, 255, .4); }
.aviso.chefe { color: #ffd6e2; font-family: var(--titulo); font-size: 15px; letter-spacing: .03em; background: linear-gradient(90deg, rgba(110, 20, 40, 0), rgba(110, 20, 40, .92) 18%, rgba(110, 20, 40, .92) 82%, rgba(110, 20, 40, 0)); border-color: rgba(255, 110, 140, .45); }
@keyframes cair { from { opacity: 0; transform: translateY(-10px); } }

.joystick { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(201, 162, 92, .35); background: radial-gradient(rgba(255, 255, 255, .06), rgba(0, 0, 0, .15)); transform: translate(-50%, -50%); pointer-events: none; }
.joystick i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 240, 210, .55), rgba(201, 162, 92, .25)); border: 1px solid rgba(255, 227, 160, .5); }

.morte { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; background: radial-gradient(circle, rgba(60, 10, 20, .35), rgba(10, 4, 8, .78)); pointer-events: none; }
.morte b { font-family: var(--titulo); font-size: 34px; color: #ffb3b3; letter-spacing: .06em; text-shadow: 0 4px 20px #000; }
.morte span { color: #f0d8d8; }

/* ---------- painel ---------- */
.painel { position: fixed; z-index: 20; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(720px, 94vw); height: min(620px, 86vh); display: flex; flex-direction: column; animation: abrir .18s ease-out; user-select: text; }
@keyframes abrir { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.painel.largo { width: min(980px, 96vw); height: min(860px, 92vh); }
.painel.amplo { width: min(980px, 96vw); }
/* a janela nunca cobre a barra de atalhos: dá para arrastar do livro para a barra */
.painel { max-height: calc(100vh - 112px); top: calc(50% - 46px); }
.painel header { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 56px 12px; background: linear-gradient(180deg, rgba(201, 162, 92, .12), transparent); border-radius: 6px 6px 0 0; }
.painel h2 { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--titulo); font-size: 19px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: linear-gradient(180deg, #fff6dd, var(--ouro) 60%, #b07d24); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .9)); }
.painel h2::before, .painel h2::after { content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--bronze-claro)); }
.painel h2::after { background: linear-gradient(90deg, var(--bronze-claro), transparent); }
.fechar { position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 3px; font-size: 20px; line-height: 1; color: #e6d4a8; background: linear-gradient(180deg, #2a2d33, #1b1d21); border: 1px solid var(--bronze); box-shadow: inset 0 1px 0 rgba(255, 240, 210, .1); }
.fechar:hover { border-color: var(--bronze-claro); color: var(--ouro-claro); }
.painel-abas { display: flex; justify-content: center; gap: 2px; padding: 0 18px; border-bottom: 1px solid var(--linha-forte); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.painel-abas button { padding: 9px 16px; margin-bottom: -1px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s; }
.painel-abas button:hover { color: #e6d4a8; }
.painel-abas button.ativa { color: var(--ouro-claro); border-bottom-color: var(--bronze-claro); background: linear-gradient(0deg, rgba(201, 162, 92, .14), transparent); }
.painel-corpo { flex: 1; overflow-y: auto; padding: 16px 20px 20px; display: grid; align-content: start; gap: 10px; }
.secao { font-family: var(--titulo); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-claro); margin-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--linha); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.secao small { font-family: Inter, sans-serif; text-transform: none; letter-spacing: 0; color: var(--suave); font-weight: 600; font-size: 12px; }
.dica { color: var(--suave); font-size: 12.5px; margin: 0; line-height: 1.5; }

/* casas de item: recesso escuro com borda de bronze */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.slot { position: relative; aspect-ratio: 1; border-radius: 3px; background: radial-gradient(circle at 50% 35%, #22252a, #0f1114); border: 1px solid #33363c; box-shadow: inset 0 0 12px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(0, 0, 0, .6); display: grid; place-items: center; transition: border-color .15s, box-shadow .15s; }
.slot:hover { border-color: var(--bronze-claro); }
.slot.sel { border-color: var(--ouro); box-shadow: inset 0 0 12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(240, 195, 90, .35), 0 0 12px rgba(240, 195, 90, .25); }
.slot svg { width: 74%; height: 74%; }
.slot b { position: absolute; right: 4px; bottom: 2px; font-size: 11.5px; font-weight: 800; text-shadow: 0 1px 1px #000, 0 0 3px #000; }
.linha-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 3px; background: linear-gradient(180deg, rgba(255, 240, 210, .035), rgba(255, 240, 210, .01)); border: 1px solid #2a2d32; }
.linha-item .ico { width: 46px; height: 46px; border-radius: 3px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #22252a, #0f1114); border: 1px solid #33363c; box-shadow: inset 0 0 10px rgba(0, 0, 0, .8); flex: none; position: relative; overflow: hidden; }
.linha-item .ico svg { width: 38px; height: 38px; }
.linha-item .info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.linha-item .info b { font-size: 14px; }
.linha-item .info small { color: var(--suave); font-size: 12px; }
.linha-item .botoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rar-comum { color: #d7dae2; } .rar-rara { color: #78bcff; } .rar-epica { color: #c99cff; } .rar-lendaria { color: #ffc35a; }
.borda-rara { border-color: #3f78b8 !important; box-shadow: inset 0 0 12px rgba(0, 0, 0, .8), inset 0 0 10px rgba(95, 176, 255, .25) !important; }
.borda-epica { border-color: #8a5cc8 !important; box-shadow: inset 0 0 12px rgba(0, 0, 0, .8), inset 0 0 10px rgba(192, 140, 255, .3) !important; }
.borda-lendaria { border-color: #d49a3a !important; box-shadow: inset 0 0 12px rgba(0, 0, 0, .8), inset 0 0 12px rgba(255, 184, 74, .35), 0 0 10px rgba(255, 184, 74, .3) !important; }
.tempera { font-family: var(--titulo); font-weight: 800; color: var(--ouro); }
.melhor { color: var(--bom); font-weight: 700; }
.pior { color: var(--ruim); font-weight: 700; }
.atributos { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.atributo { padding: 9px 12px; border-radius: 3px; background: linear-gradient(180deg, #1a1c20, #121417); border: 1px solid #2a2d32; box-shadow: inset 0 1px 0 rgba(255, 240, 210, .04); }
.atributo small { display: block; color: var(--suave); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.atributo b { font-size: 18px; color: #f6e9c8; font-variant-numeric: tabular-nums; }
.chance { font-weight: 800; }
.chance.alta { color: var(--bom); } .chance.media { color: #ffd36a; } .chance.baixa { color: var(--ruim); }
.barra-prog { height: 6px; border-radius: 1px; background: #08090b; border: 1px solid #000; overflow: hidden; margin-top: 4px; }
.barra-prog i { display: block; height: 100%; background: linear-gradient(90deg, #b07d24, var(--ouro-claro)); }
.sequencia { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dia { padding: 8px 4px; border-radius: 3px; text-align: center; background: linear-gradient(180deg, #1a1c20, #121417); border: 1px solid #2a2d32; display: grid; gap: 2px; font-size: 11px; }
.dia b { font-family: var(--titulo); font-size: 13px; color: #f3e6c4; }
.dia small { color: var(--suave); font-size: 10.5px; line-height: 1.2; }
.dia.feito { opacity: .45; }
.dia.hoje { border-color: var(--bronze-claro); background: linear-gradient(180deg, rgba(201, 162, 92, .22), rgba(201, 162, 92, .05)); box-shadow: 0 0 14px rgba(240, 195, 90, .2); }
.memorias { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.memoria { padding: 14px 10px 12px; border-radius: 3px; background: radial-gradient(circle at 50% 20%, #1d2024, #101215 70%); border: 1px solid #33363c; box-shadow: inset 0 0 18px rgba(0, 0, 0, .6); display: grid; gap: 6px; justify-items: center; text-align: center; }
.memoria b { font-family: var(--titulo); font-size: 13.5px; color: #f3e6c4; }
.memoria .gema { width: 58px; height: 58px; filter: drop-shadow(0 0 10px var(--brilho)); }
.memoria .gema svg { width: 100%; height: 100%; }
.memoria.trancada { background: #100d14; border-color: #261f1a; }
.memoria.trancada .gema { color: #2c2632; filter: none; }
.memoria.trancada b { color: #6e6658; }
.memoria small { color: var(--suave); font-size: 11.5px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela td, .tabela th { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--linha); }
.tabela th { color: var(--bronze-claro); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; }
.tabela tr:nth-child(even) td { background: rgba(255, 240, 210, .02); }
.tabela tr.eu td { color: var(--ouro-claro); font-weight: 700; background: rgba(201, 162, 92, .1); }
.campo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.campo input { width: 110px; background: #0b0c0e; border: 1px solid #33363c; border-radius: 3px; padding: 7px 10px; outline: none; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5); }
.campo input:focus { border-color: var(--bronze-claro); }
.vazio { padding: 22px; text-align: center; color: var(--suave); border: 1px dashed #33363c; border-radius: 3px; }

/* ajustes */
.controle { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--linha); }
.controle label { font-weight: 700; color: #e6d9bc; }
.controle input[type=range] { width: 100%; accent-color: var(--bronze-claro); }
.controle output { text-align: right; color: var(--suave); font-variant-numeric: tabular-nums; }
.interruptor { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--linha); font-weight: 700; color: #e6d9bc; }
.interruptor input { width: 18px; height: 18px; accent-color: var(--bronze-claro); }
/* aparência: painel no canto, amostras de cor */
.painel.lateral { left: auto; right: 18px; width: min(380px, 94vw); transform: translateY(-50%); }
@keyframes abrirLado { from { opacity: 0; transform: translate(12px, -50%); } }
.painel.lateral { animation: abrirLado .18s ease-out; }
.amostras { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.amostra { position: relative; aspect-ratio: 1; border-radius: 3px; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .28), transparent 55%), var(--cor); border: 1px solid #33363c; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55); transition: border-color .15s, transform .1s; }
.amostra:hover { border-color: var(--bronze-claro); transform: translateY(-1px); }
.amostra.ativa { border-color: var(--ouro); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55), 0 0 0 1px var(--ouro), 0 0 12px rgba(240, 195, 90, .35); }
.amostra span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; line-height: 1.1; text-align: center; color: var(--suave); padding: 2px; }
.amostra.raridade { background: conic-gradient(from 45deg, #5fb0ff, #c08cff, #ffb84a, #5fb0ff); }
.amostra.raridade span { color: #fff; text-shadow: 0 1px 2px #000; }
.opcoes-chip { display: flex; flex-wrap: wrap; gap: 6px; }
.opcao-chip { padding: 7px 12px; border-radius: 3px; border: 1px solid #33363c; background: linear-gradient(#1d1f24, #16171b); color: var(--suave); font: 600 12px Inter, sans-serif; letter-spacing: .02em; transition: border-color .15s, color .15s; }
.opcao-chip:hover { border-color: var(--bronze-claro); color: #e8dcc0; }
.opcao-chip.ativa { border-color: var(--ouro); color: var(--ouro); box-shadow: 0 0 0 1px var(--ouro), 0 0 10px rgba(240, 195, 90, .25); }
.bicho-enfeite { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.bicho-enfeite .amostra { width: 22px; aspect-ratio: 1; }
.bicho-enfeite input { flex: 1; min-width: 110px; padding: 5px 8px; border-radius: 3px; border: 1px solid #33363c; background: #121317; color: #e8dcc0; font: 500 12px Inter, sans-serif; }
.opcoes-graficos { display: grid; gap: 6px; }
.opcao { display: grid; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 3px; background: linear-gradient(180deg, #1a1c20, #121417); border: 1px solid #2a2d32; transition: border-color .15s; }
.opcao:hover { border-color: var(--bronze); }
.opcao b { font-family: var(--titulo); font-size: 14px; color: #f3e6c4; }
.opcao small { color: var(--suave); font-size: 12px; }
.opcao.ativa { border-color: var(--bronze-claro); background: linear-gradient(180deg, rgba(201, 162, 92, .2), rgba(201, 162, 92, .04)); box-shadow: inset 0 0 0 1px rgba(255, 227, 160, .15); }
.opcao.ativa b { color: var(--ouro-claro); }
.conta-cartao { display: grid; gap: 10px; padding: 14px; margin-top: 6px; border-radius: 3px; background: linear-gradient(180deg, #1a1c20, #121417); border: 1px solid #2a2d32; }
.conta-cartao b { font-family: var(--titulo); font-size: 15px; color: #f3e6c4; }
.conta-cartao p { margin: 0; color: #cfc4ae; }

/* mapa do mundo: ocupa o painel inteiro */
.painel.largo .painel-corpo { display: flex; flex-direction: column; padding: 12px 16px 14px; overflow: hidden; }
.mapa-mundo { position: relative; flex: 1; min-height: 280px; border-radius: 3px; overflow: hidden; background: #122030; border: 1px solid var(--bronze); box-shadow: 0 0 0 1px #000; }
.mapa-mundo::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 3px rgba(12, 8, 4, .7), inset 0 0 0 4px rgba(201, 162, 92, .35), inset 0 0 40px rgba(0, 0, 0, .5); }
.mapa-mundo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.mapa-mundo canvas.arrastando { cursor: grabbing; }
.mapa-controles { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; gap: 4px; }
.mapa-controles button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 3px; font-size: 18px; font-weight: 700; line-height: 1; color: #e6d4a8; background: linear-gradient(180deg, #2a2d33, #1b1d21); border: 1px solid var(--bronze); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 240, 210, .1); }
.mapa-controles button:hover { border-color: var(--bronze-claro); color: var(--ouro-claro); }
.mapa-controles svg { width: 18px; height: 18px; }
.mapa-legenda { position: absolute; z-index: 1; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 12px; border-radius: 3px; font-size: 11.5px; font-weight: 600; color: #e6d9bc; background: rgba(14, 10, 6, .82); border: 1px solid rgba(201, 162, 92, .4); pointer-events: none; }
.mapa-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.mapa-legenda i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #120c06; }
.mapa-legenda .lg-eu { background: #ffd877; box-shadow: 0 0 6px rgba(255, 210, 120, .9); }
.mapa-legenda .lg-jog { background: #6ab8ff; }
.mapa-legenda .lg-npc { background: #ffd877; border-radius: 1px; transform: rotate(45deg) scale(.85); }
.mapa-legenda .lg-chefe { background: #ff4a8a; box-shadow: 0 0 6px #ff3a7a; }

/* ---------- diálogo do NPC ---------- */

/* ---------- modais ---------- */
.modal { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 16px; background: rgba(6, 4, 10, .62); backdrop-filter: blur(3px); }
.modal-cartao { position: relative; width: min(460px, 94vw); max-height: 88vh; overflow: auto; padding: 24px 22px 22px; display: grid; gap: 12px; text-align: center; animation: abrirModal .25s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes abrirModal { from { opacity: 0; transform: scale(.92); } }
.modal-cartao h2 { margin: 0; font-family: var(--titulo); font-size: 22px; letter-spacing: .06em; background: linear-gradient(180deg, #fff6dd, var(--ouro) 60%, #b07d24); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .9)); }
.modal-cartao p { margin: 0; color: #ddd2bc; }
.resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.resumo div { padding: 10px; border-radius: 3px; background: linear-gradient(180deg, #1a1c20, #121417); border: 1px solid #2a2d32; display: grid; }
.resumo b { font-size: 20px; font-weight: 800; color: #f6e9c8; font-variant-numeric: tabular-nums; }
.resumo span { color: var(--suave); font-size: 12px; }
.loot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.loot span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 3px; background: #141619; border: 1px solid #33363c; font-size: 12.5px; font-weight: 600; }
.loot svg { width: 20px; height: 20px; }
.alerta { padding: 10px; border-radius: 3px; background: rgba(140, 30, 30, .18); border: 1px solid rgba(220, 90, 90, .4); color: #ffd5d5; font-size: 13px; }

.splash { position: fixed; inset: 0; z-index: 15; display: grid; place-content: center; text-align: center; pointer-events: none; }
.splash b { font-family: var(--titulo); font-size: 64px; font-weight: 800; letter-spacing: .04em; background: linear-gradient(180deg, #fff6dd, var(--ouro) 60%, #c98d22); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(240, 195, 90, .55)); animation: nivelEntra 2.4s ease-out forwards; }
.splash span { color: #fff2d0; font-weight: 700; text-shadow: 0 2px 10px #000; animation: nivelEntra 2.4s ease-out forwards; }
@keyframes nivelEntra { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.08); } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }

/* ---------- celular ---------- */
@media (max-width: 900px), (max-height: 560px) {
  .entrada { grid-template-columns: 1fr; padding: 16px; align-items: end; overflow: auto; background: linear-gradient(180deg, rgba(10, 12, 15, .2), rgba(10, 12, 15, .9) 55%); }
  .marca { margin-top: 0; }
  .marca h1 { font-size: 30px; }
  .marca p { font-size: 13px; }
  .topo { top: 8px; left: 8px; right: 8px; }
  .retrato-anel { width: 52px; height: 52px; }
  .retrato { width: 34px; height: 34px; }
  .nivel { font-size: 11px; bottom: -8px; }
  .ficha-meio { width: 176px; padding: 5px 9px 7px 20px; }
  .ficha-nome small { display: none; }
  .minimapa { width: 104px; height: 104px; padding: 4px; }
  .minimapa::before { inset: 4px; }
  .minimapa span { font-size: 10px; padding: 2px 8px; bottom: -10px; max-width: 120px; }
  .minimapa::after { width: 15px; height: 15px; font-size: 9px; }
  .moedas { height: 26px; padding: 0 9px; font-size: 12.5px; }
  .ajustes-botao { width: 26px; height: 26px; }
  .bolsa-topo { position: absolute; top: 122px; right: 0; margin: 0; }
  .menu { top: 156px; bottom: auto; right: 8px; grid-auto-flow: row; padding: 4px; gap: 4px; }
  .menu button { width: 40px; height: 40px; }
  .menu svg { width: 22px; height: 22px; }
  .menu button::after { display: none; }
  .missao { top: 74px; left: 8px; right: auto; width: 200px; padding: 7px 10px; border-right: 0; border-left: 2px solid var(--bronze-claro); background: linear-gradient(90deg, rgba(10, 12, 15, .75), rgba(10, 12, 15, 0)); }
  .missao p { font-size: 11.5px; }
  .chat { width: 200px; bottom: auto; top: 240px; left: 8px; }
  body:has(#alvo-info:not([hidden])) .missao { top: 124px; }
  body:has(#alvo-info:not([hidden])) .chat { top: 290px; }
  .chat .log { max-height: 84px; font-size: 11.5px; }
  .chat-topo { display: none; }
  #form-chat { display: none; }
  #chat-tamanho, #chat-recolher { display: none; }
  body.chat-aberto #chat-recolher { display: grid; place-items: center; }
  .chat-abrir { display: grid; place-items: center; position: absolute; left: 8px; top: auto; bottom: calc(132px + var(--seguro-baixo)); width: 38px; height: 38px; border-radius: 50%; background: rgba(14, 10, 8, .85); border: 1px solid var(--bronze); color: var(--ouro-claro); z-index: 6; }
  .chat-abrir svg { width: 20px; height: 20px; }
  .chat-abrir .nao-lidas { position: absolute; top: -4px; right: -4px; font-size: 10px; background: #d84a4a; color: #fff; border-radius: 8px; padding: 0 5px; line-height: 16px; }
  body.chat-aberto .chat { top: auto; bottom: calc(96px + var(--seguro-baixo)); left: 8px; right: 8px; width: auto; z-index: 7; background: rgba(10, 8, 12, .92); border: 1px solid var(--bronze); border-radius: 6px; padding: 6px; }
  body.chat-aberto .chat .log { max-height: 40vh; height: 40vh; font-size: 13px; mask-image: none; }
  body.chat-aberto .chat-topo, body.chat-aberto #form-chat { display: flex; opacity: 1; }
  body.chat-aberto #msg { font-size: 16px; }
  .canal-acao { bottom: calc(170px + var(--seguro-baixo)); }
  /* ações em leque, no canto do polegar */
  .acoes { left: auto; right: 10px; bottom: calc(18px + var(--seguro-baixo)); transform: scale(.88); transform-origin: right bottom; width: 250px; height: 220px; display: block; padding: 0; background: none; border: 0; box-shadow: none; }
  .acoes > * { position: absolute; }
  .hab { width: 60px; height: 60px; border-radius: 50%; border-width: 2px; }
  .atacar { right: 0; bottom: 0; width: 92px; height: 92px; margin: 0; border-radius: 50%; border-width: 2px; }
  .atacar svg { width: 46px; height: 46px; }
  .hab .tecla, .atacar .tecla { display: none; }
  .barra-atalhos { position: static; display: contents; }
  .barra-atalhos .hab { display: none; }
  [data-slot="0"] { display: grid !important; right: 104px; bottom: 6px; }
  [data-slot="1"] { display: grid !important; right: 92px; bottom: 82px; }
  [data-slot="2"] { display: grid !important; right: 22px; bottom: 112px; }
  [data-slot="3"] { display: grid !important; right: 170px; bottom: 54px; }
  [data-slot="8"] { display: grid !important; right: 166px; bottom: 124px; width: 50px; height: 50px; }
  .barra-atalhos .hab .qtd { right: 50%; transform: translateX(50%); bottom: 0; }
  .eco { left: auto; right: 0; bottom: 186px; transform: none; }
  .alvo-info { top: 74px; left: 8px; width: 200px; transform: none; }
  .chefe-faixa { top: auto; bottom: calc(18px + var(--seguro-baixo)); left: 8px; width: calc(100vw - 225px); min-width: 150px; transform: none; padding: 7px 9px; }
  .chefe-linha { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 11.5px; }
  .chefe-linha span { grid-row: 2; grid-column: 1 / -1; color: #e6c6d2; }
  .feed { bottom: calc(225px + var(--seguro-baixo)); }
  .painel { width: 100vw; height: 100%; max-height: none; border-radius: 0; top: 0; left: 0; transform: none; animation: none; border: 0; box-shadow: none; }
  .painel::after { display: none; }
  .painel header { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .painel h2 { font-size: 17px; }
  .painel h2::before, .painel h2::after { display: none; }
  .dialogo { bottom: calc(16px + var(--seguro-baixo)); }
  .classes { grid-template-columns: 1fr 1fr; }
  .classe small { display: none; }
  .splash b { font-size: 44px; }
}

/* ---------- talentos ---------- */
.talentos-topo { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid #2a2d32; border-radius: 3px; background: linear-gradient(180deg, #1a1c20, #121417); }
.talentos-topo > div:first-child { display: grid; justify-items: center; min-width: 74px; }
.talentos-topo .pontos { font-family: var(--titulo); font-size: 28px; line-height: 1; color: var(--ouro-claro); text-shadow: 0 0 12px rgba(240, 195, 90, .35); }
.talentos-topo small { color: var(--suave); font-size: 11px; }
.talentos-topo .resumo { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #d9cdb2; }
.arvore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ramo { display: grid; gap: 6px; align-content: start; position: relative; }
.ramo::before { content: ''; position: absolute; left: 50%; top: 58px; bottom: 24px; width: 2px; margin-left: -1px; background: linear-gradient(180deg, var(--linha-forte), transparent); pointer-events: none; }
.ramo-topo { display: grid; gap: 1px; padding: 6px 4px 8px; border-bottom: 1px solid var(--linha); text-align: center; }
.ramo-topo b { font-family: var(--titulo); font-size: 13px; letter-spacing: .06em; color: var(--bronze-claro); }
.ramo-topo small { color: var(--suave); font-size: 11.5px; }
.ramo-topo em { font-style: normal; font-size: 11px; color: #cdbf9f; font-variant-numeric: tabular-nums; }
.talento { position: relative; z-index: 1; display: grid; gap: 3px; text-align: left; padding: 8px 10px; border-radius: 3px; background: linear-gradient(180deg, #1b1d21, #141619); border: 1px solid #33363c; box-shadow: inset 0 1px 0 rgba(255, 240, 210, .05); transition: border-color .15s, filter .15s; }
.talento:not(:disabled):hover { border-color: var(--bronze-claro); filter: brightness(1.12); }
.talento:disabled { cursor: default; }
.talento.fechado { background: #121417; border-color: #2a2d31; }
.talento.fechado .talento-nome { color: #857a68; }
.talento.fechado .talento-txt { color: #6f6656; }
.talento.tem { border-color: var(--bronze); }
.talento.cheio { border-color: #a8873f; background: linear-gradient(180deg, #2a2216, #17120c); }
.talento.fim { border-style: double; border-width: 3px; }
.talento.fim.tem { border-color: var(--ouro); box-shadow: 0 0 14px rgba(240, 195, 90, .22), inset 0 1px 0 rgba(255, 240, 210, .1); }
.talento-nome { font-weight: 700; font-size: 13px; color: #f3e6c6; }
.talento-txt { font-size: 11.5px; color: var(--suave); line-height: 1.35; }
.talento-pede { font-size: 10.5px; color: #9a8a6c; text-transform: uppercase; letter-spacing: .06em; }
.marcas { display: flex; gap: 3px; margin-top: 2px; }
.marcas i { flex: 1; max-width: 22px; height: 4px; border-radius: 1px; background: #2c2420; box-shadow: inset 0 0 0 1px #3d3226; }
.marcas i.on { background: linear-gradient(90deg, #d29a34, #ffe08a); box-shadow: 0 0 6px rgba(240, 195, 90, .45); }
.melhorada { color: var(--ouro); font-weight: 600; font-size: 11px; }
@media (max-width: 720px) { .arvore { grid-template-columns: 1fr; } .ramo::before { display: none; } }

/* ---------- evolução ---------- */
.caminhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.caminho { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 3px; border: 1px solid #33363c; background: linear-gradient(180deg, #1a1c20, #121417); }
.caminho.meu { border-color: var(--ouro); box-shadow: 0 0 18px rgba(240, 195, 90, .18); }
.caminho.outro { opacity: .5; filter: grayscale(.6); }
.caminho-topo { display: flex; gap: 10px; align-items: center; }
.caminho-topo .ico { width: 52px; height: 52px; border-radius: 3px; overflow: hidden; border: 1px solid var(--bronze); flex: none; }
.caminho-topo .ico svg { width: 100%; height: 100%; }
.caminho-topo b { font-family: var(--titulo); font-size: 15px; color: var(--ouro-claro); display: block; }
.caminho-topo small { color: var(--suave); font-size: 12px; }
.caminho-linha { display: grid; gap: 1px; padding-top: 6px; border-top: 1px solid var(--linha); font-size: 12.5px; color: #e2d6bb; }
.caminho-linha small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bronze-claro); }
.caminho .botoes { display: flex; gap: 6px; flex-wrap: wrap; }
.marca-caminho { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 2px; border: 1px solid var(--ouro); color: var(--ouro-claro); }
.marca-caminho.fechado { border-color: #33363c; color: var(--suave); }
.aviso-escolha { color: #e9c27a; }
.hab.evo { border-color: #8a6a2a; }

/* ---------- barra de atalhos ---------- */
.barra-atalhos { display: flex; gap: 4px; }
.barra-atalhos .hab { width: 48px; height: 48px; }
.barra-atalhos .hab.vazia { background: repeating-linear-gradient(135deg, #141619 0 6px, #16181c 6px 12px); border-color: #2a2d31; }
.barra-atalhos .hab.vazia .tecla { color: rgba(255, 245, 220, .35); }
.barra-atalhos .hab.item .ico { padding: 6px; }
.barra-atalhos .hab .qtd { position: absolute; right: 3px; bottom: 1px; z-index: 1; font-size: 11px; font-weight: 800; text-shadow: 0 1px 1px #000, 0 0 3px #000; }
.barra-atalhos .hab:nth-child(9) { margin-left: 8px; }
.barra-atalhos .hab[draggable="true"] { cursor: grab; }

/* bônus ativos embaixo do retrato */
.buffs { position: absolute; top: 92px; left: 18px; display: flex; gap: 4px; pointer-events: none; }
.buff { position: relative; width: 30px; height: 30px; border-radius: 3px; overflow: hidden; border: 1px solid var(--bronze-claro); box-shadow: 0 0 8px rgba(240, 195, 90, .3); }
.buff svg { width: 100%; height: 100%; }
.buff b { position: absolute; right: 1px; bottom: 0; font-size: 10px; font-weight: 800; text-shadow: 0 1px 1px #000, 0 0 3px #000; }

/* ---------- livro de habilidades ---------- */
.livro { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 6px; }
.hab-livro { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 3px; border: 1px solid #33363c; background: linear-gradient(180deg, #1b1d21, #121417); }
.hab-livro[draggable="true"] { cursor: grab; }
.hab-livro[draggable="true"]:hover { border-color: var(--bronze-claro); }
.hab-livro .ico { width: 54px; height: 54px; flex: none; border-radius: 3px; overflow: hidden; border: 1px solid var(--bronze); }
.hab-livro .ico svg { width: 100%; height: 100%; }
.hab-livro.nao-sabe .ico { filter: grayscale(1) brightness(.5); border-color: #33363c; }
.hab-livro.nao-sabe b { color: #a39883; }
.hab-livro .info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hab-livro .info b { font-size: 14px; color: #f3e6c6; }
.hab-livro .info b small { font-weight: 600; color: var(--bronze-claro); font-size: 11px; margin-left: 4px; }
.hab-livro .info > small { color: var(--suave); font-size: 12px; }
.hab-livro .numeros { color: #d9cdb2 !important; }
.hab-livro .prox { color: var(--bom); }
.hab-livro .marcas i { max-width: 14px; }
.hab-livro .botoes { display: grid; gap: 4px; justify-items: end; flex: none; max-width: 170px; }
.hab-livro .pede { font-size: 11px; color: #9a8a6c; text-align: right; }
.faixa-mestre { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--bronze); border-radius: 3px; background: linear-gradient(90deg, rgba(201, 162, 92, .12), transparent); font-size: 12.5px; color: #e2d6bb; }
.num.mana { color: #8ab8ff; }

/* ---------- infusão ---------- */
.inf-grade { display: grid; grid-template-columns: 230px 1fr; gap: 10px; min-height: 0; }
.inf-lista { display: grid; gap: 4px; align-content: start; }
.inf-hab { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 6px 8px; border: 1px solid #33363c; border-radius: 3px; background: linear-gradient(180deg, #1b1d21, #121417); color: #e8dcc0; cursor: pointer; }
.inf-hab:hover { border-color: var(--bronze); }
.inf-hab.sel { border-color: var(--bronze-claro); box-shadow: inset 0 0 0 1px rgba(201, 162, 92, .35); }
.inf-hab .ico { grid-row: span 2; width: 34px; height: 34px; border: 1px solid var(--bronze); border-radius: 3px; overflow: hidden; }
.inf-hab .ico svg { width: 100%; height: 100%; }
.inf-hab b { font-size: 12.5px; }
.inf-tag { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--el); text-shadow: 0 0 6px color-mix(in srgb, var(--el) 50%, transparent); }
.inf-titulo { display: grid; gap: 2px; font-family: var(--titulo, inherit); font-size: 16px; color: #f3e6c6; margin-bottom: 8px; }
.inf-titulo small { font-family: inherit; font-size: 12px; color: var(--suave); }
.inf-cartas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.inf-carta { display: grid; gap: 6px; align-content: start; padding: 10px; border: 1px solid color-mix(in srgb, var(--el) 28%, #2c2e33); border-radius: 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--el) 9%, #17191c), #111316); }
.inf-carta.ativa { border-color: var(--el); box-shadow: 0 0 14px -4px var(--el), inset 0 0 18px -10px var(--el); }
.inf-topo { display: flex; align-items: center; gap: 8px; }
.inf-topo .gema { width: 28px; height: 28px; flex: none; }
.inf-topo .gema svg { width: 100%; height: 100%; }
.inf-topo b { color: var(--el); font-size: 14px; }
.inf-topo small { margin-left: auto; font-size: 11px; color: #e8dcc0; }
.inf-carta p { margin: 0; font-size: 12px; line-height: 1.35; color: #d9cdb2; }
.inf-carta .inf-prox { color: var(--bom); }
.inf-carta .inf-prox:empty { display: none; }
.inf-custo { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: #cfc3a6; }
.inf-custo .falta { color: var(--ruim, #e06a5a); }
.inf-carta .botao { justify-self: stretch; }
@media (max-width: 760px) { .inf-grade { grid-template-columns: 1fr; } .inf-lista { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }

/* ---------- conversa com NPC ---------- */
/* faixas de cinema e a HUD saindo de cena */
.cinema { position: fixed; inset: 0; z-index: 17; pointer-events: none; }
.cinema::before, .cinema::after { content: ''; position: absolute; left: 0; right: 0; height: 0; background: #050307; transition: height .45s cubic-bezier(.2, .7, .2, 1); }
.cinema::before { top: 0; } .cinema::after { bottom: 0; }
body.em-dialogo .cinema::before, body.em-dialogo .cinema::after { height: 8.5vh; }
body.em-dialogo :is(.acoes, .menu, .missao, .chat, .topo, .xp, .alvo-info, .buffs, .chefe-faixa, .feed, #placas, .grupo, .convite) { opacity: 0; pointer-events: none; transition: opacity .3s; }
.dialogo { position: fixed; z-index: 18; left: 50%; bottom: calc(8.5vh + 18px); transform: translateX(-50%); width: min(860px, 94vw); padding: 20px 28px 16px; display: grid; gap: 12px; animation: subirDlg .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes subirDlg { from { opacity: 0; transform: translate(-50%, 16px); } }
.dlg-nome { position: absolute; top: -17px; left: 22px; display: flex; align-items: baseline; gap: 10px; padding: 6px 16px 7px; border: 1px solid var(--bronze-claro); border-radius: 2px; background: linear-gradient(180deg, #2c2416, #17120c); box-shadow: 0 4px 14px rgba(0, 0, 0, .6); }
.dlg-nome b { font-family: var(--titulo); font-size: 16px; color: var(--ouro-claro); letter-spacing: .04em; }
.dlg-nome small { font-size: 11.5px; color: #c9b48a; font-weight: 600; }
.dlg-texto { margin: 8px 0 0; min-height: 3.2em; color: #efe6d2; font-size: 15.5px; line-height: 1.65; cursor: pointer; text-shadow: 0 1px 2px #000; }
.dlg-opcoes { list-style: none; margin: 0; padding: 10px 0 0; display: grid; gap: 2px; border-top: 1px solid var(--linha); }
.dlg-opcoes button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 7px 10px; border-radius: 2px; color: #e2d6bb; font-size: 14px; transition: background .12s, color .12s; }
.dlg-opcoes button:hover { background: linear-gradient(90deg, rgba(201, 162, 92, .18), transparent); color: #fff3d6; }
.dlg-opcoes .n { width: 20px; height: 20px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #241505; border-radius: 2px; background: linear-gradient(180deg, #f6d784, #b8862a); }
.dlg-opcoes button.dlg-missao { color: var(--ouro-claro); }
.dlg-opcoes button.dlg-sair { color: var(--suave); }
.dlg-dica { justify-self: end; font-size: 10.5px; color: #7d7262; }
@media (max-width: 720px) {
  body.em-dialogo .cinema::before, body.em-dialogo .cinema::after { height: 5vh; }
  .dialogo { bottom: calc(5vh + 10px + var(--seguro-baixo)); padding: 18px 16px 12px; }
  .dlg-dica { display: none; }
}

/* ---------- montaria e estábulo ---------- */
#eco { left: calc(50% - 72px); }
.eco.montar { left: calc(50% + 72px); }
@media (max-width: 720px) { #eco { left: auto; } .eco.montar { left: auto; right: 0; bottom: 224px; transform: none; } }
.montar .ico-monta { width: 18px; height: 18px; display: inline-grid; }
.montar .ico-monta svg { width: 100%; height: 100%; }
.montar.ligado { border-color: var(--ouro); color: var(--ouro-claro); }
.bicho { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 3px; border: 1px solid #33363c; background: linear-gradient(180deg, #1b1d21, #121417); }
.bicho.usando { border-color: var(--ouro); box-shadow: 0 0 14px rgba(240, 195, 90, .15); }
.bicho.nao-tem .ico { filter: grayscale(.8) brightness(.6); }
.bicho .ico { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 3px; border: 1px solid var(--bronze); background: radial-gradient(circle at 50% 35%, #24272c, #101215); }
.bicho .ico svg { width: 44px; height: 44px; }
.bicho .info { flex: 1; display: grid; gap: 2px; min-width: 0; }
.bicho .info b { color: #f3e6c6; }
.bicho .info small { color: var(--suave); font-size: 12px; }
.bicho .numeros { color: var(--bom) !important; }
.bicho .botoes { display: grid; gap: 4px; justify-items: end; }
.bicho .pede { font-size: 11px; color: #9a8a6c; }
.buff.item { border-color: #6fd3a8; background: #13201a; display: grid; place-items: center; }
.buff.item svg { width: 24px; height: 24px; }

/* guilda */
.guilda-vazia { text-align: center; padding: 12px 6px; }
.guilda-vazia h3, .guilda-topo h3 { font-family: var(--titulo); color: var(--ouro-claro); margin: 6px 0 2px; }
.guilda-vazia p { color: #c9bda6; font-size: 13px; max-width: 420px; margin: 6px auto 14px; }
.brasao { width: 58px; height: 58px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #4a3418, #1a1008); border: 2px solid var(--bronze); color: var(--ouro-claro); box-shadow: 0 0 18px rgba(255, 200, 110, .2); }
.brasao svg { width: 34px; height: 34px; }
.guilda-topo { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.guilda-topo .brasao { margin: 0; flex: none; }
.guilda-topo small { color: #b0a48c; }
.fundar { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }
.fundar input, .guilda-aviso textarea { flex: 1; max-width: 300px; background: rgba(10, 8, 14, .8); border: 1px solid #33363c; border-radius: 3px; padding: 7px 10px; color: #f0e6d2; font: inherit; font-size: 13px; }
.guilda-aviso { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 6px; }
.guilda-aviso textarea { max-width: none; min-height: 48px; resize: vertical; }
.guilda-aviso p { margin: 0; padding: 8px 10px; background: rgba(255, 220, 160, .05); border-left: 2px solid var(--bronze); flex: 1; font-size: 13px; }
.membros { display: grid; gap: 3px; }
.membro { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .04); border-radius: 3px; }
.membro .pontinho { width: 8px; height: 8px; border-radius: 50%; background: #4a4438; flex: none; }
.membro.on .pontinho { background: #6fe08a; box-shadow: 0 0 6px #6fe08a; }
.membro .info { flex: 1; min-width: 0; display: grid; }
.membro .info small { color: #9c907a; font-size: 11.5px; }
.membro:not(.on) .info b { color: #9c907a; }
.cargo { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #b0a48c; }
.cargo-lider { color: var(--ouro-claro); } .cargo-oficial { color: #8fd2ff; }
.botoes-fim { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.faixa-convite { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: rgba(110, 220, 140, .08); border: 1px solid rgba(110, 220, 140, .35); border-radius: 3px; margin-bottom: 8px; }
.faixa-convite span { flex: 1; font-size: 13px; }
/* fogueira, lote e viagem */
.receitas { display: grid; gap: 6px; }
.receita { display: flex; gap: 10px; align-items: center; padding: 8px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .05); border-radius: 3px; }
.receita > .ico { width: 44px; height: 44px; flex: none; }
.receita .info { flex: 1; display: grid; gap: 2px; min-width: 0; }
.receita .info small { color: #a89c86; font-size: 12px; }
.ingredientes { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; }
.ingrediente { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.ingrediente svg { width: 18px; height: 18px; }
.ingrediente.falta { color: #d88a7a; } .ingrediente.tem { color: #b8e0a0; }
.receita .botoes { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.lote-estado { text-align: center; padding: 16px 8px; }
.lote-estado .ico.grande { width: 72px; height: 72px; margin: 0 auto; }
.lote-estado .prog { height: 10px; max-width: 300px; margin: 10px auto; background: rgba(8, 6, 10, .8); border: 1px solid var(--bronze); border-radius: 2px; overflow: hidden; }
.lote-estado .prog i { display: block; height: 100%; background: linear-gradient(180deg, #c8f0a0, #5aa040); }
.destinos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.destino { display: grid; gap: 2px; text-align: left; padding: 10px 12px; background: linear-gradient(180deg, rgba(60, 44, 24, .6), rgba(20, 14, 8, .8)); border: 1px solid #4a3a24; border-radius: 3px; color: #f0e6d2; }
.destino:hover { border-color: var(--ouro-claro); }
.destino b { font-family: var(--titulo); color: var(--ouro-claro); }
.destino small { color: #a89c86; }
.destino span { font-weight: 700; font-size: 13px; }

/* nome da guilda na placa e o clarão do portal */
.placa .guilda-tag { display: block; font-style: normal; font-size: 10px; font-weight: 700; color: #8ef0a8; letter-spacing: .04em; }
body.teleporte::after { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(230, 210, 255, .0) 20%, rgba(150, 110, 230, .55)); animation: clarao .7s ease-out forwards; z-index: 30; }
@keyframes clarao { from { opacity: 1; } to { opacity: 0; } }

/* ---------- mochila em grade fixa ---------- */
.mochila { display: grid; gap: 12px; }
.casas { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 8px; background: rgba(6, 5, 8, .55); border: 1px solid #2b2e33; border-radius: 3px; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .7); }
.casa { position: relative; aspect-ratio: 1; border-radius: 2px; background: radial-gradient(circle at 50% 35%, #22252a, #0f1114); border: 1px solid #33363c; box-shadow: inset 0 0 10px rgba(0, 0, 0, .85); display: grid; place-items: center; padding: 0; transition: border-color .12s; }
.casa.vazia { background: linear-gradient(180deg, #131518, #0d0f11); border-color: #24272b; }
button.casa:hover { border-color: var(--bronze-claro); }
.casa.sel { border-color: var(--ouro) !important; box-shadow: inset 0 0 10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(240, 195, 90, .4), 0 0 10px rgba(240, 195, 90, .25) !important; }
.casa svg { width: 72%; height: 72%; }
.casa b { position: absolute; right: 3px; bottom: 1px; font-size: 11px; font-weight: 800; text-shadow: 0 1px 1px #000, 0 0 3px #000; }
.casa b.tempera { left: 3px; right: auto; top: 1px; bottom: auto; color: #ffd27a; }
.casa .nv { position: absolute; right: 3px; bottom: 1px; font: 700 10px Inter, sans-serif; font-style: normal; color: #b9ab92; text-shadow: 0 1px 1px #000; }
.detalhe-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 3px; background: linear-gradient(180deg, rgba(255, 240, 210, .05), rgba(255, 240, 210, .015)); border: 1px solid #33363c; }
.detalhe-item .ico { width: 52px; height: 52px; border-radius: 3px; display: grid; place-items: center; flex: none; background: radial-gradient(circle at 50% 35%, #22252a, #0f1114); border: 1px solid #33363c; box-shadow: inset 0 0 10px rgba(0, 0, 0, .8); }
.detalhe-item .ico svg { width: 42px; height: 42px; }
.detalhe-item .info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.detalhe-item .info b { font-size: 14.5px; }
.detalhe-item .info small { color: var(--suave); font-size: 12px; }
.detalhe-item .info .valor { color: #c9b48a; }
.detalhe-item .botoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mochila-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid #2b2e33; }
.moedas-bolsa { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #ffe3a0; font-variant-numeric: tabular-nums; }
.capacidade { color: var(--suave); font-size: 12px; }

/* ---------- ficha do herói ---------- */
.heroi-ficha { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-bottom: 12px; }
.heroi-boneco { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 14px 12px; border: 1px solid #33363c; border-radius: 3px;
  background: radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--c2) 22%, transparent), transparent 62%), linear-gradient(180deg, #16181b, #0e1013); box-shadow: inset 0 0 30px rgba(0, 0, 0, .7); }
.heroi-coluna { display: grid; gap: 8px; }
.encaixe { position: relative; width: 64px; height: 64px; border-radius: 3px; display: grid; place-items: center; padding: 0; background: radial-gradient(circle at 50% 35%, #22252a, #0f1114); border: 1px solid #4a3c2a; box-shadow: inset 0 0 12px rgba(0, 0, 0, .85); }
.encaixe svg { width: 70%; height: 70%; }
.encaixe.livre svg { opacity: .55; }
.encaixe small { position: absolute; left: 0; right: 0; bottom: -1px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a8987c; text-shadow: 0 1px 2px #000; text-align: center; }
.encaixe:hover { border-color: var(--bronze-claro); }
.encaixe.sel { border-color: var(--ouro) !important; box-shadow: inset 0 0 12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(240, 195, 90, .4), 0 0 12px rgba(240, 195, 90, .3) !important; }
.encaixe b.tempera { position: absolute; left: 4px; top: 2px; font-size: 11px; color: #ffd27a; text-shadow: 0 1px 2px #000; }
.encaixe .gema-mem { position: absolute; right: 5px; top: 5px; width: 8px; height: 8px; transform: rotate(45deg); box-shadow: 0 0 6px currentColor, 0 0 0 1px rgba(0, 0, 0, .6); }
.heroi-centro { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.heroi-brasao { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--c2); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c2) 35%, #120e16), #0b090d 70%); box-shadow: 0 0 22px color-mix(in srgb, var(--c2) 45%, transparent), inset 0 0 18px rgba(0, 0, 0, .8); }
.heroi-brasao svg { width: 62%; height: 62%; }
.heroi-nome { font: 700 17px Inter, sans-serif; color: #f6e9c8; letter-spacing: .03em; margin-top: 4px; }
.heroi-centro > small { color: var(--c1); font-size: 12px; font-weight: 600; }
.heroi-xp { width: 82%; height: 5px; margin-top: 4px; background: rgba(0, 0, 0, .6); border: 1px solid #33363c; border-radius: 2px; overflow: hidden; }
.heroi-xp i { display: block; height: 100%; background: linear-gradient(90deg, #6a4ac8, #b48cff); }
.heroi-poder { margin-top: 8px; display: grid; }
.heroi-poder small { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); }
.heroi-poder b { font: 700 24px Inter, sans-serif; color: #ffd98a; text-shadow: 0 0 12px rgba(240, 195, 90, .35); font-variant-numeric: tabular-nums; }
.heroi-atr { padding: 10px 14px; border: 1px solid #33363c; border-radius: 3px; background: linear-gradient(180deg, #16181b, #0e1013); align-self: stretch; }
.heroi-atr h4 { margin: 4px 0 4px; font: 700 11px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ouro); }
.heroi-atr h4 + .heroi-linha { border-top: 1px solid #2b2e33; }
.heroi-atr h4:not(:first-child) { margin-top: 12px; }
.heroi-linha { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(58, 48, 36, .45); font-size: 13px; }
.heroi-linha span { color: #c4b59a; }
.heroi-linha b { color: #f6e9c8; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .heroi-ficha { grid-template-columns: 1fr; }
  .casas { grid-template-columns: repeat(5, 1fr); }
  .encaixe { width: 56px; height: 56px; }
  .heroi-brasao { width: 76px; height: 76px; }
  .detalhe-item { flex-wrap: wrap; }
  .detalhe-item .info { flex-basis: calc(100% - 66px); }
  .detalhe-item .botoes { width: 100%; justify-content: stretch; }
  .detalhe-item .botoes .botao { flex: 1; }
}

/* combo de habilidades, à direita da barra de atalhos */
.combo-elo { position: absolute; left: calc(50% + 330px); bottom: calc(96px + var(--seguro-baixo)); display: grid; justify-items: start; pointer-events: none; }
.combo-elo b { font: 800 34px/1 Inter, sans-serif; color: #ffe3a0; text-shadow: 0 2px 0 #4a2a08, 0 0 14px rgba(255, 170, 60, .55); font-variant-numeric: tabular-nums; }
.combo-elo span { font: 700 11px Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #e8c88a; text-shadow: 0 1px 2px #000; }
.combo-elo small { font-size: 11px; font-weight: 700; color: #ffcf7a; text-shadow: 0 1px 2px #000; }
.combo-elo i { display: block; width: 92px; height: 4px; margin-top: 4px; background: rgba(0, 0, 0, .6); border: 1px solid #5a4424; border-radius: 2px; overflow: hidden; }
.combo-elo em { display: block; height: 100%; background: linear-gradient(90deg, #ffb84a, #ffe7a8); transition: width .1s linear; }
.combo-elo.maximo b { color: #ffd0ff; text-shadow: 0 2px 0 #3a0a4a, 0 0 18px rgba(220, 120, 255, .7); }
.combo-elo.pulo b { animation: comboPulo .28s ease-out; }
@keyframes comboPulo { 0% { transform: scale(1.6); } 100% { transform: scale(1); } }
@media (max-width: 900px), (max-height: 560px) { .combo-elo { left: auto; right: 14px; bottom: auto; top: 46%; } }


/* ================= tema: Firmamento =================
   A linha dos RPGs de agora: vidro quase preto e translúcido, fio de ouro fino com filigrana nos cantos, um estilhaço
   como joia, brilho suave onde há energia. As peças vêm de ferramentas/gerar_interface.mjs (no dobro do tamanho: as
   fatias do border-image vão no dobro). Fica no fim para valer sobre o resto. */
:root {
  --vidro: linear-gradient(180deg, rgba(18, 20, 27, .93), rgba(7, 8, 11, .95));
  --vidro-leve: linear-gradient(180deg, rgba(18, 20, 27, .78), rgba(7, 8, 11, .84));
  --fio: rgba(212, 173, 106, .55);
  --fio-fraco: rgba(212, 173, 106, .2);
  --bronze-claro: #d4ad6a;
  --ouro: #dcb673;
  --ouro-claro: #f3e0b4;
  --texto: #f1ebdf;
  --suave: #a8a091;
}

/* molduras grandes: painel, diálogo, modal e cartão de entrada */
.painel, .dialogo, .modal-cartao, .cartao-entrada {
  background: var(--vidro); background-clip: border-box;
  border: 16px solid transparent; border-image: url(ui/moldura.png) 96 / 32px / 0 stretch; border-radius: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), inset 0 0 80px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.painel::before, .dialogo::before, .modal-cartao::before, .cartao-entrada::before,
.painel::after, .dialogo::after, .modal-cartao::after, .cartao-entrada::after { display: none; }
.painel header { background: radial-gradient(60% 120% at 50% 0, rgba(212, 173, 106, .12), transparent 70%); border-bottom: 1px solid var(--fio-fraco); }
.painel h2 { font: 600 15px var(--marca); letter-spacing: .24em; text-transform: uppercase; color: var(--ouro-claro); text-shadow: 0 0 14px rgba(220, 182, 115, .35); }
.painel h2::before, .painel h2::after { display: none; }
.painel .fechar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--fio); background: rgba(0, 0, 0, .35); color: var(--ouro-claro); font-size: 18px; line-height: 1; transition: box-shadow .15s, color .15s; }
.painel .fechar:hover { color: #fff; box-shadow: 0 0 12px rgba(220, 182, 115, .5); }
.painel-abas button { color: var(--suave); letter-spacing: .06em; }
.painel-abas button.ativa { background: none; color: var(--ouro-claro); box-shadow: inset 0 -2px 0 var(--ouro), 0 6px 14px -8px rgba(220, 182, 115, .6); }
.modal-cartao h2, .splash b { font-family: var(--marca); font-weight: 600; letter-spacing: .1em; background: none; color: #f6ead0; -webkit-text-fill-color: currentColor; filter: none; text-shadow: 0 0 22px rgba(220, 182, 115, .35); }

/* cartões e linhas dentro dos painéis */
.opcao, .conta-cartao, .resumo div, .atributo, .dia, .linha-item, .detalhe-item, .talento, .caminho, .hab-livro, .bicho, .heroi-atr, .talentos-topo, .destino, .classe {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid rgba(255, 255, 255, .07); border-radius: 6px; box-shadow: none;
}
.opcao.ativa, .dia.hoje, .classe.ativa { background: linear-gradient(180deg, rgba(220, 182, 115, .14), rgba(220, 182, 115, .04)); border-color: var(--fio); box-shadow: 0 0 18px -6px rgba(220, 182, 115, .45); }
.slot, .casa, .encaixe, .linha-item .ico, .detalhe-item .ico { border-radius: 8px; background: url(ui/casa.png) center / 100% 100% no-repeat; border-color: transparent; box-shadow: none; }

/* botões */
.botao {
  border: 1px solid var(--fio); border-radius: 5px; background: linear-gradient(180deg, rgba(34, 37, 46, .95), rgba(12, 13, 17, .95));
  color: var(--texto); font-weight: 600; letter-spacing: .03em; text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: box-shadow .15s, border-color .15s;
}
.botao:hover { filter: none; border-color: var(--ouro); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 14px -2px rgba(220, 182, 115, .45); }
.botao:active { transform: translateY(1px); }
.botao.ouro { background: linear-gradient(180deg, #f1d79c, #d0a660 55%, #a07838); border-color: #fbe8bd; color: #1c1408; text-shadow: 0 1px 0 rgba(255, 240, 205, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 14px -4px rgba(220, 182, 115, .6); }
.botao.ouro:hover { background: linear-gradient(180deg, #f7e2ad, #dab06a 55%, #a87e3c); }
.botao.eco { background: linear-gradient(180deg, #6e56c0, #3b2a7a); border-color: #b9a2f0; }
.botao.perigo { background: linear-gradient(180deg, #a3383c, #5c1a1e); border-color: #e48c8c; color: #fff; }
.botao.leve { background: transparent; border-color: var(--fio-fraco); }

/* barras: trilho fundo, enchimento com brilho de líquido e um fio de luz na ponta */
.barra { height: 13px; border-radius: 7px; border: 0; background: rgba(0, 0, 0, .7); box-shadow: 0 0 0 1px rgba(212, 173, 106, .35), inset 0 1px 3px rgba(0, 0, 0, .9); overflow: hidden; }
.barra::after { content: ''; display: block; position: absolute; inset: 1px 2px auto; height: 40%; border-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); pointer-events: none; }
.barra i { border-radius: 7px; box-shadow: 1px 0 6px rgba(255, 255, 255, .45); }
.barra.hp i { background: linear-gradient(180deg, #ff6b6b, #c41f2e 60%, #7a0c18); }
.barra.mp { height: 9px; }
.barra.mp i { background: linear-gradient(180deg, #74b6ff, #2a62d6 60%, #14307a); }
.barra.chefe i, .barra.alvo i { background: linear-gradient(180deg, #ff8a5c, #c8361e 60%, #6e140a); }
.barra.escudo { box-shadow: 0 0 0 1px var(--ouro), 0 0 12px rgba(240, 200, 110, .6), inset 0 1px 3px rgba(0, 0, 0, .9); }
.barra span { font-weight: 700; letter-spacing: .02em; }
.placa .vida { border: 0; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8); background: rgba(0, 0, 0, .65); }
.placa .vida i { background: linear-gradient(180deg, #ff7a5a, #c42a24); }
.placa.jogador .vida i { background: linear-gradient(180deg, #8ef0a6, #2f9a54); }
.xp { height: calc(5px + var(--seguro-baixo)); background: rgba(0, 0, 0, .8); border-top: 0; box-shadow: 0 -1px 0 var(--fio-fraco); }
.xp i { height: 4px; background: linear-gradient(90deg, #6a4ad0, #b49cff); box-shadow: 0 0 10px rgba(170, 140, 255, .8); }
.missao .prog, .barra-prog, .canal-acao .prog { background: rgba(0, 0, 0, .7); border: 0; border-radius: 4px; box-shadow: 0 0 0 1px var(--fio-fraco); }
.missao .prog i, .barra-prog i, .convite-tempo i, .canal-acao .prog i { background: linear-gradient(90deg, #a87a34, #f3dca6); box-shadow: 0 0 8px rgba(240, 210, 140, .6); }

/* ficha: retrato no aro com o estilhaço; nome e barras sem caixa, sobre um véu escuro */
.ficha { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
.retrato-anel { width: 70px; height: 70px; border: 0; background: radial-gradient(circle at 50% 38%, #262a35, #07080b 72%); box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 0 22px rgba(120, 140, 255, .18); }
.retrato-anel::after { content: ''; position: absolute; inset: -5px; background: url(ui/aro.png) center / 100% 100% no-repeat; pointer-events: none; }
.nivel { z-index: 2; bottom: -9px; min-width: 28px; padding: 2px 7px; border-radius: 10px; border: 1px solid #fbe8bd; background: linear-gradient(180deg, #f1d79c, #b88a48); color: #1c1408; font: 800 11.5px/1.1 var(--titulo); text-shadow: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.ficha-meio { margin-left: -18px; padding: 6px 14px 8px 28px; width: 258px; border: 0; border-radius: 0 10px 10px 0; background: linear-gradient(90deg, rgba(7, 8, 11, .92), rgba(7, 8, 11, .55) 85%, rgba(7, 8, 11, 0)); box-shadow: none; }
.ficha-nome b { font-weight: 700; color: var(--ouro-claro); letter-spacing: .03em; }

/* moedas e ajustes */
.moedas, .ajustes-botao { border: 1px solid var(--fio-fraco); border-radius: 17px; background: var(--vidro-leve); box-shadow: none; color: var(--ouro-claro); }
.moedas { height: 32px; padding: 0 14px 0 10px; }
.ajustes-botao { width: 32px; height: 32px; border-radius: 50%; }
.ajustes-botao:hover { border-color: var(--ouro); box-shadow: 0 0 12px rgba(220, 182, 115, .4); }

/* minimapa no mesmo aro */
.minimapa { padding: 6px; background: #05060a; box-shadow: 0 10px 28px rgba(0, 0, 0, .65); }
.minimapa::before { inset: -5px; border-radius: 0; background: url(ui/aro.png) center / 100% 100% no-repeat; box-shadow: none; z-index: 1; }
.minimapa canvas { box-shadow: inset 0 0 26px rgba(0, 0, 0, .8); }
.minimapa::after { display: none; }
.minimapa span { z-index: 2; border: 1px solid var(--fio-fraco); border-radius: 12px; background: var(--vidro); padding: 3px 14px; font: 600 12px var(--marca); letter-spacing: .12em; text-transform: uppercase; color: var(--ouro-claro); bottom: -14px; }

/* menu: só o símbolo, sem caixa; acende com brilho no passar. Abaixo de 1560 px vira duas fileiras */
.menu { display: grid; grid-auto-flow: row; grid-template-columns: repeat(9, 40px); gap: 2px; padding: 6px 8px; background: radial-gradient(120% 140% at 50% 100%, rgba(7, 8, 11, .75), rgba(7, 8, 11, 0) 70%); border: 0; box-shadow: none; }
.menu button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; box-shadow: none; color: #cdbf9f; transition: color .15s, filter .15s, transform .15s; }
.menu button:hover { background: radial-gradient(circle, rgba(220, 182, 115, .22), transparent 70%); color: #fff3d6; transform: translateY(-1px); border: 0; }
.menu svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .9)); }
.menu button:hover svg { filter: drop-shadow(0 0 6px rgba(240, 200, 120, .8)) drop-shadow(0 2px 2px rgba(0, 0, 0, .9)); }
.menu button::after { right: 2px; bottom: 2px; font: 700 9px var(--titulo); color: rgba(240, 225, 190, .55); text-shadow: 0 1px 2px #000; }
@media (max-width: 1560px) { .menu { grid-template-columns: repeat(5, 40px); } .feed { bottom: calc(110px + var(--seguro-baixo)); } }

/* missão e caixas pequenas */
.missao { border-right: 0; background: linear-gradient(90deg, rgba(7, 8, 11, 0), rgba(7, 8, 11, .72) 40%); box-shadow: inset -2px 0 0 var(--fio); }
.missao h3 { font-weight: 700; color: var(--ouro-claro); }
.alvo-info, .chefe-faixa, .grupo, .menu-ator, .convite {
  border: 8px solid transparent; border-image: url(ui/fina.png) 32 / 16px / 0 stretch; border-radius: 0;
  background: var(--vidro); background-clip: border-box; box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
}
.chefe-faixa { background: linear-gradient(180deg, rgba(60, 10, 22, .92), rgba(16, 4, 8, .95)); background-clip: border-box; box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 30px rgba(200, 40, 60, .2); }

/* barra de ações: vidro escuro com filigrana, casas iguais; o ataque é uma casa como as outras, com o ícone em ouro */
.acoes {
  gap: 5px; padding: 4px 8px; border: 12px solid transparent; border-image: url(ui/moldura.png) 96 / 24px / 0 stretch; border-radius: 0;
  background: var(--vidro); background-clip: border-box; box-shadow: 0 14px 34px rgba(0, 0, 0, .65);
}
.hab, .atacar { width: 50px; height: 50px; margin: 0; border: 0; border-radius: 8px; overflow: visible; background: url(ui/casa.png) center / 100% 100% no-repeat; box-shadow: none; transition: transform .1s; }
.hab:hover, .atacar:hover { background-image: url(ui/casa-acesa.png); border: 0; }
.hab.pronta { border: 0; box-shadow: none; }
.hab .ico, .hab .recarga { inset: 3px; border-radius: 7px; overflow: hidden; }
.hab .ico svg { border-radius: 7px; }
.barra-atalhos .hab.vazia { background: url(ui/casa.png) center / 100% 100% no-repeat; opacity: .5; border: 0; }
.hab .tecla, .atacar .tecla { top: 2px; left: 5px; font: 700 10px var(--titulo); color: rgba(255, 245, 220, .9); }
.tonico .ico { padding: 6px; }
.atacar { color: var(--ouro-claro); }
.atacar svg { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(240, 200, 120, .55)) drop-shadow(0 1px 1px #000); }
.atacar .tecla { left: 50%; transform: translateX(-50%); top: auto; bottom: 1px; font-size: 8.5px; letter-spacing: .06em; color: rgba(240, 225, 190, .7); }
.eco { height: 30px; padding: 0 14px 0 10px; border: 1px solid var(--fio-fraco); border-radius: 15px; background: var(--vidro); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); color: var(--ouro-claro); font-weight: 600; letter-spacing: .03em; }
.eco:hover { border-color: var(--fio); box-shadow: 0 0 14px -2px rgba(220, 182, 115, .45); }
.eco.ligado { background: linear-gradient(180deg, rgba(110, 86, 192, .95), rgba(52, 36, 112, .95)); border-color: #c4aef5; box-shadow: 0 0 20px rgba(170, 140, 245, .5); color: #f4ecff; }

/* chat */
.chat { width: min(340px, calc(50vw - 346px)); grid-template-columns: minmax(0, 1fr); }
.chat.grande { width: min(470px, calc(50vw - 346px)); }
#form-chat, #form-chat input { min-width: 0; }
.chat-abas button, .chat-botao, #chat-canal { background: rgba(7, 8, 11, .7); border: 1px solid rgba(255, 255, 255, .07); border-radius: 4px; }
.chat-abas button.ativa { color: var(--ouro-claro); background: rgba(7, 8, 11, .85); border-color: var(--fio); }
.log { background: linear-gradient(180deg, rgba(7, 8, 11, .05), rgba(7, 8, 11, .62)); border-radius: 6px; }
#form-chat input { background: rgba(7, 8, 11, .78); border: 1px solid rgba(255, 255, 255, .08); border-radius: 5px; }
#form-chat input:focus { border-color: var(--fio); box-shadow: 0 0 10px -2px rgba(220, 182, 115, .4); }

/* entrada e carregamento */
.carregando { background: radial-gradient(1200px 700px at 50% 40%, #151822, #050608 70%); }
.carregando h1, .marca h1 { font-family: var(--marca); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: none; color: #f6ead0; -webkit-text-fill-color: currentColor; filter: none; text-shadow: 0 0 30px rgba(220, 182, 115, .35); }
.carregando h1 { font-size: 30px; }
.marca h1 { font-size: 44px; }
.selo { width: 120px; height: 14px; background: url(ui/fina.png) center / 100% 100%; clip-path: none; filter: none; animation: none; opacity: .8; }
.marca .selo { margin: 0 0 18px; }
.progresso { height: 4px; border: 0; border-radius: 2px; box-shadow: 0 0 0 1px var(--fio-fraco); background: rgba(0, 0, 0, .6); }
.progresso i { background: linear-gradient(90deg, #a87a34, #f3dca6); box-shadow: 0 0 10px rgba(240, 210, 140, .7); }
.entrada { background: linear-gradient(90deg, rgba(5, 6, 8, .86) 0%, rgba(5, 6, 8, .12) 45%, rgba(5, 6, 8, .5) 75%, rgba(5, 6, 8, .9)); }
.abas-entrada { border-bottom-color: var(--fio-fraco); }
.abas-entrada button { letter-spacing: .06em; font-weight: 600; }
.abas-entrada button.ativa { background: none; color: var(--ouro-claro); border-bottom-color: var(--ouro); }
#form-entrada input { background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; box-shadow: none; }
#form-entrada input:focus { border-color: var(--fio); box-shadow: 0 0 0 3px rgba(220, 182, 115, .14); }
/* o preenchimento automático do navegador pinta o campo de azul claro: volta ao escuro */
#form-entrada input:-webkit-autofill, #form-entrada input:-webkit-autofill:hover, #form-entrada input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--texto); caret-color: var(--texto); -webkit-box-shadow: 0 0 0 40px #0b0c10 inset; transition: background-color 9999s;
}
.num.crit { font-family: var(--titulo); font-weight: 800; }
.placa .marca-missao { font-family: var(--titulo); }
.aviso.chefe { font-family: var(--titulo); font-weight: 700; letter-spacing: .06em; }

/* no celular a barra de ações é um leque de botões redondos em volta do atacar, sem a placa */
@media (max-width: 900px), (max-height: 560px) {
  .acoes { background: none; border: 0; border-image: none; box-shadow: none; padding: 0; }
  .missao { box-shadow: none; }
  .menu { grid-template-columns: 40px; background: none; padding: 0; }
  .menu button { background: radial-gradient(circle, rgba(7, 8, 11, .8) 55%, rgba(7, 8, 11, 0) 72%); }
  .menu button::after { display: none; }
  .hab { width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1d2029, #07080b 72%); box-shadow: 0 0 0 1px var(--fio), 0 6px 14px rgba(0, 0, 0, .6); }
  .hab:hover { background: radial-gradient(circle at 50% 35%, #1d2029, #07080b 72%); }
  .hab .ico, .hab .recarga { inset: 4px; border-radius: 50%; }
  .hab .ico svg { border-radius: 50%; }
  .atacar { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2a2418, #0a0806 72%); box-shadow: 0 0 0 1.5px var(--ouro), 0 0 24px rgba(220, 182, 115, .3), 0 8px 18px rgba(0, 0, 0, .6); }
  .atacar:hover { background: radial-gradient(circle at 50% 35%, #2a2418, #0a0806 72%); }
  .atacar svg { width: 44px; height: 44px; }
  .atacar .tecla { display: none; }
  .painel, .dialogo, .modal-cartao { border-width: 12px; border-image-width: 24px; }
  .chat, .chat.grande { width: 200px; }
  .retrato-anel { width: 60px; height: 60px; }
  .minimapa span { max-width: 132px; padding: 2px 10px; font-size: 10.5px; letter-spacing: .06em; text-overflow: clip; }
  .missao { top: 100px; }
  .chat { top: 262px; }
  body:has(#alvo-info:not([hidden])) .chat { top: 312px; }
}
/* tempo até o baú encher de novo, em cima dele */
.rp-bau { padding: 2px 10px; font: 600 11.5px var(--titulo); letter-spacing: .02em; color: var(--ouro-claro); background: rgba(7, 8, 11, .78); border: 1px solid rgba(212, 173, 106, .3); border-radius: 10px; text-shadow: none; }

/* ---------- social: amigos e Portadores da conta ---------- */
.dica.centro { display: block; text-align: center; margin: 6px auto; }
.portadores { display: grid; gap: 6px; }
.portador { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(201, 162, 92, .18); border-radius: 4px; background: linear-gradient(90deg, rgba(20, 16, 26, .7), rgba(12, 10, 16, .4)); }
.portador.atual { border-color: rgba(232, 196, 120, .55); box-shadow: inset 0 0 18px rgba(232, 184, 74, .12); }
.portador .m-emblema { width: 38px; height: 38px; flex: none; }
.portador .info { flex: 1; display: grid; }
.portador .info small { color: #b0a48c; }
.classes-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.classe-mini { display: flex; align-items: center; gap: 6px; padding: 5px 7px; background: rgba(10, 8, 14, .6); border: 1px solid #33363c; border-radius: 3px; color: #d8ccb4; font: inherit; font-size: 12px; cursor: pointer; }
.classe-mini svg, .classe-mini img { width: 22px; height: 22px; }
.classe-mini.ativa { border-color: var(--ouro-claro); color: var(--ouro-claro); background: rgba(232, 184, 74, .1); }
@media (max-width: 600px) { .classes-mini { grid-template-columns: repeat(2, 1fr); } }


/* a Primeira Marcha: faixa da instância, no lugar da faixa da Cria */
.marcha-faixa { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: min(440px, 46vw); padding: 7px 12px 9px; display: grid; gap: 6px;
  border: 8px solid transparent; border-image: url(ui/fina.png) 32 / 16px / 0 stretch; background: linear-gradient(180deg, rgba(20, 24, 40, .93), rgba(7, 8, 14, .96)); background-clip: border-box; box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 30px rgba(120, 140, 220, .14); }
.marcha-linha { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.marcha-linha b { font-family: var(--titulo); color: #cfd8ff; letter-spacing: .04em; white-space: nowrap; }
.marcha-linha span { flex: 1; color: #dfe3f2; font-variant-numeric: tabular-nums; }
.marcha-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.marcha-pe small { color: #a9b0c8; font-size: 11.5px; }
.marcha-salas { display: flex; gap: 5px; }
.marcha-salas i { width: 26px; height: 4px; border-radius: 1px; background: rgba(255, 255, 255, .12); }
.marcha-salas i.feita { background: #9fb2ff; }
.marcha-salas i.agora { background: linear-gradient(90deg, #9fb2ff, rgba(159, 178, 255, .25)); }
body.em-dialogo .marcha-faixa { opacity: 0; pointer-events: none; transition: opacity .3s; }
@media (max-width: 900px), (max-height: 560px) {
  .marcha-faixa { top: auto; bottom: calc(18px + var(--seguro-baixo)); left: 8px; width: calc(100vw - 225px); min-width: 150px; transform: none; padding: 7px 9px; }
  .marcha-linha { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 11.5px; }
  .marcha-linha span { grid-row: 2; grid-column: 1 / -1; }
}

/* duelo e arena: a faixa no topo, a contagem no meio da tela e o nome do rival em vermelho */
.duelo-faixa { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: min(440px, 46vw); padding: 7px 12px 9px;
  border: 8px solid transparent; border-image: url(ui/fina.png) 32 / 16px / 0 stretch; background: linear-gradient(180deg, rgba(52, 16, 12, .94), rgba(16, 6, 6, .96)); background-clip: border-box; box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 110, 60, .16); }
.duelo-linha { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.duelo-linha b { font-family: var(--titulo); color: #ffc9a8; letter-spacing: .04em; white-space: nowrap; }
.duelo-linha span { flex: 1; color: #f0dcd2; font-variant-numeric: tabular-nums; }
body.em-dialogo .duelo-faixa { opacity: 0; pointer-events: none; transition: opacity .3s; }
.contagem { position: fixed; inset: 0; z-index: 15; display: grid; place-content: center; pointer-events: none; font-family: var(--titulo); font-size: 96px; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(180deg, #fff1e0, #ff9a5a 60%, #c4421e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 26px rgba(255, 110, 50, .55)); }
.contagem.bate { animation: contagemBate .9s ease-out forwards; }
@keyframes contagemBate { 0% { opacity: 0; transform: scale(1.7); } 18% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(.92); } }
.placa.rival .nome { color: #ff9a86; text-shadow: 0 0 8px rgba(255, 60, 40, .7), 0 1px 2px #000; }
.placa.rival .vida i { background: linear-gradient(180deg, #ff9474, #c8402e 55%, #7a2018); }
@media (max-width: 900px), (max-height: 560px) {
  .duelo-faixa { top: auto; bottom: calc(18px + var(--seguro-baixo)); left: 8px; width: calc(100vw - 225px); min-width: 150px; transform: none; padding: 7px 9px; }
  .duelo-linha { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 11.5px; }
  .duelo-linha span { grid-row: 2; grid-column: 1 / -1; }
  .contagem { font-size: 72px; }
}

/* título de feito embaixo do nome */
.placa .honra-tag { display: block; font-style: normal; font-size: 10px; font-weight: 600; color: #e8d3a2; letter-spacing: .05em; }

/* Livro dos Feitos */
.lf-titulos { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.livro-feito { padding: 10px 12px; border-radius: 3px; background: #101215; border: 1px solid #2a2d33; display: grid; gap: 5px; }
.livro-feito small { color: var(--suave); font-size: 12px; line-height: 1.35; }
.livro-feito.cumprido { background: linear-gradient(180deg, #1b1912, #121110); border-color: #5a4a2a; }
.lf-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lf-cab b { font-family: var(--titulo); font-size: 13.5px; color: #c9c3b6; }
.livro-feito.cumprido .lf-cab b { color: #f3e6c4; }
.lf-cab em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ouro); white-space: nowrap; }
.lf-barra { height: 3px; background: rgba(255, 255, 255, .08); border-radius: 1px; overflow: hidden; }
.lf-barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--ouro-escuro), var(--ouro-claro)); }
.livro-feito .lf-pe { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.livro-feito .lf-pe span { color: #a99a78; text-align: right; }

/* ofício de coleta, no rodapé da mochila */
.oficio-tag { display: flex; align-items: center; gap: 8px; margin-right: auto; margin-left: 14px; font-size: 12px; color: #cfc6b4; }
.oficio-tag b { font-weight: 600; letter-spacing: .02em; }
.oficio-tag i { display: block; width: 84px; height: 5px; border-radius: 3px; background: #2a2620; overflow: hidden; }
.oficio-tag s { display: block; height: 100%; background: linear-gradient(90deg, #b8893a, #f0c870); text-decoration: none; }

/* ---------- Portadores da conta: escolher quem entra, ou criar ---------- */
.selecao { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-columns: 1fr minmax(340px, 440px); grid-template-rows: auto 1fr auto; gap: 18px 24px; padding: 26px 5vw 30px; background: linear-gradient(90deg, rgba(5, 6, 8, .78) 0%, rgba(5, 6, 8, .05) 38%, rgba(5, 6, 8, .4) 70%, rgba(5, 6, 8, .9)); }
.selecao-topo { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.selecao-topo small { display: block; font: 600 10.5px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); }
.selecao-topo b { font-family: var(--titulo); font-size: 20px; color: #f3e6c4; letter-spacing: .04em; }
.selecao-lista, .selecao-novo { grid-column: 2; grid-row: 2; align-self: start; max-height: calc(100vh - 150px); }
.selecao h2 { margin: 0 0 12px; font-family: var(--titulo); font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ouro-claro); }
.sel-lista { display: grid; gap: 8px; }
.sel-portador { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; border-radius: 4px; border: 1px solid #2d3035; background: linear-gradient(180deg, #1a1c20, #121417); transition: border-color .15s, background .15s; }
.sel-portador:hover { border-color: var(--bronze); }
.sel-portador.ativo { border-color: var(--bronze-claro); background: linear-gradient(180deg, rgba(201, 162, 92, .2), rgba(201, 162, 92, .04)); box-shadow: inset 0 0 0 1px rgba(255, 227, 160, .15), 0 0 14px rgba(240, 195, 90, .12); }
.sel-emblema { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.sel-emblema svg { width: 40px; height: 40px; }
.sel-info { display: grid; gap: 2px; min-width: 0; }
.sel-info b { font-family: var(--titulo); font-size: 15px; color: #f3e6c4; }
.sel-info small { color: var(--suave); font-size: 11.5px; }
.sel-lugar { color: #b8a888 !important; font-style: italic; }
.sel-portador.vazio { border-style: dashed; background: rgba(10, 11, 14, .5); }
.sel-portador.vazio b { color: var(--suave); }
.sel-mais { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid #3a3d44; font-size: 22px; color: var(--bronze-claro); }
.selecao-pe { grid-column: 1; grid-row: 3; justify-self: center; display: flex; align-items: center; gap: 22px; padding: 14px 20px; border-radius: 6px; background: linear-gradient(180deg, rgba(14, 15, 18, .85), rgba(8, 9, 11, .92)); border: 1px solid var(--fio-fraco); }
.selecao-quem { display: grid; gap: 2px; }
.selecao-quem b { font-family: var(--titulo); font-size: 22px; color: #f6ead0; letter-spacing: .03em; }
.selecao-quem small { color: var(--suave); font-size: 12px; }
.selecao-botoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
#form-novo .secao { margin-top: 12px; }
#form-novo .amostras { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); }
#form-novo .amostra span { font-size: 7.5px; letter-spacing: -.01em; padding: 1px; }
#form-novo label { display: grid; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--suave); }
#form-novo input { padding: 10px 12px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; color: #f3e6c4; font: 500 14px Inter, sans-serif; }
#form-novo input:focus { outline: none; border-color: var(--fio); box-shadow: 0 0 0 3px rgba(220, 182, 115, .14); }
@media (max-width: 900px) {
  .selecao { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; padding: 16px; }
  .selecao-lista, .selecao-novo { grid-column: 1; grid-row: 2; max-height: 52vh; }
  .selecao-pe { grid-row: 4; justify-self: stretch; justify-content: space-between; }
}
