/*
 * Battle view state guard
 * The setup panel and battle stage are normally toggled by renderSetupPanel().
 * If a scenario-specific render path is interrupted after game.started flips true,
 * the topbar can enter battle mode while the prebattle screen remains visible.
 * Keep the page-level view state aligned with .app.battle-started as a resilient fallback.
 */

.app.battle-started .prebattle-stack,
.app.battle-started #setupPanel,
.app.battle-started #registryPanel {
  display: none !important;
}

.app.battle-started #battleStage {
  display: grid !important;
}

.app:not(.battle-started) #battleStage {
  display: none !important;
}
