Alden Ehrenreich as Han Solo in the upcoming movie “Solo: A Star Wars Story.” (Courtesy Lucasfilm Ltd.)

In a lawsuit over rights to a card game with a pivotal role in the “Star Wars” saga, Lucasfilm Ltd. won an early battle against app maker Ren Ventures Ltd. Tuesday.

A federal judge in San Francisco declined to dismiss Lucasfilm's claims based on Ren Ventures' use of various trademarks, primarily centered on the game “Sabacc.”

In the “Star Wars” universe, Han Solo won the iconic Millennium Falcon spaceship by beating Lando Calrissian in a game of Sabacc, a fact first noted in a draft of the screenplay for “Star Wars V: The Empire Strikes Back” and then the novelization of the 1980 film. A trilogy of novels about Calrissian published in 1983 included an explanation of the blackjack-line game where players seek a hand as close as possible to positive or negative 23 without going over.

Lucasfilm sued Ren Ventures last year claiming the company's “Sabacc” app violated the film company's intellectual property rights. The Sabacc app page in the Apple App Store, Lucasfilm's lawyers at New York's Shapiro Arato pointed out, makes numerous “Star Wars” allusions, including “From a Cantina far, far away to your mobile device, welcome to the world's largest Sabacc site” and “Go bust? Don't worry, we won't take your ship!”

But the app maker's lawyers at Hunton & Williams earlier this year asked U.S. District Judge Richard Seeborg of the Northern District of California, who is overseeing the case, to dismiss Lucasfilm's federal and common-law trademark infringement and unfair competition claims. Trademarks, the Hunton lawyers claimed in their motion to dismiss, “distinguish the source of goods and services in commerce.”

“As a matter of logic, it is impossible to offer fictional goods and services in commerce because they do not exist,” they wrote.

The app maker's lawyers also pointed out the parties are fighting a parallel battle over a Sabacc trademark Ren Ventures registered in 2015 in a forum far, far away: the Trademark Trial and Appeal Board.

But in Tuesday's order, Seeborg found Lucasfilm had sufficiently shown its use of Sabacc marks predated the app maker's. The judge also found that in the “Star Wars” context, Sabacc doesn't simply function as a mark for a fictional game. Lucasfilm, the judge pointed out, profits from all sorts of merchandise based on its broad and fanciful “Star Wars” universe.

“The crux of Lucasfilm's claims is that defendants use the 'Sabacc' mark with the intention that consumers associate their unlicensed product with the 'Star Wars' franchise and its licensed products,” Seeborg wrote.

Shannon Broome, a lawyer for Ren Ventures at Hunton, didn't immediately respond to a message Wednesday. But this week, the app maker struck back at Lucasfilm, filing a lawsuit of its own against the film studio and the Denny's restaurant chain. The suit, filed in the Northern District of California, claims that a Sabacc-related promotion partnership between Lucasfilm and Denny's for the upcoming Han Solo movie violates Ren Ventures' registered trademark.

Lucasfilm's lawyers, Fabien Thayamballi and Cynthia Arato of Shapiro Arato, didn't immediately respond to email messages seeking comment.