/* Kirish animatsiyasi — ilova yuklanguncha ko'rinadi, keyin chaqnab yo'qoladi */
#splash { position: fixed; inset: 0; z-index: 200; background: #0A0308; display: grid; place-items: center; overflow: hidden; }
#splash.gone { display: none; }
#splash > * { pointer-events: none; }

.sp-bg { position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(179, 20, 140, .42) 0, rgba(90, 8, 70, .25) 28vmin, transparent 60vmin),
    radial-gradient(120vmax 80vmax at 50% 120%, rgba(70, 6, 55, .6), transparent 60%); }

.sp-rays { position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 140, 215, .10) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 18vmin, transparent 48vmin);
          mask: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 18vmin, transparent 48vmin);
  animation: sp-spin 40s linear infinite, sp-fade 1.4s .2s both; }

.sp-wave { position: absolute; left: 50%; top: 50%; width: 30vmin; height: 30vmin; translate: -50% -50%; border-radius: 50%;
  border: 2px solid rgba(255, 150, 220, .55); box-shadow: 0 0 24px rgba(224, 75, 184, .5), inset 0 0 24px rgba(224, 75, 184, .3);
  opacity: 0; animation: sp-wave 3.6s cubic-bezier(.2, .7, .3, 1) infinite; }
.sp-wave.w2 { animation-delay: 1.2s; } .sp-wave.w3 { animation-delay: 2.4s; }
@keyframes sp-wave { 0% { transform: scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }

.sp-orbits { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 72vmin; height: 72vmin; perspective: 900px; animation: sp-fade 1s .6s both; }
.sp-orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 170, 225, .28); transform-style: preserve-3d; }
.sp-orbit.o1 { transform: rotateX(72deg) rotateY(-14deg); animation: sp-o1 7s linear infinite; }
.sp-orbit.o2 { inset: 9%; transform: rotateX(68deg) rotateY(38deg); border-color: rgba(255, 170, 225, .18); animation: sp-o2 10s linear infinite reverse; }
.sp-orbit.o3 { inset: -12%; transform: rotateX(78deg) rotateY(-48deg); border-style: dashed; border-color: rgba(255, 170, 225, .14); animation: sp-o3 16s linear infinite; }
.sp-orbit i { position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px #fff, 0 0 26px #FF6CC9, 0 0 46px #E04BB8; }
.sp-orbit.o2 i { width: 8px; height: 8px; top: -4px; margin-left: -4px; background: #FFD6F1; }
.sp-orbit.o3 i { width: 6px; height: 6px; top: -3px; margin-left: -3px; }
@keyframes sp-o1 { to { transform: rotateX(72deg) rotateY(-14deg) rotateZ(360deg); } }
@keyframes sp-o2 { to { transform: rotateX(68deg) rotateY(38deg) rotateZ(360deg); } }
@keyframes sp-o3 { to { transform: rotateX(78deg) rotateY(-48deg) rotateZ(360deg); } }

.sp-core { position: relative; width: 44vmin; height: 44vmin; max-width: 300px; max-height: 300px; z-index: 3; }
.sp-load { position: absolute; inset: -16%; width: 132%; height: 132%; rotate: -90deg; overflow: visible; filter: drop-shadow(0 0 6px rgba(255, 108, 201, .8)); }
.sp-load circle { fill: none; stroke-width: 2.2; }
.sp-load .track { stroke: rgba(255, 255, 255, .08); }
.sp-load .fill { stroke: url(#splg); stroke-linecap: round; stroke-dasharray: 301.6; stroke-dashoffset: 301.6; transition: stroke-dashoffset .3s ease; }
.sp-star { position: absolute; inset: -8%; background: url(logo/star.svg) center/contain no-repeat;
  filter: drop-shadow(0 20px 40px rgba(179, 20, 140, .75));
  animation: sp-in 1.3s cubic-bezier(.2, 1.4, .4, 1) both, sp-float 4s 1.3s ease-in-out infinite; }
@keyframes sp-in { 0% { transform: scale(0) rotate(-200deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes sp-float { 50% { transform: translateY(-3%) rotate(3deg) scale(1.03); filter: drop-shadow(0 20px 50px rgba(224, 75, 184, .95)) brightness(1.15); } }

#sp-sparks { position: absolute; inset: 0; }
.sp-spark { position: absolute; bottom: -20px; border-radius: 50%; background: radial-gradient(circle, #fff 0, #FF9AD9 40%, transparent 70%);
  animation: sp-rise var(--d) linear infinite; animation-delay: var(--delay); opacity: 0; }
@keyframes sp-rise { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: var(--o); } 100% { transform: translate(var(--x), -110vh) scale(1.2); opacity: 0; } }
.sp-tw { position: absolute; opacity: 0; animation: sp-tw var(--d) ease-in-out infinite; animation-delay: var(--delay); }
.sp-tw::before { content: ""; position: absolute; inset: 0; background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px #FF9AD9); }
@keyframes sp-tw { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.sp-flash { position: absolute; inset: 0; opacity: 0; z-index: 9;
  background: radial-gradient(circle at 50% 50%, #fff 0, #FFB3E6 18vmin, rgba(179, 20, 140, .9) 50vmin, #0A0308 100vmax); }
#splash.out .sp-star { animation: sp-boom .6s cubic-bezier(.5, 0, .2, 1) forwards; }
#splash.out .sp-flash { animation: sp-flash .9s .15s ease-out forwards; }
#splash.out { animation: sp-hide .45s .85s ease forwards; }
@keyframes sp-boom { to { transform: scale(2.4) rotate(40deg); opacity: 0; } }
@keyframes sp-flash { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: .9; } }
@keyframes sp-hide { to { opacity: 0; visibility: hidden; } }

@keyframes sp-spin { to { rotate: 360deg; } }
@keyframes sp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #splash *, #splash *::before { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }
