body {
    background: linear-gradient(135deg, #2a3122 0%, #414833 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-family: 'Indie Flower', cursive;
    font-size: 4rem;
    color: #FFE8D6;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-family: 'Gaegu', cursive;
    font-size: 1.8rem;
    color: #DDBEA9;
}

.back-button-container {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
}

.back-button {
    padding: 12px 24px;
    font-size: 1.6rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: white;
    border-color: #FFE8D6;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background-color: rgba(65, 72, 51, 0.8);
    border: 3px solid #CB997E;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(203, 153, 126, 0.4);
    border-color: #FFE8D6;
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #CB997E;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumbnail {
    transform: scale(1.05);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-family: 'Indie Flower', cursive;
    font-size: 2.2rem;
    color: #FFE8D6;
    margin: 0 0 10px 0;
    text-align: center;
}

.game-description {
    font-family: 'Gaegu', cursive;
    font-size: 1.4rem;
    color: #DDBEA9;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 15px;
}

.game-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-link-overlay {
    opacity: 1;
}

.play-button {
    background-color: #FFE8D6;
    color: #414833;
    padding: 15px 30px;
    border-radius: 12px;
    font-family: 'Indie Flower', cursive;
    font-size: 1.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background-color: #CB997E;
    transform: scale(1.1);
}

.breathing-cat {
    position: absolute;
    bottom: 120px;
    left: 30px;
    width: 100px;
    pointer-events: none;
    z-index: 50;
}

.decorative-cat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 80px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 100;
}

@media (max-width: 1279px) {
    .breathing-cat {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }

    .page-header p {
        font-size: 1.4rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .back-button-container {
        top: 20px;
        left: 20px;
    }

    .back-button {
        padding: 10px 18px;
        font-size: 1.4rem;
    }

    .decorative-cat {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .game-thumbnail {
        height: 180px;
    }
}