/* =====================================================================
   DOVYR Splash 1.0 — abertura do app
   Telas de mercado (gráficos de velas), logo desenhada letra a letra, "TRADING OS" fino e uma
   barra de carregamento ligada ao carregamento real do app.
   Carregado no <head>: aparece antes de qualquer outra coisa.
   ===================================================================== */
html, body { background: #07090b; }
.dvsp { position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; background: #050607; color: #f2f0e9; pointer-events: auto; cursor: progress; -webkit-font-smoothing: antialiased; contain: strict; }
.dvsp-photo { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; object-position: 70% 50%; opacity: 0; transform: scale(1.14); filter: saturate(.95) brightness(.86); will-change: transform, opacity; }
.dvsp-photo.in { animation: dvsp-photo 3.6s cubic-bezier(.22, 1, .36, 1) forwards; }
.dvsp-shade { position: absolute; inset: 0; background:
  radial-gradient(60% 46% at 50% 47%, rgba(5, 6, 7, .78), rgba(5, 6, 7, .36) 60%, rgba(5, 6, 7, 0) 100%),
  linear-gradient(180deg, rgba(5, 6, 7, .72) 0%, rgba(5, 6, 7, .18) 34%, rgba(5, 6, 7, .2) 62%, rgba(5, 6, 7, .9) 100%); }
.dvsp-grain { position: absolute; inset: 0; opacity: .06; background-image: radial-gradient(rgba(255, 255, 255, .5) .5px, transparent .6px); background-size: 3px 3px; mix-blend-mode: overlay; pointer-events: none; }
.dvsp-center { position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; width: min(560px, 74vw); transform: translate(-50%, -54%); will-change: transform, opacity; }
.dvsp-logo { display: block; width: 100%; height: auto; overflow: visible; }
.dvsp-logo .l { fill: #f2f0e9; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: translate3d(0, 34%, 0) scale(.94); will-change: transform, opacity; animation: dvsp-letter 1.05s cubic-bezier(.16, 1, .3, 1) forwards; }
.dvsp-logo .l:nth-of-type(1) { animation-delay: .32s; }
.dvsp-logo .l:nth-of-type(2) { animation-delay: .4s; }
.dvsp-logo .l:nth-of-type(3) { animation-delay: .48s; }
.dvsp-logo .l:nth-of-type(4) { animation-delay: .56s; }
.dvsp-logo .l:nth-of-type(5) { animation-delay: .64s; }
.dvsp-shine { transform: translate3d(-400px, 0, 0); animation: dvsp-shine 1.5s cubic-bezier(.45, 0, .25, 1) 1.25s forwards; }
.dvsp-sub { margin: 30px 0 0; padding-left: .62em; font: 300 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Inter, sans-serif; letter-spacing: .62em; color: rgba(242, 240, 233, .86); opacity: 0; animation: dvsp-sub 1.2s cubic-bezier(.22, 1, .36, 1) 1.05s forwards; white-space: nowrap; }
.dvsp-bar { position: relative; width: 172px; height: 3px; margin-top: 46px; overflow: hidden; border-radius: 999px; background: rgba(242, 240, 233, .16); opacity: 0; animation: dvsp-fade .7s ease-out 1.2s forwards; }
.dvsp-bar i { position: absolute; inset: 0; border-radius: inherit; background: #f2f0e9; transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 0 12px rgba(255, 236, 205, .45); }

/* saída: o conteúdo cresce levemente e some, a foto acompanha */
.dvsp.out { pointer-events: none; animation: dvsp-out .7s cubic-bezier(.4, 0, .2, 1) forwards; }
.dvsp.out .dvsp-center { animation: dvsp-center-out .7s cubic-bezier(.4, 0, .2, 1) forwards; }
.dvsp.out .dvsp-photo { animation: dvsp-photo-out .8s cubic-bezier(.4, 0, .2, 1) forwards; }

@keyframes dvsp-photo { from { opacity: 0; transform: scale(1.14); } 35% { opacity: 1; } to { opacity: 1; transform: scale(1.04); } }
@keyframes dvsp-letter { from { opacity: 0; transform: translate3d(0, 34%, 0) scale(.94); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes dvsp-shine { from { transform: translate3d(-400px, 0, 0); } to { transform: translate3d(1300px, 0, 0); } }
@keyframes dvsp-sub { from { opacity: 0; letter-spacing: .95em; padding-left: .95em; } to { opacity: 1; letter-spacing: .62em; padding-left: .62em; } }
@keyframes dvsp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dvsp-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes dvsp-center-out { from { opacity: 1; transform: translate(-50%, -54%); } to { opacity: 0; transform: translate(-50%, -54%) scale(1.06); } }
@keyframes dvsp-photo-out { from { opacity: 1; transform: scale(1.04); } to { opacity: 0; transform: scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  .dvsp-photo, .dvsp-photo.in { animation: none; opacity: 1; transform: none; }
  .dvsp-logo .l, .dvsp-sub, .dvsp-bar,   .dvsp-shine { display: none; }
  .dvsp.out, .dvsp.out .dvsp-center, .dvsp.out .dvsp-photo { animation: dvsp-out .3s ease-out forwards; }
}
