/* Август: большой метеор (редкое событие) */

#augustMeteorLayer {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}

.aug-met-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    background: radial-gradient(circle, rgba(255, 240, 200, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    animation: augMetFlashPulse 0.8s ease-out forwards;
}

@keyframes augMetFlashPulse {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

.aug-met {
    position: absolute;
    pointer-events: none;
    z-index: 20;
    animation: augMetFlight var(--flight-dur, 1.5s) cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes augMetFlight {
    0% {
        transform: translate(0, 0) scale(0.2);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(15vw, 8vh) scale(1);
    }
    60% {
        opacity: 1;
        transform: translate(70vw, 45vh) scale(0.9);
    }
    100% {
        transform: translate(120vw, 80vh) scale(0.3);
        opacity: 0;
    }
}

.aug-met-head {
    position: absolute;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #ffffff 0%, #ffcc44 30%, #ff8800 80%, transparent 100%);
    border-radius: 50%;
    box-shadow:
        0 0 20px #ffcc00,
        0 0 50px #ff8800,
        0 0 100px #ff5500,
        0 0 160px #ff4400;
    transform: translate(-50%, -50%);
}

.aug-met-tail {
    position: absolute;
    top: 50%;
    right: 50%;
    width: 350px;
    height: 24px;
    transform: translateY(-50%);
    background: linear-gradient(to left,
            rgba(255, 200, 50, 0.9) 0%,
            rgba(255, 140, 0, 0.8) 15%,
            rgba(255, 80, 0, 0.6) 35%,
            rgba(255, 40, 0, 0.2) 60%,
            transparent 100%);
    border-radius: 12px;
    filter: blur(6px);
    z-index: -1;
}

.aug-met-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle,
            rgba(255, 200, 50, 0.6) 0%,
            rgba(255, 100, 0, 0.3) 40%,
            transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    animation: augMetGlowExpand 1s ease-out forwards;
}

@keyframes augMetGlowExpand {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    #augustMeteorLayer {
        display: none;
    }
}
