/* Loading Animation */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-animation.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(0, 255, 136, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    position: relative;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 5px solid transparent;
}

.loading-spinner::before {
    width: 60px;
    height: 60px;
    top: 5px;
    left: 5px;
    border-top-color: var(--accent);
    animation: spin 1.5s ease-in-out infinite;
}

.loading-spinner::after {
    width: 40px;
    height: 40px;
    top: 15px;
    left: 15px;
    border-top-color: var(--secondary);
    animation: spin 2s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Game Stats Animation */
@keyframes statIncrement {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.stat-item {
    animation: statIncrement 0.5s ease-out forwards;
    opacity: 0;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
