@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-client {
    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;
}

.bookido-camera-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    background: #000;
    touch-action: none;
}

.bookido-camera-preview {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
}

.bookido-camera-controls {
    position: absolute;
    right: 0;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.bookido-camera-cancel,
.bookido-camera-shutter {
    border-radius: 50%;
}

.bookido-camera-cancel {
    width: 52px;
    height: 52px;
    border: 0;
    color: #fff;
    background: rgb(0 0 0 / 55%);
    font-size: 34px;
    line-height: 1;
}

.bookido-camera-shutter {
    width: 76px;
    height: 76px;
    border: 5px solid #fff;
    background: rgb(255 255 255 / 30%);
    box-shadow: 0 0 0 2px rgb(0 0 0 / 25%);
}

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