/* A page entered under Genshin's loading screen (core/ui/genshin/loading_screen.js arriving): white from the first paint, #gwait the screen's canvas, until the page's first full frame */
#gwait { display: none; }
html.from-title #gwait, #gwait.up { display: block; position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 9000; background: #fff; pointer-events: none; }
html.from-title, html.from-title body { background: #fff; }
/* the held face (loading_screen.js leaving(replace, true): a World page from the story): the old page's picture (--held, pages/white.js) from the first paint, then also on #gwait under the
   waiting mark (heldMark), over the page until its first frame, both fading out then (arriving's end); no white */
html.from-story, html.from-story #gwait { background: #000 var(--held, none) center / 100% 100% no-repeat; } html.from-story body { background: transparent; }
#gwait.held { display: block; position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 9000; pointer-events: none; }
/* the dark screen (white.js: class dark unless the key DAY; loading_screen.js GROUND): Genshin's dark loading ground, the default */
html.dark.from-title, html.dark.from-title body { background: #000; }
html.dark.from-title #gwait, html.dark #gwait.up { background: #000; }
