#metricocean-loader {
    position: fixed;
    inset: 0;
    background: transparent; /* важливо — без чорного фону */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    font-family: monospace;
    overflow: hidden;
    opacity: 0; /* невидимий спочатку */
    transition: background 0.3s ease, opacity 0.3s ease;
}

#metricocean-loader.active {
    background: #fff;
    opacity: 1;
}

#metricocean-text {
    font-size: 42px;
    color: oklch(62.3% .214 259.815);
    letter-spacing: 3px;
    display: flex;
    gap: 4px;
}

.m-char {
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.m-char.visible {
    opacity: 1;
    filter: blur(0px);
}

#metricocean-loader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

[data-theme-mode=dark] {
    #metricocean-loader.active {
        background: #000;
        opacity: 1;
    }

    #metricocean-text {
        color: #888;
    }
}