.games-header {
    margin-top: 6rem;
    margin-bottom: 4rem;
    text-align: center;
}

.games-header h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.games-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Console Interface Layout */
.arcade-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    min-height: 700px;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8), 0 30px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

/* Scanline effect for arcade feel */
.arcade-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.3;
}

/* Left Side: Game Selector */
.game-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 2rem;
    position: relative;
    z-index: 2;
}

.selector-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.game-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-item:hover,
.game-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.game-item.active {
    box-shadow: 0 0 20px rgba(100, 100, 255, 0.1);
}

.game-item-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.game-item-genre {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Right Side: Game Display Area */
.game-display {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.game-screen {
    flex-grow: 1;
    background: #000;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    /* Placeholder background */
    background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2000&auto=format&fit=crop');
    transition: background-image 0.5s ease;
}

.game-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.5s ease;
}

.game-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.game-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.game-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    /* Always white */
    color: #000;
    /* Always black text */
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    /* White glow */
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #fff;
    /* Stronger white glow */
}

.play-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 900px) {
    .arcade-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .game-selector {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-right: 0;
        padding-bottom: 2rem;
        flex-direction: row;
        overflow-x: auto;
    }

    .game-item {
        min-width: 250px;
    }

    .game-screen {
        min-height: 400px;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 2rem;
    }

    .game-desc {
        font-size: 0.95rem;
    }

    .game-screen {
        min-height: 300px;
    }

    .game-content-overlay {
        padding: 1.5rem;
    }
}