/* Hub /jogos/ — demonstração. Identidade da Educação de Guararema (campanha "Educação de Ouro").
   Sem framework, sem CDN. Fontes hospedadas aqui (SIL OFL): Fredoka (display) e Andika (texto, "a" e "g" de um andar). */

@font-face { font-family: "Andika"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fontes/andika-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Andika"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fontes/andika-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fontes/fredoka-latin-700-normal.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  /* paleta da marca */
  --laranja: #fe7029;
  --ouro: #f7ae02;
  --indigo: #373db3;
  --marinho: #1a3f71;
  --noite: #0f2547;      /* texto sobre laranja e ouro (contraste medido) */
  --limao: #def03e;
  --branco: #ffffff;
  /* neutros do tema */
  --fundo: #ffffff;
  --superficie: #eef0fb;
  --superficie-2: #f7f8fe;
  --quente: #ffe6df;
  --tinta: #14264a;
  --tinta-2: #3b4a6d;
  --titulo: #1a3f71;
  --foco: #373db3;
  --papel: #ffffff;
  --papel-tinta: #14264a;
  /* contexto de cada bloco */
  --btn-bg: var(--laranja);
  --btn-fg: var(--noite);
  --tecla: #ffffff;
  --tecla-base: #9aa3d4;
  --tecla-fg: #14264a;

  --fonte-d: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --fonte-t: "Andika", "Verdana", "Trebuchet MS", sans-serif;

  --gut: clamp(16px, 4vw, 56px);
  --miolo: 1280px;
  --lado: max(var(--gut), calc((100vw - var(--miolo)) / 2));
  --secao: clamp(64px, 9vw, 144px);
  --t-s: 1rem; --t-b: 1.125rem; --t-l: 1.25rem; --t-m: 1.5rem;
  --t-g: clamp(1.75rem, 3vw, 2.25rem);
  --t-h2: clamp(1.75rem, 5.2vw, 4rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #0d1832;
    --superficie: #172547;
    --superficie-2: #121f3d;
    --quente: #1c2646;
    --tinta: #eef1fb;
    --tinta-2: #c1c9e3;
    --titulo: #ffffff;
    --foco: #ffd25e;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@supports (width: 1cqw) { :root { --lado: max(var(--gut), calc((100cqw - var(--miolo)) / 2)); } }
body {
  container-type: inline-size;
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--fonte-t);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
strong, b { font-weight: 700; }
h1, h2, h3 { font-family: var(--fonte-d); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; text-wrap: balance; color: var(--titulo); }
h4 { font-family: var(--fonte-d); font-weight: 700; font-size: var(--t-m); line-height: 1.15; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.12em; }

:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }
.jogo--trem :focus-visible, .privacidade :focus-visible, .rodape :focus-visible, .offline :focus-visible { --foco: #ffffff; }
.jogo--quintal :focus-visible, .aviso :focus-visible, .faixa-demo :focus-visible { --foco: var(--noite); }

.sr-only { 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; }
svg[width="0"] { position: absolute; }

.pular { position: absolute; left: 8px; top: -80px; z-index: 10; background: var(--noite); color: #fff; padding: 14px 20px; min-height: 48px; font-weight: 700; }
.pular:focus { top: 8px; }

.miolo { padding-inline: var(--lado); }
.lead { font-size: 1.25rem; line-height: 1.5; max-width: 38rem; }
.pequeno { font-size: 1rem; line-height: 1.5; }

/* marca-texto limão (assinatura da campanha) */
.marca-texto { background: transparent; text-decoration: underline; text-decoration-color: var(--limao); text-decoration-thickness: 0.28em; text-underline-offset: -0.1em; text-decoration-skip-ink: none; color: inherit; }
h1 .marca-texto, h2 .marca-texto { background: transparent; text-decoration: underline; text-decoration-color: var(--limao); text-decoration-thickness: 0.28em; text-underline-offset: -0.1em; text-decoration-skip-ink: none; color: inherit; }
@media (prefers-color-scheme: dark) { h1 .marca-texto, h2 .marca-texto { background: transparent; text-decoration: underline; text-decoration-color: var(--limao); text-decoration-thickness: 0.28em; text-underline-offset: -0.1em; text-decoration-skip-ink: none; color: inherit; } }

/* ---------- faixa de demonstração ---------- */
.faixa-demo { background: var(--ouro); color: var(--noite); padding: 12px var(--gut); font-size: 1rem; line-height: 1.45; text-align: center; }
.faixa-demo strong { font-weight: 700; }

/* ---------- topo (fundo branco: o logo da Escola é laranja sobre claro) ---------- */
.topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding: 14px var(--lado); background: #ffffff; }
.marca { display: inline-flex; align-items: center; padding: 8px 12px 8px 0; }
.marca img { display: block; height: 96px; width: auto; }
@media (min-width: 960px) { .marca img { height: 116px; } }
.topo__nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-inline: -12px; }
.topo__nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; font-weight: 700; font-size: 1rem; color: #1a3f71; }
.topo__nav a:hover { text-decoration: underline; }
.topo :focus-visible { --foco: #373db3; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 12px 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--fonte-t); font-weight: 700; font-size: var(--t-b); line-height: 1.2; text-align: center; text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
}
.btn::before { content: ""; flex: none; width: 14px; height: 16px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.btn:hover { filter: brightness(1.06); }
.btn--grande { min-height: 64px; padding-inline: 36px; font-size: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.12s ease-out; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
}
@media (max-width: 380px) {
  .btn { padding-inline: 16px; }
  .btn::before { display: none; }
}

/* ---------- rabiscos que se desenham ---------- */
.rabisco path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .rabisco path { stroke-dashoffset: 1; }
.js .rabisco.desenha path { animation: desenhar 1.5s ease-out forwards; }
@keyframes desenhar { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .rabisco path { stroke-dashoffset: 0; }
  .js .rabisco.desenha path { animation: none; }
}
.rabisco--titulo { display: block; width: clamp(150px, 16vw, 210px); height: auto; fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; margin-top: -6px; }

/* ---------- 1. herói ---------- */
.heroi { background: var(--fundo); display: grid; overflow: hidden; }
.heroi__texto { padding: clamp(32px, 6vw, 80px) var(--gut) clamp(32px, 5vw, 64px); position: relative; z-index: 1; }
.heroi h1 { font-size: clamp(1.625rem, 7.4vw, 3.5rem); max-width: 14em; letter-spacing: -0.02em; }
.heroi__lead { margin-top: 24px; font-size: 1.25rem; line-height: 1.5; max-width: 32rem; }
.acoes { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.heroi__nota { margin-top: 24px; font-size: 1rem; color: var(--tinta-2); }

.colagem { position: relative; aspect-ratio: 1 / 0.92; min-height: 300px; }
@media (min-width: 600px) and (max-width: 959px) { .colagem { aspect-ratio: 1 / 0.8; } }
.colagem__fundo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.colagem__trem { position: absolute; left: 4%; top: 6%; width: 74%; height: auto; transform: rotate(-3deg); }
.colagem__sapo { position: absolute; right: 2%; bottom: 3%; width: 66%; height: auto; transform: rotate(2deg); }

@media (min-width: 960px) {
  .heroi { grid-template-columns: minmax(0, 1fr); min-height: min(86vh, 800px); }
  .heroi__texto { align-self: center; padding-left: var(--lado); padding-right: 40px; }
  .heroi h1 { font-size: clamp(2.25rem, 3.6vw, 3.5rem); }
  /* a colagem cobre o hero inteiro desde o início (o 3D, quando entra, usa o mesmo retângulo: sem deslocamento de layout) */
  .colagem { position: absolute; inset: 0; aspect-ratio: auto; min-height: 0; z-index: 0; }
  .colagem__fundo { left: auto; right: 0; width: 42%; }
  .colagem__trem { left: 60%; top: 8%; width: 30%; }
  .colagem__sapo { right: 3%; bottom: 4%; width: 25%; }
}

/* ---------- 2. jogos ---------- */
.jogos { padding-top: var(--secao); }
.jogos__cab { display: grid; gap: 20px; padding-bottom: clamp(32px, 5vw, 64px); }
.jogos h2, .escola h2, .privacidade h2, .professor h2, .aviso h2 { font-size: var(--t-h2); }

.jogo { display: grid; background: var(--c-jogo); color: var(--c-tinta); padding-block: clamp(40px, 6vw, 80px); row-gap: 28px; }
.jogo h3, .jogo h4 { color: var(--c-titulo); }
.jogo--trem { --c-jogo: var(--indigo); --c-tinta: #ffffff; --c-titulo: #ffffff; --btn-bg: var(--ouro); --btn-fg: var(--noite); --prof-bg: rgb(255 255 255 / 0.14); --linha-par: rgb(255 255 255 / 0.1); --cab-bg: #ffffff; --cab-fg: #14264a; --tecla-base: #aab0f0; }
.jogo--quintal { --c-jogo: var(--laranja); --c-tinta: var(--noite); --c-titulo: var(--noite); --btn-bg: var(--noite); --btn-fg: #ffffff; --prof-bg: rgb(255 255 255 / 0.24); --linha-par: rgb(255 255 255 / 0.3); --cab-bg: var(--noite); --cab-fg: #ffffff; --tecla-base: #c4a08a; }
.jogo--passeio { --c-jogo: var(--marinho); --c-tinta: #ffffff; --c-titulo: #ffffff; --btn-bg: var(--ouro); --btn-fg: var(--noite); --prof-bg: rgb(255 255 255 / 0.14); --linha-par: rgb(255 255 255 / 0.1); --cab-bg: #ffffff; --cab-fg: #14264a; --tecla-base: #9fb2d6; }
.jogo--passeio :focus-visible { --foco: #ffffff; }
.jogo__lado, .jogo__main { display: contents; }
.jogo__capa { order: 1; display: block; padding-inline: var(--gut); }
.jogo__topo { order: 2; } .jogo__teclas { order: 3; } .jogo__fim { order: 4; }
.jogo__topo, .jogo__teclas, .jogo__fim { padding-inline: var(--gut); display: grid; gap: 22px; align-content: start; }
/* capa = adesivo: borda branca + contorno marinho (contorno duplo da marca) */
.jogo__capa img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 8px solid #ffffff; border-radius: 28px; outline: 4px solid var(--marinho); background: #ffffff; transform: rotate(-1deg); }
.jogo--quintal .jogo__capa img { transform: rotate(1deg); }
.jogo__topo h3 { font-size: var(--t-h2); }
.subtitulo { font-size: var(--t-l); line-height: 1.35; }
.slogan { font-family: var(--fonte-d); font-weight: 700; font-size: var(--t-m); line-height: 1.2; color: var(--c-titulo); }
.jogo h4 { margin-top: 6px; }
.jogo__topo > p, .jogo__topo .aprende { max-width: 40rem; }

.fatos { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.fatos > div { display: flex; flex-direction: column-reverse; }
.fatos dt { font-size: 1rem; line-height: 1.3; }
.fatos dd { font-family: var(--fonte-d); font-weight: 700; font-size: var(--t-g); line-height: 1.1; }

.aprende { list-style: none; padding: 0; display: grid; gap: 10px; }
.aprende li { position: relative; padding-left: 30px; }
.aprende li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%; background: var(--limao); }
.jogo--quintal .aprende li::before { background: #ffffff; }

.teclas { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px 24px; }
.teclas li { display: grid; gap: 8px; align-content: start; }
.teclas li:first-child { grid-column: 1 / -1; }
.teclas .acao { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.teclas .grupos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.teclas .grupo { display: inline-flex; gap: 6px; }
.teclas .ou { font-size: 1rem; }
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 10px;
  background: var(--tecla); color: var(--tecla-fg);
  border-bottom: 4px solid var(--tecla-base); border-radius: 10px;
  font-family: var(--fonte-t); font-weight: 700; font-size: 1rem; line-height: 1;
}
kbd.larga { padding-inline: 16px; }
kbd.on { background: var(--ouro); color: var(--noite); border-bottom-width: 1px; transform: translateY(3px); }
.seta { width: 20px; height: 20px; }
.seta--dir { transform: rotate(90deg); }
.seta--baixo { transform: rotate(180deg); }
.seta--esq { transform: rotate(-90deg); }

.prof { background: var(--prof-bg); border-radius: 14px; }
.prof summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 18px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1rem; line-height: 1.35;
}
.prof summary::-webkit-details-marker { display: none; }
.prof summary::after { content: "+" / ""; flex: none; font-family: var(--fonte-d); font-size: 2rem; line-height: 1; }
.prof[open] summary::after { content: "\2212" / ""; }
.prof__conteudo { padding: 4px 18px 22px; display: grid; gap: 16px; font-size: 1rem; line-height: 1.55; }
.prof table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.prof th, .prof td { padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.prof thead th { background: var(--cab-bg); color: var(--cab-fg); font-weight: 700; }
.prof tbody tr:nth-child(odd) { background: var(--linha-par); }
.prof tbody th { font-weight: 700; }
.conf { font-weight: 700; }

@media (min-width: 960px) {
  .jogo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); row-gap: 0; align-items: start; }
  .jogo__lado, .jogo__main { display: grid; align-content: start; gap: 32px; }
  .jogo__capa, .jogo__topo, .jogo__teclas, .jogo__fim { order: 0; padding-inline: 0; }
  .jogo__lado { padding-left: var(--lado); padding-right: clamp(24px, 3vw, 48px); }
  .jogo__main { padding-left: clamp(24px, 3vw, 48px); padding-right: var(--lado); }
  .jogo--quintal { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .jogo--quintal .jogo__lado { order: 2; padding-left: clamp(24px, 3vw, 48px); padding-right: var(--lado); }
  .jogo--quintal .jogo__main { order: 1; padding-left: var(--lado); padding-right: clamp(24px, 3vw, 48px); }
}

/* ---------- 3. escola ---------- */
.escola { padding-block: var(--secao); position: relative; overflow: hidden; }
.escola__grade { display: grid; gap: clamp(32px, 5vw, 56px); position: relative; }
.escola__cab { display: grid; gap: 24px; align-content: start; }
.escola__lista { list-style: none; padding: 0; display: grid; gap: 0; border-top: 4px solid var(--indigo); }
.escola__lista li { display: grid; gap: 4px 24px; padding: 22px 0; border-bottom: 4px solid color-mix(in srgb, var(--indigo) 30%, transparent); }
.escola__lista strong { font-family: var(--fonte-d); font-weight: 700; font-size: var(--t-g); line-height: 1.05; color: var(--titulo); }
.escola__lista span { align-self: center; }
.offline { background: var(--indigo); color: #ffffff; padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 20px; margin-top: 8px; border-radius: 24px; }
.offline h3 { font-size: var(--t-g); color: #ffffff; }
.offline ol { list-style: none; counter-reset: passo; padding: 0; display: grid; gap: 16px; }
.offline li { counter-increment: passo; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; }
.offline li::before { content: counter(passo); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ouro); color: var(--noite); font-family: var(--fonte-d); font-weight: 700; font-size: var(--t-m); }
@media (min-width: 960px) {
  .escola__grade { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
  .escola__lista li { display: grid; gap: 4px 24px; padding: 22px 0; border-bottom: 4px solid color-mix(in srgb, var(--indigo) 30%, transparent); }
}

/* ---------- 4. privacidade ---------- */
.privacidade { background: var(--marinho); color: #ffffff; padding-block: var(--secao); }
.privacidade h2 { color: #ffffff; }
.privacidade__grade { display: grid; gap: clamp(28px, 4vw, 48px); }
.privacidade__cab { display: grid; gap: 24px; align-content: start; }
.privacidade__declara { font-weight: 700; font-size: var(--t-m); line-height: 1.25; max-width: 30rem; }
.privacidade__lista { display: grid; gap: 28px 40px; }
.privacidade__lista dt { font-family: var(--fonte-d); font-weight: 700; font-size: var(--t-m); line-height: 1.15; color: var(--ouro); }
.privacidade__lista dd { margin-top: 6px; max-width: 36rem; }
.privacidade__limite { max-width: 56rem; padding: 20px clamp(16px, 2.5vw, 28px); background: var(--noite); color: #ffffff; border-radius: 20px; }
@media (min-width: 960px) {
  .privacidade__grade { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .privacidade__lista { grid-template-columns: 1fr 1fr; }
  .privacidade__limite { grid-column: 1 / -1; }
}

/* ---------- 5. professor ---------- */
.professor { background: var(--quente); padding-block: var(--secao); }
.professor__grade { display: grid; gap: clamp(32px, 5vw, 64px); }
.professor__texto { display: grid; gap: 24px; align-content: start; }
.professor__lista { list-style: none; padding: 0; display: grid; gap: 18px; max-width: 40rem; }
.professor__lista li { padding-left: 30px; position: relative; }
.professor__lista li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%; background: var(--laranja); }
.cartao { display: grid; gap: 14px; align-content: start; }
.cartao__folha { background: var(--papel); color: var(--papel-tinta); padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; border-radius: 12px; }
.cartao__titulo { font-family: var(--fonte-d); font-weight: 700; font-size: var(--t-g); line-height: 1.05; color: #1a3f71; }
.cartao__sub { font-size: 1rem; line-height: 1.45; }
.cartao__lista { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 6px; }
.cartao__lista li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; font-size: 1rem; line-height: 1.4; }
.cartao__lista i { display: block; width: 24px; height: 24px; border: 3px solid var(--papel-tinta); border-radius: 6px; margin-top: 1px; }
.cartao__assina { display: flex; align-items: end; gap: 14px; margin-top: 18px; font-weight: 700; font-size: 1rem; }
.cartao__assina b { flex: 1; height: 30px; border-bottom: 3px solid var(--papel-tinta); }
.cartao figcaption { font-size: 1rem; line-height: 1.45; }
@media (min-width: 960px) {
  .professor__grade { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}
@media (prefers-color-scheme: dark) {
  .professor { background: var(--superficie-2); }
}

/* ---------- 6. aviso ---------- */
.aviso { background: var(--ouro); color: var(--noite); padding-block: clamp(48px, 6vw, 88px); }
.aviso h2 { color: var(--noite); }
.aviso .marca-texto { background: transparent; text-decoration: underline; text-decoration-color: var(--limao); text-decoration-thickness: 0.28em; text-underline-offset: -0.1em; text-decoration-skip-ink: none; color: inherit; }
.aviso .miolo { display: grid; gap: clamp(20px, 3vw, 32px); }
.aviso__declara { font-weight: 700; font-size: var(--t-m); line-height: 1.25; max-width: 46rem; text-wrap: balance; }
.aviso__intro { max-width: 40rem; }
.regua { list-style: none; padding: 0; display: grid; gap: 10px; }
.regua li { display: grid; gap: 4px; padding: clamp(18px, 3vw, 32px); border-radius: 24px; }
.regua li:nth-child(1) { background: var(--noite); color: var(--ouro); }
.regua li:nth-child(2) { background: var(--laranja); color: var(--noite); }
.regua li:nth-child(3) { background: #ffffff; color: var(--noite); }
.regua__idade { font-family: var(--fonte-d); font-weight: 700; font-size: var(--t-g); line-height: 1.05; }
.regua__tempo { font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.aviso__fecho { max-width: 38rem; }
@media (min-width: 760px) {
  .regua { grid-template-columns: 1.25fr 1fr 1fr; }
}

/* ---------- rodapé ---------- */
.rodape { background: var(--marinho); color: #ffffff; padding-block: clamp(48px, 7vw, 96px); }
.rodape .miolo { display: grid; gap: 20px; }
.rodape__logo { display: inline-block; width: max-content; max-width: 100%; padding: 24px 0 28px; /* área de respiro: ≥ altura do G do logo */ }
.rodape__logo img { display: block; height: clamp(56px, 9vw, 96px); width: auto; max-width: 100%; }
.rodape__estado { font-weight: 700; }
.rodape__nota { font-size: 1rem; line-height: 1.55; max-width: 40rem; }

/* ---------- impressão ---------- */
@media print {
  :root { color-scheme: light; --fundo: #fff; --tinta: #000; --titulo: #000; --superficie: #fff; --quente: #fff; --foco: #000; }
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .pular, .topo__nav, .btn, .acoes, .colagem, .rabisco { display: none !important; }
  .faixa-demo { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .heroi, .jogos, .jogo, .escola, .professor, .privacidade, .aviso, .offline, .cartao__folha, .escola__lista li { background: #fff !important; }
  .heroi *, .jogos *, .jogo *, .escola *, .professor *, .privacidade *, .aviso * { color: #000 !important; text-decoration-color: #000; }
  .marca-texto { text-decoration: none; }
  .rodape { background: #1a3f71 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rodape * { color: #fff !important; }
  .jogo__capa img { border: 2px solid #000; outline: none; transform: none; }
  kbd { background: #fff !important; border: 1px solid #000; border-bottom-width: 3px; }
  kbd.on { transform: none; }
  .prof { background: none !important; }
  .prof > summary { list-style: none; }
  .prof > summary::after, .prof[open] > summary::after { content: none !important; }
  .prof::details-content { content-visibility: visible; display: block; }
  .prof table { border: 1px solid #000; }
  .prof th, .prof td { border: 1px solid #000; background: #fff !important; }
  .prof thead th { background: #e6e6e6 !important; }
  .regua li, .offline, .privacidade__limite { border: 1px solid #000; background: #fff !important; }
  .offline li::before { background: #fff !important; border: 1px solid #000; }
  .aprende li::before, .professor__lista li::before { background: #000 !important; }
  .jogo__topo, .jogo__teclas, .prof, tr, .cartao, .regua li, .escola__lista li, .privacidade__lista > div, .offline { break-inside: avoid; }
  h2, h3, h4 { break-after: avoid; }
}

/* ---------- hero 3D (entra por cima da ilustração SVG; sem JS/WebGL nada disso se aplica) ---------- */
.heroi { position: relative; }
.heroi__texto { position: relative; z-index: 1; background: var(--fundo); }
@media (min-width: 960px) {
  .heroi--3d .heroi__texto { max-width: 48vw; padding-right: 36px; border-radius: 0 44px 44px 0; background: color-mix(in srgb, var(--fundo) 80%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .heroi__texto { max-width: 50vw; padding-right: 40px; }
}
@media (min-width: 1700px) {
  .heroi--3d .heroi__texto, .heroi__texto { max-width: calc(var(--lado) + 640px); }
}
@media (min-width: 960px) {
  .heroi h1 { font-size: clamp(2rem, 3.3vw, 3.25rem); }
}
.hero3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.9s ease; touch-action: pan-y; }
.hero3d__canvas.pronto { opacity: 1; }
.heroi--pronto .colagem__fundo, .heroi--pronto .colagem__trem, .heroi--pronto .colagem__sapo { opacity: 0; transition: opacity 0.9s ease; }
.btn.destaque { outline: 3px solid var(--noite); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hero3d__canvas, .heroi--pronto .colagem__fundo { transition: none; } }
