/* ============================= */
/* 🥚 EIER CONTAINER             */
/* ============================= */
#eggContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;
    overflow: hidden;

    z-index: 9998;
}

/* ============================= */
/* 🥚 EINZELNE EIER              */
/* ============================= */
.egg {
    position: absolute;
    top: -120px;

    animation: fall linear forwards;

    will-change: transform;
}

/* ============================= */
/* 🥚 FALL ANIMATION             */
/* ============================= */
@keyframes fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(110vh);
    }
}

/* ============================= */
/* 🟡 GOLDENES EI (FIXED!)       */
/* ============================= */
.egg.gold {
    animation: fall linear forwards;
    position: absolute;
}

/* Glow über Pseudo Element (kein Transform Konflikt!) */
.egg.gold::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;

    animation: pulseGlow 2s infinite;
    pointer-events: none;
}

/* Glow Animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px gold;
    }
    50% {
        box-shadow: 0 0 25px gold;
    }
    100% {
        box-shadow: 0 0 5px gold;
    }
}

/* ============================= */
/* 💥 TREFFER EFFEKT             */
/* ============================= */
.hit-effect {
    position: fixed;
    width: 80px;
    height: 80px;

    border-radius: 50%;
    pointer-events: none;

    background: radial-gradient(circle, gold 0%, orange 50%, transparent 70%);

    animation: explode 0.6s ease-out forwards;

    z-index: 9999;
}

@keyframes explode {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ============================= */
/* 📦 MODAL HINTERGRUND          */
/* ============================= */
#osterModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.65);

    z-index: 9999;

    animation: fadeIn 0.5s ease;
}

/* ============================= */
/* 📦 MODAL CONTENT              */
/* ============================= */
#modalContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: linear-gradient(135deg, #272727, #525252);
    color: white;

    padding: 25px;
    border-radius: 15px;

    width: 90%;
    max-width: 420px;

    text-align: center;

    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Texte */
#modalContent h2 {
    margin-bottom: 15px;
    color: #fff;
}

#modalContent p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #fff;
}

/* Inputs */
#modalContent input {
    width: 90%;
    padding: 10px;
    margin: 5px 0;

    border: none;
    border-radius: 6px;

    background: rgba(255,255,255,0.9);
    color: #333;
}

/* Button */
#modalContent button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;

    background: #00ff15;
    color: #333;

    cursor: pointer;
}

#modalContent button:hover {
    background: #4400ff;
}

/* ============================= */
/* 🖼 FOOTER                     */
/* ============================= */
#osterFooter {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    text-align: center;

    z-index: 9997;
}

#osterFooter img {
    max-width: 100%;
    height: auto;

    pointer-events: none;
}

/* ============================= */
/* ✨ MODAL FADE-IN              */
/* ============================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================= */
/* 📱 MOBILE                     */
/* ============================= */
@media (max-width: 768px) {
    .egg {
        opacity: 0.9;
    }

    #modalContent {
        width: 95%;
    }
}