/* THE LOADING SCREEN: the video, and nothing else.
 *
 * No wordmark, no progress bar, no text of any kind. It had all three
 * once and they sat on top of the video looking like a web page over a
 * trailer — and worse, the game itself came up BEHIND them part-loaded,
 * so you watched a half-built world through a title card. The video is
 * the whole screen now, it holds on its last frame, and it does not
 * budge until the player presses something. See boot.js.
 *
 * This is served in Godot's generated shell (html/head_include in
 * export_presets.cfg) and runs with no engine and none of our fonts. */

html, body, #canvas { background: #000; }

/* While the overlay is up, Godot's own status line and progress bar are
 * hidden outright rather than merely covered. A letterboxed frame or a
 * video that fails to fill would otherwise leak them back onto the
 * screen, which is the exact thing being removed. Undone with the class
 * when the overlay goes. */
body.bb-booting #status { display: none !important; }

#bb-boot {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: #000;
  overflow: hidden;
  transition: opacity .7s ease;
}
#bb-boot.bb-gone { opacity: 0; pointer-events: none; }

/* Fills the screen and is CROPPED rather than letterboxed: black bars
 * around a loading screen read as a broken player. */
#bb-boot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
