/* Reset — let Compose own the entire viewport */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #1a1a2e; /* dark fallback while WASM loads */
}

/* Loading spinner — centred, fades out once the Compose canvas covers it */
#loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;   /* don't intercept clicks once canvas is on top */
    z-index: -1;            /* sits behind the Compose canvas */
}

/* Compose mounts a <canvas> directly into <body> — make it fill everything */
body > canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
