/**
 * Splash de marque — style Uber (logo centré, plein écran, fade-out).
 * Visible à chaque démarrage (froid) passager + chauffeur.
 */
.moto-brand-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: linear-gradient(180deg, #ff5f4d 0%, #c94a8a 48%, #7b39b7 100%);
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

.moto-brand-splash.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.moto-brand-splash[hidden] {
  display: none !important;
}

.moto-brand-splash__logo {
  width: min(42vw, 168px);
  height: auto;
  max-width: 200px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform: scale(0.92);
  opacity: 0.92;
  animation: moto-brand-splash-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes moto-brand-splash-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .moto-brand-splash {
    transition: opacity 0.2s linear;
  }
  .moto-brand-splash__logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
