/* Seja a resposta: papel e tinta. Tipografia servida pelo próprio site. */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fontes/newsreader/5.3.0/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fontes/newsreader/5.3.0/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fontes/jetbrains-mono/5.3.0/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --papel: #f3f4f1;
  --nanquim: #101b2d;
  --tinta: #101b2d;
  --tinta-2: #5a6272;
  --caneta: #1b45c8;
  --marca: #ffd92e;
  --noite: #0c1630;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --comum: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --margem: clamp(1.25rem, 5.6vw, 6.5rem);
  --topo: clamp(1.5rem, 8.5vh, 5.5rem);
  --base: clamp(4.6rem, 12vh, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--serif);
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; min-height: 100vh; font-size: clamp(1rem, 0.92rem + 0.32vw, 1.22rem); line-height: 1.45; }
em { font-style: italic; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--caneta); outline-offset: 3px; border-radius: 2px; }

/* ---------- leitura corrida: vale sem JavaScript ou sem WebGL2 ---------- */
#tela, #tracos, #controles, #notas, .rodape-fonte { display: none; }
#deck { max-width: 42rem; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
#deck .cena { padding: 1.6rem 0; border-top: 1px solid #c9ced6; }
#deck .cena:first-child { border-top: 0; }
h1 { font: 400 clamp(2.8rem, 9vw, 5rem)/0.98 var(--serif); letter-spacing: -0.03em; margin: 0 0 1rem; }
h2 { font: 400 clamp(1.9rem, 5vw, 3rem)/1.04 var(--serif); letter-spacing: -0.025em; margin: 0 0 0.8rem; }
p { margin: 0 0 0.9rem; }
.sem-script { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem 3rem; font: 400 0.8rem/1.5 var(--mono); color: var(--tinta-2); }
.frase { font-size: 1.5rem; line-height: 1.2; }
.grande { font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em; margin: 0; }
.ano, .num { font: 500 0.78em var(--mono); color: var(--caneta); margin-right: 0.7em; }
.comecar, .compositor, .pensando, .campo-nome, .nota-privada, .fontes-vazias, .anotacao.fresca, .carimbo, .bilhetes { display: none; }
html.vivo .nota-privada, html.vivo .fontes-vazias, html.vivo .anotacao.fresca { display: block; }
html.vivo .bilhetes { display: block; }
.corrido { text-align: justify; hyphens: auto; text-wrap: pretty; }
mark { background: var(--marca); color: inherit; padding: 0 0.1em; }
sup a { font: 500 0.64em var(--mono); color: var(--caneta); text-decoration: none; padding: 0 0.15em; }
.fontes, .legenda, .rodape-fonte, .montada, .aviso-ia { font: 400 0.76rem/1.55 var(--mono); color: var(--tinta-2); }
.botao-tinta {
  font: italic 400 1.12rem/1 var(--serif); color: var(--papel); background: var(--nanquim);
  border: 0; border-radius: 999px; padding: 0.7rem 1.35rem 0.78rem; cursor: pointer;
  transition: background-color 0.25s, transform 0.25s;
}
.botao-tinta:hover { background: var(--caneta); }
.botao-tinta:active { transform: translateY(1px); }
.botao-linha {
  font: 500 0.78rem/1.3 var(--mono); color: inherit; background: none; border: 0; cursor: pointer; padding: 0.5rem 0;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.32em;
}
.botao-linha:hover { color: var(--caneta); }

/* ---------- apresentação ---------- */
html.vivo, html.vivo body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.vivo body { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.vivo #tela { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
html.vivo #tracos { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
html.vivo #deck { position: fixed; inset: 0; max-width: none; margin: 0; padding: 0; z-index: 2; color: var(--tinta); transition: color 0.7s; }
html.vivo #deck .cena {
  position: absolute; inset: 0; border: 0; margin: 0;
  padding: var(--topo) var(--margem) var(--base);
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  visibility: hidden; pointer-events: none;
}
html.vivo #deck .cena.ativa { visibility: visible; }
html.vivo #deck .cena > * { grid-area: 1 / 1; min-width: 0; }
html.vivo .cena.ativa .on, html.vivo .cena.ativa .on * { pointer-events: auto; }
html.vivo .troca { display: grid; }
html.vivo .troca > * { grid-area: 1 / 1; min-width: 0; }

html.vivo body.noite { --tinta: #eef0ea; --tinta-2: #a9b4c9; --caneta: #ffd92e; }
html.vivo body.amarelo { --tinta: #101b2d; --tinta-2: #4a4630; --caneta: #1b45c8; }

/* o que entra e sai a cada passo */
html.vivo [data-de] { opacity: 0; visibility: hidden; transition: opacity 0.32s ease, visibility 0s 0.32s; }
html.vivo [data-de].on { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }

.fluxo .p {
  display: inline-block; opacity: 0; filter: blur(0.3em); transform: translateY(0.22em);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.fluxo.vis .p {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 0.55s ease, filter 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--atraso, 0ms) + var(--i) * var(--ritmo, 62ms));
}
.fluxo.lento { --ritmo: 150ms; }
.fluxo.rapido { --ritmo: 26ms; }
.rev { opacity: 0; filter: blur(4px); translate: 0 0.6rem; transition: opacity 0.3s ease, filter 0.3s ease, translate 0.3s ease; }
.rev.vis {
  opacity: 1; filter: blur(0); translate: 0 0;
  transition: opacity 0.6s ease, filter 0.7s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--atraso, 0ms) + var(--k, 0) * 130ms);
}
html:not(.vivo) .fluxo .p, html:not(.vivo) .rev { opacity: 1; filter: none; transform: none; translate: none; }
html.sem-anim *, html.sem-anim *::before, html.sem-anim *::after { transition: none !important; animation-duration: 0.001s !important; }

html.vivo mark {
  background: linear-gradient(100deg, transparent 0.5%, var(--marca) 2.5% 97%, transparent 99.5%) no-repeat 0 72% / 0% 64%;
  padding: 0 0.14em; margin: 0 -0.14em; color: inherit; border-radius: 0.1em;
  transition: background-size 0.3s ease;
}
html.vivo .fluxo.vis mark { background-size: 100% 64%; transition: background-size 0.9s cubic-bezier(0.6, 0, 0.2, 1); transition-delay: calc(var(--atraso, 0ms) + var(--n, 6) * var(--ritmo, 62ms) + 350ms); }

/* tipografia da apresentação */
html.vivo .col { align-self: start; justify-self: start; width: min(46rem, 47vw); display: grid; gap: clamp(0.7rem, 2vh, 1.5rem); align-content: start; }
html.vivo .col.centro { align-self: center; width: min(50rem, 52vw); gap: clamp(1rem, 3.2vh, 2.2rem); }
html.vivo .col > *, html.vivo .troca > * > * { margin: 0; }
html.vivo .troca > div { display: grid; gap: clamp(0.6rem, 1.7vh, 1.2rem); align-content: start; }
html.vivo h1 { font-size: clamp(3.3rem, 11.4vw, 12rem); line-height: 0.9; letter-spacing: -0.04em; margin: 0; font-weight: 400; white-space: nowrap; }
html.vivo .ponto-final { color: transparent; }
html.vivo .capa { align-self: center; justify-self: start; display: grid; gap: clamp(1rem, 3vh, 2rem); }
html.vivo .sub { font-size: clamp(1.08rem, 1.75vw, 1.7rem); line-height: 1.3; max-width: 26em; margin: 0; color: var(--tinta-2); }
html.vivo .nome { font-size: clamp(2.5rem, 6.5vw, 6.8rem); line-height: 0.94; letter-spacing: -0.034em; margin: 0; font-weight: 400; }
html.vivo .frase { font-size: clamp(1.85rem, 4.1vw, 4.2rem); line-height: 1.05; letter-spacing: -0.024em; max-width: 15.5em; text-wrap: balance; }
html.vivo .frase.menor { font-size: clamp(1.42rem, 2.65vw, 2.7rem); line-height: 1.1; max-width: 18em; letter-spacing: -0.018em; }
html.vivo .lide { font-size: clamp(1.02rem, 1.42vw, 1.4rem); line-height: 1.4; max-width: 30em; color: var(--tinta-2); text-wrap: pretty; }
html.vivo .grande { font-size: clamp(4.4rem, 13.5vw, 13.5rem); line-height: 0.84; letter-spacing: -0.05em; font-variant-numeric: lining-nums tabular-nums; margin: 0 0 0 -0.04em; }

.trilha { list-style: none; margin: 0; padding: 0 0 0 1.55rem; display: grid; gap: clamp(0.5rem, 1.5vh, 1rem); position: relative; }
html.vivo .trilha::before {
  content: ""; position: absolute; left: 0.32rem; top: 0.5rem; bottom: 0.6rem; width: 1.5px; background: var(--caneta);
  transform-origin: top; transform: scaleY(0); transition: transform 0.3s;
}
html.vivo .on > .trilha::before, html.vivo .trilha.on::before { transform: scaleY(1); transition: transform 5.6s cubic-bezier(0.45, 0, 0.3, 1) 0.4s; }
.trilha li { position: relative; display: grid; gap: 0.08rem; }
html.vivo .trilha li::before {
  content: ""; position: absolute; left: -1.55rem; top: 0.34rem; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--caneta);
}
html.vivo .trilha li.hoje::before { background: var(--caneta); }
html.vivo .ano { font: 500 0.74rem/1.3 var(--mono); color: var(--caneta); margin: 0; }
html.vivo .feito { font-size: clamp(1rem, 1.42vw, 1.4rem); line-height: 1.22; max-width: 26em; }

/* a conversa comum do começo: de propósito sem graça */
html.vivo .conversa {
  align-self: center; justify-self: center; width: min(56rem, 100%);
  font: 400 clamp(1.05rem, 1.7vw, 1.7rem)/1.5 var(--comum); color: #2c3037; display: grid; gap: 1.3em; position: relative;
}
html.vivo .bolha { margin: 0; opacity: 0; translate: 0 0.5rem; transition: opacity 0.35s, translate 0.35s; }
html.vivo .bolha.vis { opacity: 1; translate: 0 0; }
html.vivo .bolha-pergunta { justify-self: end; background: #e4e6ea; border-radius: 1.15em; padding: 0.55em 0.95em; }
html.vivo .bolha-resposta { justify-self: start; max-width: 34em; min-height: 1.5em; }
html.vivo .pensando { display: inline-flex; gap: 0.28rem; vertical-align: middle; }
.pensando i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: #9aa0aa; animation: pensa 1.1s ease-in-out infinite; }
.pensando i:nth-child(2) { animation-delay: 0.16s; } .pensando i:nth-child(3) { animation-delay: 0.32s; }
@keyframes pensa { 0%, 70%, 100% { opacity: 0.3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-0.2rem); } }
html.vivo .pensando[hidden] { display: none; }
html.vivo .compositor {
  display: flex; align-items: center; gap: 0.5em; border: 1px solid #c8ccd3; border-radius: 1.7em;
  padding: 0.62em 0.62em 0.62em 1.15em; background: #fff; box-shadow: 0 1px 2px rgba(16, 27, 45, 0.06);
}
.campo { flex: 1; min-height: 1.5em; white-space: nowrap; overflow: hidden; }
.dica { color: #8a8f99; }
.cursor { display: inline-block; width: 1.5px; height: 1.15em; background: currentColor; vertical-align: -0.2em; margin: 0 1px; animation: pisca 1.05s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }
.enviar { width: 2.1em; height: 2.1em; border-radius: 50%; background: #2c3037; position: relative; flex: none; }
.enviar::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0.52em; height: 0.52em; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: translate(-50%, -30%) rotate(45deg); }
html.vivo .aviso-ia { font: 400 0.72em/1.4 var(--comum); color: #7b808a; text-align: center; margin: -0.3rem 0 0; }
html.vivo .aviso-final { font-size: 0.74rem; }
html.vivo .comecar { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0.4rem 0 0; flex-wrap: wrap; transition: opacity 0.4s; }
html.vivo .comecar .botao-tinta { font-size: clamp(1.12rem, 1.5vw, 1.5rem); }
html.vivo .comecar-dica { font: 400 0.76rem var(--mono); color: var(--tinta-2); }
html.vivo .comecar.foi { opacity: 0; pointer-events: none; }

/* anotações a caneta: a mão de quem edita */
.anotacao { font: italic 500 clamp(1.15rem, 1.7vw, 1.6rem)/1.1 var(--serif); color: var(--caneta); margin: 0; }
html.vivo .anotacao {
  position: fixed; left: 0; top: 0; z-index: 4; white-space: nowrap; pointer-events: none;
  translate: calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px); rotate: var(--giro, -4deg); transform-origin: left center;
  clip-path: inset(-20% 100% -20% -5%); transition: clip-path 0.2s;
}
html.vivo .anotacao.escrita { clip-path: inset(-20% -5% -20% -5%); transition: clip-path 0.9s cubic-bezier(0.5, 0, 0.3, 1); }
html.vivo .anotacao.fresca { font: 400 0.72rem var(--mono); rotate: 0deg; color: var(--tinta-2); }

/* rótulos colocados pelo roteiro em volta das figuras */
html.vivo .mecanismos, html.vivo .percentuais, html.vivo .bilhetes { list-style: none; margin: 0; padding: 0; position: fixed; inset: 0; pointer-events: none; }
html.vivo .rotulo {
  position: fixed; left: 0; top: 0; margin: 0; white-space: nowrap;
  translate: calc(var(--x, 0) * 1px - var(--ax, 50%)) calc(var(--y, 0) * 1px - 50%);
  font: 500 clamp(0.72rem, 1.02vw, 0.98rem)/1.2 var(--mono);
}
html.vivo .rotulo.rev { transition: opacity 0.3s ease, filter 0.3s ease, translate 1.1s cubic-bezier(0.3, 0.7, 0.2, 1); }
html.vivo .rotulo.rev.vis { transition: opacity 0.6s ease, filter 0.7s ease, translate 1.1s cubic-bezier(0.3, 0.7, 0.2, 1); transition-delay: calc(var(--atraso, 0ms) + var(--k, 0) * 150ms), calc(var(--atraso, 0ms) + var(--k, 0) * 150ms), 0s; }
html.vivo .percentuais .rotulo { font: 400 clamp(1.3rem, 2.5vw, 2.5rem)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }

html.vivo .num-fonte { font: 600 0.78rem/1 var(--mono); color: var(--caneta); }

/* a folha do dia: seis frentes escritas na página */
html.vivo .frentes {
  list-style: none; margin: 0; padding: 0; position: fixed; left: 0; top: 0; width: calc(var(--w, 400) * 1px);
  translate: calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px);
  display: grid; gap: calc(var(--vao, 30) * 1px); font-size: clamp(1.02rem, 1.72vw, 1.75rem); line-height: 1.12; letter-spacing: -0.012em;
  transition: opacity 0.6s;
}
html.vivo .frentes li { display: grid; grid-template-columns: 2.1em 1fr; align-items: baseline; }
html.vivo .frentes.vis-fraca.on { opacity: 0.3; }
html.vivo .num { font: 500 0.6em var(--mono); color: var(--caneta); margin: 0; }
html.vivo .bilhete {
  position: fixed; left: 0; top: 0; width: calc(var(--w, 170) * 1px); height: calc(var(--h, 120) * 1px);
  translate: calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px); rotate: var(--giro, -2deg);
  background: #fbfbf7; box-shadow: 0 1px 0 rgba(16, 27, 45, 0.12), 0 0.9rem 1.6rem -0.9rem rgba(16, 27, 45, 0.45);
  border-radius: 2px; list-style: none;
}
html.vivo .bilhete.rev { translate: calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px + 1.4rem); transition: opacity 0.3s, filter 0.3s, translate 0.3s; }
html.vivo .bilhete.rev.vis { translate: calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px); transition: opacity 0.5s, filter 0.5s, translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--k, 0) * 220ms); }
html.vivo .assina { position: absolute; right: 0.7rem; bottom: 0.35rem; font: italic 500 1.35rem var(--serif); color: var(--nanquim); }
html.vivo .gesto { position: absolute; left: 0; top: calc(100% + 0.55rem); font: 500 0.74rem var(--mono); color: var(--caneta); opacity: 0; transition: opacity 0.5s; }
html.vivo .bilhete.marcado .gesto { opacity: 1; }
html.vivo .carimbo {
  position: fixed; left: 0; top: 0; margin: 0; width: calc(var(--d, 150) * 1px); height: calc(var(--d, 150) * 1px);
  translate: calc(var(--x, 0) * 1px - 50%) calc(var(--y, 0) * 1px - 50%); rotate: -11deg;
  display: grid; place-content: center; text-align: center; gap: 0.15rem; color: var(--caneta);
  font: 700 clamp(0.52rem, 0.74vw, 0.72rem)/1.1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  scale: 1.7; opacity: 0;
}
html.vivo .carimbo b { font: 700 clamp(0.92rem, 1.45vw, 1.42rem)/1 var(--mono); letter-spacing: 0.02em; display: block; padding: 0.18rem 0; border-block: 1.5px solid currentColor; }
html.vivo .carimbo:not(.batido) { opacity: 0 !important; }
html.vivo .carimbo.batido { scale: 1; opacity: 0.9; transition: scale 0.16s cubic-bezier(0.7, 0, 1, 0.6), opacity 0.1s; }

/* contagem em papel quadriculado */
html.vivo .legenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.32rem; font: 500 clamp(0.76rem, 1vw, 0.95rem)/1.4 var(--mono); color: var(--tinta); }
.amostra { display: inline-block; width: 0.66em; height: 0.66em; border-radius: 50%; margin-right: 0.7em; }
.amostra.cheio { background: var(--nanquim); }
.amostra.vazio { background: rgba(16, 27, 45, 0.3); scale: 0.6; }
.amostra.erro { background: var(--caneta); }

/* pergunte por você */
html.vivo .campo-nome { display: flex; align-items: baseline; gap: 0.35em; font-size: clamp(1.85rem, 4.1vw, 4.2rem); line-height: 1.05; letter-spacing: -0.024em; margin: 0; }
html.vivo .campo-nome label { white-space: nowrap; }
html.vivo .campo-nome input {
  font: italic 400 1em/1.05 var(--serif); letter-spacing: inherit; color: var(--caneta); background: transparent;
  border: 0; border-bottom: 1.5px solid currentColor; border-radius: 0; padding: 0 0.1em 0.04em; width: min(10.5em, 100%); min-width: 0;
}
html.vivo .campo-nome input::placeholder { color: var(--tinta-2); opacity: 0.55; font-size: 0.5em; letter-spacing: 0; }
html.vivo .campo-nome input:focus { outline: none; border-bottom-width: 2.5px; }
html.vivo .nota-privada, html.vivo .fontes-vazias { font: 400 0.76rem/1.5 var(--mono); color: var(--tinta-2); margin: 0; }
html.vivo .fontes-vazias { font-size: clamp(0.9rem, 1.3vw, 1.2rem); color: var(--tinta); }

/* a resposta completa, como página de livro */
html.vivo .folha { align-self: center; justify-self: start; width: min(45rem, 100%); max-height: 100%; display: grid; gap: clamp(0.5rem, 1.6vh, 1rem); }
html.vivo .folha > * { margin: 0; }
html.vivo .pergunta-final { font: italic 400 clamp(1.5rem, 2.9vw, 2.9rem)/1.06 var(--serif); letter-spacing: -0.02em; color: var(--caneta); }
html.vivo .montada { font: 400 0.72rem/1.4 var(--mono); color: var(--tinta-2); }
html.vivo .resposta-final { font-size: clamp(1.05rem, 1.58vw, 1.56rem); line-height: 1.46; }
html.vivo .fontes { font: 400 clamp(0.68rem, 0.84vw, 0.8rem)/1.55 var(--mono); color: var(--tinta-2); margin: 0.3rem 0 0; padding: 0.8rem 0 0 1.5rem; border-top: 1px solid currentColor; display: grid; gap: 0.2rem; }
html.vivo .fontes li::marker { color: var(--caneta); font-weight: 600; }
html.vivo .fontes a { color: var(--tinta); }
html.vivo .aviso-final { text-align: left; margin: 0.2rem 0 0; width: max-content; max-width: 100%; position: relative; }
html.vivo .acoes { display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; align-items: center; margin-top: 0.5rem; }

/* rodapé: nota com a fonte do que está na tela, e os controles */
html.vivo .rodape-fonte {
  display: block; position: fixed; left: var(--margem); bottom: calc(max(0.85rem, env(safe-area-inset-bottom)) + 2.3rem); z-index: 4;
  font: 400 clamp(0.64rem, 0.8vw, 0.76rem)/1.45 var(--mono); color: var(--tinta-2); margin: 0; max-width: min(46rem, 78vw);
  transition: opacity 0.4s, color 0.7s;
}
html.vivo .rodape-fonte b { color: var(--caneta); font-weight: 600; margin-right: 0.6em; }
html.vivo .rodape-fonte.troca-nota { opacity: 0; }
html.vivo #controles {
  display: flex; position: fixed; left: var(--margem); right: var(--margem); bottom: max(0.55rem, env(safe-area-inset-bottom)); z-index: 5;
  align-items: center; gap: 0.2rem 1.15rem; font: 500 0.7rem/1 var(--mono); color: var(--tinta-2);
  transition: opacity 0.5s, color 0.7s;
}
html.vivo #controles button { all: unset; cursor: pointer; padding: 0.7rem 0.05rem; white-space: nowrap; }
html.vivo #controles button:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 0.3em; }
html.vivo #controles button:focus-visible { outline: 2px solid var(--caneta); outline-offset: 2px; }
.linha-progresso { flex: 1; height: 1px; background: currentColor; opacity: 0.4; position: relative; min-width: 2rem; }
#progresso { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--caneta); transition: width 0.7s cubic-bezier(0.3, 0.7, 0.2, 1), background-color 0.7s; }
.folio { font-variant-numeric: tabular-nums; white-space: nowrap; }
html.vivo body.ocioso #controles { opacity: 0; }
html.vivo body.ocioso { cursor: none; }
html.vivo body.inicio #controles, html.vivo body.inicio .rodape-fonte { opacity: 0; pointer-events: none; }

/* o bloco de dados para agentes continua no HTML; na apresentação em tela cheia ele sai da frente */
html.vivo .pagina-agentes { position: absolute !important; width: 1px; height: 1px; margin: 0 !important; padding: 0 !important; overflow: hidden; visibility: hidden; }

/* o baque da gota e do carimbo: a página inteira acusa o golpe */
@keyframes baque { 0% { translate: 0 0; } 18% { translate: 0 6px; } 42% { translate: 0 -3px; } 68% { translate: 0 2px; } 100% { translate: 0 0; } }
html.vivo body.baque #tela, html.vivo body.baque #deck, html.vivo body.baque #tracos { animation: baque 0.3s cubic-bezier(0.3, 0.6, 0.3, 1); }

/* marcas de corte nos quatro cantos, como numa prova de gráfica */
html.vivo body::after {
  content: ""; position: fixed; inset: clamp(0.5rem, 1.3vw, 1.1rem); z-index: 1; pointer-events: none; color: var(--tinta); opacity: 0.3;
  --m: 14px;
  background:
    linear-gradient(currentColor, currentColor) left top / var(--m) 1px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 1px var(--m) no-repeat,
    linear-gradient(currentColor, currentColor) right top / var(--m) 1px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 1px var(--m) no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / var(--m) 1px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 1px var(--m) no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / var(--m) 1px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 1px var(--m) no-repeat;
  transition: color 0.7s;
}

html.vivo #notas {
  position: fixed; right: var(--margem); bottom: 3.4rem; width: min(27rem, 82vw); z-index: 6; margin: 0;
  background: #fbfbf7; color: #101b2d; border: 1px solid #101b2d; box-shadow: 5px 5px 0 #101b2d; padding: 0.95rem 1.1rem;
  font-size: 0.98rem; line-height: 1.42;
}
html.vivo #notas:not([hidden]) { display: block; }
#notas p { margin: 0; }
dialog { border: 1px solid #101b2d; box-shadow: 6px 6px 0 #101b2d; background: #fbfbf7; color: #101b2d; padding: 1.3rem 1.5rem; max-width: min(34rem, 92vw); font-family: var(--serif); }
dialog::backdrop { background: rgba(12, 22, 48, 0.42); }
dialog dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.4rem; margin: 0 0 1rem; }
dialog dt { font-weight: 500; }
dialog dd { margin: 0; font: 400 0.8rem/1.6 var(--mono); color: #5a6272; }
#lista-cenas { margin: 0 0 1rem; padding-left: 1.4rem; display: grid; gap: 0.15rem; }
#lista-cenas button { all: unset; cursor: pointer; padding: 0.25rem 0; }
#lista-cenas button:hover, #lista-cenas button[aria-current="true"] { color: #1b45c8; text-decoration: underline; text-underline-offset: 0.3em; }
#lista-cenas small { font: 400 0.72rem var(--mono); color: #5a6272; margin-left: 0.7em; }

/* traços de caneta */
#tracos path { fill: none; stroke: var(--caneta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#tracos .fino { stroke-width: 1.2; }
#tracos .grosso { stroke-width: 2.6; }
#tracos .tinta { stroke: var(--tinta); }
#tracos .apaga { transition: opacity 0.35s; opacity: 0; }
#tracos .atlas { stroke-width: 0.8; opacity: 0.34; }
#tracos text { font: 500 9.5px var(--mono); fill: var(--caneta); opacity: 0.6; }

/* retrato de celular e telas estreitas */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  :root { --topo: clamp(1.1rem, 4.5vh, 2.6rem); --base: 4.4rem; }
  html.vivo .col, html.vivo .col.centro { width: 100%; }
  html.vivo .col.centro { align-self: start; }
  /* o site injeta um CSS de celular com !important em h1, h2 e campos; aqui a apresentação retoma os seus tamanhos */
  html.vivo h1#titulo-pagina { font-size: clamp(3rem, 15.4vw, 7rem) !important; line-height: 0.92 !important; white-space: normal; }
  html.vivo .cena h2.nome { font-size: clamp(2.3rem, 11vw, 4.6rem) !important; line-height: 0.96 !important; }
  html.vivo .cena h2.pergunta-final { font-size: clamp(1.45rem, 6.2vw, 2.2rem) !important; line-height: 1.08 !important; }
  html.vivo .campo-nome input#nome { font-size: 1em !important; }
  html.vivo .aviso-final { margin-bottom: 1.9rem; }
  /* espaço para o aviso de tinta fresca entre o texto e a linha das fontes */
  html.vivo .fontes { margin-top: 1.9rem; }
  /* a nota de rodapé ganha um fundo da cor do papel, para nunca brigar com a figura */
  html.vivo .rodape-fonte { background: rgba(243, 244, 241, 0.9); padding: 0.3rem 0.5rem; margin-left: -0.5rem; border-radius: 2px; }
  html.vivo body.noite .rodape-fonte { background: rgba(12, 22, 48, 0.9); }
  html.vivo body.amarelo .rodape-fonte { background: rgba(255, 217, 46, 0.92); }
  html.vivo .rodape-fonte:empty { padding: 0; background: none; }
  html.vivo .linha-progresso { display: none; }
  html.vivo #controles { justify-content: space-between; }
  html.vivo .frase { font-size: clamp(1.7rem, 7.4vw, 3rem); }
  html.vivo .frase.menor { font-size: clamp(1.25rem, 5.2vw, 2rem); }
  html.vivo .grande { font-size: clamp(4rem, 23vw, 8rem); }
  html.vivo .campo-nome { font-size: clamp(1.7rem, 7.4vw, 3rem); flex-wrap: wrap; }
  html.vivo .feito { font-size: 0.98rem; }
  html.vivo .trilha { gap: 0.42rem; }
  html.vivo .folha { align-self: start; overflow: hidden auto; scrollbar-width: thin; padding-right: 0.3rem; }
  html.vivo .resposta-final { font-size: 1rem; line-height: 1.42; }
  html.vivo .frentes { font-size: clamp(0.98rem, 4.3vw, 1.3rem); }
  .so-largo { display: none; }
  html.vivo #controles { gap: 0.2rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fluxo .p, .rev, html.vivo mark, html.vivo .anotacao, html.vivo .carimbo, html.vivo .bilhete.rev { transition-duration: 0.01s !important; transition-delay: 0s !important; filter: none !important; }
  .pensando i, .cursor { animation: none; }
}
