@font-face {
    font-family: "Bookido Lato";
    src: url("assets/Lato-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Bookido Lato";
    src: url("assets/Lato-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Bookido Lato";
    src: url("assets/Lato-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bookido-background: #efe0ff;
    --bookido-card-background: #ffffff;
    --bookido-text: #202339;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bookido-background: #150527;
        --bookido-card-background: #32293b;
        --bookido-text: #ffffff;
    }
}

html, body, #bookido-app {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: var(--bookido-background);
}

#bookido-loading {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bookido-background);
}

.bookido-spinner {
    width: 48px;
    height: 48px;
    animation: bookido-spinner-rotate 1.4s linear infinite;
}

.bookido-spinner circle {
    fill: none;
    stroke: #8a5eb8;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 80 200;
    stroke-dashoffset: 0;
}

.bookido-brand {
    position: absolute;
    bottom: max(24px, env(safe-area-inset-bottom));
    display: block;
    width: 156px;
    height: 60px;
    object-fit: contain;
}

@keyframes bookido-spinner-rotate {
    100% { transform: rotate(360deg); }
}
