/* =============================================================================
   render-failure.css - Map render failure overlay
   Shown by src/pixi/renderWatchdog.js when the render loop is dead (repeated
   frame exceptions or an unrestored WebGL context loss). Static markup lives
   in game.html (#map-render-failure) so it works even when rendering is broken.
   The markup mirrors ModalShell (.ms-shell/.ms-panel) so it matches the shared
   modal design; this file only adds the hidden-by-default state and z-index.
   ============================================================================= */

/* The authoritative closed state is the `hidden` attribute in game.html plus
   the .ms-shell[hidden] guard in modal-system.css - this stylesheet loads
   async and cannot be trusted to have applied. The :not() form keeps a higher
   specificity than .ms-shell's display:flex regardless of cascade order. */
.map-render-failure:not(.map-render-failure--open) {
    display: none;
}

.map-render-failure {
    /* Above every panel - the map is dead, nothing else is actionable */
    z-index: var(--z-system-popup);
}

.map-render-failure.map-render-failure--open {
    display: flex;
}
