* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-header {
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
}
nav a:hover {
    color: #3498db;
}
.hero {
    text-align: center;
    padding: 40px 0 20px;
}
.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}
.games-grid h2 {
    margin: 30px 0 20px;
    text-align: center;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.game-info {
    padding: 18px;
}
.game-info h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}
.category {
    display: inline-block;
    background: #e8f4fd;
    color: #2980b9;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}
.game-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}
.btn-play {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-play:hover {
    background: #219a52;
}
.ad-container {
    margin: 25px 0;
    text-align: center;
    min-height: 100px;
    background: #eee;
    border-radius: 8px;
    padding: 10px;
}
.site-footer {
    background: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
.site-footer a {
    color: #3498db;
    text-decoration: none;
}
.page-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.page-content h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}
.game-wrapper {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}
canvas, .game-board {
    border: 2px solid #333;
    margin: 10px auto;
    display: block;
    background: #000;
}
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }
    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 1.7rem;
    }
}