{
  "key": "speed_flags",
  "name": "Speed Flags",
  "nameAr": "سرعة الأعلام",
  "icon": "⚡",
  "category": "flags",
  "description": "A country name is shown — tap the correct flag as fast as you can!",
  "descriptionAr": "يظهر لك اسم دولة — اضغط على العلم الصحيح بأسرع وقت!",
  "version": "1.0.0",
  "displayOrder": 25,
  "minPlayers": 1,
  "maxPlayers": 20,
  "showBottomTabBar": true,
  "settingsGroups": [
    { "key": "gameplay", "labelAr": "اللعب", "icon": "🎯" },
    { "key": "scoring", "labelAr": "النقاط", "icon": "💰" },
    { "key": "display", "labelAr": "العرض", "icon": "📺" },
    { "key": "admin", "labelAr": "الأدمن", "icon": "🛡️" }
  ],
  "settings": [
    {
      "key": "questionCount",
      "type": "number",
      "label": "Number of Questions",
      "labelAr": "عدد الأسئلة",
      "icon": "📝",
      "group": "gameplay",
      "default": 15,
      "min": 5,
      "max": 50,
      "step": 1
    },
    {
      "key": "timeLimit",
      "type": "number",
      "label": "Time per Question (sec)",
      "labelAr": "وقت الإجابة (ثانية)",
      "icon": "⏱️",
      "group": "gameplay",
      "default": 7,
      "min": 3,
      "max": 20,
      "step": 1
    },
    {
      "key": "continentFilter",
      "type": "select",
      "label": "Continent Filter",
      "labelAr": "تصفية حسب القارة",
      "icon": "🌍",
      "group": "gameplay",
      "default": "all",
      "options": [
        { "value": "all", "label": "All Continents", "labelAr": "جميع القارات" },
        { "value": "africa", "label": "Africa", "labelAr": "أفريقيا" },
        { "value": "asia", "label": "Asia", "labelAr": "آسيا" },
        { "value": "europe", "label": "Europe", "labelAr": "أوروبا" },
        { "value": "north_america", "label": "North America", "labelAr": "أمريكا الشمالية" },
        { "value": "south_america", "label": "South America", "labelAr": "أمريكا الجنوبية" },
        { "value": "oceania", "label": "Oceania", "labelAr": "أوقيانوسيا" }
      ]
    },
    {
      "key": "optionCount",
      "type": "number",
      "label": "Number of Flags",
      "labelAr": "عدد الأعلام",
      "icon": "🔢",
      "group": "gameplay",
      "default": 4,
      "min": 2,
      "max": 6,
      "step": 1
    },
    {
      "key": "pointsPerQuestion",
      "type": "number",
      "label": "Points per Correct Answer",
      "labelAr": "نقاط الإجابة الصحيحة",
      "icon": "⭐",
      "group": "scoring",
      "default": 10,
      "min": 5,
      "max": 50,
      "step": 5
    },
    {
      "key": "speedBonus",
      "type": "boolean",
      "label": "Speed Bonus",
      "labelAr": "مكافأة السرعة",
      "icon": "⚡",
      "group": "scoring",
      "default": true
    },
    {
      "key": "wrongAnswerPenalty",
      "type": "number",
      "label": "Wrong Answer Penalty",
      "labelAr": "خصم الإجابة الخاطئة",
      "icon": "⛔",
      "group": "scoring",
      "default": 0,
      "min": 0,
      "max": 10,
      "step": 1
    },
    {
      "key": "showCorrectAnswer",
      "type": "boolean",
      "label": "Show Correct Answer",
      "labelAr": "عرض الإجابة الصحيحة",
      "icon": "✅",
      "group": "display",
      "default": true
    },
    {
      "key": "showLeaderboard",
      "type": "boolean",
      "label": "Show Leaderboard",
      "labelAr": "عرض لوحة المتصدرين",
      "icon": "🏆",
      "group": "display",
      "default": true
    },
    {
      "key": "leaderboardDuration",
      "type": "number",
      "label": "Leaderboard Duration (sec)",
      "labelAr": "مدة عرض لوحة النتائج (ثانية)",
      "icon": "⏳",
      "group": "display",
      "default": 3,
      "min": 2,
      "max": 15,
      "step": 1,
      "dependsOn": "showLeaderboard"
    },
    {
      "key": "adminMode",
      "type": "select",
      "label": "Admin Mode",
      "labelAr": "وضع الأدمن",
      "icon": "🎮",
      "group": "admin",
      "default": "controller",
      "options": [
        { "value": "controller", "label": "Controller", "labelAr": "متحكم" },
        { "value": "participant", "label": "Participant", "labelAr": "مشارك" }
      ]
    }
  ]
}
