/* "backwards" statt "both", damit der Tilt nach der Animation wieder Kontrolle über transform hat */
@keyframes pop {
  0%   { opacity: 0; transform: translateY(28px) scale(.86); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wave {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg) scale(1.08); }
  40% { transform: rotate(12deg) scale(1.08); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(5deg); }
}
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.row1 > *, .row2 > *, .legal > * { animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.row1 > :nth-child(1), .legal > :nth-child(1) { animation-delay: .05s; }
.row1 > :nth-child(2), .legal > :nth-child(2) { animation-delay: .15s; }
.row1 > :nth-child(3), .legal > :nth-child(3) { animation-delay: .25s; }
.row2 > :nth-child(1), .legal > :nth-child(4) { animation-delay: .35s; }
.row2 > :nth-child(2), .legal > :nth-child(n+5) { animation-delay: .45s; }

.discord svg { animation: wave .9s ease-in-out .95s backwards; }
.footer { animation: fade .8s ease-out .8s backwards; }

@media (prefers-reduced-motion: reduce) {
  .row1 > *, .row2 > *, .legal > *, .discord svg, .footer { animation: none; }
}
