Taiza Carine da Costa got her first taste of gambling when she was just 9.
Growing up in the rundown fringes of Rio de Janeiro, Ms. CostaтАЩs godparents would send her down the block, a few coins in hand, to bet on a popular lottery that, though illegal, has been a staple of life in Brazil for over a century.
The habit stuck and, as an adult, she would bet daily on the game, in which players place wagers on animals represented by sets of numbers. Like many Brazilians, whenever she dreamed of a creature, she saw it as a sign to bet on the lottery, known as тАЬjogo do bichoтАЭ тАФ or animal game тАФ in Portuguese.
тАЬIf I dream, I bet,тАЭ said Ms. Costa, 37, a clothing vendor.
But, lately, Ms. Costa is turning to a different game of chance that is at her fingertips around the clock: a digital slot machine offering big rewards if she can draw three matching symbols.
Tigrinho, or Little Tiger in Portuguese, mimics a popular Chinese slots game and has led the way as mobile betting apps have exploded in popularity since Brazil legalized digital gambling in 2018. Ms. Costa plays Little Tiger every day and her gambling тАФ and her losses тАФ have picked up as a result. She estimates she has lost roughly $80,000 over two years on the app.
тАЬItтАЩs hard to stop,тАЭ she said.
Online betting games, from digital casinos to soccer wagers, have sparked a fever in Latin AmericaтАЩs largest nation, fueling a fierce debate тАФ like elsewhere in the world тАФ over how to regulate the booming industry and shield lower-income people who often pile on debt or lose big chunks of meager earnings betting.
The gambling frenzy is also threatening BrazilтАЩs animal lottery, which has links to murderous mobs and has been an unshakable part of popular culture since it was created in Rio de Janeiro in the 1800s and took off across the country.
While decades of crackdowns have failed to stamp out the lottery and the criminal gangs that run it, the analog game now appears to be in the throes of an existential crisis as fewer Brazilians are willing to physically place bets with a local bookie.
Digital alternatives тАФ offering bigger jackpots and infinite chances тАФ now draw over $23 billion in wagers each year, about ten times more than the animal lottery, according to the Legal Games Institute, a nonprofit that studies gambling in Brazil.
While the analog game has six draws per day, online gambling is nonstop.
тАЬThe Brazilian gambler now has a casino in his pocket,тАЭ said Magno Jos├й Santos de Souza, the instituteтАЩs president.
The animal lottery, on the other hand, тАЬhasnтАЩt been able to renew its base,тАЭ said Luiz Ant├┤nio Simas, a Rio historian who has written a book about the game.
The game was created in the 1890s by a baron seeking to draw more visitors to his newly-created zoo in the Vila Isabel neighborhood of Rio. People with admission tickets were entered into a raffle, with an animal drawn at the end of each day.
The lottery soon became more popular than the zoo itself, and similar games of chance began popping up across the city. Fearing the game would hurt government lotteries, authorities banned it three years after it was created.
But the lotteryтАЩs advance was unstoppable. Before long, bookies taking bets outside bars and newspaper stands became a fixture across Brazil, with the game reaching even the most remote corners of the Amazon rainforest.
By the 1970s, the animal lottery had grown into a multimillion dollar business fueling bloody disputes among RioтАЩs mafias, as they wrestled for territorial control. The gambling bosses eventually divvied up the city тАФ and the country тАФ into zones.
To protect their illicit dealings, lottery kingpins bribed judges, politicians and police officials. In working-class areas of Rio, they won hearts and minds by buying local soccer teams, funding lavish Carnival parades and handing out Christmas presents.
тАЬThey built this playful, fun facade,тАЭ said F├бbio Corr├кa, a federal prosecutor in Rio de Janeiro who leads a task force combating organized crime. тАЬThey wanted to create this image of Good Samaritans.тАЭ
Over the years, the authorities repeatedly tried to crack down on the mafia-run lottery and, in 1993, they finally had a breakthrough: a judge sentenced 14 lottery bosses to six years in prison. But, before long, many of the gameтАЩs most powerful kingpins were out, free to expand their empires.
On a recent afternoon in the neighborhood of Vila Isabel, the birthplace of the animal lottery, three bookies тАФ each manning a different corner тАФ took bets from regulars. Few of them looked younger than 50.
тАЬI always bet on the pig or the tiger,тАЭ said Germano da Silva, 71, a retired publicist. Digging into his wallet, he pulled out an old ticket that won him $450 the week before. тАЬMy children donтАЩt know how to play,тАЭ he added. тАЬWhenever they want to bet, they come to me.тАЭ
For newcomers, the lotteryтАЩs rules can seem daunting. Players bet on combinations of two-, three- or four-digit numbers, which are linked to any one of 25 animals, from a cow to a monkey. Wagers start at a few cents, but payoffs can reach into the thousands of dollars.
Most animal lottery players, though, are not placing bets in the hopes of getting rich, according to Mr. Simas, the historian. тАЬThey want to win a little money for a beer at the end of the day,тАЭ he said. тАЬPlaying the game is part of street culture.тАЭ
In Brazil, a deeply superstitious country, bets in the animal lottery have long been drawn from dreams, lucky animals, or the dates of big life events like birthdays, deaths or marriages.
тАЬEach person has their favorite play,тАЭ said Nena Coelho, a 60-year-old secretary who was betting on the dog, inspired by a stray that had followed her friend home.
While most gambling, including casinos and slot machines, is barred in Brazil, lawmakers legalized digital games but delayed drafting concrete oversight rules. Experts say the lag has opened the door for thousands of unregulated platforms, some of them fraudulent, to flood Brazil.
This echoes the experiences of countries like Britain and the United States, where legislators, eager to capture tax revenues, were quick to legalize digital gambling but were later left racing to impose regulations, said Lia Nower, director of the Center for Gambling Studies at Rutgers University.
тАЬMost legislators donтАЩt have a real awareness that this is potentially addictive,тАЭ Ms. Nower said.
Digital games were an instant hit in Brazil, a nation of 203 million with one of the worldтАЩs highest rates of internet use. Platforms promising a fast path out of poverty quickly gained popularity among low-income people in a country marked by deep inequality.
Colorful and childlike, the apps were often promoted by social media influencers who told followers that they could win tens of thousands in cash on sites that turned out to be rigged. (Some were later arrested, accused of tricking fans into betting on unauthorized platforms.)
BrazilтАЩs government estimates that nearly a quarter of the population started gambling online over the last five years. Brazilians now spend about $3.5 billion each month on online wagers, with sports betting making up a huge segment in soccer-crazy Brazil, according to figures from the countryтАЩs central bank.
Rushing to bring the sector under control, Brazilian authorities began enforcing a new law this month requiring betting companies to pay a fee and comply with federal rules on fraud, responsible marketing and money laundering.
The animal lottery remains illegal, but the shift to digital betting has opened new revenue streams.
Lottery bosses are using legal betting sites to launder money amassed from illicit activities like the animal lottery, the authorities say.
тАЬThey are infiltrating the digital space,тАЭ Mr. Corr├кa said. тАЬThey want to give an air of legality to activities that, at the end of the day, are illegal in origin.тАЭ
But even as many move on from the animal lottery, there are still those who are not quite ready to let go.
Matheus Resende, 30, remembers his father teaching him how to calculate odds and craft bets. тАЬHeтАЩs the Google of the animal lottery,тАЭ said Mr. Resende, a beverage distributor from Rio.
These days, Mr. Resende is one of millions of Brazilians placing digital wagers on soccer games. Still, he has a soft spot for the animal lottery and, every week, he stops by his local bookie too.
He knows about the gameтАЩs criminal links, he says, but heтАЩs still sad to see it fading away.
тАЬItтАЩs a family tradition,тАЭ he said. тАЬSo thereтАЩs a certain nostalgia there.тАЭ