:root {
            --bg-color: #1a1a2e;
            --card-bg: #16213e;
            --text-color: #e0e0e0;
            --accent-color: #e94560;
            --border-color: #0f3460;
            --hover-color: #533483;
        }

        body {
            font-family: 'Press Start 2P', cursive, Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: var(--bg-color);
            color: var(--text-color);
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            overflow-x: hidden;
            background-image: radial-gradient(circle at center, var(--card-bg) 0%, var(--bg-color) 75%);
        }

        .container {
            width: 90%;
            max-width: 1900px;
            margin: 40px auto;
            padding: 20px;
            text-align: start;
        }

        h1 {
            color: var(--accent-color);
            text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
            margin-bottom: 30px;
            font-size: 2.5em;
            letter-spacing: 3px;
        }

        #game-list {
            list-style: none;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            justify-content: start;
        }

        .game-card {
            background-color: var(--card-bg);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            /* padding: 20px; */ /* Removed padding from here */
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column; /* Changed to column to stack image and content */
            /* justify-content: space-between; */ /* Removed as content is now in card-content */
            align-items: center;
            text-align: center;
            aspect-ratio: 3 / 4; /* Added for 3:4 aspect ratio (width:height) */
            max-width: 350px; /* Added to limit card size on large screens */
            overflow: hidden; /* Hide overflow from rounded corners */
        }

        .game-banner {
            width: 100%;
            /* height: 60%; */ /* Removed height as aspect-ratio will control it */
            aspect-ratio: 16 / 9; /* Set aspect ratio to 16:9 */
            object-fit: cover;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        .card-content {
            padding: 15px; /* Add padding to content area */
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            justify-content: space-between;
            align-items: center;
            text-align: center;
            width: 100%;
        }

        .game-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), 0 0 40px rgba(233, 69, 96, 0.4);
        }

        .game-card h2 {
            color: var(--accent-color);
            font-size: 1.3em;
            margin-top: 0;
            margin-bottom: 10px;
            text-shadow: 0 0 5px var(--accent-color);
        }

        .game-description {
            font-family: Arial, sans-serif;
            font-size: 0.9em;
            color: var(--text-color);
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .play-button {
            display: inline-block;
            background-color: var(--accent-color);
            color: white;
            padding: 12px 25px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 1em;
            font-weight: bold;
            transition: background-color 0.3s ease, transform 0.2s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 0 10px var(--accent-color);
        }

        .play-button:hover {
            background-color: var(--hover-color);
            transform: scale(1.05);
            box-shadow: 0 0 15px var(--hover-color);
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2em;
            }
            .game-card {
                padding: 15px;
            }
            .play-button {
                padding: 10px 20px;
            }
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 1.5em;
            }
            .container {
                margin: 20px auto;
                padding: 15px;
            }
            #game-list {
                grid-template-columns: 1fr;
            }
        }

        .music-controls {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
        }

        .music-controls button {
            background-color: transparent; /* Make button background transparent */
            width: 60px;
            height: 60px;
            border-radius: 50%; /* Keep for hover effect if desired, or remove */
            border: none;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            /* box-shadow: 0 0 15px var(--accent-color); */ /* Remove box shadow from button */
            transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .music-controls button:hover {
            background-color: rgba(255, 255, 255, 0.1); /* Subtle background on hover */
            transform: scale(1.1);
            box-shadow: none; /* Remove box shadow on hover */
        }

        /* music-icon container */
        .music-icon {
            display: flex; /* Make it a flex container */
            justify-content: center;
            align-items: center;
            width: 100%; /* Take full width of parent button */
            height: 100%; /* Take full height of parent button */
        }

        .music-icon .play-svg {
            display: none; /* Hidden by default */
            width: 22px; /* Adjusted for visual balance */
            height: 30px; /* Adjust as needed */
            fill: var(--accent-color); /* Default color of the triangle */
            transition: fill 0.3s ease; /* Smooth transition for color change */
        }

        .music-controls button:hover .music-icon .play-svg {
            fill: var(--hover-color); /* Change color on button hover */
        }

        .music-icon .pause-svg {
            display: none; /* Hidden by default */
            width: 22px; /* Adjusted for visual balance */
            height: 30px;
            fill: var(--accent-color); /* Default color of the bars */
            transition: fill 0.3s ease; /* Smooth transition for color change */
        }

        .music-controls button:hover .music-icon .pause-svg {
            fill: var(--hover-color); /* Change color on button hover */
        }

        #welcome-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--bg-color);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999; /* Ensure it's on top */
            color: var(--text-color);
            font-family: 'Press Start 2P', cursive, Arial, sans-serif;
            text-align: center;
        }

        #welcome-screen h1 {
            font-size: 3em;
            color: var(--accent-color);
            text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
            margin-bottom: 20px;
            visibility: hidden; /* Hidden by default */
        }

        #welcome-screen p {
            font-size: 1.2em;
            margin-bottom: 40px;
            max-width: 600px;
            line-height: 1.5;
            visibility: hidden; /* Hidden by default */
        }

        #enter-button {
            background-color: var(--accent-color);
            color: white;
            padding: 15px 30px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-family: 'Press Start 2P', cursive;
            font-size: 1.5em;
            transition: background-color 0.3s ease, transform 0.2s ease;
            box-shadow: 0 0 15px var(--accent-color);
            display: none; /* Hidden by default */
        }

        #enter-button:hover {
            background-color: var(--hover-color);
            transform: scale(1.05);
            box-shadow: 0 0 25px var(--hover-color);
        }