/* Loot Crate Section */
.loot-section {
    background: linear-gradient(180deg, #0d0d0d 0%, #1a0505 100%);
    /* Slight red tint for danger */
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.airdrop-stage {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 50px;
}

.crate-img {
    width: 300px;
    cursor: pointer;
    transition: transform 0.2s;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    z-index: 10;
}

.crate-img:hover {
    transform: scale(1.05);
}

.crate-img.falling {
    animation: drop-in 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.crate-img.shake {
    animation: shake 0.5s infinite;
}

.crate-img.open {
    animation: fade-out 0.5s forwards;
}

/* Smoke Effect */
.smoke-plume {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 0;
    background: radial-gradient(circle, rgba(255, 50, 50, 0.8) 0%, transparent 70%);
    filter: blur(20px);
    transition: height 2s;
    z-index: 5;
}

.smoke-plume.active {
    height: 400px;
    width: 200px;
    opacity: 0.6;
}

/* Reward Card */
.reward-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 350px;
    height: 450px;
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.reward-display.show {
    animation: pop-reveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Rarities */
.reward-display.mythic {
    border-color: #ffd700;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.2);
}

.reward-display.legendary {
    border-color: #d400ff;
    box-shadow: 0 0 50px rgba(212, 0, 255, 0.3), inset 0 0 20px rgba(212, 0, 255, 0.2);
}

.reward-display.epic {
    border-color: #00ffff;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.2);
}

.reward-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.reward-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.reward-rarity {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

.mythic .reward-rarity {
    color: #ffd700;
}

.legendary .reward-rarity {
    color: #d400ff;
}

.epic .reward-rarity {
    color: #00ffff;
}

.action-btn-large {
    margin-top: 2rem;
    padding: 1rem 3rem;
    background: #ff3333;
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
    transition: all 0.3s;
}

.action-btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 51, 51, 0.6);
}

/* Animations */
@keyframes drop-in {
    0% {
        transform: translateY(-800px) rotate(5deg);
        opacity: 0;
    }

    60% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    70% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes pop-reveal {
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Confetti */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(500px) rotate(720deg);
        opacity: 0;
    }
}