/* Plopp. – sanftes Intro: Dunkler Nebel wird kontinuierlich klar.
   WICHTIG: blur() nicht animieren. Safari und manche mobile GPUs
   rendern sich verändernde Backdrop-Filter in sichtbaren Sprüngen.
   Stattdessen: statisch weichgezeichnete Ebene, deren Opazität
   kontinuierlich über die GPU ausgeblendet wird. */

@keyframes plopp-fog-clear {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes plopp-mist-clear {
  from { opacity: .68; }
  to   { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    user-select: none;
    will-change: opacity;
    transform: translate3d(0, 0, 0);
  }

  body::before {
    z-index: 10000;
    background: rgba(32, 29, 34, .76);
    /* Blur bleibt während der ganzen Animation gleich – keine Ruckler
       durch ständiges Neuberechnen des Blur-Radius. */
    -webkit-backdrop-filter: blur(25px) brightness(.73);
    backdrop-filter: blur(25px) brightness(.73);
    animation: plopp-fog-clear 1850ms cubic-bezier(.33, 0, .16, 1) both;
  }

  body::after {
    z-index: 10001;
    background:
      radial-gradient(ellipse 70% 85% at 18% 65%, rgba(112, 101, 119, .26), transparent 80%),
      radial-gradient(ellipse 75% 80% at 79% 30%, rgba(89, 76, 98, .22), transparent 80%);
    /* Kein zusätzlicher Filter und keine Transform-Bewegung: weniger
       Flächen-Compositing, besonders auf Safari / iPhone. */
    animation: plopp-mist-clear 1650ms ease-out both;
  }
}

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  body::before,
  body::after { content: none !important; animation: none !important; }
}
