        /* Custom CSS for finer control and better aesthetics, especially for the modal */
        body {
            font-family: 'Inter', sans-serif;
            background-color: #0f172a; /* Dark blue background */
            color: #e2e8f0; /* Light gray text */
        }

        .game-card {
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
            cursor: pointer;
            overflow: hidden; /* Ensures rounded corners apply to image */
            /* Removed flex-col and padding to make it just the image */
        }

        .game-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .game-card img {
            object-fit: cover; /* Ensures images fill their space nicely */
            width: 100%;
            height: 100%; /* Fixed height for consistency */
            border-radius: 0.5rem; /* Apply rounded corners to the whole image now */
        }

        /* Modal specific styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background-color: #1a202c; /* Darker background for modal */
            border-radius: 0.75rem; /* rounded-xl */
            padding: 1.5rem;
            width: 95%; /* Responsive width */
            max-width: 1200px; /* Max width for larger screens */
            height: 95%;
            display: flex;
            flex-direction: column;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 1rem;
            border-bottom: 1px solid #4a5568; /* Light border */
            flex-wrap: wrap; /* Allow items to wrap on smaller screens */
            gap: 1rem; /* Space between title and buttons */
        }

        .modal-title {
            font-size: 1.5rem; /* text-2xl */
            font-weight: 700; /* font-bold */
            flex-grow: 1; /* Allow title to take available space */
        }

        .modal-actions {
            display: flex;
            gap: 0.5rem; /* Space between buttons */
        }

        .close-button, .fullscreen-button {
            background: none;
            border: none;
            font-size: 2rem; /* Adjusted for better icon scaling */
            color: #cbd5e0; /* Gray color for buttons */
            cursor: pointer;
            padding: 0;
            line-height: 1;
            transition: color 0.2s ease;
        }

        .close-button:hover, .fullscreen-button:hover {
            color: #fff;
        }

        /* Adjust SVG size within the button */
        .fullscreen-button svg {
            width: 1.5em; /* Make SVG size relative to button font-size */
            height: 1.5em;
            vertical-align: middle; /* Align icon vertically */
        }

        .game-iframe-container {
            flex-grow: 1; /* Allow iframe to take available space */
            position: relative;
            background-color: #000; /* Black background for iframe area */
            border-radius: 0.5rem; /* rounded-lg */
            overflow: hidden;
            margin-top: 1rem; /* Added margin for separation */
        }

        .game-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Loading Spinner */
        .spinner {
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid #3498db;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive adjustments for modal header */
        @media (max-width: 640px) {
            .modal-header {
                flex-direction: column;
                align-items: flex-start;
            }
            .modal-title {
                margin-bottom: 0.5rem;
            }
            .modal-actions {
                width: 100%;
                justify-content: flex-end;
            }
        }

        /* Footer styles */
        .footer {
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid #4a5568;
            text-align: center;
            font-size: 0.9rem;
            color: #a0aec0;
        }

        .footer a {
            color: #90cdf4; /* Light blue for links */
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer a:hover {
            color: #63b3ed; /* Darker blue on hover */
        }

        /* Policy/Terms/About Modal specific styles */
        .info-modal-content {
            background-color: #1a202c;
            border-radius: 0.75rem;
            padding: 1.5rem;
            width: 95%;
            max-width: 800px; /* Adjusted max-width for text content */
            max-height: 95%; /* Limit height for scrollability */
            display: flex;
            flex-direction: column;
            overflow-y: auto; /* Enable scrolling for long content */
        }

        .info-modal-content h2 {
            font-size: 1.5rem;
            font-weight: 700;
            padding-bottom: 1rem;
            border-bottom: 1px solid #4a5568;
            margin-bottom: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .info-modal-content h3 {
            font-size: 1.25rem; /* text-xl */
            font-weight: 600; /* semi-bold */
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
            color: #e2e8f0;
        }

        .info-modal-content p, .info-modal-content ul {
            margin-bottom: 1rem; /* Spacing for paragraphs */
            line-height: 1.6;
            color: #cbd5e0; /* Lighter text color for content */
        }

        .info-modal-content ul {
            list-style-type: disc;
            margin-left: 1.5rem;
        }

        .info-modal-content a {
            color: #90cdf4;
            text-decoration: underline;
        }

        .info-modal-content a:hover {
            color: #63b3ed;
        }