/* Página inicial no tema do CB (2026-10-21): camadas animadas do topo, vitrine "O jogo", estandartes, tochas e caixa de luz.
   O movimento das brasas, das abas e da caixa de luz está em efeitos.js; aqui só CSS. Sem animação com prefers-reduced-motion. */

/* ---------- topo: céu com raio, corvos, névoa e brasas ---------- */
.heroi .imagem { position: relative; overflow: hidden; isolation: isolate; animation: aproxima 40s ease-in-out infinite alternate; }
.heroi .imagem::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 10, 11, 0) 55%, rgba(12, 10, 11, .85) 92%, var(--fundo) 100%), radial-gradient(ellipse at 20% 85%, rgba(0, 0, 0, .55), transparent 55%); }
@keyframes aproxima { from { background-position: 48% 8%; } to { background-position: 52% 22%; } }
.raio { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(ellipse at 72% 8%, rgba(190, 210, 255, .55), rgba(120, 140, 220, .18) 35%, transparent 65%); animation: raio 11s linear infinite; }
@keyframes raio { 0%, 61%, 63.5%, 66%, 100% { opacity: 0; } 62% { opacity: .9; } 63% { opacity: .15; } 64.5% { opacity: .7; } }
.nevoa { position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; background: url("/site/assets/img/tema/nevoa.webp") repeat-x 0 0 / auto 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent); }
.nevoa.n1 { bottom: -6%; height: 55%; opacity: .55; animation: nevoa 70s linear infinite; }
.nevoa.n2 { bottom: 18%; height: 38%; opacity: .3; animation: nevoa 110s linear infinite reverse; }
@keyframes nevoa { from { background-position-x: 0; } to { background-position-x: -1536px; } }
.corvos { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.corvos span { position: absolute; width: 48px; height: 64px; background: url("/site/assets/img/tema/corvos.webp") 0 0 / 384px 64px; opacity: .9; filter: brightness(.7);
  animation: bate .7s steps(8) infinite, voa 26s linear infinite; }
.corvos span:nth-child(1) { top: 12%; transform: scale(.6); animation-delay: 0s, -4s; }
.corvos span:nth-child(2) { top: 18%; transform: scale(.45); animation-delay: -.3s, -11s; animation-duration: .8s, 31s; }
.corvos span:nth-child(3) { top: 8%; transform: scale(.38); animation-delay: -.5s, -20s; animation-duration: .75s, 36s; }
@keyframes bate { to { background-position-x: -384px; } }
@keyframes voa { from { left: -8%; margin-top: 0; } 50% { margin-top: 26px; } to { left: 108%; margin-top: -10px; } }
.brasas { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.cartao-heroi::before { content: ""; position: absolute; inset: -1px; pointer-events: none; border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(226, 70, 58, .7), transparent 30%, transparent 70%, rgba(217, 169, 78, .45)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cartao-heroi .btn-cobre { animation: chama 3.2s ease-in-out infinite; }
@keyframes chama { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12) drop-shadow(0 0 10px rgba(226, 70, 58, .55)); } }

/* ---------- surgir ao rolar ---------- */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.revelar.visto { opacity: 1; transform: none; }

/* ---------- O jogo ---------- */
.jogo { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 0%, rgba(142, 20, 20, .28), transparent 60%), linear-gradient(180deg, #0a0809, #120d0f 50%, #0a0809);
  border-block: 1px solid #000; box-shadow: inset 0 1px 0 rgba(192, 36, 29, .35), inset 0 -1px 0 rgba(192, 36, 29, .35); }
.estandarte { position: absolute; top: -8px; width: 110px; height: auto; pointer-events: none; transform-origin: 50% 0; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .7)); animation: balanca 6s ease-in-out infinite; opacity: .92; }
.estandarte.esq { left: max(8px, calc(50% - 700px)); }
.estandarte.dir { right: max(8px, calc(50% - 700px)); animation-delay: -3s; animation-duration: 7s; }
@keyframes balanca { 0%, 100% { transform: rotate(1.6deg) skewX(-1deg); } 50% { transform: rotate(-1.6deg) skewX(1.2deg); } }
.centro-cabeca { position: relative; margin-inline: auto; text-align: center; }
.centro-cabeca .tocha { position: absolute; top: 4px; width: 43px; height: 120px; background: url("/site/assets/img/tema/fogo.webp") 0 0 / 344px 120px; mix-blend-mode: screen; animation: fogo .9s steps(8) infinite; }
.centro-cabeca .tocha:first-child { left: -70px; }
.centro-cabeca .tocha:last-child { right: -70px; animation-delay: -.45s; }
@keyframes fogo { to { background-position-x: -344px; } }

.vitrine { position: relative; z-index: 1; }
.vitrine-abas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 26px; }
.vitrine-abas button { position: relative; font: 700 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--osso-2); background: var(--placa); border: 1px solid #000; padding: 12px 16px; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px var(--ferro); transition: color .15s, box-shadow .2s, background .2s; }
.vitrine-abas button:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px var(--ferro-2), 0 0 14px rgba(192, 36, 29, .3); }
.vitrine-abas button[aria-selected="true"] { color: #fff; background: var(--placa-sangue); box-shadow: inset 0 1px 0 rgba(255, 190, 170, .35), inset 0 0 0 1px #3b0605, 0 0 20px rgba(226, 70, 58, .45); }
.vitrine-abas button:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }
.vitrine-painel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.6fr); gap: 34px; align-items: center; animation: entra .5s ease; }
.vitrine-painel[hidden] { display: none; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.vitrine-texto h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.vitrine-texto > p:not(.sobretitulo) { color: var(--osso-2); font-size: 1.04rem; }
.vitrine-texto ul { list-style: none; margin: 0; padding: 0; }
.vitrine-texto li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--linha); color: var(--cinza); }
.vitrine-texto li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; background: var(--sangue-2); transform: rotate(45deg); box-shadow: 0 0 8px var(--sangue-2); }
.vitrine-tela { position: relative; margin: 0; padding: 10px; background: linear-gradient(180deg, #2b2326, #120e10); border: 1px solid #000;
  box-shadow: var(--moldura), inset 0 0 0 1px var(--ferro), 0 0 40px rgba(142, 20, 20, .35); cursor: zoom-in; }
.vitrine-tela::before, .vitrine-tela::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--sangue-2); pointer-events: none; z-index: 2; }
.vitrine-tela::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.vitrine-tela::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.vitrine-tela img { display: block; width: 100%; height: auto; transition: opacity .9s ease, transform .6s ease; }
.vitrine-tela img + img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; background: #0b0909; opacity: 0; }
.vitrine-tela.troca img:first-child { opacity: 0; }
.vitrine-tela.troca img + img { opacity: 1; }
.vitrine-tela:hover img { transform: scale(1.012); }
.vitrine-tela.pequena { justify-self: center; width: min(100%, 548px); }   /* captura menor (528 px): no tamanho natural, sem esticar */

.novidades-titulo { margin: 70px 0 18px; text-align: center; font-size: 1.5rem; }
.novidades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.novidades li { position: relative; padding: 20px 20px 20px 22px; background: var(--placa), var(--grao); border: 1px solid #000; box-shadow: var(--moldura); transition: transform .2s, box-shadow .2s; }
.novidades li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: linear-gradient(180deg, var(--sangue-3), var(--sangue)); box-shadow: 0 0 10px var(--sangue-2); }
.novidades li:hover { transform: translateY(-3px); box-shadow: var(--moldura), 0 0 22px rgba(192, 36, 29, .25); }
.novidades b { display: block; font: 700 1.08rem var(--serifa); margin-bottom: 4px; }
.novidades span { color: var(--cinza); font-size: .93rem; }

/* ---------- caixa de luz (tela ampliada) ---------- */
.luz { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(4, 3, 3, .9); backdrop-filter: blur(4px); cursor: zoom-out; animation: entra .25s ease; }
.luz[hidden] { display: none; }
.luz img { max-width: min(1200px, 100%); max-height: 90vh; width: auto; height: auto; border: 1px solid #000; box-shadow: 0 0 0 1px var(--ferro), 0 30px 80px rgba(0, 0, 0, .8), 0 0 60px rgba(142, 20, 20, .4); }
.luz-fechar { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 1px solid var(--ferro); background: var(--placa); color: var(--osso); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.luz-fechar:hover { color: #fff; background: var(--placa-sangue); }

@media (max-width: 960px) {
  .vitrine-painel { grid-template-columns: 1fr; gap: 22px; }
  .vitrine-tela { order: -1; }
  .novidades { grid-template-columns: 1fr 1fr; }
  .estandarte { width: 70px; opacity: .5; }
  .centro-cabeca .tocha { display: none; }
}
@media (max-width: 760px) {
  .vitrine-abas { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -4px; }
  .vitrine-abas button { flex: none; padding: 11px 13px; }
  .novidades { grid-template-columns: 1fr; }
  .estandarte { display: none; }
  .corvos span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .revelar { opacity: 1; transform: none; }
  .brasas, .raio { display: none; }
}
