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

    body {
        font-family: 'Comic Sans MS', cursive;
        background: url('bg.jpg') no-repeat center center fixed;
        background-size: cover;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Preloader Styles */
    .preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('bg.jpg') no-repeat center center fixed;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        transition: opacity 0.5s ease;
    }

    .preloader.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .spinner {
        width: 80px;
        height: 80px;
        border: 8px solid #ffffff30;
        border-top: 8px solid #ffffff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .loading-text {
        color: white;
        font-size: 24px;
        margin-top: 20px;
        animation: pulse 1.5s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    .loading-animals {
        display: flex;
        gap: 10px;
        margin-top: 30px;
    }

    .loading-emoji {
        font-size: 30px;
        animation: bounce 1s ease-in-out infinite;
    }

    .loading-emoji:nth-child(1) { animation-delay: 0s; }
    .loading-emoji:nth-child(2) { animation-delay: 0.2s; }
    .loading-emoji:nth-child(3) { animation-delay: 0.4s; }

    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-20px); }
    }

    /* Game Container */
    .game-container {
        background: white;
        border-radius: 25px;
        padding: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        text-align: center;
        max-width: 600px;
        width: 90%;
        margin: 20px;
    }

    .game-title {
        font-size: 32px;
        color: #ff6b6b;
        margin-bottom: 10px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }

    .game-subtitle {
        font-size: 18px;
        color: #4ecdc4;
        margin-bottom: 20px;
    }

    .score-board {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .score-item {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        padding: 10px 20px;
        border-radius: 20px;
        font-size: 16px;
        font-weight: bold;
    }

    .question-area {
        margin-bottom: 30px;
    }

    .category-badge {
        display: inline-block;
        background: #ffeaa7;
        color: #2d3436;
        padding: 8px 16px;
        border-radius: 15px;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .question-emoji {
        font-size: 80px;
        margin: 2px 0;
        display: block;
        animation: wiggle 2s ease-in-out infinite;
    }

    @keyframes wiggle {
        0%, 100% { transform: rotate(0deg); }
        25% { transform: rotate(-5deg); }
        75% { transform: rotate(5deg); }
    }

    .question-text {
        font-size: 24px;
        color: #2d3436;
        margin: 15px 0;
    }

    .options-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 20px 0;
    }

    .option-btn {
        background: linear-gradient(135deg, #74b9ff, #0984e3);
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 15px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: inherit;
    }

    .option-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .option-btn:active {
        transform: translateY(0);
    }

    .option-btn:focus {
        outline: none;
    }

    .option-btn.correct {
        background: linear-gradient(135deg, #00b894, #00a085);
        animation: correctPulse 0.6s ease;
    }

    .option-btn.incorrect {
        background: linear-gradient(135deg, #e17055, #d63031);
        animation: shake 0.6s ease;
    }

    @keyframes correctPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-10px); }
        75% { transform: translateX(10px); }
    }

    .feedback {
        font-size: 20px;
        margin: 20px 0;
        min-height: 25px;
    }

    .feedback.correct {
        color: #00b894;
    }

    .feedback.incorrect {
        color: #d63031;
    }

    .next-btn {
        background: linear-gradient(135deg, #fd79a8, #e84393);
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 25px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        margin-top: 20px;
        transition: all 0.3s ease;
        font-family: inherit;
    }

    .next-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    .hidden {
        display: none;
    }

    .final-score {
        background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
        padding: 30px;
        border-radius: 20px;
        margin-top: 20px;
    }

    .final-score h2 {
        color: #2d3436;
        margin-bottom: 15px;
    }

    .restart-btn {
        background: linear-gradient(135deg, #00cec9, #00b894);
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 25px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        margin-top: 15px;
        transition: all 0.3s ease;
        font-family: inherit;
    }

    .restart-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    @media (max-width: 600px) {
        .game-container {
            padding: 15px;
        }
        
        .game-title {
            font-size: 24px;
        }
        
        .question-emoji {
            font-size: 60px;
        }
        
        .options-grid {
            grid-template-columns: 1fr;
        }
    }
