.games {
    padding: 60px 120px;
}

.games-inner {
    max-width: 1272px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.games-inner > h2 {
    font-size: 40px;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

.game-card {
    background: #f2f2f2;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-cover {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.game-info h3 {
    font-size: 20px;
    color: #0a0a0a;
    text-align: center;
}

.game-stars {
    color: var(--orange);
    font-size: 18px;
    letter-spacing: 2px;
}

.game-play-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
}

.game-card--hidden {
    display: none;
}

.games-grid--limited.games-grid--expanded .game-card--hidden {
    display: flex;
}

.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.game-modal.active {
    display: block;
}

.game-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.game-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 960px;
    height: 80vh;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-gray);
}

.game-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-gray);
}

.game-modal-header h3 {
    font-size: 20px;
    color: var(--white);
}

.game-modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.game-modal-body {
    flex: 1;
    position: relative;
}

.game-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1024px) {
    .games {
        padding: 60px 24px;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .games-inner > h2 {
        font-size: 28px;
    }

    .game-modal-content {
        width: 95%;
        height: 70vh;
    }
}
