/* =====================================================================================
 * manual.css — Manual do Comandante (public/manual.html), 19/out/2026.
 * Mesma identidade da Sala de Guerra (public/comando/comando.css): âmbar + azul sobre
 * grafite, Space Grotesk / Inter / JetBrains Mono. Recortes reais do jogo em
 * public/img/manual/v2 (scripts/capturas-manual.js).
 * ===================================================================================== */
:root {
    --bg: #0B0F17;
    --bg-2: #111827;
    --panel: rgba(17, 24, 39, 0.78);
    --panel-solid: #121a29;
    --raise: #172133;
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(148, 163, 184, 0.34);
    --amber: #F59E0B;
    --amber-soft: rgba(245, 158, 11, 0.14);
    --blue: #3B82F6;
    --blue-soft: rgba(59, 130, 246, 0.14);
    --red: #EF4444;
    --green: #22C55E;
    --cyan: #22D3EE;
    --text: #E5E7EB;
    --muted: #8A97AD;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --head: "Space Grotesk", "Inter", system-ui, sans-serif;
    --body: "Inter", system-ui, sans-serif;
    --r: 10px;
    --r-lg: 14px;
    --topo: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 16px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.65 var(--body);
    -webkit-font-smoothing: antialiased;
}
body::before { /* grade de carta militar ao fundo */
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(1200px 600px at 75% -10%, rgba(59, 130, 246, 0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(245, 158, 11, 0.07), transparent 60%),
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px) 0 0 / 48px 48px;
}
a { color: #93C5FD; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
b, strong { color: #fff; font-weight: 600; }
kbd, .k {
    font: 600 0.78em var(--mono); background: var(--raise); border: 1px solid var(--line-strong);
    border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: #fff; white-space: nowrap;
}
code { font: 0.86em var(--mono); background: var(--raise); padding: 1px 5px; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------ topo ------------------------------ */
.topo {
    position: sticky; top: 0; z-index: 50; height: var(--topo);
    display: flex; align-items: center; gap: 16px; padding: 0 20px;
    background: rgba(11, 15, 23, 0.86); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.marca { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex-shrink: 0; }
.marca img { width: 34px; height: 34px; border-radius: 50%; }
.marca b { font: 700 16px/1.1 var(--head); display: block; }
.marca small { font: 500 10px var(--mono); letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.busca { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.busca input {
    width: 100%; height: 38px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: var(--bg-2); color: var(--text); padding: 0 14px 0 38px; font: 14px var(--body);
}
.busca input:focus { border-color: var(--amber); outline: none; }
.busca svg { position: absolute; left: 13px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.busca-res {
    position: absolute; top: 44px; left: 0; right: 0; max-height: 60vh; overflow: auto;
    background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: var(--r);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); padding: 6px; display: none;
}
.busca-res.on { display: block; }
.busca-res a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.busca-res a:hover, .busca-res a.sel { background: var(--raise); }
.busca-res a small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.busca-res a small mark { background: var(--amber-soft); color: #FCD34D; border-radius: 3px; }
.busca-res .vazio { padding: 10px; color: var(--muted); font-size: 13px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
    border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--raise); color: var(--text);
    font: 600 14px var(--head); cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { border-color: var(--amber); }
.btn-ouro { background: linear-gradient(180deg, #FBBF24, #F59E0B); color: #1a1205; border-color: #F59E0B; }
.btn-ouro:hover { filter: brightness(1.06); }
.btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; }

/* ------------------------------ layout ------------------------------ */
.casca { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.indice {
    position: sticky; top: calc(var(--topo) + 18px); align-self: start; max-height: calc(100vh - var(--topo) - 36px);
    overflow: auto; padding: 22px 0 30px; scrollbar-width: thin;
}
.indice h4 { font: 600 10.5px var(--mono); letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin: 18px 0 6px 10px; }
.indice h4:first-child { margin-top: 0; }
.indice a {
    display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; color: #B6C2D6;
    font-size: 14px; text-decoration: none; border-left: 2px solid transparent;
}
.indice a:hover { background: rgba(148, 163, 184, 0.08); color: #fff; }
.indice a.ativo { color: #fff; background: var(--amber-soft); border-left-color: var(--amber); }
.indice a .n { font: 600 11px var(--mono); color: var(--muted); width: 18px; }
.indice a.ativo .n { color: var(--amber); }
.conteudo { min-width: 0; padding-bottom: 120px; }

/* ------------------------------ abertura ------------------------------ */
.abertura { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 34px; align-items: center; padding: 40px 0 26px; }
.kicker { font: 600 11px var(--mono); letter-spacing: 0.2em; color: var(--amber); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { font: 700 clamp(32px, 4.4vw, 52px)/1.05 var(--head); margin: 12px 0 14px; letter-spacing: -0.02em; }
h1 em { font-style: normal; background: linear-gradient(90deg, #FBBF24, #F59E0B 55%, #93C5FD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: #C3CCDA; max-width: 560px; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.meta { margin-top: 16px; font: 12px var(--mono); color: var(--muted); }
.trinca { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 8px; }
.trinca a { display: block; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.trinca a:hover { border-color: var(--amber); transform: translateY(-2px); }
.trinca img { aspect-ratio: 16/9; height: auto; object-fit: cover; width: 100%; }
.trinca div { padding: 10px 12px 12px; }
.trinca b { font: 700 15px var(--head); display: block; }
.trinca span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; }
.trinca i { font: 600 10px var(--mono); color: var(--amber); font-style: normal; letter-spacing: .14em; }

/* ------------------------------ seções ------------------------------ */
section.cap { padding: 54px 0 8px; border-top: 1px solid var(--line); }
section.cap:first-of-type { border-top: 0; }
.cap-topo { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.cap-topo .num { font: 700 13px var(--mono); color: var(--amber); border: 1px solid rgba(245, 158, 11, .45); border-radius: 6px; padding: 2px 7px; }
h2 { font: 700 clamp(25px, 3vw, 32px)/1.15 var(--head); margin: 0; letter-spacing: -0.01em; }
.cap > p.sub { color: #B6C2D6; font-size: 16px; max-width: 760px; margin: 6px 0 20px; }
h3 { font: 700 19px/1.3 var(--head); margin: 34px 0 10px; display: flex; align-items: center; gap: 10px; }
h3 .tag { font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); border: 1px solid rgba(59,130,246,.45); padding: 2px 6px; border-radius: 5px; }
h4.mini { font: 600 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
p { margin: 0 0 12px; }
ul.lista, ol.lista { margin: 0 0 14px; padding-left: 20px; }
ul.lista li, ol.lista li { margin: 4px 0; }
ul.lista li::marker { color: var(--amber); }
.duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lado { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.lado.img-estreita { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }

.cartao { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.cartao h5 { font: 700 15px var(--head); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.cartao p, .cartao li { font-size: 14px; color: #C3CCDA; }
.cartao p:last-child { margin-bottom: 0; }
.cartao .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); flex-shrink: 0; font-size: 15px; }
.aviso { border-left: 3px solid var(--amber); background: var(--amber-soft); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; font-size: 14px; margin: 14px 0; color: #F3E3C3; }
.aviso.azul { border-left-color: var(--blue); background: var(--blue-soft); color: #D6E4FF; }
.aviso.verde { border-left-color: var(--green); background: rgba(34, 197, 94, .1); color: #D1F5DD; }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px var(--mono); border: 1px solid var(--line-strong); color: #CBD5E1; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.chip.ouro { border-color: rgba(245, 158, 11, .5); color: #FCD34D; }
.chip.azul { border-color: rgba(59, 130, 246, .5); color: #93C5FD; }

/* ------------------------------ tabelas ------------------------------ */
.tabela { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); margin: 10px 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(148, 163, 184, .05); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); }
td .pad { color: var(--amber); font: 600 11px var(--mono); }

/* ------------------------------ figuras ------------------------------ */
figure { margin: 6px 0 18px; }
.fig { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); background: #05080e; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.fig img { width: 100%; height: auto; cursor: zoom-in; }
.fig.solta { background: transparent; box-shadow: none; border: 0; }
.fig.solta img { border-radius: var(--r); border: 1px solid var(--line-strong); box-shadow: 0 12px 34px rgba(0, 0, 0, .45); margin: 0 auto; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; gap: 8px; }
figcaption::before { content: "▸"; color: var(--amber); }
.monitor { padding: 10px; border-radius: 18px; background: linear-gradient(180deg, #1b2435, #0e1420); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 158, 11, .08); }
.monitor .fig { border-radius: 10px; }

/* recorte anotado: pontos numerados sobre a imagem */
.anotada { position: relative; }
.ponto {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid #1a1205; background: var(--amber);
    color: #1a1205; font: 700 12px var(--mono); cursor: pointer; display: grid; place-items: center; padding: 0;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .25), 0 4px 12px rgba(0, 0, 0, .5); z-index: 2;
}
.ponto::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; animation: pulso 2.4s infinite; }
.ponto:hover, .ponto.on { background: #fff; transform: translate(-50%, -50%) scale(1.15); }
@keyframes pulso { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.balao {
    position: absolute; z-index: 3; width: 260px; background: var(--panel-solid); border: 1px solid var(--amber);
    border-radius: var(--r); padding: 10px 12px; font-size: 13.5px; line-height: 1.5; color: var(--text);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6); pointer-events: none; opacity: 0; transition: opacity .15s;
}
.balao.on { opacity: 1; }
.balao b { display: block; font-family: var(--head); margin-bottom: 2px; color: var(--amber); }
ol.legenda { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; }
ol.legenda li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #C3CCDA; line-height: 1.45; }
ol.legenda li:hover, ol.legenda li.on { background: var(--amber-soft); }
ol.legenda li span.n { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #1a1205; font: 700 11px var(--mono); display: grid; place-items: center; margin-top: 1px; }
ol.legenda li b { color: #fff; }

/* ------------------------------ abas / etapas ------------------------------ */
.abas-bar { display: flex; gap: 4px; flex-wrap: wrap; border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px; padding: 4px; margin: 6px 0 16px; }
.abas-bar button {
    flex: 1 1 auto; border: 0; background: transparent; color: #B6C2D6; font: 600 13.5px var(--head); padding: 9px 12px;
    border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.abas-bar button .n { font: 700 11px var(--mono); color: var(--muted); }
.abas-bar button:hover { color: #fff; background: rgba(148, 163, 184, .08); }
.abas-bar button[aria-selected="true"] { background: var(--amber-soft); color: #FCD34D; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .45); }
.abas-bar button[aria-selected="true"] .n { color: var(--amber); }
.aba[hidden] { display: none; }
.aba { animation: entra .25s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------ fases do turno ------------------------------ */
.fases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 18px; }
.fase { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: var(--panel); position: relative; overflow: hidden; }
.fase::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c); }
.fase i { font: 700 11px var(--mono); color: var(--c); font-style: normal; letter-spacing: .12em; }
.fase b { display: block; font: 700 17px var(--head); margin: 2px 0 4px; }
.fase span { font-size: 13.5px; color: #B6C2D6; }

/* ------------------------------ calculadoras ------------------------------ */
.calc { background: linear-gradient(180deg, rgba(23, 33, 51, .9), rgba(17, 24, 39, .9)); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 18px; margin: 14px 0 22px; }
.calc-topo { display: flex; align-items: center; gap: 8px 10px; margin-bottom: 12px; flex-wrap: wrap; }
.calc-topo b { font: 700 16px var(--head); }
.calc-topo .chip { margin-left: auto; }
.campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; }
.campo { display: flex; flex-direction: column; gap: 4px; }
.campo > span { font: 600 10.5px var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.campo select, .campo input[type=number] {
    height: 36px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
    padding: 0 10px; font: 14px var(--body); width: 100%;
}
.campo select:focus, .campo input:focus { border-color: var(--amber); outline: none; }
.marcar { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #C3CCDA; cursor: pointer; user-select: none; }
.marcar input { accent-color: var(--amber); width: 16px; height: 16px; }
.passo-num { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; height: 36px; background: var(--bg); }
.passo-num button { width: 34px; height: 100%; border: 0; background: var(--raise); color: #fff; font: 700 16px var(--mono); cursor: pointer; }
.passo-num button:hover { background: #22304a; }
.passo-num input { flex: 1; min-width: 0; border: 0 !important; text-align: center; background: transparent !important; font: 700 15px var(--mono) !important; height: 100% !important; }
.continentes-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.continentes-sel label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; user-select: none; }
.continentes-sel input { display: none; }
.continentes-sel label:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); color: #FCD34D; }
.continentes-sel label small { font: 600 11px var(--mono); color: var(--muted); }
.resultado { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px; margin-top: 16px; align-items: stretch; }
.conta { border: 1px solid var(--line); border-radius: var(--r); background: rgba(0, 0, 0, .25); padding: 8px 12px; font-size: 13.5px; }
.conta div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.conta div:last-child { border-bottom: 0; }
.conta div em { font-style: normal; color: var(--muted); }
.conta div b { font-family: var(--mono); }
.conta div.neg b { color: #FCA5A5; }
.total { border-radius: var(--r); background: var(--amber-soft); border: 1px solid rgba(245, 158, 11, .5); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.total strong { font: 700 46px/1 var(--mono); color: #FCD34D; }
.total span { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #E9D29A; margin-top: 6px; }
.total small { font-size: 12px; color: #E9D29A; margin-top: 6px; }

/* dados */
.dados-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 4px 0 10px; }
.lado-dados { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: rgba(0, 0, 0, .2); }
.lado-dados.atk { border-top: 3px solid var(--red); }
.lado-dados.def { border-top: 3px solid var(--blue); }
.lado-dados h6 { margin: 0 0 8px; font: 700 13px var(--head); display: flex; justify-content: space-between; }
.lado-dados h6 small { font: 500 11px var(--mono); color: var(--muted); }
.n-dados { display: flex; gap: 6px; margin-bottom: 10px; }
.n-dados button { flex: 1; height: 40px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--raise); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 3px; }
.n-dados button[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); }
.n-dados .d { width: 12px; height: 12px; border-radius: 3px; background: currentColor; opacity: .9; }
.atk .n-dados .d { color: var(--red); }
.def .n-dados .d { color: var(--blue); }
.vs { font: 700 14px var(--mono); color: var(--muted); }
.barras { display: flex; flex-direction: column; gap: 8px; }
.barra { display: grid; grid-template-columns: 170px 1fr 60px; align-items: center; gap: 10px; font-size: 13.5px; }
.barra .trilho { height: 12px; border-radius: 999px; background: rgba(148, 163, 184, .12); overflow: hidden; }
.barra .trilho i { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--amber)); transition: width .35s ease; }
.barra b { font-family: var(--mono); text-align: right; }
.blitz { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.blitz .linha { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; }
.grande { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.grande .pct { font: 700 34px/1 var(--mono); color: #FCD34D; }
.grande .pct.ruim { color: #FCA5A5; }
.grande .pct.ok { color: #86EFAC; }
.grande span { font-size: 14px; color: #C3CCDA; max-width: 520px; }

/* trocas */
.escada { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.escada div { min-width: 54px; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; background: rgba(0, 0, 0, .2); }
.escada div small { display: block; font: 600 10px var(--mono); color: var(--muted); }
.escada div b { font: 700 17px var(--mono); }
.escada div.atual { border-color: var(--amber); background: var(--amber-soft); }

/* ------------------------------ facções ------------------------------ */
.faccoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.faccao { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; transition: border-color .2s; }
.faccao:hover { border-color: var(--line-strong); }
.faccao header { display: flex; gap: 12px; align-items: center; }
.faccao header img { width: 54px; height: 54px; border-radius: 50%; }
.faccao header b { font: 700 16px var(--head); display: block; }
.faccao header small { font: 600 10px var(--mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.efeito { font-size: 13.5px; line-height: 1.45; padding: 7px 9px; border-radius: 8px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .25); color: #D1F5DD; }
.efeito.onus { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .3); color: #F3E3C3; }
.efeito b { color: inherit; }

/* ------------------------------ mapas ------------------------------ */
.mapas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mapa { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.mapa img { aspect-ratio: 16/9; height: auto; object-fit: cover; width: 100%; }
.mapa div { padding: 12px 14px 14px; }
.mapa b { font: 700 18px var(--head); }
.mapa ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13.5px; color: #C3CCDA; }
.mapa li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.mapa li:last-child { border: 0; }
.mapa li em { font-style: normal; color: var(--muted); }
.blocos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.blocos div { display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13.5px; background: rgba(0, 0, 0, .18); }
.blocos div b { font-family: var(--mono); color: #FCD34D; }
.pontes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.pontes div { font-size: 13.5px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: flex; gap: 8px; align-items: center; background: rgba(0, 0, 0, .18); }
.pontes div i { font-style: normal; font-size: 12px; }

/* ------------------------------ passos da porta ------------------------------ */
.trilha { display: flex; gap: 0; margin: 4px 0 14px; counter-reset: p; }
.trilha span { flex: 1; text-align: center; font: 600 12px var(--mono); color: var(--muted); padding: 8px 4px; border-bottom: 2px solid var(--line); }
.trilha span.on { color: #FCD34D; border-bottom-color: var(--amber); }

/* ------------------------------ lightbox ------------------------------ */
.zoom { position: fixed; inset: 0; z-index: 200; background: rgba(3, 6, 12, .92); display: none; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.zoom.on { display: flex; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.zoom p { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 13px; margin: 0; }

/* ------------------------------ FAQ ------------------------------ */
details.faq { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin-bottom: 8px; }
details.faq summary { cursor: pointer; padding: 12px 16px; font: 600 15px var(--head); list-style: none; display: flex; gap: 10px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; font: 700 16px var(--mono); color: var(--amber); width: 14px; }
details.faq[open] summary::before { content: "–"; }
details.faq > div { padding: 0 16px 14px 40px; font-size: 14.5px; color: #C3CCDA; }

/* ------------------------------ assistente ------------------------------ */
#assistant-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 90; height: 46px; padding: 0 18px; border-radius: 999px;
    border: 1px solid #F59E0B; background: linear-gradient(180deg, #FBBF24, #F59E0B); color: #1a1205; font: 700 14px var(--head);
    cursor: pointer; box-shadow: 0 12px 32px rgba(245, 158, 11, .3); display: flex; align-items: center; gap: 8px;
}
#assistant-panel {
    position: fixed; right: 22px; bottom: 80px; z-index: 91; width: min(400px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
    background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
    display: none; flex-direction: column; overflow: hidden;
}
#assistant-panel.open { display: flex; }
.assistant-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.assistant-header img { width: 28px; height: 28px; border-radius: 50%; }
.assistant-header h4 { margin: 0; font: 700 15px var(--head); flex: 1; }
.assistant-header small { display: block; font: 500 10.5px var(--mono); color: var(--muted); letter-spacing: .08em; }
#assistant-close { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
#assistant-messages { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.assistant-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.assistant-msg.bot { background: var(--raise); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.assistant-msg.user { background: var(--blue-soft); border: 1px solid rgba(59, 130, 246, .4); align-self: flex-end; border-bottom-right-radius: 4px; }
.assistant-msg .src { display: block; margin-top: 6px; font: 500 11px var(--mono); color: var(--muted); }
.assistant-msg a { color: #FCD34D; }
.assistant-suggestions { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 10px; }
.assistant-suggestions button { border: 1px solid var(--line-strong); background: transparent; color: #C3CCDA; border-radius: 999px; font-size: 12.5px; padding: 4px 10px; cursor: pointer; }
.assistant-suggestions button:hover { border-color: var(--amber); color: #fff; }
.assistant-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.assistant-input-row input { flex: 1; height: 38px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); padding: 0 12px; font: 14px var(--body); }
.assistant-input-row input:focus { border-color: var(--amber); outline: none; }
.assistant-input-row button { width: 42px; border-radius: 8px; border: 0; background: var(--amber); color: #1a1205; font-weight: 700; cursor: pointer; }

.rodape { border-top: 1px solid var(--line); margin-top: 50px; padding: 24px 0 0; color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* ------------------------------ responsivo ------------------------------ */
@media (max-width: 1080px) {
    .casca { grid-template-columns: 1fr; }
    .indice {
        position: fixed; top: var(--topo); left: 0; bottom: 0; width: 280px; max-height: none; z-index: 60;
        background: var(--panel-solid); border-right: 1px solid var(--line); padding: 18px 12px; transform: translateX(-100%); transition: transform .2s;
    }
    .indice.on { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
    .menu-btn { display: inline-flex; }
    .abertura { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    :root { --topo: 56px; }
    body { font-size: 14.5px; }
    .casca { padding: 0 16px; }
    .topo { padding: 0 12px; gap: 10px; }
    .marca span, .topo .btn-ouro span { display: none; }
    .topo .btn { padding: 0 11px; }
    .busca input { padding-right: 8px; }
    .busca { max-width: none; }
    .duas, .tres, .lado, .lado.img-estreita, .mapas, .fases, .trinca { grid-template-columns: 1fr; }
    .resultado { grid-template-columns: 1fr; }
    .barra { grid-template-columns: 1fr 50px; }
    .barra > span { grid-column: 1 / -1; }
    .dados-vs { grid-template-columns: 1fr; }
    .vs { text-align: center; }
    .ponto { width: 20px; height: 20px; font-size: 10px; }
    .balao { display: none; }
    #assistant-fab span { display: none; }
    #assistant-fab { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
