:root {
  --creme: #F6F1E4;
  --papel: #EDE3CB;
  --tinta: #0F1A2B;
  --verde: #0E7A45;
  --verde-fundo: #138A50;
  --lima: #D6F07E;
  --amarelo: #FFD23F;
  --azul: #1E4FC2;
  --azul-escuro: #13296E;
  --cinza: #5B6474;
  --bg-a: #F3EEDF;
  --bg-b: #17864F;
  --sombra: 5px 5px 0 var(--tinta);
  --cond: "Archivo", system-ui, sans-serif;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--cond);
  font-variation-settings: "wdth" 100;
  color: var(--tinta);
  background: var(--verde-fundo);
  min-height: 100dvh;
  line-height: 1.4;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

.bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.grao {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  width: 100%; max-width: 480px; margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 24px;
  min-height: calc(100dvh - 90px);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}

/* ---------- tipografia ---------- */
.gigante {
  font-variation-settings: "wdth" 62; font-weight: 900; text-transform: uppercase;
  line-height: .84; letter-spacing: -.01em;
}
.condensado { font-variation-settings: "wdth" 70; font-weight: 800; text-transform: uppercase; line-height: .95; }
.pixel { font-family: var(--pixel); font-weight: 700; letter-spacing: .02em; }
.miudo { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ---------- janela (ref. hackathon) ---------- */
.janela {
  position: relative; background: var(--creme); border: 2px solid var(--tinta);
  border-radius: 8px; box-shadow: var(--sombra);
}
.janela-barra {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--lima); border-bottom: 2px solid var(--tinta);
  border-radius: 6px 6px 0 0; padding: 7px 12px;
}
.janela-barra.amarela { background: var(--amarelo); }
.janela-barra.azul { background: var(--azul); color: var(--creme); }
.janela-barra .pixel { font-size: 14px; }
.janela-x { font-family: var(--pixel); font-size: 18px; line-height: 1; }
.janela-corpo { padding: 18px 18px 20px; }

/* ---------- capa ---------- */
.capa { position: relative; padding-top: 10px; }
.capa-titulo {
  position: relative; z-index: 2; font-size: clamp(76px, 25vw, 124px); color: var(--creme);
  -webkit-text-stroke: 2px var(--tinta); paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--tinta);
}
.capa-titulo .jogo {
  display: inline-block; background: var(--amarelo); color: var(--tinta); -webkit-text-stroke: 0;
  text-shadow: none; padding: 6px 10px 0; border: 2px solid var(--tinta); border-radius: 10px;
  box-shadow: var(--sombra); transform: rotate(-3deg); margin-top: 6px;
}
.estrela {
  position: absolute; z-index: 1; width: 210px; right: -34px; top: -26px;
  animation: gira 40s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }
.cursor-pixel { position: absolute; z-index: 3; width: 46px; right: 6px; bottom: -38px; image-rendering: pixelated; animation: clica 2.4s ease-in-out infinite; }
@keyframes clica { 0%,100% { transform: translate(0,0); } 45% { transform: translate(-8px,-10px); } 55% { transform: translate(-8px,-10px) scale(.92); } }

/* papel rasgado + recorte de jornal (ref. colagem Boal) */
.recorte {
  position: relative; background: var(--papel); padding: 16px 18px 18px;
  clip-path: polygon(0 4%, 6% 0, 14% 3%, 23% 0, 34% 2%, 47% 0, 58% 3%, 70% 0, 82% 2%, 92% 0, 100% 3%, 99% 30%, 100% 62%, 98% 100%, 88% 97%, 76% 100%, 63% 98%, 50% 100%, 37% 97%, 25% 100%, 12% 97%, 0 100%, 2% 66%, 0 34%);
  filter: drop-shadow(4px 4px 0 rgba(15,26,43,.9));
}
.recorte.verde { background: var(--lima); }
.jornal { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.etiqueta {
  display: inline-block; background: var(--azul); color: var(--creme); padding: 4px 9px 3px;
  font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase; font-size: 13px;
  transform: rotate(-2deg); border: 2px solid var(--tinta);
}
.etiqueta.amarela { background: var(--amarelo); color: var(--tinta); }
.etiqueta.verde { background: var(--verde); }

.meio-tom {
  position: absolute; pointer-events: none; border-radius: 50%;
  background-image: radial-gradient(var(--tinta) 1.1px, transparent 1.4px);
  background-size: 6px 6px; opacity: .35;
}

/* ---------- botões (ref. quiz) ---------- */
.opcoes { display: grid; gap: 10px; }
.opcao {
  display: grid; grid-template-columns: 52px 1fr; gap: 8px; text-align: left; width: 100%;
  transition: transform .12s ease;
}
.opcao .letra, .opcao .rotulo {
  background: var(--azul); color: var(--creme); border: 2px solid var(--tinta); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--tinta); display: flex; align-items: center;
}
.opcao .letra { justify-content: center; font-weight: 900; font-size: 18px; }
.opcao .rotulo { padding: 12px 18px; font-weight: 600; font-size: 17px; line-height: 1.2; min-height: 50px; }
.opcao:active, .opcao.marcada { transform: translate(3px,3px); }
.opcao:active .letra, .opcao:active .rotulo, .opcao.marcada .letra, .opcao.marcada .rotulo { box-shadow: 0 0 0 var(--tinta); }
.opcao.marcada .letra, .opcao.marcada .rotulo { background: var(--amarelo); color: var(--tinta); }
.opcao:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; border-radius: 999px; }
@media (hover: hover) { .opcao:hover .rotulo, .opcao:hover .letra { background: var(--azul-escuro); } }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: var(--amarelo); color: var(--tinta); border: 2px solid var(--tinta); border-radius: 999px;
  box-shadow: var(--sombra); padding: 16px 22px; font-variation-settings: "wdth" 75; font-weight: 900;
  font-size: 20px; text-transform: uppercase; letter-spacing: .01em; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.botao:active { transform: translate(5px,5px); box-shadow: 0 0 0 var(--tinta); }
.botao.secundario { background: var(--creme); font-size: 16px; padding: 13px 18px; box-shadow: 3px 3px 0 var(--tinta); }
.botao.zap { background: var(--lima); }
.linha-botoes { display: grid; gap: 12px; }

/* ---------- progresso pixel ---------- */
.progresso { display: flex; align-items: center; gap: 10px; color: var(--creme); }
.progresso-barra { flex: 1; height: 16px; border: 2px solid var(--tinta); background: var(--creme); padding: 2px; display: flex; gap: 2px; box-shadow: 3px 3px 0 var(--tinta); }
.progresso-barra i { flex: 1; background: transparent; }
.progresso-barra i.cheio { background: var(--azul); }
.progresso .pixel { font-size: 15px; text-shadow: 2px 2px 0 var(--tinta); }

/* ---------- pergunta ---------- */
.tema { margin-bottom: 10px; }
.pergunta { font-size: clamp(25px, 7.4vw, 32px); font-weight: 800; font-variation-settings: "wdth" 82; line-height: 1.08; letter-spacing: -.01em; }
.pergunta-sub { margin-top: 10px; color: var(--cinza); font-size: 15px; }

/* ---------- revelação ---------- */
.lados { display: grid; gap: 10px; margin-top: 4px; }
.lado { border: 2px solid var(--tinta); border-radius: 8px; padding: 12px 14px; background: #fff; position: relative; }
.lado h4 { font-variation-settings: "wdth" 70; font-weight: 900; text-transform: uppercase; font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.lado p { font-size: 15.5px; line-height: 1.38; }
.lado.lula h4::before, .lado.flavio h4::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--tinta); border-radius: 50%; }
.lado.lula h4::before { background: var(--amarelo); }
.lado.flavio h4::before { background: var(--azul); }
.lado .bate { position: absolute; top: -11px; right: 10px; }
.fonte { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--cinza); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.veredito { font-size: 15px; padding: 10px 14px; background: var(--lima); border: 2px dashed var(--tinta); border-radius: 8px; }

/* ---------- resultado ---------- */
.placar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.placar-item { border: 2px solid var(--tinta); border-radius: 8px; padding: 12px; text-align: center; background: #fff; }
.placar-item .num { font-size: 64px; }
.placar-item.lula { background: var(--amarelo); }
.placar-item.flavio { background: #DCE5FA; }
.lista-jogo { list-style: none; display: grid; gap: 8px; }
.lista-jogo li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; font-size: 15.5px; }
.lista-jogo li::before { content: "✦"; font-size: 18px; line-height: 1.1; color: var(--verde); }

/* ---------- vídeo ---------- */
.video-moldura { border: 2px solid var(--tinta); border-radius: 8px; overflow: hidden; background: var(--tinta); aspect-ratio: 9 / 16; max-height: 70dvh; margin: 0 auto; box-shadow: var(--sombra); }
.video-moldura video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ---------- utilitários ---------- */
.branco { color: var(--creme); text-shadow: 2px 2px 0 var(--tinta); }
.centro { text-align: center; }
.pilha > * + * { margin-top: 12px; }
.texto p + p { margin-top: 10px; }
.texto { font-size: 16.5px; }
.giro-1 { transform: rotate(-1.5deg); }
.giro-2 { transform: rotate(1.2deg); }
.esconde { display: none !important; }

.rodape { max-width: 480px; margin: 0 auto; padding: 0 16px max(22px, env(safe-area-inset-bottom)); }
.rodape p { font-size: 11.5px; line-height: 1.45; color: var(--creme); background: rgba(15,26,43,.82); padding: 10px 12px; border-radius: 8px; }

.fontes-lista { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.fontes-lista a { word-break: break-word; }

/* entrada de tela */
.entra > * { animation: sobe .42s cubic-bezier(.2,.9,.3,1.2) both; }
.entra > *:nth-child(2) { animation-delay: .06s; }
.entra > *:nth-child(3) { animation-delay: .12s; }
.entra > *:nth-child(4) { animation-delay: .18s; }
.entra > *:nth-child(5) { animation-delay: .24s; }
@keyframes sobe { from { opacity: 0; transform: translateY(18px) rotate(-1deg); } }
.pula { animation: pula .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pula { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.selo { display: inline-block; background: var(--tinta); color: var(--creme); padding: 5px 10px; border-radius: 999px; }

.titulo-bloco { align-self: flex-start; background: var(--tinta); color: var(--creme); padding: 14px 18px 10px; border-radius: 8px; box-shadow: 5px 5px 0 var(--amarelo); font-size: 60px; }
.titulo-bloco.centro { align-self: center; font-size: 44px; }
.titulo-bloco .menor { font-size: 22px; font-variation-settings: "wdth" 80; font-weight: 700; color: var(--lima); margin-top: 8px; line-height: 1.1; }
.bloco { display: block; }
