body.spl-loading {
    overflow: hidden;
}

#spl-loader,
#spl-loader * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#spl-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#spl-loader.spl-hide {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.spl-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e2f9f0 0%, #f0eaff 30%, #fce8f4 60%, #e2f9f0 100%);
    background-size: 400% 400%;
    animation: splGradShift 7s ease infinite;
}

@keyframes splGradShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.spl-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.spl-sparkles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.spl-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: splBubbleFloat linear infinite;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

@keyframes splBubbleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    8% { opacity: 0.75; }
    88% { opacity: 0.5; }
    100% { transform: translateY(-110vh) translateX(20px) scale(0.5); opacity: 0; }
}

.spl-scene {
    position: relative;
    z-index: 3;
    width: 220px;
    height: 220px;
    margin-bottom: 28px;
}

.spl-logo-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spl-logo-img {
    position: relative;
    z-index: 4;
    width: clamp(150px, 32vw, 190px);
    height: auto;
    object-fit: contain;
    background: none !important;
    animation: splLogoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 14px 32px rgba(139, 114, 232, 0.22));
}

@keyframes splLogoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.04); }
}

.spl-orbit {
    position: absolute;
    inset: -32px;
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: splOrbit linear infinite;
}

.spl-orbit:nth-child(1) { animation-duration: 2.8s; }
.spl-orbit:nth-child(2) { animation-duration: 4.5s; animation-direction: reverse; transform: rotateX(55deg); }
.spl-orbit:nth-child(3) { animation-duration: 3.6s; transform: rotateX(110deg); }

@keyframes splOrbit {
    from { transform: rotateZ(0deg); }
    to { transform: rotateZ(360deg); }
}

.spl-orbit-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    top: -6px;
    left: calc(50% - 6px);
}

.spl-orbit:nth-child(1) .spl-orbit-dot { background: #c084fc; box-shadow: 0 0 14px 5px rgba(192, 132, 252, 0.7); }
.spl-orbit:nth-child(2) .spl-orbit-dot { background: #f9a8d4; box-shadow: 0 0 14px 5px rgba(249, 168, 212, 0.7); }
.spl-orbit:nth-child(3) .spl-orbit-dot { background: #6ee7b7; box-shadow: 0 0 14px 5px rgba(110, 231, 183, 0.7); }

.spl-logo {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-bottom: 14px;
}

.spl-logo-name {
    display: block;
    font-size: clamp(30px, 7vw, 46px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    background: linear-gradient(130deg, #1a9e72 0%, #9333ea 50%, #ec4899 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: splTextShimmer 3.5s ease-in-out infinite;
}

@keyframes splTextShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.spl-logo-tagline {
    display: block;
    font-size: clamp(10px, 2vw, 13px);
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #9333ea;
    opacity: 0.85;
    margin-top: 7px;
}

.spl-sub {
    position: relative;
    z-index: 3;
    font-size: clamp(12px, 2.5vw, 15px);
    color: #555;
    font-weight: 500;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.6;
    animation: splFadeUp 0.9s ease 0.4s both;
}

@keyframes splFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.spl-sub em {
    font-style: normal;
    font-weight: 700;
    animation: splWordBounce 2.2s ease-in-out infinite;
    display: inline-block;
}

.spl-sub em.c-green { color: #16a34a; animation-delay: 0s; }
.spl-sub em.c-purple { color: #9333ea; animation-delay: 0.3s; }
.spl-sub em.c-pink { color: #ec4899; animation-delay: 0.6s; }

@keyframes splWordBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.spl-bar-wrap {
    position: relative;
    z-index: 3;
    width: clamp(200px, 55vw, 320px);
    height: 8px;
    background: rgba(147, 51, 234, 0.15);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 4px;
}

.spl-bar {
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background: linear-gradient(90deg, #16a34a, #9333ea, #ec4899, #16a34a);
    background-size: 200% 100%;
    animation: splBarGrow 3s cubic-bezier(0.4, 0, 0.2, 1) forwards, splBarFlow 1.4s linear infinite;
}

@keyframes splBarGrow {
    0% { width: 0%; }
    25% { width: 35%; }
    55% { width: 68%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

@keyframes splBarFlow {
    from { background-position: 0% 0%; }
    to { background-position: 200% 0%; }
}

.spl-bar-glow {
    position: absolute;
    top: -5px;
    width: 48px;
    height: 18px;
    border-radius: 100px;
    background: radial-gradient(ellipse, rgba(236, 72, 153, 0.85) 0%, transparent 70%);
    animation: splGlowMove 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

@keyframes splGlowMove {
    0% { left: 0%; }
    25% { left: 31%; }
    55% { left: 64%; }
    80% { left: 81%; }
    100% { left: 95%; }
}

.spl-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    overflow: hidden;
    pointer-events: none;
}

.spl-wave-svg {
    position: absolute;
    bottom: 0;
    width: 200%;
    animation: splWaveDrift 5s linear infinite;
}

@keyframes splWaveDrift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.spl-sparkle {
    position: absolute;
    pointer-events: none;
    animation: splSparklePop ease-in-out both;
}

.spl-sparkle::before,
.spl-sparkle::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 100px;
}

.spl-sparkle::before { width: 2px; height: 14px; top: -7px; left: -1px; }
.spl-sparkle::after { width: 14px; height: 2px; top: -1px; left: -7px; }

@keyframes splSparklePop {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    25% { transform: scale(1) rotate(45deg); opacity: 1; }
    65% { transform: scale(0.8) rotate(90deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

@media (max-width: 480px) {
    .spl-scene { width: 180px; height: 180px; margin-bottom: 22px; }
    .spl-logo-img { width: clamp(130px, 38vw, 160px); }
    .spl-orbit { inset: -24px; }
    .spl-orbit-dot { width: 10px; height: 10px; top: -5px; left: calc(50% - 5px); }
}

@media (prefers-reduced-motion: reduce) {
    #spl-loader { display: none !important; }
}
