/* Shell + color-scheme before React — prevents white OS status bar flash. */
html {
  color-scheme: light;
  background: #ffffff;
}
html, body {
  margin: 0;
  background: #ffffff;
}
html.dark {
  color-scheme: dark;
  background: #0b0e11;
}
html.dark, html.dark body {
  background: #0b0e11;
}
html.oled, html.theme-oled {
  color-scheme: dark;
  background: #000000;
}
html.oled, html.oled body,
html.theme-oled, html.theme-oled body {
  background: #000000;
}
/* Outside #root so React mount does not tear it down into a second loader. */
#wev-initial-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #71717a;
  transition: opacity 160ms ease;
}
html.dark #wev-initial-splash {
  background: #0b0e11;
  color: #a1a1aa;
}
html.oled #wev-initial-splash,
html.theme-oled #wev-initial-splash {
  background: #000000;
  color: #a1a1aa;
}
/* Installed PWA: Chrome already drew its launch splash (manifest icon-512 on
   #0b0e11, ~192dp centered). Mirror it exactly so the hand-off is seamless
   instead of a second, differently styled W. Media query = no JS timing. */
html.is-standalone #wev-initial-splash {
  background: #000000 !important;
  padding: 0 !important;
}
html.is-standalone #wev-initial-splash img {
  content: url('/icon-512.png');
  width: 192px;
  height: 192px;
}
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  #wev-initial-splash {
    background: #000000 !important;
    padding: 0 !important;
  }
  #wev-initial-splash img {
    content: url('/icon-512.png');
    width: 192px !important;
    height: 192px !important;
  }
}
#wev-initial-splash img {
  width: 8rem;
  height: auto;
  object-fit: contain;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  -webkit-user-drag: none;
}
#wev-initial-splash p {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}
