.cgc-single-game-container, .cgc-archive-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

/* Archive Grid Styles */
.cgc-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cgc-game-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.cgc-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: #00ff88;
}

.cgc-game-link {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cgc-game-thumbnail {
    width: 100%;
    height: 180px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cgc-game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cgc-placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.cgc-placeholder-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.cgc-game-title {
    padding: 15px 20px 5px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.cgc-game-excerpt {
    padding: 0 20px 15px;
    color: #aaa;
    font-size: 0.9rem;
    flex-grow: 1;
}

.cgc-play-btn {
    display: block;
    background: #00ff88;
    color: #000;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.cgc-game-card:hover .cgc-play-btn {
    background: #00db77;
}

/* Single Game Styles */
.cgc-game-wrapper {
    background: #000;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #333;
}

.game-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #111;
    position: relative;
    overflow: hidden;
}

.game-controls-help {
    margin-top: 20px;
    color: #ddd;
    text-align: center;
}

.cgc-back-link {
    display: inline-block;
    margin-top: 10px;
    color: #00ff88;
    text-decoration: none;
    font-size: 0.9rem;
}

.cgc-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .cgc-games-grid {
        grid-template-columns: 1fr;
    }
}
