body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111827;
    color: #F9FAFB;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keep the splash screen logo sizing the same */
body fuse-splash-screen img {
    width: 120px;
    max-width: 120px;
}

/* The spinner container */
body fuse-splash-screen .spinner {
    display: flex;
    align-items: flex-end; /* align bars at the bottom */
    justify-content: space-between;
    margin-top: 40px;
    /* Adjust width to fit wave bars; 3 bars with small gaps */
    width: 56px;
}

/* Each bar in the wave */
body fuse-splash-screen .spinner > div {
    width: 5px;
    height: 24px;
    margin: 0 2px; /* small gap between bars */
    background-color: #1E96F7;
    border-radius: 2px;
    display: inline-block;

    /* The wave animation scales the bar in the Y-direction */
    animation: fuse-wave 1.2s infinite ease-in-out;
    transform-origin: bottom center; /* pivot from the bottom edge */
}

/* Stagger the animation delays for each bar */
body fuse-splash-screen .spinner .bounce1 {
    animation-delay: -0.24s;
}
body fuse-splash-screen .spinner .bounce2 {
    animation-delay: -0.12s;
}
body fuse-splash-screen .spinner .bounce3 {
    animation-delay: 0s;
}

/* The wave keyframes:
   - At 0%, 40%, 100% => scaleY(0.4) (short bar)
   - At 20% => scaleY(1.0) (full height)
*/
@keyframes fuse-wave {
    0%, 40%, 100% {
        transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1.0);
    }
}

/* The rest remains unchanged */
body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}
