 

        .puzzle-pix100-container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .title {
            font-size: 2.5em;
            font-weight: bold;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
        }

        .language-selector {
            margin: 20px 0;
            text-align: center;
        }

        .language-btn {
            padding: 12px 24px;
            margin: 0 10px;
            border: none;
            border-radius: 25px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            transform: translateY(0);
        }

        .language-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .language-btn.active {
            background: linear-gradient(45deg, #4CAF50, #45a049);
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
        }

        .game-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 15px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .info-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: bold;
            color: #667eea;
        }

        .game-content {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 30px;
            align-items: start;
        }

        .puzzle-container {
            position: relative;
            display: flex;
            justify-content: center;
        }

        .puzzle-grid {
            border-collapse: collapse;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 2;
        }

        .puzzle-grid td {
            width: 50px;
            height: 50px;
            text-align: center;
            vertical-align: middle;
            border: 2px solid #e0e0e0;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
            position: relative;
        }

        .puzzle-grid td:hover {
            background: rgba(102, 126, 234, 0.1);
            transform: scale(1.05);
        }

        .puzzle-grid td.selected {
            background: rgba(33, 150, 243, 0.3);
            border-color: #2195f3;
        }

        .puzzle-grid td.found {
            background: rgba(76, 175, 80, 0.3);
            border-color: #4CAF50;
            color: #2e7d32;
        }

        .selection-canvas {
            position: absolute;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 3;
        }

        .sidebar {
            background: rgba(255, 255, 255, 0.8);
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .words-section h3 {
            color: #667eea;
            margin-bottom: 15px;
            font-size: 1.3em;
        }

        .word-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .word-item {
            padding: 12px 15px;
            background: linear-gradient(45deg, #f8f9ff, #e8eaff);
            border-radius: 10px;
            font-weight: bold;
            transition: all 0.3s ease;
            border-left: 4px solid #667eea;
        }

        .word-item.found {
            background: linear-gradient(45deg, #e8f5e8, #c8e6c9);
            color: #2e7d32;
            border-left-color: #4CAF50;
            text-decoration: line-through;
            opacity: 0.7;
        }

        .controls {
            margin-top: 20px;
            text-align: center;
        }

        .new-game-btn {
            padding: 15px 30px;
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }

        .new-game-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
        }

        .celebration-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(45deg, #4CAF50, #45a049);
            color: white;
            padding: 30px;
            border-radius: 20px;
            text-align: center;
            font-size: 1.5em;
            font-weight: bold;
            z-index: 1000;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            display: none;
        }

        .confetti-canvas {
            position: fixed;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 999;
        }

      /* Enhanced Mobile Styles for Multilingual Word Puzzle */
@media (max-width: 768px) {
    /* Main layout adjustments */
    .game-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    /* Puzzle grid optimizations */
    .puzzle-grid {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        border-collapse: collapse;
    }
    
    .puzzle-grid td {
        width: 28px;
        height: 28px;
        font-size: 12px;
        line-height: 1;
        padding: 1px;
        border: 1px solid #ddd;
        text-align: center;
        vertical-align: middle;
    }
    
    /* Touch-friendly input fields */
    .puzzle-grid input {
        width: 100%;
        height: 100%;
        border: none;
        background: transparent;
        text-align: center;
        font-size: 12px;
        font-weight: bold;
        outline: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Game info section */
    .game-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    /* Language selection buttons */
    .language-selector {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 10px 0;
    }
    
    .language-btn {
        margin: 0;
        padding: 6px 12px;
        font-size: 12px;
        min-width: 50px;
        border-radius: 15px;
        border: 2px solid #007bff;
        background: white;
        color: #007bff;
        cursor: pointer;
        transition: all 0.2s ease;
        touch-action: manipulation;
    }
    
    .language-btn:active,
    .language-btn.active {
        background: #007bff;
        color: white;
        transform: scale(0.95);
    }
    
    /* Word list styling */
    .word-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
        margin: 15px 0;
    }
    
    .word-item {
        padding: 8px 12px;
        background: #e9ecef;
        border-radius: 15px;
        font-size: 12px;
        text-align: center;
        transition: all 0.2s ease;
    }
    
    .word-item.found {
        background: #d4edda;
        color: #155724;
        text-decoration: line-through;
    }
    
    /* Control buttons */
    .game-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin: 15px 0;
    }
    
    .control-btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 25px;
        border: none;
        background: #28a745;
        color: white;
        cursor: pointer;
        touch-action: manipulation;
        min-width: 100px;
        transition: all 0.2s ease;
    }
    
    .control-btn:active {
        transform: scale(0.95);
        background: #218838;
    }
    
    .control-btn:disabled {
        background: #6c757d;
        cursor: not-allowed;
    }
    
    /* Score and timer display */
    .game-stats {
        display: flex;
        justify-content: space-around;
        background: #f1f3f4;
        padding: 10px;
        border-radius: 8px;
        margin: 10px 0;
    }
    
    .stat-item {
        text-align: center;
        flex: 1;
    }
    
    .stat-value {
        font-size: 18px;
        font-weight: bold;
        color: #007bff;
    }
    
    .stat-label {
        font-size: 12px;
        color: #6c757d;
        margin-top: 2px;
    }
    
    /* Hints section */
    .hints-section {
        background: #fff3cd;
        padding: 12px;
        border-radius: 8px;
        margin: 10px 0;
        border-left: 4px solid #ffc107;
    }
    
    .hint-text {
        font-size: 13px;
        color: #856404;
        margin: 5px 0;
    }
    
    /* Responsive typography */
    h1, h2, h3 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin: 10px 0;
    }
    
    /* Improve touch targets */
    button, input, select {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent zoom on input focus */
    input, textarea, select {
        font-size: 16px;
    }
    
    /* Loading states */
    .loading {
        opacity: 0.6;
        pointer-events: none;
    }
    
    /* Animation for found words */
    @keyframes foundWord {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    .word-found-animation {
        animation: foundWord 0.3s ease-in-out;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    .puzzle-grid {
        max-width: 280px;
    }
    
    .puzzle-grid td {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .language-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 45px;
    }
    
    .word-list {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 5px;
    }
    
    .word-item {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .control-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .game-content {
        gap: 8px;
        padding: 5px;
    }
    
    .game-info {
        padding: 8px;
        gap: 8px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .game-content {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .puzzle-grid {
        max-width: 250px;
    }
    
    .puzzle-grid td {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .game-info {
        padding: 8px;
        gap: 8px;
    }
}