:root {

    --bg: #F0F2F5;
    --fg: #370f4b;
    --logo: url("img/logo_light.svg");

    --logo-h: 320px;
    --progress-w: 320px;
    --progress-h: 10px;
    --progress-radius: 999px;
    --brand: #370f4b;
    --track: rgba(0, 0, 0, 0.12);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--fg);
}

#splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.5s ease-out;
}
#splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.splash-content img {
    height: 320px;
    width: auto;
}

.loading {
    margin-top: 32px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--fg);
    display: inline-flex;
    align-items: baseline;
    gap: .25ch;
    font-family: 'Inter', sans-serif;
}


.loading .label {
    position: relative;
    z-index: 1;
}

.dots {
    display: inline-block;
    width: 2.5ch;
    text-align: left;
    line-height: 1;
    position: relative;
}

.dots::after {
    content: "";
    animation: dots 2s infinite;
    color: inherit;
}

.splash-content .logo {
    height: 320px;
    width: auto;
    content: var(--logo);
}


.dots-bg { color: var(--bg); }

.dots-fg { color: var(--fg); }

@keyframes dots {
    0%   { content: ""; }
    33%  { content: "."; }
    66%  { content: ".."; }
    100% { content: "..."; }
}

.progress-wrap {
    width: var(--progress-w);
    height: var(--progress-h);
    border-radius: var(--progress-radius);
    background: var(--track);
    overflow: hidden;
    margin-top: 12px;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--brand);
    transition: width .2s ease;
}


@media (prefers-color-scheme: dark) {
    :root {
        --bg: #370f4b;
        --fg: #F5F6F8;
        --brand: #04fe97;
        --logo: url("img/logo_dark.svg");
        --logo-h: 240px;
        --progress-w: min(280px, 80vw);
    }

}
