* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #40E0D0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.logo {
    border-radius: 4px;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    font-size: 0.7rem;
}

.nav-link svg {
    width: 18px;
    height: 18px;
}

.nav-link:hover {
    color: #666;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 1rem 2rem;
    flex-grow: 1;
}

h1 {
    text-align: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 12px 30px rgba(0, 0, 0, 0.08);
}

.game-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

.game-title {
    margin-top: 0.5rem;
    text-align: center;
    color: #333;
    font-size: 0.7rem;
    position: absolute;
    bottom: -2rem;
    width: 100%;
}

footer {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 374px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .game-title {
        font-size: 0.6rem;
    }
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .game-title {
        font-size: 0.875rem;
    }
    .ad-placeholder {
        padding: 2rem;
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .game-title {
        font-size: 1rem;
    }
}

.ad-placeholder {
    grid-column: 1 / -1;
    background: #f5f5f5;
    padding: 1rem;
    text-align: center;
    color: #666;
    border-radius: 0.75rem;
    margin: 1rem 0;
    font-size: 0.7rem;
}