:root {
  --fundo: #14121c;
  --painel: #1f1b2e;
  --painel-2: #2a2440;
  --borda: #3a3354;
  --texto: #ece8f6;
  --texto-2: #a49cbf;
  --ouro: #f2c94c;
  --vida: #e5484d;
  --energia: #f5a524;
  --xp: #8b6cff;
  --bom: #46c37b;
  --ruim: #e5484d;
  --comum: #b8b3c9;
  --incomum: #46c37b;
  --raro: #4ea1ff;
  --epico: #b26cff;
  --lendario: #f2a33c;
  --mitico: #ff3b3b;
  --raio: 10px;
  --fonte-pixel: "Jersey 10", system-ui, sans-serif;  /* números e letras bem legíveis (o 2 e o 5 não se confundem) */
}

* { box-sizing: border-box; font-synthesis: none; }  /* a fonte pixel não tem negrito: sem negrito falso borrando as letras */

html, body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 12px 16px calc(84px + env(safe-area-inset-bottom));
}

h1, h2, h3, .pixel { font-family: var(--fonte-pixel); letter-spacing: .3px; }
h1 { font-size: 28px; margin: 8px 0 4px; }
h2 { font-size: 20px; margin: 18px 0 10px; }
h3 { font-size: 16px; margin: 0; }
p { margin: 6px 0; }
.sutil { color: var(--texto-2); font-size: 13px; }
.carregando { padding: 40vh 0; text-align: center; color: var(--texto-2); font-family: var(--fonte-pixel); }

button {
  font: 600 15px var(--fonte-pixel);
  color: var(--texto);
  background: var(--painel-2);
  border: 2px solid var(--borda);
  border-radius: var(--raio);
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}
button:hover:not(:disabled) { border-color: #5a4f80; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.principal { background: #5b3fd6; border-color: #7a60ff; }
button.principal:hover:not(:disabled) { border-color: #a594ff; }
button.perigo { background: #4a1f2a; border-color: #7a2c3d; }
button.pequeno { min-height: 36px; padding: 6px 10px; font-size: 13px; }
button.largo { width: 100%; }

input {
  font: 16px system-ui, sans-serif;
  width: 100%;
  padding: 12px;
  color: var(--texto);
  background: var(--painel);
  border: 2px solid var(--borda);
  border-radius: var(--raio);
}
input:focus { outline: none; border-color: #7a60ff; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; padding: 0; flex: none; margin: 0; accent-color: #7a60ff; }
input[type="range"] { padding: 0; border: 0; background: none; accent-color: #7a60ff; }

.cartao {
  background: var(--painel);
  border: 2px solid var(--borda);
  border-radius: var(--raio);
  padding: 12px;
}
.lista { display: grid; gap: 8px; }
.linha { display: flex; align-items: center; gap: 10px; }
.linha .cresce { flex: 1; min-width: 0; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Barras */
.barra { position: relative; height: 14px; background: #0d0b14; border: 2px solid var(--borda); border-radius: 6px; overflow: hidden; }
.barra > span { position: absolute; inset: 0 auto 0 0; transition: width .35s ease; }
.barra.vida > span { background: var(--vida); }
.barra.energia > span { background: var(--energia); }
.barra.xp > span { background: var(--xp); }
.barra-rotulo { display: flex; justify-content: space-between; font-size: 12px; color: var(--texto-2); margin: 6px 0 3px; font-family: var(--fonte-pixel); }

/* Cabeçalho do herói */
.heroi { position: sticky; top: 0; z-index: 5; margin: -12px -16px 12px; padding: 12px 16px; background: rgba(20, 18, 28, .96); border-bottom: 2px solid var(--borda); }
.heroi .topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.heroi .nome { font: 600 18px var(--fonte-pixel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ouro { color: var(--ouro); font-family: var(--fonte-pixel); white-space: nowrap; }

/* Navegação inferior */
.abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(6, 1fr);
  max-width: 520px; margin: 0 auto;
  background: var(--painel); border-top: 2px solid var(--borda);
  padding-bottom: env(safe-area-inset-bottom);
}
.abas button { border: 0; border-radius: 0; background: none; min-height: 60px; padding: 6px 2px; font-size: 12px; display: grid; gap: 2px; justify-items: center; color: var(--texto-2); }
.abas button .icone { font-size: 20px; }
.abas button[aria-current="page"] { color: var(--texto); background: var(--painel-2); }

/* Classes */
.classes { display: grid; gap: 8px; }
.classe { text-align: left; display: flex; gap: 12px; align-items: center; padding: 12px; }
.classe .icone { font-size: 30px; width: 40px; text-align: center; }
.classe[aria-pressed="true"] { border-color: #7a60ff; background: #2f2650; }
.classe p { margin: 2px 0 0; font: 13px system-ui, sans-serif; color: var(--texto-2); }

/* Combate */
.arena { text-align: center; padding: 16px 12px; }
.arena { position: relative; overflow: hidden; }
@keyframes tremer { 20% { transform: translateX(-7px) rotate(-2deg); } 50% { transform: translateX(6px) rotate(2deg); } 80% { transform: translateX(-3px); } }
@keyframes tremer-forte { 15% { transform: translateX(-12px) rotate(-4deg) scale(.95); } 40% { transform: translateX(10px) rotate(3deg); } 65% { transform: translateX(-6px); } 85% { transform: translateX(3px); } }
@keyframes piscar { 0%, 30% { filter: brightness(2.6) saturate(.3) drop-shadow(0 4px 0 rgba(0,0,0,.4)); } }
@keyframes cair { to { transform: translateY(24px) scale(.85); opacity: 0; filter: grayscale(1) drop-shadow(0 4px 0 rgba(0,0,0,.4)); } }
.arena-tremer { animation: tremer-tela .3s; }
@keyframes tremer-tela { 25% { transform: translate(-4px, 2px); } 50% { transform: translate(4px, -2px); } 75% { transform: translate(-2px, 1px); } }
.cartao-heroi { position: relative; }
.heroi-ferido { animation: ferido .4s; }
@keyframes ferido { 0%, 40% { box-shadow: inset 0 0 0 2px var(--vida), 0 0 18px rgba(226, 54, 29, .55); transform: translateX(-3px); } 20% { transform: translateX(3px); } }
.barra span { transition: width .45s ease-out; }
.numero-dano { position: absolute; top: 38%; z-index: 3; pointer-events: none; white-space: nowrap; transform: translateX(-50%);
  font: 700 22px var(--fonte-pixel); color: #fff; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  animation: subir-dano .9s ease-out both; }
.numero-dano.critico { font-size: 30px; color: var(--ouro); animation-name: subir-critico; animation-duration: 1.1s; }
.numero-dano.sofrido { top: -6px; color: #ff6b5b; font-size: 20px; }
.numero-dano.cura { top: -6px; color: #6be37a; font-size: 18px; }
.numero-dano.esquiva { top: -6px; color: #9ad8ff; font-size: 16px; }
@keyframes subir-dano { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); }
  30% { transform: translate(-50%, -6px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -56px); } }
@keyframes subir-critico { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.5) rotate(-6deg); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.4) rotate(3deg); }
  35% { transform: translate(-50%, -8px) scale(1.1) rotate(0); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .arena-tremer, .heroi-ferido { animation: none; }
  .numero-dano { animation: sumir 1s both; }
  .barra span { transition: none; }
}
@keyframes sumir { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.selo { display: inline-block; font: 600 12px var(--fonte-pixel); padding: 2px 8px; border-radius: 99px; border: 2px solid currentColor; }
.selo.fraco { color: var(--comum); } .selo.medio { color: var(--energia); } .selo.forte { color: var(--vida); }
.acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.acoes .habilidade small { display: block; font: 12px system-ui, sans-serif; color: var(--texto-2); }
.registro { margin-top: 12px; font-size: 13px; color: var(--texto-2); display: grid; gap: 2px; }
.registro div:last-child { color: var(--texto); }
.recompensa { text-align: center; }
.recompensa .grande { font: 700 26px var(--fonte-pixel); margin: 4px 0; }

/* Raridade */
.r-1 { color: var(--comum); } .r-2 { color: var(--incomum); } .r-3 { color: var(--raro); }
.r-4 { color: var(--epico); } .r-5 { color: var(--lendario); } .r-6 { color: var(--mitico); }
.peca .nome { font: 600 15px var(--fonte-pixel); }
.peca .acoes-peca { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mm-sem-grupo { margin-top: 4px; color: #f5c542; }
.boas-vindas { border-color: #f5c542; background: linear-gradient(135deg, rgba(245, 197, 66, .16), var(--painel) 60%); margin-top: 12px; }
.boas-vindas-icone, .bau-meta-icone { font-size: 28px; }
.premio-meta { color: #f5d77a; }
.premio-meta i { color: var(--texto-2); font-style: normal; }
.premio-meta-linha { margin-top: 8px; }
.boas-vindas-fim { margin-top: 6px; }
.boas-vindas-fim b, .peca-presente { color: #c9a2ff; }
.bau-meta { margin-top: 8px; }
.bau-meta.pronto { border-color: var(--ouro); background: linear-gradient(135deg, rgba(242, 201, 76, .18), var(--painel)); }
.bau-meta.pronto .bau-meta-icone { animation: presente-pula 1s ease-in-out infinite; }
.bau-meta.recebido { opacity: .72; }
.bau-meta .barra { margin-top: 8px; }
.semanais { margin-top: 12px; }
.semanais > summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; gap: 8px; }
.semanais-prontas { margin-left: auto; color: #f5c542; }
.premio-meta-aberto { display: grid; gap: 10px; justify-items: center; padding: 18px 0; font-size: 18px; color: #f5d77a; }
@media (prefers-reduced-motion: reduce) { .bau-meta.pronto .bau-meta-icone { animation: none; } }
.classes-peca { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--texto-2); }
.filtros-mercado { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.filtros-mercado select { min-width: 0; width: 100%; padding: 9px 8px; font-size: 14px; color: var(--texto);
  background: var(--painel); border: 2px solid var(--borda); border-radius: var(--raio); }
.filtros-mercado .caixas-mercado, .filtros-mercado > button { grid-column: 1 / -1; }
.caixas-mercado { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.caixa-mercado { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; }
.saldos-lc { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0; font-size: 14px; }
.item-vinculado { flex-basis: 100%; }
.caixa-mercado input { width: 20px; height: 20px; accent-color: #7a60ff; }
.classe-peca.minha { color: #6bd18f; }
.classes-peca.nao-serve { color: #ff8f8f; }
.peca-revelada .classes-peca { justify-content: inherit; }
.peca-travada { border-color: #f5c542; color: #f5c542; }
.mm-linha.atacou { animation: mm-atacou .5s ease-out; }
@keyframes mm-atacou { 40% { transform: translateX(10px); background: rgba(245, 197, 66, .25); } }
@media (prefers-reduced-motion: reduce) { .mm-linha.atacou { animation: none; } }
.bloqueado { opacity: .55; }

.aviso {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; max-width: calc(100% - 32px);  /* acima das janelas (folha 40): o erro tem que aparecer */
  background: #2f2650; border: 2px solid #7a60ff; border-radius: var(--raio);
  padding: 10px 14px; font-family: var(--fonte-pixel); box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.aviso.erro { background: #4a1f2a; border-color: var(--ruim); }
.aviso.aviso-correio { bottom: calc(128px + env(safe-area-inset-bottom)); background: #3a2f12; border-color: var(--ouro); }
.jogo-atualizado {
  position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 70;
  width: max-content; max-width: calc(100% - 24px); padding: 10px 14px; font-size: 14px;
  background: #4a3a10; border: 2px solid #f5c542; color: #fff3c4; box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.dica { border-color: #7a60ff; background: #221c38; }

/* Artes (pixel art: sem suavizar ao ampliar) */
img.arte { display: block; image-rendering: pixelated; }
img.logo { width: min(280px, 75%); height: auto; margin: 12px auto 0; }
.classe .icone { width: 52px; flex: none; }
img.retrato { width: 52px; height: 52px; object-fit: contain; }
img.avatar { display: inline-block; width: 28px; height: 28px; object-fit: cover; vertical-align: -7px; margin-right: 6px;
  border-radius: 6px; border: 2px solid var(--borda); background: var(--painel-2); }
.faixa[data-fundo], .boss-arte[data-fundo] {
  background: linear-gradient(to top, rgba(20, 18, 28, .92), rgba(20, 18, 28, 0) 65%), var(--fundo-arte) center / cover no-repeat;
  image-rendering: pixelated; border: 2px solid var(--borda); border-radius: var(--raio);
}
.faixa { display: flex; align-items: flex-end; height: 140px; margin: 18px 0 10px; padding: 10px 12px; }
.faixa h2 { margin: 0; text-shadow: 0 2px 0 #000, 0 0 8px #000; }
.arena[data-fundo] {
  background: linear-gradient(rgba(20, 18, 28, .3), rgba(20, 18, 28, .88)), var(--fundo-arte) center / cover no-repeat;
  image-rendering: pixelated;
}
.boss-arte { display: flex; justify-content: center; align-items: flex-end; height: 180px; margin-bottom: 10px; overflow: hidden; }
.boss-arte:not([data-fundo]) { border-radius: var(--raio); background: var(--painel-2); }
img.boss { height: 170px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .45)); }
img.pet { width: 44px; height: 44px; object-fit: contain; }
/* ---------- PC (tela larga): menu à esquerda, jogo no meio, painel lateral à direita ---------- */
.lateral, .marca-menu { display: none; }
.atalho { display: none; }
@media (min-width: 1000px) {
  #app:has(> .hub) { max-width: 1240px; padding: 0 24px; }
  .hub { display: grid; grid-template-columns: 210px minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .centro { min-width: 0; max-width: 680px; width: 100%; justify-self: center; padding-bottom: 32px; }
  .heroi { margin: 0 0 12px; padding: 14px 16px; border: 2px solid var(--borda); border-top: 0; border-radius: 0 0 var(--raio) var(--raio); }
  .abas {
    position: sticky; top: 0; height: 100vh; max-width: none; margin: 0;
    display: flex; flex-direction: column; gap: 4px; padding: 16px 0;
    background: none; border: 0;
  }
  .marca-menu { display: block; padding: 0 8px 14px; font: 700 18px var(--fonte-pixel); }
  img.logo-menu { width: 100%; height: auto; }
  .abas button {
    min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 15px;
    border-radius: var(--raio); justify-items: start; text-align: left;
  }
  .abas button:hover { background: var(--painel); color: var(--texto); }
  .abas button[aria-current="page"] { background: var(--painel-2); color: var(--texto); box-shadow: inset 3px 0 0 #7a60ff; }
  .lateral {
    display: flex; flex-direction: column; position: sticky; top: 16px; margin-top: 16px;
    height: calc(100vh - 32px); min-height: 0;
  }
  .atalho { display: inline-block; font: 600 11px var(--fonte-pixel); color: var(--texto-2); border: 1px solid var(--borda);
    border-radius: 4px; padding: 0 5px; margin-left: 6px; }
  /* telas sem menu (combate, criação): coluna central um pouco mais larga */
  #app:not(:has(> .hub)) { max-width: 600px; padding-top: 24px; }
  .palco { height: 250px; }
  img.heroi-palco { max-width: 200px; }
  .ator-monstro.fraco img.monstro { max-width: 190px; }
  .ator-monstro.medio img.monstro { max-width: 220px; }
  .ator-monstro.forte img.monstro { max-width: 250px; }
}

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--painel);
  border: 2px solid var(--borda); border-radius: var(--raio); overflow: hidden; }
.chat-abas { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--borda); }
.chat-abas button { border: 0; border-radius: 0; background: none; min-height: 42px; font-size: 14px; color: var(--texto-2); position: relative; }
.chat-abas button[aria-selected="true"] { color: var(--texto); background: var(--painel-2); box-shadow: inset 0 -3px 0 #7a60ff; }
.ponto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ouro); margin-left: 6px; vertical-align: 2px; }
.ponto[hidden] { display: none; }
.chat-lista { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.chat-lista { scrollbar-width: thin; scrollbar-color: #5a4f80 transparent; }
.chat-lista > * { flex: none; }  /* com muitas conversas a lista rola, em vez de espremer os cartões */
.msg { display: grid; gap: 2px; font-size: 14px; }
.msg-topo { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.msg .autor { font: 600 14px var(--fonte-pixel); color: #a594ff; background: none; border: 0; padding: 0; min-height: 0; cursor: pointer; }
.msg.minha .autor { color: var(--ouro); cursor: default; }
.msg .tag { color: var(--texto-2); }
.msg .hora { margin-left: auto; font-size: 11px; color: var(--texto-2); }
.msg-texto { overflow-wrap: anywhere; line-height: 1.4; }
.msg-menu { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0 2px; }
.selo-dono { font: 700 10px var(--fonte-pixel); color: #14121c; background: var(--ouro); padding: 0 5px; border-radius: 4px; }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: 2px solid var(--borda); }
.chat-form input { padding: 10px; font-size: 15px; min-width: 0; }
.chat-form button { flex: none; }
.chat-filtro { border: 0; border-bottom: 1px solid var(--borda); border-radius: 0; background: none; min-height: 34px; padding: 4px 10px; font-size: 12px; color: var(--texto-2); }
.msg.msg-aviso-jogo { font-size: 12px; line-height: 1.35; color: var(--texto-2); opacity: .75; overflow-wrap: anywhere; }
.msg.msg-aviso-jogo .autor { font-size: 12px; color: var(--texto-2); }
.msg.msg-aviso-jogo .autor:disabled { opacity: 1; }
.msg.msg-aviso-jogo .hora { margin-left: 4px; }
.msg.cita-voce { background: rgba(245, 197, 66, .12); box-shadow: inset 3px 0 0 #f5c542; border-radius: 6px; padding: 6px 8px 6px 10px; }
.chat-aviso { padding: 12px; margin: 0; border-top: 2px solid var(--borda); text-align: center; }
.chat-vazio { text-align: center; padding: 24px 8px; }
.chat-secao { margin-top: 4px; }
.contato { display: flex; align-items: center; gap: 8px; text-align: left; font: 14px system-ui, sans-serif; padding: 8px 10px; min-height: 0; }
.contato .sutil { font-size: 12px; }
.contato > .cresce { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.contato > :not(.cresce) { flex: none; }
.contato .contato-ultima { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Lista de amigos (aba Amigos do chat) e botões de amizade do perfil */
.contato.amigo { padding: 6px 8px; }
.contato.amigo .amigo-nome { background: none; border: 0; padding: 0; min-height: 0; text-align: left; font: inherit; color: inherit; box-shadow: none; }
.contato.amigo .pequeno { padding: 4px 8px; min-height: 30px; }
.contato.amigo.online { box-shadow: inset 3px 0 0 var(--bom); }
.perfil-social { gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.chat-conversa-topo { display: flex; align-items: center; gap: 8px; position: sticky; top: -8px; background: var(--painel); padding: 4px 0 8px; z-index: 1; }
.contador { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--vida); color: #fff; font: 700 11px var(--fonte-pixel); }
.contador[hidden] { display: none; }

/* celular: botão no topo (ao lado do som) e chat em tela cheia. Até 01/12 ele flutuava e cobria os botões de compra. */
.botao-chat {
  position: relative; min-height: 30px; padding: 2px 8px; margin-left: 6px; vertical-align: middle;
  background: #5b3fd6; border-color: #7a60ff;
}
.passiva-classe { margin: 8px 0; border-color: var(--ouro); }
.passiva-classe > div { margin-top: 4px; }
.filtros-pecas { margin: 8px 0; }
.filtros-linha { flex-wrap: wrap; gap: 6px; }
.filtros-linha select { flex: 1 1 140px; min-width: 0; min-height: 44px; }
.fusoes-prontas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.fusoes-prontas button { min-height: 40px; }
.almas-possiveis { margin: 8px 0; }
.almas-possiveis summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.tabela-almas td, .tabela-almas th { padding: 4px 6px; text-align: left; }
.visto-online { color: #6be37a; } .visto-3-6 { color: #e0a84f; } .visto-7\+ { color: #ff6b5b; }
.botao-chat .contador { position: absolute; top: -8px; right: -8px; }
.botao-chat.novidade { box-shadow: 0 0 0 2px var(--ouro); }
.chat-tela { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh; z-index: 30; background: var(--fundo); display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px)); }
.chat-tela[hidden] { display: none; }
.chat-tela-topo { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; }
.chat-tela-corpo { flex: 1; min-height: 0; padding-bottom: 8px; }
body.chat-aberto { overflow: hidden; }
@media (min-width: 1000px) { .botao-chat { display: none; } }

/* Termos e privacidade */
.documento { max-width: 680px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
.documento h2 { font-size: 18px; margin-top: 22px; }
.documento p, .documento li { line-height: 1.6; }
.documento ul { padding-left: 20px; display: grid; gap: 4px; }
.documento a, .rodape a { color: #a594ff; }

/* Rodapé da loja: termos, privacidade e suporte */
.rodape { margin: 24px 0 8px; text-align: center; font-size: 13px; color: var(--texto-2); display: grid; gap: 6px; }

/* Página de entrada: céu do bioma ao fundo, brasas subindo, heróis respirando e a conta por e-mail */
.entrada { position: relative; display: grid; gap: 18px; text-align: center; padding-top: 3vh; }
.entrada h1, .entrada h2 { margin: 0; }
.ceu ~ * { position: relative; z-index: 1; }
.ceu { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, #3b2a6b 0%, #1a1530 45%, var(--fundo) 80%); }
.ceu[data-fundo] { background: linear-gradient(rgba(20, 18, 28, .55), rgba(20, 18, 28, .82) 55%, var(--fundo) 92%),
  var(--fundo-arte) center top / cover no-repeat; image-rendering: pixelated; animation: ceu-anda 40s ease-in-out infinite alternate; }
@keyframes ceu-anda { from { background-position: center top, 30% top; } to { background-position: center top, 70% top; } }
.brasas i { position: absolute; bottom: -10px; left: var(--x); width: 4px; height: 4px; background: #ffb347;
  box-shadow: 0 0 6px 2px rgba(255, 140, 40, .7); opacity: 0; animation: brasa var(--d) linear var(--a) infinite; }
@keyframes brasa { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(30px, -100vh); opacity: 0; } }
.entrada-topo { display: grid; gap: 12px; justify-items: center; }
img.logo.flutua, .titulo-jogo { animation: flutua 4s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(139, 108, 255, .55)); }
.titulo-jogo { font: 700 clamp(34px, 9vw, 52px)/1 var(--fonte-pixel); color: var(--ouro); letter-spacing: 1px;
  text-shadow: 0 3px 0 #7a4b00, 0 6px 0 #2a1a00; padding-top: 4vh; margin: 0; }
@keyframes flutua { 50% { transform: translateY(-8px); } }
.selo-renascer { font: 600 15px var(--fonte-pixel); color: #ffd98a; letter-spacing: 4px; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 180, 60, .6); }
.chamada { margin: 0; max-width: 420px; font-size: 16px; color: var(--texto); text-shadow: 0 2px 4px #000; }
.vitrine-herois { display: flex; justify-content: center; gap: 4px; width: 100%; }
.heroi-vitrine { width: 19%; max-width: 96px; animation: respira 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
img.vitrine { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .5)); }
@keyframes respira { 50% { transform: translateY(-5px); } }
.brilho { position: relative; overflow: hidden; font-size: 17px; min-height: 52px; box-shadow: 0 0 0 2px #b7a4ff, 0 8px 24px rgba(122, 96, 255, .45); }
.brilho::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-100%); animation: reflexo 3.2s ease-in-out infinite; }
@keyframes reflexo { 60%, 100% { transform: translateX(100%); } }
.destaques { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.destaques li { display: grid; gap: 2px; padding: 10px; text-align: left; background: rgba(31, 27, 46, .82); border: 2px solid var(--borda);
  border-radius: var(--raio); }
.destaques b { font: 600 15px var(--fonte-pixel); }
.destaques span { font-size: 13px; color: var(--texto-2); }
.entrada-conta { display: grid; gap: 10px; padding: 16px; text-align: left; background: rgba(20, 18, 28, .88);
  border: 2px solid var(--borda); border-radius: 14px; }
.entrada-conta h2 { font-family: var(--fonte-pixel); }
.abas-conta { display: flex; gap: 4px; flex-wrap: wrap; }
.aba-conta { flex: 1; min-height: 38px; padding: 6px 8px; font-size: 13px; }
.aba-conta[aria-pressed="true"] { background: var(--painel-2); border-color: #7a60ff; color: var(--texto); }
.entrada .rodape { margin-top: 8px; }
@media (min-width: 1000px) {
  #app:has(> .entrada) { max-width: 1100px; }
  .entrada { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px; padding-top: 8vh; }
  .entrada-conta { padding: 24px; }
  .entrada .rodape { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .ceu, .brasas i, .heroi-vitrine, img.logo.flutua, .titulo-jogo, .brilho::after { animation: none; }
}

/* Criação do herói */
.criacao-topo { text-align: center; margin: 8px 0 14px; }
.criacao-topo h1 { margin: 0; font-family: var(--fonte-pixel); }
.classe { transition: transform .12s, border-color .12s, box-shadow .12s; }
.classe:hover { transform: translateY(-2px); }
.classe[aria-pressed="true"] { border-color: #7a60ff; box-shadow: 0 0 0 2px #7a60ff, 0 6px 18px rgba(122, 96, 255, .35); }
.classe[aria-pressed="true"] img.retrato { animation: respira 1.6s ease-in-out infinite; }

/* Nomes: título, cores e molduras da loja de Legado Coins */
.titulo-nome { color: var(--texto-2); font-size: .92em; }
.titulo-nome.premium { background: linear-gradient(90deg, #ffd36e, #ff8ad8, #8ad4ff, #ffd36e); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: arcoiris 6s linear infinite; font-weight: 600; }
.cor-rubi { color: #ff5d6c; }
.cor-esmeralda { color: #3ee08f; }
.cor-safira { color: #5aa8ff; }
.cor-dourado { color: var(--ouro); text-shadow: 0 0 8px rgba(242, 201, 76, .45); }
.cor-arcoiris { background: linear-gradient(90deg, #ff5d6c, #ffb347, #f2e14c, #3ee08f, #5aa8ff, #b26cff, #ff5d6c); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: arcoiris 5s linear infinite; font-weight: 700; }
@keyframes arcoiris { to { background-position: 300% 0; } }
.moldura { display: inline-block; border-radius: 8px; padding: 2px; margin-right: 6px; vertical-align: middle; line-height: 0; }
.moldura img.avatar { margin-right: 0; vertical-align: 0; border: 0; }
.moldura-bronze { background: linear-gradient(135deg, #e3a068, #7a4421); }
.moldura-prata { background: linear-gradient(135deg, #f4f6fb, #8a93a8); }
.moldura-ouro { background: linear-gradient(135deg, #fff0a8, #d49a12); box-shadow: 0 0 8px rgba(242, 201, 76, .6); }
.moldura-runica { background: linear-gradient(135deg, #b26cff, #4ea1ff, #b26cff); background-size: 200% 200%;
  box-shadow: 0 0 10px rgba(178, 108, 255, .8); animation: arcoiris 3s linear infinite; }
.cor-ametista { color: #c68bff; }
.cor-gelo { color: #9fe8ff; text-shadow: 0 0 6px rgba(159, 232, 255, .45); }
.cor-aurora { background: linear-gradient(90deg, #3ee0c2, #6fb8ff, #b98bff, #3ee0c2); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: arcoiris 7s linear infinite; font-weight: 700; }
.moldura-gelo { background: linear-gradient(135deg, #e9fbff, #6fc9ef, #2f7fb8); box-shadow: 0 0 8px rgba(111, 201, 239, .6); }
.moldura-chamas { background: linear-gradient(180deg, #fff27a, #ff9a2e, #e2361d); background-size: 100% 200%;
  box-shadow: 0 0 10px rgba(255, 120, 40, .75); animation: chamas 1.2s ease-in-out infinite alternate; }
.moldura-aurora { background: linear-gradient(135deg, #3ee0c2, #6fb8ff, #b98bff, #3ee0c2); background-size: 250% 250%;
  box-shadow: 0 0 10px rgba(110, 200, 255, .7); animation: arcoiris 4s linear infinite; }
@keyframes chamas { to { background-position: 0 100%; } }
/* efeitos de nome (Legado Coins): ficam por cima da cor */
.efeito-brilho { text-shadow: 0 0 6px rgba(255, 255, 255, .75), 0 0 14px rgba(170, 150, 255, .6); }
.efeito-pulsar { display: inline-block; animation: pulsar 1.6s ease-in-out infinite; }
@keyframes pulsar { 50% { transform: scale(1.08); filter: brightness(1.35); } }
.efeito-chamas { text-shadow: 0 -2px 4px #ffde59, 0 -4px 10px #ff8a1e, 0 -8px 16px #e2361d; animation: tremeluz .25s steps(2) infinite; }
@keyframes tremeluz { 50% { text-shadow: 0 -3px 5px #ffde59, 0 -6px 12px #ff8a1e, 0 -10px 18px #e2361d; } }
@media (prefers-reduced-motion: reduce) { .efeito-pulsar, .efeito-chamas, .moldura-chamas, .moldura-aurora, .cor-aurora { animation: none; } }
/* cor das mensagens no chat (Legado Coins) */
.msg.balao { padding: 6px 10px; border-radius: 10px; border: 1px solid transparent; }
.balao-roxo { background: rgba(122, 96, 255, .18); border-color: rgba(122, 96, 255, .45); }
.balao-esmeralda { background: rgba(62, 224, 143, .14); border-color: rgba(62, 224, 143, .4); }
.balao-ouro { background: rgba(242, 201, 76, .14); border-color: rgba(242, 201, 76, .5); }
.balao-noite { background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .35) 0 1px, transparent 2px),
  radial-gradient(circle at 75% 60%, rgba(255, 255, 255, .3) 0 1px, transparent 2px), linear-gradient(135deg, #1b1f4a, #3a2160);
  border-color: #6b5cff; }
.cartao.visual .msg.balao { display: block; font-size: 13px; }
.cartao.visual.sazonal { border-color: #6fb8ff; }
.selo-temporada { font: 600 10px var(--fonte-pixel); color: #0b1a2a; background: #6fb8ff; border-radius: 6px; padding: 2px 6px; }
/* poções na luta */
.cartao.destaque { border-color: var(--ouro); box-shadow: 0 0 0 1px rgba(242, 201, 76, .35) inset; }
.pocoes-rapidas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.pocoes-rapidas button { font-size: 12px; padding: 6px 4px; min-height: 36px; }
.luta-turno { margin-top: 6px; font-size: 13px; color: var(--texto-2); font-family: var(--fonte-pixel); }
.luta-turno.acabando { color: #ff8f8f; font-size: 15px; }
.bonus-titulo { color: var(--bom); font-size: 12px; }
.titulo-linha.falta { opacity: .7; }
.membro-nome { min-width: 0; background: none; border: 0; padding: 4px 0; min-height: 36px; text-align: left; font: inherit; color: inherit;
  box-shadow: none; overflow-wrap: anywhere; }
.menu-membro { display: grid; gap: 8px; }
.grade-visual { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.cartao.visual { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 10px 8px; }
.botao-som { min-height: 30px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.ajustes-som { gap: 4px; }
.ajustes-som .linha { min-height: 48px; padding: 0 4px; cursor: pointer; }
.ajustes-som .linha + .linha { border-top: 1px solid var(--borda); }
.ajustes-som .volume { display: grid; gap: 6px; padding: 10px 4px 4px; border-top: 1px solid var(--borda); }
.ajustes-som .volume .linha { min-height: 0; padding: 0; border: 0; }
.ajustes-som input[type="range"] { width: 100%; height: 28px; }
.lista-jogo { list-style: none; margin: 0; display: grid; gap: 6px; text-align: left; }
a.botao {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px;
  font: 600 16px var(--fonte-pixel); color: var(--texto); text-decoration: none;
  background: #5b3fd6; border: 2px solid #7a60ff; border-radius: var(--raio);
}
a.botao:hover { border-color: #a594ff; }
a.botao:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }

img.miniatura { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }

/* Link da wiki no menu: só aparece no menu lateral do PC */
.link-wiki { display: none; }
@media (min-width: 1000px) {
  .link-wiki { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-top: 8px; border-radius: var(--raio);
    color: var(--texto-2); text-decoration: none; font: 600 15px var(--fonte-pixel); border-top: 1px solid var(--borda); }
  .link-wiki:hover { background: var(--painel); color: var(--texto); }
}

/* Mercado */
.acoes-item { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cartao.linha:has(.form-anuncio) { flex-wrap: wrap; }
.form-anuncio { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; align-items: end; margin-top: 8px; }
.form-anuncio label { display: grid; gap: 4px; }
.form-anuncio input, .form-anuncio select, .filtro-mercado select { padding: 8px; font-size: 15px; color: var(--texto);
  background: var(--painel); border: 2px solid var(--borda); border-radius: var(--raio); }
.filtro-mercado input { padding: 8px; }

/* Folha (perfil, conquistas, ranking) */
.folha { position: fixed; inset: 0; z-index: 40; background: rgba(8, 7, 12, .72); display: grid; place-items: end center; }
.folha-caixa { width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; background: var(--fundo);
  border: 2px solid var(--borda); border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
.folha-topo { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 2px solid var(--borda); }
.folha-corpo { overflow-y: auto; padding: 12px max(14px, env(safe-area-inset-right, 0px)) 18px max(14px, env(safe-area-inset-left, 0px)); }
.folha-corpo h3 { margin: 14px 0 6px; }
body.folha-aberta { overflow: hidden; }
@media (min-width: 1000px) { .folha { place-items: center; } .folha-caixa { border-radius: 14px; } }
.perfil-cab { display: flex; gap: 12px; align-items: center; }
img.retrato-perfil { width: 84px; height: 84px; object-fit: contain; image-rendering: pixelated; }
.perfil-numeros { margin-top: 12px; }
.online { color: var(--bom); }
.selos-conquista { display: flex; flex-wrap: wrap; gap: 6px; font-size: 24px; }
.aviso-opcao input { width: 20px; height: 20px; accent-color: #7a60ff; }
.conquista.feita { border-color: #2c5a41; }
.icone-conquista { font-size: 26px; width: 34px; text-align: center; }
.abas-ranking { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.linha-ranking { width: 100%; text-align: left; font: 14px system-ui, sans-serif; padding: 8px 10px; min-height: 0;
  background: var(--painel); border: 2px solid var(--borda); border-radius: var(--raio); }
.linha-ranking.eu { border-color: #7a60ff; }
.posicao { font: 700 14px var(--fonte-pixel); width: 28px; color: var(--ouro); }
.atalhos-desafios { margin: 4px 0 8px; }
.atalhos-desafios button { position: relative; }
.atalhos-desafios .contador { position: absolute; top: -6px; right: -6px; }
#meu-perfil { cursor: pointer; }

/* Loja: Pix e Telegram Stars lado a lado */
.precos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.previa-temporada { margin-top: 6px; font-size: 13px; color: var(--ouro); }
.precos-oferta { flex-direction: column; flex-wrap: nowrap; }
button.estrelas { background: linear-gradient(135deg, #3a2a05, #6b4b0a); border-color: #f2c94c; color: #ffe08a; }

/* Duelo amistoso ao vivo (fica por cima do jogo e do chat; as caixas de confirmação ficam por cima dele) */
.tela-duelo { position: fixed; inset: 0; z-index: 35; background: var(--fundo); overflow-y: auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.tela-duelo-caixa { max-width: 560px; margin: 0 auto; display: grid; gap: 8px; }
.duelo-topo { padding-bottom: 4px; border-bottom: 2px solid var(--borda); }
.duelista { position: relative; }
.duelista.eu { border-color: #4b3fa0; }
.duelista .barra { margin-top: 8px; }
img.retrato-duelo { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; }
.duelista.outro img.retrato-duelo { transform: scaleX(-1); }
.duelo-vez { text-align: center; font: 600 14px var(--fonte-pixel); color: var(--texto-2); min-height: 20px; }
.duelo-vez.minha { color: var(--ouro); animation: pulsar 1.2s ease-in-out infinite; }
body.em-duelo .botao-chat { display: none; }
@media (prefers-reduced-motion: reduce) { .duelo-vez.minha { animation: none; } }

/* Forja animada */
.forja { display: grid; gap: 10px; }
.forja-palco { position: relative; height: 210px; border-radius: 12px; overflow: hidden; border: 2px solid var(--borda);
  background: radial-gradient(ellipse at 50% 85%, rgba(255, 120, 30, .35), transparent 60%), linear-gradient(#1a1424, #0e0b14); }
.forja-brilho { position: absolute; inset: auto 0 0; height: 60%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 150, 40, .45), transparent 70%);
  animation: fornalha 1.8s ease-in-out infinite alternate; }
@keyframes fornalha { to { opacity: .55; } }
.forja-bigorna { position: absolute; left: 50%; bottom: 22px; width: 150px; height: 46px; transform: translateX(-50%);
  background: linear-gradient(#5d5a6e, #34313f); border-radius: 6px 6px 14px 14px; box-shadow: 0 6px 0 #1d1b24, inset 0 3px 0 #807c95; }
.forja-bigorna::before { content: ""; position: absolute; left: -34px; top: 4px; width: 40px; height: 16px; background: linear-gradient(#5d5a6e, #3f3c4b);
  border-radius: 20px 0 0 20px; }
.forja-bigorna::after { content: ""; position: absolute; left: 40px; bottom: -30px; width: 70px; height: 30px; background: #2a2833; border-radius: 0 0 6px 6px; }
.forja-peca { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); display: grid; place-items: center; z-index: 2; }
.forja-icone { font-size: 56px; line-height: 1; filter: drop-shadow(0 0 10px currentColor); }
.forja-nivel { margin-top: 2px; font-size: 18px; color: #fff; text-shadow: 2px 2px 0 #000; }
.forja-martelo { position: absolute; right: calc(50% - 96px); bottom: 104px; font-size: 54px; z-index: 3; transform-origin: 80% 85%; transform: rotate(-35deg); }
.forja-martelo.bate { animation: martelada .48s cubic-bezier(.5, 0, .7, 1); }
@keyframes martelada { 0% { transform: rotate(-35deg); } 40% { transform: rotate(-75deg) translateY(-8px); } 55% { transform: rotate(18deg) translate(-6px, 10px); }
  70% { transform: rotate(8deg) translate(-4px, 8px); } 100% { transform: rotate(-35deg); } }
.forja-palco.treme { animation: tremer-tela .25s; }
.forja-faisca { position: absolute; left: 50%; bottom: 92px; width: 6px; height: 6px; border-radius: 50%; z-index: 4; pointer-events: none;
  background: #ffd86b; box-shadow: 0 0 8px 2px #ff8a1e; animation: faisca .6s ease-out forwards; }
@keyframes faisca { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.faisca-azul .forja-faisca { background: #a6f0ff; box-shadow: 0 0 8px 2px #3ab4ff; }
.faisca-esmeralda .forja-faisca { background: #b5ffc9; box-shadow: 0 0 8px 2px #22c55e; }
.faisca-estrelas .forja-faisca { width: auto; height: auto; background: none; box-shadow: none; color: #fff3b0; font-style: normal; font-size: 14px;
  text-shadow: 0 0 8px #ffd23f; }
.faisca-estrelas .forja-faisca::before { content: "✦"; }
.forja-resultado { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; z-index: 5; pointer-events: none;
  color: transparent; text-shadow: none; }
.forja-palco.sucesso { box-shadow: 0 0 0 2px var(--ouro), 0 0 30px rgba(255, 210, 63, .45); }
.forja-palco.sucesso .forja-resultado { color: var(--ouro); text-shadow: 3px 3px 0 #000, 0 0 18px #ffb300; animation: estouro .7s cubic-bezier(.2, 1.6, .4, 1); }
.forja-palco.sucesso .forja-peca { animation: subir-peca .8s ease-out; }
.forja-palco.sucesso::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, rgba(255, 230, 120, .7), transparent 60%);
  animation: clarao .8s ease-out forwards; }
.forja-palco.falha .forja-resultado, .forja-palco.protegido .forja-resultado { animation: estouro .5s ease-out; text-shadow: 3px 3px 0 #000; }
.forja-palco.falha .forja-resultado { color: #ff5b4a; }
.forja-palco.protegido .forja-resultado { color: #9ad8ff; }
.forja-palco.falha { box-shadow: 0 0 0 2px var(--vida); animation: tremer-tela .4s; }
.forja-palco.falha .forja-peca { filter: grayscale(.8) brightness(.7); }
.forja-palco.falha::after { content: ""; position: absolute; left: 50%; bottom: 60px; width: 4px; height: 80px; background: #ff5b4a;
  transform: translateX(-50%) rotate(18deg); clip-path: polygon(0 0, 100% 15%, 30% 40%, 100% 60%, 20% 80%, 60% 100%, 0 100%); animation: clarao 1s ease-out forwards; }
@keyframes estouro { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }
@keyframes subir-peca { 30% { transform: translateX(-50%) translateY(-18px) scale(1.15); } }
@keyframes clarao { from { opacity: 1; } to { opacity: 0; } }
.forja-custo { display: flex; justify-content: space-between; gap: 8px; }
.forja-custo.ok b { color: #6be37a; } .forja-custo.falta b { color: #ff6b5b; }
.forja-quais { font-size: 12px; margin-top: -4px; }
.forja-risco { margin: 0; color: #ffb35b; font-size: 14px; }
.forja-chance { height: 8px; }
.forja-chance span { background: linear-gradient(90deg, #ff8a1e, var(--ouro)); }
.forja-proteger { gap: 8px; align-items: center; }
.forja-aviso { margin: 0; text-align: center; padding: 8px; border-radius: 8px; }
.forja-aviso.bom { background: rgba(255, 210, 63, .12); color: var(--ouro); }
.forja-aviso.ruim { background: rgba(226, 54, 29, .12); color: #ff8b7d; }
.forja-botao { font-size: 18px; padding: 14px; }
.nome.forja-alta, .forja-alta { text-shadow: 0 0 8px currentColor; animation: pulsar 2.4s ease-in-out infinite; }
.amostra-faisca { position: relative; display: inline-block; font-size: 28px; width: 60px; height: 44px; }
.amostra-faisca i { position: absolute; left: 30px; top: 22px; width: 5px; height: 5px; border-radius: 50%; background: #ffd86b; box-shadow: 0 0 6px 2px #ff8a1e;
  animation: faisca 1.2s ease-out infinite; }
.amostra-faisca i:nth-child(1) { --dx: -24px; --dy: -14px; } .amostra-faisca i:nth-child(2) { --dx: 22px; --dy: -18px; animation-delay: .2s; }
.amostra-faisca i:nth-child(3) { --dx: -10px; --dy: -24px; animation-delay: .4s; } .amostra-faisca i:nth-child(4) { --dx: 26px; --dy: -4px; animation-delay: .6s; }
.amostra-faisca i:nth-child(5) { --dx: -26px; --dy: 2px; animation-delay: .8s; }
.amostra-faisca.faisca-azul i { background: #a6f0ff; box-shadow: 0 0 6px 2px #3ab4ff; }
.amostra-faisca.faisca-esmeralda i { background: #b5ffc9; box-shadow: 0 0 6px 2px #22c55e; }
.amostra-faisca.faisca-estrelas i { background: none; box-shadow: none; width: auto; height: auto; font-style: normal; color: #fff3b0; font-size: 12px; text-shadow: 0 0 6px #ffd23f; }
.amostra-faisca.faisca-estrelas i::before { content: "✦"; }
@media (prefers-reduced-motion: reduce) {
  .forja-brilho, .forja-martelo.bate, .forja-palco.treme, .forja-palco.falha, .forja-palco.sucesso .forja-resultado, .forja-palco.sucesso .forja-peca,
  .forja-alta, .amostra-faisca i { animation: none; }
}

/* Acampamento (idle) */
.acampamento { margin-top: 8px; border-color: #6b4a2a; background: linear-gradient(180deg, rgba(255, 140, 40, .08), transparent 60%), var(--painel); }
.acampamento .fogueira { font-size: 34px; display: inline-block; transform-origin: 50% 100%; animation: fogueira 1.1s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(255, 140, 40, .8)); }
@keyframes fogueira { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(1.06, .94) rotate(1deg); } 100% { transform: scale(.96, 1.08) rotate(2deg); } }
.acampamento.cheio { border-color: var(--ouro); box-shadow: 0 0 0 1px rgba(255, 210, 63, .35), 0 0 18px rgba(255, 170, 50, .25); }
.acampamento.cheio #recolher-acampamento { animation: pulsar 1.4s ease-in-out infinite; }
.acampamento-previa { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .acampamento .fogueira, .acampamento.cheio #recolher-acampamento { animation: none; } }

/* Faixa do evento (semana de abertura, XP em dobro) */
.faixa-evento { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--raio); font: 600 14px var(--fonte-pixel); line-height: 1.35;
  border: 2px solid #8a6a12; background: linear-gradient(90deg, rgba(242, 201, 76, .16), rgba(139, 108, 255, .14)); color: var(--ouro); }
.faixa-evento.xp { border-color: var(--xp); color: #d7ccff; background: linear-gradient(90deg, rgba(139, 108, 255, .28), rgba(242, 201, 76, .12));
  animation: pulsar 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .faixa-evento.xp { animation: none; } }

/* ---------- Palco da luta: herói e monstro em cena ---------- */
.palco { position: relative; height: 200px; margin: 6px -4px 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 3% 4px; }
.ator { position: relative; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.ator-heroi { width: 40%; --brilho: #fff; }
.ator-monstro { width: 52%; }
.ator .corpo, .ator .reacao, .ator .respira { transform-origin: 50% 92%; }
.ator .respira { font-size: 64px; line-height: 1; }
img.heroi-palco { width: 100%; max-width: 160px; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); }
.ator-monstro img.monstro { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .45)); }
.ator-monstro.fraco img.monstro { max-width: 150px; }
.ator-monstro.medio img.monstro { max-width: 175px; }
.ator-monstro.forte img.monstro { max-width: 205px; }
.classe-mago { --brilho: #ffb347; } .classe-necromante { --brilho: #b48cff; } .classe-cacador { --brilho: #c8f08f; } .classe-paladino { --brilho: #ffe08a; }
.ator .sombra { position: relative; width: 62%; height: 12px; margin-top: -12px; border-radius: 50%;
  background: radial-gradient(rgba(0, 0, 0, .55), transparent 70%); animation: sombra-respira 2.4s ease-in-out infinite; }
@keyframes sombra-respira { 50% { transform: scaleX(.9); opacity: .8; } }

/* parados: o herói respira, o monstro balança no lugar */
.ator-heroi .respira { animation: respira-heroi 2.4s ease-in-out infinite; }
.ator-monstro .respira { animation: balanca-monstro 1.4s ease-in-out infinite; }
.ator-monstro.forte .respira { animation-duration: 2s; }
@keyframes respira-heroi { 50% { transform: scale(.985, 1.025); } }
@keyframes balanca-monstro { 0%, 50%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-4px) rotate(-2.5deg); } 75% { transform: translateY(-2px) rotate(1.5deg); } }

/* entrada em cena, com poeira nos pés */
.palco.chegando .ator-heroi { animation: entrar-em-cena .55s cubic-bezier(.2, .8, .3, 1) both; }
.palco.chegando .ator-monstro { animation: entrar-em-cena .8s cubic-bezier(.2, .8, .3, 1) .1s both; }
@keyframes entrar-em-cena { from { transform: translateX(calc(-130% * var(--lado))); opacity: 0; } 30% { opacity: 1; } }
.palco.chegando .sombra::before, .palco.chegando .sombra::after { content: ""; position: absolute; bottom: 0; left: 40%; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(214, 196, 166, .45); animation: poeira-pe .45s ease-out 3 both; }
.palco.chegando .sombra::after { left: 20%; animation-delay: .22s; }
@keyframes poeira-pe { from { transform: scale(.4); opacity: .8; } to { transform: translate(calc(-40px * var(--lado)), -12px) scale(1.5); opacity: 0; } }

/* golpes (o --lado vira o movimento: herói para a direita, monstro para a esquerda) */
.corpo.golpe { animation: golpe-corpo .46s ease-out; }
@keyframes golpe-corpo { 28% { transform: translateX(calc(-10px * var(--lado))) rotate(calc(-7deg * var(--lado))); }
  52% { transform: translateX(calc(52px * var(--lado))) rotate(calc(9deg * var(--lado))); } 72% { transform: translateX(calc(32px * var(--lado))) rotate(calc(3deg * var(--lado))); } }
.corpo.giro { animation: giro-corpo .55s ease-out; }
@keyframes giro-corpo { 25% { transform: translate(calc(-8px * var(--lado)), -20px) rotate(calc(-18deg * var(--lado))); }
  55% { transform: translate(calc(58px * var(--lado)), -8px) rotate(calc(22deg * var(--lado))); } 78% { transform: translateX(calc(30px * var(--lado))) rotate(calc(6deg * var(--lado))); } }
.corpo.conjurar { animation: conjurar-corpo .5s ease-out; }
@keyframes conjurar-corpo { 30% { transform: translateX(calc(-6px * var(--lado))) scale(1.05); filter: brightness(1.5) drop-shadow(0 0 10px var(--brilho)); } }
.corpo.beber { animation: beber-corpo .7s ease-in-out; }
@keyframes beber-corpo { 25%, 70% { transform: translateX(calc(-4px * var(--lado))) rotate(calc(-9deg * var(--lado))); } }

/* reações de quem apanha */
.reacao.recuo { animation: recuo-reacao .42s ease-out; }
@keyframes recuo-reacao { 14% { transform: translateX(calc(-16px * var(--lado))); filter: sepia(1) saturate(6) hue-rotate(-50deg) brightness(1.1); } 40% { filter: none; } }
.reacao.recuo-forte { animation: recuo-forte-reacao .6s ease-out; }
@keyframes recuo-forte-reacao { 0% { filter: brightness(3) saturate(0); }
  12% { transform: translateX(calc(-30px * var(--lado))) rotate(calc(-6deg * var(--lado))); filter: sepia(1) saturate(7) hue-rotate(-50deg); } 35% { filter: none; } }
.reacao.esquiva { animation: esquiva-reacao .5s ease-out; }
@keyframes esquiva-reacao { 35% { transform: translate(calc(-30px * var(--lado)), -12px); opacity: .55; } 65% { transform: translateX(calc(-20px * var(--lado))); opacity: 1; } }

/* fim da luta */
.ator.caido .respira { animation: none; }
.ator.caido .corpo { animation: tombar .7s ease-in forwards; }
.ator-monstro.caido .corpo { animation-name: tombar-e-sumir; }
.ator.caido .sombra { opacity: .3; animation: none; }
@keyframes tombar { to { transform: translateY(10px) rotate(calc(-16deg * var(--lado))); filter: grayscale(1) brightness(.55); opacity: .5; } }
@keyframes tombar-e-sumir { 60% { opacity: .7; } to { transform: translateY(18px) rotate(calc(-16deg * var(--lado))); filter: grayscale(1) brightness(.5); opacity: 0; } }
.ator.fugindo { animation: fugir-de-cena .7s ease-in forwards; }
@keyframes fugir-de-cena { to { transform: translateX(calc(-170% * var(--lado))); opacity: 0; } }

/* ar do cenário e efeitos */
.palco-ar { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.palco-ar i { position: absolute; bottom: -6px; left: var(--x); width: 3px; height: 3px; background: rgba(255, 222, 150, .85);
  box-shadow: 0 0 6px rgba(255, 200, 120, .8); animation: cisco var(--d) linear var(--a) infinite; }
@keyframes cisco { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .8; } 100% { transform: translate(var(--dx), -220px); opacity: 0; } }
.palco-efeitos { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.palco .numero-dano { z-index: 4; }
.fx { position: absolute; transform: translate(-50%, -50%); pointer-events: none; font-style: normal; }
.fx.impacto { width: 70px; height: 70px; border-radius: 50%; border: 4px solid #fff; animation: impacto-fx .35s ease-out forwards; }
.fx.impacto.forte { width: 100px; height: 100px; border-color: var(--ouro); }
@keyframes impacto-fx { from { transform: translate(-50%, -50%) scale(.2); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.3); opacity: 0; border-width: 1px; } }
.fx.faisca-fx { width: 5px; height: 5px; animation: faisca-fx .45s ease-out forwards; }
@keyframes faisca-fx { from { opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); opacity: 0; } }
.fx.projetil.fogo { width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff6c2, #ffb02e 45%, #e2361d 75%, transparent 78%); box-shadow: 0 0 14px 4px rgba(255, 140, 40, .7); }
.fx.projetil.sombra { width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #f0e0ff, #9b5cff 45%, #3c1a6e 75%, transparent 78%); box-shadow: 0 0 14px 4px rgba(150, 90, 255, .7); }
.fx.projetil.flecha { width: 30px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #8a6a42 0 18%, #e6e0d0 18%); }
.fx.projetil.flecha::after { content: ""; position: absolute; right: -7px; top: -4px; border-left: 8px solid #dfe6ee; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.fx.corte { width: 90px; height: 90px; border-radius: 50%; border-right: 7px solid #fff; animation: corte-fx .32s ease-out forwards; }
.fx.corte.paladino { border-right-color: #ffe08a; }
@keyframes corte-fx { from { transform: translate(-50%, -50%) rotate(-70deg) scale(.6); opacity: 1; } to { transform: translate(-50%, -50%) rotate(40deg) scale(1.15); opacity: 0; } }
.fx.cura-fx { color: #6be37a; font: 700 16px var(--fonte-pixel); text-shadow: 1px 1px 0 #000; animation: cura-sobe .9s ease-out both; }
@keyframes cura-sobe { from { opacity: 0; } 25% { opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% - 50px)); opacity: 0; } }
.fx.clarao-tela { inset: 0; transform: none; background: rgba(255, 255, 255, .5); animation: clarao .25s ease-out forwards; }
.moeda-voando { position: fixed; z-index: 50; pointer-events: none; font-size: 18px; }
@media (prefers-reduced-motion: reduce) {
  .ator .respira, .palco.chegando .ator, .palco.chegando .sombra::before, .palco.chegando .sombra::after,
  .palco-ar i, .corpo, .reacao, .ator .sombra { animation: none !important; }
  .palco-ar { display: none; }
  .ator.caido .corpo { animation: none !important; opacity: .35; filter: grayscale(1); }
  .ator.fugindo { animation: none; opacity: 0; }
}

/* ---------- Próximo passo, bolinhas do menu e comparação de peças ---------- */
.proximo-passo { border-color: var(--ouro); background: linear-gradient(135deg, #2a2140, #1d1830); margin-bottom: 12px;
  animation: passo-surge .5s cubic-bezier(.2, .8, .3, 1.2) both; position: relative; overflow: hidden; }
.proximo-passo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 222, 89, .12) 50%, transparent 60%); transform: translateX(-100%);
  animation: reflexo 3.5s ease-in-out 1s infinite; }
@keyframes passo-surge { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.passo-titulo { font: 600 11px var(--fonte-pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--ouro); }
.passo-principal, .passo-linha { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.passo-icone { font-size: 18px; width: 26px; text-align: center; flex: none; }
.passo-icone.grande { font-size: 28px; width: 36px; animation: flutua 2s ease-in-out infinite; }
.passo-mais summary { cursor: pointer; margin-top: 8px; }
.passo-linha { padding: 6px 0; border-top: 1px solid var(--borda); }
.brilhando { animation: brilho-botao 1.6s ease-in-out infinite; }
@keyframes brilho-botao { 50% { box-shadow: 0 0 0 3px rgba(255, 222, 89, .35), 0 0 16px rgba(255, 222, 89, .45); } }
.abas button { position: relative; }
.bolinha { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px;
  display: grid; place-items: center; background: #e5484d; color: #fff; font: 700 11px var(--fonte-pixel);
  box-shadow: 0 0 0 2px var(--painel); animation: bolinha-pop .4s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes bolinha-pop { from { transform: scale(0); } }
.destaque-ir { animation: destaque-ir .8s ease-in-out 3; border-radius: var(--raio); }
@keyframes destaque-ir { 50% { box-shadow: 0 0 0 3px var(--ouro), 0 0 22px rgba(255, 222, 89, .6); } }
.comparacao { font: 600 12px var(--fonte-pixel); margin-bottom: 2px; }
.comparacao.melhor { color: #6be37a; } .comparacao.pior { color: #ff6b5b; } .comparacao.igual { color: var(--texto-2); }
.comparacao.outra { color: var(--texto-2); opacity: .8; }
.peca-melhor { border-color: #46c37b; box-shadow: 0 0 0 1px rgba(70, 195, 123, .4), 0 0 14px rgba(70, 195, 123, .25); }
.peca-melhor .comparacao { animation: flutua 1.8s ease-in-out infinite; display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  .proximo-passo, .proximo-passo::after, .passo-icone.grande, .brilhando, .bolinha, .destaque-ir, .peca-melhor .comparacao { animation: none; }
  .destaque-ir { box-shadow: 0 0 0 3px var(--ouro); }
}
.largo-2 { grid-column: 1 / -1; }
.convite-topo { display: flex; gap: 12px; align-items: center; }
.convite-presente { font-size: 40px; animation: presente-pula 1.6s ease-in-out infinite; }
@keyframes presente-pula { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-10px) rotate(-8deg); } 80% { transform: translateY(0) rotate(6deg); } 90% { transform: translateY(-4px) rotate(-3deg); } }
.convite-link { background: var(--fundo); border: 2px dashed var(--ouro); border-radius: 8px; padding: 8px; margin: 10px 0; font-size: 13px; word-break: break-all; text-align: center; }
@media (prefers-reduced-motion: reduce) { .convite-presente { animation: none; } }

/* ---------- Bestiário ---------- */
.bestiario-topo { margin-bottom: 10px; }
.bestiario-topo .barra { margin: 6px 0; }
.bestiario-area { border: 2px solid var(--borda); border-radius: var(--raio); margin-bottom: 8px; background: var(--painel-2); }
.bestiario-area > summary { display: flex; gap: 8px; align-items: center; padding: 10px 12px; cursor: pointer; font: 600 14px var(--fonte-pixel); }
.bestiario-area.bloqueado { opacity: .55; }
.medalhas-area { letter-spacing: 2px; }
.bolinha-fixa { background: #e5484d; color: #fff; border-radius: 99px; min-width: 18px; text-align: center; font-size: 12px; animation: bolinha-pop .4s both; }
.bestiario-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 10px 10px; }
.monstro-bestiario { background: var(--fundo); border: 2px solid var(--borda); border-radius: 10px; padding: 8px 6px; text-align: center;
  display: grid; gap: 4px; align-content: start; animation: passo-surge .4s both; }
.monstro-bestiario.grau-1 { border-color: #b07a4a; } .monstro-bestiario.grau-2 { border-color: #c9d3de; }
.monstro-bestiario.grau-3 { border-color: var(--ouro); box-shadow: 0 0 12px rgba(255, 222, 89, .35); }
.bestiario-retrato { height: 72px; display: grid; place-items: center; font-size: 40px; }
img.bestiario-arte { width: 72px; height: 72px; object-fit: contain; animation: balanca-monstro 1.6s ease-in-out infinite; }
.escondido img.bestiario-arte, .escondido .bestiario-retrato { filter: brightness(0) opacity(.55); animation: none; }
.bestiario-nome { font-size: 12px; min-height: 2.4em; }
.medalhas span { filter: grayscale(1) opacity(.25); font-size: 16px; }
.medalhas span.ganha { filter: none; display: inline-block; animation: medalha-brilha 2.4s ease-in-out infinite; }
@keyframes medalha-brilha { 0%, 80%, 100% { transform: scale(1); } 88% { transform: scale(1.25) rotate(-8deg); } }
.pode-receber { border-color: var(--ouro); }
.ficha { display: none; text-align: left; font-size: 12px; background: var(--painel); border-radius: 6px; padding: 6px; }
.ficha-aberta .ficha { display: block; animation: passo-surge .3s both; }
.trofeu-novo { display: block; width: 100%; margin: 8px 0; border: 2px solid var(--ouro); background: linear-gradient(135deg, #3a2e12, #241c0c);
  color: var(--ouro); font: 700 15px var(--fonte-pixel); animation: trofeu-entra .7s cubic-bezier(.3, 1.6, .5, 1) both, brilho-botao 1.6s ease-in-out .7s infinite; }
@keyframes trofeu-entra { from { transform: scale(.3) rotate(-6deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  img.bestiario-arte, .medalhas span.ganha, .monstro-bestiario, .trofeu-novo, .ficha-aberta .ficha { animation: none; }
}

/* ---------- Selos de presença ---------- */
.selo-presenca { margin-left: 4px; font-size: .9em; display: inline-block; }
.presenca .barra { margin: 8px 0 6px; }
.presenca-chama { font-size: 26px; animation: flutua 2.4s ease-in-out infinite; }
.selos-linha { display: flex; gap: 8px; justify-content: space-around; margin: 4px 0 6px; }
.selo-item { display: grid; justify-items: center; opacity: .35; filter: grayscale(1); }
.selo-item.ganho { opacity: 1; filter: none; }
.selo-item.ganho .selo-icone { animation: medalha-brilha 3s ease-in-out infinite; display: inline-block; }
.selo-icone { font-size: 22px; }
@media (prefers-reduced-motion: reduce) { .presenca-chama, .selo-item.ganho .selo-icone { animation: none; } }
.descoberta { animation: passo-surge .45s calc(var(--i, 0) * 70ms) both; }
.descoberta.pronta { border-color: var(--ouro); }
.descoberta-icone { font-size: 26px; width: 34px; text-align: center; }
.descoberta.pronta .descoberta-icone { animation: medalha-brilha 1.8s ease-in-out infinite; display: inline-block; }
@media (prefers-reduced-motion: reduce) { .descoberta, .descoberta.pronta .descoberta-icone { animation: none; } }

/* ---------- Labirinto: modos Normal, Difícil e Pesadelo ---------- */
.modos-lab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.modo-lab { display: grid; gap: 2px; padding: 8px 4px; font-size: 13px; }
.modo-lab small { font: 11px system-ui, sans-serif; color: var(--texto-2); }
.modo-lab.escolhido { border-color: var(--ouro); box-shadow: 0 0 10px rgba(255, 222, 89, .35); }
.modo-lab.modo-dificil.escolhido { border-color: #ff8a1e; box-shadow: 0 0 12px rgba(255, 138, 30, .45); }
.modo-lab.modo-pesadelo.escolhido { border-color: #e2361d; box-shadow: 0 0 14px rgba(226, 54, 29, .55); }
.selo-modo { font-size: 11px; padding: 1px 6px; border-radius: 99px; border: 1px solid currentColor; vertical-align: middle; }
.selo-modo.modo-dificil { color: #ff8a1e; } .selo-modo.modo-pesadelo { color: #ff5a4a; } .selo-modo.modo-normal { color: var(--texto-2); }
.labirinto-dificil .faixa[data-fundo] { filter: sepia(.4) hue-rotate(-20deg) saturate(1.4); }
.labirinto-pesadelo .faixa[data-fundo] { filter: sepia(.8) hue-rotate(-45deg) saturate(2.2) brightness(.8); animation: pesadelo-pulsa 3s ease-in-out infinite; }
.labirinto-pesadelo .cartao-labirinto { border-color: #8a1c12; background: linear-gradient(180deg, #2a1010, var(--painel)); }
@keyframes pesadelo-pulsa { 50% { filter: sepia(.8) hue-rotate(-45deg) saturate(2.6) brightness(.95); } }
[data-porta] { transition: transform .15s; }
[data-porta]:hover:not(:disabled) { transform: translateY(-3px); }
.porta-abrindo { animation: porta-abre .5s ease-in forwards; }
@keyframes porta-abre { 40% { transform: scale(1.06); filter: brightness(1.6); } 100% { transform: scale(.9) rotateY(70deg); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .labirinto-pesadelo .faixa[data-fundo], .porta-abrindo { animation: none; } }

/* ---------- Festa (confete) e comemoração de nível ---------- */
.confete { position: fixed; z-index: 60; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }
.confete.estrela { width: auto; height: auto; font-size: 16px; }
.comemoracao-nivel { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: rgba(8, 6, 16, .78);
  animation: clarao-fundo .4s ease-out both; }
@keyframes clarao-fundo { from { background: rgba(255, 255, 255, .7); } }
.comemoracao-raios { position: absolute; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 222, 89, .16) 0 10deg, transparent 10deg 22deg); animation: girar-raios 12s linear infinite; }
@keyframes girar-raios { to { transform: rotate(360deg); } }
.comemoracao-caixa { position: relative; text-align: center; display: grid; gap: 8px; padding: 24px; max-width: 320px;
  animation: trofeu-entra .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.comemoracao-titulo { font-size: 22px; color: var(--texto-2); letter-spacing: .3em; }
.comemoracao-numero { font-size: 96px; line-height: 1; color: var(--ouro); text-shadow: 0 4px 0 #8a5a00, 0 0 30px rgba(255, 222, 89, .6);
  animation: numero-pulsa 1.4s ease-in-out .7s infinite; }
@keyframes numero-pulsa { 50% { transform: scale(1.08); } }

/* ---------- Coliseu: o duelo na tela ---------- */
.arena-duelo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px; padding: 12px 4px;
  background: radial-gradient(ellipse at 50% 90%, rgba(255, 138, 30, .18), transparent 60%); border-radius: var(--raio); }
.duelista { position: relative; text-align: center; display: grid; gap: 4px; justify-items: center; }
img.duelista-arte { width: 110px; height: 110px; object-fit: contain; animation: respira-heroi 2.4s ease-in-out infinite; }
.duelista.ele img.duelista-arte { transform: scaleX(-1); animation: none; }
.duelista .barra { width: 100%; }
.versus { font-size: 26px; color: var(--ouro); text-shadow: 0 3px 0 #8a1c12; animation: numero-pulsa 1.2s ease-in-out infinite; align-self: center; }
.duelista.ataca { animation: ataca-eu .4s ease-out; }
.duelista.ele.ataca { animation-name: ataca-ele; }
@keyframes ataca-eu { 50% { transform: translateX(40px) rotate(6deg); } }
@keyframes ataca-ele { 50% { transform: translateX(-40px) rotate(-6deg); } }
.duelista.apanha img { animation: recuo-reacao-simples .35s ease-out; }
@keyframes recuo-reacao-simples { 20% { filter: sepia(1) saturate(6) hue-rotate(-50deg); transform: translateX(-8px); } }
.duelista.caiu img.duelista-arte { animation: none; filter: grayscale(1) brightness(.5); transform: rotate(-14deg) translateY(10px); transition: all .6s; }
.duelista.ele.caiu img.duelista-arte { transform: scaleX(-1) rotate(-14deg) translateY(10px); }
.duelo-linha { min-height: 2.6em; text-align: center; margin: 8px 0; }
.duelo-resultado { text-align: center; display: grid; gap: 6px; padding: 12px; border-radius: var(--raio); animation: trofeu-entra .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.duelo-resultado.venceu { border: 2px solid var(--ouro); background: linear-gradient(180deg, #3a2e12, #1d1830); }
.duelo-resultado.perdeu { border: 2px solid #8a1c12; background: linear-gradient(180deg, #2a1010, #1d1830); }
.duelo-titulo { font-size: 30px; }
.venceu .duelo-titulo { color: var(--ouro); } .perdeu .duelo-titulo { color: #ff6b5b; }
.liga-nova { color: var(--ouro); animation: numero-pulsa 1.2s ease-in-out infinite; }
.duelo-stats { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font-size: 13px; color: var(--texto-2); }
@media (prefers-reduced-motion: reduce) {
  .comemoracao-raios, .comemoracao-numero, .comemoracao-caixa, .versus, img.duelista-arte, .duelista.ataca, .liga-nova, .duelo-resultado { animation: none !important; }
}

/* ---------- Luta automática ---------- */
.auto-linha { margin-top: 8px; gap: 6px; }
#auto-luta { flex: 1; }
#auto-luta.ligado { border-color: #46c37b; background: #17321f; color: #b6f5c6; animation: brilho-auto 1.6s ease-in-out infinite; }
@keyframes brilho-auto { 50% { box-shadow: 0 0 0 3px rgba(70, 195, 123, .3), 0 0 14px rgba(70, 195, 123, .4); } }
.faixa-auto { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 10px; border-radius: var(--raio);
  background: #17321f; border: 2px solid #46c37b; color: #b6f5c6; font: 600 13px var(--fonte-pixel); }
.faixa-auto .engrenagem { display: inline-block; animation: girar-raios 2.5s linear infinite; }
@media (prefers-reduced-motion: reduce) { #auto-luta.ligado, .faixa-auto .engrenagem { animation: none; } }

/* ---------- Tutorial guiado ---------- */
#tutorial { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
#tutorial[hidden] { display: none; }
.tut-bloqueio { position: fixed; background: rgba(6, 4, 14, .72); pointer-events: auto; }
.tut-foco { position: fixed; border: 3px solid var(--ouro); border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 18px rgba(255, 222, 89, .6); animation: destaque-ir 1.2s ease-in-out infinite; }
.tut-seta { position: fixed; transform: translateX(-50%); color: var(--ouro); font-size: 26px; text-shadow: 0 2px 0 #000; pointer-events: none;
  animation: seta-pula .8s ease-in-out infinite; }
@keyframes seta-pula { 50% { margin-top: 8px; } }
.tut-balao { position: fixed; left: 50%; transform: translateX(-50%); width: min(460px, calc(100vw - 24px)); pointer-events: auto;
  display: flex; gap: 10px; padding: 12px; border-radius: 14px; border: 2px solid var(--ouro);
  background: linear-gradient(135deg, #2a2140, #1a1530); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.tut-balao.entrando { animation: balao-entra .45s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes balao-entra { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.95); } }
.tut-rosto { font-size: 40px; line-height: 1; animation: respira-heroi 2.4s ease-in-out infinite; }
.tut-nome { color: var(--ouro); font-size: 13px; }
.tut-texto { margin: 4px 0 8px; font-size: 15px; }
.tut-botoes { display: flex; justify-content: space-between; gap: 8px; }
.tut-botoes [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .tut-foco, .tut-seta, .tut-balao.entrando, .tut-rosto { animation: none; } }

/* ---------- LC do Mês ---------- */
.lc-mes { border-color: #7a60ff; background: linear-gradient(135deg, #251c45, #1a1530); }
.lc-mes-gema { font-size: 28px; display: inline-block; animation: gema-gira 3s ease-in-out infinite; }
@keyframes gema-gira { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .lc-mes-gema { animation: none; } }

/* ---------- O jogo todo mais vivo ---------- */
/* conteúdo da aba entra em sequência */
#conteudo > * { animation: conteudo-entra .38s cubic-bezier(.2, .8, .3, 1) both; }
#conteudo > *:nth-child(2) { animation-delay: .05s; } #conteudo > *:nth-child(3) { animation-delay: .1s; }
#conteudo > *:nth-child(4) { animation-delay: .15s; } #conteudo > *:nth-child(5) { animation-delay: .2s; }
#conteudo > *:nth-child(n+6) { animation-delay: .25s; }
@keyframes conteudo-entra { from { opacity: 0; transform: translateY(12px); } }
.lista > .cartao, .lista > button { animation: conteudo-entra .35s ease-out both; }
.lista > :nth-child(2) { animation-delay: .04s; } .lista > :nth-child(3) { animation-delay: .08s; }
.lista > :nth-child(4) { animation-delay: .12s; } .lista > :nth-child(5) { animation-delay: .16s; }
.lista > :nth-child(n+6) { animation-delay: .2s; }
/* aviso pula na tela */
.aviso:not([hidden]) { animation: aviso-entra .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes aviso-entra { from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(.9); } }
/* botões respondem ao toque */
button { transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
button:active:not(:disabled) { transform: translateY(1px) scale(.97); }
@media (hover: hover) { button:hover:not(:disabled) { filter: brightness(1.12); } button.principal:hover:not(:disabled) { box-shadow: 0 0 14px rgba(122, 96, 255, .45); } }
/* aba escolhida dá um pulinho */
.abas button[aria-current="page"] .icone { display: inline-block; animation: aba-pula .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes aba-pula { 40% { transform: translateY(-6px) scale(1.15); } }
/* cenário da faixa passeia devagar */
.faixa[data-fundo] { background-size: auto, 118%; animation: faixa-passeia 22s ease-in-out infinite alternate; }
@keyframes faixa-passeia { from { background-position: center, 30% 40%; } to { background-position: center, 70% 60%; } }
/* ouro e LC do topo piscam quando mudam */
#ouro-topo.ganhou, #lc-topo.ganhou { animation: ganhou-ouro .9s ease-out; display: inline-block; }
#ouro-topo.gastou, #lc-topo.gastou { animation: gastou-ouro .6s ease-out; display: inline-block; }
@keyframes ganhou-ouro { 30% { transform: scale(1.3); color: #fff3a8; text-shadow: 0 0 10px var(--ouro); } }
@keyframes gastou-ouro { 30% { color: #ff8a80; transform: translateY(2px); } }
/* barras com brilho correndo */
.barra > span { overflow: hidden; }
.barra > span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-100%); animation: reflexo 3.2s ease-in-out infinite; }
/* missão pronta pulsa */
[data-missao] { animation: brilho-botao 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  #conteudo > *, .lista > .cartao, .lista > button, .aviso:not([hidden]), .abas button[aria-current="page"] .icone, .faixa[data-fundo],
  #ouro-topo, #lc-topo, .barra > span::after, [data-missao] { animation: none !important; }
}
img.tut-retrato { width: 64px; height: 64px; object-fit: contain; }

/* ---------- Itens: raridade, extras, encaixes, conjuntos e baús ---------- */
.peca { position: relative; }
.peca.raridade-incomum { border-color: color-mix(in srgb, var(--incomum) 55%, var(--borda)); }
.peca.raridade-raro { border-color: color-mix(in srgb, var(--raro) 65%, var(--borda)); box-shadow: 0 0 10px color-mix(in srgb, var(--raro) 25%, transparent); }
.peca.raridade-epico { border-color: var(--epico); box-shadow: 0 0 14px color-mix(in srgb, var(--epico) 35%, transparent); }
.peca.raridade-lendario { border-color: var(--lendario); box-shadow: 0 0 18px color-mix(in srgb, var(--lendario) 45%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--lendario) 12%, var(--painel)), var(--painel)); animation: lendaria-pulsa 2.6s ease-in-out infinite; }
@keyframes lendaria-pulsa { 50% { box-shadow: 0 0 26px color-mix(in srgb, var(--lendario) 65%, transparent); } }
/* Mítica (05/12): vermelho, pulsando mais forte que a Lendária */
.peca.raridade-mitico { border-color: var(--mitico); box-shadow: 0 0 20px color-mix(in srgb, var(--mitico) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--mitico) 14%, var(--painel)), var(--painel)); animation: mitica-pulsa 2s ease-in-out infinite; }
@keyframes mitica-pulsa { 50% { box-shadow: 0 0 32px color-mix(in srgb, var(--mitico) 75%, transparent); } }
.peca.marcada { outline: 3px solid #7a60ff; outline-offset: 2px; }
.marcar { position: absolute; top: 8px; right: 8px; }
.marcar input { width: 22px; height: 22px; accent-color: #7a60ff; }
.extra { font-size: 13px; color: #9ad8ff; }
.encaixes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.encaixe { font-size: 12px; padding: 3px 8px; border-radius: 99px; }
.encaixe.vazio { border: 1px dashed var(--borda); color: var(--texto-2); }
.encaixe.cheio { border: 1px solid #7a60ff; background: #251c45; color: #d7ccff; min-height: 0; }
.conjunto { margin-top: 4px; font-size: 12px; }
.conjuntos .conjunto-linha { display: flex; gap: 8px; padding: 4px 0; font-size: 13px; opacity: .7; }
.conjuntos .conjunto-linha.ativo { opacity: 1; color: var(--ouro); }
#barra-selecao { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 25;
  width: min(500px, calc(100vw - 16px)); display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 12px;
  background: #251c45; border: 2px solid #7a60ff; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); animation: aviso-entra .35s both; }
.bau-caiu { display: block; width: 100%; margin: 6px 0; border-color: #46c37b; animation: brilho-auto 1.6s ease-in-out infinite; }
/* abertura do baú */
.abertura-bau { position: fixed; inset: 0; z-index: 56; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(8, 6, 16, .86); padding: 16px; overflow-y: auto; }
.abertura-raios { position: absolute; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(rgba(107, 227, 122, .18) 0 9deg, transparent 9deg 20deg); animation: girar-raios 10s linear infinite; }
.abertura-bau.dourado .abertura-raios { background: repeating-conic-gradient(rgba(255, 222, 89, .22) 0 9deg, transparent 9deg 20deg); }
.abertura-bau.aberto .abertura-raios { opacity: 1; transition: opacity .4s; }
.abertura-bau.top-epico .abertura-raios { background: repeating-conic-gradient(rgba(180, 140, 255, .3) 0 9deg, transparent 9deg 20deg); }
.abertura-bau.top-lendario .abertura-raios { background: repeating-conic-gradient(rgba(255, 170, 40, .38) 0 9deg, transparent 9deg 20deg); }
.bau-grande { position: relative; font-size: 88px; line-height: 1; animation: bau-treme .45s ease-in-out infinite; }
.bau-grande span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 60px; }
@keyframes bau-treme { 25% { transform: rotate(-8deg) scale(1.03); } 75% { transform: rotate(8deg) scale(1.03); } }
.abertura-bau.aberto .bau-grande { animation: bau-abre .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes bau-abre { 40% { transform: scale(1.4); filter: brightness(2.5); } 100% { transform: scale(.55) translateY(-10px); opacity: .5; } }
.abertura-pecas { position: relative; display: grid; gap: 8px; width: min(420px, 100%); }
.peca-revelada { padding: 10px 12px; border-radius: 12px; border: 2px solid var(--borda); background: var(--painel);
  animation: peca-revela .55s cubic-bezier(.3, 1.5, .5, 1) both; display: grid; gap: 3px; }
.peca-revelada.sozinha { margin-bottom: 8px; }
@keyframes peca-revela { from { opacity: 0; transform: rotateY(90deg) scale(.8); } }
.peca-revelada.raridade-incomum { border-color: var(--incomum); }
.peca-revelada.raridade-raro { border-color: var(--raro); box-shadow: 0 0 14px color-mix(in srgb, var(--raro) 40%, transparent); }
.peca-revelada.raridade-epico { border-color: var(--epico); box-shadow: 0 0 20px color-mix(in srgb, var(--epico) 55%, transparent); }
.peca-revelada.raridade-mitico { border-color: var(--mitico); box-shadow: 0 0 34px color-mix(in srgb, var(--mitico) 75%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--mitico) 20%, var(--painel)), var(--painel)); }
.peca-revelada.raridade-lendario { border-color: var(--lendario); box-shadow: 0 0 28px color-mix(in srgb, var(--lendario) 70%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--lendario) 18%, var(--painel)), var(--painel)); }
.abertura-botoes { position: relative; display: flex; gap: 8px; }
.abertura-botoes[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .peca.raridade-lendario, .peca.raridade-mitico, .bau-grande, .abertura-bau.aberto .bau-grande, .abertura-raios, .peca-revelada, .bau-caiu { animation: none !important; }
}

/* ---------- Vila: embalo, estalagem, treino, conjuntos e código ---------- */
.faixa-vila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.faixa-vila #abrir-estalagem { margin-left: auto; }
.embalo { font: 700 14px var(--fonte-pixel); color: #ff9a3c; display: inline-flex; gap: 6px; align-items: baseline; animation: embalo-pulsa 1.6s ease-in-out infinite; }
.embalo small, .descansado small { font: 12px system-ui, sans-serif; color: var(--texto-2); }
@keyframes embalo-pulsa { 50% { text-shadow: 0 0 10px rgba(255, 138, 30, .8); } }
.descansado { font: 600 13px var(--fonte-pixel); color: #9ad8ff; }
.embalo-vitoria { color: #ff9a3c; font: 700 15px var(--fonte-pixel); animation: trofeu-entra .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.estalagem-topo { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.estalagem-fogo { font-size: 36px; animation: fogueira .9s ease-in-out infinite alternate; }
.treino-palco { position: relative; height: 150px; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 85%, rgba(255, 222, 89, .15), transparent 60%); border-radius: var(--raio); }
.boneco { font-size: 80px; line-height: 1; transform-origin: 50% 90%; }
.boneco.apanha { animation: boneco-apanha .25s ease-out; }
@keyframes boneco-apanha { 30% { transform: rotate(-12deg) scale(.95); filter: brightness(1.8); } 70% { transform: rotate(6deg); } }
#treino-numeros { position: absolute; inset: 0; pointer-events: none; }
#treino-numeros .numero-dano { top: 20%; }
.treino-numeros-finais { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; text-align: center; }
.treino-numeros-finais div { display: grid; background: var(--fundo); border-radius: 8px; padding: 6px; }
.treino-numeros-finais b { font: 700 18px var(--fonte-pixel); color: var(--ouro); }
.conjuntos-salvos { margin-bottom: 10px; }
.conjunto-salvo { padding: 4px 0; border-top: 1px solid var(--borda); }
.codigo-promo { margin-top: 12px; border-color: #7a60ff; }
#campo-codigo { text-transform: uppercase; letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .embalo, .embalo-vitoria, .estalagem-fogo, .boneco.apanha { animation: none; } }

/* ---------- Efeitos na luta, Vidente e estilos ---------- */
.efeitos-heroi { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 3; }
.efeito-selo { font-size: 18px; animation: flutua 1.4s ease-in-out infinite; filter: drop-shadow(0 2px 0 #000); }
.ator.com-veneno .respira { filter: hue-rotate(60deg) saturate(1.3); }
.ator.com-queimadura .respira { filter: sepia(.4) saturate(2) hue-rotate(-20deg); }
.ator.com-congelamento .respira { filter: hue-rotate(160deg) brightness(1.15) saturate(.7); animation-play-state: paused; }
.numero-dano.efeito-dano { color: #9be36b; font-size: 18px; }
.numero-dano.efeito-novo { color: #ffd36b; font-size: 16px; }
.vidente { border-color: #6b4bb8; background: linear-gradient(135deg, #1f1733, #14111f); }
.vidente.pronto { border-color: var(--ouro); animation: brilho-botao 2s ease-in-out infinite; }
.vidente-rosto { font-size: 40px; animation: flutua 3s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(155, 92, 255, .6)); }
.vidente-frase { font: italic 600 15px var(--fonte-pixel); color: #d7ccff; margin-top: 4px; }
.profecia-vitoria { color: #c4a7ff; font: 700 14px var(--fonte-pixel); animation: trofeu-entra .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.habilidade-explicacao { display: grid; gap: 3px; margin: 6px 0; font-size: 13px; color: var(--texto-2); }
.habilidade-explicacao > :first-child { color: var(--texto); }
.estilos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.estilo-op { display: grid; gap: 2px; padding: 8px 4px; font-size: 13px; }
.estilo-op small { display: grid; gap: 1px; font: 12px system-ui, sans-serif; color: var(--texto-2); }
.troca-gratis { margin: 4px 0; color: var(--ouro); font-size: 13px; }
.estilo-op.escolhido { border-color: var(--ouro); box-shadow: 0 0 10px rgba(255, 222, 89, .35); opacity: 1; }
#abrir-habilidades { margin-left: 6px; font-size: 11px; padding: 2px 8px; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .efeito-selo, .vidente.pronto, .vidente-rosto, .profecia-vitoria { animation: none; } }

/* ---------- Guerra de guildas, chefe da guilda e masmorra em grupo ---------- */
.extras-guilda { display: grid; gap: 8px; margin-top: 8px; }
.recado-guilda { font-size: 13px; color: var(--texto-2); margin-top: 2px; font-style: italic; }
.guerra { border-color: #b8584b; background: linear-gradient(135deg, #2a1515, #161112); }
.guerra.ativa { animation: brilho-botao 2.4s ease-in-out infinite; }
.placar-guerra { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 8px 0 4px; text-align: center; }
.placar-guerra .lado { display: grid; gap: 2px; }
.placar-guerra .lado .pixel { font-size: 22px; }
.placar-guerra .nos .pixel { color: #6be3a0; }
.placar-guerra .rival .pixel { color: #ff7b6b; }
.versus { font: 700 16px var(--fonte-pixel); color: var(--ouro); animation: flutua 1.6s ease-in-out infinite; }
.cabo-de-guerra { height: 10px; border-radius: 6px; background: #ff7b6b; overflow: hidden; border: 1px solid #000; }
.cabo-de-guerra span { display: block; height: 100%; background: #6be3a0; transition: width .8s cubic-bezier(.3, 1.4, .5, 1); }
.chefe-guilda { border-color: #8b4bb8; }
.chefe-guilda.vencido { opacity: .8; }
.masmorra { border-color: #4b7bb8; background: linear-gradient(135deg, #131b2a, #111318); }
.masmorra.vencida { border-color: var(--ouro); }
.masmorra-icone { font-size: 34px; animation: flutua 3s ease-in-out infinite; }
.salas-masmorra { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }
.sala-pino { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #3a4560; font: 700 13px var(--fonte-pixel); color: var(--texto-2); }
.sala-pino.feita { background: #2f6b4b; border-color: #6be3a0; color: #fff; }
.sala-pino.atual { border-color: var(--ouro); color: var(--ouro); animation: brilho-botao 1.6s ease-in-out infinite; }
.grupo-masmorra { margin: 6px 0; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .guerra.ativa, .versus, .masmorra-icone, .sala-pino.atual { animation: none; } }

/* ---------- Eventos do Reino ---------- */
.faixa-agenda { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; margin-bottom: 8px; padding: 10px 12px;
  border: 2px solid var(--borda, #3a3247); border-radius: 10px; background: linear-gradient(90deg, #241c33, #1a1524); font-size: 14px; }
.faixa-agenda > .sutil { margin-left: auto; white-space: nowrap; }
.faixa-agenda.ao-vivo { border-color: #ff6b6b; animation: brilho-botao 2s ease-in-out infinite; }
.ponto-vivo { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4dff88; box-shadow: 0 0 6px #4dff88; animation: pulsa-vivo 1.4s ease-in-out infinite; }
.faixa-agenda.ao-vivo .ponto-vivo { background: #ff5252; box-shadow: 0 0 6px #ff5252; }
@keyframes pulsa-vivo { 50% { opacity: .35; } }
.praca { cursor: pointer; background: #f1e3c4; color: #2b2116; border-color: #c9a86a; }
.praca .sutil { color: #6b5636; }
.praca-msg { font-size: 13px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-bioma { font-size: 12px; color: #2f6b3a; display: inline-flex; align-items: center; gap: 4px; }
.estandarte-linha { margin-top: 6px; font-size: 13px; color: #7a3b1d; }
.estandarte-linha.meu { color: #1d6b2e; font-weight: 700; }
.estandarte-vitoria { color: #ffb15c; font: 700 14px var(--fonte-pixel); }
.agenda-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #1d1828; }
.agenda-item.aberto { border: 2px solid #ff5252; cursor: pointer; }
.agenda-item.em_breve { cursor: pointer; }
.agenda-item.encerrado { opacity: .5; }
.agenda-hora { font: 700 15px var(--fonte-pixel); min-width: 52px; color: var(--ouro); }
.evento-icone { font-size: 34px; animation: flutua 3s ease-in-out infinite; }
.mare { border-color: #2b6cb0; background: linear-gradient(135deg, #10202e, #111318); }
.mare[data-fundo] { background: linear-gradient(90deg, rgba(10, 18, 28, .92), rgba(10, 18, 28, .62)), var(--fundo-arte) center 40% / cover; }
.mare.aberta[data-fundo] { background: linear-gradient(90deg, rgba(10, 18, 28, .85), rgba(10, 18, 28, .45)), var(--fundo-arte) center 40% / cover; animation: brilho-botao 2.4s ease-in-out infinite, mare-ondula 14s ease-in-out infinite alternate; }
@keyframes mare-ondula { from { background-position: 0 0, 40% 40%; } to { background-position: 0 0, 60% 46%; } }
.mare.aberta, .feras.aberta { animation: brilho-botao 2.4s ease-in-out infinite; }
.feras { border-color: #b8584b; background: linear-gradient(135deg, #2a1712, #151112); }
.insignias { border-color: #b8944b; }
.insignias-linha { display: flex; gap: 6px; justify-content: center; margin: 8px 0; font-size: 22px; }
.insignia-selo { filter: grayscale(1) brightness(.5); }
.insignia-selo.livre { filter: grayscale(.4); }
.insignia-selo.ganha { filter: none; animation: flutua 2.6s ease-in-out infinite; }
.premio-mare { color: var(--ouro); font-size: 13px; }
.poder-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.poder-numero { font-size: 18px; color: var(--ouro); }
.buffs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.buff { font-size: 13px; padding: 6px 10px; min-height: 40px; border-radius: 999px; background: #2a2238; border: 1px solid #4b3f63; }
.buffs-dica { margin: 6px 0 0; font-size: 12px; }
.buff-aberto { display: grid; gap: 8px; }
.buff-aberto p { margin: 0; }
.buff-aberto .pixel { font-size: 18px; }
.buff-aberto .bonus-titulo { font-size: 14px; }
.arvore-topo { margin-bottom: 8px; }
.por-ponto { margin-top: 4px; font-size: 13px; color: #8fe3a0; }
.efeito-ponto { white-space: nowrap; margin-right: 8px; }
.limite-atributo { margin-top: 4px; font-size: 13px; color: var(--ouro); }
/* fica grudada embaixo da janela: dá para ver o resultado sem sair dos botões + e − */
.previa-atributos { position: sticky; bottom: 0; z-index: 2; margin: 8px 0; border-color: var(--ouro); box-shadow: 0 -6px 16px rgba(0, 0, 0, .55); }
.previa-linha { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-top: 4px; }
.previa-linha b { color: #8fe3a0; }
.previa-pecas { margin-top: 6px; font-size: 13px; color: var(--ouro); }
.xp-luta .barra { height: 8px; }
button.pequeno[data-ir-missao] { min-width: 44px; min-height: 44px; }
.bonus-forja { margin-top: 2px; font-size: 13px; color: var(--ouro); }
.aviso-tier { margin-bottom: 8px; border-color: var(--ouro); }
.aviso-tier .sutil { margin-top: 4px; }
.precos-pocao { flex-direction: column; flex-wrap: nowrap; }
.escolher-qtd { margin: 6px 0; gap: 8px; }
.escolher-qtd button { min-width: 52px; min-height: 48px; font-size: 20px; }
.escolher-qtd input { min-width: 0; text-align: center; font-size: 20px; }
.atalhos-qtd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.atalhos-qtd button { min-height: 44px; }
.total-pocao { display: flex; justify-content: space-between; margin-top: 12px; font-size: 18px; }
.total-pocao b { color: var(--ouro); }
.loja-tenho { margin: 2px 0; font-size: 13px; color: #8fe3a0; }
.atributo-linha { display: flex; align-items: center; gap: 6px; }
.atributo-linha .cresce { flex: 1; min-width: 0; }
.atributo-linha.afinidade { border-color: var(--ouro); }
.atributo-valor { min-width: 58px; text-align: right; }
.atributo-valor .mais { color: #6be3a0; }
.estrelas { color: var(--ouro); letter-spacing: 1px; font-size: 12px; }
.coroa-nome { margin-left: 3px; font-size: .9em; filter: drop-shadow(0 0 3px rgba(255, 210, 80, .7)); }
.tabela-passe { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.tabela-passe th, .tabela-passe td { padding: 5px 4px; border-bottom: 1px solid #3a3247; text-align: center; }
.tabela-passe td:first-child { text-align: left; }
.renovacao-fiel { color: #6be3a0; }
@media (prefers-reduced-motion: reduce) { .faixa-agenda.ao-vivo, .ponto-vivo, .evento-icone, .mare.aberta, .feras.aberta, .insignia-selo.ganha { animation: none; } }

/* ---------- Masmorra em grupo (palco animado) ---------- */
.mm-grupo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.mm-heroi { text-align: center; padding: 6px 2px; border-radius: 10px; background: #1b2030; border: 2px solid #33405e; animation: mm-entra .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.mm-heroi.lider { border-color: var(--ouro); }
.mm-heroi.vaga { border-style: dashed; opacity: .55; animation: mm-vaga 1.8s ease-in-out infinite; }
.mm-avatar { width: 44px; height: 44px; margin: 0 auto; display: grid; place-items: center; font: 700 20px var(--fonte-pixel); }
.mm-avatar .avatar { width: 44px; height: 44px; object-fit: contain; animation: respira 2.4s ease-in-out infinite; }
.mm-nome { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-nivel { font-size: 11px; }
.mm-espera { text-align: center; }
.sala-trilha { width: 18px; height: 3px; align-self: center; background: #3a4560; border-radius: 2px; }
.mm-palco { position: relative; overflow: hidden; margin: 8px 0; padding: 10px; border-radius: 12px; min-height: 210px; text-align: center;
  background: radial-gradient(circle at 50% 70%, rgba(80, 40, 120, .35), rgba(8, 8, 14, .85)), #0d0d16; border: 2px solid #3a3050; }
.mm-palco[data-fundo] { background-image: linear-gradient(rgba(8, 8, 14, .45), rgba(8, 8, 14, .8)), var(--fundo-arte); background-size: cover; background-position: center; }
.mm-sala-nome { font-size: 15px; text-shadow: 0 2px 0 #000; }
.mm-furia { color: #ff5a3c; animation: pulsa-vivo .8s ease-in-out infinite; }
.mm-monstro { height: 120px; display: grid; place-items: center; font-size: 64px; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .5)); }
.mm-monstro .monstro { max-height: 120px; max-width: 70%; image-rendering: pixelated; }
.mm-monstro.tier-chefe .monstro { max-height: 140px; }
.mm-monstro.apanha { animation: tremer .35s both; }
.mm-monstro.apanha-forte { animation: tremer-forte .45s both; }
.mm-monstro.apanha .respira, .mm-monstro.apanha-forte .respira { filter: brightness(2.2) saturate(.3); }
.mm-monstro.caiu { animation: mm-cai .9s ease-in forwards; }
.mm-monstro-nome { font-size: 13px; color: #e8d9ff; text-shadow: 0 1px 0 #000; }
.mm-vida { max-width: 300px; margin: 6px auto 0; }
.mm-vida .barra span { transition: width .3s ease-out; }
.masmorra.em-furia .mm-palco { border-color: #ff5a3c; box-shadow: 0 0 18px rgba(255, 90, 60, .45) inset; }
.mm-palco.tremer-palco { animation: tremer-tela .3s both; }
.mm-numero { position: absolute; top: 40%; transform: translateX(-50%); font: 700 20px var(--fonte-pixel); color: #fff; text-shadow: 0 2px 0 #000, 0 0 6px #000;
  pointer-events: none; animation: mm-sobe 1.1s ease-out forwards; z-index: 3; white-space: nowrap; }
.mm-numero.critico { color: #ffd84d; font-size: 26px; }
.mm-numero.sofrido { color: #ff7b6b; font-size: 15px; top: 70%; }
.mm-numero.esquiva { color: #8fd3ff; font-size: 15px; top: 70%; }
.mm-faixa { position: absolute; inset: 35% 6% auto; padding: 10px; border-radius: 10px; z-index: 4; font: 700 20px var(--fonte-pixel);
  background: rgba(10, 10, 20, .88); border: 2px solid var(--ouro); color: var(--ouro); animation: trofeu-entra .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.mm-faixa small { display: block; margin-top: 4px; font: 13px system-ui, sans-serif; color: #f1e7ff; }
.mm-faixa.furia { border-color: #ff5a3c; color: #ff7b5c; }
.mm-placar { display: grid; gap: 4px; margin-bottom: 8px; }
.mm-linha { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: #181c28; font-size: 13px; }
.mm-linha.eu { border: 1px solid var(--ouro); }
.mm-linha.levou { animation: mm-levou .4s both; }
.mm-linha .avatar.mini { width: 24px; height: 24px; object-fit: contain; }
.mm-pos { min-width: 18px; text-align: center; }
.mm-barra-dano { height: 5px; border-radius: 3px; background: #2a2f40; margin-top: 2px; overflow: hidden; }
.mm-barra-dano span { display: block; height: 100%; background: linear-gradient(90deg, #ff9f43, #ffd84d); transition: width .6s; }
.mm-diario { margin-top: 8px; display: grid; gap: 2px; font-size: 12px; color: var(--texto-2); }
.mm-diario .novo { color: #f1e7ff; animation: mm-entra .5s both; }
.mm-aberta { padding: 8px; }
@keyframes mm-entra { from { opacity: 0; transform: translateY(6px) scale(.92); } }
@keyframes mm-vaga { 50% { opacity: .3; } }
@keyframes mm-sobe { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
@keyframes mm-cai { 30% { transform: translateY(-8px) rotate(-6deg); } 100% { transform: translateY(40px) rotate(18deg) scale(.6); opacity: 0; } }
@keyframes mm-levou { 30% { background: #5a1f24; transform: translateX(-4px); } 60% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .mm-heroi, .mm-heroi.vaga, .mm-avatar .avatar, .mm-furia, .mm-numero, .mm-faixa, .mm-diario .novo { animation: none; } }

/* ícones próprios (arte/icones): do tamanho do texto, maiores nos cartões */
.icone-arte { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -0.25em; image-rendering: pixelated; }
.evento-icone .icone-arte, .masmorra-icone .icone-arte, .vidente-rosto .icone-arte { width: 44px; height: 44px; }
.insignia-selo .icone-arte { width: 28px; height: 28px; }
.boneco .icone-arte { width: 96px; height: 96px; }
.coroa-nome .icone-arte { width: 1em; height: 1em; }
.agenda-arte { width: 22px; height: 22px; }

.mm-reforco { margin-bottom: 8px; }
.mm-abandonar { display: block; margin: 8px auto 0; }

/* ---------- Espólios: arcas, gladiador, almas, cofre, pacto, item em destaque ---------- */
.arcas-coliseu { border-color: #b8944b; background: linear-gradient(135deg, #241b12, #15110d); }
.arcas-grade { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0; }
.arca-slot { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; min-height: 92px; border-radius: 10px;
  border: 2px solid #4a3b26; background: #1c160f; font-size: 11px; color: var(--texto); }
.arca-slot .espolio-arte, .arca-arte .icone-arte { width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; }
.arca-arte { font-size: 32px; line-height: 46px; }
.arca-nome { font-size: 10px; text-align: center; line-height: 1.1; }
.arca-tempo { font-size: 12px; color: var(--ouro); }
.arca-slot.vazia { border-style: dashed; opacity: .5; }
.arca-slot.travada { border-style: dashed; opacity: .35; font-size: 24px; place-content: center; }
.arca-slot.pronta { border-color: var(--ouro); cursor: pointer; animation: arca-pronta 1.2s ease-in-out infinite; box-shadow: 0 0 14px rgba(255, 210, 80, .45); }
.arca-slot.pronta .arca-arte { animation: tremer .6s ease-in-out infinite; }
.arca-slot.prata { border-color: #9aa4b8; } .arca-slot.ouro { border-color: #e6b84a; } .arca-slot.lendaria { border-color: #c48bff; }
.arca-slot.lendaria .arca-arte { filter: drop-shadow(0 0 8px #c48bff); }
@keyframes arca-pronta { 50% { transform: translateY(-3px) scale(1.04); } }
.arca-ganha { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 8px 0; animation: trofeu-entra .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.arca-ganha .espolio-arte { width: 56px; height: 56px; object-fit: contain; }
.abertura-espolio .espolio-arca { font-size: 96px; }
.abertura-espolio .espolio-arte { width: 160px; height: 160px; object-fit: contain; image-rendering: pixelated; }
.espolio-titulo { text-align: center; font-size: 20px; margin: 6px 0; color: var(--ouro); text-shadow: 0 2px 0 #000; }
.espolio-lista { display: grid; gap: 6px; max-width: 340px; margin: 0 auto; }
.espolio-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(20, 16, 30, .9);
  border: 1px solid #4b3f63; animation: trofeu-entra .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.espolio-item.raro { border-color: var(--ouro); box-shadow: 0 0 12px rgba(255, 210, 80, .35); }
.espolio-icone { font-size: 24px; }
.abertura-espolio.arca-lendaria .abertura-raios { filter: hue-rotate(220deg) saturate(1.6); }
.gladiador-topo { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.gladiador-arte { width: 84px; height: 84px; object-fit: contain; font-size: 52px; }
.oferta-gladiador .oferta-icone { font-size: 28px; }
.oferta-gladiador .oferta-icone .icone-arte { width: 40px; height: 40px; }
.oferta-gladiador.pode { border-color: var(--ouro); }
.almas-encaixes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.alma-encaixe { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; min-height: 150px; text-align: center;
  border: 2px solid #4b3f63; background: radial-gradient(circle at 50% 35%, #2c2242, #14101e); }
.alma-encaixe .alma-arte { width: 72px; height: 72px; object-fit: contain; font-size: 46px; animation: flutua 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(170, 120, 255, .7)); }
.alma-encaixe.grau-1 { border-color: #5aa0ff; } .alma-encaixe.grau-2 { border-color: #c48bff; box-shadow: 0 0 16px rgba(196, 139, 255, .4); }
.alma-encaixe.vazio { border-style: dashed; place-content: center; }
.alma-orbe { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, rgba(170, 120, 255, .5), transparent 70%); animation: pulsa-vivo 2s ease-in-out infinite; }
.alma-encaixe.travado { opacity: .45; place-content: center; font-size: 28px; }
.alma-guardada .alma-mini { font-size: 26px; } .alma-guardada .icone-arte { width: 38px; height: 38px; }
.alma-guardada.grau-1 { border-color: #5aa0ff; } .alma-guardada.grau-2 { border-color: #c48bff; }
.alma-guardada.fundindo { animation: tremer-forte .3s linear infinite; filter: brightness(1.8); }
.cofre-semanal { border-color: #6b4bb8; }
.cofre-semanal.pronto { border-color: var(--ouro); animation: brilho-botao 2s ease-in-out infinite; }
.cofre-arte { font-size: 40px; } .cofre-arte .espolio-arte { width: 56px; height: 56px; object-fit: contain; }
.cofre-semanal.pronto .cofre-arte { animation: tremer .8s ease-in-out infinite; }
.cofre-conteudo { font-size: 11px; }
.pacto-cartao { margin-top: 12px; border-color: #4b8bb8; }
.pacto-vazio { text-align: center; }
.pacto-codigo { text-align: center; margin-bottom: 8px; }
.codigo-grande { font-size: 32px; letter-spacing: 6px; color: var(--ouro); cursor: pointer; animation: trofeu-entra .6s both; }
.pacto-lados { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: stretch; margin-bottom: 8px; }
.pacto-lado { padding: 8px; border-radius: 10px; border: 2px solid #3a3247; background: #1b1626; min-height: 90px; transition: border-color .3s, box-shadow .3s; }
.pacto-lado ul { margin: 6px 0 0; padding-left: 16px; font-size: 13px; }
.pacto-lado.ok { border-color: #4dd68a; box-shadow: 0 0 14px rgba(77, 214, 138, .35); }
.pacto-seta { align-self: center; font-size: 24px; animation: flutua 2s ease-in-out infinite; }
.pacto-item { font-size: 13px; }
.mm-senha { margin-top: 4px; font-size: 13px; color: #8fd3ff; }
.item-destaque { position: relative; display: grid; justify-items: center; margin: 6px auto 8px; padding: 10px; overflow: hidden; border-radius: 14px; max-width: 260px; }
.item-raios { position: absolute; inset: -40%; background: repeating-conic-gradient(rgba(255, 210, 80, .22) 0 10deg, transparent 10deg 20deg);
  animation: girar 8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.item-arte { position: relative; font-size: 72px; animation: trofeu-entra .8s cubic-bezier(.3, 1.6, .5, 1) both; }
.item-arte .item-grande { width: 120px; height: 120px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 12px rgba(255, 210, 80, .6)); }
.item-nome { position: relative; color: var(--ouro); text-shadow: 0 2px 0 #000; text-align: center; }
@media (max-width: 420px) { .arcas-grade { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .arca-slot.pronta, .arca-slot.pronta .arca-arte, .alma-encaixe .alma-arte, .alma-orbe, .cofre-semanal.pronto,
  .cofre-semanal.pronto .cofre-arte, .pacto-seta, .item-raios, .item-arte, .codigo-grande { animation: none; } }
@media (prefers-reduced-motion: reduce) { .mare.aberta[data-fundo] { animation: none; } }

/* Fundo da página no jogo: cenário do bioma atual, escurecido nas bordas para os cartões continuarem legíveis */
body:has(.hub), body:has(.tela-luta) { background: transparent; }
#fundo-pagina { position: fixed; inset: -4%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  background: radial-gradient(ellipse at 50% 35%, rgba(20, 18, 28, .45), rgba(20, 18, 28, .82) 70%, rgba(20, 18, 28, .95)),
    var(--fundo-arte) center / cover no-repeat;
  image-rendering: pixelated; animation: fundo-pagina-anda 60s ease-in-out infinite alternate; }
body:has(.hub) #fundo-pagina.pronto, body:has(.tela-luta) #fundo-pagina.pronto { opacity: 1; }
@keyframes fundo-pagina-anda { from { transform: scale(1) translateX(-1.5%); } to { transform: scale(1.06) translateX(1.5%); } }
@media (prefers-reduced-motion: reduce) { #fundo-pagina { animation: none; transition: none; } }

/* Selos da equipe no chat e na Praça: ADM dourado, CM rosa, MOD azul, TUTOR verde */
.selo-adm { background: var(--ouro); color: #14121c; box-shadow: 0 0 6px rgba(242, 201, 76, .55); }
.selo-cm { background: #ff6fb5; color: #1c0f18; box-shadow: 0 0 6px rgba(255, 111, 181, .5); }
.selo-moderador, .selo-mod { background: #4ea1ff; color: #0c1626; }
.selo-tutor { background: #46c37b; color: #0c1a12; }
.praca-msg .selo-dono { vertical-align: 1px; }
.atalho-equipe { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--texto);
  background: linear-gradient(135deg, #2a2440, #3b2a6b); border: 1px solid #6b5bd6; border-radius: var(--raio); padding: 10px; font: 600 14px var(--fonte-pixel); }
.link-equipe { color: #c9b8ff; }

/* Masmorra: prazo para fechar sozinha */
.mm-prazo.urgente { color: #f5c46b; }

/* ---------- Feitiços: auras animadas, magias dos chefes e Erva Purificadora ---------- */
.efeitos-monstro { top: -10px; }
.efeito-selo { position: relative; display: inline-flex; align-items: flex-end; }
.efeito-selo b { font: 700 11px system-ui, sans-serif; color: #fff; background: rgba(0, 0, 0, .65); border-radius: 6px; padding: 0 3px; margin-left: -4px;
  line-height: 1.2; }
.aura-efeito { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.aura-efeito i { position: absolute; font-style: normal; left: var(--x); }
/* veneno: bolhas verdes subindo */
.aura-veneno i { bottom: 18%; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d7ffb8, #5fcf3a 60%, #2f7d1c);
  animation: bolha-sobe 1.6s ease-in infinite; animation-delay: calc(var(--i) * -.32s); }
@keyframes bolha-sobe { 0% { transform: translateY(0) scale(.4); opacity: 0; } 20% { opacity: .95; } 100% { transform: translateY(-70px) scale(1.1); opacity: 0; } }
/* queimadura: chamas tremulando aos pés */
.aura-queimadura i { bottom: 10%; width: 12px; height: 18px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff3a6, #ffb13d 45%, #ff4d1f 80%);
  filter: blur(.3px); animation: chama 0.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); transform-origin: 50% 100%; }
@keyframes chama { from { transform: scaleY(.7) translateY(0); opacity: .75; } to { transform: scaleY(1.35) translateY(-8px); opacity: 1; } }
/* congelamento: cristais de gelo girando devagar */
.aura-congelamento i { top: calc(20% + var(--i) * 15%); color: #c9f2ff; font-size: 14px; text-shadow: 0 0 6px #8fdcff;
  animation: cristal 2.6s linear infinite; animation-delay: calc(var(--i) * -.6s); }
@keyframes cristal { 0% { transform: rotate(0) scale(.8); opacity: .4; } 50% { opacity: 1; transform: rotate(180deg) scale(1.15); } 100% { transform: rotate(360deg) scale(.8); opacity: .4; } }
/* sangramento: gotas pingando */
.aura-sangramento i { top: 35%; width: 5px; height: 8px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: #ff3b4e;
  animation: pinga 1.2s ease-in infinite; animation-delay: calc(var(--i) * -.3s); }
@keyframes pinga { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }
/* sono: Zzz flutuando */
.aura-sono i { top: 5%; left: calc(55% + var(--i) * 8%); color: #d9ceff; font: 16px var(--fonte-pixel); text-shadow: 0 0 6px #8c74ff;
  animation: zzz 2.1s ease-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes zzz { 0% { transform: translate(0, 10px) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(18px, -34px) scale(1.2); opacity: 0; } }
/* atordoamento: estrelinhas girando em volta da cabeça */
.aura-atordoamento i { top: 4%; left: 50%; color: #ffe066; font-size: 13px; text-shadow: 0 0 6px #ffb800;
  animation: orbita 1.1s linear infinite; animation-delay: calc(var(--i) * -1.1s / var(--n)); }
@keyframes orbita { from { transform: rotate(0) translateX(26px) rotate(0) scaleY(.6); } to { transform: rotate(360deg) translateX(26px) rotate(-360deg) scaleY(.6); } }
/* cegueira: névoa escura nos olhos */
.aura-cegueira i { top: 18%; left: calc(25% + var(--i) * 18%); width: 34px; height: 16px; border-radius: 50%; background: rgba(28, 16, 48, .85);
  filter: blur(4px); animation: nevoa 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.8s); }
@keyframes nevoa { from { transform: translateX(-6px) scale(.9); opacity: .6; } to { transform: translateX(6px) scale(1.2); opacity: 1; } }
/* maldição: caveiras roxas rodando */
.aura-maldicao i { top: 30%; left: 50%; font-size: 12px; filter: drop-shadow(0 0 5px #b26cff);
  animation: orbita-larga 3s linear infinite; animation-delay: calc(var(--i) * -3s / var(--n)); }
@keyframes orbita-larga { from { transform: rotate(0) translateX(40px) rotate(0); opacity: .9; } to { transform: rotate(360deg) translateX(40px) rotate(-360deg); opacity: .9; } }
.ator.com-maldicao .respira { filter: drop-shadow(0 0 10px rgba(178, 108, 255, .8)); }
/* fraqueza: pétalas murchas caindo e o corpo desbotado */
.aura-fraqueza i { top: 10%; font-size: 11px; animation: petala 2s ease-in infinite; animation-delay: calc(var(--i) * -.5s); }
@keyframes petala { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(12px, 70px) rotate(160deg); opacity: 0; } }
.ator.com-fraqueza .respira { filter: grayscale(.55) brightness(.9); }
.ator.com-sono .respira { animation-duration: 3.4s; }
.ator.cochilando .corpo { animation: cochilo 1.4s ease-in-out; }
@keyframes cochilo { 30%, 70% { transform: rotate(-8deg) translateY(4px); } }
.ator.com-atordoamento .corpo { animation: zonzo .9s ease-in-out infinite; }
@keyframes zonzo { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
/* chefe preparando a magia: aura pulsando na cor da magia */
.ator.preparando-magia .respira { animation: carrega-magia .7s ease-in-out infinite alternate; }
@keyframes carrega-magia { from { filter: drop-shadow(0 0 4px rgba(255, 210, 90, .6)); transform: scale(1); }
  to { filter: drop-shadow(0 0 18px rgba(255, 120, 60, 1)) brightness(1.25); transform: scale(1.06); } }
.magia-aviso { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; padding: 8px 10px; border-radius: var(--raio);
  border: 2px solid var(--cor); background: linear-gradient(90deg, color-mix(in srgb, var(--cor) 28%, transparent), rgba(20, 18, 28, .85));
  animation: aviso-pisca 0.9s ease-in-out infinite alternate; }
.magia-aviso b { font: 18px var(--fonte-pixel); color: var(--cor); letter-spacing: .5px; }
.magia-icone { font-size: 30px; animation: flutua 1s ease-in-out infinite; filter: drop-shadow(0 0 8px var(--cor)); }
@keyframes aviso-pisca { from { box-shadow: 0 0 0 0 transparent; } to { box-shadow: 0 0 18px 2px var(--cor); } }
.magia-conhecida { margin: 6px 0 0; }
.magia-nome { position: absolute; left: 50%; top: 34%; z-index: 6; transform: translate(-50%, -50%); width: 92%; text-align: center; pointer-events: none;
  font: clamp(20px, 7.5vw, 34px)/1.05 var(--fonte-pixel); color: #fff; text-shadow: 0 0 10px var(--cor), 0 0 24px var(--cor), 0 3px 0 #000; letter-spacing: 2px;
  animation: magia-nome 1.5s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.magia-nome span { display: inline-block; animation: flutua .6s ease-in-out infinite; }
@keyframes magia-nome { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  75% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -70%) scale(1); opacity: 0; } }
.fx.clarao-magia { position: absolute; inset: 0; left: 0 !important; top: 0 !important; width: 100%; height: 100%; border-radius: var(--raio);
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--cor) 70%, transparent), transparent 70%); animation: clarao-magia .7s ease-out forwards; }
@keyframes clarao-magia { from { opacity: .95; } to { opacity: 0; } }
.fx.magia-voo { position: absolute; font-size: 34px; font-style: normal; filter: drop-shadow(0 0 12px var(--cor)); z-index: 5; }
.fx.estouro-fx { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cor); font-style: normal; font-size: 13px;
  box-shadow: 0 0 8px var(--cor); animation: estouro .65s ease-out forwards; }
@keyframes estouro { from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); opacity: 0; } }
.fx.purifica-fx { position: absolute; color: #c9ff9e; font-style: normal; font-size: 14px; text-shadow: 0 0 8px #7ee05a;
  animation: purifica 1.1s ease-out forwards; }
@keyframes purifica { from { transform: translate(-50%, 0) scale(.6); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-50%, -80px) scale(1.2); opacity: 0; } }
.numero-dano.aviso-magia { color: #ffb347; font-size: 15px; }
.numero-dano.magia { font-size: 26px; color: #ff6b5b; text-shadow: 0 0 10px #ff3b1f, 0 2px 0 #000; }
.numero-dano.efeito-veneno { color: #9be36b; } .numero-dano.efeito-queimadura { color: #ffb36b; }
.numero-dano.efeito-sangramento { color: #ff6b7b; } .numero-dano.efeito-sono { color: #cbbcff; }
.numero-dano.efeito-atordoamento { color: #ffe066; } .numero-dano.efeito-maldicao { color: #d2a6ff; }
.numero-dano.efeito-cegueira { color: #a89cc8; } .numero-dano.efeito-fraqueza { color: #e0a9a9; } .numero-dano.efeito-congelamento { color: #aee8ff; }
.erva-pronta { border-color: #7ee05a !important; }
@media (prefers-reduced-motion: reduce) {
  .aura-efeito i, .ator.preparando-magia .respira, .magia-aviso, .magia-icone, .magia-nome, .ator.com-atordoamento .corpo,
  .ator.cochilando .corpo { animation: none; }
}

/* ================= Jogo vivo ================= */
/* --- Equipar: herói no centro com as peças em volta --- */
.boneco { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; align-items: center; padding: 12px 10px; position: relative; overflow: hidden;
  background-size: cover; background-position: center; }
.boneco[data-fundo] { background-image: linear-gradient(rgba(20, 18, 28, .72), rgba(20, 18, 28, .9)), var(--fundo-arte); }
.boneco-coluna { display: grid; gap: 8px; }
.boneco-slot { position: relative; display: grid; place-items: center; gap: 0; aspect-ratio: 1; padding: 4px; border-radius: 12px;
  background: rgba(20, 18, 28, .75); border: 2px solid var(--borda); color: var(--texto); cursor: pointer; min-height: 0;
  transition: transform .15s; animation: slot-entra .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.boneco-coluna:last-child .boneco-slot { animation-delay: .1s; }
.boneco-slot:hover { transform: translateY(-2px) scale(1.04); }
.boneco-slot small { font: 11px var(--fonte-pixel); color: var(--texto-2); }
.boneco-slot.vazio { border-style: dashed; opacity: .55; cursor: pointer; }
.boneco-icone { font-size: 28px; line-height: 1; filter: drop-shadow(0 2px 0 #000); }
.boneco-forja { position: absolute; top: 2px; right: 4px; font: 13px var(--fonte-pixel); color: var(--ouro); text-shadow: 0 1px 0 #000; }
.boneco-melhor { position: absolute; top: 2px; left: 4px; font-style: normal; color: #6bff9b; font-weight: 700; animation: seta-pula 1s ease-in-out infinite; }
.boneco-slot.raridade-incomum { border-color: var(--incomum); }
.boneco-slot.raridade-raro { border-color: var(--raro); box-shadow: 0 0 10px rgba(78, 161, 255, .55); }
.boneco-slot.raridade-epico { border-color: var(--epico); animation: slot-entra .5s both, slot-epico 2.2s ease-in-out infinite; }
.boneco-slot.raridade-lendario { border-color: var(--lendario); animation: slot-entra .5s both, slot-lendario 1.6s ease-in-out infinite; }
.boneco-slot.raridade-mitico { border-color: var(--mitico); animation: slot-entra .5s both, slot-mitico 1.4s ease-in-out infinite; }
@keyframes slot-mitico { 50% { box-shadow: 0 0 22px rgba(255, 59, 59, .95), inset 0 0 10px rgba(255, 140, 120, .4); } }
.boneco-slot.raridade-lendario::after { content: "✦"; position: absolute; color: #ffe08a; font-size: 12px; animation: faisca-slot 1.8s linear infinite; }
@keyframes slot-entra { from { transform: scale(.4); opacity: 0; } }
@keyframes slot-epico { 50% { box-shadow: 0 0 16px rgba(178, 108, 255, .85); } }
@keyframes slot-lendario { 50% { box-shadow: 0 0 20px rgba(242, 163, 60, .95), inset 0 0 10px rgba(255, 220, 120, .4); } }
@keyframes faisca-slot { 0% { transform: translate(-22px, -22px) scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(22px, 22px) scale(1); opacity: 0; } }
.boneco-heroi { position: relative; display: grid; justify-items: center; text-align: center; }
.boneco-aura { position: absolute; top: 8%; width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 108, 255, .45), transparent 68%); animation: pulsar 2.6s ease-in-out infinite; }
.heroi-boneco { width: 100%; max-width: 150px; image-rendering: pixelated; position: relative; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .6)); }
.boneco-nome { margin-top: 4px; font-size: 16px; }
.peca-destacada { animation: peca-destaque 1.4s ease-out; }
@keyframes peca-destaque { 0%, 40% { box-shadow: 0 0 0 3px var(--ouro), 0 0 22px rgba(242, 201, 76, .7); } }

/* --- Mochila em grade --- */
.grade-mochila { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.tile-item { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 6px 4px 4px; border-radius: 12px; min-height: 0;
  background: linear-gradient(160deg, #2a2440, #1c1829); border: 2px solid var(--borda); color: var(--texto); cursor: pointer;
  animation: tile-entra .35s ease-out both; animation-delay: calc(min(var(--k), 30) * 18ms); transition: transform .15s; }
.tile-item:hover { transform: translateY(-2px); }
.tile-item.selecionado { border-color: var(--ouro); box-shadow: 0 0 0 2px rgba(242, 201, 76, .35), 0 0 14px rgba(242, 201, 76, .45); transform: scale(1.05); }
.tile-icone { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 0 #000); }
.tile-qtd { position: absolute; top: 3px; right: 5px; font: 700 11px system-ui, sans-serif; color: #fff; background: rgba(0, 0, 0, .6); border-radius: 6px; padding: 0 4px; }
.tile-nome { font-size: 10px; color: var(--texto-2); width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
@keyframes tile-entra { from { transform: translateY(8px) scale(.85); opacity: 0; } }
.tile-item.tipo-bau { border-color: #c9a227; animation: tile-entra .35s both, bau-treme 2.6s ease-in-out 1s infinite; }
.tile-item.tipo-pocao { border-color: #b84a5a; }
.tile-item.tipo-runa { border-color: var(--raro); box-shadow: inset 0 0 10px rgba(78, 161, 255, .3); }
.tile-item.tipo-ovo { border-color: var(--epico); }
.tile-item.tipo-alma { border-color: #8f7bff; box-shadow: inset 0 0 12px rgba(143, 123, 255, .4); }
.tile-item.tipo-pergaminho { border-color: #6aa7ff; }
.mochila-detalhe .detalhe-item { margin-top: 10px; border-color: var(--ouro); animation: detalhe-entra .25s ease-out; }
@keyframes detalhe-entra { from { opacity: 0; transform: translateY(-6px); } }
.detalhe-icone { font-size: 34px; }
.vazio-vivo { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 8px; }
.vazio-arte { font-size: 56px; animation: flutua 2.4s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }

/* --- Coliseu: retratos e VS --- */
.oponente { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--borda); }
.retrato { display: grid; justify-items: center; width: 46px; }
.retrato small { font-size: 10px; color: var(--texto-2); }
.retrato-img { width: 42px; height: 42px; object-fit: contain; image-rendering: pixelated; border-radius: 10px; background: rgba(255, 255, 255, .05);
  border: 2px solid #c0392b; }
.retrato.eu .retrato-img { border-color: #2e6fd1; }
.vs { font: 20px var(--fonte-pixel); color: var(--ouro); text-shadow: 0 0 8px rgba(255, 120, 40, .8), 0 2px 0 #000; animation: vs-pulsa 1.2s ease-in-out infinite; }
@keyframes vs-pulsa { 50% { transform: scale(1.18) rotate(-4deg); } }

/* --- Seu poder com ícones --- */
.grade-poder { gap: 12px; }
.poder-stat { display: flex; gap: 8px; align-items: flex-start; }
.poder-stat-icone { font-size: 22px; width: 28px; text-align: center; filter: drop-shadow(0 2px 0 #000); }
.mini-barra { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 3px; overflow: hidden; }
.mini-barra span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8b6cff, #c4a7ff);
  animation: barra-cresce .9s cubic-bezier(.2, .9, .3, 1) both; transform-origin: left; }
.poder-subiu { animation: poder-sobe .8s ease-out; color: #9bffb8; }
@keyframes poder-sobe { 30% { transform: scale(1.18); text-shadow: 0 0 14px rgba(120, 255, 160, .9); } }

/* --- Barras vivas: crescem ao aparecer e um brilho passa por elas --- */
#conteudo .barra > span { animation: barra-cresce .9s cubic-bezier(.2, .9, .3, 1) both; transform-origin: left; }
@keyframes barra-cresce { from { transform: scaleX(0); } }

/* --- Missões: carimbo de concluída --- */
.missao { position: relative; overflow: hidden; }
.missao-concluida { border-color: var(--ouro); background: linear-gradient(135deg, rgba(242, 201, 76, .16), var(--painel)); animation: brilho-botao 2.2s ease-in-out infinite; }
.missao-feita { opacity: .72; }
.carimbo { position: absolute; right: 96px; top: 14px; transform: rotate(-12deg); font: 16px var(--fonte-pixel); color: var(--ouro);
  border: 3px solid var(--ouro); border-radius: 8px; padding: 0 8px; letter-spacing: 1px; pointer-events: none; opacity: .9;
  animation: carimbar .55s cubic-bezier(.2, 1.6, .4, 1) both; text-shadow: 0 0 8px rgba(242, 201, 76, .6); }
.carimbo.feito { right: 74px; color: #6bd18f; border-color: #6bd18f; text-shadow: none; opacity: .55; animation: none; }
@keyframes carimbar { from { transform: rotate(-12deg) scale(2.6); opacity: 0; } 60% { opacity: 1; } }

/* --- Presentes: calendário de 7 dias e selos acendendo --- */
.calendario-7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.dia-presente { display: grid; justify-items: center; padding: 4px 0; border-radius: 8px; background: rgba(0, 0, 0, .25); border: 1px solid var(--borda);
  font-size: 16px; animation: tile-entra .3s both; animation-delay: calc(var(--i) * 70ms); }
.dia-presente small { font: 11px var(--fonte-pixel); color: var(--texto-2); }
.dia-presente.pego { background: rgba(70, 195, 123, .18); border-color: #46c37b; color: #9bffb8; }
.dia-presente.hoje { border-color: var(--ouro); background: rgba(242, 201, 76, .2); animation: tile-entra .3s both, presente-pula 1s ease-in-out infinite; }
.dia-presente.grande span { font-size: 19px; }
.selo-item.ganho { animation: selo-acende .6s ease-out both; animation-delay: calc(var(--i) * 160ms + .2s); }
@keyframes selo-acende { from { filter: grayscale(1) brightness(.5); transform: scale(.8); } 60% { filter: drop-shadow(0 0 10px var(--ouro)); transform: scale(1.15); } }

/* --- Clima da região e dia/noite no fundo da página --- */
#fundo-pagina[data-periodo="amanhecer"] { --ceu: linear-gradient(rgba(255, 170, 120, .18), transparent 50%); }
#fundo-pagina[data-periodo="entardecer"] { --ceu: linear-gradient(rgba(255, 140, 60, .22), rgba(120, 40, 120, .12) 60%, transparent); }
#fundo-pagina[data-periodo="noite"] { --ceu: linear-gradient(rgba(10, 14, 50, .5), rgba(10, 10, 30, .35)); }
#fundo-pagina::before { content: ""; position: absolute; inset: 0; background: var(--ceu, none); pointer-events: none; transition: background 2s; }
.clima { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.clima i { position: absolute; left: var(--x); top: -5%; font-style: normal; animation: cai var(--d) linear infinite; animation-delay: var(--a); }
@keyframes cai { to { transform: translate(var(--dx), 112vh) rotate(360deg); } }
@keyframes sobe { from { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } to { transform: translate(var(--dx), -110vh); opacity: 0; } }
@keyframes vagueia { 0%, 100% { transform: translate(0, 0); opacity: .2; } 50% { transform: translate(var(--dx), -40px); opacity: 1; } }
.clima-neve i { width: calc(6px * var(--s)); height: calc(6px * var(--s)); border-radius: 50%; background: #fff; opacity: .8; filter: blur(.5px); }
.clima-chuva i { width: 2px; height: 18px; background: linear-gradient(transparent, rgba(170, 210, 255, .7)); animation-duration: calc(var(--d) / 6); --dx: -40px; }
.clima-cinzas i { width: calc(5px * var(--s)); height: calc(5px * var(--s)); background: #6b6366; border-radius: 1px; opacity: .7; }
.clima-cinzas i:nth-child(3n) { background: #ff8a3d; box-shadow: 0 0 6px #ff6a00; top: auto; bottom: -5%; animation-name: sobe; }
.clima-areia i { width: calc(3px * var(--s)); height: calc(3px * var(--s)); background: #e6c383; opacity: .7; top: var(--y); left: -5%;
  animation-name: vento-areia; animation-duration: calc(var(--d) / 2); }
@keyframes vento-areia { to { transform: translate(110vw, 30px); } }
.clima-folhas i { font-size: calc(16px * var(--s)); opacity: .85; }
.clima-folhas i:nth-child(2n) { filter: hue-rotate(-40deg) saturate(1.4); }
.clima-vagalumes i, .clima-polen i { top: var(--y); width: 5px; height: 5px; border-radius: 50%; animation-name: vagueia; }
.clima-vagalumes i { background: #e9ff8a; box-shadow: 0 0 10px 3px rgba(220, 255, 110, .7); }
.clima-polen i { background: #ffe9a8; box-shadow: 0 0 6px rgba(255, 220, 140, .8); width: 3px; height: 3px; }
.clima-fagulhas i, .clima-almas i, .clima-caos i { top: auto; bottom: -5%; animation-name: sobe; }
.clima-fagulhas i { width: 3px; height: 3px; background: #ffd27a; box-shadow: 0 0 6px #ff9b2f; }
.clima-almas i { width: 10px; height: 14px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle, rgba(190, 230, 255, .8), transparent 70%); }
.clima-caos i { width: 4px; height: 4px; background: #c06bff; box-shadow: 0 0 10px #a03bff; }
.clima-poeira i { top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 240, 200, .45); animation-name: vagueia; }
.clima-estrelas i { top: var(--y); width: 3px; height: 3px; background: #fff; box-shadow: 0 0 8px #9fd8ff; animation-name: piscar-estrela; }
.clima-morcegos i { top: var(--y); left: -10%; font-size: calc(18px * var(--s)); animation-name: voo-morcego; animation-duration: calc(var(--d) * 1.6); }
@keyframes voo-morcego { 0% { transform: translate(0, 0); } 25% { transform: translate(30vw, -30px); } 50% { transform: translate(60vw, 20px); } 100% { transform: translate(120vw, -10px); } }
@keyframes piscar-estrela { 50% { opacity: .15; } }
.estrelas-noite b { position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; background: #fff; border-radius: 50%;
  animation: piscar-estrela 3s ease-in-out infinite; animation-delay: var(--a); }
/* monstro atravessando o cartão do bioma */
.faixa { position: relative; overflow: hidden; }
.passeante { position: absolute; bottom: 4px; left: -90px; width: 72px; pointer-events: none; z-index: 1; animation: passeia 22s linear 2s infinite; }
.passeante.para-esquerda { left: auto; right: -90px; animation-name: passeia-volta; }
.passeante-img { width: 100%; image-rendering: pixelated; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .6)); animation: anda .5s ease-in-out infinite alternate; }
.passeante:not(.para-esquerda) .passeante-img { transform: scaleX(-1); }
@keyframes passeia { 0% { transform: translateX(0); } 45%, 100% { transform: translateX(calc(100vw + 180px)); } }
@keyframes passeia-volta { 0% { transform: translateX(0); } 45%, 100% { transform: translateX(calc(-100vw - 180px)); } }
@keyframes anda { from { translate: 0 0; } to { translate: 0 -4px; } }

/* --- Guildas: estandartes tremulando --- */
.estandarte { position: relative; width: 44px; height: 60px; flex: none; }
.estandarte.medio { width: 62px; height: 84px; }
.estandarte.grande { width: 78px; height: 104px; }
.estandarte .mastro { position: absolute; left: 4px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: linear-gradient(#e0c27a, #8a6a2a); }
.estandarte .mastro::before { content: ""; position: absolute; top: -4px; left: -3px; width: 10px; height: 10px; border-radius: 50%; background: #f2d16b; }
.estandarte .pano { position: absolute; left: 8px; top: 4px; right: 0; bottom: 10%; display: grid; place-items: center; align-content: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 40%, rgba(255, 255, 255, .12) 60%, rgba(0, 0, 0, .2)), var(--cor);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); transform-origin: left center; animation: tremula 2.4s ease-in-out infinite;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.estandarte .simbolo { font-size: 22px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); margin-top: -6px; }
.estandarte.medio .simbolo { font-size: 28px; }
.estandarte.grande .simbolo { font-size: 34px; }
.estandarte .pano b { font: 12px var(--fonte-pixel); color: #fff; text-shadow: 0 1px 0 #000; letter-spacing: 1px; }
@keyframes tremula { 0%, 100% { transform: skewY(0) scaleX(1); } 25% { transform: skewY(-3deg) scaleX(.97); } 75% { transform: skewY(2deg) scaleX(1.02); } }
.cartao-guilda { gap: 10px; }
.topo-guilda { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.seletor-estandarte { display: flex; gap: 12px; align-items: flex-start; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.cores-estandarte, .simbolos-estandarte { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cor-opcao { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; background: var(--cor); border: 2px solid rgba(255, 255, 255, .25); }
.cor-opcao.escolhida { border-color: #fff; box-shadow: 0 0 0 2px var(--cor); transform: scale(1.12); }
.simbolo-opcao { width: 34px; height: 34px; min-height: 0; padding: 0; font-size: 18px; border-radius: 8px; }
.simbolo-opcao.escolhido { border-color: var(--ouro); background: rgba(242, 201, 76, .2); }
.castelo-vazio .castelo { position: relative; font-size: 64px; animation: flutua 3s ease-in-out infinite; }
.castelo .bandeira { position: absolute; font-size: 18px; top: -6px; animation: tremula 1.6s ease-in-out infinite; transform-origin: left bottom; }
.castelo .b1 { left: 6px; }
.castelo .b2 { right: 4px; animation-delay: -.6s; }

/* --- Chat: rostinho da classe --- */
.rostinho { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06);
  vertical-align: middle; margin-right: 4px; flex: none; font-size: 14px; }
.rostinho-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; image-rendering: pixelated; transform: scale(1.6); transform-origin: 50% 20%; }

/* --- Arcas vazias: arcas fantasmas --- */
.arca-fantasma { opacity: .28; filter: grayscale(1) brightness(1.4); animation: fantasma 3s ease-in-out infinite; }
.arca-fantasma img { width: 70%; }
@keyframes fantasma { 50% { transform: translateY(-4px) rotate(-3deg); opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  .boneco-slot, .boneco-aura, .tile-item, .vs, .barra > span, .mini-barra span, .missao-concluida, .carimbo,
  .dia-presente, .selo-item.ganho, .estandarte .pano, .castelo, .castelo .bandeira, .arca-fantasma, .vazio-arte, .boneco-melhor { animation: none; }
  .clima, .passeante { display: none; }
}

/* --- Desafios: salão de portas e cada desafio na sua janela --- */
.salao-portas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.porta-desafio { position: relative; display: grid; align-content: end; justify-items: start; gap: 2px; min-height: 132px; padding: 10px; text-align: left;
  border-radius: 14px; border: 2px solid var(--borda); overflow: hidden; color: #fff; background: linear-gradient(160deg, #2a2440, #16131f);
  background-size: cover; background-position: center; animation: porta-entra .45s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 70ms);
  transition: transform .15s, border-color .15s; }
.porta-desafio[data-fundo] { background-image: linear-gradient(180deg, rgba(20, 18, 28, .15), rgba(20, 18, 28, .92) 78%), var(--fundo-arte); }
.porta-desafio:hover, .porta-desafio:focus-visible { transform: translateY(-3px) scale(1.02); border-color: var(--ouro); }
.porta-desafio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%);
  transform: translateX(-120%); animation: porta-brilho 5s ease-in-out infinite; animation-delay: calc(var(--i) * .5s + 1s); pointer-events: none; }
.porta-desafio:first-child { grid-column: span 2; min-height: 150px; }
.porta-icone { font-size: 28px; filter: drop-shadow(0 2px 0 #000); animation: flutua 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); }
.porta-nome { font-size: 18px; text-shadow: 0 2px 0 #000; }
.porta-desafio small { color: #d8d2ee; font-size: 12px; text-shadow: 0 1px 0 #000; }
@keyframes porta-entra { from { transform: translateY(14px) scale(.92); opacity: 0; } }
@keyframes porta-brilho { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.barra-janela { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; padding: 6px 8px; border-radius: 12px; background: rgba(20, 18, 28, .75);
  border: 1px solid var(--borda); position: sticky; top: 0; z-index: 5; animation: detalhe-entra .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .porta-desafio, .porta-desafio::after, .porta-icone { animation: none; } }

/* --- Chaves de masmorra, velas do Labirinto, quedas e nocaute --- */
.chaves-dia { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(242, 201, 76, .35); }
.chaves-icones { display: flex; gap: 6px; margin-top: 2px; }
.chave, .vela { font-size: 22px; filter: drop-shadow(0 0 6px rgba(242, 201, 76, .7)); animation: chave-brilha 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .3s); }
.chave.usada, .vela.apagada { filter: grayscale(1) brightness(.45); opacity: .5; animation: none; }
@keyframes chave-brilha { 50% { transform: translateY(-3px) rotate(-8deg); filter: drop-shadow(0 0 12px rgba(242, 201, 76, 1)); } }
.vela { animation-name: vela-tremula; }
@keyframes vela-tremula { 50% { transform: scaleY(1.08) translateY(-2px); filter: drop-shadow(0 -4px 10px rgba(255, 170, 60, .95)); } }
.chaves-extra { display: grid; justify-items: end; text-align: right; }
.chaves-extra b { font: 20px var(--fonte-pixel); color: var(--ouro); }
.chaves-extra small { font-size: 11px; color: var(--texto-2); max-width: 140px; }
.mm-quedas { font-size: 12px; }
.mm-nocaute { font-size: 12px; color: #ffe066; animation: pulsar 1.4s ease-in-out infinite; }
.mm-linha.tombou { animation: tombou 1.2s ease-in-out both; }
@keyframes tombou { 20% { transform: rotate(-4deg); } 50% { transform: translateY(4px) rotate(3deg); filter: grayscale(1); } 100% { filter: grayscale(.6); } }
.mm-faixa.queda { background: linear-gradient(90deg, rgba(120, 90, 0, .9), rgba(60, 40, 0, .9)); border-color: #ffe066; }
.mm-faixa.expulso { background: linear-gradient(90deg, rgba(140, 20, 30, .95), rgba(60, 10, 20, .95)); border-color: #ff5c6b; }
.nocauteado { border-color: #ffe066; color: #ffe066; background: rgba(255, 224, 102, .08); }
.mm-aviso-queda { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .chave, .vela, .mm-nocaute, .mm-linha.tombou { animation: none; } }

/* --- Imagens dos itens (com o emoji de reserva enquanto a arte não chega) --- */
img.arte-item { image-rendering: pixelated; object-fit: contain; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .55)); vertical-align: middle; }
/* Tamanho das artes dos itens: grandes, porque são o que mais chama atenção no jogo */
img.arte-item.mini { display: inline-block; width: 32px; height: 32px; margin: -6px 2px -6px 0; }
img.arte-item.medio { display: inline-block; width: 56px; height: 56px; }
img.arte-item.ganho-img { display: inline-block; width: 48px; height: 48px; }
img.arte-item.tile-img { width: 58px; height: 58px; }
img.arte-item.detalhe-img { width: 80px; height: 80px; }
img.arte-item.boneco-img { width: 60px; height: 60px; }
img.arte-item.peca-img { width: 72px; height: 72px; }
.item-loja { display: grid; place-items: center; width: 62px; font-size: 34px; }
.item-linha { display: inline-flex; align-items: center; gap: 8px; }
.peca-topo { display: flex; gap: 12px; align-items: center; }
.peca-arte { position: relative; flex: none; width: 84px; height: 84px; display: grid; place-items: center; font-size: 40px;
  border-radius: 14px; background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .08), rgba(20, 18, 28, .6) 70%);
  border: 2px solid var(--borda); }
.peca-arte img { transition: transform .2s; }
.cartao.peca:hover .peca-arte img { transform: scale(1.08) rotate(-4deg); }
.peca-forja { position: absolute; top: 2px; right: 5px; font: 14px var(--fonte-pixel); color: var(--ouro); text-shadow: 0 1px 0 #000; }
.peca-arte.borda-r-2, .peca-arte.borda-r-incomum { border-color: var(--incomum); }
.peca-arte.borda-r-3, .peca-arte.borda-r-raro { border-color: var(--raro); }
.peca-arte.borda-r-4, .peca-arte.borda-r-epico { border-color: var(--epico); box-shadow: 0 0 12px rgba(178, 108, 255, .35); }
.peca-arte.borda-r-5, .peca-arte.borda-r-lendario { border-color: var(--lendario); box-shadow: 0 0 14px rgba(242, 163, 60, .45); }
.peca-arte.borda-r-6, .peca-arte.borda-r-mitico { border-color: var(--mitico); box-shadow: 0 0 16px rgba(255, 59, 59, .55); }
.grade-mochila { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.boneco-icone { font-size: 36px; }
.tile-icone { font-size: 38px; }
.item-ganho { display: flex; align-items: center; gap: 6px; animation: tile-entra .35s both; }
.tile-item:hover img.arte-item, .boneco-slot:hover img.arte-item { transform: scale(1.08) rotate(-4deg); transition: transform .15s; }

/* --- Namelock: escolher um novo nome --- */
.tela-bloqueio { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(10, 8, 18, .86); backdrop-filter: blur(4px); animation: detalhe-entra .3s ease-out; }
.bloqueio-cartao { width: min(420px, 100%); display: grid; gap: 10px; text-align: center; border-color: var(--ouro); }
.bloqueio-icone { font-size: 48px; animation: flutua 2.4s ease-in-out infinite; }
.bloqueio-cartao input { text-align: center; font-size: 18px; }
.bloqueio-cartao.treme { animation: treme-erro .4s; }
@keyframes treme-erro { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* --- Luta no PC: palco grande à esquerda; vida, ações, resultado e registro à direita --- */
@media (min-width: 1000px) {
  #app:has(> .tela-luta) { max-width: 1200px; padding: 24px; }
  .tela-luta { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
  .luta-coluna-palco { position: sticky; top: 16px; }
  .luta-coluna-palco .arena { padding: 18px 18px 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
  .luta-coluna-palco .palco { height: 430px; margin-top: 10px; }
  .luta-coluna-palco img.heroi-palco { max-width: 290px; }
  .luta-coluna-palco .ator-monstro.fraco img.monstro { max-width: 270px; }
  .luta-coluna-palco .ator-monstro.medio img.monstro { max-width: 320px; }
  .luta-coluna-palco .ator-monstro.forte img.monstro { max-width: 370px; }
  .luta-coluna-palco .ator .respira { font-size: 110px; }
  .luta-coluna-palco h2 { font-size: 26px; }
  .luta-coluna-palco .barra { height: 18px; }
  .luta-coluna-palco .numero-dano { font-size: 30px; }
  .luta-coluna-lado { display: grid; gap: 10px; align-content: start; }
  .luta-coluna-lado .cartao-heroi { margin-top: 0 !important; }
  .luta-coluna-lado .acoes { margin-top: 0; }
  .luta-coluna-lado .acoes button { min-height: 58px; font-size: 15px; }
  .luta-coluna-lado .registro { margin-top: 0; max-height: 300px; overflow-y: auto; padding: 10px 12px; border-radius: var(--raio);
    background: rgba(20, 18, 28, .82); border: 1px solid var(--borda); font-size: 14px; }
  .luta-coluna-lado .recompensa { margin-top: 0 !important; }
}

/* --- Monstro Áureo --- */
.selo.aureo { background: linear-gradient(90deg, #ffd84d, #ffb300, #ffe98a); color: #3a2600; border-color: #fff1b0;
  box-shadow: 0 0 12px rgba(255, 200, 40, .9); animation: brilho-botao 1.6s ease-in-out infinite; }
.nome-aureo { background: linear-gradient(90deg, #ffe066, #fff6c8, #ffb300, #ffe066); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: ouro-corre 2.4s linear infinite;
  text-shadow: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .7)); }
@keyframes ouro-corre { to { background-position: -200% 0; } }
.ator.aureo .respira { filter: sepia(.6) saturate(2.6) hue-rotate(-12deg) brightness(1.15) drop-shadow(0 0 10px rgba(255, 210, 60, .95))
  drop-shadow(0 0 22px rgba(255, 170, 20, .7)); }
.aura-aurea { position: absolute; inset: -6% -10% 0; pointer-events: none; z-index: 0; }
.halo-aureo { position: absolute; left: 50%; bottom: 6%; width: 120%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 215, 80, .55), rgba(255, 170, 20, .18) 45%, transparent 70%);
  animation: halo-pulsa 1.8s ease-in-out infinite; }
@keyframes halo-pulsa { 50% { transform: translateX(-50%) scale(1.12); opacity: .75; } }
.aura-aurea i { position: absolute; bottom: 8%; left: var(--x); width: 5px; height: 5px; border-radius: 50%; font-style: normal; font-size: 13px;
  color: #fff3b0; background: #ffd84d; box-shadow: 0 0 8px 2px rgba(255, 200, 40, .9); animation: faisca-aurea var(--d) ease-out infinite;
  animation-delay: var(--a); }
.aura-aurea i:not(:empty) { background: none; box-shadow: none; text-shadow: 0 0 8px #ffcc33; }
@keyframes faisca-aurea { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-140px) scale(1.1); opacity: 0; } }
.faixa-aurea { position: absolute; left: 50%; top: 38%; z-index: 7; width: 94%; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  font: clamp(20px, 6vw, 34px)/1.1 var(--fonte-pixel); color: #fff6c8; text-shadow: 0 0 12px #ffb300, 0 0 26px #ff9000, 0 3px 0 #000;
  animation: faixa-aurea 3.1s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.faixa-aurea small { display: block; font: 600 13px system-ui, sans-serif; color: #ffe9a8; text-shadow: 0 1px 0 #000; margin-top: 4px; }
@keyframes faixa-aurea { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -70%); opacity: 0; } }
.clarao-aureo { position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: var(--raio);
  background: radial-gradient(circle, rgba(255, 220, 90, .75), rgba(255, 170, 20, .25) 55%, transparent 75%); animation: clarao-magia .9s ease-out forwards; }
.vitoria-aurea { margin-bottom: 6px; padding: 8px; border-radius: 10px; font: 20px var(--fonte-pixel); color: #3a2600;
  background: linear-gradient(90deg, #ffd84d, #fff1a8, #ffb300); box-shadow: 0 0 18px rgba(255, 200, 40, .8); animation: carimbar .6s both; }
.vitoria-aurea small { display: block; font: 600 12px system-ui, sans-serif; }
.contador-aureos { margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 200, 40, .12); border: 1px solid rgba(255, 200, 40, .5); }
@media (prefers-reduced-motion: reduce) { .selo.aureo, .nome-aureo, .halo-aureo, .aura-aurea i { animation: none; } }

/* --- Janela da peça (clique no boneco) e energia no Boss --- */
.janela-peca { display: grid; gap: 8px; }
.janela-peca-titulo { font: 15px var(--fonte-pixel); margin-top: 4px; }
.janela-peca .cartao.peca { margin: 0; animation: slot-entra .35s both; }
.energia-boss { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 214, 64, .1); border: 1px solid rgba(255, 214, 64, .4); }
.energia-boss small { display: block; margin-top: 2px; color: var(--texto-2); }
.energia-boss.sem { background: rgba(255, 90, 90, .1); border-color: rgba(255, 90, 90, .45); animation: pulsar-aviso 1.8s ease-in-out infinite; }
@keyframes pulsar-aviso { 50% { box-shadow: 0 0 12px rgba(255, 90, 90, .45); } }
@media (prefers-reduced-motion: reduce) { .energia-boss.sem, .janela-peca .cartao.peca { animation: none; } }

/* ================= Ofícios, Trilha, Santuário e Aliança ================= */
.tile-item.tipo-comida { border-color: #d98b3a; box-shadow: inset 0 0 10px rgba(217, 139, 58, .3); }

/* --- cartões na aba Caçar --- */
.novidades-caca { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 420px) { .novidades-caca { grid-template-columns: 1fr; } }
.cartao-novidade { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; text-align: left; color: var(--texto);
  overflow: hidden; cursor: pointer; background-size: cover; background-position: center; animation: novidade-entra .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.cartao-novidade:nth-child(2) { animation-delay: .08s; }
.cartao-novidade:hover { transform: translateY(-2px); border-color: var(--xp); }
.cartao-novidade small { display: block; color: var(--texto-2); font-size: 12px; margin-top: 2px; }
.cartao-trilha::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 18, 28, .92), rgba(20, 18, 28, .55)); z-index: 0; }
.cartao-novidade > * { position: relative; z-index: 1; }
.novidade-icone { font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)); }
.novidade-icone.andarilho { animation: andarilho 1.1s ease-in-out infinite; }
.cartao-oficio.trabalhando .novidade-icone.bigorna { animation: martelar .7s ease-in-out infinite; transform-origin: 70% 80%; }
.cartao-oficio.pronto { border-color: var(--ouro); animation: novidade-entra .45s both, brilho-botao 1.6s ease-in-out infinite; }
.selo-novo { position: absolute; top: 6px; right: 8px; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ouro); color: #3a2600; font: 16px var(--fonte-pixel); animation: selo-pula 1s ease-in-out infinite; }
.trilha-mini-pegadas { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 4px; font-size: 9px; }
.trilha-mini-pegadas i, .trilha-pegadas i { font-style: normal; opacity: .9; }
.trilha-mini-pegadas i.usada, .trilha-pegadas i.usada { opacity: .2; filter: grayscale(1); }
.mini-progresso { display: block; height: 6px; margin-top: 5px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.mini-progresso span { display: block; height: 100%; background: linear-gradient(90deg, var(--xp), #c7b6ff); border-radius: 4px; transition: width .6s; }
@keyframes novidade-entra { from { transform: translateY(14px) scale(.96); opacity: 0; } }
@keyframes andarilho { 25% { transform: translateX(-2px) rotate(-8deg); } 75% { transform: translateX(2px) rotate(8deg); } }
@keyframes martelar { 40% { transform: rotate(-28deg); } 55% { transform: rotate(6deg); } }
@keyframes selo-pula { 50% { transform: translateY(-3px) scale(1.12); } }

/* --- ganhos (chips) --- */
.ganhos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-ganho { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .07);
  border: 1px solid var(--borda); animation: chip-salta .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.chip-ganho:nth-child(2) { animation-delay: .07s; }
.chip-ganho:nth-child(3) { animation-delay: .14s; }
.chip-ganho:nth-child(4) { animation-delay: .21s; }
.chip-ganho.xp { border-color: var(--xp); }
.chip-ganho.ouro { border-color: var(--ouro); color: #ffe28a; }
.chip-ganho.cura { border-color: var(--bom); }
.chip-ganho.dano { border-color: var(--ruim); color: #ff9a9d; }
.chip-ganho img.mini { width: 18px; height: 18px; }
@keyframes chip-salta { from { transform: scale(.3); opacity: 0; } }

/* --- Trilha --- */
.trilha { display: grid; gap: 10px; }
.trilha-palco { position: relative; height: 210px; border-radius: var(--raio); overflow: hidden; background-color: #20304a; background-size: cover; background-position: center;
  box-shadow: inset 0 -40px 50px rgba(0, 0, 0, .55); border: 1px solid var(--borda); }
.trilha-palco.dourada { box-shadow: inset 0 0 60px rgba(255, 210, 80, .55); border-color: var(--ouro); }
.trilha-palco.dourada::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255, 220, 110, .45), transparent 60%);
  animation: luz-pulsa 2s ease-in-out infinite; }
.trilha-nevoa { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 18, 28, .7)); }
.trilha-caminho { position: absolute; left: 0; right: 0; bottom: 18px; height: 26px; background: repeating-linear-gradient(90deg, rgba(210, 180, 120, .55) 0 26px, rgba(170, 140, 90, .45) 26px 52px);
  transform: perspective(200px) rotateX(55deg); transform-origin: bottom; }
.trilha-palco.andando .trilha-caminho { animation: caminho-anda .6s linear infinite; }
@keyframes caminho-anda { to { background-position: -52px 0; } }
.trilha-heroi { position: absolute; left: 14%; bottom: 26px; animation: heroi-respira 2.4s ease-in-out infinite; font-size: 64px; }
.trilha-heroi img { width: 92px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .6)); }
.trilha-palco.andando .trilha-heroi { animation: heroi-anda .32s ease-in-out infinite; }
@keyframes heroi-respira { 50% { transform: translateY(-3px); } }
@keyframes heroi-anda { 50% { transform: translateY(-7px) rotate(2deg); } }
.trilha-evento-icone { position: absolute; right: 16%; bottom: 40px; font-size: 62px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .6));
  animation: evento-surge .6s cubic-bezier(.2, 1.5, .4, 1) both, evento-flutua 2.2s ease-in-out .6s infinite; }
@keyframes evento-surge { from { transform: translateX(80px) scale(.2); opacity: 0; } }
.trilha-evento-icone.com-arte { right: 10%; bottom: 26px; }
.trilha-evento-img { width: 128px; height: 128px; object-fit: contain; image-rendering: pixelated; display: block; }
@media (max-width: 420px) { .trilha-evento-img { width: 104px; height: 104px; } }
@keyframes evento-flutua { 50% { transform: translateY(-6px); } }
.trilha-estouro { position: absolute; left: 50%; top: 40%; font-size: 70px; transform: translate(-50%, -50%); animation: estouro .9s ease-out forwards; pointer-events: none; }
@keyframes estouro { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
  100% { transform: translate(-50%, -80%) scale(1.6); opacity: 0; } }
.trilha-palco.tremer { animation: tremer-palco .45s ease-in-out; }
@keyframes tremer-palco { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.trilha-local { position: absolute; top: 8px; left: 10px; padding: 2px 8px; border-radius: 8px; background: rgba(0, 0, 0, .5); font-size: 15px; }
.trilha-pegadas { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; font-size: 15px; }
.trilha-pegadas i.agora { animation: pegada-nova .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pegada-nova { from { transform: scale(2.4) rotate(-20deg); opacity: 0; } }
.trilha-contador { text-align: center; }
.trilha-evento { border-color: var(--xp); animation: carta-vira .5s cubic-bezier(.2, 1.2, .4, 1) both; }
.trilha-evento.rara { border-color: var(--ouro); box-shadow: 0 0 22px rgba(255, 210, 80, .45); }
@keyframes carta-vira { from { transform: perspective(600px) rotateX(-70deg); opacity: 0; } }
.trilha-evento-texto { font-size: 16px; line-height: 1.35; }
.trilha-opcoes { display: grid; gap: 8px; margin-top: 10px; }
.trilha-opcoes button { min-height: 48px; animation: novidade-entra .4s both; animation-delay: calc(var(--i) * .08s + .25s); }
.trilha-opcoes small { opacity: .85; }
.trilha-resultado { animation: chip-salta .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.trilha-resultado.bom { border-color: var(--bom); background: linear-gradient(180deg, rgba(70, 195, 123, .14), transparent); }
.trilha-resultado.ruim { border-color: var(--ruim); background: linear-gradient(180deg, rgba(229, 72, 77, .14), transparent); }
.trilha-resultado-texto { font-size: 15px; }
.botao-passo { min-height: 54px; font-size: 17px; }
.botao-passo:not(:disabled) { animation: brilho-botao 1.8s ease-in-out infinite; }

/* --- Ofícios --- */
.oficina { display: grid; gap: 10px; }
.oficios-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 480px) { .oficios-grade { grid-template-columns: repeat(2, 1fr); } }
.oficio-cartao { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 8px; margin: 0; border-radius: 12px; color: var(--texto);
  background: var(--painel-2); border: 1px solid var(--borda); animation: novidade-entra .4s both; animation-delay: calc(var(--i) * .06s); }
.oficio-cartao small { color: var(--texto-2); font-size: 11px; }
.oficio-cartao .mini-progresso { width: 100%; }
.oficio-cartao.atual { border-color: var(--ouro); box-shadow: 0 0 14px rgba(242, 201, 76, .35); }
.oficio-arte { font-size: 34px; line-height: 1; }
.oficio-arte img { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; }
.oficio-cartao.atual .oficio-arte { animation: heroi-respira 1.8s ease-in-out infinite; }
.oficio-fita { position: absolute; top: -8px; padding: 1px 8px; border-radius: 6px; background: var(--ouro); color: #3a2600; font: 12px var(--fonte-pixel); }
.oficina-palco { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; overflow: hidden; min-height: 130px;
  background: radial-gradient(circle at 20% 60%, rgba(255, 140, 40, .18), transparent 60%), var(--painel); }
.oficina-palco.oficio-alquimista { background: radial-gradient(circle at 20% 60%, rgba(120, 255, 170, .16), transparent 60%), var(--painel); }
.oficina-palco.oficio-cozinheiro { background: radial-gradient(circle at 20% 60%, rgba(255, 200, 120, .18), transparent 60%), var(--painel); }
.oficina-palco.oficio-tesouros { background: radial-gradient(circle at 20% 60%, rgba(255, 220, 90, .16), transparent 60%), var(--painel); }
.oficina-centro { position: relative; display: grid; place-items: center; height: 110px; }
.oficina-produto { font-size: 58px; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .6)); }
.oficina-produto.parado { opacity: .55; filter: grayscale(.6); }
.oficina-palco.trabalhando .oficina-produto { animation: produto-trabalha 1.2s ease-in-out infinite; }
.oficina-palco.pronto .oficina-produto { animation: produto-pronto 1.4s ease-in-out infinite; }
.oficina-palco.comecou { animation: chip-salta .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes produto-trabalha { 30% { transform: rotate(-6deg) scale(.95); } 60% { transform: rotate(5deg) scale(1.04); } }
@keyframes produto-pronto { 50% { transform: translateY(-6px) scale(1.1); filter: drop-shadow(0 0 14px rgba(255, 220, 90, .9)); } }
.oficina-ferramentas { position: absolute; left: 0; top: 0; width: 110px; height: 100%; pointer-events: none; }
.oficina-ferramentas i { position: absolute; left: calc(18px + var(--i) * 26px); bottom: 18px; font-style: normal; font-size: 20px; opacity: 0; }
.oficina-palco.trabalhando .oficina-ferramentas i { animation: ferramenta-sobe 1.8s ease-out infinite; animation-delay: calc(var(--i) * .55s); }
@keyframes ferramenta-sobe { 0% { transform: translateY(0) scale(.6); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-80px) scale(1.15); opacity: 0; } }
.oficio-ferreiro.trabalhando .oficina-centro::after { content: ""; position: absolute; bottom: 14px; width: 70px; height: 10px; border-radius: 50%;
  background: radial-gradient(rgba(255, 160, 40, .8), transparent 70%); animation: luz-pulsa .7s ease-in-out infinite; }
.oficina-info { display: grid; gap: 4px; }
.oficina-pronto { border-color: var(--ouro); background: linear-gradient(180deg, rgba(242, 201, 76, .16), transparent); animation: carta-vira .5s both; }
.subiu-oficio { color: var(--ouro); }
.receitas .receita { display: grid; gap: 6px; margin: 0; animation: novidade-entra .35s both; animation-delay: calc(var(--i) * .05s); }
.receita-icone { font-size: 30px; }
.receita.bloqueada { opacity: .55; filter: grayscale(.5); }
.receita-custos { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.receita-custos span { padding: 2px 7px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--borda); }
.receita-cadeado { color: var(--texto-2); font-size: 13px; }
.centro-texto { text-align: center; }

/* --- Santuário --- */
.santuario { display: grid; gap: 10px; overflow: hidden; background: radial-gradient(circle at 50% 0%, rgba(255, 190, 90, .12), transparent 55%), var(--painel); }
.santuario.nivel-1 { --n: 1; }
.santuario.nivel-2 { --n: 2; }
.santuario.nivel-3 { --n: 3; }
.altar { position: relative; height: 150px; display: grid; justify-items: center; align-items: end; }
.altar-luz { position: absolute; left: 50%; bottom: 40px; width: 160px; height: 160px; margin-left: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 80, calc(.12 + var(--n, 0) * .12)), transparent 70%); animation: luz-pulsa 2.6s ease-in-out infinite; }
@keyframes luz-pulsa { 50% { transform: scale(1.12); opacity: .8; } }
.altar-chama { position: absolute; left: 50%; bottom: 50px; width: 30px; height: 46px; margin-left: -15px; transform: scale(calc(.6 + var(--n, 0) * .25)); transform-origin: bottom; }
.altar-chama i { position: absolute; left: 0; right: 0; bottom: 0; margin: auto; width: 100%; height: 100%; border-radius: 50% 50% 35% 35% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 50% 75%, #fff6c8, #ffb733 45%, #ff6a1a 75%, transparent 80%); animation: chama .9s ease-in-out infinite alternate; transform-origin: bottom; }
.altar-chama i:nth-child(2) { width: 70%; height: 80%; opacity: .8; animation-duration: .7s; animation-delay: .2s; }
.altar-chama i:nth-child(3) { width: 40%; height: 55%; background: radial-gradient(circle at 50% 80%, #ffffff, #fff2a8 60%, transparent 75%); animation-duration: .5s; }
.santuario.nivel-3 .altar-chama i:first-child { background: radial-gradient(circle at 50% 75%, #ffffff, #9ad8ff 40%, #6b5cff 75%, transparent 80%); }
@keyframes chama { from { transform: scaleY(1) skewX(-3deg); } to { transform: scaleY(1.12) skewX(4deg); } }
.altar-pedra { width: 140px; height: 50px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #6b6385, #3c3652); box-shadow: inset 0 4px 0 rgba(255, 255, 255, .12), 0 8px 18px rgba(0, 0, 0, .5); }
.altar-velas { position: absolute; bottom: 4px; display: flex; gap: 72px; }
.vela-altar { position: relative; width: 12px; height: 30px; border-radius: 3px; background: linear-gradient(180deg, #f3e9d2, #cdbf9f); }
.vela-altar .pavio { position: absolute; left: -1px; top: -13px; width: 14px; height: 15px; border-radius: 50% 50% 40% 40%; background: transparent; transform-origin: bottom; }
.vela-altar.acesa .pavio { background: radial-gradient(circle at 50% 70%, #fff6c8, #ffb733 55%, transparent 75%); animation: chama .6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * .15s); filter: drop-shadow(0 0 6px #ffb733); }
.fe-linha { display: flex; justify-content: space-between; align-items: baseline; }
.fe-linha b { font-size: 22px; color: #ffd27a; }
.barra-fe { position: relative; height: 16px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid var(--borda); margin: 6px 0 14px; }
.barra-fe > span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #ff8a1e, #ffd27a); box-shadow: 0 0 12px rgba(255, 170, 60, .6);
  animation: barra-fe-cresce 1.1s cubic-bezier(.2, .8, .3, 1) both; transform-origin: left; }
@keyframes barra-fe-cresce { from { transform: scaleX(0); } }
.marca-fe { position: absolute; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-size: 16px; filter: grayscale(1) brightness(.7); }
.marca-fe.acesa { filter: none; }
.bencaos { display: grid; gap: 6px; }
.bencao { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px dashed var(--borda); opacity: .7; }
.bencao.acesa { opacity: 1; border-style: solid; border-color: var(--ouro); background: rgba(242, 201, 76, .09); box-shadow: 0 0 12px rgba(242, 201, 76, .25); }
.bencao.acesa .bencao-icone { animation: heroi-respira 1.6s ease-in-out infinite; }
.bencao-icone { font-size: 24px; }
.bencao b { color: var(--ouro); }
.oferendas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.oferenda { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; margin: 0; animation: novidade-entra .4s both; animation-delay: calc(var(--i) * .07s); }
.oferenda small { font-size: 11px; color: var(--texto-2); }
.oferenda-icone { font-size: 26px; }
.oferenda:not(:disabled):hover .oferenda-icone { animation: selo-pula .6s ease-in-out infinite; }
.oferenda-voando { position: fixed; z-index: 9999; font-size: 32px; pointer-events: none; filter: drop-shadow(0 0 10px #ffb733); }
.santuario.acendeu { animation: santuario-acende 1.2s ease-out; }
@keyframes santuario-acende { 30% { box-shadow: 0 0 50px rgba(255, 200, 80, .8); } }
.devotos { display: grid; gap: 3px; }

/* --- Aliança --- */
.alianca.ativa { border-color: var(--ouro); background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(242, 201, 76, .08), rgba(255, 255, 255, .03)); }
.aliados { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.aliado { display: grid; justify-items: center; gap: 2px; }
.aliado small { color: var(--texto-2); font-size: 11px; }
.aperto { font-size: 40px; animation: aperto 1.6s ease-in-out infinite; }
@keyframes aperto { 50% { transform: scale(1.18) rotate(-6deg); } }
.alianca.ativa .estandarte .pano { animation: pano-balanca 2.4s ease-in-out infinite; transform-origin: left top; }
@keyframes pano-balanca { 50% { transform: skewY(4deg); } }
.alianca.selou { animation: chip-salta .6s cubic-bezier(.2, 1.4, .4, 1); }
.convite-alianca { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; animation: carta-vira .5s both; }

@media (prefers-reduced-motion: reduce) {
  .cartao-novidade, .novidade-icone, .selo-novo, .chip-ganho, .trilha-palco, .trilha-palco::after, .trilha-caminho, .trilha-heroi, .trilha-evento-icone,
  .trilha-estouro, .trilha-pegadas i, .trilha-evento, .trilha-opcoes button, .trilha-resultado, .botao-passo, .oficio-cartao, .oficio-arte, .oficina-produto,
  .oficina-ferramentas i, .oficina-palco, .oficina-pronto, .receita, .altar-luz, .altar-chama i, .vela-altar .pavio, .barra-fe > span, .bencao-icone,
  .oferenda, .oferenda-icone, .santuario, .aperto, .estandarte .pano, .alianca, .convite-alianca, .cartao-oficio { animation: none !important; }
}

.trilha-palco[data-fundo], .cartao-trilha[data-fundo] { background-image: var(--fundo-arte); background-size: cover; background-position: center; }

/* Baú Diário do Passe (no presente do dia) */
.bau-passe { margin-top: 6px; padding: 4px 8px; border-radius: 8px; font-size: .85em; color: var(--texto-2);
  border: 1px dashed var(--borda); background: rgba(242, 201, 76, .05); }
.bau-passe.ativo { color: var(--ouro); border: 1px solid rgba(242, 201, 76, .55); background: rgba(242, 201, 76, .1);
  animation: bau-passe-brilho 2.4s ease-in-out infinite; }
@keyframes bau-passe-brilho { 50% { box-shadow: 0 0 0 2px rgba(242, 201, 76, .25), 0 0 12px rgba(242, 201, 76, .35); } }
@media (prefers-reduced-motion: reduce) { .bau-passe.ativo { animation: none; } }


/* Ferramentas dos ofícios */
.ferramenta-cartao { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; animation: conteudo-entra .35s ease both; }
.ferramenta-cartao .ferramenta-arte { width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 30px;
  border-radius: 10px; background: radial-gradient(circle, color-mix(in srgb, var(--cor) 35%, transparent), transparent 70%);
  animation: ferramenta-balanca 2.6s ease-in-out infinite; }
.ferramenta-cartao .ferramenta-img { width: 46px; height: 46px; image-rendering: pixelated; }
.ferramenta-usos { height: 8px; border-radius: 6px; background: var(--painel-2); overflow: hidden; margin: 4px 0; }
.ferramenta-usos span { display: block; height: 100%; background: var(--cor); transition: width .6s ease; }
.ferramenta-cartao.sem { border: 1px dashed var(--energia); }
.ferramenta-cartao.sem .ferramenta-arte { filter: grayscale(.7); opacity: .8; }
.ferramenta-cartao.pouco .ferramenta-usos span { animation: ferramenta-pisca 1s ease-in-out infinite; }
.ferramenta-cartao.fraca { border: 1px solid rgba(245, 165, 36, .5); }
.ferramenta-aviso { font-size: .85em; color: var(--energia); }
.ferramenta-cartao.nova .ferramenta-arte { animation: ferramenta-chega .7s cubic-bezier(.2, 1.6, .4, 1) both, ferramenta-balanca 2.6s 0.7s ease-in-out infinite; }
@keyframes ferramenta-balanca { 50% { transform: rotate(-8deg) translateY(-2px); } }
@keyframes ferramenta-pisca { 50% { opacity: .35; } }
@keyframes ferramenta-chega { 0% { transform: scale(.2) rotate(-90deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ferramenta-cartao .ferramenta-arte, .ferramenta-cartao.pouco .ferramenta-usos span { animation: none; } }


/* ---------- Perfil do herói (janela) ---------- */
.perfil-palco { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 14px;
  border-radius: 16px; border: 1px solid rgba(242, 201, 76, .35); min-height: 150px;
  background: radial-gradient(circle at 25% 60%, rgba(242, 201, 76, .16), transparent 55%), linear-gradient(160deg, #241d36, #120f1b);
  animation: conteudo-entra .4s ease both; }
.perfil-palco[data-fundo] { background-image: linear-gradient(90deg, rgba(14, 12, 22, .35), rgba(14, 12, 22, .88) 55%), var(--fundo-arte);
  background-size: cover; background-position: center; }
.perfil-heroi { position: relative; flex: none; width: 118px; height: 128px; display: grid; place-items: end center; }
.perfil-heroi .boneco-aura { position: absolute; inset: 10px 4px 0; }
img.perfil-heroi-img { position: relative; width: 118px; height: 118px; object-fit: contain; image-rendering: pixelated;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .6)); }
.perfil-heroi .respira { position: relative; font-size: 64px; }
.perfil-quem { position: relative; min-width: 0; text-shadow: 0 1px 2px #000; }
.perfil-quem h2 { margin: 0 0 2px; font-size: 22px; }
.perfil-quem .online { color: var(--bom); }
.perfil-poder { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font: 15px var(--fonte-pixel);
  color: var(--ouro); background: rgba(0, 0, 0, .45); border: 1px solid rgba(242, 201, 76, .5);
  animation: perfil-poder-brilha 2.6s ease-in-out infinite; }
@keyframes perfil-poder-brilha { 50% { box-shadow: 0 0 12px rgba(242, 201, 76, .45); } }
.perfil-brilhos { position: absolute; inset: 0; pointer-events: none; }
.perfil-brilhos i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffe9a6; opacity: 0;
  animation: perfil-brilho 4s ease-in-out infinite; }
.perfil-brilhos i:nth-child(1) { left: 8%; top: 70%; } .perfil-brilhos i:nth-child(2) { left: 18%; top: 30%; animation-delay: .6s; }
.perfil-brilhos i:nth-child(3) { left: 30%; top: 80%; animation-delay: 1.2s; } .perfil-brilhos i:nth-child(4) { left: 45%; top: 20%; animation-delay: 1.8s; }
.perfil-brilhos i:nth-child(5) { left: 60%; top: 75%; animation-delay: 2.4s; } .perfil-brilhos i:nth-child(6) { left: 72%; top: 35%; animation-delay: .3s; }
.perfil-brilhos i:nth-child(7) { left: 85%; top: 65%; animation-delay: 1s; } .perfil-brilhos i:nth-child(8) { left: 92%; top: 15%; animation-delay: 2s; }
.perfil-brilhos i:nth-child(9) { left: 12%; top: 12%; animation-delay: 2.8s; } .perfil-brilhos i:nth-child(10) { left: 52%; top: 50%; animation-delay: 3.3s; }
@keyframes perfil-brilho { 0%, 100% { opacity: 0; transform: translateY(6px); } 50% { opacity: .9; transform: translateY(-8px); } }
.perfil-numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 560px) { .perfil-numeros { grid-template-columns: repeat(4, 1fr); } }
.perfil-numero { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .25)); border: 1px solid var(--borda);
  animation: slot-entra .45s calc(var(--i) * 70ms) cubic-bezier(.3, 1.5, .5, 1) both; }
.perfil-numero small { display: block; color: var(--texto-2); font-size: 12px; }
.perfil-numero b { font-size: 17px; color: var(--texto); }
.perfil-numero-icone { font-size: 24px; filter: drop-shadow(0 2px 0 #000); }
.perfil-equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.perfil-slot { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .07), rgba(14, 12, 22, .7) 70%); border: 2px solid var(--borda);
  text-align: center; animation: slot-entra .5s calc(var(--i) * 80ms + 150ms) cubic-bezier(.3, 1.5, .5, 1) both; }
.perfil-slot-arte { height: 64px; display: grid; place-items: center; font-size: 34px; filter: drop-shadow(0 2px 0 #000); }
img.arte-item.perfil-slot-img { width: 64px; height: 64px; transition: transform .2s; }
.perfil-slot:hover img.perfil-slot-img { transform: scale(1.1) rotate(-5deg); }
.perfil-slot small { font: 12px var(--fonte-pixel); line-height: 1.15; }
.perfil-slot.vazio { border-style: dashed; opacity: .5; }
.perfil-slot.vazio small { color: var(--texto-2); }
.perfil-slot-forja { position: absolute; top: 4px; right: 6px; font: 14px var(--fonte-pixel); color: var(--ouro); text-shadow: 0 1px 0 #000; }
.perfil-slot.raridade-incomum { border-color: var(--incomum); }
.perfil-slot.raridade-raro { border-color: var(--raro); }
.perfil-slot.raridade-epico { border-color: var(--epico); box-shadow: 0 0 12px rgba(178, 108, 255, .35); }
.perfil-slot.raridade-lendario { border-color: var(--lendario); box-shadow: 0 0 14px rgba(242, 163, 60, .45); }
.perfil-slot.raridade-mitico { border-color: var(--mitico); box-shadow: 0 0 16px rgba(255, 59, 59, .55); }
.perfil-pet-arte { width: 56px; height: 56px; display: grid; place-items: center; font-size: 34px; animation: ferramenta-balanca 2.6s ease-in-out infinite; }
.perfil-runas { display: flex; flex-wrap: wrap; gap: 6px; }
.perfil-runa { padding: 4px 10px; border-radius: 999px; background: rgba(78, 161, 255, .12); border: 1px solid rgba(78, 161, 255, .45);
  font-size: 13px; animation: slot-entra .4s calc(var(--i) * 60ms) both; }
.selos-conquista span { display: inline-block; animation: slot-entra .45s calc(var(--i) * 50ms + 200ms) cubic-bezier(.3, 1.6, .5, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .perfil-palco, .perfil-numero, .perfil-slot, .perfil-runa, .selos-conquista span, .perfil-brilhos i, .perfil-poder, .perfil-pet-arte { animation: none; }
}


/* ---------- Herói vestido (visual pelo equipamento) ---------- */
.heroi-vestido { position: relative; display: inline-block; line-height: 0; }
.heroi-vestido > img { position: relative; z-index: 1; transition: filter .4s; }
/* a arma faz o contorno do herói brilhar na cor da raridade */
.heroi-vestido.arma-incomum > img { filter: drop-shadow(0 0 2px rgba(70, 195, 123, .95)) drop-shadow(0 0 6px rgba(70, 195, 123, .6)) drop-shadow(0 4px 3px rgba(0, 0, 0, .55)); }
.heroi-vestido.arma-raro > img { filter: drop-shadow(0 0 2px rgba(78, 161, 255, 1)) drop-shadow(0 0 8px rgba(78, 161, 255, .7)) drop-shadow(0 4px 3px rgba(0, 0, 0, .55)); }
.heroi-vestido.arma-epico > img { filter: drop-shadow(0 0 2px rgba(200, 140, 255, 1)) drop-shadow(0 0 10px rgba(178, 108, 255, .8)) drop-shadow(0 4px 3px rgba(0, 0, 0, .55));
  animation: hv-pulso-epico 2.4s ease-in-out infinite; }
.heroi-vestido.arma-lendario > img { filter: drop-shadow(0 0 2px rgba(255, 210, 120, 1)) drop-shadow(0 0 12px rgba(242, 163, 60, .9)) drop-shadow(0 4px 3px rgba(0, 0, 0, .55));
  animation: hv-pulso-lendario 2s ease-in-out infinite; }
@keyframes hv-pulso-epico { 50% { filter: drop-shadow(0 0 3px rgba(220, 170, 255, 1)) drop-shadow(0 0 18px rgba(178, 108, 255, 1)) drop-shadow(0 4px 3px rgba(0, 0, 0, .55)); } }
.heroi-vestido.arma-mitico > img { filter: drop-shadow(0 0 2px rgba(255, 150, 130, 1)) drop-shadow(0 0 14px rgba(255, 59, 59, .95)) drop-shadow(0 4px 3px rgba(0, 0, 0, .55));
  animation: hv-pulso-mitico 1.6s ease-in-out infinite; }
@keyframes hv-pulso-mitico { 50% { filter: drop-shadow(0 0 4px rgba(255, 180, 160, 1)) drop-shadow(0 0 26px rgba(255, 70, 50, 1)) drop-shadow(0 4px 3px rgba(0, 0, 0, .55)); } }
@keyframes hv-pulso-lendario { 50% { filter: drop-shadow(0 0 3px rgba(255, 230, 160, 1)) drop-shadow(0 0 22px rgba(255, 190, 80, 1)) drop-shadow(0 4px 3px rgba(0, 0, 0, .55)); } }
/* aura da forja: cresce com o +nível da arma */
.hv-aura { position: absolute; z-index: 0; left: 50%; bottom: 2%; width: 80%; height: 22%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 200, 90, .8), transparent 70%); animation: hv-aura 1.8s ease-in-out infinite; }
.heroi-vestido.aura-2 .hv-aura { width: 100%; height: 34%; background: radial-gradient(ellipse, rgba(255, 150, 60, .65), transparent 70%); }
.heroi-vestido.aura-3 .hv-aura { width: 120%; height: 60%; bottom: -4%; background: radial-gradient(ellipse, rgba(255, 90, 140, .6), rgba(255, 170, 60, .25) 45%, transparent 72%); }
@keyframes hv-aura { 50% { opacity: .55; transform: translateX(-50%) scale(1.12); } }
/* peça épica ou lendária vestida: faíscas subindo em volta */
.hv-particulas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hv-particulas b { position: absolute; bottom: 8%; width: 5px; height: 5px; border-radius: 50%; opacity: 0;
  background: var(--hv-cor, #c79bff); box-shadow: 0 0 6px var(--hv-cor, #c79bff); animation: hv-faisca 2.6s ease-in infinite; }
.heroi-vestido.brilho-lendario { --hv-cor: #ffc861; }
.heroi-vestido.brilho-mitico { --hv-cor: #ff5a4a; }
.hv-particulas b:nth-child(1) { left: 12%; } .hv-particulas b:nth-child(2) { left: 28%; animation-delay: .4s; }
.hv-particulas b:nth-child(3) { left: 44%; animation-delay: .9s; } .hv-particulas b:nth-child(4) { left: 60%; animation-delay: 1.3s; }
.hv-particulas b:nth-child(5) { left: 76%; animation-delay: 1.7s; } .hv-particulas b:nth-child(6) { left: 88%; animation-delay: 2.1s; }
.hv-particulas b:nth-child(7) { left: 36%; animation-delay: 2.4s; }
@keyframes hv-faisca { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(1.1); } }
/* trocou de armadura: o herói "veste" (clarão e pulo) */
.heroi-vestido.vestindo > img { animation: hv-vestindo 1.1s cubic-bezier(.3, 1.4, .5, 1) both; }
.heroi-vestido.vestindo::after { content: ""; position: absolute; inset: -10%; z-index: 3; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 230, 150, .35) 40%, transparent 70%); animation: hv-clarao 1s ease-out both; }
@keyframes hv-vestindo { 0% { transform: scale(.7) translateY(12px); filter: brightness(3); } 60% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes hv-clarao { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) {
  .heroi-vestido > img, .hv-aura, .hv-particulas b, .heroi-vestido.vestindo::after { animation: none !important; }
}

.oficio-fita.trava { background: var(--painel-2); color: var(--texto-2); border: 1px solid var(--borda); }


/* ---------- Aplicativo instalável ---------- */
.faixa-instalar { position: fixed; left: 50%; bottom: calc(144px + env(safe-area-inset-bottom, 0px)); z-index: 25;
  transform: translateX(-50%); width: min(460px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border-radius: 16px; background: linear-gradient(135deg, #2f2650, #1f1b2e);
  border: 2px solid rgba(242, 201, 76, .55); box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  animation: faixa-instalar-sobe .55s cubic-bezier(.3, 1.5, .5, 1) both; }
.faixa-instalar img { width: 44px; height: 44px; border-radius: 10px; flex: none; animation: faixa-instalar-pula 2.4s ease-in-out infinite; }
.faixa-instalar b { display: block; font: 15px var(--fonte-pixel); color: var(--ouro); }
.faixa-instalar small { display: block; color: var(--texto-2); font-size: 12px; }
.faixa-instalar-fechar { background: none; border: 0; color: var(--texto-2); font-size: 16px; padding: 6px; cursor: pointer; }
@keyframes faixa-instalar-sobe { from { transform: translate(-50%, 120%); opacity: 0; } }
@keyframes faixa-instalar-pula { 50% { transform: translateY(-3px) rotate(-4deg); } }
@media (min-width: 1000px) { .faixa-instalar { bottom: 24px; } }
.guia-ios { text-align: center; }
.guia-ios-icone { width: 84px; height: 84px; border-radius: 20px; margin: 4px auto 10px; display: block; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.guia-ios ol { text-align: left; display: grid; gap: 10px; padding-left: 22px; }
.guia-ios-simbolo { display: inline-block; animation: faixa-instalar-pula 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .faixa-instalar, .faixa-instalar img, .guia-ios-simbolo { animation: none; } }

/* ---------- Passe: selo no topo e oferta ---------- */
.linha-topo-passe { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.selo-passe { font: 13px var(--fonte-pixel); padding: 2px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  color: #3a2600; background: linear-gradient(135deg, #ffe08a, #f2c94c 55%, #d9a72c); border: 1px solid #ffeab0;
  box-shadow: 0 0 10px rgba(242, 201, 76, .35); animation: selo-passe-brilho 3s ease-in-out infinite; }
.selo-passe.acabando { color: #fff; background: linear-gradient(135deg, #ff9a3c, #e5484d); border-color: #ffc28a;
  animation: selo-passe-pisca 1.3s ease-in-out infinite; }
.selo-passe.teste { color: #fff; background: linear-gradient(135deg, #8b6cff, #5b3fd6); border-color: #b9a6ff; }
@keyframes selo-passe-brilho { 50% { box-shadow: 0 0 16px rgba(242, 201, 76, .7); } }
@keyframes selo-passe-pisca { 50% { transform: scale(1.06); box-shadow: 0 0 16px rgba(255, 120, 60, .8); } }
.oferta-passe { position: fixed; left: 50%; bottom: calc(144px + env(safe-area-inset-bottom, 0px)); z-index: 25;
  transform: translateX(-50%); width: min(460px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border-radius: 16px; background: linear-gradient(135deg, #3b2a10, #1f1b2e 70%);
  border: 2px solid rgba(242, 201, 76, .7); box-shadow: 0 10px 28px rgba(0, 0, 0, .55), 0 0 18px rgba(242, 201, 76, .25);
  animation: faixa-instalar-sobe .55s cubic-bezier(.3, 1.5, .5, 1) both; }
.oferta-passe b { display: block; font: 15px var(--fonte-pixel); color: var(--ouro); }
.oferta-passe small { display: block; color: var(--texto-2); font-size: 12px; }
.oferta-passe-coroa { font-size: 30px; flex: none; animation: faixa-instalar-pula 2s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(242, 201, 76, .7)); }
@media (min-width: 1000px) { .oferta-passe { bottom: 24px; } }
.comparativo-passe.destaque-passe { animation: destaque-passe 2.4s ease both; }
@keyframes destaque-passe { 0%, 60% { box-shadow: 0 0 0 3px var(--ouro), 0 0 24px rgba(242, 201, 76, .6); } }
@media (prefers-reduced-motion: reduce) { .selo-passe, .oferta-passe, .oferta-passe-coroa, .comparativo-passe.destaque-passe { animation: none; } }

/* ---------- Festival da Primeira Chama ---------- */
.cartao.festival { position: relative; overflow: hidden; margin-bottom: 12px; border: 2px solid rgba(255, 140, 50, .65);
  background: radial-gradient(circle at 12% 30%, rgba(255, 120, 40, calc(var(--brilho) * .35)), transparent 55%),
    linear-gradient(160deg, #2b1610, #1b1422 70%);
  box-shadow: 0 0 calc(var(--brilho) * 26px) rgba(255, 110, 40, calc(var(--brilho) * .45)); animation: conteudo-entra .4s ease both; }
.festival-topo { display: flex; gap: 12px; align-items: center; }
.festival-titulo { font-size: 18px; color: #ffb35c; text-shadow: 0 0 8px rgba(255, 120, 40, .6); }
.festival-fogo { position: relative; flex: none; width: 72px; height: 72px; display: grid; place-items: center; font-size: 46px;
  transform: scale(calc(.8 + var(--brilho) * .35)); }
.festival-fogo > :first-child { animation: fogo-tremula 1.1s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 120, 40, .9)); }
img.festival-fogo-img { width: 72px; height: 72px; image-rendering: pixelated; }
.festival-fogo i { position: absolute; bottom: 30%; width: 4px; height: 4px; border-radius: 50%; background: #ffcf6b;
  box-shadow: 0 0 6px #ff8a3d; opacity: 0; animation: fagulha-sobe 1.8s ease-out infinite; }
.festival-fogo i:nth-child(2) { left: 30%; } .festival-fogo i:nth-child(3) { left: 50%; animation-delay: .4s; }
.festival-fogo i:nth-child(4) { left: 64%; animation-delay: .8s; } .festival-fogo i:nth-child(5) { left: 42%; animation-delay: 1.2s; }
.festival-fogo i:nth-child(6) { left: 56%; animation-delay: 1.5s; }
@keyframes fogo-tremula { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08, 1.12) rotate(2deg); } }
@keyframes fagulha-sobe { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -46px); } }
.festival-barra { position: relative; height: 14px; margin-top: 8px; border-radius: 8px; background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 140, 50, .45); overflow: visible; }
.festival-barra > span { display: block; height: 100%; border-radius: 8px; transition: width 1s ease;
  background: linear-gradient(90deg, #ff5f2e, #ffb347, #ffe08a); background-size: 200% 100%; animation: barra-fogo 2.5s linear infinite; }
@keyframes barra-fogo { to { background-position: -200% 0; } }
.festival-marca { position: absolute; top: -3px; width: 3px; height: 20px; margin-left: -2px; background: rgba(255, 255, 255, .35); border-radius: 2px; }
.festival-marca.feita { background: #ffe08a; box-shadow: 0 0 6px #ffb347; }
.festival-minhas { margin: 10px 0 6px; }
.festival-marcos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.festival-marco { display: grid; gap: 4px; align-content: start; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .3);
  border: 1px dashed var(--borda); opacity: .75; animation: slot-entra .45s calc(var(--i) * 70ms) both; }
.festival-marco small { color: var(--texto-2); font-size: 12px; }
.festival-marco.alcancado { opacity: 1; border: 1px solid rgba(255, 179, 71, .7); box-shadow: 0 0 10px rgba(255, 140, 50, .25); }
.festival-marco.resgatado { opacity: .6; border-style: solid; }
.festival-patrono { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 120, 40, .15);
  border: 1px solid rgba(255, 140, 50, .55); animation: patrono-pulsa 2s ease-in-out infinite; }
.festival-patrono.apagado { background: rgba(0, 0, 0, .25); border-color: var(--borda); color: var(--texto-2); animation: none; }
@keyframes patrono-pulsa { 50% { box-shadow: 0 0 14px rgba(255, 120, 40, .55); } }
.festival-como { margin-top: 8px; }
.brasas-ganhas { color: #ffb35c; font-weight: 700; text-shadow: 0 0 6px rgba(255, 120, 40, .6); }
.faixa-evento.patrono { background: linear-gradient(90deg, rgba(255, 95, 46, .35), rgba(255, 179, 71, .25)); border-color: #ff8a3d;
  animation: patrono-pulsa 2s ease-in-out infinite; }
.cartao.festival-dobro { border: 2px solid rgba(255, 140, 50, .7); background: linear-gradient(135deg, rgba(255, 95, 46, .18), rgba(31, 27, 46, .9));
  animation: patrono-pulsa 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .festival-fogo > :first-child, .festival-fogo i, .festival-barra > span, .festival-patrono, .faixa-evento.patrono, .cartao.festival-dobro { animation: none; }
}

/* ---------- Coliseu ao vivo: cartão e arena (coliseu.js) ---------- */
.coliseu-cartao { display: grid; gap: 10px; overflow: hidden; }
.coliseu-faixa { position: relative; margin: -12px -12px 0; height: 132px; overflow: hidden; border-bottom: 2px solid #6b4b0a; }
img.coliseu-faixa-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) saturate(1.15); animation: coliseu-zoom 14s ease-in-out infinite alternate; }
@keyframes coliseu-zoom { to { transform: scale(1.08); } }
.coliseu-faixa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20, 18, 28, .92)); }
.coliseu-faixa-texto { position: absolute; inset: auto 12px 12px; z-index: 1; font-size: 20px; }
.coliseu-liga { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; gap: 10px; align-items: center; }
.coliseu-liga-icone { font-size: 40px; filter: drop-shadow(0 0 10px rgba(242, 201, 76, .8)); animation: numero-pulsa 2.2s ease-in-out infinite; }
.coliseu-liga-nome { font-size: 22px; color: var(--ouro); text-shadow: 0 2px 0 #5a3a05; }
.coliseu-tochas i { position: absolute; top: 18px; width: 14px; height: 22px; border-radius: 50% 50% 40% 40%; z-index: 1;
  background: radial-gradient(circle at 50% 70%, #fff6b0, #ffb43d 45%, #ff5a1f 75%, transparent 80%);
  filter: blur(.5px) drop-shadow(0 0 10px #ff8a3d); animation: chama-tremula .35s ease-in-out infinite alternate; }
.coliseu-tochas i:first-child { left: 14px; } .coliseu-tochas i:last-child { right: 14px; animation-delay: -.2s; }
@keyframes chama-tremula { to { transform: scaleY(1.18) scaleX(.9) translateY(-2px); opacity: .85; } }
.coliseu-progresso .barra { height: 10px; }
.coliseu-pips { display: flex; gap: 3px; flex-wrap: wrap; max-width: 60%; justify-content: flex-end; }
.coliseu-pips i { width: 8px; height: 8px; border-radius: 2px; background: var(--ouro); box-shadow: 0 0 6px rgba(242, 201, 76, .6); }
.coliseu-regras { margin: 0; font-size: 13px; }
.coliseu-oponentes { display: grid; gap: 8px; }
.coliseu-oponente { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--raio); border: 1px solid var(--borda);
  background: linear-gradient(90deg, rgba(229, 72, 77, .12), transparent 60%), var(--painel-2); animation: entra-baixo .4s both; }
.coliseu-oponente:nth-child(2) { animation-delay: .07s; } .coliseu-oponente:nth-child(3) { animation-delay: .14s; }
@keyframes entra-baixo { from { opacity: 0; transform: translateY(10px); } }
.coliseu-op-arte { width: 64px; height: 64px; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle, rgba(255, 138, 30, .25), transparent 70%); border-radius: 50%; }
img.coliseu-op-img { width: 64px; height: 64px; object-fit: contain; transform: scaleX(-1); image-rendering: pixelated; }
.coliseu-detalhes summary { cursor: pointer; padding: 4px 0; }
.coliseu-rank { gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--borda); }

.arena-tela { position: fixed; inset: 0; z-index: 35; overflow-y: auto; overflow-x: hidden; background: #0d0b12;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.arena-fundo { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
img.arena-fundo-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) saturate(1.2) blur(1px); transform: scale(1.05); }
.arena-fundo::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 150, 50, .18), transparent 60%), linear-gradient(180deg, rgba(13, 11, 18, .3), rgba(13, 11, 18, .95) 85%); }
.arena-publico { position: absolute; left: 0; right: 0; top: 12%; height: 60px; display: flex; justify-content: space-around; opacity: .5; }
.arena-publico i { width: 10px; height: 14px; border-radius: 50% 50% 2px 2px; background: #2a2440; animation: publico-pula 1.2s ease-in-out infinite; }
.arena-publico i:nth-child(odd) { background: #3a2e4f; animation-delay: -.4s; } .arena-publico i:nth-child(3n) { background: #4a3020; animation-delay: -.8s; }
@keyframes publico-pula { 50% { transform: translateY(-4px); } }
.arena-tela.arena-tremer .arena-publico i { animation-duration: .3s; }
.arena-tocha { position: absolute; top: 28%; width: 18px; height: 28px; }
.arena-tocha.e { left: 6%; } .arena-tocha.d { right: 6%; }
.arena-tocha i { position: absolute; inset: 0; border-radius: 50% 50% 40% 40%; animation: chama-tremula .3s ease-in-out infinite alternate;
  background: radial-gradient(circle at 50% 70%, #fff6b0, #ffb43d 45%, #ff5a1f 75%, transparent 80%); filter: drop-shadow(0 0 18px #ff8a3d); }
.arena-caixa { position: relative; max-width: 560px; margin: 0 auto; display: grid; gap: 10px; }
.arena-topo { display: flex; align-items: center; gap: 8px; }
.arena-turno { color: var(--texto-2); }
.arena-auto.ligado { background: linear-gradient(135deg, #1f5a3a, #2f8a55); border-color: var(--bom); color: #fff;
  box-shadow: 0 0 12px rgba(70, 195, 123, .5); animation: numero-pulsa 1.6s ease-in-out infinite; }
.arena-palco { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 4px; min-height: 250px;
  padding: 8px 0 18px; }
.arena-palco::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: 0; height: 60px; z-index: -1;
  background: radial-gradient(ellipse at 50% 100%, rgba(196, 140, 70, .35), transparent 70%); }
.arena-lutador { position: relative; display: grid; gap: 6px; min-width: 0; }
.arena-placa { padding: 6px 8px; border-radius: var(--raio); background: rgba(20, 18, 28, .82); border: 1px solid var(--borda); min-width: 0; }
.arena-lutador.eu .arena-placa { border-color: #4b3fa0; }
.arena-lutador.ele .arena-placa { border-color: #7a2a24; }
.arena-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
.arena-nome small { color: var(--texto-2); font-size: 13px; }
.arena-placa .barra { margin-top: 4px; height: 10px; }
.arena-placa .barra span { transition: width .45s ease-out; }
.arena-placa .barra.vida-baixa span { animation: vida-pisca .8s ease-in-out infinite; }
@keyframes vida-pisca { 50% { filter: brightness(1.7); } }
.arena-recargas { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.arena-selo { position: relative; font-size: 14px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--painel-2); }
.arena-selo.esperando { filter: grayscale(1); opacity: .55; }
.arena-selo.pronta { box-shadow: 0 0 6px rgba(242, 201, 76, .55); }
.arena-selo b { position: absolute; right: -4px; bottom: -4px; font-size: 11px; background: #000; border-radius: 6px; padding: 0 3px; }
.arena-heroi { position: relative; height: 140px; display: grid; place-items: end center; }
img.arena-heroi-img { width: 128px; height: 128px; object-fit: contain; image-rendering: pixelated; animation: respira-heroi 2.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .4)); }
.arena-lutador.ele img.arena-heroi-img { transform: scaleX(-1); animation: none; }
.arena-sombra { position: absolute; bottom: -4px; width: 90px; height: 14px; border-radius: 50%; background: rgba(0, 0, 0, .45); z-index: -1; }
.arena-vs { align-self: center; font-size: 26px; color: var(--ouro); text-shadow: 0 3px 0 #8a1c12; animation: numero-pulsa 1.2s ease-in-out infinite; }
.arena-lutador.ataca .arena-heroi { animation: arena-avanca-eu .42s ease-out; }
.arena-lutador.ele.ataca .arena-heroi { animation-name: arena-avanca-ele; }
@keyframes arena-avanca-eu { 45% { transform: translateX(46px) rotate(5deg) scale(1.06); } }
@keyframes arena-avanca-ele { 45% { transform: translateX(-46px) rotate(-5deg) scale(1.06); } }
.arena-lutador.apanha .arena-heroi { animation: recuo-reacao-simples .35s ease-out; }
.arena-lutador.apanha-forte .arena-heroi { animation: arena-tremor .45s both; }
@keyframes arena-tremor { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.arena-lutador.apanha .arena-heroi img, .arena-lutador.apanha-forte .arena-heroi img { animation: arena-clarao .4s ease-out; }
@keyframes arena-clarao { 25% { filter: brightness(2.4) saturate(.3); } }
.arena-lutador.ele.apanha .arena-heroi img, .arena-lutador.ele.apanha-forte .arena-heroi img { transform: scaleX(-1); }
.arena-lutador.conjura .arena-heroi::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 150px; height: 150px; border-radius: 50%;
  transform: translateX(-50%); z-index: -1; background: radial-gradient(circle, var(--cor-eu) 0%, transparent 65%); animation: conjura .8s ease-out both; }
.arena-lutador.ele.conjura .arena-heroi::before { background: radial-gradient(circle, var(--cor-ele) 0%, transparent 65%); }
@keyframes conjura { from { opacity: 0; transform: translateX(-50%) scale(.3); } 35% { opacity: .9; } to { opacity: 0; transform: translateX(-50%) scale(1.4); } }
.arena-lutador.caiu .arena-heroi img { animation: none; filter: grayscale(1) brightness(.5); transform: rotate(-16deg) translateY(12px); transition: all .7s; }
.arena-lutador.ele.caiu .arena-heroi img { transform: scaleX(-1) rotate(-16deg) translateY(12px); }
.arena-lutador.vencedor .arena-heroi img { filter: drop-shadow(0 0 14px var(--ouro)); }
.arena-banner { position: absolute; left: 50%; top: 42%; z-index: 4; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none;
  white-space: nowrap; font-size: 26px; color: #fff; padding: 4px 14px; border-radius: 10px; background: rgba(13, 11, 18, .8);
  border: 2px solid var(--cor, #fff); text-shadow: 0 0 10px var(--cor, #fff); box-shadow: 0 0 24px var(--cor, #fff); }
.arena-banner.mostra { animation: banner-magia 1.1s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes banner-magia { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 20%, 75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
.arena-grito { position: absolute; top: 4%; z-index: 4; color: var(--ouro); font-size: 22px; pointer-events: none; animation: grito 1.2s ease-out both; }
@keyframes grito { from { opacity: 0; transform: scale(.5); } 25% { opacity: 1; transform: scale(1.2) rotate(-6deg); } to { opacity: 0; transform: translateY(-20px); } }
.arena-heroi .numero-dano { top: 20%; }
.arena-narra { min-height: 2.6em; text-align: center; padding: 6px 10px; border-radius: var(--raio); background: rgba(20, 18, 28, .75); }
.arena-acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.arena-acoes.minha-vez .arena-botao:not(:disabled) { box-shadow: 0 0 0 1px var(--ouro), 0 0 12px rgba(242, 201, 76, .35); }
.arena-botao { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px;
  align-items: center; text-align: left; padding: 8px 10px; min-height: 56px; }
.arena-botao .arena-botao-icone { grid-row: span 2; font-size: 24px; }
.arena-botao small { color: var(--texto-2); font-size: 12px; }
.arena-botao.ataque { background: linear-gradient(135deg, #4a1a14, #7a2a1c); border-color: #c2472f; }
.arena-botao.magia { background: linear-gradient(135deg, #241c4a, #3d2f7a); border-color: #6b5bd6; }
.arena-botao.cura { background: linear-gradient(135deg, #123a26, #1f5a3a); border-color: #46c37b; }
.arena-botao:disabled { filter: grayscale(.6) brightness(.75); }
.arena-recarga { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: var(--ouro); }
.arena-auto-aviso { grid-column: 1 / -1; text-align: center; }
.arena-rodape { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.arena-registro summary { cursor: pointer; }
.arena-registro #arena-log { display: grid; gap: 2px; font-size: 13px; color: var(--texto-2); max-height: 220px; overflow-y: auto; }
@media (max-width: 380px) { img.arena-heroi-img { width: 104px; height: 104px; } .arena-heroi { height: 116px; } .arena-vs { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) {
  img.coliseu-faixa-img, .coliseu-liga-icone, .coliseu-tochas i, .arena-tocha i, .arena-publico i, img.arena-heroi-img, .arena-vs, .arena-auto.ligado,
  .arena-lutador .arena-heroi, .arena-banner.mostra, .arena-grito, .coliseu-oponente { animation: none !important; }
}

/* ---------- Chefes do Dia (chefes.js) ---------- */
.chefes-topo { display: flex; align-items: center; gap: 10px; }
.chefes-chaves { display: flex; gap: 4px; }
.chefe-chave { font-size: 22px; filter: drop-shadow(0 0 6px rgba(242, 201, 76, .7)); }
.chefe-chave.gasta { filter: grayscale(1); opacity: .35; }
.chefes-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 8px 0; }
.chefe-cartao { --cor: #46c37b; position: relative; display: grid; gap: 6px; align-content: start; padding: 10px 8px; text-align: center;
  border-radius: var(--raio); border: 2px solid var(--cor); min-width: 0;
  background: radial-gradient(ellipse at 50% 25%, color-mix(in srgb, var(--cor) 22%, transparent), transparent 70%), var(--painel);
  box-shadow: 0 0 14px color-mix(in srgb, var(--cor) 25%, transparent); animation: entra-baixo .4s both; animation-delay: calc(var(--i) * .07s); }
.chefe-amarelo { --cor: #f2c94c; } .chefe-laranja { --cor: #f2843c; } .chefe-vermelho { --cor: #e5484d; }
.chefe-vermelho { animation: entra-baixo .4s both, chefe-pulsa 2.4s ease-in-out .6s infinite; animation-delay: calc(var(--i) * .07s), .6s; }
@keyframes chefe-pulsa { 50% { box-shadow: 0 0 26px color-mix(in srgb, var(--cor) 55%, transparent); } }
.chefe-dif { color: var(--cor); font-size: 20px; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.chefe-arte { position: relative; height: 92px; display: grid; place-items: center; }
img.chefe-img { width: 92px; height: 92px; object-fit: contain; image-rendering: pixelated; animation: respira-heroi 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--cor) 70%, transparent)); }
.chefe-vermelho img.chefe-img { transform: scale(1.12); }
.chefe-cartao.vencido { filter: saturate(.4); }
.chefe-cartao.vencido img.chefe-img { filter: grayscale(1) brightness(.6); animation: none; }
.chefe-selo { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%) rotate(-8deg); padding: 2px 8px; border-radius: 6px;
  background: rgba(13, 11, 18, .85); border: 1px solid var(--bom); color: var(--bom); white-space: nowrap; }
.chefe-nome { font-size: 16px; line-height: 1.1; overflow-wrap: anywhere; }
.chefe-premios { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; text-align: left; font-size: 12.5px;
  border-radius: 8px; background: rgba(0, 0, 0, .25); }
.chefe-premios li { display: flex; justify-content: space-between; gap: 6px; overflow-wrap: anywhere; }
.chefe-premios b { color: var(--cor); white-space: nowrap; }
.chefe-rank { gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--borda); }
.chefe-vitoria { display: grid; gap: 4px; margin: 8px 0; padding: 8px; border-radius: var(--raio); border: 1px solid var(--ouro);
  background: linear-gradient(180deg, rgba(242, 201, 76, .15), transparent); animation: trofeu-entra .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@media (prefers-reduced-motion: reduce) { .chefe-cartao, img.chefe-img, .chefe-vitoria { animation: none !important; } }

/* ---------- Trajes (loja de LC): sem a arte ainda, o herói ganha as cores do traje ---------- */
.amostra-traje { display: grid; place-items: center; height: 96px; border-radius: 10px;
  background: radial-gradient(circle at 50% 70%, rgba(242, 201, 76, .22), transparent 65%); }
img.traje-img { width: 88px; height: 88px; object-fit: contain; image-rendering: pixelated; }
.heroi-vestido.traje-tinta img { transition: filter .3s; }
.traje-tinta.traje-gu-rubro img { filter: sepia(.6) saturate(3) hue-rotate(-30deg) drop-shadow(0 0 6px #ff4d5e); }
.traje-tinta.traje-gu-lobo img { filter: grayscale(.5) brightness(1.15) hue-rotate(180deg) drop-shadow(0 0 8px #9ad8ff); }
.traje-tinta.traje-pa-alvorada img { filter: sepia(.4) saturate(2) brightness(1.15) drop-shadow(0 0 6px #ffe066); }
.traje-tinta.traje-pa-serafim img { filter: brightness(1.3) saturate(.6) drop-shadow(0 0 10px #fff6b0); }
.traje-tinta.traje-ma-eclipse img { filter: brightness(.75) saturate(1.6) hue-rotate(40deg) drop-shadow(0 0 8px #b26cff); }
.traje-tinta.traje-ma-astral img { filter: saturate(1.8) hue-rotate(200deg) drop-shadow(0 0 10px #6fc3ff); }
.traje-tinta.traje-ca-folha img { filter: sepia(.4) saturate(2.4) hue-rotate(60deg) drop-shadow(0 0 6px #7ee05a); }
.traje-tinta.traje-ca-falcao img { filter: sepia(.6) saturate(1.8) brightness(1.1) drop-shadow(0 0 8px #f2a33c); }
.traje-tinta.traje-ne-ossos img { filter: grayscale(.7) brightness(1.25) drop-shadow(0 0 6px #e8e2d0); }
.traje-tinta.traje-ne-palida img { filter: saturate(.5) brightness(1.2) hue-rotate(250deg) drop-shadow(0 0 10px #d6b8ff); }

/* ---------- Magias na tela da caçada: nome gritado e explosão com a cor da classe ---------- */
.magia-guerreiro { --cor-magia: #ff8a3d; } .magia-paladino { --cor-magia: #ffe066; } .magia-mago { --cor-magia: #6fc3ff; }
.magia-cacador { --cor-magia: #7ee05a; } .magia-necromante { --cor-magia: #b26cff; }
.grito-magia { position: absolute; left: 50%; top: 5%; z-index: 5; pointer-events: none; white-space: nowrap; font-family: var(--fonte-pixel);
  font-size: clamp(22px, 6vw, 34px); color: #fff; letter-spacing: 1px; -webkit-text-stroke: 1px rgba(0, 0, 0, .6);
  text-shadow: 0 0 10px var(--cor-magia), 0 0 22px var(--cor-magia), 0 3px 0 rgba(0, 0, 0, .6);
  animation: grito-magia 1.2s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes grito-magia { 0% { opacity: 0; transform: translateX(-50%) scale(2.2); } 18% { opacity: 1; transform: translateX(-50%) scale(1); }
  75% { opacity: 1; transform: translateX(-50%) scale(1.03); } 100% { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(1); } }
.fx.explosao-magia { width: 120px; height: 120px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, var(--cor-magia) 30%, color-mix(in srgb, var(--cor-magia) 40%, transparent) 55%, transparent 70%);
  mix-blend-mode: screen; animation: explosao-magia .55s ease-out forwards; }
.fx.explosao-magia.anel { background: none; border: 4px solid var(--cor-magia); box-shadow: 0 0 16px var(--cor-magia);
  animation: anel-magia .6s ease-out forwards; }
@keyframes explosao-magia { from { opacity: 1; transform: translate(-50%, -50%) scale(.2); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
@keyframes anel-magia { from { opacity: 1; transform: translate(-50%, -50%) scale(.3); } to { opacity: 0; transform: translate(-50%, -50%) scale(2); } }
@media (prefers-reduced-motion: reduce) { .grito-magia, .fx.explosao-magia { animation-duration: .01s !important; } }

/* ---------- Janelas com moldura ornamentada (couro escuro, filete dourado e cantos de metal) ---------- */
.folha-caixa { position: relative; border: 2px solid #8a6a2a;
  background: linear-gradient(180deg, rgba(58, 40, 20, .35), transparent 120px), var(--fundo);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 4px rgba(242, 201, 76, .18), 0 10px 40px rgba(0, 0, 0, .6); }
.folha-caixa::before, .folha-caixa::after { content: ""; position: absolute; top: -7px; width: 18px; height: 18px; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fff6b0 0 2px, #f2c94c 3px 5px, #8a6a2a 6px 7px, transparent 8px),
    conic-gradient(from 45deg, #f2c94c 0 25%, #8a6a2a 0 50%, #f2c94c 0 75%, #8a6a2a 0);
  transform: rotate(45deg); border-radius: 3px; box-shadow: 0 0 6px rgba(242, 201, 76, .5); }
.folha-caixa::before { left: -7px; } .folha-caixa::after { right: -7px; }
.folha-topo { position: relative; border-bottom: 2px solid #8a6a2a;
  background: linear-gradient(180deg, #3a2a14, #24190d); border-radius: 12px 12px 0 0; }
.folha-topo::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 201, 76, .6), transparent); }
.folha-topo .pixel { color: var(--ouro); font-size: 20px; text-shadow: 0 2px 0 #3a2405, 0 0 10px rgba(242, 201, 76, .35); letter-spacing: .5px; }
.cartao.recompensa { border-color: #8a6a2a; box-shadow: inset 0 0 0 3px rgba(242, 201, 76, .12); }

/* ---------- Quadro de Pedidos (pedidos.js) ---------- */
.quadro-pedidos { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  border-color: #8a6a2a; background: linear-gradient(90deg, rgba(138, 106, 42, .25), transparent 70%), var(--painel); }
.quadro-pedidos small { display: block; color: var(--texto-2); font-size: 12.5px; }
.quadro-icone { font-size: 30px; }
.quadro-pedidos.pronto { animation: numero-pulsa 1.8s ease-in-out infinite; box-shadow: 0 0 14px rgba(242, 201, 76, .4); }
.selo-novo { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ruim); color: #fff; }
.abas-pedidos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.pedido-carta { display: grid; gap: 10px; padding: 12px; border-radius: var(--raio); border: 1px solid #8a6a2a;
  background: linear-gradient(180deg, #2c2213, #1c1710); }
.pedido-npc { display: flex; gap: 10px; align-items: center; }
.pedido-npc-icone { font-size: 30px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(242, 201, 76, .15); border: 1px solid #8a6a2a; }
.pedido-texto { margin: 0; font-style: italic; color: #e8dcc0; line-height: 1.45; }
.pedido-area { display: grid; gap: 4px; margin-bottom: 10px; }
.pedido-area select { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 8px; border: 1px solid #8a6a2a;
  background: var(--painel); color: inherit; font: 16px system-ui, sans-serif; }
.pedido-premio { margin: 0; color: var(--ouro); }
.pedido-itens { display: grid; gap: 6px; }
.pedido-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--borda); }
.pedido-item.ok { border-color: var(--bom); }
.pedido-item.ok b { color: var(--bom); }
@media (prefers-reduced-motion: reduce) { .quadro-pedidos.pronto { animation: none; } }

/* ---------- Códex (codex.js) ---------- */
.codex-atalho { margin-top: 8px; border-color: var(--borda); background: var(--painel); }
.codex-busca { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #8a6a2a; background: var(--painel-2); color: var(--texto); }
.codex-tipos { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.codex-lista { display: grid; gap: 6px; }
.codex-entrada { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--borda); background: var(--painel); }
.codex-arte { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, .25); overflow: hidden; }
img.codex-img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; }
.codex-entrada .sutil { font-size: 12.5px; }
.codex-nivel { color: var(--ouro); white-space: nowrap; }

/* ---------- Caçada em bando: os outros monstros atrás do principal ---------- */
.seletor-bando { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.seletor-bando .sutil { margin-right: 4px; }
.bando-extra { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bando-extra span { position: absolute; bottom: 14%; right: calc(-18% - var(--i) * 22%); transform: scale(.72); opacity: .82;
  filter: brightness(.78); animation: respira-heroi 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.bando-extra img.monstro { width: 100%; height: auto; }
.bando-selo { position: absolute; top: 2%; right: 4%; z-index: 3; padding: 0 8px; border-radius: 8px; background: rgba(13, 11, 18, .8);
  border: 1px solid var(--ruim); color: #ffb0a8; font-size: 18px; }

/* ---------- Perda de XP na derrota e a Bênção ---------- */
.perda-xp { margin: 6px 0; padding: 6px 10px; border-radius: 8px; border: 1px solid #8a1c12; background: rgba(229, 72, 77, .12); color: #ffb0a8; }
.bencao-usada { margin: 6px 0; padding: 6px 10px; border-radius: 8px; border: 1px solid #c9e6ff; background: rgba(201, 230, 255, .12);
  color: #e6f4ff; box-shadow: 0 0 14px rgba(201, 230, 255, .35); animation: trofeu-entra .6s cubic-bezier(.3, 1.6, .5, 1) both; }

/* ---------- Curar sem sair da masmorra ---------- */
.mm-cura { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; padding: 6px 8px; border-radius: 10px;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--borda); }
.mm-cura .sutil { margin-right: auto; }

/* ---------- Troca de classe do recomeço ---------- */
.troca-classe { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; margin-bottom: 8px;
  border-color: var(--ouro); background: linear-gradient(90deg, rgba(242, 201, 76, .18), transparent 70%), var(--painel);
  animation: numero-pulsa 2s ease-in-out infinite; }
.troca-classe small { display: block; color: var(--texto-2); font-size: 12.5px; }
.classe-opcao { width: 100%; text-align: left; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .troca-classe { animation: none; } }

/* Mural de Novidades (a Praça): o que o dono fixa fica em destaque, o chat fica ao lado */
.mural { border-width: 2px; }
.mural.tem-nova { border-color: #e0a12b; box-shadow: 0 0 0 2px rgba(224, 161, 43, .35), 0 0 14px rgba(224, 161, 43, .45);
  animation: mural-brilho 2.4s ease-in-out infinite; }
@keyframes mural-brilho { 50% { box-shadow: 0 0 0 2px rgba(224, 161, 43, .2), 0 0 4px rgba(224, 161, 43, .2); } }
@media (prefers-reduced-motion: reduce) { .mural.tem-nova { animation: none; } }
.mural-titulo { font: 700 13px var(--fonte-pixel); color: #7a3b1d; }
.mural-destaque { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #fff6df; border-left: 4px solid #e0a12b; }
.mural-texto { font-size: 13px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box;
  -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.mural-texto.completo { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 14px; }
.mural-mais { margin-top: 4px; text-align: right; font-size: 12px; }
.mural-novo { display: inline-block; background: #d2452b; color: #fff; font: 700 10px var(--fonte-pixel); padding: 1px 6px;
  border-radius: 6px; vertical-align: 1px; }
.mural-item { padding: 10px 12px; border-radius: 8px; background: #1d1828; border-left: 4px solid #5b4b7a; }
.mural-item.recente { border-left-color: #e0a12b; }

/* Confirmação do próprio jogo (no lugar da janela do Telegram, que às vezes não respondia e travava o jogo) */
.confirmacao { position: fixed; inset: 0; z-index: 300; background: rgba(8, 7, 12, .72); display: grid; place-items: center; padding: 16px; }
.confirmacao-caixa { width: 100%; max-width: 380px; background: var(--fundo); border: 2px solid var(--borda); border-radius: 14px;
  padding: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: confirmacao-entra .14s ease-out; }
.confirmacao-texto { margin: 0 0 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.confirmacao-caixa .linha { gap: 8px; }
@keyframes confirmacao-entra { from { transform: scale(.94); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confirmacao-caixa { animation: none; } }

/* Jornada: faixa de risco das áreas, recomendada, Presságio e drops */
.faixa-risco { display: inline-block; margin: 4px 4px 0 0; padding: 1px 7px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.faixa-mortal { background: #4a1414; color: #ff9b8f; }
.faixa-arriscado { background: #4a3510; color: #ffcf73; }
.faixa-seguro { background: #173b1f; color: #8ff0a4; }
.faixa-folgado { background: #2a2a3a; color: #b8b8d0; }
.faixa-rec { background: #1d3150; color: #9cc8ff; }
.cartao.recomendada { border-color: #4d86d6; }
.area-recomendada { border-color: #4d86d6; background: linear-gradient(90deg, rgba(77, 134, 214, .18), transparent); }
.pressagio-mini { margin-top: 6px; font-size: 12px; }
.barra.pressagio span { background: linear-gradient(90deg, #6b3fb8, #b276ff); }
.drops-area { margin-top: 6px; }
.tabela-drops { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 4px; }
.tabela-drops td { padding: 3px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.tabela-drops td:last-child { text-align: right; white-space: nowrap; color: var(--ouro, #f2c14e); }
.selo.regional { background: linear-gradient(90deg, #6b3fb8, #b276ff); color: #fff; }
.pressagio-vitoria { margin: 6px 0; font-size: 13px; }
.vitoria-regional { background: linear-gradient(90deg, #3d1f73, #7a3fd0, #3d1f73); }
.analisador-jornada .analise-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 4px; text-align: center; }
.analisador-jornada .analise-grade > div { background: rgba(255, 255, 255, .04); border-radius: 8px; padding: 6px 2px; display: flex; flex-direction: column; }
.analisador-jornada .analise-grade b { font-size: 15px; }
.analisador-jornada .analise-grade small { font-size: 11px; opacity: .75; }
@media (max-width: 420px) { .analisador-jornada .analise-grade { grid-template-columns: repeat(2, 1fr); } }
.sinetes-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dom-jornada .dom-icone { font-size: 26px; width: 34px; text-align: center; }
.opcao-reciclar { text-align: left; width: 100%; }
.opcao-reciclar.escolhida { border-color: #4caf50; }
.reciclagem-feita { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(76, 175, 80, .15); color: #bff0c4; text-align: center; }
.dica-area-jornada { margin: 4px 0 0; padding: 6px 8px; border-radius: 8px; background: rgba(77, 134, 214, .15); font-size: 13px; }
.enquete-jornada { border-color: #4d86d6; }
.enquete-resultado { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; margin-top: 4px;
  border-radius: 8px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.enquete-resultado.meu { outline: 1px solid #4d86d6; }
.enquete-barra { position: absolute; inset: 0 auto 0 0; background: rgba(77, 134, 214, .28); }
.enquete-texto, .enquete-resultado b { position: relative; }
.selo-botao { border-color: #7a3fd0; color: #d6b8ff; }
.selo-marca { margin-top: 4px; font-size: 12px; color: #d6b8ff; }
.convite-comissao { margin: 8px 0; border-color: #4d86d6; font-size: 13px; }
.seta-ranking { font-size: 11px; font-weight: 700; margin-right: 6px; white-space: nowrap; }
.seta-ranking.sobe { color: #6fe08a; }
.seta-ranking.desce { color: #ff8a7a; }
.seta-ranking.igual { color: #888; }

/* Moradores do reino (npcs.js): retrato e fala no alto da Forja, Mercado, Coliseu e Labirinto */
.npc-reino { display: flex; align-items: flex-end; gap: 8px; margin: 4px 0 10px; }
.npc-reino-rosto { flex: 0 0 auto; width: 72px; height: 72px; display: grid; place-items: center; font-size: 40px;
  animation: respira-heroi 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
img.npc-reino-img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.npc-reino-balao { position: relative; flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--painel);
  border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; line-height: 1.35; animation: npc-balao-entra .35s ease-out; }
.npc-reino-balao::before { content: ""; position: absolute; left: -7px; bottom: 14px; border: 7px solid transparent;
  border-right-color: rgba(255, 255, 255, .12); border-left: 0; }
.npc-reino-balao b { display: block; font-size: 11px; color: #ffd86b; margin-bottom: 2px; }
@keyframes npc-balao-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .npc-reino-rosto, .npc-reino-balao { animation: none; } }

/* Loja em 3 abas (Loja · Legado Coins · Mercado) */
.abas-loja { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 10px;
  padding: 6px 0; background: var(--fundo, #141020); }
.aba-loja { padding: 9px 6px; border-radius: 10px; font-size: 13px; background: var(--painel); border: 1px solid rgba(255, 255, 255, .12);
  color: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aba-loja.ativa { background: linear-gradient(180deg, #6d4bd8, #4b2fa8); border-color: #a58bff; color: #fff; box-shadow: 0 0 10px rgba(140, 110, 255, .35); }
.secao-loja[hidden] { display: none; }

/* Mercado: filtro de tipo e anúncios de equipamento */
.tipos-mercado { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.peca-mercado .peca-mercado-rodape { margin-top: 8px; gap: 8px; align-items: center; }
.peca-nao-serve { color: #ffb86b; font-weight: normal; }

/* e-mail do Pix logo acima dos pacotes (27/11) */
.email-pix-caixa { margin-top: 8px; display: grid; gap: 4px; }
.email-pix-caixa input { width: 100%; }


/* Peças das animações (27/11): fornalha, bigorna e martelo na Forja; bancada de cada ofício na oficina */
.forja-fornalha { position: absolute; left: 6px; bottom: 6px; width: 108px; height: auto; z-index: 1; opacity: .95;
  animation: fornalha-fogo 1.6s ease-in-out infinite; image-rendering: pixelated; }
@keyframes fornalha-fogo { 0%, 100% { filter: brightness(1) drop-shadow(0 0 6px rgba(255, 140, 40, .45)); }
  50% { filter: brightness(1.18) drop-shadow(0 0 16px rgba(255, 120, 30, .8)); } }
.forja-bigorna-img { position: absolute; left: 50%; bottom: 4px; width: 150px; height: auto; transform: translateX(-50%); z-index: 1;
  image-rendering: pixelated; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .5)); }
.forja-martelo .forja-martelo-img { transform: scaleX(-1); width: 66px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .55)); }
.forja-palco:not(:has(.forja-martelo.bate)) .forja-martelo { animation: martelo-espera 2.4s ease-in-out infinite; }
@keyframes martelo-espera { 0%, 100% { transform: rotate(-35deg); } 50% { transform: rotate(-42deg) translateY(-3px); } }
@media (max-width: 380px) { .forja-fornalha { width: 80px; } }

.oficina-centro .oficina-bancada { position: absolute; inset: auto 0 0; margin: auto; width: 118px; height: auto; z-index: 0;
  image-rendering: pixelated; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .5)); }
.oficina-centro:has(.oficina-bancada) .oficina-produto { position: relative; z-index: 1; font-size: 40px; margin-bottom: 46px; }
.oficina-palco.trabalhando .oficina-bancada { animation: bancada-trabalha 1.2s ease-in-out infinite; }
@keyframes bancada-trabalha { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.oficina-palco.oficio-alquimista.trabalhando .oficina-bancada { animation: bancada-trabalha 1.2s ease-in-out infinite, caldeirao-brilha 1.8s ease-in-out infinite; }
@keyframes caldeirao-brilha { 0%, 100% { filter: drop-shadow(0 0 4px rgba(150, 120, 255, .5)); } 50% { filter: drop-shadow(0 0 14px rgba(150, 120, 255, .95)); } }
.oficina-palco.oficio-cozinheiro.trabalhando .oficina-centro::after,
.oficina-palco.oficio-alquimista.trabalhando .oficina-centro::after { content: ""; position: absolute; left: 50%; bottom: 62px; width: 26px; height: 26px;
  margin-left: -13px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 70%); z-index: 2;
  animation: vapor 1.6s ease-out infinite; pointer-events: none; }
@keyframes vapor { 0% { transform: translateY(0) scale(.6); opacity: .8; } 100% { transform: translateY(-40px) scale(1.6); opacity: 0; } }
.oficina-palco.oficio-ferreiro.trabalhando .oficina-bancada,
.oficina-palco.oficio-tesouros.trabalhando .oficina-bancada { animation: bancada-trabalha .6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .forja-fornalha, .forja-martelo, .oficina-bancada, .oficina-centro::after { animation: none !important; }
}
.forja-palco:has(.forja-bigorna-img) .forja-bigorna-img { width: 128px; }
.forja-palco:has(.forja-bigorna-img) .forja-peca { bottom: 104px; }
.forja-icone .forja-peca-img { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; display: block; }
.forja-palco:has(.forja-bigorna-img) .forja-martelo { bottom: 128px; right: calc(50% - 118px); }

/* 28/11: quem veste traje ganha moldura dourada no retrato do chat */
.rostinho.com-traje { box-shadow: 0 0 0 2px #f5c542, 0 0 8px rgba(245, 197, 66, .55); border-radius: 50%; }

/* Painel "O que a guilda te dá hoje" (01/12) */
.beneficios-guilda { display: grid; gap: 6px; }
.beneficios-guilda h3 { margin: 0 0 2px; }

/* Abas internas da Caçar (01/12) */
.abas-caca { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 10px; }
.abas-caca button { position: relative; display: grid; justify-items: center; gap: 1px; min-height: 48px; padding: 5px 2px;
  border-radius: 10px; background: var(--painel); border: 1px solid rgba(255, 255, 255, .12); color: var(--texto-2); }
.abas-caca button span { font-size: 18px; line-height: 1.1; }
.abas-caca button small { font-size: 11px; white-space: nowrap; }
.abas-caca button[aria-selected="true"] { color: var(--texto); background: var(--painel-2); border-color: var(--ouro); }
.abas-caca .ponto-secao { position: absolute; top: 4px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #e74c3c; }
.abas-caca .ponto-secao[hidden] { display: none; }
.secao-caca[hidden] { display: none; }

/* ---------- Campo vivo (01/12): a cena do bioma no topo da Caçar ---------- */
.campo { position: relative; height: 230px; margin: 12px 0 10px; border: 2px solid var(--borda); border-radius: var(--raio);
  overflow: hidden; background: #1c2a1c var(--fundo-arte) center 35% / cover no-repeat; image-rendering: pixelated; isolation: isolate; }
.campo-ceu { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(10, 12, 24, .05), rgba(10, 12, 24, 0) 40%, rgba(16, 20, 12, .35)); }
.campo[data-periodo="noite"] .campo-ceu { background: linear-gradient(to bottom, rgba(8, 10, 40, .62), rgba(12, 14, 46, .48));
  mix-blend-mode: multiply; }
.campo[data-periodo="entardecer"] .campo-ceu { background: linear-gradient(to bottom, rgba(255, 120, 40, .22), rgba(120, 40, 80, .2)); }
.campo[data-periodo="amanhecer"] .campo-ceu { background: linear-gradient(to bottom, rgba(255, 170, 200, .2), rgba(255, 220, 160, .08)); }
.campo-chao { position: absolute; left: 0; right: 0; bottom: 0; height: 48%; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .28)); }
.campo .clima { z-index: 300; }
.campo-topo { position: absolute; left: 0; right: 0; top: 0; z-index: 400; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: linear-gradient(to bottom, rgba(14, 12, 22, .78), rgba(14, 12, 22, 0)); pointer-events: none; }
.campo-nome { margin: 0; font-size: 16px; text-shadow: 0 2px 0 #000, 0 0 8px #000; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campo-online { font-size: 12px; text-shadow: 0 1px 0 #000; white-space: nowrap; }
.campo-botao { pointer-events: auto; min-height: 30px; padding: 2px 8px; opacity: .8; }
.campo-leve[aria-pressed="true"] { opacity: 1; border-color: var(--ouro); }
.campo-ator { position: absolute; left: 0; top: 0; will-change: transform; transform-origin: 50% 100%; }
.campo-ator::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: -3%; height: 12%; border-radius: 50%;
  background: radial-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 70%); }
.campo-ator.ca-fogueira::before { background: radial-gradient(rgba(255, 150, 40, .55), rgba(255, 150, 40, 0) 70%); left: -40%; right: -40%;
  height: 60%; bottom: -20%; }
.campo-corpo { position: relative; width: 100%; height: 100%; transform-origin: 50% 100%; display: grid; place-items: end center; }
.campo-corpo .heroi-vestido { display: block; width: 100%; height: 100%; }
.campo-img, .campo-corpo img.arte { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.campo-ator.ca-monstro, .campo-ator.ca-vizinho { cursor: pointer; }
.campo-ator.ca-monstro.campo-golpe .campo-corpo img { animation: campo-golpe .35s ease-out; }
@keyframes campo-golpe { 0% { filter: brightness(3) drop-shadow(0 0 6px #fff); } 100% { filter: none; } }
.campo-fogo { font-size: 26px; line-height: 1; display: inline-block; transform-origin: 50% 100%;
  animation: fogueira 1.1s ease-in-out infinite alternate; }
.campo[data-periodo="noite"] .campo-ator.ca-fogueira::before { background: radial-gradient(rgba(255, 160, 50, .75), rgba(255, 160, 50, 0) 70%);
  left: -120%; right: -120%; height: 120%; bottom: -50%; }
.campo-rotulo { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); font-size: 10px; white-space: nowrap; color: #e9e4ff;
  text-shadow: 0 1px 0 #000, 0 0 4px #000; pointer-events: none; }
.campo-ator.ca-heroi .campo-rotulo { color: var(--ouro); }
@media (max-width: 380px) { .campo { height: 200px; } }
/* fase 2: desenho com quadros (linha 1 parado, linha 2 andando; quadros quadrados) */
.campo-sprite { width: 100%; height: 100%; background-repeat: no-repeat; background-size: 400% 200%; background-position: 0 0;
  image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
/* fase 3: a Praça da Cidadela (abre numa folha) */
.campo.praca { height: min(56vh, 420px); margin: 0 0 10px; }
.campo.praca .campo-topo { justify-content: flex-end; }
.campo-ator.ca-morador .campo-corpo { filter: saturate(.9); }
.online-bioma.abre-praca { cursor: pointer; text-decoration: underline dotted; }
body.modo-leve .campo-fogo, body.modo-leve #fundo-pagina .clima, body.modo-leve .passeante { animation: none; }
body.modo-leve #fundo-pagina .clima { display: none; }
@media (prefers-reduced-motion: reduce) { .campo-fogo { animation: none; } }

/* Meta da Forja (02/12) */
.meta-forja-peca { display: grid; gap: 6px; }
.meta-forja-custos { display: grid; gap: 2px; font-size: 13px; }
.teto-ouro { font-size: 12px; margin: 2px 0; }

/* Batalha animada (02/12): desenho quadro a quadro na luta (linha 1 parado, 2 ataque, 3 dano) */
.lsprite { width: 100%; aspect-ratio: 1; background-repeat: no-repeat; image-rendering: pixelated; --linha: 0%;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45));
  animation: lsprite-quadros calc(var(--n) * var(--ms)) steps(var(--n), jump-none) infinite; }
.lsprite.uma-vez { animation-iteration-count: 1; animation-fill-mode: forwards; }
/* n quadros: steps(n, jump-none) mostra as posições 0 .. (n-1)/c, cada uma pelo mesmo tempo, e termina no último quadro */
@keyframes lsprite-quadros { from { background-position: 0 var(--linha); } to { background-position: calc((var(--n) - 1) / var(--c) * 100%) var(--linha); } }
.lsprite.heroi-palco { width: clamp(120px, 30vw, 190px); }
.ator-monstro .lsprite.monstro { transform: scaleX(-1); }
.ator-heroi .lsprite.virado { transform: scaleX(-1); }      /* investida: volta de frente para onde vai */
.ator-monstro .lsprite.monstro.virado { transform: none; }
.ator-monstro.fraco .lsprite.monstro { width: clamp(110px, 28vw, 170px); }
.ator-monstro.medio .lsprite.monstro { width: clamp(125px, 32vw, 200px); }
.ator-monstro.forte .lsprite.monstro { width: clamp(140px, 36vw, 235px); }
.ator .respira:has(> .lsprite) { animation: none; }
body.modo-leve .lsprite { animation: none; }
@media (prefers-reduced-motion: reduce) { .lsprite { animation: none; } }

/* Labirinto (02/12): o "Sair com a bolsa" fica longe das portas, separado por uma linha */
.sair-labirinto-linha { margin-top: 22px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .15); text-align: right; }

/* Chefe de Elite da Semana (02/12) */
.elite-vitrine { text-align: center; }
.elite-palco { position: relative; width: 170px; margin: 0 auto; }
.elite-palco .lsprite, .elite-palco img { width: 170px; position: relative; z-index: 1; }
.elite-palco .lsprite.monstro { transform: scaleX(-1); }
.elite-aura { position: absolute; inset: 15% 10% 0; border-radius: 50%; background: radial-gradient(rgba(255, 70, 40, .55), transparent 70%);
  filter: blur(6px); animation: pulsar 1.8s ease-in-out infinite; }
.elite-nome { font-size: 18px; color: #ff8a5c; margin: 6px 0; }
.elite-faixa { font-size: 14px; }
.elite-eu { background: rgba(255, 138, 92, .12); border-radius: 6px; }
.elite-premio { border-color: var(--ouro); }
.ator-monstro.elite .respira { filter: drop-shadow(0 0 10px rgba(255, 70, 40, .9)) drop-shadow(0 0 3px rgba(255, 140, 60, .9)); }
.elite-placar { display: flex; justify-content: space-around; gap: 12px; margin: 4px 0 6px; text-align: center; }
.elite-dano { font-size: 20px; color: #ffd27a; }
.elite-furia { font-size: 20px; color: #ff6b4a; }
@media (prefers-reduced-motion: reduce) { .elite-aura { animation: none; } }

/* Áreas vivas (02/12): clima da região na luta e o cenário com um leve movimento de câmera */
.palco .clima-luta { z-index: 0; }
.arena-viva[data-fundo] { animation: camera-arena 38s ease-in-out infinite alternate; }
@keyframes camera-arena { from { background-position: center, 35% 50%; } to { background-position: center, 65% 50%; } }
.campo { animation: camera-campo 46s ease-in-out infinite alternate; }
@keyframes camera-campo { from { background-position: 46% 50%; } to { background-position: 54% 48%; } }
body.modo-leve .arena-viva, body.modo-leve .campo { animation: none; }
@media (prefers-reduced-motion: reduce) { .arena-viva, .campo { animation: none; } }

/* Praça como centro da cidade (02/12) */
.praca-servicos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; margin: 8px 0; }
.praca-servicos button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; }
.praca-servicos small { color: var(--texto-sutil, #a9a3b8); font-size: 11px; }
.ca-morador { cursor: pointer; }
.ca-morador .campo-rotulo { color: #ffd98a; }
button.link-praca { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; width: 100%; text-align: left; }
.campo-praca { font-size: 12px; }
.campo-rotulo-servico { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.campo-rotulo-servico small { font-size: 9px; color: #f3e7c4; opacity: .9; }
.botao-praca { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 10px 12px; text-align: left;
  border: 2px solid #8a6a12; border-radius: var(--raio); color: var(--texto);
  background: linear-gradient(90deg, rgba(242, 201, 76, .18), rgba(139, 108, 255, .12)); }
.botao-praca:hover { border-color: var(--ouro); }
.botao-praca small { display: block; color: var(--texto-sutil, #b9b2c8); font-size: 12px; }
.botao-praca-icone { font-size: 26px; }
/* o "Praça" do menu lateral só no PC (no celular, as abas de baixo ganhavam um 7º botão torto) */
.abas .link-praca { display: none; }
@media (min-width: 1000px) { .abas .link-praca { display: flex; } }

/* Praça grande (02/12, pedido do dono): no PC quase a tela toda; no celular a largura inteira, mais alta */
.folha-praca .folha-caixa { max-width: min(1180px, 96vw); }
.folha-praca .campo.praca { height: auto; aspect-ratio: 16 / 9; max-height: 68vh; }
@media (max-width: 999px) { .folha-praca .campo.praca { aspect-ratio: 1 / 1; max-height: 60vh; } }

/* estrelas dos pets (02/12) */
.estrelas-pet{color:var(--ouro);letter-spacing:2px;font-size:14px;line-height:1.2}
.falta-estrela{color:var(--ouro);margin:8px 0}

/* Defesa da Cidadela (02/12) */
.defesa-cidadela{border-color:#7a5cff}
.defesa-cidadela.aberta{box-shadow:0 0 0 2px #ff5a5a inset, 0 0 18px rgba(255,90,90,.35)}
.barra-defesa{height:12px;border-radius:6px;background:rgba(255,255,255,.08);border:1px solid var(--borda);overflow:hidden;margin:4px 0 8px}
.barra-defesa span{display:block;height:100%;background:linear-gradient(90deg,#4fd18b,var(--ouro));transition:width .4s}
.botao-defesa{margin:8px 0;border-color:#7a5cff}

/* Velas de cada membro (líder e oficiais, 03/12) */
.velas-membros { margin-top: 10px; }
.velas-membros summary { cursor: pointer; padding: 4px 0; }
.velas-membros .linha { gap: 8px; }
.velas-membros .sem-vela b { color: var(--ruim); }

/* Ficha do herói (03/12) */
.ficha-linha summary { cursor: pointer; list-style: none; }
.ficha-linha summary::-webkit-details-marker { display: none; }
.ficha-linha[open] summary { margin-bottom: 6px; border-bottom: 1px solid var(--borda); padding-bottom: 6px; }
.ficha-linha .linha { gap: 8px; }
.ficha-sub { margin-top: 6px; }

/* O que o item faz (Mochila e Mercado, 04/12) */
.texto-item { margin: 4px 0; font-size: 0.92em; line-height: 1.35; }
p.texto-item { color: var(--texto-2); }
.oficio-cartao .oficio-texto { display: block; font-size: 0.78em; line-height: 1.3; color: var(--texto-2); margin-top: 2px; white-space: normal; }
