/* Event Log Styles */
.log-entry {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.log-crash {
    background: rgba(239, 68, 68, 0.2);
    border-left: 3px solid #ef4444;
}

.log-event {
    background: rgba(59, 130, 246, 0.2);
    border-left: 3px solid #3b82f6;
}

.log-win {
    background: rgba(34, 197, 94, 0.2);
    border-left: 3px solid #22c55e;
}

.log-lose {
    background: rgba(156, 163, 175, 0.2);
    border-left: 3px solid #9ca3af;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
        opacity: 1;
    }

    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.float-animation {
    animation: float 1s ease-out forwards;
}

@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);
    }
}

.shake-animation {
    animation: shake 0.5s;
}

@keyframes shake-heavy {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(-10px, -10px) rotate(-5deg);
    }

    20% {
        transform: translate(10px, 10px) rotate(5deg);
    }

    30% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }

    40% {
        transform: translate(10px, -10px) rotate(5deg);
    }

    50% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.shake-heavy {
    animation: shake-heavy 0.5s ease-in-out;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(56, 189, 248, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Particles */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-fly 0.8s ease-out forwards;
    z-index: 100;
}

@keyframes particle-fly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.tipping-point-glow {
    box-shadow: 0 0 50px #facc15;
    border-color: #facc15 !important;
}

/* Pop In Animation */
@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-pop-in {
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Confetti */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}