html {
  background: #E0E0E0;
  color-scheme: light;
}

html[data-theme="dark"] {
  background: #2d2d2d;
  color-scheme: dark;
}

body {
  margin: 0;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #E0E0E0;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .18s ease;
}

html[data-theme="dark"] body::before {
  background: #2d2d2d;
}

body.page-booting::before {
  opacity: 1;
}

body.page-ready::before {
  opacity: 0;
}

body.page-leaving::before {
  opacity: .18;
}
