/* Site do Combate Tático — cores tiradas da interface do jogo:
   fundo do tabuleiro, fichas creme, dourado da vez, azul de herói, vermelho de inimigo. */
:root {
  --fundo: #1b1e27;
  --fundo-2: #23262f;
  --fundo-3: #2c303c;
  --creme: #fff6dc;
  --creme-2: #f3e6c2;
  --texto: #ece6d6;
  --texto-2: #b9b3a3;
  --ouro: #ffd54f;
  --ouro-2: #e0a92a;
  --heroi: #4f9be8;
  --inimigo: #e0514a;
  --grama: #7da52a;
  --tinta: #1f1c17;
  --raio: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 500 17px/1.6 "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Cinzel", Georgia, serif; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--creme); }
b { color: var(--ouro); font-weight: 800; }

.env { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---- herói ---- */
.heroi {
  padding: clamp(40px, 8vw, 88px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(1200px 500px at 70% 0%, rgba(125,165,42,.22), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(79,155,232,.14), transparent 60%),
    var(--fundo);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.heroi-grade { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.sobre { margin: 0 0 .4em; letter-spacing: .25em; text-transform: uppercase; font-weight: 800; font-size: .8rem; color: var(--ouro); }
h1 {
  font-weight: 900;
  font-size: clamp(2.8rem, 7.5vw, 5.2rem);
  color: var(--creme);
  text-shadow: 0 4px 0 #0e1015, 0 0 40px rgba(255,213,79,.18);
  margin-bottom: .3em;
}
.lema { font-size: 1.2rem; margin: 0 0 1em; color: var(--texto); }
.selos { list-style: none; padding: 0; margin: 0 0 1.6em; display: flex; flex-wrap: wrap; gap: 8px; }
.selos li {
  font-size: .82rem; font-weight: 800; padding: 4px 12px; border-radius: 99px;
  background: var(--fundo-3); color: var(--creme-2); border: 1px solid rgba(255,255,255,.08);
}
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.botao {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 1.05rem;
  padding: 14px 26px; border-radius: 12px;
  background: linear-gradient(var(--ouro), var(--ouro-2)); color: var(--tinta);
  box-shadow: 0 4px 0 #9c6f12, 0 10px 24px rgba(0,0,0,.35);
  transition: transform .12s, box-shadow .12s;
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #9c6f12, 0 14px 28px rgba(0,0,0,.4); }
.botao:active { transform: translateY(2px); box-shadow: 0 2px 0 #9c6f12; }
.botao-2 { background: var(--fundo-3); color: var(--creme); box-shadow: 0 4px 0 #11131a, 0 10px 24px rgba(0,0,0,.35); }
.botao-2:hover { box-shadow: 0 6px 0 #11131a, 0 14px 28px rgba(0,0,0,.4); }

/* ---- capturas ---- */
.moldura {
  padding: 0; margin: 0; border: 3px solid #3a3f4d; border-radius: var(--raio);
  overflow: hidden; background: var(--fundo-2);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.foto { cursor: zoom-in; font: inherit; color: inherit; }
.foto img { transition: transform .3s; width: 100%; height: auto; }
.foto:hover img { transform: scale(1.03); }
.heroi-foto { border-color: var(--ouro-2); }

/* ---- destaques ---- */
.destaques { padding: clamp(56px, 9vw, 110px) 0; display: grid; gap: clamp(48px, 8vw, 96px); }
.linha { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.linha.inverte > :first-child { order: 2; }
.linha p { font-size: 1.1rem; margin: 0; color: var(--texto-2); }

/* ---- elenco ---- */
.elenco {
  padding: clamp(56px, 9vw, 100px) 0;
  background: linear-gradient(180deg, var(--fundo-2), var(--fundo));
  border-block: 1px solid rgba(255,255,255,.06);
}
.elenco h2 { text-align: center; margin-bottom: 1.2em; }
.lado { font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; margin: 1.6em 0 .9em; }
.lado-heroi { color: var(--heroi); }
.lado-inimigo { color: var(--inimigo); }
.grade-unidades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.unidade {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 10px 14px; border-radius: var(--raio);
  background: var(--creme); color: var(--tinta);
  border: 3px solid; box-shadow: 0 8px 0 rgba(0,0,0,.25);
}
.heroi-u { border-color: var(--heroi); }
.inimigo-u { border-color: var(--inimigo); }
.unidade img { height: 120px; width: auto; object-fit: contain; margin-bottom: 10px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.18)); }
.unidade img.pixel { image-rendering: pixelated; }
.unidade b { color: var(--tinta); font-size: 1.02rem; }
.inimigo-u b { color: #a3241f; }
.heroi-u b { color: #1f5e9e; }
.unidade span { font-size: .8rem; color: #5d574a; line-height: 1.3; }

/* ---- downloads ---- */
.downloads { padding: clamp(56px, 9vw, 110px) 0; text-align: center; }
.dl-grade { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 1.4em 0; }
.dl {
  position: relative; overflow: hidden; width: 230px; padding: 22px 18px;
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  border-radius: var(--raio); background: var(--fundo-3); border: 2px solid #3a3f4d;
  transition: transform .12s, border-color .12s;
}
.dl:hover { transform: translateY(-3px); border-color: var(--ouro-2); }
.dl b { font-family: "Cinzel", Georgia, serif; font-size: 1.35rem; color: var(--creme); }
.dl span { position: relative; z-index: 1; color: var(--texto-2); font-weight: 700; }
.dl-web { background: linear-gradient(var(--ouro), var(--ouro-2)); border-color: var(--ouro); }
.dl-web b { color: var(--tinta); }
.dl-web span { color: #4a3a12; }
.barra { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--ouro); transition: width .2s; }
.dl.baixando { cursor: progress; }
.dl.em-breve { opacity: .5; cursor: default; }
.dl.em-breve:hover { transform: none; border-color: #3a3f4d; }
.dl-aviso { color: var(--ouro); }
.dl-nota { color: var(--texto-2); font-size: .92rem; }

/* ---- rodapé ---- */
footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 28px 0 40px; color: var(--texto-2); font-size: .9rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
footer a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
footer a:hover { color: var(--creme); }
footer img { width: 24px; height: 24px; }
footer nav { display: flex; gap: 18px; }

/* ---- imagem ampliada ---- */
.ampliada { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.ampliada::backdrop { background: rgba(8,9,12,.88); }
.ampliada img { max-width: 96vw; max-height: 92vh; border-radius: 10px; }
.ampliada-fechar {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---- telas estreitas ---- */
@media (max-width: 860px) {
  .heroi-grade, .linha { grid-template-columns: 1fr; }
  .linha.inverte > :first-child { order: 0; }
  .heroi-txt { text-align: center; }
  .selos, .acoes { justify-content: center; }
  .grade-unidades { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .grade-unidades { grid-template-columns: repeat(2, 1fr); }
  .unidade img { height: 96px; }
  .dl { width: 100%; }
  .botao { flex: 1; text-align: center; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
