@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Barlow:wght@400;500;600;700&display=swap');

/* Páginas de conteúdo (/como-jogar/, /tropas/…), geradas por seo-pages.ts: mesma linguagem da landing (landing.css),
   em versão de leitura — areia clara, títulos em Lilita, botões dourados "de jogo". */
:root {
  --ink: #2b1a12; --ocean: #0b4f86; --deep: #062440; --sand: #fff3dc; --sand-2: #fbe3b5;
  --gold: #ffc83a; --gold-hi: #ffe98a; --orange: #f39a12; --crimson: #d42a2a; --text: #1f2a33; --muted: #5b6b78;
  --head: 'Lilita One', 'Arial Rounded MT Bold', 'Segoe UI Black', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
body.pg { margin: 0; background: var(--sand); color: var(--text); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); }
h1, h2 { font-family: var(--head); font-weight: 400; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.15; margin: 40px 0 12px; }
kbd { font: 600 .85em var(--body); background: #fff; border: 2px solid var(--ink); border-bottom-width: 3px; border-radius: 6px; padding: 0 .4em; }

/* ---------- topo ---------- */
.pg-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; padding: 10px max(16px, calc((100% - 1000px) / 2)); background: var(--ocean); border-bottom: 3px solid var(--ink); }
.pg-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 400 1.35rem var(--head); -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; }
.pg-brand svg { width: 28px; height: 32px; }
.pg-nav nav { display: flex; gap: 20px; margin-left: auto; }
.pg-nav nav a { color: #fff; text-decoration: none; font-weight: 600; opacity: .9; }
.pg-nav nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
@media (max-width: 560px) { .pg-nav { gap: 12px; } .pg-nav nav { gap: 12px; font-size: .92rem; } .pg-brand span { display: none; } }

/* ---------- botão "de jogo" ---------- */
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 400 1.2rem/1 var(--head); letter-spacing: .03em;
  color: #fff; text-decoration: none; -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink);
  padding: .72em 1.5em .78em; border: 3px solid var(--ink); border-radius: .7em; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 48%, var(--orange));
  box-shadow: inset 0 .14em 0 rgba(255, 255, 255, .55), inset 0 -.2em 0 #a8560a, 0 .24em 0 var(--ink); transition: transform .12s ease;
}
.pg-btn:hover { transform: translateY(-2px); }
.pg-btn:active { transform: translateY(2px); box-shadow: inset 0 -.1em 0 #a8560a, 0 .08em 0 var(--ink); }
.pg-btn.small { font-size: .95rem; padding: .5em 1.1em .56em; }
.pg-btn.big { font-size: clamp(1.3rem, 3vw, 1.7rem); }

/* ---------- conteúdo ---------- */
.pg-main { width: min(1000px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 40px; }
.pg-crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.pg-crumbs a { color: var(--muted); }
.pg-article { max-width: 760px; }
.pg-article.wide { max-width: none; }
.pg-eyebrow { margin: 0 0 6px; font-weight: 700; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--orange); }
.pg-lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 22px; }
.pg-article li { margin: 6px 0; }
.pg-shot { margin: 8px 0 10px; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 0 var(--ink); }
.pg-note { font-size: .9rem; color: var(--muted); }

.pg-hero { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
@media (max-width: 640px) { .pg-hero { grid-template-columns: 1fr; } .pg-portrait { max-width: 240px; } }
.pg-portrait, .pg-card img { margin: 0; background: radial-gradient(60% 55% at 50% 60%, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(180deg, #3d7fb5, #1c4f7c); }
.pg-portrait { border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 var(--ink); }
.pg-passive { background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: 0 4px 0 var(--ink); }
.pg-passive b { font-family: var(--head); font-weight: 400; font-size: 1.15rem; color: var(--crimson); }
.pg-passive p { margin: 4px 0 0; }

table { border-collapse: collapse; width: 100%; max-width: 520px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; border-spacing: 0; }
th, td { text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--sand-2); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.pg-stats th { font-weight: 600; width: 55%; }
.pg-levels thead th { background: var(--ocean); color: #fff; }

.pg-doctrines dt { font-family: var(--head); font-size: 1.15rem; color: var(--ink); margin-top: 14px; }
.pg-doctrines dt small { font: 600 .8rem var(--body); color: var(--orange); margin-left: 6px; }
.pg-doctrines dd { margin: 2px 0 0; }
.pg-faq details { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 16px; margin: 10px 0; }
.pg-faq summary { font-weight: 700; cursor: pointer; }
.pg-faq p { margin: 8px 0 2px; }

/* ---------- cartões das tropas ---------- */
.pg-related, .pg-groups { margin-top: 30px; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.pg-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: #fff; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 5px 0 var(--ink); transition: transform .15s ease; padding-bottom: 10px; }
.pg-card:hover { transform: translateY(-4px); }
.pg-card img { border-bottom: 3px solid var(--ink); aspect-ratio: 300 / 330; }
.pg-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 8px 12px 0; }
.pg-card b { font-family: var(--head); font-weight: 400; font-size: 1.1rem; color: var(--ink); margin: 0 12px; line-height: 1.15; }
.pg-card span:last-child { font-size: .88rem; color: var(--muted); margin: 2px 12px 0; }

/* ---------- chamada e rodapé ---------- */
.pg-cta { margin: 50px 0 10px; text-align: center; background: linear-gradient(180deg, var(--ocean), var(--deep)); color: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 34px 20px 38px; box-shadow: 0 6px 0 var(--ink); }
.pg-cta h2 { color: #fff; margin: 0 0 6px; }
.pg-cta p { margin: 0 0 22px; color: rgba(255, 255, 255, .82); }
.pg-footer { background: var(--deep); color: rgba(255, 255, 255, .6); text-align: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); font-size: .9rem; }
.pg-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 10px; }
.pg-footer a { color: #fff; }
.pg-footer b { color: #fff; }
