@font-face { font-family: "Ambev Curva RC"; src: url("fonts/curva.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "AvantGarde Bk BT"; src: url("fonts/avant.ttf") format("truetype"); font-display: block; }
:root { --curva: "Ambev Curva RC", "Arial Black", sans-serif; --avant: "AvantGarde Bk BT", "Century Gothic", "Segoe UI", sans-serif; --amarelo: #ffcf00; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font-family: var(--avant); color: #fff; }

/* palco de 1280 x 720 (13,333 x 7,5 pol a 96 px), escalado para caber na janela */
.tela { position: fixed; inset: 0; display: grid; place-items: center; background: #000; }
.palco { position: relative; width: 1280px; height: 720px; transform-origin: center center; flex: none; }
.slide { position: absolute; inset: 0; overflow: hidden; display: none; }
.slide.atual { display: block; }
.el { position: absolute; }
.el.tx { display: flex; flex-direction: column; white-space: normal; overflow-wrap: break-word; overflow: visible; }
.el.tx p { margin: 0; white-space: pre-wrap; }
/* marcador como no PowerPoint (pptxgenjs): o texto começa 27 pt depois do marcador */
.el.tx p.bl { position: relative; padding-left: 36px; }
.el.tx p.bl::before { content: "•"; position: absolute; left: 2px; }
.el.im img { width: 100%; height: 100%; display: block; }
.el.vd video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.el.lk { display: block; cursor: pointer; z-index: 5; }
.el.lk:hover { outline: 2px solid rgba(255, 207, 0, .55); outline-offset: 2px; border-radius: 6px; }

/* passos (cliques): escondido até entrar; .on = já visível sem animação; .entra = entrando agora */
.el[data-step] { opacity: 0; }
.el[data-step].on { opacity: 1; }
.el[data-step].entra { opacity: 1; animation-duration: .5s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
.el[data-fx="r"].entra { animation-name: sobe; }
.el[data-fx="f"].entra { animation-name: aparece; }
.el[data-fx="w"].entra { animation-name: wipeEsq; animation-timing-function: ease-out; }
.el[data-fx="b"].entra { animation-name: wipeBaixo; animation-timing-function: ease-out; }
.el[data-fx="z"].entra { animation-name: zoom; }
@keyframes sobe { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipeEsq { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipeBaixo { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes zoom { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* Morph: o navegador anima os objetos com o mesmo nome entre um slide e o próximo */
::view-transition-group(*) { animation-duration: .9s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; }
/* divisores de seção: empurra para a esquerda, sem morph */
html.empurra .el[data-morph] { view-transition-name: none !important; }
html.empurra::view-transition-old(root) { animation: .7s cubic-bezier(.4, 0, .2, 1) both saiEsq; }
html.empurra::view-transition-new(root) { animation: .7s cubic-bezier(.4, 0, .2, 1) both entraDir; }
html.empurra.volta::view-transition-old(root) { animation-name: saiDir; }
html.empurra.volta::view-transition-new(root) { animation-name: entraEsq; }
@keyframes saiEsq { to { transform: translateX(-100%); } }
@keyframes entraDir { from { transform: translateX(100%); } }
@keyframes saiDir { to { transform: translateX(100%); } }
@keyframes entraEsq { from { transform: translateX(-100%); } }
html.sem-vt .slide.atual { animation: aparece .35s ease both; }

/* tela de início e avisos */
.comecar { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .78); z-index: 20; padding: 16px; }
.comecar button { display: block; margin: 0 auto; background: var(--amarelo); color: #111; border: 0; border-radius: 999px; padding: 18px 32px; font: 700 20px var(--curva); cursor: pointer; }
.comecar p { color: #b9b6a8; text-align: center; max-width: 560px; line-height: 1.5; font-size: 14px; margin: 16px auto 0; }
.comecar b { color: #fff; }
.selo { position: fixed; right: 12px; bottom: 10px; font: 12px var(--avant); color: #b9b6a8; background: rgba(0, 0, 0, .6); padding: 4px 10px; border-radius: 999px; z-index: 10; opacity: 0; transition: opacity .3s; pointer-events: none; }
body:hover .selo, .selo.visivel { opacity: 1; }
.digitando { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--amarelo); color: #111; font: 700 30px var(--curva); padding: 6px 18px; border-radius: 10px; z-index: 21; }
@media (prefers-reduced-motion: reduce) { .el[data-step].entra { animation-duration: .01s; } ::view-transition-group(*) { animation-duration: .01s; } }
