/* ==========================================================================
   A Trilha Esquecida — folha de estilo única do site
   Mobile first (360 px). Sem framework, sem build.
   Índice: 1 base · 2 cabeçalho/rodapé · 3 botões · 4 herói · 5 reinos
           6 seções da capa · 7 texto longo (capítulos, diário, políticas)
           8 página do jogo · 9 espaços de anúncio · 10 utilitários
   ========================================================================== */

/* 1. Base ----------------------------------------------------------------- */
:root {
  --noite: #0a0918;
  --noite-2: #100e24;
  --violeta: #1b1638;
  --violeta-2: #2b2356;
  --bruma: #a49fc6;
  --texto: #ebe6f6;
  --texto-suave: #c9c3de;
  --brasa: #ff8a3c;
  --brasa-2: #ff5a1f;
  --ouro: #f4cb6c;
  --aurora: #ffe2b0;
  --linha: rgba(244, 203, 108, .22);
  --titulo: "IM Fell English SC", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --corpo: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --largura: 1120px;
  --coluna: 68ch;
  --raio: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--noite);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--texto);
  font-family: var(--corpo);
  font-size: 1.0625rem;
  line-height: 1.7;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(64, 48, 130, .55), transparent 70%),
    radial-gradient(90% 40% at 50% 110%, rgba(255, 138, 60, .10), transparent 70%),
    linear-gradient(180deg, var(--noite) 0%, var(--noite-2) 55%, #0c0a1c 100%);
  background-attachment: scroll;
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; display: block; }

img, svg { max-width: 100%; height: auto; }
svg { display: block; }

h1, h2, h3 {
  font-family: var(--titulo);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--aurora);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 8.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 5.6vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 4.4vw, 1.45rem); }

p { margin: 0 0 1.15em; }

a { color: var(--ouro); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #fff3d2; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ouro);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(255, 138, 60, .45); color: #fff; }

.pular {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--ouro); color: #1a1230; padding: .5em .9em; border-radius: 8px;
  font-family: var(--titulo); text-decoration: none;
}
.pular:focus { top: 8px; color: #1a1230; }

.envolve {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: 18px;
}

/* 2. Cabeçalho e rodapé --------------------------------------------------- */
.topo {
  position: relative; z-index: 5;
  border-bottom: 1px solid var(--linha);
  background: linear-gradient(180deg, rgba(10, 9, 24, .92), rgba(10, 9, 24, .62));
}
.topo .envolve {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2px 18px; padding-block: 10px;
}
.marca {
  font-family: var(--titulo); font-size: 1.25rem; letter-spacing: .04em;
  color: var(--aurora); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
}
.marca svg { width: 26px; height: 26px; flex: none; }
.marca:hover { color: #fff; }

.menu { display: flex; flex-wrap: wrap; gap: 0 2px; margin: 0 -8px; padding: 0; list-style: none; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px;
  font-family: var(--titulo); font-size: 1.02rem; letter-spacing: .04em;
  color: var(--texto-suave); text-decoration: none; border-radius: 8px;
}
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.menu a[aria-current="page"] { color: var(--ouro); }
.menu .destaque a { color: var(--brasa); }

.rodape {
  flex: none;
  margin-top: 64px;
  border-top: 1px solid var(--linha);
  background: linear-gradient(180deg, rgba(27, 22, 56, .0), rgba(27, 22, 56, .55));
  color: var(--bruma);
  font-size: .95rem;
}
.rodape .envolve { padding-block: 34px 40px; display: grid; gap: 26px; }
.rodape h2 { font-size: 1.1rem; color: var(--texto-suave); margin-bottom: .5em; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rodape li a { display: inline-block; padding: 7px 0; color: var(--texto-suave); text-decoration: none; }
.rodape li a:hover { color: var(--ouro); text-decoration: underline; }
.rodape .assinatura { margin: 0; line-height: 1.6; }
.rodape .assinatura strong { color: var(--aurora); font-family: var(--titulo); font-weight: 400; font-size: 1.15rem; letter-spacing: .04em; }
.rodape .miudo { margin: 0; font-size: .86rem; color: #8d88ad; border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 18px; }
.rodape .duas { columns: 2; column-gap: 18px; display: block; }
.rodape .duas li { break-inside: avoid; }

@media (min-width: 760px) {
  .rodape .envolve { grid-template-columns: 1.3fr 1fr 1fr; }
  .rodape .miudo { grid-column: 1 / -1; }
}

/* 3. Botões --------------------------------------------------------------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .55em 1.5em;
  font-family: var(--titulo); font-size: 1.2rem; letter-spacing: .06em; line-height: 1.1;
  color: #24140a; text-decoration: none; text-align: center;
  background: linear-gradient(180deg, #ffe0a0 0%, var(--ouro) 38%, var(--brasa) 100%);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 240, 200, .5) inset, 0 10px 34px -8px rgba(255, 120, 40, .7), 0 0 60px -10px rgba(255, 170, 80, .55);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.botao:hover { color: #24140a; transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(255, 240, 200, .7) inset, 0 16px 40px -8px rgba(255, 120, 40, .85), 0 0 80px -10px rgba(255, 170, 80, .7); }
.botao:active { transform: translateY(0); }
.botao--grande { min-height: 64px; font-size: clamp(1.4rem, 6vw, 1.8rem); padding-inline: 1.7em; }
.botao--fantasma {
  color: var(--aurora); background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 1px var(--linha) inset;
}
.botao--fantasma:hover { color: #fff; background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 1px rgba(244, 203, 108, .55) inset; filter: none; }
.botao svg { width: 1.05em; height: 1.05em; flex: none; }

/* 4. Herói da capa -------------------------------------------------------- */
.heroi {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 620px;
  min-height: min(92svh, 860px);
  display: grid; align-items: end;
  border-bottom: 1px solid var(--linha);
}
.heroi__cena { position: absolute; inset: 0; z-index: -2; }
.heroi__cena svg { width: 100%; height: 100%; }
.heroi::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 58%, transparent 0, rgba(10, 9, 24, .0) 40%, rgba(10, 9, 24, .55) 100%),
    linear-gradient(180deg, rgba(10, 9, 24, .35) 0%, transparent 22%, transparent 55%, rgba(10, 9, 24, .78) 100%);
}
.heroi__texto { text-align: center; padding-block: 120px 44px; }
.heroi__selo {
  display: inline-block; margin-bottom: 14px; padding: .2em 1em;
  font-family: var(--titulo); font-size: .95rem; letter-spacing: .18em;
  color: var(--ouro); border: 1px solid var(--linha); border-radius: 999px;
  background: rgba(10, 9, 24, .5);
}
.heroi h1 {
  font-size: clamp(2.7rem, 13.5vw, 6.4rem); line-height: .98; margin-bottom: .28em;
  color: #fff1d6;
  text-shadow: 0 0 28px rgba(255, 170, 90, .55), 0 0 90px rgba(255, 120, 40, .35), 0 2px 0 rgba(0, 0, 0, .4);
}
.heroi h1 span { display: block; }
.heroi h1 .pequeno { font-size: .42em; letter-spacing: .3em; color: var(--ouro); margin-bottom: .25em; text-shadow: 0 0 20px rgba(244, 203, 108, .5); }
.heroi__linha { max-width: 34ch; margin: 0 auto 1.5em; font-size: clamp(1.1rem, 4.6vw, 1.4rem); line-height: 1.45; color: #f3ecff; font-style: italic; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.heroi__nota { margin: 16px 0 0; font-size: .95rem; color: var(--texto-suave); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }

.brasas { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.brasas i {
  position: absolute; bottom: -12px; width: 4px; height: 4px; border-radius: 50%;
  background: #ffc27a; box-shadow: 0 0 8px 2px rgba(255, 140, 60, .8);
  opacity: 0; animation: brasa 9s linear infinite;
}
.brasas i:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 11s; }
.brasas i:nth-child(2) { left: 21%; animation-delay: 3s; width: 3px; height: 3px; }
.brasas i:nth-child(3) { left: 34%; animation-delay: 6s; animation-duration: 13s; }
.brasas i:nth-child(4) { left: 47%; animation-delay: 1.5s; width: 3px; height: 3px; animation-duration: 10s; }
.brasas i:nth-child(5) { left: 58%; animation-delay: 4.5s; }
.brasas i:nth-child(6) { left: 69%; animation-delay: 7.5s; animation-duration: 12s; width: 5px; height: 5px; }
.brasas i:nth-child(7) { left: 81%; animation-delay: 2.2s; width: 3px; height: 3px; }
.brasas i:nth-child(8) { left: 92%; animation-delay: 5.8s; animation-duration: 14s; }
@keyframes brasa {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  12% { opacity: .95; }
  70% { opacity: .6; }
  100% { transform: translate3d(34px, -78vh, 0) scale(.3); opacity: 0; }
}
.cintila { animation: cintila 4.5s ease-in-out infinite; }
.cintila.b { animation-delay: 1.4s; animation-duration: 6s; }
.cintila.c { animation-delay: 2.7s; animation-duration: 5.2s; }
@keyframes cintila { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.trilha-luz { stroke-dasharray: 6 14; animation: trilha 5s linear infinite; }
@keyframes trilha { to { stroke-dashoffset: -80; } }

/* 5. Reinos (lista ilustrada) --------------------------------------------- */
.secao { padding-block: 54px 10px; }
.secao__cabeca { max-width: 62ch; margin: 0 auto 30px; text-align: center; }
.secao__cabeca p { color: var(--texto-suave); margin: 0; }
.ornamento { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 16px; color: var(--ouro); }
.ornamento::before, .ornamento::after { content: ""; height: 1px; width: min(22vw, 120px); background: linear-gradient(90deg, transparent, var(--ouro)); }
.ornamento::after { transform: scaleX(-1); }
.ornamento svg { width: 18px; height: 18px; }

.reinos { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: reino; }
.reino {
  position: relative; overflow: hidden;
  border-radius: var(--raio);
  background: linear-gradient(180deg, rgba(43, 35, 86, .55), rgba(16, 14, 36, .9));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset, 0 20px 50px -30px #000;
  transition: transform .25s ease, box-shadow .25s ease;
}
.reino:hover, .reino:focus-within { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(244, 203, 108, .4) inset, 0 26px 60px -28px rgba(255, 138, 60, .45); }
.reino__arte { aspect-ratio: 5 / 3; overflow: hidden; background: #0c0a1c; }
.reino__arte svg { width: 100%; height: 100%; transition: transform .8s ease; }
.reino:hover .reino__arte svg { transform: scale(1.045); }
.reino__corpo { padding: 16px 18px 20px; }
.reino__num { display: block; font-family: var(--titulo); font-size: .92rem; letter-spacing: .2em; color: var(--ouro); margin-bottom: 4px; }
.reino h3 { margin-bottom: .35em; font-size: clamp(1.35rem, 5.4vw, 1.6rem); }
.reino h3 a { color: var(--aurora); text-decoration: none; }
.reino h3 a::after { content: ""; position: absolute; inset: 0; }
.reino h3 a:hover { color: #fff; }
.reino p { margin: 0; color: var(--texto-suave); font-size: 1rem; line-height: 1.55; }
.reino__sentir { display: inline-block; margin-top: 12px; font-style: italic; font-size: .95rem; color: var(--bruma); }
.reino__ler { display: block; margin-top: 10px; font-family: var(--titulo); letter-spacing: .06em; color: var(--ouro); }

@media (min-width: 640px) { .reinos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .reinos { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

/* 6. Seções da capa ------------------------------------------------------- */
.jornada {
  margin: 26px auto 0; max-width: 62ch; padding: 16px 18px; text-align: center;
  border: 1px dashed var(--linha); border-radius: var(--raio);
  color: var(--texto-suave); font-size: 1rem;
}
.jornada b { color: var(--aurora); font-weight: 400; font-family: var(--titulo); letter-spacing: .04em; }

.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: passo; }
.passos li {
  counter-increment: passo; position: relative;
  padding: 18px 18px 18px 66px;
  border-radius: var(--raio);
  background: rgba(27, 22, 56, .6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.passos li::before {
  content: counter(passo); position: absolute; left: 16px; top: 16px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titulo); font-size: 1.2rem; color: #24140a;
  background: radial-gradient(circle at 35% 30%, #ffe7b4, var(--ouro) 55%, var(--brasa));
  box-shadow: 0 0 22px -2px rgba(255, 150, 60, .7);
}
.passos h3 { margin-bottom: .25em; }
.passos p { margin: 0; color: var(--texto-suave); font-size: 1rem; line-height: 1.55; }
@media (min-width: 760px) { .passos { grid-template-columns: repeat(2, 1fr); } }

kbd {
  display: inline-block; min-width: 1.7em; padding: .05em .45em; text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em;
  color: var(--aurora); background: #1d1840; border: 1px solid rgba(244, 203, 108, .35);
  border-bottom-width: 2px; border-radius: 6px;
}

.armas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.arma {
  display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start;
  padding: 16px; border-radius: var(--raio);
  background: linear-gradient(135deg, rgba(43, 35, 86, .6), rgba(16, 14, 36, .85));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.arma__icone { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 70%); box-shadow: 0 0 0 1px var(--linha) inset; }
.arma__icone svg { width: 36px; height: 36px; }
.arma h3 { margin: 0 0 .15em; }
.arma p { margin: 0; color: var(--texto-suave); font-size: 1rem; line-height: 1.5; }
.arma small { display: block; margin-top: 6px; color: var(--bruma); font-size: .9rem; font-style: italic; }
@media (min-width: 760px) { .armas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .armas { grid-template-columns: repeat(3, 1fr); } }

.chamada {
  margin: 56px auto 0; padding: 40px 20px; text-align: center;
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 50% 120%, rgba(255, 138, 60, .28), transparent 65%),
    linear-gradient(180deg, rgba(43, 35, 86, .7), rgba(16, 14, 36, .9));
  box-shadow: 0 0 0 1px var(--linha) inset;
}
.chamada p { max-width: 46ch; margin-inline: auto; color: var(--texto-suave); }

.indice-capitulos { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 2px; }
.indice-capitulos a {
  display: flex; align-items: baseline; gap: 12px; padding: 12px 6px; min-height: 48px;
  text-decoration: none; color: var(--texto); border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.indice-capitulos a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.indice-capitulos .n { font-family: var(--titulo); color: var(--ouro); min-width: 2.4em; letter-spacing: .08em; }
.indice-capitulos .t { font-family: var(--titulo); font-size: 1.15rem; letter-spacing: .03em; color: var(--aurora); }
.indice-capitulos .d { margin-left: auto; color: var(--bruma); font-size: .92rem; font-style: italic; text-align: right; }
@media (max-width: 520px) { .indice-capitulos .d { display: none; } }

/* 7. Texto longo ---------------------------------------------------------- */
.pagina { padding-block: 34px 0; }
.pagina__cabeca { max-width: var(--coluna); margin: 0 auto 26px; }
.pagina__cabeca .sobretitulo { display: block; font-family: var(--titulo); letter-spacing: .2em; font-size: .95rem; color: var(--ouro); margin-bottom: 8px; }
.pagina__cabeca .lide { font-size: 1.18rem; line-height: 1.55; color: var(--texto-suave); font-style: italic; margin: 0; }

.migalhas { max-width: var(--coluna); margin: 0 auto 18px; font-size: .92rem; color: var(--bruma); }
.migalhas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.migalhas li + li::before { content: "›"; margin-right: 8px; color: #6f6a93; }
.migalhas a { color: var(--texto-suave); display: inline-block; padding: 6px 0; }

.estampa {
  max-width: 920px; margin: 0 auto 30px; border-radius: 18px; overflow: hidden;
  aspect-ratio: 5 / 3; background: #0c0a1c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 30px 80px -40px #000;
}
.estampa svg { width: 100%; height: 100%; }
@media (min-width: 760px) { .estampa { aspect-ratio: 2 / 1; } }

.prosa { max-width: var(--coluna); margin-inline: auto; font-size: 1.125rem; line-height: 1.78; }
.prosa > p:first-of-type::first-letter {
  float: left; font-family: var(--titulo); font-size: 3.5em; line-height: .86;
  padding: .06em .12em 0 0; color: var(--ouro); text-shadow: 0 0 22px rgba(255, 160, 70, .55);
}
.prosa.sem-capitular > p:first-of-type::first-letter { float: none; font: inherit; padding: 0; color: inherit; text-shadow: none; }
.prosa h2 { margin-top: 1.7em; padding-top: .2em; }
.prosa h3 { margin-top: 1.5em; color: var(--texto); }
.prosa ul, .prosa ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prosa li { margin-bottom: .45em; }
.prosa li::marker { color: var(--ouro); }
.prosa strong { color: #fff6e2; font-weight: 600; }
.prosa em { color: #f3ecff; }
.prosa blockquote {
  margin: 1.6em 0; padding: .3em 0 .3em 1.1em; border-left: 2px solid var(--ouro);
  font-style: italic; color: var(--aurora); font-size: 1.12em; line-height: 1.55;
}
.prosa blockquote p { margin: 0; }
.prosa code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: #1d1840; padding: .1em .35em; border-radius: 5px; color: var(--aurora); }
.prosa hr { border: 0; height: 1px; margin: 2.2em auto; width: 60%; background: linear-gradient(90deg, transparent, var(--ouro), transparent); }
.prosa table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; font-size: 1rem; }
.prosa th, .prosa td { text-align: left; padding: .55em .6em; border-bottom: 1px solid rgba(255, 255, 255, .1); vertical-align: top; }
.prosa th { font-family: var(--titulo); font-weight: 400; color: var(--ouro); letter-spacing: .04em; }
.rolagem { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ficha {
  max-width: var(--coluna); margin: 34px auto 0; padding: 20px;
  border-radius: var(--raio); background: rgba(27, 22, 56, .65);
  box-shadow: 0 0 0 1px var(--linha) inset;
}
.ficha h2 { font-size: 1.3rem; margin-bottom: .6em; }
.ficha dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 1rem; }
.ficha dt { font-family: var(--titulo); color: var(--ouro); letter-spacing: .04em; }
.ficha dd { margin: 0; color: var(--texto-suave); }
.ficha .botao { margin-top: 18px; }

.vizinhos { max-width: var(--coluna); margin: 40px auto 0; display: grid; gap: 12px; }
.vizinhos a {
  display: block; padding: 14px 18px; border-radius: var(--raio); text-decoration: none;
  background: rgba(27, 22, 56, .6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset;
  color: var(--aurora); font-family: var(--titulo); font-size: 1.2rem; letter-spacing: .03em; line-height: 1.25;
}
.vizinhos a:hover { box-shadow: 0 0 0 1px rgba(244, 203, 108, .5) inset; color: #fff; }
.vizinhos small { display: block; font-family: var(--corpo); font-size: .88rem; letter-spacing: 0; color: var(--bruma); margin-bottom: 2px; }
.vizinhos .prox { text-align: right; }
@media (min-width: 620px) { .vizinhos { grid-template-columns: 1fr 1fr; } .vizinhos .so-prox { grid-column: 2; } }

.preencher {
  display: inline-block; padding: .05em .45em; border: 1px dashed var(--brasa); border-radius: 6px;
  color: #ffd2b0; background: rgba(255, 138, 60, .1); font-style: normal;
}
.aviso {
  max-width: var(--coluna); margin: 0 auto 1.4em; padding: 14px 16px; border-radius: 12px;
  border: 1px dashed var(--brasa); background: rgba(255, 138, 60, .08); color: #ffdcc2; font-size: 1rem;
}
.aviso p:last-child { margin-bottom: 0; }

.erro { text-align: center; padding-block: 70px 30px; }
.erro .numero { font-family: var(--titulo); font-size: clamp(5rem, 30vw, 11rem); line-height: 1; color: var(--ouro); text-shadow: 0 0 60px rgba(255, 138, 60, .55); margin: 0; }
.erro p { max-width: 44ch; margin-inline: auto; color: var(--texto-suave); }
.erro .acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* 8. Página do jogo ------------------------------------------------------- */
.jogo { padding-block: 22px 0; }
.jogo .envolve { max-width: 1500px; }
.jogo__cabeca { margin-bottom: 14px; }
.jogo__cabeca h1 { font-size: clamp(1.6rem, 6.5vw, 2.4rem); margin-bottom: .2em; }
.jogo__cabeca p { margin: 0; color: var(--texto-suave); font-size: 1rem; }

.jogo__grade { display: grid; gap: 34px; }
.jogo__palco { min-width: 0; }

.quadro {
  position: relative; width: 100%;
  height: min(74svh, 660px); min-height: 420px;
  border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(244, 203, 108, .28), 0 30px 90px -40px rgba(255, 138, 60, .45), 0 40px 80px -50px #000;
}
.quadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.quadro__falta { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 24px; display: flex; align-items: center; justify-content: center; text-align: center; background: #0b0816; color: #e9e0f7; font-size: 1.05rem; line-height: 1.5; }
.quadro__falta[hidden] { display: none; }
.quadro:fullscreen { width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; }
.quadro:-webkit-full-screen { width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; }
@media (min-width: 760px) and (min-aspect-ratio: 1/1) {
  .quadro { height: auto; min-height: 0; aspect-ratio: 16 / 9; max-height: 82svh; }
}

.jogo__barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.jogo__barra .botao { min-height: 48px; font-size: 1.05rem; padding-inline: 1.2em; }
.jogo__barra .dica { margin: 0; color: var(--bruma); font-size: .92rem; flex: 1 1 220px; }

/* Distância de segurança: nenhum anúncio encosta no quadro do jogo. */
.jogo__depois { margin-top: 44px; display: grid; gap: 30px; }
.jogo__depois .caixa { padding: 20px; border-radius: var(--raio); background: rgba(27, 22, 56, .6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.jogo__depois h2 { font-size: 1.4rem; }
.jogo__depois ul { margin: 0; padding-left: 1.2em; color: var(--texto-suave); }
.jogo__depois li { margin-bottom: .5em; }
.jogo__depois li::marker { color: var(--ouro); }
@media (min-width: 760px) { .jogo__depois { grid-template-columns: 1fr 1fr; } }

.jogo__lado { display: none; }
@media (min-width: 1280px) {
  .jogo__grade { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 150px; align-items: start; }
  .jogo__lado { display: block; }
  .jogo__lado .caixa { padding: 18px; border-radius: var(--raio); background: rgba(27, 22, 56, .6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset; }
  .jogo__lado h2 { font-size: 1.25rem; }
  .jogo__lado ol { margin: 0; padding-left: 1.4em; }
  .jogo__lado li { margin-bottom: .3em; }
  .jogo__lado li a { text-decoration: none; }
  .jogo__lado li a:hover { text-decoration: underline; }
}

/* 9. Espaços de anúncio ---------------------------------------------------
   Regra de ouro: um .ad-slot NÃO ocupa espaço nem aparece enquanto estiver
   vazio (data-filled="false"). Só depois que o dono colar o código real do
   AdSense e trocar para data-filled="true" a altura é reservada — assim não
   há "caixas de anúncio" falsas e o deslocamento de layout (CLS) fica em zero:
   a altura já está reservada antes de o anúncio carregar.
   ------------------------------------------------------------------------ */
.ad-slot { display: none; }
.ad-slot[data-filled="true"] {
  display: block; position: relative; clear: both;
  width: 100%; max-width: 970px; margin: 44px auto; padding-top: 22px;
  min-height: 302px;            /* 280 do anúncio + 22 do rótulo */
  text-align: center; overflow: hidden;
  contain: layout paint;
}
.ad-slot[data-filled="true"]::before {
  content: "Publicidade"; position: absolute; top: 0; left: 0; right: 0;
  font-family: var(--corpo); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: #77729a; line-height: 18px;
}
.ad-slot[data-filled="true"] > ins.adsbygoogle { display: block; min-height: 280px; }

/* dentro do texto dos capítulos */
.ad-slot--artigo[data-filled="true"] { max-width: var(--coluna); margin-block: 38px; }

/* faixa larga (abaixo do herói, antes do rodapé) */
@media (min-width: 760px) {
  .ad-slot--faixa[data-filled="true"] { min-height: 272px; }
  .ad-slot--faixa[data-filled="true"] > ins.adsbygoogle { min-height: 250px; }
}

/* abaixo do jogo: margem grande para ficar longe do quadro */
.ad-slot--jogo[data-filled="true"] { margin-top: 64px; }

/* coluna lateral do jogo (só existe em telas ≥ 1280 px) */
.ad-slot--lateral[data-filled="true"] { width: 300px; max-width: 300px; min-height: 622px; margin: 28px 0 0; }
.ad-slot--lateral[data-filled="true"] > ins.adsbygoogle { min-height: 600px; }
@media (min-width: 1280px) { .jogo__lado { position: sticky; top: 18px; } }

/* âncora no celular (só páginas de leitura): o formato âncora é desenhado pelo
   próprio Google (Anúncios automáticos). Este bloco apenas reserva um respiro
   no fim da página para a âncora não cobrir os links do rodapé. */
.ad-slot--ancora[data-filled="true"] { display: none; }
@media (max-width: 759px) {
  .ad-slot--ancora[data-filled="true"] {
    display: block; min-height: 110px; margin: 0; padding: 0; max-width: none; contain: none;
  }
  .ad-slot--ancora[data-filled="true"]::before { content: none; }
}

/* 10. Utilitários --------------------------------------------------------- */
.centro { text-align: center; }
.so-leitor {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.espaco-acima { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brasas { display: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .topo, .rodape, .ad-slot, .heroi__cena, .brasas, .vizinhos, .botao { display: none !important; }
  h1, h2, h3, a { color: #000; }
}
