/*
 * Start splash (design system «Serelle», component «Logo-Animation», variant «Auftritt»).
 * Loaded from index.html right after the design-system snapshot, so every value here is a token.
 * `brand-surface` stays the same Rosé in light and dark mode («damit Splash und App-Icon gleich
 * bleiben»); on it goes the white variant of the self-animating logo. See splash.js for timing.
 */
.serelle-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--ds-component-logo-brand-container);
  transition: opacity var(--ds-semantic-motion-duration-medium) var(--ds-semantic-motion-easing-exit);
}

.serelle-splash img {
  width: auto;
  /* Viewport-relative only: `--xsdk-*` spacing arrives later with styles.css, which made the logo
     jump in size mid-animation. */
  height: min(40vh, 60vw);
}

.serelle-splash img {
  transition: opacity var(--ds-semantic-motion-duration-medium) var(--ds-semantic-motion-easing-exit);
}

.serelle-splash--logo-out img {
  opacity: 0;
}

.serelle-splash--leaving {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .serelle-splash,
  .serelle-splash img {
    transition: none;
  }
}
