/* Página /novo dirigida pelo filme (FILME.md, 16/10/2026). CSS próprio, escrito do zero; fontes só os .woff2 IBM Plex (OFL).
   Camadas: palco do filme 0 · texto 10 · cabeçalho e trilho 20.
   Movimento (Jakub primeiro, Jhey depois: página de marca): entrada = opacidade + subida curta + desfoque que some,
   0,5–0,8 s em cubic-bezier(.22,1,.36,1); saída mais curta e discreta; nada pulsa em laço; movimento reduzido sem transição. */

/* ------------------------------------------------------------------ fontes */
@font-face { font-family: 'Plex Sans Novo'; src: url('/static/fonts/IBMPlexSans-latin.woff2') format('woff2'); font-weight: 100 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex Sans Novo'; src: url('/static/fonts/IBMPlexSans-latin-ext.woff2') format('woff2'); font-weight: 100 700; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plex Mono Novo'; src: url('/static/fonts/IBMPlexMono-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex Mono Novo'; src: url('/static/fonts/IBMPlexMono-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* preenchimento do título (contorno → preenchimento): registrado para animar e ser herdado pelas letras */
@property --preench { syntax: '<number>'; inherits: true; initial-value: 1; }

/* ------------------------------------------------------------------ cores e medidas */
:root {
  --fundo: #050505;
  --texto-1: #ece9e5;
  --texto-2: #d4cfc8;
  --texto-3: #a9a39b;
  --acento: #e3b662;
  --acento-claro: #ebc47a;
  --sobre-acento: #1b150b;
  --linha: rgba(236, 233, 229, .12);
  --sans: 'Plex Sans Novo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Plex Mono Novo', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --col-x: 112px;
  --col-w: clamp(300px, 32vw, 560px);
  --borda-x: 40px;
  --topo: 92px;
  --entra: cubic-bezier(.22, 1, .36, 1);
  --sai: cubic-bezier(.55, 0, 1, .45);
  --sombra-texto: 0 1px 2px rgba(0, 0, 0, .35), 0 0 18px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fundo); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto-1); overflow-x: hidden;
  font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-kerning: normal;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, ul, ol { margin: 0; }
::selection { background: rgba(227, 182, 98, .32); color: var(--texto-1); }
:focus-visible { outline: 1px solid var(--acento); outline-offset: 4px; border-radius: 4px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
/* sem barra nativa: o filme ocupa a largura inteira em resolução nativa (1:1 na tela de 1920 px reais); roda, teclado,
   toque e trilho rolam normalmente */
html.js { scrollbar-width: none; }
html.js::-webkit-scrollbar { display: none; }
#rolo { width: 1px; }

.pular {
  position: fixed; left: var(--col-x); top: 12px; z-index: 40; padding: 8px 14px; border-radius: 999px;
  background: var(--acento); color: var(--sobre-acento); font-size: 14px; font-weight: 500;
  transform: translateY(-160%); transition: transform 160ms var(--entra);
}
.pular:focus-visible { transform: none; }

/* ------------------------------------------------------------------ palco do filme */
#palco { position: fixed; inset: 0; overflow: hidden; background: var(--fundo); z-index: 0; }
#poster, #posteres img, #tela, #vids video, #espera {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
#posteres img { opacity: 0; transition: opacity .45s var(--entra); }
#posteres img.ativo { opacity: 1; }
#tela { opacity: 0; transition: opacity .3s ease-out; }
#tela.pronto { opacity: 1; }
/* com o motor A desenhando, os pôsteres por baixo do canvas (opaco) saem da composição: menos camada de tela cheia por quadro */
html.tela-cheia #poster, html.tela-cheia #posteres { visibility: hidden; }
#vids video { opacity: 0; }
#vids video.ativo { opacity: 1; }
#espera { opacity: 0; transition: opacity .35s ease-out; pointer-events: none; }
#espera.ativo { opacity: 1; transition-duration: .22s; }
/* véu de leitura: só à esquerda (o terço calmo medido) e só enquanto há texto; a força vem de cada janela (0,62 a 0,78) */
#veu {
  position: absolute; inset: 0; pointer-events: none; opacity: .62;
  background: linear-gradient(90deg, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, .68) 24%, rgba(5, 5, 5, .2) 40%, rgba(5, 5, 5, 0) 50%);
}
/* sombra curta no topo: a marca e o botão leem mesmo no céu claro (S08, S09, S26) */
#palco::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 132px; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, .42) 0%, rgba(5, 5, 5, .16) 55%, rgba(5, 5, 5, 0) 100%);
}

/* ------------------------------------------------------------------ cabeçalho */
#nav {
  position: fixed; top: 0; left: 0; right: 0; height: 72px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--borda-x) 0 var(--col-x); pointer-events: none;
}
#nav > * { pointer-events: auto; }
/* marca Agryos (17/10/2026, marca_publicacao/logo_agryos/final/GUIA.md): o nome em contornos com o A de fios, fio de 1 px e o
   descritor AGRIBUSINESS FINANCIAL TERMINAL, no tamanho fixo de 339 × 28; no celular a <picture> troca pelo nome sem descritor.
   A sombra é a mesma do texto, para ler sobre qualquer quadro do filme. */
.marca { display: block; flex: none; line-height: 0; }
.marca picture { display: block; }
.marca img { display: block; width: auto; height: auto; max-width: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)) drop-shadow(0 0 18px rgba(0, 0, 0, .35)); }
.nav-acoes { display: flex; align-items: center; gap: 10px; }
.nav-entrar {
  font-weight: 500; font-size: 15px; color: var(--texto-1); padding: 10px 14px; border-radius: 999px; text-shadow: var(--sombra-texto);
  opacity: .86; transition: opacity 160ms ease-out, background-color 160ms ease-out;
}
.nav-entrar:hover { opacity: 1; background: rgba(236, 233, 229, .08); }

/* ------------------------------------------------------------------ botões (rápidos e contidos) */
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 46px; padding: 0 8px 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color 160ms ease-out, transform 160ms var(--entra); -webkit-tap-highlight-color: transparent;
}
.btn-primario { background: var(--acento); color: var(--sobre-acento); }
.btn-primario:hover { background: var(--acento-claro); }
.btn:active { transform: scale(.98); }
.btn .seta { width: 30px; height: 30px; border-radius: 50%; background: rgba(27, 21, 11, .12); display: inline-grid; place-items: center; flex: none; }
.btn .seta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--entra); }
.btn:hover .seta svg { transform: translateX(2px); }
.btn-compacto { height: 40px; font-size: 14px; gap: 12px; padding: 0 6px 0 18px; }
.btn-compacto .seta { width: 28px; height: 28px; }
.btn-secundario {
  background: rgba(5, 5, 5, .18); color: var(--texto-1); padding: 0 22px; box-shadow: inset 0 0 0 1px rgba(236, 233, 229, .32);
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms var(--entra);
}
.btn-secundario:hover { background: rgba(236, 233, 229, .08); box-shadow: inset 0 0 0 1px rgba(236, 233, 229, .55); }

/* ------------------------------------------------------------------ camada de texto (por cima do filme) */
#camada { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.bloco {
  position: absolute; left: var(--col-x); top: var(--topo); bottom: 36px; width: var(--col-w);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  visibility: hidden;
}
.bloco.visivel, .bloco[data-inicial]:not(.solto) { visibility: visible; }
.bloco.sem-janela { display: none; }
.bloco a, .bloco button { pointer-events: auto; }
.bloco > * { flex: none; }
.rotulo {
  font: 500 12.5px/1.35 var(--mono); letter-spacing: .02em; color: var(--texto-3); margin-bottom: 18px; text-shadow: var(--sombra-texto);
}
.titulo {
  --preench: 1;
  font-weight: 600; text-wrap: balance;
  color: rgb(236 233 229 / calc(var(--preench) * 100%));
  -webkit-text-stroke: 1px rgb(236 233 229 / calc((1 - var(--preench)) * 90%));
}
h1.titulo { font-size: clamp(42px, 4.05vw, 80px); line-height: .98; letter-spacing: -.025em; }
h2.titulo { font-size: clamp(32px, 3.2vw, 60px); line-height: 1.02; letter-spacing: -.02em; }
.titulo .pal { white-space: nowrap; }
.titulo .ch {
  display: inline-block;
  color: rgb(236 233 229 / calc(var(--preench) * 100%));
  -webkit-text-stroke: 1px rgb(236 233 229 / calc((1 - var(--preench)) * 90%));
}
/* títulos que decodificam (fora da porteira; interface/decodificar.js): cada letra com a largura final fixa; o glifo sorteado
   (Plex Mono 500, 0,92 do corpo, opacidade 0,55) é recortado pela caixa da letra; sob o mouse a letra volta ao contorno */
.titulo .ch.dec {
  text-align: center;
  color: rgb(236 233 229 / calc((1 - var(--perto, 0)) * var(--preench) * 100%));
  -webkit-text-stroke: 1px rgb(236 233 229 / calc(var(--perto, 0) * 85%));
  transform: translate(var(--afx, 0px), var(--afy, 0px));
  transition: color .4s var(--entra), -webkit-text-stroke-color .4s var(--entra), transform .4s cubic-bezier(.34, 1.3, .64, 1);
}
.titulo .ch.emb { font-family: var(--mono); font-weight: 500; font-size: .92em; opacity: .55; clip-path: inset(-.3em 0 -.3em 0); }
.apoio { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--texto-2); max-width: 100%; text-wrap: pretty; text-shadow: var(--sombra-texto); }
.acoes { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.micro { margin-top: 12px; font: 400 12.5px/1.45 var(--mono); color: var(--texto-3); text-shadow: var(--sombra-texto); }
.acoes .micro { margin-top: 0; max-width: 260px; padding: 6px 10px; border-radius: 10px; background: rgba(5, 5, 5, .55); color: var(--texto-2); }
.assinatura { margin-top: 14px; font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--texto-1); text-shadow: var(--sombra-texto); }
.ressalva { margin-top: 12px; font: 500 12.5px/1.35 var(--mono); color: var(--texto-3); text-shadow: var(--sombra-texto); }
/* nomes das fontes do terminal (cap. 7, batida A): finos, sem número */
.fontes { margin-top: 18px; padding: 0; list-style: none; display: grid; grid-template-columns: max-content; gap: 3px; }
.fontes li { font: 400 12px/1.4 var(--mono); color: var(--texto-2); text-shadow: var(--sombra-texto); white-space: nowrap; }
.fontes li::before { content: ''; display: inline-block; width: 10px; height: 1px; margin-right: 8px; vertical-align: middle; background: rgba(227, 182, 98, .7); }
/* cap. 7a com o cartão do terminal embaixo: as fontes correm em linha para a coluna inteira caber na janela (a legenda do
   print saía cortada no pé da tela a 1536 x 705) */
@media (min-width: 768px) { .bloco:has(.vitrine) .fontes { display: flex; flex-wrap: wrap; gap: 3px 18px; max-width: 100%; } }
/* o fim (cap. 8): a coluna termina acima do rodapé */
.bloco.fim { justify-content: flex-end; bottom: 132px; }
.bloco.fim .apoio { max-width: 42ch; }

/* herói: entra por CSS, sem esperar o JS (FILME.md §7); título em contorno que se preenche na abertura */
.bloco[data-inicial]:not(.solto) > * { animation: entra .8s var(--entra) both; }
.bloco[data-inicial]:not(.solto) > :nth-child(1) { animation-delay: .10s; }
.bloco[data-inicial]:not(.solto) > :nth-child(2) { animation: entra .8s var(--entra) .18s both, preencher 1.2s cubic-bezier(.45, 0, .2, 1) .5s both; }
.bloco[data-inicial]:not(.solto) > :nth-child(3) { animation-delay: .34s; }
.bloco[data-inicial]:not(.solto) > :nth-child(4) { animation-delay: .42s; }
.bloco[data-inicial]:not(.solto) > :nth-child(n+5) { animation-delay: .50s; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes preencher { from { --preench: 0; } to { --preench: 1; } }

/* ------------------------------------------------------------------ slots da fase 2 (ROTEIRO §9): escondidos; ?slots=1 mostra */
.slot {
  margin-top: 24px; width: 480px; max-width: 100%; border: 1px solid var(--linha); border-radius: 18px;
  background: rgba(15, 14, 12, .55); padding: 14px 18px; display: flex; flex-direction: column; gap: 6px;
  flex: 0 1 var(--slot-h, 170px); min-height: 96px; visibility: hidden;
}
html:not(.com-slots) .slot { display: none; }
.slot[data-slot="status-bolsas"] { width: 520px; flex: none; height: 36px; min-height: 0; padding: 0 16px; flex-direction: row; align-items: center; justify-content: space-between; border-radius: 12px; }
.slot[data-slot="seca"] { --slot-h: 180px; }
.slot[data-slot="mercado"] { --slot-h: 200px; }
.slot[data-slot="fontes"] { --slot-h: 130px; width: 420px; }
.slot[data-slot="plano"] { --slot-h: 96px; }
.slot-rotulo, .slot-reserva { font: 500 12.5px/1.35 var(--mono); color: #8c8882; }
.slot-reserva { font-weight: 400; opacity: .8; }
.slot[data-slot="status-bolsas"] .slot-reserva { display: none; }
.slot-corpo { flex: 1 1 auto; min-height: 0; }
html.com-slots .bloco.visivel .slot.slot-visivel { visibility: visible; }

/* ------------------------------------------------------------------ vitrine do terminal (dono, 16/10 19h25-20h10)
   Baralho de 1 a 3 telas REAIS do terminal sob o texto de cada capítulo (js/filme/cartoes.js). Painel de vidro escuro (sem
   backdrop-filter: o filme roda por baixo), a tela da frente com o painel INTEIRO, centrado e encaixado (dono, 20h20-20h25), e as
   de trás como lâminas à direita; abas, uma linha do que a tela faz e a legenda com a data real. Vai até ~50% da largura (o herói
   do filme fica na metade direita). A vitrine ocupa a altura que sobra na coluna (palco o maior possível); o clique amplia. */
.vitrine {
  --passo: 14px;
  margin-top: 22px; width: min(calc(50vw - var(--col-x) + 24px), 660px); max-width: calc(100vw - var(--col-x) - 16px);
  display: none; flex-direction: column; min-height: 0; padding: 8px 8px 11px; border-radius: 18px; pointer-events: auto;
  background: linear-gradient(180deg, rgba(22, 21, 19, .84) 0%, rgba(8, 8, 7, .9) 100%);
  box-shadow: inset 0 0 0 1px rgba(236, 233, 229, .1), inset 0 1px 0 rgba(236, 233, 229, .06),
    0 28px 60px -20px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .3);
}
html.js .vitrine:not([hidden]) { display: flex; }
/* coluna com vitrine: o texto usa a largura da vitrine (menos linhas, mais palco) e a vitrine cresce até o pé da coluna */
@media (min-width: 768px) {
  .bloco:has(.vitrine) { width: min(calc(50vw - var(--col-x) + 24px), 660px); top: 80px; bottom: 20px; }
  .bloco:has(.vitrine) .apoio { max-width: min(100%, 560px); }   /* o texto não avança sobre o herói do filme */
  .bloco:has(.vitrine) .vitrine { margin-top: 18px; }
  /* o fim: termina acima do rodapé legal; a tela fica à esquerda do painel de vidro do filme e mostra só a legenda com a data
     (o que a tela mostra está na lupa e no texto de apoio logo acima) */
  .bloco.fim:has(.vitrine) { top: 68px; bottom: 112px; }
  .bloco.fim > .vitrine { width: min(560px, 100%); flex: 0 1 auto; }
  .bloco.fim .vit-palco { flex: 0 1 114px; min-height: 96px; }   /* a faixa dos destaques (1302 × 226) inteira na largura */
  .bloco.fim .vit-linha { display: none; }
  .bloco.fim .acoes .micro { max-width: 228px; }                  /* não avança sobre o painel de vidro */
}
/* dica de ampliar: no mouse, aparece ao passar sobre a tela (não cobre o painel parado); no toque, fica sempre */
@media (hover: hover) and (pointer: fine) {
  .vit-cartao[data-pos="0"][data-estado="pronto"] .vit-ampliar { opacity: 0; transform: translateY(4px); transition: opacity 160ms ease-out, transform 160ms var(--entra), background-color 160ms ease-out; }
  .vit-cartao[data-pos="0"][data-estado="pronto"]:hover .vit-ampliar, .vit-cartao[data-pos="0"][data-estado="pronto"]:focus-visible .vit-ampliar { opacity: 1; transform: none; }
}
.bloco > .vitrine { flex: 1 1 auto; max-height: 600px; }
.vit-palco {
  position: relative; flex: 1 1 auto; min-height: 112px;
  margin-right: calc((var(--n, 1) - 1) * var(--passo));
}
.vit-cartao {
  position: absolute; inset: 0; overflow: hidden; border-radius: 11px; cursor: zoom-in; display: block; padding: 0;
  background: #100e0c; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8);   /* o fundo do próprio terminal: a folga em volta do painel não vira barra */
  transform-origin: 100% 50%;
  transition: transform .7s var(--entra), filter .7s var(--entra), opacity .5s var(--entra);
}
.vit-cartao::after {               /* fio de borda por cima do print */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(236, 233, 229, .1);
}
.vit-cartao[data-pos="0"] { z-index: 3; }
.vit-cartao[data-pos="1"] { z-index: 2; transform: translateX(var(--passo)) scale(.94); filter: brightness(.3) saturate(.6); cursor: pointer; }
.vit-cartao[data-pos="2"] { z-index: 1; transform: translateX(calc(var(--passo) * 2)) scale(.88); filter: brightness(.2) saturate(.5); cursor: pointer; }
.vit-cartao[data-pos="1"]:hover, .vit-cartao[data-pos="2"]:hover { filter: brightness(.6) saturate(.8); }
.vit-cartao img {
  position: absolute; left: 0; top: 0; max-width: none; display: block; user-select: none; pointer-events: none;
  animation: entra-print .5s var(--entra) both;
}
@keyframes entra-print { from { opacity: 0; } to { opacity: 1; } }
.vit-espera { position: absolute; left: 14px; bottom: 12px; font: 400 12px/1.3 var(--mono); color: var(--texto-3); }
.vit-cartao[data-estado="pronto"] .vit-espera { display: none; }
.vit-ampliar {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(5, 5, 5, .74); box-shadow: inset 0 0 0 1px rgba(236, 233, 229, .16);
  font: 500 11.5px/1 var(--mono); color: var(--texto-1); opacity: .82; transition: opacity 160ms ease-out, background-color 160ms ease-out;
}
.vit-ampliar svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vit-cartao:not([data-pos="0"]) .vit-ampliar, .vit-cartao:not([data-estado="pronto"]) .vit-ampliar { opacity: 0; }
.vit-cartao[data-pos="0"]:hover .vit-ampliar, .vit-cartao[data-pos="0"]:focus-visible .vit-ampliar { opacity: 1; background: rgba(5, 5, 5, .9); }
.vit-cartao:focus-visible { outline: 1px solid var(--acento); outline-offset: 2px; }
.vit-rodape { flex: none; padding: 10px 6px 0; display: flex; flex-direction: column; gap: 6px; }
/* abas e legenda (data real) na mesma faixa: sobra altura para o palco */
.vit-faixa { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.vit-faixa .vit-legenda { margin-left: auto; white-space: nowrap; }
.vitrine[data-n="1"] .vit-faixa .vit-legenda { margin-left: 0; }
.vit-abas { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.vit-aba {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px;
  font: 500 12px/1 var(--mono); color: var(--texto-3); box-shadow: inset 0 0 0 1px rgba(236, 233, 229, .12);
  transition: color 160ms ease-out, background-color 200ms ease-out, box-shadow 200ms ease-out;
}
.vit-aba i { font-style: normal; color: rgba(227, 182, 98, .7); }
.vit-aba:hover { color: var(--texto-1); box-shadow: inset 0 0 0 1px rgba(236, 233, 229, .3); }
.vit-aba.ativa { color: var(--sobre-acento); background: var(--acento); box-shadow: none; }
.vit-aba.ativa i { color: rgba(27, 21, 11, .6); }
.vit-aba[disabled] { cursor: default; }
.vit-linha { font-size: 14.5px; line-height: 1.42; min-height: 2.84em; color: var(--texto-1); text-wrap: pretty; }   /* 2 linhas fixas: trocar de tela não mexe no palco */
/* uma tela só: sem a aba (é a única) e sem reservar a 2ª linha da legenda */
.vitrine[data-n="1"] .vit-abas { display: none; }
.vitrine[data-n="1"] .vit-faixa { order: 2; }
.vitrine[data-n="1"] .vit-linha { min-height: 0; }
.vit-legenda { font: 400 11.5px/1.35 var(--mono); letter-spacing: .01em; color: var(--texto-3); }

/* lupa: a tela inteira, nítida (arquivo 2x), cabendo na janela; "Ver em 100%" mostra 1:1 com rolagem; ← → passeiam pelas telas */
html.lupa-aberta, html.lupa-aberta body { overflow: hidden; }
#lupa {
  position: fixed; inset: 0; z-index: 60; background: rgba(4, 4, 4, .94); opacity: 0; transition: opacity .22s ease-out;
}
#lupa.aberta { opacity: 1; transition-duration: .28s; }
#lupa[hidden] { display: none; }
.lupa-quadro {
  position: absolute; left: 0; right: 0; top: 0; bottom: 96px; overflow: auto; overscroll-behavior: contain;
  display: grid; place-items: center; padding: 24px 32px;
  scrollbar-width: thin; scrollbar-color: rgba(236, 233, 229, .3) transparent;
}
#lupa.ampliada .lupa-quadro { display: block; }
#lupa.ampliada .lupa-img { margin: 0 auto; }
.lupa-img {
  display: block; max-width: none; border-radius: 10px; cursor: zoom-in; user-select: none;
  box-shadow: 0 0 0 1px rgba(236, 233, 229, .12), 0 30px 80px -20px rgba(0, 0, 0, .9);
}
#lupa[data-cabe="1"] .lupa-img { cursor: default; }
#lupa.ampliada .lupa-img { cursor: zoom-out; }
.lupa-img.entra { animation: lupa-entra .38s var(--entra) both; }
@keyframes lupa-entra { from { opacity: 0; transform: scale(.975); } to { opacity: 1; transform: none; } }
.lupa-barra {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 84px; padding: 14px 32px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(0deg, rgba(4, 4, 4, .96), rgba(4, 4, 4, .82)); box-shadow: 0 -1px 0 rgba(236, 233, 229, .08);
}
.lupa-texto { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lupa-titulo { font-weight: 600; font-size: 16px; color: var(--texto-1); }
.lupa-linha { font-size: 14px; line-height: 1.4; color: var(--texto-2); max-width: 78ch; }
.lupa-legenda { font: 400 11.5px/1.35 var(--mono); color: var(--texto-3); }
.lupa-botoes { flex: none; display: flex; align-items: center; gap: 8px; }
.lupa-btn {
  height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 13px/1 var(--sans); color: var(--texto-1); box-shadow: inset 0 0 0 1px rgba(236, 233, 229, .22);
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}
.lupa-btn:hover { background: rgba(236, 233, 229, .08); box-shadow: inset 0 0 0 1px rgba(236, 233, 229, .45); }
.lupa-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lupa-btn[hidden] { display: none; }
.lupa-fechar { background: var(--acento); color: var(--sobre-acento); box-shadow: none; }
.lupa-fechar:hover { background: var(--acento-claro); box-shadow: none; }
.lupa-conta { font: 500 12px/1 var(--mono); color: var(--texto-3); min-width: 52px; text-align: center; }

/* rótulo do preço (cap. 7, CAP7_NOVO.md): plaquinha escura ao lado do painel de vidro (os fios passam por trás); o lugar do
   número fica reservado e vazio até a fase 2 (?slots=1 mostra a moldura) */
#preco {
  position: absolute; left: 0; top: 0; bottom: auto; width: auto; display: block; will-change: transform;
}
.preco-rotulo {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 9px;
  background: rgba(6, 8, 12, .62); box-shadow: inset 0 0 0 1px rgba(236, 233, 229, .12);
  font: 500 12.5px/1.35 var(--mono); letter-spacing: .02em; color: var(--texto-1);
}
.preco-rotulo::before { content: ''; width: 14px; height: 1px; background: var(--acento); }
.preco-valor { display: block; margin-top: 8px; width: 150px; height: 34px; visibility: hidden; }
html.com-slots #preco .preco-valor { visibility: visible; border: 1px solid var(--linha); border-radius: 9px; background: rgba(15, 14, 12, .55); }

/* ------------------------------------------------------------------ rodapé legal e créditos (com o cap. 8) */
#rodape {
  position: fixed; z-index: 10; left: var(--col-x); right: var(--col-x); top: auto; bottom: 14px; width: auto; display: block;
  font-size: 12px; line-height: 1.4; color: #bdb7af; text-shadow: var(--sombra-texto); pointer-events: auto;
}
#rodape p { max-width: 940px; }
#rodape p + p { margin-top: 4px; }
/* faixa escura embaixo enquanto o rodapé está na tela (o amanhecer do S26 é claro no chão) */
#rodape::before {
  content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 210px; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 5, 5, .8) 0%, rgba(5, 5, 5, .5) 45%, rgba(5, 5, 5, 0) 100%);
  opacity: 0; transition: opacity .6s var(--entra);
}
#rodape.visivel::before { opacity: 1; }

/* ------------------------------------------------------------------ trilho de capítulos */
#trilho {
  position: fixed; right: var(--borda-x); top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: flex-end;
}
#trilho .grupo { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
#trilho .grupo + .grupo { margin-top: 12px; }
#trilho button { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 16px; padding: 0 0 0 12px; }
#trilho .traco {
  display: block; width: 20px; height: 2px; border-radius: 1px; background: rgba(236, 233, 229, .38);
  box-shadow: 0 0 6px rgba(0, 0, 0, .35); transition: width 200ms var(--entra), background-color 200ms ease-out;
}
#trilho button:hover .traco { background: rgba(236, 233, 229, .75); }
#trilho button.ativo .traco { width: 32px; background: var(--acento); }
#trilho .nome, #trilho .grupo-nome {
  position: absolute; top: 50%; transform: translate(4px, -50%); white-space: nowrap; pointer-events: none;
  font: 500 12.5px/1 var(--mono); color: var(--texto-2); text-shadow: var(--sombra-texto);
  opacity: 0; transition: opacity 160ms ease-out, transform 160ms var(--entra);
}
#trilho .nome { right: calc(100% + 2px); }
#trilho .grupo-nome { right: calc(100% + 14px); color: var(--texto-3); }
#trilho button:hover .nome, #trilho button:focus-visible .nome { opacity: 1; transform: translate(0, -50%); }
#trilho .grupo:hover .grupo-nome { opacity: 1; transform: translate(0, -50%); }
#trilho .grupo:has(button:hover) .grupo-nome, #trilho .grupo:has(button:focus-visible) .grupo-nome { opacity: 0; }
#trilho button.charneira { height: 20px; }
#trilho button.charneira .traco { width: 20px; height: 12px; background: none; box-shadow: none; display: flex; justify-content: space-between; }
#trilho button.charneira .traco i { display: block; width: 2px; height: 12px; border-radius: 1px; background: rgba(236, 233, 229, .38); transition: background-color 200ms ease-out; }
#trilho button.charneira:hover .traco i { background: rgba(236, 233, 229, .75); }
#trilho button.charneira.ativo .traco { width: 32px; }
#trilho button.charneira.ativo .traco i { background: var(--acento); }

/* ------------------------------------------------------------------ deixa de rolagem */
#deixa {
  position: fixed; left: 50%; bottom: 26px; z-index: 10; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
  font: 500 12.5px/1 var(--mono); color: var(--texto-2); text-shadow: var(--sombra-texto);
  animation: entra .8s var(--entra) 1.9s both;
}
#deixa .linha { display: block; width: 1px; height: 24px; background: rgba(236, 233, 229, .5); transform-origin: top; animation: risco .9s var(--entra) 2.1s both; }
@keyframes risco { from { transform: scaleY(0); } to { transform: scaleY(1); } }
#deixa.sumiu { opacity: 0 !important; transition: opacity .4s var(--sai); animation: none; }
#deixa.sumiu .linha { animation: none; }

#hud {
  position: fixed; left: 8px; bottom: 8px; z-index: 50; margin: 0; padding: 8px 10px; border-radius: 6px; pointer-events: none;
  background: rgba(0, 0, 0, .66); color: #9fd; font: 11px/1.35 ui-monospace, monospace; white-space: pre;
}

/* ------------------------------------------------------------------ sem JS (ou o módulo não carregou): leitura em fluxo */
html:not(.js) #camada, html.sem-motor #camada { position: relative; inset: auto; pointer-events: auto; }
html:not(.js) .bloco, html.sem-motor .bloco {
  position: relative; inset: auto; width: auto; max-width: calc(var(--col-w) + var(--col-x) + 24px); min-height: 100vh;
  padding: 120px 24px 96px var(--col-x); visibility: visible;
}
html:not(.js) #preco, html.sem-motor #preco, html:not(.js) #trilho, html.sem-motor #trilho, html:not(.js) #deixa, html.sem-motor #deixa { display: none; }
html:not(.js) #rodape, html.sem-motor #rodape { position: relative; inset: auto; padding: 24px var(--col-x) 32px; visibility: visible; }
html:not(.js) #rolo, html.sem-motor #rolo { display: none; }

/* ------------------------------------------------------------------ celular (≤ 767 px): texto no terço de baixo */
@media (max-width: 767px) {
  :root { --col-x: 20px; --col-w: calc(100vw - 40px); --borda-x: 20px; --topo: 40vh; }
  #nav { padding: 0 16px 0 20px; height: 64px; }
  .nav-entrar { display: none; }
  .bloco { justify-content: flex-end; bottom: 48px; }
  .bloco.fim { bottom: 196px; }
  h1.titulo { font-size: 40px; } h2.titulo { font-size: 31px; }
  .apoio { font-size: 15.5px; margin-top: 14px; }
  .rotulo { margin-bottom: 12px; }
  .acoes { margin-top: 18px; }
  #veu { background: linear-gradient(0deg, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, .86) 48%, rgba(5, 5, 5, .46) 70%, rgba(5, 5, 5, 0) 88%); }
  /* no celular a fase 1 não reserva a altura dos slots (a fase 2 decide o desenho no celular); ?slots=1 mostra */
  html:not(.com-slots) .slot { display: none; }
  html:not(.com-slots) .bloco.fim { bottom: 190px; }   /* rodapé legal mais longo (copy final, 16/10) */
  .preco-valor { display: none; }
  #deixa { white-space: nowrap; }
  #trilho { display: none; }
  .slot, .slot[data-slot="status-bolsas"], .slot[data-slot="fontes"] { width: 100%; }
  .fontes { grid-template-columns: 1fr; gap: 3px; }
  .bloco:has(.vitrine) { top: 18vh; }
  .vitrine { --passo: 8px; width: 100%; max-width: 100%; margin-top: 14px; padding: 6px 6px 9px; border-radius: 14px; }
  .bloco > .vitrine { flex: 0 1 330px; }
  .vit-palco { min-height: 120px; }
  .vit-cartao { border-radius: 8px; }
  .vit-rodape { padding: 8px 4px 0; gap: 5px; }
  .vit-aba { height: 24px; padding: 0 9px; font-size: 11.5px; }
  .vit-linha { font-size: 13px; line-height: 1.38; min-height: 5.52em; }   /* até 4 linhas fixas no celular */
  html.js .bloco.fim > .vitrine { display: none; }   /* no celular o fim é só a chamada (a tela dos destaques segue na lupa, pelas setas) */
  .vit-abas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .vit-aba { flex: none; }
  .vit-aba i { display: none; }
  .vit-legenda { font-size: 10.5px; }
  .acoes .micro { max-width: none; }
  .lupa-quadro { padding: 12px 8px; }
  .lupa-barra { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px 14px; }
  .lupa-botoes { justify-content: space-between; }
  .lupa-linha { font-size: 13px; }
  #rodape { font-size: 11px; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
}
