/* Explain: Styling for the in-app games modal and game buttons. */
/* Oreo Proxy games menu */

.games-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
}

.games-modal[hidden] {
    display: none !important;
}

.games-card {
    width: min(28rem, 100%);
    max-height: calc(100svh - 2rem);
    overflow-y: auto;
    padding: 1.1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
}

.games-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.games-head-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--surface-hover);
    color: var(--link-color);
}

.games-head strong {
    flex: 1 1 auto;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.game-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 6.5rem;
    padding: 1rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.game-btn i {
    color: var(--link-color);
    font-size: 1.6rem;
}

.game-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

.game-btn:hover {
    background: var(--surface-hover);
    border-color: var(--link-color);
    transform: translateY(-2px);
}

@media (max-width: 400px) {
    .games-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}