
        :root {
            --bg-color: #f8f9fa;
            --sidebar-bg: #ffffff;
            --border: #dadce0;
            --text-dark: #3c4043;
            --text-light: #70757a;
            --accent-blue: #1a73e8;
            --sidebar-width: 80px;

            /* Card Colors for Placeholders */
            --tile-color: #fbbc04;
            --breaker-color: #ea4335;
            --ttt-color: #34a853;
            --fact-color: #e8eaed;
        }

        body {
            font-family: 'Roboto', Arial, sans-serif;
            display: flex;
            height: 100vh;
            background-color: var(--bg-color);
            margin: 0;
            overflow: hidden;
        }

        /* --- Main Content Area --- */
        .main-content {
            flex-grow: 1;
            height: 100vh;
            padding: 40px;
            overflow-y: auto;
            /* Centering Logic */
            display: flex;
            flex-direction: column;
            align-items: center;
             padding: 20px;
            box-sizing: border-box;
        }

        .page-header {
            font-size: 24px;
            color: var(--text-dark);
            margin-bottom: 20px;
            font-weight: normal;
            text-align: center;
        }

        /* --- Chips Styling --- */
        .chips-row {
            display: flex;
            gap: 12px;
            margin-bottom: 30px;
            justify-content: center; /* Center the chips */
        }

        .chip {
            text-decoration: none;
            padding: 7px 16px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background-color: white;
            color: var(--text-dark);
            font-size: 14px;
            cursor: pointer;
            user-select: none;
            transition: background 0.2s;
        }

        .chip:hover { background-color: #f1f3f4; }
        .chip.active {
            background-color: #e8f0fe;
            color: #1967d2;
            border-color: transparent;
            font-weight: 500;
        }

        /* --- The Grid --- */
        .card-grid {
            display: grid;
            /* Changed to auto-fit to help centering items */
            grid-template-columns: repeat(auto-fit, minmax(140px, 140px));
            gap: 20px;
            width: 100%;
            max-width: 800px;
            justify-content: center; /* Centers the cards within the grid container */
        }

        /* --- Card Styling --- */
        .game-card {
            display: flex;
            flex-direction: column;
            cursor: pointer;
            text-decoration: none;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .game-card:hover { transform: translateY(-4px); }

        .card-image-placeholder {
            width: 140px;
            height: 140px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12);
        }

        .tile-icon { background: linear-gradient(135deg, #fbc02d 0%, #fff176 100%); }
        .breaker-icon { background: linear-gradient(135deg, #e53935 0%, #ef9a9a 100%); }
        .ttt-icon { background: linear-gradient(135deg, #43a047 0%, #a5d6a7 100%); }
        .fact-icon { background-color: var(--fact-color); }

        .card-image-placeholder::after {
            content: '🎮'; font-size: 40px; opacity: 0.2; position: absolute;
        }
        .breaker-icon::after { content: '🕹️'; }
        .ttt-icon::after { content: '❌'; }
        .fact-icon::after { content: '💡'; }

        .card-title {
            font-size: 14px;
            color: var(--text-dark);
            text-align: center; /* Center the title text under the card */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
