/* ThunderFlix — intro cinematográfica e passagem para a plataforma */
#intro.tfIntro{display:block;background:#000;transition:background-color .9s ease,opacity .55s ease,visibility .55s ease}
#intro.tfIntro.tfClear{background-color:transparent}
.tfIntroVideo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:transparent;transition:opacity .12s linear}
.tfIntroVideo::-webkit-media-controls,
.tfIntroVideo::-webkit-media-controls-overlay-play-button,
.tfIntroVideo::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none;opacity:0!important}
@media (hover:none){body.tfIntroActive{overflow:hidden}}
.tfIntroBolt{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.tfIntroEmblem{position:absolute;left:0;top:0;transform-origin:0 0;opacity:0;pointer-events:none;will-change:transform,opacity;max-width:none}

/* enquanto a intro corre, a plataforma espera "lá atrás" */
body.tfIntroActive #topbar .brand-bolt{opacity:0}
body.tfIntroActive #topbar .brand-name,
body.tfIntroActive #topbar nav,
body.tfIntroActive #topbar .actions,
body.tfIntroActive #nfSubnav,
body.tfIntroActive main{opacity:0;transform:perspective(1200px) translate3d(0,18px,-160px) scale(.94);filter:blur(7px);transform-origin:50% 0}
body.tfIntroActive #topbar .brand-name{transform:translate3d(-14px,0,0);filter:none}
body.tfIntroActive.tfIntroLite main,
body.tfIntroActive.tfIntroLite #topbar nav,
body.tfIntroActive.tfIntroLite #topbar .actions,
body.tfIntroActive.tfIntroLite #nfSubnav{filter:none}

/* chegada do raio: o mini-logo acende */
body.tfIntroActive.tfIconOn #topbar .brand-bolt{opacity:1;animation:tfIconHit .9s ease-out}
@keyframes tfIconHit{
  0%{filter:brightness(2.6) drop-shadow(0 0 14px rgba(140,220,255,.95));transform:scale(1.25)}
  100%{filter:none;transform:scale(1)}
}

/* a plataforma vem de trás para a frente */
body.tfReveal #topbar .brand-name,
body.tfReveal #topbar nav,
body.tfReveal #topbar .actions,
body.tfReveal #nfSubnav,
body.tfReveal main{opacity:1;transform:none;filter:none;
  transition:opacity .75s ease,transform 1.05s cubic-bezier(.16,.84,.24,1),filter .85s ease}
body.tfReveal #topbar .brand-name{transition-delay:.05s}
body.tfReveal #topbar nav{transition-delay:.14s}
body.tfReveal #topbar .actions{transition-delay:.22s}
body.tfReveal #nfSubnav{transition-delay:.24s}
body.tfReveal main{transition-delay:.18s}

@media (prefers-reduced-motion:reduce){
  body.tfReveal main,body.tfReveal #topbar nav,body.tfReveal #topbar .actions{transition-duration:.01ms}
}

/* a intro fica por cima de tudo (login e perfis incluídos) */
#intro.tfIntro{z-index:2147483000}
/* outros scripts escondem #intro com .done ao fim de ~4 s; enquanto a intro corre, continua visível */
#intro.tfIntro.tfRunning.done{opacity:1!important;visibility:visible!important;pointer-events:auto!important}

/* mini-logo no canto da página de perfis (mesmo sítio da marca da barra de topo) */
#tfCornerBrand{position:fixed;inset:0;z-index:11001;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s}
#tfCornerBrand.tfCornerVisible.tfCornerOn{opacity:1;visibility:visible}
#tfCornerBrand .tfCornerBolt{position:absolute;object-fit:contain}
#tfCornerBrand .tfCornerName{position:absolute;white-space:nowrap;margin:0}
#tfCornerBrand.tfCornerHit .tfCornerBolt{animation:tfIconHit .9s ease-out}
.tfCornerBrandOn .tfProfilesKicker::before{display:none!important}

/* a página de perfis também vem de trás para a frente */
body.tfIntroActive .tfProfilesOverlay .tfProfilesFrame,
body.tfIntroActive .tfProfilesOverlay .tfpBg{opacity:0;transform:perspective(1200px) translate3d(0,18px,-160px) scale(.94);filter:blur(7px)}
body.tfIntroActive.tfIntroLite .tfProfilesOverlay .tfProfilesFrame,
body.tfIntroActive.tfIntroLite .tfProfilesOverlay .tfpBg{filter:none}
body.tfReveal .tfProfilesOverlay .tfProfilesFrame,
body.tfReveal .tfProfilesOverlay .tfpBg{opacity:1;transform:none;filter:none;
  transition:opacity .75s ease,transform 1.05s cubic-bezier(.16,.84,.24,1),filter .85s ease}
body.tfReveal .tfProfilesOverlay .tfProfilesFrame{transition-delay:.16s}
