BANGOR — Maine Republican faithful gathered in Bangor on Friday for the opening day of a state convention filled with behind-the-scenes political jockeying over delegates as the official party business played out on stage.

With just 23 delegates at stake in the national fight for the Republican nomination, Maine represented a relatively small prize during last month’s party caucuses.

Yet the increasing likelihood of a contested convention means that the campaigns for Donald Trump, Ted Cruz and John Kasich continue to fight for every last delegate in Maine – and in other states – should Trump fail to secure the nomination in the first round of voting at the Republican National Convention.

That dynamic led to fervent and, at times, tense discussions between campaign supporters in Maine – including Gov. Paul LePage – on Friday ahead of Saturday’s delegate-election process.

“Everybody should get a good night’s rest and I think we will find out where things stand in the morning,” Sen. Mason Garrett, R-Lisbon Falls, a state leader of the Cruz campaign, said late Friday. “Maine’s 23 delegates could make a difference for (nominating) President Trump or President Cruz, and obviously I am hoping for the latter.”

LePage, Maine’s top Republican, was playing a key role in attempts to broker an as-yet elusive deal between the warring factions that would be favorable to Trump, his candidate.

LePage wanted a “unity slate” of Maine delegates to the Republican National Convention that would preserve the distribution of delegates – 12 to Ted Cruz, nine to Trump and two to John Kasich – in the event of a contested convention. But Cruz supporters weren’t on board.

“I think we should end tomorrow with that batch and I’m asking the Maine people to be fair,” LePage said on the Howie Carr radio show before a speech by former presidential contender and Trump supporter Dr. Ben Carson.

That sets the stage for an unpredictable second day of the state convention.

On Saturday, convention-goers will elect 20 of the 23 delegates Maine will send to the Republican National Convention in Ohio this July. With their national party fractured and a contested convention looking increasingly likely, the three campaigns were trying to ensure they’ll be sending solid supporters to Ohio.

Maine’s 23 delegates are “bound” by the outcome of the March presidential caucuses during the first round of voting at the Republican National Convention. That means Cruz is guaranteed to receive 12 delegates, Trump will get nine and Kasich will receive two.

But if Trump, the current front-runner, fails to receive majority support during that first round, Maine’s delegates and those from many other states will be free to change their votes during subsequent rounds. That has made what is typically a routine delegate-selection process in Maine anything but.

Much of the talk leading into Maine’s Republican convention was whether campaigns could lock-up loyal supporters, perhaps through slates of delegates.

Roughly 200 people announced plans to seek the 20 delegate seats up for election on Saturday (the other three are held by the state’s two Republican National Committee representatives and the party chairman.

Rick Bennett, the party chairman, said he knew of a few slates being discussed. There was also talk of a “unity slate” of Trump-Cruz supporters. For his part, Bennett predicted during the afternoon that delegates will be elected individually.

“I expect tomorrow that we’ll do it the old-fashioned way,” Bennett said.

Rep. Ken Fredette, a Newport Republican who was presiding over the convention, also said he expected attendees would “vote for people they know” rather than a slate handed to them by a campaign. After all, Fredette said, Mainers “don’t like being told what to do.”

But Fredette also said that LePage has significant pull among the party faithful gathered in Bangor. And that pull could affect the outcome of Saturday’s events.

“I think that one of the take-aways of this convention is the governor continues to be very popular in the Republican party,” Fredette said.

At dinnertime Friday, thousands of Republicans poured back into the Cross Insurance Center to hear from Carson, a retired neurosurgeon whose campaign started strong but faltered in the early primary and caucus states.

Carson was the first of three surrogates to speak on behalf of the three remaining presidential contenders. On Saturday, former candidate and California businesswoman Carly Fiorina will speak on Cruz’s behalf. Former New Hampshire Gov. John Sununu, meanwhile, will stump for Kasich.

LePage and U.S. Sen. Susan Collins – both of whom attended Carson’s speech – as well as 2nd District Rep. Bruce Poliquin will also address the crowd on Saturday.

Despite the uncertainty and vitriol at the national level, this year’s Maine Republican state convention was widely expected to be less contentious than the one held in 2012. That year, supporters of libertarian-Republican Ron Paul gained control of the convention proceedings despite Mitt Romney winning the majority of caucus votes.

They elected 20 Paul supporters to the national convention in Tampa that summer. But in a political dust-up that spilled onto the convention floor, half of those delegates were ultimately stripped of their seats by the national party over the angry objections of Paul supporters in Maine and other states.

This year, Maine’s delegates are bound by state party rules to honor the results of the presidential caucuses in March to avoid a repeat of the chaotic 2012 state convention.

Earlier Friday, convention attendees approved a party platform full of traditional party priorities – such as protecting gun rights and the “sanctity” of life – but that also opposes same-sex marriage and the “federalization” of the North Woods.

Although non-binding and largely symbolic, the platform is supposed to outline the policy priorities of the party. Yet a brief but spirited debate over gay marriage illustrated the divisions even among Republican activists willing to spend two days at a convention.

In a lopsided voice vote, the convention rejected an attempt to remove the words “Marriage is defined as the union of one man and one woman” from the platform.

Ryan Lorrain, a delegate from Kennebec County, said the change was needed to show that the modern Republican party is inclusive. Supporters argued that Maine voters’ resounding approval of same-sex marriage in 2012 – and the strong public support for the policy since – shows that including the “union of one man and one woman” language in the platform shows the party is out of step.

“Our stances on such divisive social issues are a deterrent from becoming a part of the Republican party,” Lorrain said. “According to polls, our position on this issue is an unpopular stance among young people.”

But Martin Vachon of Mariaville said social issues are important within the party and that “marriage is a very important part of our social structure.”

The Republican platform also:

* Pledges to defend the right to bear arms as well as state’s rights.

* Calls for eliminating the income tax.

* States that “Federalization of the Maine Woods will not be tolerated,” a reference to the push to create a national monument or national park in the Katahdin region.

* Calls for enacting so-called “right to work” laws.

* Urges repeal of Maine’s public campaign financing system despite the fact that more than 70 percent of Democratic and Republican legislative candidates plan to run as Clean Elections candidates this year.

* Opposes the Affordable Care Act or Obamacare as well as Common Core education standards.

* Declares that “Progressive principles are incompatible with the principles of The Republican Party of the State of Maine.”