/* Eternal War — site. Escuro e dourado, como a interface do jogo. */
:root {
  --fundo: #120c1c;
  --fundo-2: #0f0b1ab8;
  --painel: #160f22c4;
  --borda: #5a4026;
  --ouro: #d9a441;
  --ouro-claro: #f3d28a;
  --texto: #eadfcf;
  --texto-2: #b5a58f;
  --vermelho: #c0392b;
  --verde: #6fbf73;
  --azul: #2f5fb3;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0d0a18;
  color: var(--texto);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}
/* o fundo da página inteira: azul à esquerda, vermelho à direita, com brilhos suaves (fixo atrás de tudo) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 0% 20%, #2a4fb045, #0000 70%),
    radial-gradient(ellipse 60% 50% at 100% 80%, #b0281c45, #0000 70%),
    radial-gradient(ellipse 50% 40% at 50% 50%, #ffb04012, #0000 70%),
    linear-gradient(100deg, #0a1636 0%, #11102a 38%, #1a0d22 55%, #2a0c12 78%, #350a0a 100%);
}
img { max-width: 100%; display: block; }
a { color: var(--ouro-claro); }
h1, h2, h3 { font-weight: normal; letter-spacing: 0.04em; margin: 0 0 0.5em; }
h2 { font-size: 2rem; color: var(--ouro); text-transform: uppercase; text-align: center; }
h2 + .sub { text-align: center; color: var(--texto-2); margin: -0.3em auto 2.2em; max-width: 640px; }

/* --- topo / navegação ----------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 32px;
  background: linear-gradient(90deg, #08122ce6, #120c1ee6 50%, #220a0ce6);
  border-bottom: 1px solid #ffffff14;
  backdrop-filter: blur(4px);
}
.nav .marca img { height: 38px; width: auto; }
.nav .links { display: flex; gap: 22px; flex: 1; }
.nav .links a, .nav .conta a {
  color: var(--texto-2); text-decoration: none; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem;
}
.nav .links a:hover, .nav .conta a:hover { color: var(--ouro-claro); }
.nav .conta { display: flex; gap: 14px; align-items: center; font-size: 0.85rem; color: var(--texto-2); }
.nav .conta .nome { color: var(--ouro-claro); }
.menu-botao { display: none; background: none; border: 1px solid var(--borda); color: var(--ouro); font-size: 1.2rem; padding: 2px 10px; border-radius: 4px; }

/* --- botões ---------------------------------------------------------------------------------- */
.botao {
  display: inline-block; cursor: pointer;
  padding: 14px 44px;
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: #fff7e6;
  background: linear-gradient(#d9892b, #a2531a);
  border: 1px solid #f0b960; border-radius: 4px;
  box-shadow: 0 0 0 3px #0008, 0 6px 24px #d9892b44;
  transition: filter 0.15s, transform 0.15s;
}
.botao:hover { filter: brightness(1.12); transform: translateY(-1px); }
.botao:disabled { filter: grayscale(0.8) brightness(0.7); cursor: default; transform: none; }
.botao.secundario { background: transparent; color: var(--ouro-claro); border-color: var(--borda); box-shadow: none; }
.botao.pequeno { padding: 8px 18px; font-size: 0.85rem; }

/* --- abertura: Humanos (azul) x Horda (vermelho), heróis em camadas 3D -------------------------- */
:root { --az: #3d7bff; --az-claro: #8fb8ff; --vm: #ff3b2a; --vm-claro: #ff9a7a; }
.abertura {
  --mx: 0.5;             /* posição do mouse (0 = esquerda, 1 = direita): mexe na divisa e no brilho de cada lado */
  --rola: 0;             /* quanto da abertura já rolou (0 a 1) */
  position: relative; height: 100vh; min-height: 620px; max-height: 1100px;
  overflow: hidden; background: transparent;
}
.abertura .palco { position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 40%; }
.abertura .cena {
  --divisa: calc(50% + (var(--mx) - 0.5) * 10%);
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(calc(var(--rola) * 140px));
}
.abertura .ceu {
  position: absolute; inset: -12% -14%; background-size: cover; background-position: center 30%;
  transform: translateZ(-420px) scale(1.5);
}
.abertura .ceu.human { background-image: url(../img/topo_human.webp);
  clip-path: polygon(0 0, calc(var(--divisa) + 4%) 0, calc(var(--divisa) - 4%) 100%, 0 100%);
  filter: brightness(calc(0.42 + (1 - var(--mx)) * 0.3)) saturate(0.8); }
.abertura .ceu.orc { background-image: url(../img/topo_orc.webp);
  clip-path: polygon(calc(var(--divisa) + 4%) 0, 100% 0, 100% 100%, calc(var(--divisa) - 4%) 100%);
  filter: brightness(calc(0.42 + var(--mx) * 0.3)) saturate(0.8); }
.abertura .ceu::after { content: ""; position: absolute; inset: 0; mix-blend-mode: color; opacity: 0.75; }
.abertura .ceu.human::after { background: linear-gradient(100deg, #0a2a8a, #2f6bff); }
.abertura .ceu.orc::after { background: linear-gradient(100deg, #ff2a10, #7a0a04); }
/* a fenda de energia entre os dois lados */
.abertura .fenda {
  position: absolute; top: -12%; bottom: -12%; left: calc(var(--divisa) - 2px); width: 4px;
  transform: translateZ(-410px) scale(1.5) skewX(-4.5deg);
  background: linear-gradient(#fff0, #fff 30%, #ffe2a8 60%, #fff0);
  box-shadow: 0 0 18px 6px #ffd27a99, -40px 0 90px 30px #3d7bff44, 40px 0 90px 30px #ff3b2a44;
  animation: fenda 2.6s ease-in-out infinite;
}
@keyframes fenda { 50% { opacity: 0.55; } }
.abertura .brasas { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(-120px) scale(1.14); pointer-events: none; }
.abertura .chao {
  position: absolute; left: -20%; right: -20%; bottom: -6%; height: 34%;
  transform: translateZ(-60px) scale(1.08);
  background: radial-gradient(ellipse 60% 70% at 50% 100%, #000d, #0000 70%),
              linear-gradient(90deg, #08142e 0%, #0a0c14 50%, #2a0806 100%);
  -webkit-mask: linear-gradient(#0000, #000 45%); mask: linear-gradient(#0000, #000 45%);
}
/* exércitos */
.abertura .tropa { position: absolute; bottom: 7%; width: 46%; height: 60%; transform-style: preserve-3d; }
.abertura .tropa.human { left: 0; transform: translateX(calc(var(--rola) * 9vw)); }
.abertura .tropa.orc { right: 0; transform: translateX(calc(var(--rola) * -9vw)); }
.heroi {
  position: absolute; bottom: 0; transform-style: preserve-3d; cursor: pointer;
  transform: translate3d(calc(var(--pe) * -1px), var(--y, 0px), var(--z, 0px));
  transition: transform 0.35s cubic-bezier(.2,.8,.3,1.2), filter 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.sprite .corpo {
  width: calc(var(--lw) * 1px); height: calc(var(--lh) * 1px);
  background-image: var(--parado); background-repeat: no-repeat;
  background-size: calc(var(--n) * var(--lw) * 1px) 100%;
  animation: quadros calc(var(--n) / var(--fps) * 1s) steps(var(--n)) infinite;
  animation-delay: var(--atraso, 0s);
  filter: drop-shadow(0 0 10px var(--brilho)) drop-shadow(0 10px 8px #000c);
}
.sprite.vira .corpo { transform: scaleX(-1); }
.sprite.ataca .corpo { background-image: var(--ataque); background-size: calc(var(--na) * var(--lw) * 1px) 100%;
  animation: quadros-ataque calc(var(--na) / var(--fps-a) * 1s) steps(var(--na)) 1 forwards; }
.pausado .sprite .corpo { animation-play-state: paused; }
@keyframes quadros { to { background-position-x: calc(var(--n) * var(--lw) * -1px); } }
@keyframes quadros-ataque { to { background-position-x: calc(var(--na) * var(--lw) * -1px); } }
/* só o corpo do herói pega o mouse (as caixas transparentes dos da frente não podem cobrir os de trás) */
.abertura .palco, .abertura .cena, .abertura .cena > *, .heroi { pointer-events: none; }
.heroi .alvo {
  position: absolute; left: calc(var(--pe) * 1px); width: calc(var(--lw) * 0.42px); top: 10%; bottom: calc(var(--sob) * 1px);
  translate: -50% 0; pointer-events: auto; cursor: pointer;
}
.heroi::before { /* sombra no chão */
  content: ""; position: absolute; left: calc(var(--pe) * 1px); bottom: calc(var(--sob) * 1px - 9px); width: calc(var(--lw) * 0.5px); height: 18px;
  translate: -50% 0; background: radial-gradient(#000b, #0000 70%);
}
.tropa.human .heroi { --brilho: #3d7bff55; }
.tropa.orc .heroi { --brilho: #ff3b2a55; }
.sprite { --brilho: #0000; }
/* monstros ao fundo, no meio dos dois exércitos */
.abertura .tropa.monstros { left: 0; right: 0; width: auto; bottom: 9%;
  transform: translateY(calc(var(--rola) * 30px)); }
.heroi.monstro.surgindo { animation: surge-nevoa 7s ease-in-out forwards; }
@keyframes surge-nevoa {
  0% { opacity: 0; filter: brightness(0.3) blur(6px); translate: 0 40px; }
  14% { opacity: 1; filter: brightness(0.8) blur(0); translate: 0 0; }
  82% { opacity: 1; filter: brightness(0.8) blur(0); translate: 0 0; }
  100% { opacity: 0; filter: brightness(0.3) blur(6px); translate: 0 30px; }
}
.voador {
  position: absolute; left: 0; opacity: 0.9; filter: brightness(0.7) saturate(0.85);
  animation: voo var(--duracao, 18s) linear forwards;
}
.voador.ida { animation-name: voo-ida; }
@keyframes voo-ida {
  0% { transform: translate(-30vw, 30px); }
  33% { transform: translate(20vw, -10px); }
  66% { transform: translate(70vw, 25px); }
  100% { transform: translate(125vw, -10px); }
}
.pausado .voador, .pausado .heroi.monstro.surgindo { animation-play-state: paused; }
.heroi.monstro { --brilho: #7dff6a33; filter: brightness(0.8) saturate(0.9); }
.heroi.monstro:hover { filter: brightness(1.1); }
.tropa.monstros .heroi:hover .corpo { filter: drop-shadow(0 0 16px #9dff7a) drop-shadow(0 10px 8px #000c); }
.tropa.monstros .heroi .nome { color: #c8ffb0; border: 1px solid #7dff6a88; }
/* o Dragão Ancestral cruza o céu de tempos em tempos */
.abertura .voo { position: absolute; inset: 0; transform: translateZ(-300px) scale(1.4); }
.dragao {
  position: absolute; top: 4%; left: 0; opacity: 0.85;
  filter: brightness(0.55) saturate(0.7) drop-shadow(0 0 18px #ff6a2a55);
  animation: voo 32s linear infinite; animation-delay: -6s;
}
@keyframes voo {
  0% { transform: translate(120vw, 40px); }
  25% { transform: translate(80vw, -10px); }
  50% { transform: translate(40vw, 30px); }
  75% { transform: translate(0vw, -15px); }
  100% { transform: translate(-60vw, 20px); }
}
.pausado .dragao { animation-play-state: paused; }

.heroi:hover, .heroi.foco {
  z-index: 5; filter: brightness(1.18);
  transform: translate3d(calc(var(--pe) * -1px), calc(var(--y, 0px) - 6px), calc(var(--z, 0px) + 70px));
}
.tropa.human .heroi:hover .corpo, .tropa.human .heroi.foco .corpo { filter: drop-shadow(0 0 16px #5d95ff) drop-shadow(0 10px 8px #000c); }
.tropa.orc .heroi:hover .corpo, .tropa.orc .heroi.foco .corpo { filter: drop-shadow(0 0 16px #ff5a3a) drop-shadow(0 10px 8px #000c); }
.heroi .nome {
  position: absolute; left: calc(var(--pe) * 1px); top: 0; translate: -50% 6px; white-space: nowrap; pointer-events: none;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
  background: #000b; opacity: 0; transition: opacity 0.2s, translate 0.2s;
}
.tropa.human .heroi .nome { color: var(--az-claro); border: 1px solid #3d7bff88; }
.tropa.orc .heroi .nome { color: var(--vm-claro); border: 1px solid #ff3b2a88; }
.heroi:hover .nome, .heroi.foco .nome { opacity: 1; translate: -50% -10px; }
/* nomes das facções acima de cada exército */
.abertura .bandeira {
  position: absolute; top: 40%; font-size: clamp(1.2rem, 2.6vw, 2.4rem); letter-spacing: 0.3em; text-transform: uppercase;
  transform: translateZ(-200px) scale(1.22); pointer-events: none;
}
.abertura .bandeira.human { left: 6%; color: var(--az-claro); text-shadow: 0 0 24px #3d7bffaa;
  opacity: calc(0.35 + (1 - var(--mx)) * 0.65); }
.abertura .bandeira.orc { right: 6%; color: var(--vm-claro); text-shadow: 0 0 24px #ff3b2aaa;
  opacity: calc(0.35 + var(--mx) * 0.65); }
/* texto e botões na frente de tudo */
.abertura .frente {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
  padding: max(80px, 10vh) 20px 0;
  opacity: calc(1 - var(--rola) * 1.6); transform: translateY(calc(var(--rola) * -80px));
}
.abertura .frente > * { pointer-events: auto; }
.abertura .frente .logo { pointer-events: none; }
.abertura .logo { width: min(520px, 84vw); filter: drop-shadow(0 8px 30px #000) drop-shadow(0 0 40px #0008); }
.abertura .frase { font-size: 1.25rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 4px 0 22px; text-shadow: 0 2px 8px #000; color: #e9dcc6; }
.abertura .frase .az { color: var(--az-claro); }
.abertura .frase .vm { color: var(--vm-claro); }
.abertura .acoes { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.abertura .botao.secundario { background: #000a; }
.abertura .nota { margin-top: 12px; color: var(--texto-2); font-size: 0.9rem; text-shadow: 0 1px 4px #000; }
.abertura .dica {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 3; pointer-events: none;
  color: #fffa; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: calc(1 - var(--rola) * 4); animation: dica 2s ease-in-out infinite;
}
@keyframes dica { 50% { translate: -50% 6px; } }
.abertura .dica .cel { display: none; }
.abertura { -webkit-mask: linear-gradient(#000 88%, #0000); mask: linear-gradient(#000 88%, #0000); }
@media (prefers-reduced-motion: reduce) {
  .sprite .corpo, .abertura .fenda, .abertura .dica, .dragao { animation: none; }
  .revela { opacity: 1 !important; transform: none !important; }
}

/* --- seções ---------------------------------------------------------------------------------- */
section.bloco { padding: 90px 24px; max-width: 1180px; margin: 0 auto; }
.divisor { height: 1px; max-width: 900px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--borda), transparent); }

.recursos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .recursos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .recursos { grid-template-columns: 1fr; } }
.recurso {
  background: linear-gradient(var(--painel), var(--fundo-2));
  border: 1px solid #ffffff1a; border-radius: 6px; padding: 26px 24px; backdrop-filter: blur(3px);
}
.recurso img { width: 56px; height: 56px; margin-bottom: 12px; }
.recurso h3 { color: var(--ouro-claro); font-size: 1.15rem; }
.recurso p { color: var(--texto-2); margin: 0; font-size: 0.98rem; }

/* facções */
.faccoes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.faccao {
  position: relative; overflow: hidden;
  display: flex; gap: 22px; align-items: center;
  padding: 28px; border-radius: 6px; border: 1px solid #3a2a1a;
  background: var(--painel);
}
.faccao::before { content: ""; position: absolute; inset: 0; opacity: 0.18; background-size: cover; background-position: center; }
.faccao.human::before { background-image: url(../img/fundo_cidade_humana.webp); }
.faccao.orc::before { background-image: url(../img/fundo_cidade_orc.webp); }
.faccao > * { position: relative; }
.faccao img { width: 120px; flex: none; filter: drop-shadow(0 6px 14px #000); }
.faccao h3 { font-size: 1.6rem; margin: 0; }
.faccao.human h3 { color: #8fb4f0; }
.faccao.orc h3 { color: #e0715f; }
.faccao .titulo { color: var(--ouro); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.faccao p { color: var(--texto-2); margin: 8px 0 0; }

/* classes */
.abas { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.aba { background: transparent; border: 1px solid var(--borda); color: var(--texto-2); font-family: var(--serif); font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 22px; border-radius: 4px; cursor: pointer; }
.aba.ativa { color: #fff7e6; background: #3a2614; border-color: var(--ouro); }
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.classe {
  cursor: pointer; text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #2a1d12, var(--fundo-2) 70%);
  border: 1px solid #3a2a1a; border-radius: 6px; padding: 22px 16px 18px;
  transition: border-color 0.15s, transform 0.15s;
}
.classe:hover, .classe.aberta { border-color: var(--ouro); transform: translateY(-2px); }
.classe .figura { height: 210px; display: flex; align-items: flex-end; justify-content: center; }
.classe .figura img { max-height: 210px; width: auto; filter: drop-shadow(0 8px 10px #000a); }
.classe h3 { margin: 14px 0 2px; color: var(--ouro-claro); font-size: 1.2rem; }
.classe .tipo { color: var(--texto-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.detalhe {
  grid-column: 1 / -1;
  background: var(--painel); border: 1px solid var(--borda); border-radius: 6px; padding: 26px 28px;
}
.detalhe h3 { color: var(--ouro); }
.detalhe .desc { color: var(--texto-2); margin-bottom: 18px; }
.habs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.hab { display: flex; gap: 12px; align-items: flex-start; background: var(--fundo-2); border: 1px solid #2e2116; border-radius: 4px; padding: 10px; }
.hab img { width: 44px; height: 44px; border-radius: 4px; flex: none; }
.hab b { color: var(--ouro-claro); font-weight: normal; }
.hab .nv { color: var(--texto-2); font-size: 0.8rem; }
.hab p { margin: 2px 0 0; color: var(--texto-2); font-size: 0.88rem; line-height: 1.4; }

/* novidades */
.novidades { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.novidade { background: var(--painel); border-left: 3px solid var(--ouro); padding: 16px 22px; border-radius: 0 6px 6px 0; }
.novidade .data { color: var(--ouro); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.novidade h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.novidade p { margin: 0; color: var(--texto-2); }

/* chamada final */
.chamada { text-align: center; padding: 80px 20px 100px; background: radial-gradient(ellipse at center, #2a1a0d, var(--fundo) 70%); }
.chamada p { color: var(--texto-2); margin: 0 auto 28px; max-width: 520px; }

footer { text-align: center; color: #7c6d5a; font-size: 0.85rem; padding: 28px 20px 36px; border-top: 1px solid #2a1f15; }

/* --- páginas de conta ------------------------------------------------------------------------ */
.pagina-conta {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 16px 40px;
  background: linear-gradient(#0f0b08d9, #0f0b08f2), url(../img/fundo_mapa.webp) center / cover fixed;
}
.cartao {
  width: 100%; max-width: 430px;
  background: linear-gradient(#21180f, #150f0a);
  border: 1px solid var(--borda); border-radius: 8px;
  box-shadow: 0 0 0 4px #0009, 0 20px 60px #000;
  padding: 34px 32px 28px;
}
.cartao .logo-peq { width: 220px; margin: 0 auto 10px; }
.cartao h1 { text-align: center; color: var(--ouro); font-size: 1.6rem; text-transform: uppercase; }
.cartao .ajuda { text-align: center; color: var(--texto-2); font-size: 0.92rem; margin: -6px 0 22px; }
.campo { margin-bottom: 16px; }
.campo label { display: block; color: var(--texto-2); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.campo input {
  width: 100%; padding: 11px 12px; font-size: 1rem; font-family: inherit;
  color: var(--texto); background: #0c0906; border: 1px solid #4a3521; border-radius: 4px; outline: none;
}
.campo input:focus { border-color: var(--ouro); box-shadow: 0 0 0 3px #d9a44122; }
.campo .dica { color: #8a7a64; font-size: 0.8rem; margin-top: 4px; }
.cartao .botao { width: 100%; margin-top: 6px; }
.cartao .links { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 0.9rem; flex-wrap: wrap; }
.aviso { display: none; border-radius: 4px; padding: 10px 12px; margin-bottom: 16px; font-size: 0.93rem; }
.aviso.erro { display: block; background: #3b1410; border: 1px solid #7a2a20; color: #ffb4a6; }
.aviso.ok { display: block; background: #13301a; border: 1px solid #2f6b3a; color: #b9f0c0; }
.aviso button { margin-top: 8px; }
.escondido { display: none !important; }

/* --- celular --------------------------------------------------------------------------------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { padding: 8px 16px; gap: 12px; flex-wrap: wrap; }
  .menu-botao { display: block; margin-left: auto; }
  .nav .links, .nav .conta { display: none; width: 100%; flex-direction: column; gap: 12px; padding: 10px 0; }
  .nav.aberto .links, .nav.aberto .conta { display: flex; }
  .abertura { min-height: 560px; }
  .abertura .tropa { width: 50%; height: 40%; bottom: 8%; }
  .abertura .bandeira { display: none; }
  .abertura .dica .pc { display: none; }
  .abertura .dica .cel { display: inline; }
  .abertura .dica { white-space: nowrap; bottom: 10px; font-size: 0.68rem; }
  .abertura .frase { font-size: 1rem; }
  .faccoes { grid-template-columns: 1fr; }
  .faccao { flex-direction: column; text-align: center; }
  section.bloco { padding: 64px 16px; }
  h2 { font-size: 1.6rem; }
  .cartao { padding: 26px 20px 22px; }
}

/* ============================================================================================== */
/* --- página dinâmica: Humanos (azul) x Horda (vermelho) ---------------------------------------- */
/* barra de progresso da rolagem: azul de um lado, vermelho do outro */
.progresso {
  position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 20; pointer-events: none;
  background: linear-gradient(90deg, var(--az), #ffd27a 50%, var(--vm));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  box-shadow: 0 0 10px #ffd27a88;
}
/* títulos com o traço azul-ouro-vermelho que cresce ao aparecer */
section.bloco > h2 { position: relative; padding-bottom: 14px; }
section.bloco > h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 160px; height: 3px; translate: -50% 0;
  background: linear-gradient(90deg, var(--az), #ffd27a, var(--vm)); border-radius: 2px;
  box-shadow: 0 0 12px #ffd27a66; transform: scaleX(0); transition: transform 0.9s cubic-bezier(.2,.8,.2,1) 0.2s;
}
section.bloco > h2.visto::after { transform: scaleX(1); }
.divisor { height: 2px; background: linear-gradient(90deg, transparent, #3d7bff88 30%, #ffd27a 50%, #ff3b2a88 70%, transparent); opacity: 0.6; }
/* surgir ao rolar (esquerda = lado azul, direita = lado vermelho) */
.revela { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--atraso-r, 0s); }
.revela.de-esq { transform: translateX(-60px) perspective(800px) rotateY(12deg); }
.revela.de-dir { transform: translateX(60px) perspective(800px) rotateY(-12deg); }
.revela.visto { opacity: 1; transform: none; }
/* cartões que inclinam em 3D com brilho seguindo o mouse */
.inclina.visto, .inclina:not(.revela) {
  transform: perspective(800px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
  transition: transform 0.25s ease-out, box-shadow 0.25s, border-color 0.25s, opacity 0.8s;
}
.inclina { position: relative; }
.inclina::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), #ffffff1f, #0000 55%);
}
.inclina:hover::after { opacity: 1; }
/* recursos: alternam brilho azul e vermelho */
.recurso:nth-child(odd):hover { border-color: #3d7bff99; box-shadow: 0 10px 40px #3d7bff33, inset 0 0 30px #3d7bff14; }
.recurso:nth-child(even):hover { border-color: #ff3b2a99; box-shadow: 0 10px 40px #ff3b2a33, inset 0 0 30px #ff3b2a14; }
.recurso img { transition: transform 0.3s; }
.recurso:hover img { transform: scale(1.15) rotate(-5deg); }
/* facções */
.faccao.human { border-color: #3d7bff66; box-shadow: inset 4px 0 0 var(--az), 0 0 40px #3d7bff1a; }
.faccao.orc { border-color: #ff3b2a66; box-shadow: inset -4px 0 0 var(--vm), 0 0 40px #ff3b2a1a; }
.faccao.human:hover { box-shadow: inset 4px 0 0 var(--az), 0 12px 60px #3d7bff44; }
.faccao.orc:hover { box-shadow: inset -4px 0 0 var(--vm), 0 12px 60px #ff3b2a44; }
.faccao.human h3 { color: var(--az-claro); }
.faccao.orc h3 { color: var(--vm-claro); }
.faccao img { transform-origin: 50% 0; }
.faccao:hover img { animation: tremula 1.6s ease-in-out infinite; }
@keyframes tremula { 25% { transform: rotate(2deg) skewX(-2deg); } 75% { transform: rotate(-2deg) skewX(2deg); } }
.faccao .exercito { display: flex; align-items: flex-end; margin-top: 14px; height: 120px; }
.faccao .exercito .vaga { position: relative; width: 62px; height: 100%; flex: none; cursor: pointer; }
.faccao .exercito .sprite { position: absolute; left: 50%; bottom: 0; transform: translateX(calc(var(--pe) * -1px)) translateY(calc(var(--sob) * 1px)); }
/* classes: cor da facção escolhida */
#classes { --cor: var(--az); --cor-claro: var(--az-claro); }
#classes[data-faccao="orc"] { --cor: var(--vm); --cor-claro: var(--vm-claro); }
.aba { transition: all 0.2s; }
.aba.ativa { background: color-mix(in srgb, var(--cor) 30%, #000); border-color: var(--cor); color: #fff; box-shadow: 0 0 20px color-mix(in srgb, var(--cor) 50%, #0000); }
.classe { background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--cor) 22%, #000), var(--fundo-2) 70%); }
.classe:hover, .classe.aberta { border-color: var(--cor); box-shadow: 0 12px 40px color-mix(in srgb, var(--cor) 35%, #0000); }
.classe .figura { position: relative; }
.classe .figura .sprite { position: absolute; left: 50%; bottom: 6px; z-index: 1; transform: translateX(calc(var(--pe) * -1px)) translateY(calc(var(--sob) * 1px)); }
.classe .figura::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 60%; height: 16px; translate: -50% 0; background: radial-gradient(#000c, #0000 70%); }
.detalhe { border-color: var(--cor); box-shadow: 0 0 40px color-mix(in srgb, var(--cor) 25%, #0000); animation: abre 0.4s cubic-bezier(.2,.8,.2,1); }
@keyframes abre { from { opacity: 0; transform: translateY(-12px); } }
.hab { transition: border-color 0.2s, transform 0.2s; }
.hab:hover { border-color: var(--cor); transform: translateX(4px); }
.detalhe h3 { color: var(--cor-claro); }
/* novidades: linha do tempo */
.novidades { position: relative; padding-left: 26px; }
.novidades::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--az), #ffd27a, var(--vm)); box-shadow: 0 0 10px #ffd27a55; }
.novidade { position: relative; border-left-color: transparent; }
.novidade.visto { transition: transform 0.2s, background 0.2s, opacity 0.8s; }
.novidade::before { content: ""; position: absolute; left: -26px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
  background: #ffd27a; box-shadow: 0 0 12px #ffd27a; }
.novidade.visto:hover { transform: translateX(6px); background: #241a12; }
/* chamada final: escolha seu lado */
.chamada { position: relative; overflow: hidden; padding: 0; background: none; }
.chamada .lados { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.chamada .lado { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 50px 20px; text-decoration: none; color: #fff; overflow: hidden; isolation: isolate; }
.chamada .lado::before { content: ""; position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center;
  transition: transform 0.6s, filter 0.4s; filter: brightness(0.5) saturate(0.9); }
.chamada .lado.human::before { background-image: linear-gradient(#0a2a8acc, #05102add), url(../img/topo_human.webp); }
.chamada .lado.orc::before { background-image: linear-gradient(#8a140acc, #2a0604dd), url(../img/topo_orc.webp); }
.chamada .lado:hover::before { transform: scale(1.06); filter: brightness(0.75) saturate(1.1); }
.chamada .lado h3 { font-size: 2rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0; }
.chamada .lado.human h3 { color: var(--az-claro); text-shadow: 0 0 24px #3d7bff; }
.chamada .lado.orc h3 { color: var(--vm-claro); text-shadow: 0 0 24px #ff3b2a; }
.chamada .lado .figura { height: 210px; position: relative; width: 100%; }
.chamada .lado .figura .sprite { position: absolute; left: 50%; bottom: 0; transform: translateX(calc(var(--pe) * -1px)) translateY(calc(var(--sob) * 1px)); }
.chamada .lado .botao { pointer-events: none; }
.chamada .lado.human .botao { background: linear-gradient(#3d7bff, #1d3f9a); border-color: #8fb8ff; box-shadow: 0 0 0 3px #0008, 0 6px 24px #3d7bff55; }
.chamada .lado.orc .botao { background: linear-gradient(#ff3b2a, #8a1a10); border-color: #ff9a7a; box-shadow: 0 0 0 3px #0008, 0 6px 24px #ff3b2a55; }
.chamada .titulo-vs { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; pointer-events: none;
  font-size: 3rem; color: #ffd27a; text-shadow: 0 0 20px #ffb040, 0 0 40px #ff8020; letter-spacing: 0.05em;
  animation: pulsa 1.8s ease-in-out infinite; }
@keyframes pulsa { 50% { scale: 1.12; text-shadow: 0 0 30px #ffd27a, 0 0 60px #ff8020; } }
.chamada .rodape-chamada { text-align: center; padding: 26px 20px 60px; color: var(--texto-2); }
.chamada .rodape-chamada h2 { margin-bottom: 8px; }
@media (max-width: 820px) {
  .chamada .lados { grid-template-columns: 1fr; }
  .chamada .lado { padding: 36px 20px; }
  .chamada .titulo-vs { font-size: 2.2rem; }
  .faccao .exercito { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .chamada .titulo-vs, .faccao:hover img { animation: none; }
}

/* nada pode criar rolagem lateral (cartões entrando pelas bordas, dragão no céu) */
html, body { overflow-x: clip; }
