/* Boot splash — keep static; infinite CSS anims burn GPU during load */

#kaahs-app-splash {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
    color: #0f172a;
    margin: 0;
    padding: 0;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}
#kaahs-app-splash.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#kaahs-app-splash .splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    min-width: 10rem;
}
#kaahs-app-splash .splash-logo {
    width: 100px;
    height: 100px;
    position: relative;
}
#kaahs-app-splash .splash-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
#kaahs-app-splash .splash-pct {
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    color: #64748b;
}
#kaahs-app-splash .splash-bar {
    width: 168px;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
}
#kaahs-app-splash .splash-bar > span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: #111827;
}

html[data-theme="dark"] #kaahs-app-splash {
    background: #0f1115;
    color: #e5e7eb;
}
html[data-theme="dark"] #kaahs-app-splash .splash-logo img {
    filter: invert(1);
}
html[data-theme="dark"] #kaahs-app-splash .splash-pct { color: #9ca3af; }
html[data-theme="dark"] #kaahs-app-splash .splash-bar { background: #2d323c; }
html[data-theme="dark"] #kaahs-app-splash .splash-bar > span {
    background: #f9fafb;
}

html.kaahs-booting {
    background: #f7f8fa;
}
html.kaahs-booting[data-theme="dark"] {
    background: #0f1115;
}
html.kaahs-booting body > *:not(#kaahs-app-splash) {
    visibility: hidden !important;
}
