 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 50%, #1e3a8a 100%);
            min-height: 100vh;
            color: #1f2937;
            overflow-x: hidden;
            position: relative;
        }

        /* Animated background cells */
        .floating-cell {
            position: absolute;
            font-size: 20px;
            opacity: 0.3;
            animation: float 8s infinite linear;
            pointer-events: none;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.3;
            }
            90% {
                opacity: 0.3;
            }
            100% {
                transform: translateY(-100px) rotate(360deg);
                opacity: 0;
            }
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            position: relative;
            z-index: 10;
        }

        .header {
            text-align: center;
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 20px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .header h1 {
            font-size: 2.5rem;
            color: #2d5a27;
            margin-bottom: 10px;
        }

        .progress-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin: 20px 0;
            background: rgba(255, 255, 255, 0.9);
            padding: 20px;
            border-radius: 15px;
        }

        .plant-progress {
            font-size: 3rem;
            transition: all 0.5s ease;
        }

        .progress-bar {
            flex: 1;
            height: 20px;
            background: #e5e7eb;
            border-radius: 10px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #22c55e, #16a34a);
            width: 0%;
            transition: width 0.5s ease;
            border-radius: 10px;
        }

        .difficulty-selector {
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 20px;
            margin-bottom: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .difficulty-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .difficulty-btn {
            padding: 15px 30px;
            border: none;
            border-radius: 15px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 150px;
        }

        .difficulty-btn.easy {
            background: #dcfce7;
            color: #166534;
            border: 2px solid #22c55e;
        }

        .difficulty-btn.medium {
            background: #fef3c7;
            color: #92400e;
            border: 2px solid #f59e0b;
        }

        .difficulty-btn.hard {
            background: #fecaca;
            color: #991b1b;
            border: 2px solid #ef4444;
        }

        .difficulty-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .quiz-container {
            background: rgba(255, 255, 255, 0.95);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            display: none;
        }

        .question-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .question-emoji {
            font-size: 2.5rem;
        }

        .question-text {
            font-size: 1.3rem;
            font-weight: 600;
            color: #1f2937;
        }

        .answers {
            display: grid;
            gap: 15px;
            margin: 30px 0;
        }

        .answer-btn {
            padding: 20px;
            border: 2px solid #d1d5db;
            border-radius: 15px;
            background: #f9fafb;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.1rem;
            text-align: left;
        }

        .answer-btn:hover {
            border-color: #22c55e;
            background: #f0fdf4;
            transform: translateY(-2px);
        }

        .answer-btn.correct {
            background: #dcfce7;
            border-color: #22c55e;
            color: #166534;
        }

        .answer-btn.incorrect {
            background: #fecaca;
            border-color: #ef4444;
            color: #991b1b;
        }

        .next-btn {
            background: linear-gradient(135deg, #22c55e, #16a34a);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 15px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            display: none;
            margin: 20px auto;
        }

        .next-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
        }

        .completion-screen {
            background: rgba(255, 255, 255, 0.95);
            padding: 50px;
            border-radius: 20px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            display: none;
            position: relative;
            overflow: hidden;
        }

        .badge {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
            padding: 30px;
            border-radius: 20px;
            margin: 30px 0;
            font-size: 1.5rem;
            font-weight: bold;
            box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
        }

        .floating-leaf {
            position: absolute;
            font-size: 30px;
            animation: floatLeaf 3s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes floatLeaf {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
                opacity: 0.8;
            }
            50% {
                transform: translateY(-20px) rotate(10deg);
                opacity: 1;
            }
        }

        .restart-btn {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 15px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 20px;
        }

        .restart-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
        }

        /* Mobile responsiveness for all screen sizes */
        @media (max-width: 480px) {
            .container {
                padding: 10px;
                margin: 0;
            }
            
            .header {
                padding: 20px 15px;
                margin-bottom: 20px;
            }
            
            .header h1 {
                font-size: 1.8rem;
                line-height: 1.2;
            }
            
            .header p {
                font-size: 0.9rem;
                margin-top: 10px;
            }
            
            .progress-container {
                flex-direction: column;
                gap: 15px;
                padding: 15px;
                text-align: center;
            }
            
            .plant-progress {
                font-size: 2.5rem;
            }
            
            .progress-bar {
                width: 100%;
                height: 15px;
            }
            
            .difficulty-selector {
                padding: 20px 15px;
                margin-bottom: 20px;
            }
            
            .difficulty-selector h2 {
                font-size: 1.5rem;
                margin-bottom: 10px;
            }
            
            .difficulty-selector p {
                font-size: 0.9rem;
            }
            
            .difficulty-buttons {
                flex-direction: column;
                align-items: center;
                gap: 15px;
            }
            
            .difficulty-btn {
                width: 100%;
                max-width: 280px;
                padding: 18px 20px;
                font-size: 1rem;
            }
            
            .quiz-container {
                padding: 20px 15px;
            }
            
            .question-header {
                flex-direction: column;
                text-align: center;
                gap: 10px;
                margin-bottom: 20px;
            }
            
            .question-emoji {
                font-size: 2rem;
            }
            
            .question-text {
                font-size: 1.1rem;
                line-height: 1.4;
            }
            
            .answers {
                gap: 12px;
                margin: 25px 0;
            }
            
            .answer-btn {
                padding: 18px 15px;
                font-size: 1rem;
                line-height: 1.3;
                text-align: center;
            }
            
            .next-btn {
                width: 100%;
                max-width: 200px;
                padding: 18px 25px;
                font-size: 1rem;
            }
            
            .completion-screen {
                padding: 30px 15px;
            }
            
            .completion-screen h1 {
                font-size: 1.8rem;
                margin-bottom: 20px;
            }
            
            .badge {
                padding: 25px 15px;
                font-size: 1.2rem;
                margin: 25px 0;
            }
            
            .badge div {
                font-size: 1.5rem !important;
                margin-top: 8px;
            }
            
            .restart-btn {
                width: 100%;
                max-width: 200px;
                padding: 18px 25px;
                font-size: 1rem;
            }
            
            #finalScore {
                font-size: 1.1rem !important;
            }
            
            .floating-cell {
                font-size: 16px;
            }
            
            .floating-leaf {
                font-size: 24px;
            }
        }
        
        @media (min-width: 481px) and (max-width: 768px) {
            .container {
                padding: 15px;
            }
            
            .header {
                padding: 25px 20px;
            }
            
            .header h1 {
                font-size: 2.2rem;
            }
            
            .progress-container {
                padding: 18px;
                gap: 18px;
            }
            
            .plant-progress {
                font-size: 2.8rem;
            }
            
            .difficulty-selector {
                padding: 25px 20px;
            }
            
            .difficulty-buttons {
                flex-direction: column;
                align-items: center;
                gap: 18px;
            }
            
            .difficulty-btn {
                width: 100%;
                max-width: 300px;
                padding: 16px 25px;
            }
            
            .quiz-container {
                padding: 30px 20px;
            }
            
            .question-header {
                gap: 12px;
            }
            
            .question-emoji {
                font-size: 2.2rem;
            }
            
            .question-text {
                font-size: 1.2rem;
            }
            
            .answer-btn {
                padding: 16px 18px;
                font-size: 1.05rem;
            }
            
            .completion-screen {
                padding: 40px 20px;
            }
        }
        
        @media (min-width: 769px) and (max-width: 1024px) {
            .container {
                padding: 20px;
                max-width: 700px;
            }
            
            .header h1 {
                font-size: 2.3rem;
            }
            
            .difficulty-buttons {
                gap: 15px;
            }
            
            .quiz-container, .completion-screen {
                padding: 35px;
            }
        }
        
        /* Landscape orientation adjustments for mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            .header {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .header h1 {
                font-size: 1.6rem;
            }
            
            .progress-container {
                padding: 12px;
                gap: 12px;
            }
            
            .plant-progress {
                font-size: 2rem;
            }
            
            .difficulty-selector {
                padding: 20px 15px;
            }
            
            .difficulty-buttons {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .difficulty-btn {
                flex: 1;
                min-width: 140px;
                max-width: 180px;
                padding: 12px 15px;
                font-size: 0.9rem;
            }
            
            .quiz-container {
                padding: 20px 15px;
            }
            
            .question-header {
                flex-direction: row;
                text-align: left;
            }
            
            .completion-screen {
                padding: 25px 15px;
            }
            
            .badge {
                padding: 20px 15px;
                font-size: 1.1rem;
            }
        }
        
        /* Very small screens (older phones) */
        @media (max-width: 320px) {
            .header h1 {
                font-size: 1.5rem;
            }
            
            .plant-progress {
                font-size: 2rem;
            }
            
            .question-emoji {
                font-size: 1.8rem;
            }
            
            .question-text {
                font-size: 1rem;
            }
            
            .answer-btn {
                padding: 15px 12px;
                font-size: 0.95rem;
            }
            
            .difficulty-btn {
                padding: 15px 18px;
                font-size: 0.95rem;
            }
            
            .badge {
                font-size: 1rem;
            }
            
            .badge div {
                font-size: 1.3rem !important;
            }
        }