/* ============================================================
   DEFAULT BROADCAST STATE
   ============================================================ */
(function () {
  const STANDINGS = [
    { car: "01", name: "Wade Moody",        shop: "Firepunk Diesel",      pts: 2847, d: "up" },
    { car: "22", name: "Derek Rose",        shop: "Maryland Performance", pts: 2790, d: "up" },
    { car: "7",  name: "Lavon Miller",      shop: "Power Driven Diesel",  pts: 2731, d: "dn" },
    { car: "14", name: "Ben Shadday",       shop: "Stainless Diesel",     pts: 2698, d: "up" },
    { car: "5",  name: "Johnny Gilbert",    shop: "D&J Precision",        pts: 2655, d: "same" },
    { car: "31", name: "Cody Sickler",      shop: "Wagler Competition",   pts: 2604, d: "up" },
    { car: "08", name: "Enrique Renteria",  shop: "Limitless Diesel",     pts: 2570, d: "dn" },
    { car: "44", name: "Trent Pope",        shop: "Hardway Performance",  pts: 2519, d: "up" },
    { car: "12", name: "Garrett Thompson",  shop: "Thoroughbred Diesel",  pts: 2488, d: "same" },
    { car: "9",  name: "Dustin Jackson",    shop: "Calibrated Power",     pts: 2441, d: "dn" },
    { car: "63", name: "Mason Hale",        shop: "Bullet Proof Diesel",  pts: 2402, d: "up" },
    { car: "17", name: "Cole Whitlow",      shop: "Freedom Racing",       pts: 2366, d: "dn" },
    { car: "28", name: "Jared Alderson",    shop: "No Limit Mfg",         pts: 2310, d: "same" },
    { car: "3",  name: "Brett Kackley",     shop: "Dirty Hooker Diesel",  pts: 2287, d: "up" },
    { car: "55", name: "Tyler Fenwick",     shop: "FASS Fuel Systems",    pts: 2244, d: "dn" },
    { car: "6",  name: "Marcus Webb",       shop: "Iron Horse Diesel",    pts: 2198, d: "up" },
    { car: "40", name: "Riley Stamper",     shop: "Suncoast Diesel",      pts: 2150, d: "same" },
    { car: "11", name: "Devon Pratt",       shop: "Industrial Injection", pts: 2103, d: "dn" },
    { car: "27", name: "Austin Crowe",      shop: "Exergy Performance",   pts: 2061, d: "up" },
    { car: "88", name: "Hunter Vance",      shop: "S&S Diesel Motorsport",pts: 2019, d: "dn" },
  ];

  const TICKER = [
    { tag: "Record", text: "Wade Moody resets the dyno mark — 3,142 HP on the rollers" },
    { tag: "Drag", text: "Lavon Miller runs a 5.41 @ 1/8 mile, quickest pass of the weekend" },
    { tag: "Standings", text: "Just 57 points separate the top two heading into the sled pull" },
    { tag: "Pull", text: "Ben Shadday hooks a full pull at 332 feet on the dirt" },
    { tag: "Tech", text: "Inspection complete — all 20 competitors cleared for final round" },
    { tag: "Weather", text: "Track temp 91°F · density altitude 1,240 ft · clear skies" },
  ];

  const STATE = {
    theme: "apex",
    discipline: "dyno",     // dyno | drag | pull
    visible: {
      bug: true, run: true, standings: true, lower: true,
      upnext: true, ticker: true, sponsor: true, matchup: false, intermission: false,
    },
    bug: {
      title: "Ultimate Callout Challenge",
      sub: "2026 · Indianapolis, IN",
    },
    run: {
      round: "Final Round · Dyno",
      name: "Wade Moody",
      car: "01",
      shop: "Firepunk Diesel",
      // dyno
      hp: "3142", tq: "3760", boost: "118",
      // drag
      et: "5.412", mph: "168.4", rt: "0.021",
      // pull
      dist: "332", hook: "Full Pull", weight: "8,000",
    },
    lower: {
      tag: "Now Competing",
      name: "Wade Moody",
      car: "01",
      shop: "Firepunk Diesel",
      truck: "'06 Dodge Ram 2500",
      home: "Bremen, IN",
    },
    upnext: { label: "On Deck", name: "Derek Rose", car: "22" },
    matchup: {
      klass: "5.90 Index",
      round: "Round 1",
      tag: "Up Next",
      left:  { car: "01", name: "Wade Moody",  home: "Bremen, IN",    truck: "'06 Ram 2500",  dial: "5.901" },
      right: { car: "22", name: "Derek Rose",  home: "Hagerstown, MD", truck: "'05 Ram 3500",  dial: "5.898" },
      next: {
        klass: "6.40 Index",
        left:  { car: "14", name: "Ben Shadday" },
        right: { car: "31", name: "Cody Sickler" },
      },
    },
    standings: {
      title: "Overall Standings",
      meta: "After Round 2 of 4",
      highlight: 0,           // index of highlighted (me) row, -1 for none
      rows: STANDINGS,
    },
    ticker: { label: "Live Updates", speed: 38, items: TICKER },
    sponsor: { label: "Presented By", slots: 3 },
    intermission: {
      eyebrow: "Up Next",
      title: "Sled Pull Finals",
      sub: "Track opens following a short intermission",
      clockMin: 12,
      clockSec: 0,
    },
  };

  window.UCC_DEFAULT = STATE;
})();
