/* Match the app column before and after the lobby mounts. */
html[data-dc88-loading]:not(.boss-admin-entry),
html[data-dc88-loading]:not(.boss-admin-entry) > body:not(.admin-mode) {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

html[data-dc88-loading]:not(.boss-admin-entry):not(.public-ice) > body:not(.admin-mode) {
  background: var(--aqua-soft, #c8f0f8) !important;
}

html[data-dc88-loading]:not(.boss-admin-entry) > body > :not(#app, script, style, link) {
  display: none !important;
}

html[data-dc88-loading]:not(.boss-admin-entry) #app > .dc88-loading-splash,
html[data-dc88-loading]:not(.boss-admin-entry) #app > .dc88-startup-cover > .dc88-loading-splash {
  display: block;
  width: var(--ref-width);
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background-color: var(--aqua-base, var(--dc88-surface, #c8f0f8));
  background-image: var(--dc88-loading-background-image, none), var(--aqua-main, none);
  background-position: center;
  background-size: contain, 100% 100%;
  background-repeat: no-repeat;
}

/* Paint Ice on the actual scrolling column as well, so the lower rail
   cannot uncover the dark canvas if Safari redraws its fixed layers late. */
html.native-aqua.public-light.public-ice body.aquamarine:not(.admin-mode) #app > .shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: #aef0f8 url("/theme/dc88-ice-5ce977d2033a.png") center top / 100% 100vh no-repeat !important;
}

@supports (height: 100svh) {
  html.native-aqua.public-light.public-ice body.aquamarine:not(.admin-mode) #app > .shell {
    background-size: 100% 100svh !important;
  }
}
