/* MR. X — Page transition splash */

.mrx-splash {
  --mrx-splash-bg: #000;
  --mrx-splash-fg: #fffef7;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  background: var(--mrx-splash-bg);
  color: var(--mrx-splash-fg);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.mrx-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mrx-splash__logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  animation: mrx-splash-breathe 1.4s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes mrx-splash-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mrx-splash {
    transition-duration: 0.01ms;
  }
  .mrx-splash__logo {
    animation: none;
    opacity: 1;
  }
}
