/* Loading splash; see splash.js. Colours track the app's two themes. */
#myg-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090b;
  opacity: 1;
  transition: opacity 0.22s ease-out;
}
html[data-theme='light'] #myg-splash {
  background: #fafafa;
}
#myg-splash.is-leaving {
  opacity: 0;
  pointer-events: none;
}
.myg-splash-logo {
  display: none;
  width: auto;
  height: auto;
  max-width: min(62vw, 260px);
  max-height: min(34vh, 200px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.myg-splash-logo.is-ready {
  display: block;
  opacity: 1;
  animation: myg-splash-breathe 1.8s ease-in-out infinite;
}
/* The ManageYourGym JPEGs carry a solid background (251 light / 2 dark); the
   light one is within 1 level of the page, the dark one needs lighten to
   melt into #09090b. */
html[data-theme='dark'] .myg-splash-logo.is-default {
  mix-blend-mode: lighten;
}
.myg-splash-pulse {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.16);
  animation: myg-splash-breathe 1.8s ease-in-out infinite;
}
html[data-theme='light'] .myg-splash-pulse {
  background: rgba(9, 9, 11, 0.12);
}
#myg-splash.has-logo .myg-splash-pulse {
  display: none;
}
@keyframes myg-splash-breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.72;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #myg-splash,
  .myg-splash-logo {
    transition: none;
  }
  .myg-splash-logo.is-ready,
  .myg-splash-pulse {
    animation: none;
  }
}
