/* ==========================================================
   Pixel Culture, camada de experiência
   Decisões tiradas de vieses cognitivos, sempre a favor de quem lê.
   Carregar depois de estilo.css e escuro.css.
   ========================================================== */

[hidden] { display: none !important; }


/* ---------- ancoragem: a nota nunca aparece sem a palavra da escala ---------- */

.nota-selada { position: absolute; z-index: 2; top: 0; right: 0; display: flex; align-items: stretch; }
.nota-selada .nota { font-size: 1.55rem; }
.selo-mini {
  display: flex;
  align-items: center;
  padding: 0 .55rem;
  background: #0d0c0b;
  color: #f1eee6;
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.destaques .nota-selada .nota { font-size: 2.2rem; }
.destaques .selo-mini { padding: 0 .85rem; font-size: .7rem; }

/* no celular o placar escondia o selo; agora ele desce pra baixo do texto */
@media (max-width: 480px) {
  .placar-linha .selo { display: block; grid-column: 2; margin-top: -.5rem; }
}


/* ---------- padrão: spoiler vem fechado ---------- */

.spoiler { margin: 1.8rem 0; border: 1px dashed var(--tinta-3); }
.spoiler > button {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .7rem;
  width: 100%;
  padding: .9rem 1rem;
  border: 0;
  background: none;
  color: var(--tinta);
  text-align: left;
  cursor: pointer;
  font-family: var(--f-titulo);
}
.spoiler [data-rotulo] { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brasa-escura); }
.spoiler [data-rotulo]::before { content: "▸ "; }
.spoiler [aria-expanded="true"] [data-rotulo]::before { content: "▾ "; }
.spoiler small { font-size: .85rem; color: var(--tinta-2); }
.spoiler-conteudo { padding: 0 1rem 1rem; }
.spoiler-conteudo p:last-child { margin-bottom: 0; }


/* ---------- confirmação: uma segunda voz na mesma review ---------- */

.segunda {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  margin: 2.5rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--fio-claro);
  border-bottom: 1px solid var(--fio-claro);
}
.segunda .nota { font-size: 2.2rem; }
.texto .segunda p { margin: 0; }
.segunda-rotulo { font-family: var(--f-titulo); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--brasa-escura); }
.texto .segunda-texto { margin: .35rem 0 .5rem; font-style: italic; font-size: 1.12rem; line-height: 1.45; }
.segunda-quem { font-family: var(--f-titulo); font-size: .78rem; color: var(--tinta-2); }


/* ---------- prova social sem efeito manada: média só depois do voto ---------- */

.leitores { margin: 2.5rem 0; padding: 1.4rem 1.5rem; background: var(--papel-2); border-top: 3px solid var(--brasa); font-family: var(--f-titulo); }
.texto .leitores h2 { margin: 0 0 .45rem; font-size: .74rem; font-weight: 800; font-stretch: 100%; text-transform: uppercase; letter-spacing: .12em; line-height: 1.3; }
.texto .leitores p { margin: 0; font-family: var(--f-texto); font-size: .98rem; line-height: 1.45; color: var(--tinta-2); }
.leitores-botoes { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; margin-top: 1rem; }
.leitores-botoes button {
  padding: .6rem 0;
  border: 2px solid var(--regua, var(--fio-claro));
  background: none;
  color: var(--tinta);
  font-family: var(--f-titulo);
  font-weight: 900;
  font-stretch: 62%;
  font-size: 1.3rem;
  cursor: pointer;
}
.leitores-botoes button:hover,
.leitores-botoes button:focus-visible { background: var(--brasa); border-color: var(--brasa); color: #fff; }
.leitores-resultado { display: flex; gap: 1.2rem; align-items: center; }
.leitores-resultado .nota { font-size: 3.2rem; }
.texto .leitores-resultado b { color: var(--tinta); }
.leitores-resultado button { padding: 0; border: 0; background: none; color: var(--brasa-escura); font: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 560px) {
  .leitores { padding: 1.2rem 1rem; }
  .leitores-botoes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}


/* ---------- Zeigarnik: progresso de leitura e "continuar de onde parei" ---------- */

.progresso-leitura { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 3px; pointer-events: none; }
.progresso-leitura span { display: block; height: 100%; background: var(--brasa); transform: scaleX(0); transform-origin: left; }

.continuar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 30;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: .7rem .7rem .7rem 1.1rem;
  background: #1c1a17;
  color: #f1eee6;
  border-top: 3px solid var(--brasa);
  font-size: .88rem;
}
.continuar p { margin: 0; }
.continuar-fechar { padding: .2rem .45rem; border: 0; background: none; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }

@media (max-width: 560px) {
  .continuar { left: 16px; right: 16px; width: auto; transform: none; flex-wrap: wrap; }
}


/* ---------- transparência na notícia ---------- */

.fontes { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--fio-claro); font-family: var(--f-titulo); font-size: .88rem; line-height: 1.5; }
.texto .fontes-tit { margin: 0 0 .5rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.fontes ul { margin: 0; color: var(--tinta-2); }


/* ---------- newsletter: opção extra nunca vem marcada ---------- */

.news-form { flex-wrap: wrap; }
.news-extra { flex-basis: 100%; display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--tinta-2); cursor: pointer; }
.news-extra input { flex: none; width: 1rem; height: 1rem; margin: 0; padding: 0; accent-color: var(--brasa); }
