html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

@font-face {
    font-family: Inter;
    src: url("composeResources/reworkers_ai.shared.generated.resources/font/inter.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

body {
    background: #000;
}

/* Set by the app once the theme is known: what shows behind the canvas, and native controls. */
body[data-theme="light"] {
    background: #F1F5F9;
    color-scheme: light;
}

body[data-theme="dark"] {
    background: #0B1220;
    color-scheme: dark;
}

.startup-splash {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: #000;
}

.startup-logo {
    width: min(320px, calc(100vw - 64px));
    height: auto;
    animation: startup-entrance 650ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes startup-entrance {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .startup-logo {
        animation: none;
    }
}
