Horseracing in the United States has been in decline for several decades in the face of challenges that include an aging fan base and expanded gambling opportunities across the country as more states have welcomed lotteries, tribal gaming or have legalized commercial casinos.