.stars {
    position: fixed;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.firework-3d {
    position: absolute;
    width: 6px;
    height: 6px;
    transform-style: preserve-3d;
}

.particle-3d {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.light-beam {
    position: absolute;
    width: 2px;
    background: linear-gradient(to top, transparent, #fff);
    transform-origin: bottom;
    animation: rotate 4s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.city-skyline {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to bottom, transparent, #000);
}

.building {
    position: absolute;
    bottom: 0;
    background: #111;
    width: 40px;
    animation: glow 4s infinite alternate;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

/* ===== MOBILE - Minimalistyczne ===== */

@media (max-width: 768px) {
    .star {
        animation: none;
        opacity: 0.3;
        box-shadow: none;
    }

    .particle-3d {
        width: 3px;
        height: 3px;
        box-shadow: none;
    }

    .light-beam {
        animation: none;
        box-shadow: none;
    }

    .city-skyline {
        height: 25vh;
        background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    }

    .building {
        width: 35px;
        animation: none;
        box-shadow: none;
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    .stars {
        opacity: 0;
    }

    .star {
        animation: none;
        opacity: 0;
    }

    .particle-3d {
        width: 2px;
        height: 2px;
        box-shadow: none;
    }

    .light-beam {
        animation: none;
        box-shadow: none;
        opacity: 0;
    }

    .city-skyline {
        height: 15vh;
        background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
    }

    .building {
        width: 25px;
        animation: none;
        box-shadow: none;
        opacity: 0.3;
    }
}

/* Landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .stars {
        opacity: 0.2;
    }

    .star {
        opacity: 0.15;
    }

    .city-skyline {
        height: 20vh;
    }

    .building {
        width: 35px;
        opacity: 0.3;
    }
}

/* Redukcja animacji dla osób preferujących mniej ruchu */
@media (prefers-reduced-motion: reduce) {
    .star {
        animation: none;
        opacity: 0.2;
        box-shadow: none;
    }

    .building {
        animation: none;
    }

    .light-beam {
        animation: none;
    }
}

/* GPU Acceleration */
.particle-3d {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}
