html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #05011a;
}

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

/* Avalonia's host div holds, in paint order: its canvas, the native-control host (the game
   iframe) and the IME input. Put the canvas on top, make it click-through, and let the hit
   layer's boxes (main.js) decide where Avalonia gets input. */
#out.overlay-mode .avalonia-native-host { z-index: 1; }
#out.overlay-mode .avalonia-canvas { z-index: 2; pointer-events: none; }
#out.overlay-mode .overlay-hit-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#out.overlay-mode .overlay-hit { position: absolute; pointer-events: auto; }

.avalonia-splash {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd23f;
    font: 600 18px system-ui, sans-serif;
    pointer-events: none;
}
.avalonia-splash.splash-close {
    transition: opacity 200ms, display 200ms;
    display: none;
    opacity: 0;
}
