/* Loader colors: the app theme's (shared/.../ui/theme/Theme.kt), from the landing page. */
:root {
    --page: #F4E3A1;
    --mark: #14281F;
    --on-mark: #F4E3A1;
    --track: #D9BE63;
    --bar: #A8231B;
}

:root[data-theme="dark"] {
    --page: #24211C;
    --mark: #CFC5AB;
    --on-mark: #24211C;
    --track: #3A352D;
    --bar: #DB8E7C;
}

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

.boot {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 22px;
    height: 100%;
}

.boot-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--mark);
    color: var(--on-mark);
    font: 700 44px/1 "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
    padding-bottom: 8px;
    box-sizing: border-box;
}

.boot-bar {
    position: relative;
    width: 120px;
    height: 3px;
    border-radius: 3px;
    background: var(--track);
    overflow: hidden;
}

.boot-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    border-radius: 3px;
    background: var(--bar);
    animation: boot 1.1s ease-in-out infinite;
}

@keyframes boot {
    from { transform: translateX(-100%); }
    to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
    .boot-bar span { animation: none; width: 100%; opacity: 0.5; }
}
