/* Quiz (brasilcomlula.com/quiz/): o vermelho do site, cartão branco pra ler bem e o amarelo de destaque. */
:root {
  --verm-esc: #ae1313;
  --verm: #d91c1c;
  --amar: #facc15;
  --preto: #0b0b0b;
  --branco: #fff;
  --verde: #0d6b33;
  --verde-claro: #e7f5ec;
  --verm-claro: #fdeaea;
  --creme: #f6f1e7;
  --linha: #e4dfd7;
  --cinza: #5c5853;
  --zap: #25d366;
  --zap-texto: #05361b;
  --suave: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: Archivo, system-ui, sans-serif;
  color: var(--branco);
  background: radial-gradient(ellipse 110% 560px at 50% 0, var(--verm) 0%, rgb(217 28 28 / 0) 100%) no-repeat, var(--verm-esc);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amar); outline-offset: 3px; }

/* topo igual ao das páginas de caso */
.q-topo {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 18px; background: var(--verm-esc);
  box-shadow: 0 1px 0 rgb(0 0 0 / .18);
}
.q-marca { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; font-size: 1.05rem; color: var(--branco); }
.q-apoiar {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border-radius: 999px; font-weight: 900; font-size: .9rem; white-space: nowrap;
  background: var(--amar); color: var(--verm-esc);
}

.q-main { max-width: 680px; margin: 0 auto; padding: 30px 18px 44px; }
.q-abre, .q-progresso, .q-fim { scroll-margin-top: 76px; }
.q-chapeu {
  display: inline-block; padding: .3rem .65rem; border-radius: .3rem;
  font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  background: var(--preto); color: var(--branco);
}
.q-titulo { margin-top: 12px; font-weight: 900; font-size: clamp(2.15rem, 8.6vw, 3.4rem); line-height: 1.03; letter-spacing: -.02em; }
.q-titulo mark {
  padding: 0 .12em; border-radius: .08em; background: var(--amar); color: var(--preto);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.q-intro { margin-top: 12px; max-width: 34rem; font-size: 1.05rem; line-height: 1.45; font-weight: 500; }

/* progresso */
.q-progresso { display: flex; align-items: center; gap: 14px; margin: 26px 0 12px; }
.q-conta { flex: none; font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }
.q-barra { flex: 1; height: 8px; border-radius: 99px; overflow: hidden; background: rgb(0 0 0 / .25); }
.q-barra span {
  display: block; height: 100%; background: var(--amar);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--suave);
}

/* cartão da pergunta */
.q-cartao {
  padding: 22px 18px 20px; border-radius: 18px;
  background: var(--branco); color: var(--preto);
  box-shadow: 0 26px 50px -30px rgb(0 0 0 / .7);
}
.q-cartao a:focus-visible, .q-cartao button:focus-visible { outline-color: var(--preto); }
.q-miolo { animation: q-entra .42s var(--suave) both; }
.q-tag {
  display: inline-block; padding: .28rem .6rem; border-radius: .3rem;
  font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  background: var(--verm-esc); color: var(--branco);
}
.q-tag[data-tipo="numero"] { background: var(--amar); color: var(--preto); }
.q-tag[data-tipo="boato"] { background: var(--preto); }

.q-boato { position: relative; margin-top: 16px; padding: 14px 16px 15px; border-radius: 12px; background: var(--creme); border: 1px solid var(--linha); }
.q-boato-rotulo { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--cinza); }
.q-boato-texto { margin-top: 6px; font-weight: 800; font-size: 1.08rem; line-height: 1.32; }
.q-boato.checado .q-boato-texto { text-decoration: line-through; text-decoration-color: rgb(217 28 28 / .7); text-decoration-thickness: 2px; }
.q-selo {
  position: absolute; top: -13px; right: 12px; padding: .15rem .55rem;
  border: 3px solid var(--verm); border-radius: .4rem; background: var(--branco); color: var(--verm);
  font-weight: 900; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transform: rotate(-6deg) scale(0);
  transition: transform .45s cubic-bezier(.3, 1.7, .5, 1), opacity .15s;
}
.q-boato.checado .q-selo { opacity: 1; transform: rotate(-6deg) scale(1); }

.q-pergunta { margin-top: 14px; font-weight: 900; font-size: clamp(1.3rem, 5.4vw, 1.62rem); line-height: 1.2; letter-spacing: -.01em; }
.q-pergunta:focus { outline: none; }

.q-opcoes { display: grid; gap: 10px; margin-top: 18px; }
.q-opcao {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px;
  border: 2px solid var(--linha); border-radius: 12px; background: var(--branco);
  font-weight: 700; font-size: 1.04rem; line-height: 1.28; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s;
}
.q-opcao:not([aria-disabled="true"]):active { transform: scale(.98); }
.q-opcao[aria-disabled="true"] { cursor: default; }
.q-letra {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #f0ece6; font-weight: 900; font-size: .95rem;
}
.q-opcao-txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.q-opcoes.respondida .q-opcao { opacity: .45; }
.q-opcoes.respondida .q-opcao.certa, .q-opcoes.respondida .q-opcao.errada { opacity: 1; }
.q-opcao.certa { border-color: var(--verde); background: var(--verde-claro); }
.q-opcao.certa .q-letra { background: var(--verde); color: var(--branco); }
.q-opcao.errada { border-color: var(--verm); background: var(--verm-claro); }
.q-opcao.errada .q-letra { background: var(--verm); color: var(--branco); }
.q-opcao.certa.escolhida { animation: q-pop .45s ease; }
.q-opcao.errada { animation: q-treme .42s ease; }

.q-retorno { margin-top: 16px; padding: 16px 16px 14px; border-radius: 12px; background: #f5f4f1; animation: q-entra .38s var(--suave) both; }
.q-veredito { font-weight: 900; font-size: 1.25rem; }
.q-veredito.ok { color: var(--verde); }
.q-veredito.nao { color: var(--verm); }
.q-explica { margin-top: 6px; font-size: 1rem; line-height: 1.5; color: #2a2826; }
.q-fontes { display: flex; align-items: flex-start; gap: .45rem; margin-top: 2px; font-size: .9rem; font-weight: 700; color: var(--cinza); }
.q-fontes-rotulo { flex: none; line-height: 44px; }
.q-fontes-lista { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.q-fonte {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere;
}
.q-proxima {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 54px; margin-top: 6px;
  border: 0; border-radius: 999px; background: var(--preto); color: var(--branco);
  font-weight: 900; font-size: 1.05rem; cursor: pointer; transition: transform .15s;
}
.q-proxima:active { transform: scale(.98); }
.q-seta { display: inline-block; transition: transform .2s; }

/* resultado */
.q-fim { margin-top: 26px; text-align: center; }
.q-fim > * { animation: q-entra .5s var(--suave) both; }
.q-fim > :nth-child(2) { animation-delay: .12s; }
.q-fim > :nth-child(3) { animation-delay: .22s; }
.q-fim > :nth-child(4) { animation-delay: .3s; }
.q-fim > :nth-child(5) { animation-delay: .36s; }
.q-placar { font-weight: 900; }
.q-placar:focus { outline: none; }
.q-placar-rotulo { display: block; font-size: 1.25rem; letter-spacing: -.01em; }
.q-placar-num {
  display: block; margin-top: 4px; color: var(--amar);
  font-size: clamp(3.6rem, 18vw, 6rem); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  animation: q-placar .7s cubic-bezier(.3, 1.45, .5, 1) .1s both;
}
.q-fim-frase { max-width: 30rem; margin: 14px auto 0; font-size: 1.15rem; line-height: 1.45; font-weight: 600; }
.q-fim-acoes { display: grid; gap: 10px; max-width: 460px; margin: 24px auto 0; }
.q-zap {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 58px; padding: .8rem 1.4rem;
  border-radius: 999px; background: var(--zap); color: var(--zap-texto);
  font-weight: 900; font-size: 1.1rem; transition: transform .2s;
}
.q-zap-icone { width: 1.35em; height: 1.35em; flex: none; }
.q-denovo {
  min-height: 52px; padding: .7rem 1.4rem; border: 2px solid rgb(255 255 255 / .75); border-radius: 999px;
  background: transparent; font-weight: 800; font-size: 1rem; cursor: pointer; transition: transform .2s;
}
.q-apoio-site {
  display: block; max-width: 460px; margin: 30px auto 0; padding: 18px; border-radius: 14px;
  background: var(--amar); color: #5c0f0f; font-weight: 600; line-height: 1.45; text-align: left;
  transition: transform .2s;
}
.q-apoio-site span { margin-right: .2rem; font-size: 1.35rem; }
.q-apoio-site strong { color: var(--verm-esc); font-weight: 900; }
.q-todos {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px;
  font-weight: 800; text-decoration: underline; text-underline-offset: .22em;
}

.q-semjs { margin-top: 24px; padding: 16px; border-radius: 12px; background: var(--branco); color: var(--preto); font-weight: 600; line-height: 1.45; }
.q-semjs a { text-decoration: underline; }
.q-leitor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.q-rodape { padding: 22px 18px 40px; text-align: center; font-size: .8rem; line-height: 1.5; color: rgb(255 255 255 / .85); }

@media (min-width: 560px) {
  .q-main { padding-top: 44px; }
  .q-cartao { padding: 30px 28px 26px; }
  .q-retorno { padding: 18px 20px 16px; }
}

/* efeitos de passar o mouse só onde tem mouse: no celular o toque deixava a alternativa seguinte com cara de marcada */
@media (hover: hover) {
  .q-opcao:not([aria-disabled="true"]):hover { border-color: var(--preto); }
  .q-fonte:hover { color: var(--preto); }
  .q-proxima:hover, .q-zap:hover, .q-denovo:hover, .q-apoio-site:hover { transform: translateY(-2px); }
  .q-proxima:hover .q-seta { transform: translateX(3px); }
  .q-proxima:active { transform: scale(.98); }
}

@keyframes q-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes q-pop { 0% { transform: scale(1); } 40% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes q-treme {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes q-placar { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

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