html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #F6F7F1;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#webApp {
    position: fixed;
    inset: 0;
}

/* Shown while the Wasm bundle downloads: plain #FAFAFA (the splash video's first frame, as on Android and iOS), no logo,
   so it flows straight into the video. The Compose canvas covers it once the app starts. */
#boot-splash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
    padding: 16px;
    text-align: center;
    background: #FAFAFA;
}

#boot-unsupported {
    max-width: 360px;
    font-size: 14px;
    color: #6B7569;
}

/* Laptops / desktops: the loader matches the wide splash (green gradient with the logo), no phone-sized look. */
@media (min-width: 900px) {
    #boot-splash {
        background:
            url("logo.webp") center / 160px 160px no-repeat,
            linear-gradient(135deg, #0D4A26, #1B7A3E);
    }
}

/* Dark mode page; the boot loader stays #FAFAFA to match the (light) splash video. */
@media (prefers-color-scheme: dark) {
    html, body { background: #0E1410; }
}
