/* ============================================================
   Floating Background — Pixel-stepped emoji animation
   ============================================================ */

.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-bg .float-el {
    position: absolute;
    font-size: 2rem;
    opacity: 0.09;
    animation: pixel-float linear infinite;
    will-change: transform;
    /* Pixel-stepped movement for retro feel */
    animation-timing-function: steps(12);
    filter: saturate(1.3);
}

/* Individual positioning & timing */
.floating-bg .float-el:nth-child(1)  { left: 4%;  top: 8%;  font-size: 2.4rem; animation-duration: 16s; animation-delay: 0s; }
.floating-bg .float-el:nth-child(2)  { left: 14%; top: 68%; font-size: 1.8rem; animation-duration: 20s; animation-delay: -2s; }
.floating-bg .float-el:nth-child(3)  { left: 24%; top: 28%; font-size: 2.1rem; animation-duration: 14s; animation-delay: -4s; }
.floating-bg .float-el:nth-child(4)  { left: 34%; top: 82%; font-size: 1.5rem; animation-duration: 22s; animation-delay: -1s; }
.floating-bg .float-el:nth-child(5)  { left: 44%; top: 18%; font-size: 2rem;   animation-duration: 18s; animation-delay: -6s; }
.floating-bg .float-el:nth-child(6)  { left: 54%; top: 58%; font-size: 2.3rem; animation-duration: 13s; animation-delay: -3s; }
.floating-bg .float-el:nth-child(7)  { left: 64%; top: 38%; font-size: 1.4rem; animation-duration: 21s; animation-delay: -7s; }
.floating-bg .float-el:nth-child(8)  { left: 74%; top: 73%; font-size: 2rem;   animation-duration: 15s; animation-delay: -5s; }
.floating-bg .float-el:nth-child(9)  { left: 84%; top: 12%; font-size: 1.8rem; animation-duration: 19s; animation-delay: -8s; }
.floating-bg .float-el:nth-child(10) { left: 91%; top: 48%; font-size: 2.2rem; animation-duration: 17s; animation-delay: -2s; }
.floating-bg .float-el:nth-child(11) { left: 8%;  top: 43%; font-size: 1.6rem; animation-duration: 22s; animation-delay: -9s; }
.floating-bg .float-el:nth-child(12) { left: 28%; top: 53%; font-size: 1.9rem; animation-duration: 16s; animation-delay: -4s; }
.floating-bg .float-el:nth-child(13) { left: 48%; top: 88%; font-size: 1.5rem; animation-duration: 20s; animation-delay: -6s; }
.floating-bg .float-el:nth-child(14) { left: 68%; top: 3%;  font-size: 2.1rem; animation-duration: 14s; animation-delay: -1s; }
.floating-bg .float-el:nth-child(15) { left: 87%; top: 33%; font-size: 1.7rem; animation-duration: 18s; animation-delay: -10s; }
.floating-bg .float-el:nth-child(16) { left: 18%; top: 90%; font-size: 2.4rem; animation-duration: 21s; animation-delay: -3s; opacity: 0.07; }
.floating-bg .float-el:nth-child(17) { left: 38%; top: 6%;  font-size: 1.3rem; animation-duration: 17s; animation-delay: -7s; }
.floating-bg .float-el:nth-child(18) { left: 58%; top: 23%; font-size: 1.9rem; animation-duration: 15s; animation-delay: -5s; opacity: 0.07; }

/* Pixel-stepped float: chunky vertical + rotation movement */
@keyframes pixel-float {
    0%   { transform: translateY(0px) rotate(0deg); }
    15%  { transform: translateY(-20px) rotate(6deg); }
    30%  { transform: translateY(-8px) rotate(-4deg); }
    50%  { transform: translateY(-35px) rotate(3deg); }
    70%  { transform: translateY(-12px) rotate(-5deg); }
    85%  { transform: translateY(-28px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Reduce on tablet */
@media (max-width: 768px) {
    .floating-bg .float-el {
        font-size: 1.3rem !important;
        opacity: 0.06 !important;
    }
    .floating-bg .float-el:nth-child(n+12) {
        display: none;
    }
}

/* Minimal on mobile */
@media (max-width: 480px) {
    .floating-bg .float-el {
        font-size: 1.1rem !important;
        opacity: 0.05 !important;
    }
    .floating-bg .float-el:nth-child(n+8) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-bg .float-el {
        animation: none;
    }
}
