body {
    margin: 0;
    min-height: 100vh;
    padding: 90px 24px 24px;
    background: linear-gradient(135deg, #0f1730, #2d2466 55%, #8a4de3);
    font-family: 'Edu TAS Beginner', 'Comic Sans MS', cursive;
    color: white;
}

.games-page {
    max-width: 1100px;
    margin: 0 auto;
}

.page-intro {
    margin-bottom: 28px;
    text-align: center;
}

.page-intro h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #ffe08a;
}

.page-intro p {
    margin: 0;
    font-size: 1.05rem;
    color: #fef4d6;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 320px;
    border-radius: 24px;
    text-decoration: none;
    color: white;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.game-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 18px 18px 20px;
    background: linear-gradient(145deg, #ff7da8, #ff9f6d);
}

.game-card:nth-child(2) .game-card-content {
    background: linear-gradient(145deg, #5fd1ff, #4f7bff);
}

.game-card h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    color: #fff7d6;
}

.game-card p {
    margin: 0 0 14px;
    line-height: 1.5;
    color: #fffdf7;
}

.game-card span {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    font-weight: 700;
}

@media (max-width: 700px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}