@import './site.css';


/* Wormzy Animations - Global styles to avoid CSS isolation issues */
.wormzy-animations {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    pointer-events: none;
    z-index: 9999;
    overflow: visible;
}

.worm-popup {
    position: absolute;
    width: 130px;
    height: 130px;
    bottom: -140px;
    animation: wormPopupFromBottom 3s ease-in-out forwards;
    pointer-events: all;
    transform-origin: bottom center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.worm-popup:hover {
    transform: scale(1.1);
}

.worm-popup.worm-clicked {
    animation: wormShrink 0.3s ease-out forwards !important;
}

@keyframes wormPopupFromBottom {
    0% {
        transform: translateY(0) scale(0.3);
        opacity: 0;
    }
    15% {
        transform: translateY(-140px) scale(1);
        opacity: 1;
    }
    85% {
        transform: translateY(-140px) scale(1) rotate(-3deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(0.3);
        opacity: 0;
    }
}

@keyframes wormShrink {
    0% {
        transform: translateY(-140px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-140px) scale(0);
        opacity: 0;
    }
}

.worm-icon {
    width: 150%;
    height: 150%;
    animation: wormWiggle 0.5s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(74, 157, 95, 0.35));
}

@keyframes wormWiggle {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* Worm Game Progress Bar */
.worm-game-progress {
    position: fixed;
    left: 15px;
    bottom: 4px;
/*    transform: translateY(-50%);*/
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.worm-game-restart {
    position: fixed;
    left: -15px;
    bottom: 4px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}



/* Audio Mute Button */
.audio-mute-button {
    position: fixed;
    left: 22px;
    bottom: 202px;
    z-index: 10000;
}

.audio-mute-button .btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.audio-mute-button .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.audio-mute-button .btn i {
    font-size: 1.1rem;
}

.audio-mute-button .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.audio-mute-button .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.audio-mute-button .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.audio-mute-button .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.progress-label {
    position: absolute;
    top: 37px;
    left: -20px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.progress-outline {
    width: 20px;
    height: 150px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    background: linear-gradient(to top, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    transition: height 0.5s ease-out;
    box-shadow: 0 0 15px rgba(74, 157, 95, 0.6);
    animation: progressPulse 1s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(74, 157, 95, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(74, 157, 95, 0.9);
    }
}

.progress-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.0rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 5px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for progress bar */
@media (max-width: 768px) {
    .worm-game-progress {
        left: 10px;
    }
    
    .audio-mute-button {
        left: 17px;
        bottom: 175px;
    }
    
    .audio-mute-button .btn {
        width: 32px;
        height: 32px;
    }
    
    .audio-mute-button .btn i {
        font-size: 1rem;
    }
    
    .progress-outline {
        width: 15px;
        height: 130px;
        border: 2px solid var(--primary-color);
    }
    
    .progress-text {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .progress-label {
        font-size: 0.8rem;
        padding: 6px 8px;
        top: 28px;
        left: -15px;
    }
}

@media (max-width: 480px) {
    .worm-game-progress {
        left: 5px;
    }
    
    .audio-mute-button {
        left: 10px;
        bottom: 142px;
    }
    
    .audio-mute-button .btn {
        width: 28px;
        height: 28px;
    }
    
    .audio-mute-button .btn i {
        font-size: 0.9rem;
    }
    
    .progress-outline {
        width: 14px;
        height: 100px;
    }
    
    .progress-text {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .progress-label {
        font-size: 0.7rem;
        padding: 4px 6px;
        top: 20px;
        left: -12px;
    }
}

/* Subtle wriggle animation for hero worm image */
.hero-worm-wiggle {
    display: inline-block;
    animation: subtleWormWriggle 3s ease-in-out infinite;
}

@keyframes subtleWormWriggle {
    0%, 100% {
        transform: rotate(-2deg) translateY(0);
    }
    25% {
        transform: rotate(1deg) translateY(-2px);
    }
    50% {
        transform: rotate(2deg) translateY(0);
    }
    75% {
        transform: rotate(-1deg) translateY(2px);
    }
}

/* Victory Overlay */
.victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 157, 95, 0.95);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: victoryFadeIn 0.5s ease-out;
}

@keyframes victoryFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.victory-message {
    text-align: center;
    color: white;
    animation: victoryBounce 0.8s ease-out;
}

@keyframes victoryBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.victory-message h1 {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    animation: victoryShake 0.5s ease-in-out infinite;
}

@keyframes victoryShake {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

.victory-message p {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Dirt Particles - High Flying Animations */
.dirt-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* === DIRT ANIMATION CONTROL VARIABLES === */
    /* Play with these values to adjust the animation! */
    /* Timing Controls */
    --dirt-total-duration: 2.5s; /* Total animation time */
    --dirt-apex-percentage: 30%; /* When particles reach peak (0-100%) */
    /* Height & Distance Controls */
    --dirt-max-height: -130%; /* How high particles fly (percentage of container) */
    --dirt-horizontal-spread: 50%; /* How far left/right particles drift during flight */
    /* Position Adjustment */
    --dirt-horizontal-offset: 20%; /* Shift all particles left/right (use negative for left) */
    /* Speed/Easing Controls */
    /* Format: cubic-bezier(x1, y1, x2, y2) */
    /* Current: ease-out up, ease-in down */
    --dirt-easing: cubic-bezier(.22,.2,.67,.41);
}

.dirt {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #8B4513;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
/* Generate 30 dirt particle animations */
.dirt-1 {
    animation: dirtFly1 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.1s;
}

.dirt-2 {
    animation: dirtFly2 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.12s;
}

.dirt-3 {
    animation: dirtFly3 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.14s;
}

.dirt-4 {
    animation: dirtFly4 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.16s;
}

.dirt-5 {
    animation: dirtFly5 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.18s;
}

.dirt-6 {
    animation: dirtFly6 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.2s;
}

.dirt-7 {
    animation: dirtFly7 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.22s;
}

.dirt-8 {
    animation: dirtFly8 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.24s;
}

.dirt-9 {
    animation: dirtFly9 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.26s;
}

.dirt-10 {
    animation: dirtFly10 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.28s;
}

.dirt-11 {
    animation: dirtFly11 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.11s;
}

.dirt-12 {
    animation: dirtFly12 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.13s;
}

.dirt-13 {
    animation: dirtFly13 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.15s;
}

.dirt-14 {
    animation: dirtFly14 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.17s;
}

.dirt-15 {
    animation: dirtFly15 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.19s;
}

.dirt-16 {
    animation: dirtFly16 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.21s;
}

.dirt-17 {
    animation: dirtFly17 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.23s;
}

.dirt-18 {
    animation: dirtFly18 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.25s;
}

.dirt-19 {
    animation: dirtFly19 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.27s;
}

.dirt-20 {
    animation: dirtFly20 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.29s;
}

.dirt-21 {
    animation: dirtFly21 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.12s;
}

.dirt-22 {
    animation: dirtFly22 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.14s;
}

.dirt-23 {
    animation: dirtFly23 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.16s;
}

.dirt-24 {
    animation: dirtFly24 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.18s;
}

.dirt-25 {
    animation: dirtFly25 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.2s;
}

.dirt-26 {
    animation: dirtFly26 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.22s;
}

.dirt-27 {
    animation: dirtFly27 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.24s;
}

.dirt-28 {
    animation: dirtFly28 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.26s;
}

.dirt-29 {
    animation: dirtFly29 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.28s;
}

.dirt-30 {
    animation: dirtFly30 var(--dirt-total-duration) var(--dirt-easing);
    animation-delay: 0.3s;
}
/* Far left particles - drift LEFT while flying */
@keyframes dirtFly1 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 35%);
        bottom: 30%;
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 35% - var(--dirt-horizontal-spread));
        bottom: calc(30% + var(--dirt-max-height) + 90%);
        opacity: 1;
        transform: scale(0.5) rotate(90deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 35% - var(--dirt-horizontal-spread) * 1.5);
        bottom: -270%;
        opacity: 0;
        transform: scale(0.3) rotate(180deg);
    }
}

@keyframes dirtFly2 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 30%);
        bottom: 28%;
        opacity: 1;
        transform: scale(0.9) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 30% - var(--dirt-horizontal-spread) * 0.8);
        bottom: calc(28% + var(--dirt-max-height) + 72%);
        opacity: 1;
        transform: scale(0.55) rotate(110deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 30% - var(--dirt-horizontal-spread) * 1.3);
        bottom: -272%;
        opacity: 0;
        transform: scale(0.35) rotate(220deg);
    }
}

@keyframes dirtFly3 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 25%);
        bottom: 32%;
        opacity: 1;
        transform: scale(1.1) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 25% - var(--dirt-horizontal-spread));
        bottom: calc(32% + var(--dirt-max-height) + 98%);
        opacity: 1;
        transform: scale(0.48) rotate(75deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 25% - var(--dirt-horizontal-spread) * 1.4);
        bottom: -268%;
        opacity: 0;
        transform: scale(0.28) rotate(150deg);
    }
}
/* Left side particles */
@keyframes dirtFly4 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 20%);
        bottom: 30%;
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 20% - var(--dirt-horizontal-spread) * 0.7);
        bottom: calc(30% + var(--dirt-max-height) + 80%);
        opacity: 1;
        transform: scale(0.52) rotate(100deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 20% - var(--dirt-horizontal-spread) * 1.2);
        bottom: -270%;
        opacity: 0;
        transform: scale(0.32) rotate(200deg);
    }
}

@keyframes dirtFly5 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 15%);
        bottom: 35%;
        opacity: 1;
        transform: scale(1.05) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 15% - var(--dirt-horizontal-spread) * 0.6);
        bottom: calc(35% + var(--dirt-max-height) + 105%);
        opacity: 1;
        transform: scale(0.5) rotate(85deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 15% - var(--dirt-horizontal-spread));
        bottom: -265%;
        opacity: 0;
        transform: scale(0.3) rotate(170deg);
    }
}

@keyframes dirtFly6 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 10%);
        bottom: 28%;
        opacity: 1;
        transform: scale(0.95) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 10% - var(--dirt-horizontal-spread) * 0.5);
        bottom: calc(28% + var(--dirt-max-height) + 67%);
        opacity: 1;
        transform: scale(0.58) rotate(120deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 10% - var(--dirt-horizontal-spread) * 0.8);
        bottom: -272%;
        opacity: 0;
        transform: scale(0.38) rotate(240deg);
    }
}

@keyframes dirtFly7 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 7%);
        bottom: 33%;
        opacity: 1;
        transform: scale(1.08) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 7% - var(--dirt-horizontal-spread) * 0.4);
        bottom: calc(33% + var(--dirt-max-height) + 92%);
        opacity: 1;
        transform: scale(0.49) rotate(95deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 7% - var(--dirt-horizontal-spread) * 0.7);
        bottom: -267%;
        opacity: 0;
        transform: scale(0.27) rotate(190deg);
    }
}
/* Center-left particles - slight drift */
@keyframes dirtFly8 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 5%);
        bottom: 30%;
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 5% - var(--dirt-horizontal-spread) * 0.3);
        bottom: calc(30% + var(--dirt-max-height) + 85%);
        opacity: 1;
        transform: scale(0.51) rotate(80deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 5% - var(--dirt-horizontal-spread) * 0.5);
        bottom: -270%;
        opacity: 0;
        transform: scale(0.33) rotate(160deg);
    }
}

@keyframes dirtFly9 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 3%);
        bottom: 32%;
        opacity: 1;
        transform: scale(0.98) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 3% - var(--dirt-horizontal-spread) * 0.2);
        bottom: calc(32% + var(--dirt-max-height) + 73%);
        opacity: 1;
        transform: scale(0.56) rotate(105deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 3% - var(--dirt-horizontal-spread) * 0.4);
        bottom: -268%;
        opacity: 0;
        transform: scale(0.36) rotate(210deg);
    }
}

@keyframes dirtFly10 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset));
        bottom: 35%;
        opacity: 1;
        transform: scale(1.1) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - var(--dirt-horizontal-spread) * 0.1);
        bottom: calc(35% + var(--dirt-max-height) + 100%);
        opacity: 1;
        transform: scale(0.48) rotate(88deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - var(--dirt-horizontal-spread) * 0.2);
        bottom: -265%;
        opacity: 0;
        transform: scale(0.29) rotate(175deg);
    }
}
/* Center particles - minimal drift, mostly straight up */
@keyframes dirtFly11 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 3%);
        bottom: 30%;
        opacity: 1;
        transform: scale(1.05) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 3%);
        bottom: calc(30% + var(--dirt-max-height) + 115%);
        opacity: 1;
        transform: scale(0.46) rotate(45deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 3%);
        bottom: -270%;
        opacity: 0;
        transform: scale(0.26) rotate(90deg);
    }
}

@keyframes dirtFly12 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 5%);
        bottom: 38%;
        opacity: 1;
        transform: scale(1.15) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 5%);
        bottom: calc(38% + var(--dirt-max-height) + 112%);
        opacity: 1;
        transform: scale(0.45) rotate(135deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 5%);
        bottom: -262%;
        opacity: 0;
        transform: scale(0.25) rotate(270deg);
    }
}

@keyframes dirtFly13 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 7%);
        bottom: 30%;
        opacity: 1;
        transform: scale(1.05) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 7%);
        bottom: calc(30% + var(--dirt-max-height) + 115%);
        opacity: 1;
        transform: scale(0.46) rotate(-45deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 7%);
        bottom: -270%;
        opacity: 0;
        transform: scale(0.26) rotate(-90deg);
    }
}
/* Center-right particles - drift RIGHT */
@keyframes dirtFly14 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 10%);
        bottom: 35%;
        opacity: 1;
        transform: scale(1.1) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 10% + var(--dirt-horizontal-spread) * 0.1);
        bottom: calc(35% + var(--dirt-max-height) + 100%);
        opacity: 1;
        transform: scale(0.48) rotate(-88deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 10% + var(--dirt-horizontal-spread) * 0.2);
        bottom: -265%;
        opacity: 0;
        transform: scale(0.29) rotate(-175deg);
    }
}

@keyframes dirtFly15 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 13%);
        bottom: 32%;
        opacity: 1;
        transform: scale(0.98) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 13% + var(--dirt-horizontal-spread) * 0.2);
        bottom: calc(32% + var(--dirt-max-height) + 73%);
        opacity: 1;
        transform: scale(0.56) rotate(-105deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 13% + var(--dirt-horizontal-spread) * 0.4);
        bottom: -268%;
        opacity: 0;
        transform: scale(0.36) rotate(-210deg);
    }
}

@keyframes dirtFly16 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 15%);
        bottom: 30%;
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 15% + var(--dirt-horizontal-spread) * 0.3);
        bottom: calc(30% + var(--dirt-max-height) + 85%);
        opacity: 1;
        transform: scale(0.51) rotate(-80deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 15% + var(--dirt-horizontal-spread) * 0.5);
        bottom: -270%;
        opacity: 0;
        transform: scale(0.33) rotate(-160deg);
    }
}

@keyframes dirtFly17 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 17%);
        bottom: 33%;
        opacity: 1;
        transform: scale(1.08) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 17% + var(--dirt-horizontal-spread) * 0.4);
        bottom: calc(33% + var(--dirt-max-height) + 92%);
        opacity: 1;
        transform: scale(0.49) rotate(-95deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 17% + var(--dirt-horizontal-spread) * 0.7);
        bottom: -267%;
        opacity: 0;
        transform: scale(0.27) rotate(-190deg);
    }
}
/* Right side particles */
@keyframes dirtFly18 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 20%);
        bottom: 28%;
        opacity: 1;
        transform: scale(0.95) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 20% + var(--dirt-horizontal-spread) * 0.5);
        bottom: calc(28% + var(--dirt-max-height) + 67%);
        opacity: 1;
        transform: scale(0.58) rotate(-120deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 20% + var(--dirt-horizontal-spread) * 0.8);
        bottom: -272%;
        opacity: 0;
        transform: scale(0.38) rotate(-240deg);
    }
}

@keyframes dirtFly19 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 25%);
        bottom: 35%;
        opacity: 1;
        transform: scale(1.05) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 25% + var(--dirt-horizontal-spread) * 0.6);
        bottom: calc(35% + var(--dirt-max-height) + 105%);
        opacity: 1;
        transform: scale(0.5) rotate(-85deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 25% + var(--dirt-horizontal-spread));
        bottom: -265%;
        opacity: 0;
        transform: scale(0.3) rotate(-170deg);
    }
}

@keyframes dirtFly20 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 30%);
        bottom: 30%;
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 30% + var(--dirt-horizontal-spread) * 0.7);
        bottom: calc(30% + var(--dirt-max-height) + 80%);
        opacity: 1;
        transform: scale(0.52) rotate(-100deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 30% + var(--dirt-horizontal-spread) * 1.2);
        bottom: -270%;
        opacity: 0;
        transform: scale(0.32) rotate(-200deg);
    }
}
/* Far right particles - drift RIGHT */
@keyframes dirtFly21 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 35%);
        bottom: 32%;
        opacity: 1;
        transform: scale(1.1) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 35% + var(--dirt-horizontal-spread));
        bottom: calc(32% + var(--dirt-max-height) + 98%);
        opacity: 1;
        transform: scale(0.48) rotate(-75deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 35% + var(--dirt-horizontal-spread) * 1.4);
        bottom: -268%;
        opacity: 0;
        transform: scale(0.28) rotate(-150deg);
    }
}

@keyframes dirtFly22 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 40%);
        bottom: 28%;
        opacity: 1;
        transform: scale(0.9) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 40% + var(--dirt-horizontal-spread) * 0.8);
        bottom: calc(28% + var(--dirt-max-height) + 72%);
        opacity: 1;
        transform: scale(0.55) rotate(-110deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 40% + var(--dirt-horizontal-spread) * 1.3);
        bottom: -272%;
        opacity: 0;
        transform: scale(0.35) rotate(-220deg);
    }
}

@keyframes dirtFly23 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 45%);
        bottom: 30%;
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 45% + var(--dirt-horizontal-spread));
        bottom: calc(30% + var(--dirt-max-height) + 90%);
        opacity: 1;
        transform: scale(0.5) rotate(-90deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 45% + var(--dirt-horizontal-spread) * 1.5);
        bottom: -270%;
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
}
/* Additional spread particles with varied drifts */
@keyframes dirtFly24 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 33%);
        bottom: 31%;
        opacity: 1;
        transform: scale(1.02) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 33% - var(--dirt-horizontal-spread) * 0.9);
        bottom: calc(31% + var(--dirt-max-height) + 77%);
        opacity: 1;
        transform: scale(0.53) rotate(98deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 33% - var(--dirt-horizontal-spread) * 1.5);
        bottom: -269%;
        opacity: 0;
        transform: scale(0.31) rotate(195deg);
    }
}

@keyframes dirtFly25 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 23%);
        bottom: 34%;
        opacity: 1;
        transform: scale(1.06) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 23% - var(--dirt-horizontal-spread) * 0.8);
        bottom: calc(34% + var(--dirt-max-height) + 88%);
        opacity: 1;
        transform: scale(0.49) rotate(83deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 23% - var(--dirt-horizontal-spread) * 1.3);
        bottom: -266%;
        opacity: 0;
        transform: scale(0.29) rotate(165deg);
    }
}

@keyframes dirtFly26 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 33%);
        bottom: 34%;
        opacity: 1;
        transform: scale(1.06) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 33% + var(--dirt-horizontal-spread) * 0.8);
        bottom: calc(34% + var(--dirt-max-height) + 88%);
        opacity: 1;
        transform: scale(0.49) rotate(-83deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 33% + var(--dirt-horizontal-spread) * 1.3);
        bottom: -266%;
        opacity: 0;
        transform: scale(0.29) rotate(-165deg);
    }
}

@keyframes dirtFly27 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 43%);
        bottom: 31%;
        opacity: 1;
        transform: scale(1.02) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 43% + var(--dirt-horizontal-spread) * 0.9);
        bottom: calc(31% + var(--dirt-max-height) + 77%);
        opacity: 1;
        transform: scale(0.53) rotate(-98deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 43% + var(--dirt-horizontal-spread) * 1.5);
        bottom: -269%;
        opacity: 0;
        transform: scale(0.31) rotate(-195deg);
    }
}

@keyframes dirtFly28 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) - 13%);
        bottom: 29%;
        opacity: 1;
        transform: scale(0.97) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) - 13% - var(--dirt-horizontal-spread) * 0.6);
        bottom: calc(29% + var(--dirt-max-height) + 69%);
        opacity: 1;
        transform: scale(0.57) rotate(93deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) - 13% - var(--dirt-horizontal-spread));
        bottom: -271%;
        opacity: 0;
        transform: scale(0.34) rotate(185deg);
    }
}

@keyframes dirtFly29 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 23%);
        bottom: 29%;
        opacity: 1;
        transform: scale(0.97) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 23% + var(--dirt-horizontal-spread) * 0.6);
        bottom: calc(29% + var(--dirt-max-height) + 69%);
        opacity: 1;
        transform: scale(0.57) rotate(-93deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 23% + var(--dirt-horizontal-spread));
        bottom: -271%;
        opacity: 0;
        transform: scale(0.34) rotate(-185deg);
    }
}

@keyframes dirtFly30 {
    0% {
        left: calc(50% + var(--dirt-horizontal-offset) + 5%);
        bottom: 36%;
        opacity: 1;
        transform: scale(1.12) rotate(0deg);
    }

    40% {
        left: calc(50% + var(--dirt-horizontal-offset) + 5%);
        bottom: calc(36% + var(--dirt-max-height) + 119%);
        opacity: 1;
        transform: scale(0.44) rotate(180deg);
    }

    100% {
        left: calc(50% + var(--dirt-horizontal-offset) + 5%);
        bottom: -264%;
        opacity: 0;
        transform: scale(0.24) rotate(360deg);
    }
}
/* Bird Feeder Victory Scene */
.bird-feeder-scene {
    max-width: 400px;
    margin: 20px auto;
    animation: feederDrop 1s ease-out 0.5s backwards;
}

@keyframes feederDrop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    60% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.bird-feeder-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Individual Bird Animations */
.bird-1 {
    animation: birdFly1 4s ease-in-out infinite;
    transform-origin: center;
}

.bird-2 {
    animation: birdFly2 5s ease-in-out infinite;
    transform-origin: center;
}

.bird-3 {
    animation: birdFly3 4.5s ease-in-out infinite;
    transform-origin: center;
}

.bird-4 {
    animation: birdFly4 5.5s ease-in-out infinite;
    transform-origin: center;
}

.bird-5 {
    animation: birdPeck 2s ease-in-out infinite;
    transform-origin: center;
}

/* Bird Flying Patterns - Circling the Feeder */
@keyframes birdFly1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-20px, -10px) scale(0.95) rotate(-5deg);
    }
    50% {
        transform: translate(-10px, -20px) scale(0.9) rotate(-3deg);
    }
    75% {
        transform: translate(10px, -15px) scale(0.95) rotate(3deg);
    }
}

@keyframes birdFly2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -15px) scale(0.92) rotate(5deg);
    }
    50% {
        transform: translate(10px, -25px) scale(0.88) rotate(3deg);
    }
    75% {
        transform: translate(-15px, -10px) scale(0.95) rotate(-4deg);
    }
}

@keyframes birdFly3 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(-15px, 10px) scale(1.05) rotate(-8deg);
    }
    50% {
        transform: translate(-25px, 5px) scale(1.02) rotate(-5deg);
    }
    75% {
        transform: translate(-10px, -5px) scale(1.03) rotate(-3deg);
    }
}

@keyframes birdFly4 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(15px, -10px) scale(0.97) rotate(6deg);
    }
    50% {
        transform: translate(25px, 10px) scale(1.03) rotate(8deg);
    }
    75% {
        transform: translate(10px, 5px) scale(1.01) rotate(4deg);
    }
}

@keyframes birdPeck {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(5px) rotate(15deg);
    }
}

/* Add subtle wing flapping to all birds */
.bird ellipse:first-child {
    animation: wingFlap 0.3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes wingFlap {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.1);
    }
}

/* Feeder elements subtle animations */
.bird-feeder-svg line,
.bird-feeder-svg circle:first-child {
    animation: feederSway 3s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes feederSway {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    75% {
        transform: rotate(-2deg);
    }
}

/* Responsive adjustments for bird feeder */
@media (max-width: 768px) {
    .bird-feeder-scene {
        max-width: 300px;
    }
    
    .victory-message h1 {
        font-size: 2rem;
    }
    
    .victory-message p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .bird-feeder-scene {
        max-width: 250px;
    }
    
    .victory-message h1 {
        font-size: 1.5rem;
    }
    
    .victory-message p {
        font-size: 1rem;
    }
}

.grow-hover {
    transition: transform 0.2s cubic-bezier(.4,0,.2,1); /* smooth and subtle */
    will-change: transform;
}

.grow-hover:hover {
    transform: scale(1.03); /* slightly larger */
}