/* home-praca: so o que a praca acrescenta; secoes, cartoes e textos vem de home.css ( identicos aos da home no ar ) */
:root { --painel: rgba(10, 10, 10, 0.84); }

/* cena ( mesmo comportamento da cidade: aparece suave quando o primeiro quadro esta pronto ) */
#palco { opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; }
#palco.pronto { opacity: 1; }
.cred { display: none; }

/* frentes fixadas ( igual a home ) */
.cena.frentes { display: block; min-height: 440svh; padding: 0; }
.frentes .pino { position: sticky; top: 0; height: 100svh; display: flex; align-items: flex-end; padding: 120px var(--pad) 48px; }
.grade article { transition: opacity .35s, transform .35s; }
.grade.foco article:not(.ativa) { opacity: .4; }
.grade.foco article.ativa { transform: translateY(-3px); }
@media (max-width: 760px) {
	.cena.frentes { min-height: 100svh; padding: 120px var(--pad) 48px; display: flex; align-items: flex-end; }
	.frentes .pino { position: static; height: auto; padding: 0; width: 100%; }
}
main { pointer-events: none; transition: opacity .45s ease, visibility 0s linear 0s; }
.frentes .pino { pointer-events: none; }
.frentes .pino > * { pointer-events: auto; }

/* a praca e noite: trilho lateral com contraste ( como a cidade a noite ) */
html.com3d .trilho { color: #e6e4dc; }
html.com3d body .trilho span.on { color: #FFD60A; }

/* foco num telao e modo livre: os cartoes somem ( fade ) */
html.foco main, html.livre main, html.livre .trilho, html.livre .role { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
html.livre, html.livre body { overflow: hidden; overscroll-behavior: none; }
html.livre #palco { touch-action: none; cursor: grab; }
html.livre #palco:active { cursor: grabbing; }

/* ---------------------------------------------------------------- interface da cena */
.cena-ui { font-family: Geist, system-ui, sans-serif; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#guias { position: fixed; z-index: 6; top: calc(var(--casca-topo, 76px) + 2px); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; background: var(--painel); border: 1px solid rgba(250, 250, 247, 0.16); border-radius: 8px; max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; }
#guias::-webkit-scrollbar { display: none; }
#guias button { flex: 0 0 auto; min-height: 40px; padding: 8px 13px; background: transparent; color: #FAFAF7; border: 1px solid transparent; border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
#guias button:hover { border-color: rgba(250, 250, 247, 0.3); }
#guias button:focus-visible { outline: 2px solid #E85D04; outline-offset: 1px; }
#guias button.ativo { background: #E85D04; color: #0A0A0A; }
#guias .guia-rua { border-color: rgba(250, 250, 247, 0.3); margin-left: 6px; }
html.livre #guias .guia-rua { display: none; }

#rotulo { position: fixed; z-index: 6; left: 0; top: 0; padding: 6px 10px; background: #E85D04; color: #0A0A0A; font-size: 13px; font-weight: 500; border-radius: 3px; pointer-events: none; opacity: 0; transition: opacity 120ms; white-space: nowrap; }
#rotulo.on { opacity: 1; }

.botoes-cena { position: fixed; z-index: 6; left: 24px; bottom: 24px; display: flex; gap: 8px; }
.botoes-cena button, #voltar-roteiro { min-height: 44px; padding: 10px 16px; background: var(--painel); color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.26); border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; }
#ir-rua { border-color: #E85D04; }
.botoes-cena button:hover, .botoes-cena button:focus-visible, #voltar-roteiro:hover, #voltar-roteiro:focus-visible { border-color: #FFD60A; outline: none; }
html.livre .botoes-cena, html.foco .botoes-cena, html.sem3d .botoes-cena, html.sem3d #guias .guia-rua { display: none; }
#voltar-roteiro { position: fixed; z-index: 6; left: 24px; bottom: 24px; background: #E85D04; color: #0A0A0A; border-color: #E85D04; font-weight: 800; }
#voltar-roteiro[hidden] { display: none; }

#dica-rua { position: fixed; z-index: 6; left: 50%; bottom: 28px; transform: translateX(-50%); margin: 0; padding: 10px 16px; max-width: calc(100vw - 32px); background: var(--painel); color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.2); border-radius: 6px; font: 500 13px/1.3 "Geist Mono", monospace; letter-spacing: .04em; text-align: center; pointer-events: none; }
#dica-rua[hidden] { display: none; }

#joy { position: fixed; z-index: 6; left: 24px; bottom: 96px; width: 124px; height: 124px; border-radius: 50%; background: rgba(10, 10, 10, 0.45); border: 2px solid rgba(250, 250, 247, 0.4); touch-action: none; display: flex; align-items: center; justify-content: center; }
#joy[hidden] { display: none; }
#joy i { width: 52px; height: 52px; border-radius: 50%; background: rgba(250, 250, 247, 0.85); border: 2px solid #E85D04; pointer-events: none; }

/* foco: barra de capitulos + botoes embaixo do telao ( como na praca ) */
#acao-foco { position: fixed; z-index: 6; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: calc(100vw - 16px); opacity: 0; pointer-events: none; transition: opacity 200ms; }
#acao-foco.on { opacity: 1; pointer-events: auto; }
#acao-foco[hidden] { display: none; }
#acao-foco .botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#caps { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; background: var(--painel); border-radius: 6px; }
#caps:empty { display: none; }
#caps button { flex: 0 0 auto; min-height: 32px; padding: 5px 10px; background: transparent; color: rgba(250, 250, 247, 0.75); border: 0; border-radius: 4px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
#caps button.ativo { color: #0A0A0A; background: #FAFAF7; }
#cap-ant, #cap-prox, #wa-foco, #ver-pagina, #fechar-foco { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 6px; font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
#cap-ant, #cap-prox, #wa-foco, #fechar-foco { background: var(--painel); color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.3); }
#cap-ant:disabled, #cap-prox:disabled { opacity: 0.35; cursor: default; }
#wa-foco[hidden] { display: none; }
#ver-pagina { background: #E85D04; color: #0A0A0A; border: 1px solid #E85D04; font-weight: 800; }
#acao-foco button:focus-visible, #acao-foco a:focus-visible { outline: 2px solid #FFD60A; outline-offset: 2px; }

/* balao da Baby: o cartao da home em miniatura ( papel, borda de tinta ) com os CTAs reais */
#balao { position: fixed; z-index: 6; left: 0; top: 0; width: min(330px, calc(100vw - 24px)); padding: 18px 18px 14px; background: #FAFAF7; color: #0A0A0A; border: 2px solid #0A0A0A; border-left-width: 7px; box-shadow: 5px 5px 0 #0A0A0A; opacity: 0; transition: opacity .25s; }
#balao.on { opacity: 1; }
#balao[hidden] { display: none; }
#balao .balao-t { margin: 0 0 12px; font: 800 22px/1.1 Geist, system-ui, sans-serif; letter-spacing: -0.02em; }
#balao .acoes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
#balao-fechar { display: block; margin: -12px -12px 4px auto; min-height: 32px; padding: 4px 12px; background: none; border: 0; font: 500 12px "Geist Mono", monospace; color: #6b6b6b; cursor: pointer; }
#balao::after { content: ""; position: absolute; top: 34%; width: 14px; height: 14px; background: #FAFAF7; border: solid #0A0A0A; }
#balao[data-lado="dir"]::after { left: -16px; border-width: 0 0 2px 2px; transform: rotate(45deg); }
#balao[data-lado="esq"]::after { right: -9px; border-width: 2px 2px 0 0; transform: rotate(45deg); }
#balao[data-lado="cima"]::after { display: none; }

@media (max-width: 760px) {
	#guias { top: calc(var(--casca-topo, 64px) + 2px); left: 12px; right: 12px; transform: none; max-width: none; }
	#guias button { font-size: 13px; padding: 8px 10px; min-height: 38px; }
	.botoes-cena { left: 16px; bottom: 16px; }
	.botoes-cena button { font-size: 13px; padding: 8px 12px; }
	#voltar-roteiro { left: auto; right: 16px; bottom: 16px; }
	#joy { left: 20px; bottom: 28px; }
	#dica-rua { bottom: 168px; }
	#cap-ant, #cap-prox, #wa-foco, #ver-pagina, #fechar-foco { font-size: 13px; padding: 8px 10px; min-height: 40px; }
	#balao { width: 206px; padding: 14px 12px 12px; }
	#balao .balao-t { font-size: 17px; }
	#balao .acoes a { padding: 10px 12px; font-size: 14px; }
}

/* topo: o texto da abertura ganha o mesmo papel dos cartoes ( na cidade de dia bastava o brilho claro; a praca e noite ) */
html:not(.legenda):not(.sem3d) .abre .texto { background: #FAFAF7F2; border: 2px solid #0A0A0A; border-left-width: 7px; box-shadow: 5px 5px 0 #0A0A0A; padding: clamp(20px, 2.6vw, 36px); max-width: min(620px, 46vw); }
.abre .texto::before { display: none; }
@media (max-width: 760px) { html:not(.legenda):not(.sem3d) .abre .texto { max-width: none; padding: 18px 18px 20px; } }

/* ---------------------------------------------------------------- shopping ( ambientes 3D ) e escritorio */
html.shopping .botoes-cena, html.shopping #voltar-roteiro { display: none; }
#veu { position: fixed; inset: 0; z-index: 9; background: #050505; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
#veu.on { opacity: 1; pointer-events: auto; }
#entrar-shop { position: fixed; z-index: 7; left: 50%; bottom: 86px; transform: translateX(-50%); min-height: 48px; padding: 12px 26px; background: #E85D04; color: #0A0A0A; border: 2px solid #0A0A0A; box-shadow: 4px 4px 0 #0A0A0A; font: 800 16px Geist, system-ui, sans-serif; cursor: pointer; }
#entrar-shop[hidden] { display: none; }
#shop-ui { position: fixed; z-index: 7; left: 0; right: 0; bottom: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 0 16px; pointer-events: none; }
#shop-ui[hidden], #loja-ui[hidden], #quem-ui[hidden] { display: none; }
#shop-ui > *, #loja-ui > * { pointer-events: auto; }
.shop-nav { display: flex; align-items: center; gap: 6px; padding: 4px; background: var(--painel); border: 1px solid rgba(250, 250, 247, 0.18); border-radius: 8px; }
#shop-nome { min-width: 170px; text-align: center; color: #FAFAF7; font: 800 15px Geist, system-ui, sans-serif; }
#shop-ui button, #loja-ui button { min-height: 44px; padding: 10px 14px; background: var(--painel); color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.3); border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; }
#shop-ui button:disabled { opacity: .35; cursor: default; }
#shop-sair, #loja-sair { background: #E85D04 !important; color: #0A0A0A !important; border-color: #E85D04 !important; font-weight: 800 !important; }
#shop-entrar { border-color: #FFD60A !important; }
#loja-ui { position: fixed; z-index: 7; left: 50%; top: calc(var(--casca-topo, 76px) + 64px); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; background: var(--painel); border: 1px solid rgba(250, 250, 247, 0.2); border-radius: 8px; }
#loja-nome { color: #FAFAF7; font: 800 18px Geist, system-ui, sans-serif; }
#quem-ui { position: fixed; z-index: 7; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 18px 18px; width: min(520px, calc(100vw - 24px)); background: rgba(8, 8, 10, 0.88); border: 2px solid #E85D04; box-shadow: 0 0 0 4px #0A0A0A, 0 0 32px rgba(232, 93, 4, .35); }
.sel-t { margin: 0; font: 500 15px "Geist Mono", monospace; letter-spacing: .3em; color: #FFD60A; }
.sel-cartas { display: flex; gap: 14px; }
.sel-carta { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 190px; padding: 10px 10px 12px; background: #111014; color: #FAFAF7; border: 3px solid #2c2a33; cursor: pointer; font: inherit; }
.sel-carta b { font: 800 18px Geist, system-ui, sans-serif; }
.sel-carta i { font: 500 12px "Geist Mono", monospace; font-style: normal; color: #c9c6bd; text-align: center; }
.sel-carta.ativo, .sel-carta:focus-visible { border-color: #E85D04; outline: none; box-shadow: 0 0 0 3px #0A0A0A, 0 0 18px rgba(232, 93, 4, .5); }
.sel-carta.escolhido { animation: escolhe .6s steps(6) both; }
@keyframes escolhe { 0%, 50% { transform: translateY(0) scale(1); background: #E85D04; } 25%, 75% { transform: translateY(-6px) scale(1.04); background: #111014; } 100% { transform: scale(1.06); background: #E85D04; } }
.sel-fig { width: 150px; height: 150px; background-size: 420%; background-color: #0b0a0e; background-repeat: no-repeat; image-rendering: auto; }
.sel-fig.pixel { background-repeat: no-repeat; background-color: transparent; }
#quem-ui > a.sec { font-size: 15px; }
@media (max-width: 760px) {
	#quem-ui { bottom: 76px; padding: 12px; gap: 8px; }
	.sel-carta { width: 150px; }
	.sel-fig { width: 110px; height: 110px; }
	#shop-nome { min-width: 120px; font-size: 13px; }
	#loja-ui { top: calc(var(--casca-topo, 64px) + 56px); }
}

/* ---------------------------------------------------------------- bairro do e-commerce ( vista de cima ) */
html.bairro .botoes-cena, html.bairro #voltar-roteiro { display: none; }
#ver-maquete { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 6px; font: inherit; font-size: 15px; cursor: pointer; background: #FAFAF7; color: #0A0A0A; border: 1px solid #FAFAF7; font-weight: 800; }
#ver-maquete[hidden], #entrar-bairro[hidden], #iso-ui[hidden], #iso-painel[hidden] { display: none; }
#entrar-bairro { position: fixed; z-index: 7; left: 50%; bottom: 86px; transform: translateX(-50%); min-height: 48px; padding: 12px 26px; background: #E85D04; color: #0A0A0A; border: 2px solid #0A0A0A; box-shadow: 4px 4px 0 #0A0A0A; font: 800 16px Geist, system-ui, sans-serif; cursor: pointer; }
#iso-ui { position: fixed; z-index: 7; left: 0; right: 0; bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
#iso-ui > * { pointer-events: auto; }
#iso-selo { margin: 0; padding: 6px 12px; background: var(--painel); color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.2); border-radius: 999px; font: 500 12px "Geist Mono", monospace; letter-spacing: .04em; }
#iso-selo::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #44E0B4; vertical-align: 1px; }
.iso-botoes { display: flex; gap: 8px; }
.iso-botoes button { min-height: 44px; padding: 10px 16px; background: var(--painel); color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.3); border-radius: 6px; font: inherit; font-size: 14px; cursor: pointer; }
#iso-voltar { background: #E85D04; color: #0A0A0A; border-color: #E85D04; font-weight: 800; }
#iso-painel { position: fixed; z-index: 7; right: 24px; top: calc(var(--casca-topo, 76px) + 64px); width: min(340px, calc(100vw - 24px)); padding: 16px 18px; background: #FAFAF7; color: #0A0A0A; border: 2px solid #0A0A0A; border-left-width: 7px; box-shadow: 5px 5px 0 #0A0A0A; }
#iso-painel p { margin: 0 0 8px; }
#iso-painel .n { font: 500 12px "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: #c2410c; }
#iso-painel .v b { font: 800 30px Geist, system-ui, sans-serif; letter-spacing: -0.02em; }
#iso-painel .v span { font: 500 14px Geist, system-ui, sans-serif; color: #55554f; }
#iso-painel .t { font: 400 16px/1.45 "EB Garamond", Georgia, serif; }
#iso-fechar { min-height: 36px; padding: 6px 10px; background: none; border: 1.5px solid #0A0A0A; font: 500 12px "Geist Mono", monospace; cursor: pointer; }
@media (max-width: 760px) {
	#iso-painel { right: 12px; left: 12px; width: auto; top: auto; bottom: 128px; }
	#iso-painel .t { font-size: 15px; }
}

/* ================================================================ ADICAO 4: a praca domina. O cartao vira LEGENDA de vidro escuro
   ( canto inferior esquerdo no computador, faixa de baixo no celular ), uma por vez, com "Ler mais" que abre o texto inteiro.
   O texto da home continua inteiro no DOM ( so muda onde e como aparece ). ?cartoes=1 volta ao cartao branco. */
html.legenda .leg {
	position: fixed; z-index: 4; left: 24px; bottom: 24px; top: auto; right: auto; margin: 0;
	width: min(380px, calc(100vw - 48px)); max-width: none; max-height: 28vh; overflow: hidden;
	padding: 14px 16px 12px; border: 1px solid rgba(250, 250, 247, 0.1); border-left-width: 1px; border-radius: 10px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
	background: rgba(10, 10, 10, 0.6); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
	color: #FAFAF7; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility 0s linear .35s;
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) { html.legenda .leg { background: rgba(10, 10, 10, 0.8); } }
html.legenda .leg.leg-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s ease, visibility 0s; }
html.legenda.movendo .leg.leg-on:not(.aberto) { opacity: 0; pointer-events: none; }
html.legenda .leg:not(.aberto) .leg-esconde { display: none !important; }
html.legenda .leg::before { display: none !important; }
/* tipografia da legenda */
html.legenda .leg .num, html.legenda .leg .sobre { margin: 0 0 6px; font-size: 11px; color: #E85D04; letter-spacing: .16em; }
html.legenda .leg .num b { color: #E85D04; }
html.legenda .leg h1, html.legenda .leg h2 { margin: 0 0 6px; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.08; letter-spacing: -0.02em; color: #FAFAF7; }
html.legenda .leg h2 span, html.legenda .leg h1 em { color: #bdbab2; }
html.legenda .leg mark { background: #FFD60A; color: #0A0A0A; }
html.legenda .leg p { color: #e6e4dc; font-size: 15px; line-height: 1.4; margin: 0 0 8px; }
html.legenda .leg:not(.aberto) .leg-frase { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.legenda .leg h3, html.legenda .leg h3 a { color: #FAFAF7; font-size: 16px; margin: 0 0 4px; }
html.legenda .leg .grade { display: block; }
html.legenda .leg:not(.aberto) .grade article { border: 0; padding: 0; background: none; box-shadow: none; transform: none; opacity: 1; }
html.legenda .leg .acoes { gap: 8px; margin: 4px 0 6px; }
html.legenda .leg .cta { padding: 9px 14px; font-size: 14px; box-shadow: none; border-color: #E85D04; }
html.legenda .leg .sec { padding: 8px 12px; font-size: 13px; background: transparent; color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.45); }
html.legenda .leg .nota, html.legenda .leg .meta { color: #bdbab2; font-size: 12px; }
html.legenda .leg-mais { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; margin-top: 2px; background: transparent; color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.3); border-radius: 6px; font: 500 12px "Geist Mono", monospace; letter-spacing: .06em; cursor: pointer; }
html.legenda .leg-mais:hover, html.legenda .leg-mais:focus-visible { border-color: #E85D04; outline: none; }
html:not(.legenda) .leg-mais { display: none; }
/* aberta: painel lateral de vidro ( computador ) / folha que sobe ate 70 % ( celular ) */
html.legenda .leg.aberto { top: calc(var(--casca-topo, 76px) + 62px); bottom: auto; left: 16px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - var(--casca-topo, 76px) - 78px); overflow: auto; overscroll-behavior: contain; z-index: 6; }
html.legenda .leg.aberto h1, html.legenda .leg.aberto h2 { font-size: 26px; }
html.legenda .leg.aberto .grade article { margin: 0 0 14px; }
html.legenda .leg.aberto .amb { grid-template-columns: 1fr 1fr; }
html.legenda .leg.aberto .erp-palco { max-width: 100%; }
html.legenda .leg.aberto .fatos li, html.legenda .leg.aberto .recursos li { color: #e6e4dc; }
/* as secoes viram so espaco de rolagem; frentes com 4 paradas tambem no celular; a conversa empurra o rodape para baixo */
html.legenda .cena { min-height: 100svh; }
html.legenda .cena.frentes { min-height: 440svh; }
html.legenda .frentes .pino { position: static; height: 0; padding: 0; }
html.legenda .cena.fim { min-height: 200svh; flex-direction: column; justify-content: flex-end; align-items: stretch; }
html.legenda .casca-rodape { background: rgba(10, 10, 10, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #e6e4dc; border-top: 1px solid rgba(250, 250, 247, 0.12); }
html.legenda .casca-rodape a { color: #FAFAF7; }
html.legenda .casca-rodape li, html.legenda .casca-copy { color: #bdbab2; }
html.legenda .role { display: none; }
/* botoes da cena: no centro de baixo ( o canto esquerdo e da legenda ) */
html.legenda .botoes-cena { left: 50%; transform: translateX(-50%); }
@media (max-width: 760px) {
	html.legenda .leg { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 30vh; }
	html.legenda .leg.aberto { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-height: 70vh; }
	html.legenda .botoes-cena { display: none; }
	html.legenda #balao { bottom: auto; }
}

/* ================================================================ BARRA UNICA ( Thiago 30/11 ): logo + guias + Falar, vidro escuro
   coerente com a legenda. O menu Servicos e os links O que a gente faz / Como roda / Provas / Quem / ERP continuam no DOM
   ( texto igual ao da home ) mas saem da vista: os guias fazem o papel deles. */
html.legenda .topo { position: fixed; top: 0; left: 0; right: 0; z-index: 7; display: flex; align-items: center; gap: 14px; padding: 6px 16px; min-height: 58px;
	background: rgba(10, 10, 10, 0.62); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid rgba(250, 250, 247, 0.1); }
html.legenda .topo > .casca-menu, html.legenda .topo > nav[aria-label="Seções"] { display: none !important; }
html.legenda .logo { color: #FAFAF7; font-size: 24px; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 4px; flex: none; }
html.legenda .topo .falar { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: transparent; color: #FAFAF7; border: 1.5px solid #E85D04; font: 700 14px Geist, system-ui, sans-serif; letter-spacing: .02em; text-transform: none; margin-left: 0; }
html.legenda .topo .falar:hover, html.legenda .topo .falar:focus-visible { background: rgba(232, 93, 4, 0.18); outline: none; }
html.legenda #guias { position: relative; top: auto; left: auto; transform: none; flex: 1 1 auto; min-width: 0; max-width: none; margin: 0 auto; padding: 0;
	background: none; border: 0; display: flex; justify-content: flex-start; gap: 2px; overflow-x: auto; letter-spacing: normal; text-transform: none; font-family: Geist, system-ui, sans-serif;
	/* indicacao de que a faixa rola: as bordas somem em degrade quando ha mais item */
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-e, 0px), #000 calc(100% - var(--fade-d, 0px)), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-e, 0px), #000 calc(100% - var(--fade-d, 0px)), transparent 100%); }
html.legenda #guias .g-grupo { display: flex; gap: 2px; align-items: center; flex: none; }
html.legenda #guias .g-grupo + .g-grupo { margin-left: 6px; padding-left: 8px; border-left: 1px solid rgba(250, 250, 247, 0.16); }
html.legenda #guias .g-tit { display: none; }
html.legenda #guias button { min-height: 44px; padding: 8px 11px; font-size: 14px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: #FAFAF7; }
html.legenda #guias button.ativo { background: transparent; color: #FAFAF7; border-color: #E85D04; }
html.legenda #guias .guia-rua { margin-left: 0; border-color: rgba(250, 250, 247, 0.3); }
#menu-btn { display: none; }
html.legenda .botoes-cena { display: none !important; } /* Recomecar = Inicio; Navegar pela rua esta na barra */
html.legenda .pular { min-height: 44px; display: inline-flex; align-items: center; }
/* o resto da tela abaixo da barra unica */
html.legenda .leg.aberto { top: calc(var(--casca-topo, 58px) + 12px); max-height: calc(100vh - var(--casca-topo, 58px) - 28px); }
html.legenda #loja-ui, html.legenda #iso-painel { top: calc(var(--casca-topo, 58px) + 14px); }
/* um destaque por tela: o laranja cheio fica para o CTA da legenda; o do balao da Baby vira contorno */
html.legenda #balao .cta { background: transparent; color: #0A0A0A; border: 2px solid #E85D04; box-shadow: none; }
/* alvos de toque >= 44 px */
html.legenda .leg .cta, html.legenda .leg .sec, html.legenda .leg-mais, #balao-fechar, #iso-fechar, #caps button, #shop-ui button, #loja-ui button, .iso-botoes button { min-height: 44px; }
html.legenda .leg-mais { padding: 6px 14px; }
html.legenda .casca-rodape a { display: inline-flex; align-items: center; min-height: 44px; }
html.legenda .casca-rodape li { min-height: 44px; }
#balao-fechar { min-width: 44px; }

/* poster: some depois que a cena aparece ( o canvas cobre com fade de 0,6 s ) */
#palco { transition: opacity .6s ease; }
#poster { transition: opacity .6s ease .6s; }
#poster.fora { opacity: 0; }

/* video: botao discreto ( canto inferior direito ), abre pequeno so no clique */
#video-btn { position: fixed; z-index: 6; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px 0 12px; border-radius: 999px;
	background: rgba(10, 10, 10, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.22); font: 500 13px Geist, system-ui, sans-serif; cursor: pointer; }
#video-btn i { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #FAFAF7; }
#video-btn:hover, #video-btn:focus-visible { border-color: #E85D04; outline: none; }
#video-btn[hidden], #video-mini[hidden] { display: none; }
#video-mini { position: fixed; z-index: 6; right: 16px; bottom: 16px; width: 164px; border-radius: 12px; overflow: hidden; background: #0A0A0A; border: 1px solid rgba(250, 250, 247, 0.22); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
#video-mini video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111; }
#video-mini .vm-barra { display: flex; gap: 4px; padding: 4px; }
#video-mini .vm-barra button { flex: 1; min-height: 44px; background: rgba(250, 250, 247, 0.06); color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.22); border-radius: 8px; font: 500 12px Geist, system-ui, sans-serif; cursor: pointer; }
html.livre #video-btn, html.foco #video-btn { display: none; }

@media (max-width: 760px) {
	html.legenda .topo { padding: 6px 10px; gap: 8px; }
	html.legenda .logo { font-size: 21px; margin-right: auto; }
	#menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; background: transparent; color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.3); font: 500 14px Geist, system-ui, sans-serif; cursor: pointer; }
	html.legenda #guias { display: none; position: fixed; left: 10px; right: 10px; top: calc(var(--casca-topo, 58px) + 6px); max-height: calc(100vh - var(--casca-topo, 58px) - 24px); overflow: auto; flex-direction: column; gap: 6px; padding: 10px;
		background: rgba(10, 10, 10, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(250, 250, 247, 0.12); border-radius: 10px; -webkit-mask-image: none; mask-image: none; }
	html.legenda.menu-aberto #guias { display: flex; }
	html.legenda #guias .g-grupo { flex-direction: column; align-items: stretch; }
	html.legenda #guias .g-grupo + .g-grupo { margin: 4px 0 0; padding: 6px 0 0; border-left: 0; border-top: 1px solid rgba(250, 250, 247, 0.14); }
	html.legenda #guias .g-tit { display: block; padding: 2px 4px; font: 500 11px "Geist Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: #E85D04; }
	html.legenda #guias button { text-align: left; font-size: 15px; }
	/* o botao do video fica acima da legenda ( faixa de baixo ) */
	#video-btn { right: 12px; bottom: calc(30vh + 22px); }
	#video-mini { right: 12px; bottom: calc(30vh + 22px); width: 110px; }
	html.legenda .topo .falar { padding: 0 14px; }
}
html.captura body *:not(#palco) { visibility: hidden !important; }
html.captura #palco { opacity: 1 !important; transition: none !important; }

#balao .acoes a { min-height: 44px; display: inline-flex; align-items: center; }
html.legenda .leg:not(.aberto) .acoes .nota { display: none; }

/* ---------------------------------------------------------------- passeio automatico: botao ao lado / acima do video */
#auto-btn { position: fixed; z-index: 5; right: 16px; bottom: 70px; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; min-width: 44px; padding: 4px 14px 4px 13px; border-radius: 999px;
	background: rgba(10, 10, 10, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.22); font: 500 13px/1.15 Geist, system-ui, sans-serif; text-align: left; cursor: pointer; }
#auto-btn[hidden] { display: none; }
#auto-btn:hover, #auto-btn:focus-visible { border-color: #E85D04; outline: none; }
#auto-btn i { width: 10px; height: 12px; flex: none; border-style: solid; border-color: #FAFAF7; border-width: 0 3px; box-sizing: border-box; }
#auto-btn[data-estado="pausado"] i { width: 0; height: 0; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #FAFAF7; }
#auto-btn b, #auto-btn small { display: block; white-space: nowrap; }
#auto-btn b { font-weight: 500; }
#auto-btn small { font: 500 10px "Geist Mono", monospace; letter-spacing: .08em; color: #bdbab2; }
html.foco #auto-btn, html.livre #auto-btn { display: none; }
body:has(#video-mini:not([hidden])) #auto-btn { display: none; }

/* dica de navegacao: uma vez por visita, ate 3 s, nao recebe clique */
#dica-nav { position: fixed; z-index: 6; left: 50%; bottom: 28px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); padding: 14px 20px 12px; pointer-events: none; text-align: center;
	background: rgba(10, 10, 10, 0.84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #FAFAF7; border: 1px solid rgba(250, 250, 247, 0.2); border-radius: 12px; animation: dn-vida 3s ease both; }
#dica-nav[hidden] { display: none; }
#dica-nav[data-modo="mouse"] .dn-dedo, #dica-nav[data-modo="toque"] .dn-mouse { display: none; }
#dica-nav p { margin: 0; }
#dica-nav .dn-t { font: 800 15px Geist, system-ui, sans-serif; }
#dica-nav .dn-p { font: 500 11px "Geist Mono", monospace; letter-spacing: .04em; color: #FFD60A; }
.dn-linha { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin: 10px 0 8px; }
.dn-linha figure { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.dn-linha figcaption { font: 500 12px Geist, system-ui, sans-serif; color: #e6e4dc; }
.dn-linha figure > span, .dn-linha figure > svg { height: 52px; }
.dn-linha figure:nth-child(2) { flex-direction: column; }
#dica-nav svg { fill: none; stroke: #FAFAF7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dn-rato { width: 36px; animation: dn-vaivem 1.2s ease-in-out .3s 2; }
.dn-rato .dn-roda { stroke: #E85D04 !important; animation: dn-roda .6s ease-in-out .3s 4 alternate; }
.dn-linha figure:nth-child(2) { display: grid; grid-template-columns: auto auto; column-gap: 10px; }
.dn-linha figure:nth-child(2) figcaption { grid-column: 1 / -1; text-align: center; }
.dn-dedo .dn-linha figure:nth-child(2) { display: flex; }
.dn-teclas { display: grid; grid-template-columns: repeat(3, 24px); grid-auto-rows: 24px; gap: 3px; align-content: end; }
.dn-teclas kbd { display: flex; align-items: center; justify-content: center; border: 1.5px solid rgba(250, 250, 247, 0.55); border-radius: 5px; font: 700 12px "Geist Mono", monospace; animation: dn-tecla .5s ease; }
.dn-teclas kbd:empty { visibility: hidden; }
.dn-teclas kbd svg { width: 12px; height: 12px; stroke-width: 1.8 !important; }
.dn-teclas kbd:nth-child(2) { animation-delay: .35s; }
.dn-teclas kbd:nth-child(4) { animation-delay: .75s; }
.dn-teclas kbd:nth-child(5) { animation-delay: 1.15s; }
.dn-teclas kbd:nth-child(6) { animation-delay: 1.55s; }
.dn-arrasto { position: relative; display: block; width: 76px; }
.dn-arrasto::before { content: ""; position: absolute; left: 6px; right: 6px; top: 25px; border-top: 2px dashed rgba(250, 250, 247, 0.45); }
.dn-arrasto i { position: absolute; left: 24px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(250, 250, 247, 0.9); border: 2px solid #E85D04; box-sizing: border-box; animation: dn-arrasta 1.2s ease-in-out .3s 2; }
.dn-joy { display: flex; align-items: center; justify-content: center; width: 52px; border-radius: 50%; border: 2px solid rgba(250, 250, 247, 0.5); box-sizing: border-box; }
.dn-joy i { width: 22px; height: 22px; border-radius: 50%; background: rgba(250, 250, 247, 0.9); border: 2px solid #E85D04; box-sizing: border-box; animation: dn-gira 1.2s ease-in-out .3s 2; }
@keyframes dn-vida { 0% { opacity: 0; } 8%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dn-vaivem { 25% { transform: translateX(-12px); } 75% { transform: translateX(12px); } }
@keyframes dn-roda { to { transform: translateY(7px); } }
@keyframes dn-tecla { 50% { background: #E85D04; border-color: #E85D04; color: #0A0A0A; } }
@keyframes dn-arrasta { 25% { transform: translateX(-24px); } 75% { transform: translateX(24px); } }
@keyframes dn-gira { 25% { transform: translate(0, -13px); } 50% { transform: translate(13px, 0); } 75% { transform: translate(-13px, 0); } }
@media (max-width: 760px) {
	#auto-btn { right: auto; left: 12px; bottom: calc(30vh + 22px); }
	#dica-nav { bottom: auto; top: 38%; width: calc(100vw - 48px); max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
	#dica-nav, #dica-nav * { animation: none !important; }
}

/* easter egg: o Thiago na calcada ( thiago.js ) */
#balao-thiago { position: fixed; z-index: 6; left: 0; top: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; max-width: min(300px, calc(100vw - 24px)); padding: 6px 8px 6px 12px; background: rgba(10, 10, 10, .94); color: #FAFAF7; border: 1px solid #E85D04; border-radius: 8px; font-size: 14px; }
#balao-thiago[hidden] { display: none; }
#balao-thiago b { flex: 1 0 100%; font-size: 15px; padding-top: 4px; }
#balao-thiago a, #balao-thiago button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; font: inherit; cursor: pointer; }
#balao-thiago a { background: #E85D04; color: #0A0A0A; font-weight: 700; text-decoration: none; }
#balao-thiago button { background: transparent; color: #FAFAF7; border: 1px solid rgba(250, 250, 247, .35); }
html.captura #balao-thiago { display: none; }
