/* =========================================================
   LEITOR — tela de uma casa
   ========================================================= */

:root {
  --tinta: #f2e9ff;
  --tinta-fraca: #bdaed4;
  --papel: #150733;
  --papel-2: #1d0a44;
  --linha: rgba(255, 255, 255, .10);

  --c-crianca: #ffc94d;
  --c-rigor: #8f7bff;
  --c-objecao: #ff6a7a;
  --c-resposta: #35d6a6;
  --c-ouro: #ffcb2e;
}

body.travado { overflow: hidden; }

.leitor {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70vw 50vh at 85% -5%, rgba(120, 40, 190, .40), transparent 70%),
    radial-gradient(60vw 45vh at 0% 60%, rgba(70, 25, 140, .35), transparent 70%),
    linear-gradient(180deg, var(--papel-2), var(--papel) 40%, #0d0322);
  color: var(--tinta);
  animation: subir .22s ease;
}
/* display:flex venceria o [hidden] do HTML — daí a regra explícita */
.leitor[hidden], .toast[hidden] { display: none; }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } }

/* ---------- topo fixo ---------- */

.leitor-topo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: max(10px, env(safe-area-inset-top)) clamp(12px, 3vw, 26px) 10px;
  background: linear-gradient(180deg, #c31ad4, #a012c6);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .5);
}
.voltar {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.voltar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.leitor-topo-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.leitor-topo-txt .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.leitor-topo-txt strong {
  font-size: clamp(15px, 2.4vw, 19px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- corpo rolável ---------- */

.leitor-corpo {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 4vw, 40px) clamp(14px, 4vw, 28px) 120px;
  scroll-behavior: smooth;
}
.leitor-corpo > * {
  max-width: 760px;
  margin-inline: auto;
}

/* ---------- capa ---------- */

.capa { margin-bottom: 30px; }
.capa h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.capa h1 small {
  display: block;
  margin-top: 6px;
  font-size: clamp(15px, 2.6vw, 20px);
  font-weight: 600;
  color: var(--c-ouro);
  letter-spacing: .02em;
}
.lema {
  margin: 0 0 18px;
  font-size: clamp(16px, 2.6vw, 20px);
  font-style: italic;
  color: #e8c8ff;
  border-left: 3px solid rgba(255, 200, 255, .45);
  padding-left: 14px;
}
.pergunta {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--linha);
  font-size: clamp(15px, 2.3vw, 18px);
  font-weight: 600;
}
.pergunta span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tinta-fraca);
  margin-bottom: 5px;
}
.meta { margin: 0; font-size: 13px; color: var(--tinta-fraca); }

/* ---------- cartões ---------- */

.card {
  --cor: var(--c-rigor);
  position: relative;
  margin: 0 auto 22px;
  padding: 20px clamp(16px, 3vw, 24px);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--linha);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--cor);
}
.card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: clamp(14px, 2.1vw, 16px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cor);
}
.card .ic {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card p {
  margin: 0 0 14px;
  font-size: clamp(15.5px, 2.3vw, 17.5px);
  line-height: 1.72;
  color: var(--tinta);
}
.card p:last-child { margin-bottom: 0; }
.card a { color: #ff9ce8; text-underline-offset: 3px; }
.card a:hover { color: #ffc4f2; }

.card--crianca {
  --cor: var(--c-crianca);
  background: linear-gradient(180deg, rgba(255, 201, 77, .12), rgba(255, 201, 77, .04));
}
.card--crianca p { font-size: clamp(16px, 2.5vw, 18.5px); }
.card--objecao { --cor: var(--c-objecao); background: rgba(255, 106, 122, .07); }
.card--resposta { --cor: var(--c-resposta); background: rgba(53, 214, 166, .07); }
.card--fim { --cor: var(--c-ouro); background: rgba(255, 203, 46, .08); }

/* ponte entre o fácil e o difícil */
.ponte {
  max-width: 760px;
  margin: -6px auto 22px;
  padding: 0 clamp(16px, 3vw, 24px);
  border-left: 2px dashed rgba(255, 255, 255, .22);
}
.ponte p {
  margin: 0;
  font-size: clamp(14.5px, 2.1vw, 16px);
  line-height: 1.65;
  color: var(--tinta-fraca);
}

/* ---------- balanço ---------- */

.balanco {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 auto 22px;
}
@media (max-width: 620px) { .balanco { grid-template-columns: 1fr; } }
.balanco-col {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--linha);
}
.balanco-col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.balanco-col svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.balanco-col--sim { box-shadow: inset 0 0 0 1px rgba(53, 214, 166, .3); }
.balanco-col--sim h4 { color: var(--c-resposta); }
.balanco-col--nao { box-shadow: inset 0 0 0 1px rgba(255, 106, 122, .3); }
.balanco-col--nao h4 { color: var(--c-objecao); }
.balanco-col ul { margin: 0; padding-left: 18px; }
.balanco-col li {
  margin-bottom: 9px;
  font-size: 15px;
  line-height: 1.55;
  color: #ded2f2;
}

/* ---------- selos ---------- */

.selo {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: help;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.selo--P { color: #9ee6ff; }
.selo--C { color: #7ef0c0; }
.selo--D { color: #ffd166; }
.selo--F { color: #ff9ce8; }
.selo--T { color: #c7b6ff; }

.selo-inline {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  margin-left: 2px;
  vertical-align: -4px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #12042c;
  background: #d9c8ff;
}

/* ---------- fontes ---------- */

.fontes {
  margin: 28px auto 0;
  padding: 22px clamp(16px, 3vw, 24px);
  border-radius: 18px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1px var(--linha);
}
.fontes h3 {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 16px;
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tinta-fraca);
}
.fontes h3 svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fontes ul { margin: 0; padding: 0; list-style: none; }
.fontes li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--linha);
}
.fontes li:first-child { border-top: 0; }
.fonte-t { display: block; font-size: 15.5px; font-weight: 600; }
.fonte-t a { color: #ff9ce8; }
.fonte-d { display: block; margin-top: 2px; font-size: 13.5px; color: var(--tinta-fraca); line-height: 1.5; }

/* ---------- desafio ---------- */

.desafio {
  margin: 34px auto 0;
  padding: 24px clamp(16px, 3vw, 26px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 203, 46, .10), rgba(255, 203, 46, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 203, 46, .28);
}
.desafio h3 {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 6px;
  font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-ouro);
}
.desafio h3 svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.desafio-sub { margin: 0 0 22px; font-size: 14.5px; color: var(--tinta-fraca); line-height: 1.6; }

.questao { margin-bottom: 24px; }
.questao-p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.5; font-weight: 600; }
.opcoes { display: flex; flex-direction: column; gap: 8px; }
.opcao {
  text-align: left;
  padding: 13px 15px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--tinta);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--linha);
  transition: background .14s ease, transform .1s ease;
}
.opcao:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.opcao:active:not(:disabled) { transform: scale(.99); }
.opcao:disabled { cursor: default; opacity: .72; }
.opcao--certa {
  opacity: 1;
  background: rgba(53, 214, 166, .18);
  box-shadow: inset 0 0 0 1.5px var(--c-resposta);
}
.opcao--errada {
  opacity: 1;
  background: rgba(255, 106, 122, .16);
  box-shadow: inset 0 0 0 1.5px var(--c-objecao);
}
.explicacao {
  margin-top: 11px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 15px;
  line-height: 1.6;
  color: #ded2f2;
  background: rgba(0, 0, 0, .3);
}

.resultado {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 203, 46, .3);
  text-align: center;
}
.resultado--camara { margin-top: 34px; border-top: 0; }
.resultado-estrelas { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.resultado-estrelas svg { width: 38px; height: 38px; }
.resultado-estrelas .on svg { fill: var(--c-ouro); filter: drop-shadow(0 0 8px rgba(255, 190, 40, .8)); }
.resultado-estrelas .off svg { fill: rgba(255, 255, 255, .14); }
.resultado-txt { margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.resultado-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform .1s ease, filter .14s ease;
}
.btn:active { transform: scale(.97); }
.btn--primario {
  color: #2a0630;
  background: linear-gradient(180deg, #ffd96b, #f5a623);
  box-shadow: 0 6px 18px rgba(245, 166, 35, .35);
}
.btn--primario:hover { filter: brightness(1.06); }
.btn--ghost {
  color: var(--tinta);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px var(--linha);
}

/* ---------- avisos e confete ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-h) + 22px);
  transform: translate(-50%, 12px);
  z-index: 70;
  max-width: min(90vw, 420px);
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #fff;
  background: rgba(20, 4, 46, .96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .14);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }

.confete {
  position: fixed;
  top: -12px;
  width: 9px; height: 14px;
  z-index: 80;
  pointer-events: none;
  animation: cair 2.6s linear forwards;
}
@keyframes cair {
  to { transform: translateY(105vh) rotate(540deg); opacity: .1; }
}

@media (prefers-reduced-motion: reduce) {
  .leitor { animation: none; }
  .confete { display: none; }
  .leitor-corpo { scroll-behavior: auto; }
}

/* =========================================================
   LEITURA COMO JORNADA — capa, roteiro e microinterações
   ========================================================= */

.leitura-progresso {
  position: relative;
  z-index: 2;
  flex: 0 0 3px;
  height: 3px;
  background: rgba(255, 255, 255, .09);
}
.leitura-progresso i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff8de4, #ffd96b);
  box-shadow: 0 0 12px rgba(255, 217, 107, .7);
  transition: width .1s linear;
}

.capa {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) 1.28fr;
  align-items: center;
  gap: clamp(20px, 5vw, 42px);
  min-height: min(56vh, 520px);
  padding: clamp(16px, 4vw, 32px);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(75, 27, 134, .42), rgba(17, 4, 45, .5));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 24px 70px rgba(0,0,0,.22);
}

.capa-visual {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 220, 115, .2), transparent 24%),
    linear-gradient(180deg, rgba(32, 5, 66, .05), rgba(11, 2, 34, .42)),
    url("assets/jornada-cosmica.webp") center var(--foco-y) / 130% auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), 0 18px 42px rgba(4,0,20,.36);
}
.capa-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(11,2,34,.7));
}
.capa-visual > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px; height: 100px;
  border-radius: 32px;
  color: #35113f;
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(145deg, #fff2ae, #ffb92f);
  box-shadow: 0 0 0 10px rgba(255, 218, 103, .12), 0 20px 40px rgba(0,0,0,.4), inset 0 2px rgba(255,255,255,.65);
  animation: flutuar-selo 3.2s ease-in-out infinite;
}
.capa-visual > small {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  color: #fff4c7;
  background: rgba(19, 4, 48, .78);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}
.capa-visual__anel {
  position: absolute;
  width: 160px; height: 160px;
  border: 1px solid rgba(255, 233, 160, .45);
  border-radius: 50%;
  animation: girar-anel 12s linear infinite;
}
.capa-visual__anel::before,
.capa-visual__anel::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff0a8;
  box-shadow: 0 0 12px #ffd96b;
}
.capa-visual__anel::before { left: 17px; top: 24px; }
.capa-visual__anel::after { right: 17px; bottom: 24px; }
@keyframes flutuar-selo { 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes girar-anel { to { transform: rotate(360deg); } }

.capa-kicker {
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 900;
  color: #ffcf62;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.capa .lema { border: 0; padding: 0; font-size: 16px; line-height: 1.55; }
.capa .pergunta { background: rgba(7, 1, 26, .32); }
.capa .meta { display: flex; align-items: center; gap: 5px; font-weight: 700; color: #d1c0e3; }
.capa .meta span { color: #ffcf62; font-size: 17px; }

.trilha-leitura {
  position: sticky;
  top: -1px;
  z-index: 8;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-top: 16px;
  padding: 11px;
  border-radius: 16px;
  background: rgba(18, 5, 46, .88);
  box-shadow: 0 12px 32px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}
.trilha-leitura::-webkit-scrollbar { display: none; }
.trilha-leitura button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: #bca9d2;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  background: transparent;
  transition: color .2s ease, background .2s ease;
}
.trilha-leitura button span { color: #d779f1; font-size: 14px; }
.trilha-leitura button.ativo { color: #2a0e33; background: #ffd467; }
.trilha-leitura button.ativo span { color: inherit; }

.guia-leitura {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(213, 71, 222, .15), rgba(255,255,255,.035));
  box-shadow: inset 0 0 0 1px rgba(231, 142, 255, .2);
}
.guia-leitura__avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 13px;
  color: #39133e;
  background: linear-gradient(145deg, #ffe88f, #f7ab2c);
  box-shadow: 0 6px 18px rgba(247,171,44,.23);
}
.guia-leitura b { display: block; color: #f0c3ff; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.guia-leitura p { margin: 3px 0 0; color: #d4c7e3; font-size: 13px; line-height: 1.4; }

.story { position: relative; margin-top: 32px; }
.story::before {
  content: "";
  position: absolute;
  left: 21px; top: 10px; bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, #d85ae7, #7c61ef 55%, #ffd25c);
  opacity: .34;
}
.story-beat {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  scroll-margin-top: 82px;
  animation: beat-revelar both;
  animation-timeline: view();
  animation-range: entry 5% cover 28%;
}
@keyframes beat-revelar {
  from { opacity: .18; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.beat-marco { position: relative; z-index: 2; display: flex; justify-content: center; }
.beat-marco span {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 12px;
  color: #f5d8ff;
  font-size: 15px;
  background: #2c1053;
  box-shadow: 0 0 0 5px #150733, inset 0 0 0 1px rgba(255,255,255,.14);
}
.beat-conteudo { min-width: 0; padding-bottom: 8px; }
.beat-conteudo > .card,
.beat-conteudo > .ponte,
.beat-conteudo > .balanco,
.beat-conteudo > .fontes,
.beat-conteudo > .wg { margin-inline: 0; }

/* O conteúdo profundo continua disponível, mas não pesa no primeiro olhar. */
.card--rigor:not(.is-expanded) p:nth-of-type(n+2) { display: none; }
.ler-mais {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 11px 13px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  color: #d9ccff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: rgba(143, 123, 255, .11);
  box-shadow: inset 0 0 0 1px rgba(143, 123, 255, .3);
}
.ler-mais i { font-style: normal; font-size: 18px; color: #b5a2ff; }

.fontes { padding: 0; overflow: hidden; }
.fontes__gatilho {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 14px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--tinta);
  font: inherit;
  background: transparent;
}
.fontes__gatilho > span { display: flex; align-items: center; gap: 9px; }
.fontes__gatilho svg { width: 19px; height: 19px; fill: none; stroke: #d2b6e9; stroke-width: 1.7; }
.fontes__gatilho b { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.fontes__gatilho em { grid-column: 1; color: var(--tinta-fraca); font-size: 12px; font-style: normal; }
.fontes__gatilho i { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; color: #ffcd60; font-style: normal; }
.fontes__corpo { padding: 0 20px 16px; }
.fontes__corpo[hidden] { display: none; }

/* quiz em episódios */
.desafio-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.desafio-kicker { display: block; margin-bottom: 5px; font-size: 9px; color: #d0b5e9; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.desafio-marcador { display: flex; gap: 6px; }
.desafio-marcador i { width: 20px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); transition: background .2s ease, width .2s ease; }
.desafio-marcador i.atual { width: 34px; background: #ffd35f; box-shadow: 0 0 10px rgba(255,211,95,.45); }
.desafio-marcador i.feito { background: #35d6a6; }
.questao[hidden] { display: none; }
.questao-contador { display: inline-block; margin-bottom: 8px; font-size: 10px; font-weight: 900; color: #c9ace2; letter-spacing: .15em; }
.questao-p b { display: none; }
.questao-avancar {
  display: block;
  margin: 13px 0 0 auto;
  padding: 10px 15px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: #2c1037;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffe486, #ffbc3e);
}
.resultado:not([hidden]) { animation: resultado-chegar .4s cubic-bezier(.2,.8,.2,1); }
@keyframes resultado-chegar { from { opacity: 0; transform: scale(.96) translateY(12px); } }

@media (max-width: 660px) {
  .leitor-corpo { padding-inline: 11px; }
  .capa { grid-template-columns: 1fr; min-height: 0; padding: 12px; border-radius: 22px; }
  .capa-visual { min-height: 210px; }
  .capa-visual > span { width: 76px; height: 76px; border-radius: 24px; font-size: 34px; }
  .capa-texto { padding: 5px 4px 10px; }
  .story { margin-top: 24px; }
  .story::before { left: 14px; }
  .story-beat { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
  .beat-marco span { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; box-shadow: 0 0 0 4px #150733, inset 0 0 0 1px rgba(255,255,255,.14); }
  .card, .desafio { padding-inline: 15px; }
  .guia-leitura { align-items: flex-start; }
  .trilha-leitura { margin-inline: -1px; }
  .desafio-cabeca { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .capa-visual > span, .capa-visual__anel, .story-beat { animation: none; }
}

/* leitura otimizada para uso majoritariamente móvel */
@media (max-width: 720px) {
  .leitor-topo {
    min-height: 58px;
    gap: 9px;
    padding: max(7px, env(safe-area-inset-top)) 9px 7px;
  }
  .voltar {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 7px 10px;
  }
  .leitor-topo-txt strong { font-size: 14px; }
  .leitor-topo-txt .kicker { font-size: 9px; }
  .leitor-corpo {
    padding: 12px 9px calc(96px + env(safe-area-inset-bottom));
    scroll-padding-top: 66px;
    -webkit-overflow-scrolling: touch;
  }
  .capa {
    gap: 12px;
    padding: 10px;
    border-radius: 20px;
  }
  .capa-visual { min-height: 185px; border-radius: 16px; }
  .capa-visual > span { width: 68px; height: 68px; border-radius: 21px; font-size: 30px; }
  .capa-visual__anel { width: 130px; height: 130px; }
  .capa h1 { font-size: clamp(27px, 9vw, 38px); }
  .capa .lema { font-size: 14px; }
  .capa .pergunta { padding: 12px; font-size: 15px; }

  .trilha-leitura {
    margin-top: 10px;
    padding: 8px;
    border-radius: 13px;
    scroll-snap-type: x proximity;
  }
  .trilha-leitura button {
    min-height: 40px;
    padding: 8px 10px;
    scroll-snap-align: start;
  }
  .guia-leitura { margin-top: 10px; padding: 11px 12px; }
  .guia-leitura__avatar { width: 34px; height: 34px; }
  .guia-leitura p { font-size: 12px; }
  .story-beat { scroll-margin-top: 66px; }
  .card { border-radius: 15px; }
  .card p { font-size: 15.5px; line-height: 1.65; }
  .ler-mais,
  .fontes__gatilho,
  .opcao,
  .questao-avancar,
  .btn { min-height: 46px; }
  .opcao { padding: 13px; }
  .desafio { margin-top: 26px; border-radius: 17px; }
  .desafio-sub { margin-bottom: 17px; }
  .resultado-btns { flex-direction: column-reverse; }
  .resultado-btns .btn { width: 100%; }
  .fontes__gatilho { padding: 15px; }
  .fontes__corpo { padding-inline: 15px; }
  .fontes li { gap: 9px; }
}

@media (max-width: 360px) {
  .voltar span { display: none; }
  .voltar { width: 44px; padding: 0; }
  .leitor-topo .selo { width: 24px; height: 24px; }
  .capa-visual { min-height: 166px; }
  .capa h1 { font-size: 27px; }
  .guia-leitura__avatar { display: none; }
  .story::before { left: 12px; }
  .story-beat { grid-template-columns: 26px minmax(0, 1fr); gap: 7px; }
  .beat-marco span { width: 25px; height: 25px; }
  .card, .desafio { padding-inline: 13px; }
  .desafio-marcador i { width: 17px; }
  .desafio-marcador i.atual { width: 27px; }
}

/* ilustração narrativa exclusiva de cada casa */
.capa-visual--ilustrada {
  min-height: 0;
  aspect-ratio: 3 / 2;
  background: #16072f;
}
.capa-visual--ilustrada::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 2, 28, .02) 52%, rgba(10, 2, 28, .7)),
    linear-gradient(90deg, rgba(10, 2, 28, .22), transparent 30%);
}
.casa-ilustracao {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}
.capa-visual--ilustrada:hover .casa-ilustracao { transform: scale(1.025); filter: brightness(1.04); }
.capa-visual--ilustrada .capa-visual__anel { display: none; }
.capa-visual--ilustrada > span {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 14px;
  font-size: 19px;
  animation: none;
  box-shadow: 0 0 0 5px rgba(30, 7, 57, .44), 0 8px 22px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.65);
}
.capa-visual--ilustrada > small {
  left: 12px;
  bottom: 12px;
  z-index: 2;
  transform: none;
}
.ilustracao-ampliar {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff8dc;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  background: rgba(20, 4, 45, .78);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 8px 20px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}
.ilustracao-ampliar span { font-size: 17px; line-height: 1; }

.ilustracao-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(54px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  background: rgba(7, 1, 20, .92);
  backdrop-filter: blur(14px);
  animation: lightbox-entrar .2s ease;
}
.ilustracao-lightbox figure {
  width: min(1120px, 100%);
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #13052d;
  box-shadow: 0 28px 90px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.14);
}
.ilustracao-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  background: #090219;
}
.ilustracao-lightbox figcaption {
  padding: 13px 16px 15px;
  color: #c9badb;
  font-size: 13px;
  line-height: 1.45;
}
.ilustracao-lightbox figcaption b {
  display: block;
  margin-bottom: 3px;
  color: #ffe29a;
  font-size: 15px;
}
.ilustracao-lightbox__fechar {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: 12px;
  z-index: 2;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 25px;
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
@keyframes lightbox-entrar { from { opacity: 0; transform: scale(.985); } }

@media (max-width: 720px) {
  .capa-visual--ilustrada { min-height: 0; aspect-ratio: 3 / 2; }
  .capa-visual--ilustrada > span { top: 9px; left: 9px; width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
  .capa-visual--ilustrada > small { left: 9px; bottom: 9px; }
  .ilustracao-ampliar { right: 9px; bottom: 9px; min-width: 44px; min-height: 44px; padding-inline: 11px; backdrop-filter: none; }
  .ilustracao-lightbox { padding-inline: 8px; backdrop-filter: none; }
  .ilustracao-lightbox figure { border-radius: 15px; }
  .ilustracao-lightbox figcaption { padding: 11px 13px 13px; }
}

@media (max-width: 360px) {
  .capa-visual--ilustrada > small { font-size: 8px; }
  .ilustracao-ampliar { font-size: 0; }
  .ilustracao-ampliar span { font-size: 18px; }
}

@media (hover: none) and (pointer: coarse) {
  .capa-visual--ilustrada:hover .casa-ilustracao { transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .casa-ilustracao, .ilustracao-lightbox { transition: none; animation: none; }
}
