/* Games Page Styles - Purple Theme */
.game-container {
    position: relative;
    width: 100%;
    height: 800px;
    background: linear-gradient(135deg, #C248FD 0%, #A855F7 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(194, 72, 253, 0.2);
}

/* 三角形覆盖层 - 用于覆盖iframe左上角的logo链接 */
.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 200px solid #ffffff;
    border-bottom: 150px solid transparent;
    z-index: 20;
    pointer-events: auto;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(194, 72, 253, 0.95) 0%, rgba(168, 85, 247, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.spinner-inner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
    position: absolute;
    top: 10px;
    left: 10px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

.loading-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-subtext {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #f0f0f0);
    border-radius: 2px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
    } 50% { 
        opacity: 0.7;
    }
}

@keyframes progress {
    0% { 
        width: 0%;
    } 50% { 
        width: 70%;
    } 100% { 
        width: 100%;
    }
}

.game-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #C248FD;
    box-shadow: 0 15px 30px rgba(194, 72, 253, 0.2);
}
