/* Game Play Overlay */
.game-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-play-overlay {
    opacity: 1;
}

.game-play-btn {
    background-color: var(--primary-yellow);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.game-card:hover .game-play-btn {
    transform: scale(1);
}

/* Game Modal */
#game-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
}

.game-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1400px;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    z-index: 2;
}

.game-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
}

.game-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.game-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.game-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.game-modal-content iframe {
    width: 100%;
    height: calc(100% - 60px);
}

/* Loading Overlay */
#app-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

.loader-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 191, 14, 0.2);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-content p {
    color: white;
    font-size: 16px;
    font-weight: 500;
}