/* Nossa Rede Social: prévia de marca.
   Cores a partir do tema Canarinho (packages/nossochat_design/lib/themes/canarinho.dart).
   O padrão deste arquivo é a versão ESTÁTICA (sem JavaScript ou com "reduzir movimento").
   A classe .filme, posta pelo JavaScript, liga a versão de cinema. */

@font-face {
  font-family: "Fraunces NRS";
  src: url("../fonts/fraunces-nrs.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --noite: #0c1610;
  --noite-2: #0f1b13;
  --sup-noite: #172a1e;
  --tinta-noite: #efebd6;
  --apagado-noite: #afbbae;
  --linha-noite: #2f4636;
  --ouro: #e8c14a;
  --ouro-dia: #f2c230;
  --verde: #6fd39a;
  --verde-dia: #1b6b3c;
  --terracota: #ee8a66;
  --terracota-dia: #a9391a;
  --azul: #8db7eb;
  --azul-dia: #1f5fa8;
  --papel: #fffbea;
  --papel-2: #faf3d4;
  --tinta: #1a2b20;
  --apagado: #55604f;
  --linha: #e9dfb6;

  --serifa: "Fraunces NRS", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sem: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --margem: clamp(1.25rem, 5vw, 4rem);
}

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

/* em telas grandes o texto cresce junto (sempre a partir do tamanho que a pessoa escolheu no navegador) */
html { background: var(--noite); color: var(--tinta-noite); -webkit-text-size-adjust: 100%; scroll-behavior: auto; font-size: clamp(100%, calc(.42vw + .5vh + .375rem), 150%); }
body { margin: 0; font-family: var(--sem); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ouro); outline-offset: 4px; border-radius: 6px; }

.pular { position: fixed; left: 1rem; top: -6rem; z-index: 100; background: var(--ouro); color: var(--tinta); padding: .8rem 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.pular:focus { top: 1rem; }

/* ---------- tipografia ---------- */
h1, h2, h3, .grande, .media, .nome-marca { font-family: var(--serifa); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(3rem, 9vw, 7rem); line-height: .98; letter-spacing: -.025em; font-weight: 380; }
.grande { font-size: clamp(2rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.02em; font-weight: 380; }
.grande.menor { font-size: clamp(1.6rem, 4.2vw, 3.1rem); line-height: 1.1; }
.media { font-size: clamp(1.2rem, 2.5vw, 1.75rem); line-height: 1.25; opacity: .86; }
.legenda { font-size: clamp(.95rem, 1.5vw, 1.08rem); line-height: 1.5; color: var(--apagado-noite); max-width: 44ch; text-wrap: pretty; }
.legenda b { color: var(--tinta-noite); font-weight: 600; }
.sobre, .letreiro { font-family: var(--sem); font-size: .76rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ouro); }
.letreiro i { font-style: normal; color: var(--tinta-noite); opacity: .8; margin-left: .7em; }
.letreiro i::before { content: "· "; }
.nome-marca { font-size: clamp(2.6rem, 9.5vw, 7rem); line-height: .95; letter-spacing: -.03em; font-weight: 420; }

/* ---------- barra ---------- */
.barra { position: absolute; z-index: 60; inset: 0 0 auto 0; display: flex; align-items: center; gap: 1rem; padding: max(.9rem, env(safe-area-inset-top)) var(--margem) .9rem; color: var(--tinta-noite); pointer-events: none; transition: color .5s ease; }
.barra > * { pointer-events: auto; }
.marca { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--serifa); font-size: 1.02rem; letter-spacing: -.005em; white-space: nowrap; }
.marca-casa { width: 26px; height: 26px; flex: none; }
.traco { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; opacity: .55; }
.traco.fino { stroke-width: 1.8; opacity: .45; }
.traco.pontilhado { stroke-dasharray: 1 7; stroke-width: 2.6; opacity: .7; }
.no { fill: currentColor; }
.no.oco { fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .7; }
.no.ouro { fill: var(--ouro); }
.claquete { margin-left: auto; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; white-space: nowrap; font-variant-numeric: tabular-nums; display: none; }
.claquete-nome { margin-left: .5em; }
.som { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .35rem .85rem .35rem .6rem; border: 1px solid rgba(160, 165, 150, .5); border: 1px solid color-mix(in srgb, currentColor 34%, transparent); border-radius: 999px; background: rgba(12, 22, 16, .3); color: inherit; font: inherit; font-size: .82rem; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.som svg { flex: none; width: 20px; height: 20px; fill: currentColor; }
.som svg path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.som svg path:first-child { fill: currentColor; stroke: none; }
.som .ondas { display: none; }
.som[aria-pressed="true"] .ondas { display: block; }
.som[aria-pressed="true"] .mudo { display: none; }
.som[aria-pressed="true"] { border-color: var(--ouro); }
html[data-luz="dia"] .barra { color: var(--tinta); }
html.filme .marca { padding: .3rem .8rem .3rem .5rem; margin-left: -.5rem; border-radius: 999px; transition: background-color .5s ease; }
html.filme[data-luz="dia"] .marca { background: rgba(255, 251, 234, .82); }
html.filme[data-luz="dia"] .claquete { background: rgba(255, 251, 234, .82); padding: .3rem .7rem; border-radius: 999px; opacity: .9; }
html[data-luz="dia"] .som { background: rgba(255, 251, 234, .6); }
html[data-luz="dia"] .no.ouro { fill: var(--terracota-dia); }

#ceu, .grao, .trilho, .fio-progresso, .dica { display: none; }

/* ---------- versão estática ---------- */
.ato { position: relative; padding: clamp(5rem, 14vh, 9rem) var(--margem); overflow: hidden; }
.ato.noite { background: linear-gradient(var(--noite), var(--noite-2)); color: var(--tinta-noite); }
.ato.papel, .ato.dia { background: var(--papel); color: var(--tinta); }
.ato.papel .legenda, .ato.dia .legenda, .ato.papel .media { color: var(--apagado); opacity: 1; }
.ato.papel .sobre, .ato.dia .sobre, .ato.dia .letreiro { color: var(--terracota-dia); }
.ato.dia .letreiro i { color: var(--tinta); }
.ato + .ato.noite { border-top: 1px solid var(--linha-noite); }
.falas { display: grid; gap: 1.6rem; max-width: 60rem; margin-inline: auto; }
.fala > * + * { margin-top: .9rem; }
.letreiro { margin-bottom: 2rem; max-width: 60rem; margin-inline: auto; }
.figura { max-width: 60rem; margin: 0 auto 2.4rem; color: var(--tinta-noite); }
.figura svg { width: min(100%, 22rem); }
.figura-casa svg { width: min(60%, 14rem); }
.figura-casa .porta { stroke: var(--ouro); opacity: 1; }

.rotulos { max-width: 60rem; margin: 2.4rem auto 0; display: grid; gap: .9rem; }
.rotulo { font-size: .9rem; line-height: 1.3; color: var(--apagado-noite); }
.rotulo b { display: block; font-family: var(--serifa); font-weight: 420; font-size: 1.15rem; color: var(--tinta-noite); letter-spacing: -.005em; }
.rotulo.ouro b { color: var(--ouro); }
.rotulo.verde b { color: var(--verde); }
.rotulo.terracota b { color: var(--terracota); }
.rotulo.azul b { color: var(--azul); }
.rotulo.nevoa { opacity: .7; }
.rotulo-servidor { display: none; }

.duda, .petala { display: none; }

.cena { position: relative; aspect-ratio: 16 / 10; max-width: 60rem; margin: 0 auto 2.4rem; border-radius: 20px; overflow: hidden; background: #9fd3ee; --gw: 62%; }
.cena-fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.cena-grupo { position: absolute; left: 50%; bottom: 7%; width: var(--gw); aspect-ratio: 900 / 385; transform: translateX(-50%); }
.cena-banco { position: absolute; inset: 0; width: 100%; }
.cena-aprendiz { position: absolute; left: 23.6%; bottom: 11.7%; width: 45.8%; }
.cena-aprendiz.b { opacity: 0; }
.cena-pedroso { position: absolute; left: 73.6%; bottom: 38.3%; width: 26.4%; transform-origin: 50% 100%; }
.cena-ipe { position: absolute; top: -2%; left: -3%; width: 56%; }
.cena-arbustos { position: absolute; bottom: -4%; left: 50%; width: 108%; max-width: none; transform: translateX(-50%); }
.cena-veu { display: none; }
.balao { position: absolute; left: 62%; bottom: 168%; margin: 0; padding: .5em .8em .45em; background: #fff; color: var(--tinta); border: 2px solid var(--tinta); border-radius: 1em 1em 1em .2em; font-size: clamp(.72rem, 1.6vw, 1rem); line-height: 1.2; white-space: nowrap; box-shadow: 3px 4px 0 rgba(26, 43, 32, .22); transform-origin: 0 100%; }
.balao span { display: block; font-weight: 600; }
.balao small { display: flex; align-items: center; gap: .15em; margin-top: .2em; font-size: .78em; color: var(--apagado); }
.balao em { font-style: normal; margin-left: .25em; }
.tique { width: .62em; height: .34em; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-.08em); }
.tique.dois { display: none; margin-left: -.22em; }
.balao.entregue small { color: var(--verde-dia); font-weight: 600; }
.balao.entregue .tique.dois { display: block; }

/* ---------- os apps, cada um no seu aparelho ---------- */
.app { --cor-app: var(--verde-dia); }
.ato.app-nc { background: #faf3d4; }
.ato.app-tv { background: #e1f0d6; }
.ato.app-mo { background: #fbe4dd; --cor-app: var(--terracota-dia); }
.ato.app-rpm { background: #eef4fb; --cor-app: var(--azul-dia); }
.app-texto { max-width: 60rem; margin: 0 auto 2rem; }
.app-texto > * + * { margin-top: .8rem; }
.app .sobre { color: var(--cor-app); }
.app-pontos { display: grid; gap: .45rem; font-size: clamp(1rem, 1.7vw, 1.2rem); color: var(--tinta); line-height: 1.35; }
.app-pontos li { padding-left: 1.1em; position: relative; text-wrap: pretty; }
.app-pontos li::before { content: ""; position: absolute; left: 0; top: .55em; width: .45em; height: .45em; background: var(--cor-app); transform: rotate(45deg); }
.selo { display: inline-flex; align-items: center; gap: .5em; padding: .4em .9em .4em .7em; border: 1.5px solid var(--cor-app); border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--cor-app); background: rgba(255, 251, 234, .7); }
.selo i { width: .55em; height: .55em; border-radius: 50%; background: var(--cor-app); }
.app-mo .selo i, .app-nc .selo i { background: none; box-shadow: inset 0 0 0 2px var(--cor-app); }
.aparelho { max-width: 60rem; margin: 0 auto; }
.aparelho-tela { width: min(72vw, 270px); aspect-ratio: 6 / 13; padding: 9px; border-radius: 34px; background: #14201a; box-shadow: 0 0 0 1.5px #2f4636, 0 30px 60px -24px rgba(26, 43, 32, .55); position: relative; }
.aparelho-tela::before { content: ""; position: absolute; left: 50%; top: 15px; width: 54px; height: 6px; margin-left: -27px; border-radius: 6px; background: #14201a; opacity: .85; z-index: 1; }
.aparelho video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: var(--papel); }
.aparelho figcaption { margin-top: .8rem; font-size: .8rem; color: var(--apagado); }

/* cobogó: a assinatura da marca (blocos vazados em losango), só enfeite */
.cobogo { display: block; height: 16px; width: min(100%, 15rem); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 16'%3E%3Cg fill='%23e3d59d'%3E%3Cpath d='M1 1h14v14H1zM17 1h14v14H17zM33 1h14v14H33z'/%3E%3C/g%3E%3Cg fill='%23fffbea'%3E%3Cpath d='M8 3.5 12.5 8 8 12.5 3.5 8zM24 3.5 28.500 8 24 12.5 19.5 8zM40 3.5 44.5 8 40 12.5 35.5 8z'/%3E%3C/g%3E%3Ccircle cx='40' cy='8' r='1.7' fill='%23c4502b'/%3E%3C/svg%3E") 0 0 / 48px 16px repeat-x; }

.elenco-topo { max-width: 60rem; margin: 0 auto 2.4rem; }
.elenco-topo > * + * { margin-top: .8rem; }
.elenco { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.4rem 1rem; max-width: 60rem; margin-inline: auto; }
.elenco li { --cor: #f1e2b5; }
.elenco .c1 { --cor: #d5ebd9; } .elenco .c2 { --cor: #f1e2b5; } .elenco .c3 { --cor: #cfe3f5; } .elenco .c4 { --cor: #e8c98f; }
.elenco .c5 { --cor: #f7d4c8; } .elenco .c6 { --cor: #c8cbe3; } .elenco .c7 { --cor: #efd6dd; }
.retrato { aspect-ratio: 4 / 5; border-radius: 26px; background: var(--cor); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.retrato img { width: 86%; margin-bottom: -2%; }
.elenco .c1 .retrato img { width: 70%; margin-bottom: 4%; }
.elenco h3 { font-size: 1.45rem; letter-spacing: -.01em; margin-top: .8rem; }
.elenco p { font-size: .95rem; color: var(--apagado); line-height: 1.35; margin-top: .25rem; text-wrap: pretty; }
.elenco .jeito { font-family: var(--serifa); font-size: .92rem; color: inherit; line-height: 1.28; margin-top: .4rem; }

.estado { margin-top: 1.4rem; border-top: 1px solid var(--linha); text-align: left; }
.estado > div { display: grid; grid-template-columns: minmax(8.5rem, 1fr) 2fr; gap: .4rem 1.4rem; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--linha); }
.estado dt { font-family: var(--serifa); font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -.01em; }
.estado dd { font-size: clamp(1rem, 1.7vw, 1.2rem); color: var(--apagado); }

.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: .9rem 1.9rem; border-radius: 999px; background: var(--ouro); color: var(--tinta); font-family: var(--serifa); font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 500; letter-spacing: -.005em; text-decoration: none; box-shadow: 0 0 0 0 rgba(232, 193, 74, .5), 0 10px 40px -10px rgba(232, 193, 74, .55); transition: transform .25s ease, box-shadow .25s ease; }
.botao::after { content: ""; width: .5em; height: .5em; margin-left: .7em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.botao:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(232, 193, 74, .18), 0 14px 44px -10px rgba(232, 193, 74, .7); }
.final > * + * { margin-top: 1rem; }
.final .legenda { margin-inline: auto; }
.creditos { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--linha-noite); font-size: .84rem; line-height: 1.5; color: var(--apagado-noite); max-width: 62ch; }
.creditos p + p { margin-top: .55rem; }
.creditos b { color: var(--tinta-noite); font-weight: 600; }
.creditos a { text-underline-offset: .2em; }
.aviso-js { padding: 1rem var(--margem) 3rem; color: var(--apagado-noite); font-size: .9rem; background: var(--noite-2); }

/* =====================================================================
   VERSÃO DE CINEMA
   ===================================================================== */
html.filme { overscroll-behavior-y: none; }
html.filme body { background: var(--noite); }
html.filme .trilho { display: block; height: calc(var(--telas, 27) * 100vh); height: calc(var(--telas, 27) * 100lvh); }
html.filme #filme { position: fixed; inset: 0; z-index: 1; }
html.filme #ceu { display: block; position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; }
html.filme.sem-gl #ceu { display: none; }
html.filme body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 110%, rgba(27, 107, 60, .28), transparent 60%), radial-gradient(90% 60% at 80% -10%, rgba(31, 53, 80, .5), transparent 60%); }
html.filme .grao { display: block; position: fixed; inset: -64px; z-index: 50; pointer-events: none; background: url("../img/grao.png"); background-size: 128px; opacity: .055; mix-blend-mode: overlay; }
html.filme .barra { position: fixed; }
html.filme .claquete { display: block; }
html.filme .fio-progresso { display: block; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(160, 165, 150, .16); }
html.filme .fio-progresso i { display: block; height: 100%; width: 100%; background: var(--ouro); transform-origin: 0 50%; transform: scaleX(0); }
html.filme[data-luz="dia"] .fio-progresso i { background: var(--terracota-dia); }

html.filme .ato { position: fixed; inset: 0; padding: 0; opacity: 0; pointer-events: none; border: 0; background: none; will-change: opacity; }
html.filme .ato.ativo { pointer-events: auto; }
html.filme .ato.papel { background: var(--papel); }
html.filme .ato.dia { background: #a9d8f0; }
html.filme .ato.noite { background: none; }
html.filme .figura { display: none; }
html.filme.sem-gl .figura { display: block; position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); width: min(70vw, 24rem); margin: 0; }
html.filme.sem-gl .figura svg { width: 100%; }
html.filme.sem-gl #ato-1::before { content: ""; position: absolute; left: 50%; top: 20%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--ouro); box-shadow: 0 0 24px 8px rgba(232, 193, 74, .45), 0 0 80px 30px rgba(232, 193, 74, .16); }
html.filme.sem-gl .figura-casa { width: min(46vw, 15rem); }

html.filme .falas { position: absolute; display: grid; gap: 0; max-width: none; margin: 0; padding-inline: var(--margem); place-items: center; text-align: center; }
html.filme .falas.centro { inset: 0; }
html.filme .falas.baixo { left: 0; right: 0; bottom: 0; height: 48%; padding-bottom: 5vh; }
html.filme .falas.topo { left: 0; right: 0; top: 9vh; height: 38%; }
html.filme .fala { grid-area: 1 / 1; max-width: min(100%, 68rem); opacity: 0; will-change: opacity, transform; }
html.filme .fala .legenda { margin-inline: auto; }
html.filme .fala.abertura h1 { max-width: 12ch; margin-inline: auto; }
html.filme .fala.abertura .sobre { margin-bottom: 1.4rem; }
html.filme .fala.media[data-desce] { align-self: end; margin-bottom: 18vh; }
html.filme .letreiro { position: absolute; left: 0; right: 0; top: 17vh; margin: 0; max-width: none; text-align: center; opacity: 0; }

html.filme .dica { display: flex; flex-direction: column; align-items: center; gap: .7rem; position: absolute; left: 0; right: 0; bottom: max(4.5vh, env(safe-area-inset-bottom)); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--apagado-noite); }
html.filme .dica i { width: 1px; height: 34px; background: linear-gradient(var(--ouro), transparent); animation: pingo 2.2s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes pingo { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(14px); opacity: 0; } }

/* rótulos presos às estrelas */
html.filme .rotulos { position: fixed; inset: 0; margin: 0; max-width: none; display: block; pointer-events: none; }
html.filme .rotulo { position: absolute; left: 0; top: 0; opacity: 0; width: max-content; max-width: min(46vw, 15rem); padding-left: 1.1rem; font-size: .8rem; will-change: transform, opacity; text-shadow: 0 1px 12px var(--noite); }
html.filme .rotulo b { font-size: clamp(1rem, 1.9vw, 1.25rem); }
html.filme .rotulo::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: currentColor; opacity: .6; }
html.filme .rotulo.esq { padding-left: 0; padding-right: 1.1rem; text-align: right; }
html.filme .rotulo.esq::before { left: auto; right: 0; }
html.filme .rotulo span { display: block; transition: opacity .4s ease; }
html.filme .rotulos.curto .rotulo span { opacity: 0; }
html.filme .rotulos.curto .rotulo::before { display: none; }
html.filme .rotulos.curto .rotulo { padding: 0; }
html.filme .rotulo-servidor { display: block; padding: 0; text-align: center; line-height: 1.2; letter-spacing: .04em; color: var(--apagado-noite); }
html.filme .rotulo-servidor::before { display: none; }
html.filme .rotulo-servidor small { font-size: .92em; opacity: .8; }
html.filme.sem-gl .rotulos { position: absolute; inset: 14vh var(--margem) auto; display: grid; gap: .8rem; justify-content: center; }
html.filme.sem-gl .rotulos .rotulo { position: static; max-width: 22rem; }
html.filme.sem-gl .rotulo-servidor { display: none; }

/* Duda espia do canto */
html.filme .duda { display: block; position: absolute; right: clamp(-1rem, 3vw, 4rem); bottom: 0; width: clamp(150px, 19vw, 270px); aspect-ratio: 370 / 411; transform: translateY(110%); will-change: transform; }
html.filme .duda img { position: absolute; left: 0; bottom: 0; width: 100%; }
html.filme .duda .duda-b { width: 86.2%; left: 8%; opacity: 0; }
html.filme .duda .duda-postits { width: 38%; left: -30%; bottom: 62%; transform: rotate(-12deg); }
html.filme .assinatura > * + * { margin-top: 1rem; }
html.filme .assinatura .legenda { max-width: 48ch; }

/* cena do dia */
html.filme .cena { position: absolute; inset: 0; aspect-ratio: auto; max-width: none; margin: 0; border-radius: 0; --gw: min(96vw, 60vh); }
html.filme .cena-fundo { inset: -5%; width: 110%; height: 110%; max-width: none; will-change: transform; }
html.filme .cena-grupo { bottom: 8vh; will-change: transform; }
html.filme .cena-ipe { width: min(84vw, 560px); will-change: transform; }
html.filme .cena-arbustos { width: max(112vw, 820px); bottom: -3vh; will-change: transform; }
html.filme .petala { display: block; position: absolute; left: 0; top: 0; width: 11px; height: 8px; background: #f2c230; border-radius: 80% 12% 80% 12%; box-shadow: inset -1px -1px 0 rgba(196, 80, 43, .28); opacity: 0; will-change: transform, opacity; }
html.filme .cena-veu { display: block; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255, 251, 234, .93) 0%, rgba(255, 251, 234, .82) 30%, rgba(255, 251, 234, 0) 54%); }
html.filme .ato.dia .falas .media { color: var(--tinta); opacity: .8; }
html.filme .ato.dia .letreiro { top: 12vh; }
@media (min-aspect-ratio: 1/1) {
  html.filme .cena { --gw: min(46vw, 80vh); }
  html.filme .cena-grupo { left: 29%; }
  html.filme .cena-ipe { width: min(40vw, 620px); }
  html.filme .cena-veu { background: linear-gradient(to left, rgba(255, 251, 234, .95) 0%, rgba(255, 251, 234, .9) 30%, rgba(255, 251, 234, 0) 48%); }
  html.filme .falas.topo { left: 56%; right: 0; top: 0; height: 100%; text-align: left; place-items: center start; padding-right: var(--margem); padding-left: 0; }
  html.filme .ato.dia .letreiro { left: 56%; top: 20vh; text-align: left; }
  html.filme .fala.foge-duda { margin-right: 22vw; }
  html.filme .elenco li { width: clamp(168px, min(21vw, 36vh), 320px); }
  html.filme .ato.dia .grande { font-size: clamp(2rem, 4.4vw, 4rem); }
}

/* apps (filme) */
html.filme .app-texto { position: absolute; left: 0; right: 0; top: 9.5vh; margin: 0; max-width: none; padding-inline: var(--margem); text-align: center; }
html.filme .app-texto > * + * { margin-top: .55rem; }
html.filme .app-texto .media { font-size: clamp(1.05rem, 2.3vw, 1.6rem); }
html.filme .app-pontos { display: grid; margin-top: .7rem; min-height: 3.2em; }
html.filme .app-pontos li { grid-area: 1 / 1; padding: 0; opacity: 0; max-width: 26ch; margin-inline: auto; will-change: opacity, transform; }
html.filme .app-pontos li::before { display: none; }
html.filme .aparelho { position: absolute; left: 0; right: 0; bottom: 3vh; margin: 0; max-width: none; display: grid; justify-items: center; will-change: transform; transform-origin: 50% 100%; }
html.filme .aparelho-tela { width: auto; height: min(52vh, 600px); }
html.filme .aparelho figcaption { margin-top: .5rem; font-size: .72rem; }
@media (max-height: 700px) { html.filme .app-texto .media { display: none; } html.filme .aparelho-tela { height: 48vh; } }
@media (min-aspect-ratio: 1/1) {
  html.filme .app-texto { left: 8vw; right: 50%; top: 50%; transform: translateY(-50%); text-align: left; padding: 0; }
  html.filme .app-texto > * + * { margin-top: 1rem; }
  html.filme .app-texto .media { display: block; }
  html.filme .app-texto h2 { font-size: clamp(3rem, 7vw, 6.4rem); }
  html.filme .app-texto .selo { font-size: .95rem; }
  html.filme .app-pontos li { margin-inline: 0; max-width: 30ch; font-size: clamp(1.05rem, 1.6vw, 1.4rem); }
  html.filme .aparelho { left: 52%; right: 6vw; top: 0; bottom: 0; align-content: center; transform-origin: 50% 60%; }
  html.filme .aparelho-tela { height: min(78vh, 820px); }
}

/* elenco */
html.filme .elenco-topo { position: absolute; left: 0; right: 0; top: 11vh; margin: 0; max-width: none; padding-inline: var(--margem); text-align: center; }
html.filme .elenco-topo .media { max-width: 34ch; margin-inline: auto; }
html.filme .elenco-topo .cobogo, html.filme .verdade .cobogo { margin-inline: auto; }
html.filme .verdade .cobogo { margin-top: 1.2rem; }
html.filme .elenco-janela { position: absolute; left: 0; right: 0; bottom: 5vh; }
html.filme .elenco { display: flex; gap: clamp(.9rem, 2vw, 1.6rem); max-width: none; margin: 0; padding-inline: var(--margem); width: max-content; will-change: transform; }
html.filme .elenco li { width: clamp(168px, min(54vw, 31vh), 320px); flex: none; transform-origin: 50% 100%; will-change: transform, opacity; }
/* com a linha de personalidade o cartão ficou mais alto: em tela larga ele encolhe um pouco para não encostar nos botões das séries */
@media (min-width: 900px) and (min-height: 701px) { html.filme .elenco li { width: clamp(168px, min(21vw, 27vh), 320px); } }
@media (max-height: 700px) { html.filme .elenco li { width: clamp(130px, 16vw, 190px); } html.filme .elenco-topo { top: 9vh; } html.filme .elenco h3 { font-size: 1.15rem; margin-top: .4rem; } html.filme .elenco p { font-size: .82rem; } html.filme .elenco .jeito { font-size: .78rem; margin-top: .25rem; } }

/* verdade */
html.filme .falas.largo .fala { width: 100%; }
html.filme .verdade { max-width: 46rem; }
html.filme .verdade .sobre { margin-bottom: 1rem; }
html.filme .estado > div { opacity: 0; will-change: opacity, transform; }

/* final */
html.filme #ato-8 .falas.baixo { height: 64%; padding-bottom: max(4vh, env(safe-area-inset-bottom)); }
html.filme #ato-8 h2.fala { align-self: start; margin-top: 11vh; }
html.filme .final { align-self: end; }
html.filme .creditos { margin-inline: auto; margin-top: 1.4rem; padding-top: 1rem; font-size: .78rem; }
@media (max-height: 760px) { html.filme .creditos p:nth-child(2) { display: none; } }

@media (max-width: 520px) {
  .marca span { font-size: .95rem; }
  .som span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .som { padding: .35rem .6rem; }
  .claquete-nome { display: none; }
  html.filme .cena-grupo { left: 48%; }
  .estado > div { grid-template-columns: 1fr; gap: .1rem; padding: .7rem 0; }
  html.filme .falas.baixo { height: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
html.filme .ato.app-nc { background: #faf3d4; }
html.filme .ato.app-tv { background: #e1f0d6; }
html.filme .ato.app-mo { background: #fbe4dd; }
html.filme .ato.app-rpm { background: #eef4fb; }

/* =====================================================================
   V3: navegação, vitrine, selos por plataforma, painel da constelação
   ===================================================================== */
.barra-nav ul { display: flex; gap: 1.3rem; font-size: .92rem; }
.barra-nav a { display: inline-block; padding: .6rem 0; text-decoration: none; opacity: .86; }
.barra-nav a:hover, .barra-nav a:focus-visible { opacity: 1; text-decoration: underline; }
.barra .marca { margin-right: auto; }
.barra .claquete { margin-left: 0; }
.botao.claro { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.botao.pequeno { min-height: 44px; padding: .45rem 1.1rem; font-size: .98rem; box-shadow: none; }
.botao.pequeno::after { display: none; }
.botao.claro::after { display: none; }
.barra .ir-apps { color: var(--tinta); white-space: nowrap; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.4rem; }
.elo { font-size: .95rem; text-underline-offset: .2em; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(160, 165, 150, .5); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.menu ul { position: absolute; right: 0; top: 52px; min-width: 13rem; padding: .5rem; border-radius: 16px; background: var(--noite-2); color: var(--tinta-noite); border: 1px solid var(--linha-noite); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); }
.menu a { display: block; padding: .7rem .9rem; border-radius: 10px; text-decoration: none; }
.menu a:hover, .menu a:focus-visible { background: var(--sup-noite); }
@media (max-width: 900px) { .barra-nav { display: none; } .menu { display: block; } .barra .ir-apps { font-size: .9rem; padding: .4rem .9rem; } }
@media (max-width: 520px) { .barra { gap: .5rem; } .barra .claquete { display: none !important; } .barra .ir-apps { font-size: 0; } .barra .ir-apps::before { content: "Aplicativos"; font-size: .92rem; } .marca span { font-size: .9rem; } }

.plataformas { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.plataformas li { display: inline-flex; align-items: baseline; gap: .4em; padding: .28em .8em; border: 1.5px solid var(--cor-app, var(--verde-dia)); border-radius: 999px; font-size: .8rem; line-height: 1.3; background: rgba(255, 251, 234, .72); color: var(--tinta); }
.plataformas b { font-weight: 700; color: var(--cor-app, var(--verde-dia)); }
.cor-nc { --cor-app: var(--verde-dia); --fundo-app: #faf3d4; } .cor-tv { --cor-app: var(--verde-dia); --fundo-app: #e1f0d6; }
.cor-mo { --cor-app: var(--terracota-dia); --fundo-app: #fbe4dd; } .cor-rpm { --cor-app: var(--azul-dia); --fundo-app: #eef4fb; }
.vitrine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1.2rem; text-align: left; }
.cartao-app { position: relative; background: var(--fundo-app); color: var(--tinta); border-radius: 20px; padding: 1rem 1.1rem 1.1rem; display: grid; gap: .3rem; align-content: start; }
.cartao-app h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); letter-spacing: -.01em; }
.cartao-app h3 a { color: inherit; text-decoration: none; }
.cartao-app h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.cartao-app:hover { box-shadow: 0 0 0 2px var(--ouro); }
.cartao-frase { font-family: var(--serifa); font-size: clamp(.95rem, 1.7vw, 1.15rem); line-height: 1.25; }
.cartao-app .plataformas { margin-top: .4rem; }
.cartao-app .plataformas li { font-size: .72rem; }
.vitrine .cartao-acao { display: none; }
.vitrine .cartao-app { background: none; color: var(--tinta-noite); padding: .2rem .2rem .6rem; }
.vitrine .cartao-app:hover { box-shadow: none; }
.vitrine .cartao-app:hover .icone-app { box-shadow: 0 0 0 2px var(--ouro); }
.icone-app { width: 64px; height: 64px; margin-bottom: .4rem; border-radius: 22%; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .7); }
.painel .icone-app { width: 80px; height: 80px; }
.ato .app-texto .plataformas { margin-top: .9rem; }
.ato.noite .botao.claro { color: var(--tinta-noite); }
.rotulo a { color: inherit; text-decoration: none; display: block; }
.painel { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1.2rem; background: rgba(8, 14, 10, .62); }
.painel-caixa { width: min(100%, 24rem); }
.painel .cartao-app { padding: 1.5rem; gap: .6rem; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.painel .cartao-app h3 { font-size: 2rem; }
.painel .cartao-frase { font-size: 1.25rem; }
.painel .cartao-app h3 a::after { display: none; }
.painel .cartao-app .plataformas li { font-size: .85rem; }
.painel .cartao-acao { display: block; margin-top: .8rem; }
.painel-fechar { margin-top: -6rem; align-self: end; min-height: 44px; padding: .5rem 1.4rem; border-radius: 999px; border: 1px solid var(--apagado-noite); background: var(--noite); color: var(--tinta-noite); font: inherit; cursor: pointer; }
.rodape-marca { font-family: var(--serifa); font-size: 1.05rem; color: var(--tinta-noite); }
.rodape-marca b { color: var(--ouro); font-weight: 500; margin-right: .4em; }
.rodape-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem 1.1rem; margin: .5rem 0; }
.rodape-links a { display: inline-block; padding: .35rem 0; color: var(--tinta-noite); }
.ato.dia .falas a { color: var(--verde-dia); }
.cobogo { display: none; }

/* no filme, só o que é de tocar recebe o toque (os atos ficam empilhados) */
html.filme .ato, html.filme .ato.ativo { pointer-events: none; }
html.filme .ato.ativo a, html.filme .ato.ativo button, html.filme .ato.ativo video { pointer-events: auto; }
html.filme .rotulo { visibility: hidden; }
html.filme .rotulo a { padding: .5rem .2rem .5rem 0; margin: -.5rem 0; }
html.filme .rotulo a:hover b, html.filme .rotulo a:focus-visible b { text-decoration: underline; }
html.filme .fala.abertura h1 { max-width: 13ch; }
html.filme .fala.abertura .media { max-width: 34ch; margin: 1.1rem auto 0; font-size: clamp(1.02rem, 2vw, 1.4rem); }
html.filme .fala.abertura .acoes, html.filme .final .acoes, html.filme .elenco-topo .acoes, html.filme .verdade .acoes { justify-content: center; }
html.filme .vitrine-fala { width: min(100%, 46rem); }
html.filme .ato.noite .falas.centro { padding-top: 12vh; }
html.filme .app-texto .acoes { justify-content: center; margin-top: .8rem; }
html.filme .app-texto .plataformas { justify-content: center; margin-top: .6rem; }
html.filme .app-texto .botao { min-height: 48px; padding: .55rem 1.4rem; font-size: 1.05rem; }
html.filme .elenco-topo .acoes { margin-top: .8rem; }
html.filme .elenco-topo .grande { font-size: clamp(1.7rem, 4.6vw, 3.4rem); max-width: 18ch; margin-inline: auto; }
html.filme .aparelho-tela { height: min(47vh, 600px); }
@media (max-width: 520px) {
  html.filme .app-texto { top: 8.5vh; }
  html.filme .app-texto .elo { font-size: .85rem; }
  html.filme .elenco-topo .media { display: none; }
  html.filme .cartao-app { padding: .8rem .85rem .9rem; }
}
@media (min-aspect-ratio: 1/1) {
  html.filme .app-texto .acoes, html.filme .app-texto .plataformas { justify-content: flex-start; }
  html.filme .aparelho-tela { height: min(78vh, 820px); }
  html.filme .vitrine { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.filme .vitrine-fala { width: min(100%, 72rem); }
}
.botao.pequeno.claro { box-shadow: inset 0 0 0 2px currentColor; }
html.filme #ato-12 .falas.baixo { height: 68%; }
html.filme .final .acoes { margin-top: .9rem; }
html.filme .final .botao { min-height: 50px; padding: .6rem 1.5rem; }
@media (max-height: 900px) { html.filme .creditos p:nth-of-type(2) { display: none; } html.filme .creditos { margin-top: 1rem; } }
@media (min-aspect-ratio: 1/1) { html.filme .vitrine .cartao-app { padding: 1.3rem 1.4rem 1.5rem; gap: .5rem; } html.filme .vitrine .cartao-app .plataformas li { font-size: .8rem; } }
/* a abertura já nasce visível (não espera o JavaScript): é o maior texto da primeira tela */
html.filme #ato-1 { opacity: 1; }
html.filme .fala.abertura { opacity: 1; }
