* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    direction: rtl;
    background: #0f1724;
    color: #ffffff;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 70px 20px 45px;
}

header h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
}

header p {
    color: #94a3b8;
    font-size: 17px;
}

main {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px 60px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.game-card {
    background: #19212f;
    border: 1px solid #2c3748;
    border-radius: 18px;
    padding: 30px 25px;
    min-height: 210px;

    display: flex;
    flex-direction: column;

    color: #ffffff;
    text-decoration: none;

    transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: #4f7cff;
}

.game-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.game-card p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.7;
}

.game-card span {
    margin-top: auto;
    padding-top: 25px;
    font-size: 16px;
    font-weight: 800;
    color: #6f91ff;
}

@media (max-width: 650px) {
    header {
        padding-top: 50px;
    }

    header h1 {
        font-size: 36px;
    }

    main {
        grid-template-columns: 1fr;
    }

    .game-card {
        min-height: 180px;
    }
}



/* توسيط اللعبة الثالثة على الكمبيوتر */
@media (min-width: 651px) {
    .game-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 10px);
        justify-self: center;
    }
}
