/* Dados & Dólar: estilos só da página da Forja (21/nov/2026).
   Ritmo de fundos: topo escuro, cinco passos claro, etapas escuro (forja acesa), ferreiro claro,
   resultados escuro (sala de troféus), quiz em cena, comparação claro, taverna e fecho escuros. */

/* ---------- 1. Topo: brasas pequenas e moedas, só como detalhe ---------- */
.pg-forja .p-fx .fx-faisca { width: 4px; height: 4px; box-shadow: 0 0 6px 2px rgba(232, 147, 46, .8); }
.fx-moeda-h { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3C4, #DCAE34 55%, #8A6914); box-shadow: 0 0 6px rgba(220, 174, 52, .7); }

/* ---------- 2. Cinco passos: a bigorna bate a cada passo forjado ---------- */
.passos-sec { background: radial-gradient(40% 55% at 22% 50%, rgba(232, 147, 46, .14), transparent 70%), #EAE7DD !important; }
.passos-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.bigorna-palco { position: sticky; top: 110px; display: grid; justify-items: center; }
.bigorna-palco img { position: relative; z-index: 1; width: min(380px, 100%); height: auto; filter: drop-shadow(0 30px 30px rgba(31, 35, 41, .35)); transform-origin: 50% 80%; }
.bigorna-brilho { position: absolute; left: 10%; right: 10%; top: 12%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 170, 60, .45), rgba(232, 120, 40, .12) 55%, transparent 72%); opacity: .5; }
.bigorna-flash { position: absolute; z-index: 2; left: 50%; top: 22%; width: 60%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 244, 210, .95), rgba(255, 190, 80, .5) 40%, transparent 70%); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.bigorna-fx { position: absolute; z-index: 3; left: 50%; top: 22%; width: 0; height: 0; }
.bigorna-fx i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #FFD27A; box-shadow: 0 0 8px 3px rgba(232, 147, 46, .9); }
.bigorna-conta { margin-top: 14px; font: 700 .875rem var(--rpg); letter-spacing: .12em; color: #8A6914; text-align: center; }
.bigorna-conta b { font: 800 1.5rem var(--display); letter-spacing: 0; color: #A6780A; margin-right: 4px; }
.passos-sec .passos5 { max-width: none; margin: 0; }
.passos-sec .passo5 { background: #FBF9F3; border-color: rgba(31, 35, 41, .1); }
.passos-sec .passo5.forjado { border-color: #C9962A; background: linear-gradient(90deg, rgba(220, 174, 52, .2), rgba(220, 174, 52, .04) 70%), #FBF9F3; box-shadow: 0 16px 34px -22px rgba(138, 105, 20, .8); }
.passos-sec .passo5.forjado .p5-et { color: #8A6914; }
.passos-sec .passos5-nota { color: rgba(31, 35, 41, .7); }

/* ---------- 3. Etapas: a forja acesa, e o apoio logo embaixo ---------- */
.etapas-sec { background: radial-gradient(60% 45% at 50% 105%, rgba(232, 120, 40, .22), transparent 70%), radial-gradient(45% 40% at 85% 10%, rgba(220, 174, 52, .1), transparent 70%), #18161A; }
.etapas-abas button { position: relative; overflow: hidden; }
.et-tempo { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #DCAE34; transform: scaleX(var(--tempo, 0)); transform-origin: left; box-shadow: 0 0 10px #DCAE34; pointer-events: none; }
.apoio-cont { margin-top: clamp(36px, 5vw, 56px); }
.apoio-elo { display: flex; align-items: center; gap: 16px; max-width: 1000px; margin: 0 auto 18px; }
.apoio-elo::before, .apoio-elo::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, rgba(220, 174, 52, .6) 0 6px, transparent 6px 12px); }
.apoio-elo span { font: 700 .8125rem var(--rpg); letter-spacing: .14em; color: #DCAE34; white-space: nowrap; }
.apoio-faixa h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- 4. Quem forja: fundo claro, aro girando e brasas ---------- */
.ferreiro-sec { background: radial-gradient(40% 60% at 22% 55%, rgba(220, 174, 52, .22), transparent 70%), radial-gradient(35% 50% at 90% 20%, rgba(232, 120, 40, .08), transparent 70%), #EAE7DD !important; }
.ferreiro-sec .ferreiro-foto::before { background: radial-gradient(closest-side, rgba(232, 147, 46, .35), transparent 70%); }
.ferreiro-aro { position: absolute; left: 50%; top: 52%; width: 108%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px dashed rgba(166, 120, 10, .55); box-shadow: inset 0 0 0 16px rgba(220, 174, 52, .05); animation: aro-gira 40s linear infinite; }
.ferreiro-aro::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(166, 120, 10, .3); }
@keyframes aro-gira { to { rotate: 360deg; } }
.ferreiro-fx { position: absolute; inset: 0 -10% 10%; z-index: 2; pointer-events: none; }
.ferreiro-fx i { position: absolute; bottom: 0; border-radius: 50%; opacity: 0; }
.ferreiro-fx .fx-brasa { width: 5px; height: 5px; background: #FFB347; box-shadow: 0 0 8px 2px rgba(232, 120, 40, .8); }
.ferreiro-fx .fx-moeda { width: 10px; height: 10px; background: radial-gradient(circle at 35% 35%, #FFF3C4, #DCAE34 55%, #8A6914); box-shadow: 0 0 6px rgba(166, 120, 10, .6); }
.ferreiro-sec .ferreiro-num li { background: #FBF9F3; border-color: rgba(166, 120, 10, .35); box-shadow: 0 16px 30px -24px rgba(138, 105, 20, .7); }
.ferreiro-sec .ferreiro-num b { color: #A6780A; }

/* ---------- 9. Fecho: brasas subindo e itens flutuando ---------- */
.fecho-flutua { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fecho-flutua i { position: absolute; left: var(--x); top: var(--y); animation: flutua-item 6s ease-in-out infinite; animation-delay: var(--d); opacity: .85; }
.fl-moeda { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3C4, #DCAE34 55%, #8A6914); box-shadow: 0 0 18px rgba(220, 174, 52, .6), inset 0 0 0 2px rgba(138, 105, 20, .5); }
.fl-gema { width: 16px; height: 16px; background: linear-gradient(135deg, #FFF3C4, #DCAE34); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: drop-shadow(0 0 8px rgba(220, 174, 52, .9)); }
@keyframes flutua-item { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 0 -16px; rotate: 8deg; } }

/* ---------- Celular ---------- */
@media (max-width: 960px) {
  .passos-in { grid-template-columns: 1fr; }
  .bigorna-palco { position: relative; top: 0; }
  .bigorna-palco img { width: min(240px, 70%); }
  .fecho-flutua i:nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ferreiro-aro, .fecho-flutua i { animation: none; }
  .ferreiro-fx { display: none; }
}

/* ---------- 7. Forja ou Grimório: a tabela pregada na tábua do ferreiro ---------- */
@media (min-width: 761px) {
  .compara-papel.tem-img { aspect-ratio: 1513 / 971; padding: 16% 9.5% 8% 11.5%; }
  .compara-papel.tem-img .compara { height: 100%; align-content: start; }
  .compara-papel.tem-img .compara > div { padding: 12px 14px; border-bottom-color: rgba(90, 60, 20, .2); font-size: 1rem; }
  .compara-papel.tem-img .compara .c-item, .compara-papel.tem-img .compara > .c-cab:first-child { background: transparent; }
  .compara-papel.tem-img .compara .c-g, .compara-papel.tem-img .compara .c-f, .compara-papel.tem-img .compara .c-f.destaque { background: transparent !important; box-shadow: none !important; }
  .compara-papel.tem-img .compara .c-g { color: #3E2C70; border-left: 1px solid rgba(90, 60, 20, .22); }
  .compara-papel.tem-img .compara .c-f { color: #5C4308; border-left: 1px solid rgba(90, 60, 20, .22); }
}
@media (max-width: 760px) { .compara-papel.tem-img { background: none; padding: 0; filter: none; } .compara-papel.tem-img .compara { background: #FBF9F3; border: 1px solid rgba(138, 105, 20, .35); border-radius: 20px; } }

/* Brasas e moedas subindo em volta da tábua da comparação, como no topo */
.compara-papel .compara { position: relative; z-index: 1; }
.compara-fx { position: absolute; inset: 0 -8% 2%; z-index: 0; pointer-events: none; overflow: visible; }
.compara-fx i { position: absolute; bottom: 0; display: block; opacity: 0; }
.compara-fx .fx-faisca { width: 4px; height: 4px; border-radius: 50%; background: #F59A3C; box-shadow: 0 0 7px 2px rgba(225, 110, 30, .6); }
.compara-fx .fx-moeda-h { width: 8px; height: 8px; box-shadow: 0 0 6px rgba(220, 174, 52, .6); }
@media (max-width: 760px), (prefers-reduced-motion: reduce) { .compara-fx { display: none; } }
