/* Tela de abertura do app (já logado): logo + "Meu Desempenho". Modelo em js/layout.js (SPLASH_MODELO). */
.splash{display:none}
html.com-splash .splash{display:flex}
.splash{position:fixed;inset:0;z-index:200;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;text-align:center;background:var(--bg,#F4F5F7);color:var(--ink,#14171C)}
.sp-logo{position:relative;width:104px;height:104px;display:grid;place-items:center}
.sp-logo img{width:88px;height:88px;border-radius:22px;box-shadow:0 12px 30px rgba(2,33,61,.25)}
.sp-anel{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);display:none}
.sp-anel circle{fill:none;stroke-width:4;stroke-linecap:round}
.sp-txt{display:flex;flex-direction:column;gap:4px;align-items:center}
.sp-txt b{white-space:nowrap;font-size:27px;font-weight:800;letter-spacing:-.01em;line-height:1.15}
.sp-txt span{font-size:14px;font-weight:600;color:var(--mut,#5B6782);letter-spacing:.02em}
.sp-barra{position:absolute;left:50%;bottom:calc(64px + env(safe-area-inset-bottom));width:120px;height:4px;margin-left:-60px;border-radius:99px;background:var(--soft,#E8ECF2);overflow:hidden}
.sp-barra::after{content:"";position:absolute;inset:0;width:40%;border-radius:99px;background:var(--accent,#2457D6)}
html.splash-saindo .splash{opacity:0;transform:scale(1.04);transition:opacity .32s ease,transform .32s ease;pointer-events:none}

/* A · Clássico: fundo do tema, logo com sombra, barra de carregamento */
html[data-splash=a] .splash .sp-barra{display:block}

/* B · Gcom: fundo azul da marca, anel que se desenha em volta da logo (como o anel da nota) */
html[data-splash=b] .splash{background:#02213D;color:#fff;overflow:hidden}
/* o degradê entra por cima do azul liso: no primeiro instante a tela é igual à do sistema (Android) */
html[data-splash=b] .splash::before{content:"";position:absolute;inset:0;background:linear-gradient(160deg,#02213D 0%,#0B3A63 58%,#1F4FD1 100%);z-index:-1}
html[data-splash=b] .splash>*{position:relative}
html[data-splash=b] .splash .sp-barra{position:absolute}
html[data-splash=b] .splash .sp-anel{display:block}
html[data-splash=b] .splash .sp-anel .fundo{stroke:rgba(255,255,255,.14)}
html[data-splash=b] .splash .sp-anel .traco{stroke:#7FE3D6;stroke-dasharray:302;stroke-dashoffset:302}
html[data-splash=b] .splash .sp-logo{width:132px;height:132px}
html[data-splash=b] .splash .sp-logo img{width:92px;height:92px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
html[data-splash=b] .splash .sp-txt span{color:rgba(255,255,255,.72)}
html[data-splash=b] .splash .sp-barra{display:none}

/* C · Assinatura: logo e nome lado a lado, nome surge da esquerda e um traço cresce embaixo */
html[data-splash=c] .splash{flex-direction:row;gap:14px;background:var(--card,#fff)}
html[data-splash=c] .splash .sp-logo{width:60px;height:60px}
html[data-splash=c] .splash .sp-logo img{width:60px;height:60px;border-radius:15px;box-shadow:0 8px 20px rgba(2,33,61,.2)}
html[data-splash=c] .splash .sp-txt{align-items:flex-start;text-align:left;position:relative;padding-bottom:10px}
html[data-splash=c] .splash .sp-txt b{font-size:22px}
html[data-splash=c] .splash .sp-txt::after{content:"";position:absolute;left:0;bottom:0;height:3px;width:100%;border-radius:99px;background:var(--accent,#2457D6);transform-origin:0 50%;transform:scaleX(0)}
html[data-splash=c] .splash .sp-barra{display:none}

@media (prefers-reduced-motion:no-preference){
  html[data-splash=a] .splash .sp-logo img{animation:sp-surge .6s cubic-bezier(.2,.7,.2,1) both}
  html[data-splash=a] .splash .sp-txt{animation:sp-sobe .55s .18s cubic-bezier(.2,.7,.2,1) both}
  html[data-splash=a] .splash .sp-barra::after{animation:sp-carrega 1.1s .3s ease-in-out infinite}
  /* começa do tamanho da logo da tela do sistema (Android) e encolhe até o lugar: a troca entre as duas telas fica contínua */
  html[data-splash=b] .splash .sp-logo img{animation:sp-encolhe .7s cubic-bezier(.2,.7,.2,1) both}
  html[data-splash=b] .splash::before{animation:sp-funde .9s .15s ease both}
  html[data-splash=b] .splash .sp-anel .traco{animation:sp-anel 1.1s .25s cubic-bezier(.4,0,.2,1) forwards}
  html[data-splash=b] .splash .sp-txt{animation:sp-sobe .55s .45s cubic-bezier(.2,.7,.2,1) both}
  html[data-splash=c] .splash .sp-logo img{animation:sp-desliza .55s cubic-bezier(.2,.7,.2,1) both}
  html[data-splash=c] .splash .sp-txt{animation:sp-revela .6s .2s cubic-bezier(.2,.7,.2,1) both}
  html[data-splash=c] .splash .sp-txt::after{animation:sp-traco .6s .65s cubic-bezier(.2,.7,.2,1) forwards}
}
@media (prefers-reduced-motion:reduce){html[data-splash=b] .splash .sp-anel .traco{stroke-dashoffset:60}html[data-splash=c] .splash .sp-txt::after{transform:none}}
@keyframes sp-encolhe{from{transform:translateY(42px) scale(2.3);box-shadow:none}to{transform:none}}
@keyframes sp-funde{from{opacity:0}to{opacity:1}}
@keyframes sp-surge{from{opacity:0;transform:scale(.82)}to{opacity:1;transform:none}}
@keyframes sp-sobe{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes sp-carrega{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
@keyframes sp-anel{to{stroke-dashoffset:60}}
@keyframes sp-desliza{from{opacity:0;transform:translateX(-24px) rotate(-8deg)}to{opacity:1;transform:none}}
@keyframes sp-revela{from{opacity:0;clip-path:inset(0 100% 0 0);transform:translateX(-8px)}to{opacity:1;clip-path:inset(0 0 0 0);transform:none}}
@keyframes sp-traco{to{transform:scaleX(1)}}
