:root {
            --primary-color: #4a90e2;
            --secondary-color: #f5f6fa;
            --accent-color: #e74c3c;
            --success-color: #2ecc71;
            --text-color: #2c3e50;
            --grid-gap: 3px;
            --cell-size: 35px; 
        }

        * {
            box-sizing: border-box;
            user-select: none;
            -webkit-user-select: none;
            touch-action: manipulation;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #dfe6e9;
            color: var(--text-color);
            margin: 0;
            padding: 0; /* Removed body padding for full width feel */
        }

        /* GAME AREA STYLES */
        .game-header {
            text-align: center;
            margin-bottom: 20px;
            padding-top: 20px;
            background: white; /* Background for header area */
            padding-bottom: 20px;
        }

        .game-header h1 {
            margin: 0;
            color: var(--primary-color);
            font-size: 2.2rem;
        }

        .game-header p.subtitle {
            margin: 5px 0 0;
            color: #7f8c8d;
        }

        .game-container {
            display: flex;
            gap: 30px;
            background: white;
            padding: 20px;
            border-radius: 0; /* Flattened corners for wider look */
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            flex-wrap: wrap;
            justify-content: center;
            max-width: 100%; /* Full width */
            width: 100%;
            margin: 0 auto 40px auto;
        }

        .stats-bar {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f0f0;
            font-weight: bold;
            font-size: 1.1rem;
        }

        .timer {
            color: var(--accent-color);
        }

        .grid-wrapper {
            position: relative;
            padding: 10px;
            background: #ecf0f1;
            border-radius: 8px;
            display: flex;
            justify-content: center;
        }

        #word-grid {
            display: grid;
            gap: var(--grid-gap);
            margin: 0 auto;
        }

        .cell {
            width: var(--cell-size);
            height: var(--cell-size);
            background-color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1rem;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.2s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        .cell:hover {
            background-color: #d6eaf8;
        }

        .cell.selected {
            background-color: #aed6f1;
            color: var(--primary-color);
            transform: scale(1.1);
        }

        .cell.found {
            background-color: var(--success-color);
            color: white;
            animation: popIn 0.3s ease-out;
        }

        .sidebar {
            flex: 1;
            min-width: 280px;
            display: flex;
            flex-direction: column;
        }

        .word-list-container {
            background: var(--secondary-color);
            padding: 15px;
            border-radius: 8px;
            flex-grow: 1;
            max-height: 500px;
            overflow-y: auto;
        }

        .word-list-container h3 {
            margin-top: 0;
            border-bottom: 2px solid #ddd;
            padding-bottom: 10px;
            position: sticky;
            top: 0;
            background: var(--secondary-color);
            z-index: 10;
            color: #333;
        }

        #word-list {
            list-style: none;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .word-item {
            background: white;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.85rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .word-item.found {
            text-decoration: line-through;
            background-color: #d5f5e3;
            color: #27ae60;
            opacity: 0.6;
        }

        .controls {
            margin-top: 20px;
            text-align: center;
            width: 100%;
        }

        button {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 25px;
            font-size: 1rem;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
            font-family: inherit;
        }

        button:hover {
            background-color: #357abd;
        }

        button:active {
            transform: scale(0.98);
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(4px);
        }

        .modal {
            background: white;
            padding: 40px;
            border-radius: 15px;
            text-align: center;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 15px 30px rgba(0,0,0,0.3);
            animation: slideUp 0.4s ease-out;
        }

        .modal h2 {
            margin-top: 0;
            color: var(--success-color);
        }

        @keyframes popIn {
            0% { transform: scale(0.5); opacity: 0; }
            80% { transform: scale(1.2); }
            100% { transform: scale(1); opacity: 1; }
        }

        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        @media (max-width: 768px) {
            .game-container { flex-direction: column; align-items: center; }
            .sidebar { width: 100%; }
            :root { --cell-size: 28px; }
        }

        /* ARTICLE AREA STYLES - UPDATED */
        .article-wrapper {
            max-width: 100%; /* Full width */
            width: 100%;
            margin: 0;
            background: white;
            padding: 50px 40px; /* Increased padding for readability */
            border-radius: 0; /* Removed corners for full width look */
            box-shadow: none; /* Removed shadow */
            border-top: 5px solid #dfe6e9; /* Subtle separator */
        }

        .article-wrapper h1 {
            color: #000000; /* Black Heading */
            font-size: 2rem;
            margin-top: 0;
        }

        .article-wrapper h2 {
            color: #000000; /* Black Heading */
            margin-top: 2em;
            font-size: 1.5rem;
            border-bottom: 2px solid #eee;
            padding-bottom: 10px;
        }

        .article-wrapper p {
            line-height: 1.8;
            color: #333;
            font-size: 1.1rem; /* Slightly larger text for better reading */
            max-width: 1200px; /* Limit text line length for readability on huge screens */
        }

        .article-wrapper ul {
            line-height: 1.8;
            color: #333;
            font-size: 1.1rem;
            max-width: 1200px;
            padding-left: 20px;
        }

        .article-wrapper li {
            margin-bottom: 10px;
        }

        .game-anchor {
            text-align: center;
            margin-bottom: 2em;
        }
        .game-anchor a {
            display: inline-block;
            background: #333;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 0.95rem;
        }
        .game-anchor a:hover {
            background: #000;
        }