# 🏍️ اختبار بي إم دبليو S1000RR: اختبر معلوماتك حول الدراجة الأسطورية

هل تعتقد أنك تعرف كل شيء عن BMW S1000RR؟ 12 سؤالاً لاختبار معلوماتك حول تاريخ وتقنية هذه الدراجة الثورية!

---

import ArticleScript from '@/components/ArticleScript';
import ArticleStyle from '@/components/ArticleStyle';


{/* Hero Section Premium */}
<div className="article-container" style={{textAlign: 'center', padding: '40px 20px'}} dir="rtl">
    <div style={{display: 'inline-block', background: 'linear-gradient(135deg, #0066cc 0%, #004999 100%)', padding: '8px 20px', borderRadius: '20px', marginBottom: '20px'}}>
        <span style={{color: 'white', fontWeight: '700', fontSize: '0.9em'}}>🏁 BMW MOTORRAD</span>
    </div>
    
    <h1 style={{fontSize: '2.5em', lineHeight: '1.2', marginBottom: '20px', background: 'linear-gradient(135deg, #ffffff 0%, #94a3b8 100%)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent', backgroundClip: 'text'}}>
        اختبار BMW S1000RR - الدراجة الأسطورية
    </h1>
    
    <p style={{fontSize: '1.2em', color: '#cbd5e1', maxWidth: '700px', margin: '0 auto 30px', lineHeight: '1.6'}}>
        من الحلبة إلى الطريق، اختبر معلوماتك حول الأيقونة الألمانية! <strong style={{color: '#0066cc'}}>12 سؤالاً</strong> حول تاريخ وتقنية وأداء BMW S1000RR.
    </p>
    
    <img src="/images/articles/bmw-s1000rr-hero.webp" alt="بي إم دبليو S1000RR الحديثة أثناء العمل" style={{width: '100%', maxWidth: '800px', borderRadius: '20px', margin: '30px auto', display: 'block', boxShadow: '0 20px 60px rgba(0, 102, 204, 0.3)'}} />
    
    <div style={{display: 'flex', gap: '15px', justifyContent: 'center', flexWrap: 'wrap', marginTop: '30px'}}>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>⚡</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>دقيقتان</div>
        </div>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>🏁</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>تقنية WSBK</div>
        </div>
        <div style={{background: 'rgba(255,255,255,0.05)', padding: '15px 25px', borderRadius: '12px', border: '1px solid rgba(255,255,255,0.1)'}}>
            <div style={{fontSize: '2em', marginBottom: '5px'}}>🔥</div>
            <div style={{fontSize: '0.9em', color: '#94a3b8'}}>205 حصان</div>
        </div>
    </div>
    
    <button id="start-quiz-bmw-s1000rr" style={{background: 'linear-gradient(135deg, #0066cc, #004999)', color: 'white', border: 'none', padding: '18px 50px', borderRadius: '50px', fontSize: '1.3em', fontWeight: '700', cursor: 'pointer', boxShadow: '0 10px 30px rgba(0, 102, 204, 0.4)', marginTop: '40px', transition: 'all 0.3s'}}>
        🚀 ابدأ الاختبار
    </button>
</div>

{/* Progress Bar */}
<div id="quiz-progress-container-bmw-s1000rr" style={{position: 'sticky', top: '0', zIndex: '100', background: 'rgba(2, 6, 23, 0.95)', backdropFilter: 'blur(10px)', padding: '15px 20px', borderBottom: '1px solid rgba(255,255,255,0.1)', display: 'none'}} dir="rtl">
    <div style={{maxWidth: '800px', margin: '0 auto'}}>
        <div style={{display: 'flex', justifyContent: 'space-between', marginBottom: '8px'}}>
            <span style={{fontSize: '0.9em', color: '#94a3b8'}} id="quiz-progress-text-bmw-s1000rr">سؤال 1/12</span>
            <span style={{fontSize: '0.9em', color: '#0066cc', fontWeight: '600'}} id="quiz-timer-bmw-s1000rr">0:00</span>
        </div>
        <div style={{height: '6px', background: 'rgba(255,255,255,0.1)', borderRadius: '10px', overflow: 'hidden'}}>
            <div id="quiz-progress-bar-bmw-s1000rr" style={{height: '100%', width: '8.33%', background: 'linear-gradient(90deg, #0066cc, #004999)', transition: 'width 0.3s ease', borderRadius: '10px'}}></div>
        </div>
    </div>
</div>

{/* Quiz Container */}
<div id="quiz-container-bmw-s1000rr" style={{display: 'none', maxWidth: '800px', margin: '40px auto', padding: '0 20px'}} dir="rtl">
    <div style={{background: 'rgba(255,255,255,0.02)', border: '1px solid rgba(255,255,255,0.1)', borderRadius: '20px', padding: '40px', marginBottom: '20px'}}>
        <div style={{display: 'flex', alignItems: 'center', gap: '15px', marginBottom: '15px'}}>
            <div id="quiz-badge-bmw-s1000rr" style={{background: 'linear-gradient(135deg, #0066cc, #004999)', minWidth: '50px', height: '50px', borderRadius: '12px', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: '1.5em', fontWeight: '800', color: 'white', flexShrink: '0'}}>1</div>
            <div id="quiz-category-bmw-s1000rr" style={{textTransform: 'uppercase', fontSize: '0.85em', letterSpacing: '1.5px', color: '#0066cc', background: 'rgba(0, 102, 204, 0.1)', padding: '6px 15px', borderRadius: '20px'}}></div>
        </div>
        
        <h3 id="quiz-quest-bmw-s1000rr" style={{fontSize: '1.4em', margin: '25px 0', lineHeight: '1.5', color: '#e2e8f0'}}></h3>
        
        <div id="quiz-options-bmw-s1000rr" style={{display: 'grid', gap: '12px', marginTop: '30px'}}></div>
        
        <div style={{textAlign: 'left', marginTop: '30px'}}>
            <button id="next-quiz-bmw-s1000rr" style={{background: 'linear-gradient(135deg, #0066cc, #004999)', color: 'white', border: 'none', padding: '15px 40px', borderRadius: '12px', fontSize: '1.1em', fontWeight: '700', cursor: 'pointer', transition: 'all 0.3s'}}>التالي ←</button>
        </div>
        
        <div style={{textAlign: 'center', marginTop: '30px', paddingTop: '20px', borderTop: '1px solid rgba(255,255,255,0.1)'}}>
            <span style={{fontSize: '1.1em', color: '#94a3b8'}}>النقاط: </span>
            <span id="quiz-points-bmw-s1000rr" style={{fontSize: '1.3em', fontWeight: '700', color: '#0066cc'}}>0</span>
        </div>
    </div>
</div>

{/* Results Panel */}
<div id="quiz-result-bmw-s1000rr" style={{display: 'none', maxWidth: '800px', margin: '60px auto', padding: '0 20px'}} dir="rtl">
    <div style={{background: 'linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 73, 153, 0.1))', border: '2px solid rgba(0, 102, 204, 0.3)', borderRadius: '24px', padding: '50px 40px', textAlign: 'center'}}>
        <div style={{fontSize: '4em', marginBottom: '20px'}} id="quiz-emoji-bmw-s1000rr">🎉</div>
        <h2 style={{fontSize: '2.2em', marginBottom: '15px'}}>النتيجة النهائية</h2>
        <div id="quiz-final-score-bmw-s1000rr" style={{fontSize: '3.5em', fontWeight: '800', background: 'linear-gradient(135deg, #0066cc, #004999)', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent', backgroundClip: 'text', marginBottom: '20px'}}></div>
        <p id="quiz-result-text-bmw-s1000rr" style={{fontSize: '1.2em', color: '#cbd5e1', marginBottom: '10px'}}></p>
        <div id="quiz-profile-bmw-s1000rr" style={{display: 'inline-block', background: 'rgba(0, 102, 204, 0.2)', padding: '12px 30px', borderRadius: '20px', marginTop: '20px'}}>
            <span style={{color: '#0066cc', fontWeight: '700', fontSize: '1.1em'}} id="quiz-profile-badge-bmw-s1000rr"></span>
        </div>

        <div style={{display: 'flex', gap: '15px', justifyContent: 'center', marginTop: '40px', flexWrap: 'wrap'}}>
            <button id="reset-quiz-bmw-s1000rr" style={{background: 'linear-gradient(135deg, #0066cc, #004999)', color: 'white', border: 'none', padding: '16px 35px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '700', cursor: 'pointer'}}>
                🔄 إعادة المحاولة
            </button>
            <a href="/dashboard" style={{background: 'rgba(255,255,255,0.05)', color: 'white', border: '2px solid rgba(255,255,255,0.2)', padding: '16px 35px', borderRadius: '12px', fontSize: '1.05em', fontWeight: '600', textDecoration: 'none', display: 'inline-block'}}>
                📊 عرض الملف الشخصي
            </a>
        </div>
    </div>
</div>

{/* Content Section */}
<div className="article-container" style={{maxWidth: '800px', margin: '60px auto', padding: '0 20px'}} dir="rtl">
    <div style={{background: 'rgba(255,255,255,0.02)', border: '1px solid rgba(255,255,255,0.1)', borderRadius: '20px', padding: '40px', marginBottom: '30px'}}>
        <h2 style={{display: 'flex', alignItems: 'center', gap: '15px', marginBottom: '20px'}}>
            <span style={{fontSize: '2em'}}>🏁</span>
            من الحلبة إلى الطريق: نشأة أيقونة
        </h2>
        <p style={{lineHeight: '1.8', color: '#cbd5e1'}}>
            تبدأ قصة BMW S1000RR على حلبات بطولة العالم للسوبر بايك (WSBK). طُوّرت للمنافسة، وصُممت بدون أي تنازلات من أجل الأداء. أدى نقل هذه التكنولوجيا من الحلبة إلى الطريق إلى ولادة دراجة نارية تسلسلية بقدرات استثنائية.
        </p>
        <p style={{lineHeight: '1.8', color: '#cbd5e1', marginTop: '15px'}}>
            منذ إطلاقها في عام 2009، تميزت S1000RR بتصميمها الجريء، وخاصة <strong>المصابيح الأمامية غير المتماثلة</strong> التي ترمز للجيل الأول، ومستوى تجهيزاتها الإلكترونية غير المسبوق في ذلك الوقت.
        </p>
    </div>
    
    <div style={{background: 'rgba(255,255,255,0.02)', border: '1px solid rgba(255,255,255,0.1)', borderRadius: '20px', padding: '40px'}}>
        <h2 style={{display: 'flex', alignItems: 'center', gap: '15px', marginBottom: '20px'}}>
            <span style={{fontSize: '2em'}}>⚙️</span>
            التكنولوجيا والأداء
        </h2>
        <ul style={{lineHeight: '1.8', color: '#cbd5e1'}}>
            <li><strong>محرك 4 أسطوانات خطي</strong> بسعة 999 سم مكعب</li>
            <li><strong>205 حصان</strong> لنسخة S1000RR</li>
            <li><strong>DTC</strong>: التحكم الديناميكي في الجر</li>
            <li>السرعة القصوى محددة بـ <strong>299 كم/ساعة</strong></li>
            <li>إطلاق نسخة <strong>M 1000 RR</strong> في عام 2020</li>
        </ul>
    </div>
</div>

{/* Social Sharing */}
<div className="action-buttons-grid" style={{maxWidth: '800px', margin: '40px auto', padding: '0 20px'}} dir="rtl">
    <a href="#" id="share-whatsapp-bmw-s1000rr" className="btn-share-whatsapp" style={{background: 'linear-gradient(135deg, #25D366, #128C7E)', color: 'white', padding: '20px', borderRadius: '16px', textDecoration: 'none', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '12px', fontWeight: '700', fontSize: '1.1em', transition: 'transform 0.2s'}}>
        📱 مشاركة عبر واتساب
    </a>
</div>


<ArticleStyle content={`

/* Fix text overflow in results */
#quiz-result-bmw-s1000rr,
#quiz-result-bmw-s1000rr p,
h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}
li, #quiz-options-bmw-s1000rr label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-container { padding: 20px 10px; }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    p { font-size: 1em; }

    #quiz-options-bmw-s1000rr label {
        padding: 12px;
        font-size: 0.95em;
    }
    
    button, a, #start-quiz-bmw-s1000rr {
        width: 100%;
        padding: 18px 20px;
        box-sizing: border-box;
        margin-bottom: 10px;
        display: block;
        text-align: center;
        white-space: normal;
    }
}

`} />

<ArticleScript content={`
window.initBmwQuiz = function() {
    if (window.initBmwQuizDone) return;
    const startBtn = document.getElementById('start-quiz-bmw-s1000rr');
    if (!startBtn) return;
    
    window.initBmwQuizDone = true;

    const questionsBMWS1000RR = [
        { category: 'العلامة التجارية', question: 'من هو مبتكر محرك BMW S1000RR؟', options: ['BMW Motorrad', 'هوندا', 'ياماها', 'دوكاتي'], answer: 'BMW Motorrad' },
        { category: 'تقنية', question: 'ما هو نوع محرك BMW S1000RR؟', options: ['4 أسطوانات خطي', '2 أسطوانة V', '3 أسطوانات', '6 أسطوانات خطي'], answer: '4 أسطوانات خطي' },
        { category: 'الموديل', question: 'ما هو اسم النسخة الأكثر قوة والموجهة للأداء من BMW S1000RR؟', options: ['S1000RR M (أو M 1000 RR)', 'S1000R', 'S1000RR Limited Edition', 'S1000XR'], answer: 'S1000RR M (أو M 1000 RR)' },
        { category: 'الأصل', question: 'ما هو بلد منشأ BMW S1000RR؟', options: ['ألمانيا', 'إيطاليا', 'اليابان', 'الولايات المتحدة'], answer: 'ألمانيا' },
        { category: 'التاريخ', question: 'في أي عام تم إطلاق الجيل الأول من BMW S1000RR؟', options: ['2009', '2011', '2013', '2015'], answer: '2009' },
        { category: 'إلكترونيات', question: 'ما اسم نظام المساعدة الإلكتروني للسائق من BMW لإدارة الجر؟', options: ['DTC (التحكم الديناميكي في الجر)', 'TC (التحكم في الجر)', 'ESP (برنامج الثبات الإلكتروني)', 'ASC (التحكم التلقائي في الثبات)'], answer: 'DTC (التحكم الديناميكي في الجر)' },
        { category: 'تشكيلة', question: 'ما هو اسم الرودستر المشتق من BMW S1000RR والمصمم للطريق؟', options: ['BMW S1000R', 'BMW S1000XR', 'BMW R1200GS', 'BMW G310R'], answer: 'BMW S1000R' },
        { category: 'القوة', question: 'ما هي القوة التقريبية لمحرك BMW S1000RR (الجيل الأخير) بالأحصنة؟', options: ['160 حصان', '180 حصان', '205 حصان', '220 حصان'], answer: '205 حصان' },
        { category: 'المنافسة', question: 'من هو السائق المعروف بكونه سفيراً مهماً لـ BMW S1000RR في منافسة WSBK؟', options: ['مارك ماركيز', 'فابيو كوارتارارو', 'توم سايكس', 'فالنتينو روسي'], answer: 'توم سايكس' },
        { category: 'تطور', question: 'في أي عام تم تقديم M 1000 RR، النسخة الأكثر تطرفاً من S1000RR؟', options: ['2020', '2021', '2019', '2018'], answer: '2020' },
        { category: 'الأداء', question: 'ما هي السرعة القصوى المعلنة لـ BMW S1000RR التسلسلية؟', options: ['299 كم/ساعة (محددة)', '315 كم/ساعة', '280 كم/ساعة', '320 كم/ساعة'], answer: '299 كم/ساعة (محددة)' },
        { category: 'المكابح', question: 'أي مكون عالي التقنية يساهم في الكبح الاستثنائي لـ S1000RR؟', options: ['ملاقط بريمبو', 'أقراص Wave', 'نظام كبح مشترك', 'كبح محرك متقدم'], answer: 'ملاقط بريمبو' }
    ];

    let currentQuestionIndexBMWS1000RR = 0;
    let scoreBMWS1000RR = 0;
    let startTimeBMWS1000RR = Date.now();
    let timerIntervalBMWS1000RR = null;

    function startTimerBMWS1000RR() {
        if (timerIntervalBMWS1000RR) clearInterval(timerIntervalBMWS1000RR);
        startTimeBMWS1000RR = Date.now();
        timerIntervalBMWS1000RR = setInterval(updateTimerBMWS1000RR, 1000);
    }

    function updateTimerBMWS1000RR() {
        const elapsed = Math.floor((Date.now() - startTimeBMWS1000RR) / 1000);
        const minutes = Math.floor(elapsed / 60);
        const seconds = elapsed % 60;
        const timerEl = document.getElementById('quiz-timer-bmw-s1000rr');
        if (timerEl) {
            timerEl.textContent = minutes + ':' + (seconds < 10 ? '0' : '') + seconds;
        }
    }

    function updateProgressBMWS1000RR() {
        const progressText = document.getElementById('quiz-progress-text-bmw-s1000rr');
        const progressBar = document.getElementById('quiz-progress-bar-bmw-s1000rr');
        const progressContainer = document.getElementById('quiz-progress-container-bmw-s1000rr');
        const badge = document.getElementById('quiz-badge-bmw-s1000rr');
        
        if (progressText) progressText.textContent = 'سؤال ' + (currentQuestionIndexBMWS1000RR + 1) + '/12';
        if (progressBar) progressBar.style.width = ((currentQuestionIndexBMWS1000RR + 1) / 12 * 100) + '%';
        if (progressContainer) progressContainer.style.display = 'block';
        if (badge) badge.textContent = (currentQuestionIndexBMWS1000RR + 1);
    }

    function startQuiz() {
        if (startBtn) startBtn.style.display = 'none';
        const quizContainer = document.getElementById('quiz-container-bmw-s1000rr');
        if (quizContainer) quizContainer.style.display = 'block';
        
        currentQuestionIndexBMWS1000RR = 0;
        scoreBMWS1000RR = 0;
        startTimerBMWS1000RR();
        showQuestionBMWS1000RR();
        
        quizContainer.scrollIntoView({ behavior: 'smooth' });
    }

    function showQuestionBMWS1000RR() {
        const question = questionsBMWS1000RR[currentQuestionIndexBMWS1000RR];
        const categoryEl = document.getElementById('quiz-category-bmw-s1000rr');
        const questEl = document.getElementById('quiz-quest-bmw-s1000rr');
        const optionsEl = document.getElementById('quiz-options-bmw-s1000rr');
        const pointsEl = document.getElementById('quiz-points-bmw-s1000rr');
        const nextBtn = document.getElementById('next-quiz-bmw-s1000rr');
        
        if (categoryEl) categoryEl.textContent = question.category;
        if (questEl) questEl.textContent = question.question;
        if (pointsEl) pointsEl.textContent = scoreBMWS1000RR;
        
        if (optionsEl) {
            optionsEl.innerHTML = '';
            question.options.forEach((opt, idx) => {
                const label = document.createElement('label');
                label.style.cssText = 'display: flex; align-items: center; gap: 15px; padding: 18px; background: rgba(255,255,255,0.03); border: 2px solid rgba(255,255,255,0.1); border-radius: 12px; cursor: pointer; transition: all 0.2s;';
                label.innerHTML = '<input type="radio" name="quiz-option-bmw-s1000rr" value="' + opt + '" style="width: 20px; height: 20px; accent-color: #0066cc;" /><span style="font-size: 1.05em;">' + opt + '</span>';
                optionsEl.appendChild(label);
            });
        }
        
        if (nextBtn) {
            nextBtn.onclick = answerQuizBMWS1000RR;
            if (currentQuestionIndexBMWS1000RR === questionsBMWS1000RR.length - 1) {
                nextBtn.textContent = '✅ إنهاء';
                nextBtn.style.background = 'linear-gradient(135deg, #22c55e, #16a34a)';
            } else {
                nextBtn.textContent = 'التالي ←';
                nextBtn.style.background = 'linear-gradient(135deg, #0066cc, #004999)';
            }
        }
        
        updateProgressBMWS1000RR();
    }

    function answerQuizBMWS1000RR() {
        const selected = document.querySelector('input[name="quiz-option-bmw-s1000rr"]:checked');
        if (!selected) {
            alert('يرجى اختيار إجابة');
            return;
        }
        
        const question = questionsBMWS1000RR[currentQuestionIndexBMWS1000RR];
        if (selected.value === question.answer) {
            scoreBMWS1000RR++;
        }
        
        currentQuestionIndexBMWS1000RR++;
        
        if (currentQuestionIndexBMWS1000RR < questionsBMWS1000RR.length) {
            showQuestionBMWS1000RR();
        } else {
            endQuizBMWS1000RR();
        }
    }

    function endQuizBMWS1000RR() {
        if (timerIntervalBMWS1000RR) clearInterval(timerIntervalBMWS1000RR);
        
        const quizContainer = document.getElementById('quiz-container-bmw-s1000rr');
        const resultDiv = document.getElementById('quiz-result-bmw-s1000rr');
        const scoreEl = document.getElementById('quiz-final-score-bmw-s1000rr');
        const textEl = document.getElementById('quiz-result-text-bmw-s1000rr');
        const profileEl = document.getElementById('quiz-profile-badge-bmw-s1000rr');
        const emojiEl = document.getElementById('quiz-emoji-bmw-s1000rr');
        const progressContainer = document.getElementById('quiz-progress-container-bmw-s1000rr');
        
        if (quizContainer) quizContainer.style.display = 'none';
        if (progressContainer) progressContainer.style.display = 'none';
        
        let pilotProfile = "مشاهد";
        let emoji = "📚";
        let message = "";
        
        if (scoreBMWS1000RR === 12) {
            pilotProfile = "بطل العالم WSBK";
            emoji = "🏆";
            message = "مثالي! أنت خبير مطلق في S1000RR!";
        } else if (scoreBMWS1000RR >= 10) {
            pilotProfile = "سائق مؤكد";
            emoji = "🔥";
            message = "ممتاز! أنت تعرف هذه الدراجة الخارقة جيدًا!";
        } else if (scoreBMWS1000RR >= 6) {
            pilotProfile = "عاشق BMW";
            emoji = "👍";
            message = "درجة جيدة! أنت هاوٍ مطلع!";
        } else {
            pilotProfile = "مشاهد";
            emoji = "📚";
            message = "استمر في اكتشاف عالم BMW Motorrad!";
        }
        
        try {
            if (typeof window.save2RoueQuizResult === 'function') {
                window.save2RoueQuizResult(scoreBMWS1000RR, 12, 'BMW S1000RR Quiz', pilotProfile);
            }
        } catch(e) { console.error(e); }
        
        if (scoreEl) scoreEl.textContent = scoreBMWS1000RR + '/12';
        if (textEl) textEl.textContent = message;
        if (profileEl) profileEl.textContent = '🎖️ ' + pilotProfile;
        if (emojiEl) emojiEl.textContent = emoji;
        
        const shareBtn = document.getElementById('share-whatsapp-bmw-s1000rr');
        if (shareBtn) {
            const shareText = encodeURIComponent('لقد حصلت على ' + scoreBMWS1000RR + '/12 في اختبار BMW S1000RR على 2roue.com! 🏍️');
            shareBtn.href = 'https://wa.me/?text=' + shareText;
        }
        
        if (resultDiv) {
            resultDiv.style.display = 'block';
            resultDiv.scrollIntoView({ behavior: 'smooth', block: 'center' });
        }
    }

    if (startBtn) startBtn.onclick = startQuiz;
    
    const nextBtn = document.getElementById('next-quiz-bmw-s1000rr');
    if (nextBtn) nextBtn.onclick = answerQuizBMWS1000RR;

    const resetBtn = document.getElementById('reset-quiz-bmw-s1000rr');
    if (resetBtn) {
        resetBtn.onclick = function() {
            document.getElementById('quiz-result-bmw-s1000rr').style.display = 'none';
            document.getElementById('start-quiz-bmw-s1000rr').style.display = 'inline-block';
            window.scrollTo({ top: 0, behavior: 'smooth' });
        };
    }
};

if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', window.initBmwQuiz);
} else {
    window.initBmwQuiz();
}
setTimeout(function() {
    if(!window.initBmwQuizDone && window.initBmwQuiz) window.initBmwQuiz();
}, 500);

window.startTimerBMWS1000RR = function() {}; 
window.startQuizBMWS1000RR = function() {}; 
window.restartQuizBMWS1000RR = function() {};
`} />

