
        /* Force standard fonts to prevent layout shifting on language change */
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
            overflow-x: hidden;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        main {
            animation: fadeIn 0.6s ease-out both;
            will-change: transform, opacity;
        }
        @keyframes popIn {
            0% { transform: scale(0.5); opacity: 0; }
            80% { transform: scale(1.1); opacity: 1; }
            100% { transform: scale(1); opacity: 1; }
        }
        .queen-icon {
            animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            filter: drop-shadow(0px 4px 3px rgba(0,0,0,0.4));
            pointer-events: none;
        }
        
        .panel {
            background: white; padding: 15px 25px; border-radius: 8px;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); margin-bottom: 20px;
            display: flex; flex-direction: column; align-items: center; gap: 15px;
            width: 100%; max-width: 800px; box-sizing: border-box;
        }
        
        /* Board specific styling */
        #board-wrapper {
            display: flex; justify-content: center; align-items: center;
            width: 100%; margin-bottom: 40px; padding: 10px 0;
        }
        #board-container {
            position: relative; border: 2px solid #0f172a;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); background: white; touch-action: manipulation;
        }
        .grid-board { display: grid; width: 100%; height: 100%; }
        .cell {
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: background-color 0.2s; position: relative;
        }
        .white-cell { background-color: #f8fafc; }
        .black-cell { background-color: #94a3b8; }
        
        /* Highlight Overlays */
        .attacked-cell::after {
            content: ''; position: absolute; inset: 0;
            background-color: rgba(239, 68, 68, 0.35); /* Red tint */
            pointer-events: none;
        }
        .conflict-queen { color: #dc2626 !important; /* Red Queen for errors */ }
        .safe-queen { color: #1e293b; }

        /* Custom Toggle */
        .toggle-label {
            display: flex; align-items: center; gap: 6px; font-size: 15px; color: #334155;
            cursor: pointer; user-select: none; background: #f1f5f9; padding: 8px 12px;
            border-radius: 4px; font-weight: 500; transition: background 0.2s;
        }
        .toggle-label:hover { background: #e2e8f0; }

        /* SEO Section */
        .seo-footer {
            width: 100%; max-width: 800px; color: #475569; font-size: 0.95rem;
            line-height: 1.6; padding: 20px; background: white;
            border-top: 3px solid #e2e8f0; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .seo-lang-block { display: none; }
        .seo-lang-block.active { display: block; }