/* Reset & Basics */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212; /* Dark gaming background */
    color: #e0e0e0;
}
a { text-decoration: none; color: inherit; }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #1f1f1f;
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid #00bc8c; /* Gaming Green accent */
}
header h1 { font-size: 2.5rem; letter-spacing: 2px; }

/* Main Game Grid */
.game-grid {
    display: grid;
    /* Auto-fit creates columns based on screen width */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

/* Game Card (Thumbnail) */
.game-card {
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 1px solid #00bc8c;
}
.thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.card-info { padding: 15px; }
.card-info h3 { margin-bottom: 5px; color: #fff; }
.card-info p { color: #aaa; font-size: 0.9rem; }

/* Game Page Specifics */
.game-nav {
    background: #1f1f1f;
    padding: 15px;
    text-align: center;
}
.game-nav a { color: #00bc8c; font-weight: bold; }

.game-layout {
    display: flex;
    flex-wrap: wrap; /* Wraps on mobile */
    gap: 30px;
    padding-top: 30px;
}

.game-container {
    flex: 3; /* Takes up 75% width */
    min-width: 300px;
}
iframe {
    background: #000;
    width: 100%; /* Responsive width */
    aspect-ratio: 16/9; /* Maintain aspect ratio */
}

.sidebar-ads {
    flex: 1; /* Takes up 25% width */
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-slot {
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px dashed #444;
}
.ad-placeholder {
    width: 100%;
    height: 250px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}
.game-description { margin-top: 20px; }
.game-description h1 { color: #00bc8c; margin-bottom: 10px; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .game-layout { flex-direction: column; }
    .sidebar-ads { order: 2; } /* Move ads below game on mobile */
}