/* custom-loader.css */
:root {
    --loader-bg: #0b0b0d;           /* page background while loading */
    --loader-fg: #ffffff;           /* text color */
    --bar-bg: rgba(255,255,255,0.15);
    --bar-fill: #4ad1ff;            /* progress color */
}

#custom-loader {
    position: fixed;
    inset: 0;
    background: var(--loader-bg);
    display: grid;
    place-items: center;
    z-index: 9999;                  /* above the canvas */
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--loader-fg);
}

#loader-inner {
    width: min(520px, 88vw);
    padding: 28px 24px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    text-align: center;
}

#loader-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* replace with your own image path */
    /*background-image: url("./loader-logo.png");*/
}

#loader-title {
    font-size: 20px;
    font-weight: 600;
    margin: 6px 0 14px;
    letter-spacing: .3px;
}

#loader-bar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: var(--bar-bg);
    overflow: hidden;
}

#loader-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--bar-fill);
    border-radius: 999px;
    transition: width .15s linear; /* smooth-ish */
}

#loader-percent {
    margin-top: 10px;
    font-size: 13px;
    opacity: .85;
}

#loader-tip {
    margin-top: 6px;
    font-size: 12px;
    opacity: .65;
}

@media (max-width: 480px) {
    #loader-inner { padding: 22px 18px; }
    #loader-logo { width: 120px; height: 120px; }
}
