Donald Trump and Joe Biden each claim to be winning the US presidential election, even as the final outcome hangs on a razor’s edge and both sides ramp up for legal action.
The Trump campaign is challenging vote counts in the critical states of Wisconsin, Pennsylvania and Michigan.
The BBC projects Mr Biden won Michigan. US media forecast he has won Wisconsin. No result has emerged in Pennsylvania.
Winning all three of these Rust Belt states would hand Mr Biden victory.
Mr Biden stopped short of declaring he had won the election, but said he was confident he was on course to defeat Donald Trump.
Overall turnout in Tuesday’s election was projected to be the highest in 120 years at 66.9%, according to the US Election Project.
What are the campaigns saying?
On Wednesday afternoon, Mr Biden said in Wilmington, Delaware: “When the count is finished we believe we will be the winners.”
He added: “I will govern as an American president. The presidency itself is not a partisan institution.”
The Democratic challenger said he was feeling “very good” about Pennsylvania, although the campaign of Republican President Trump said it was “declaring victory” in the state on the count of “all legal ballots”.
Senior Trump campaign aide Jason Miller said: “By the end of this week it will be clear to the entire nation that President Trump and Vice-President Pence will be elected for another four years.”
Can Trump still win?
Mr Biden has the edge in the race to accumulate the 270 Electoral College votes needed to win the White House. The Democrat has 243 votes, while the Republican has 214.
In the US election, voters decide state-level contests rather than a single, national one. Each US state gets a certain number of electoral college votes partly based on its population and there are a total of 538 up for grabs.
If Mr Trump does lose Wisconsin (10 Electoral College votes), he must win Georgia (16 votes), North Carolina (15), Pennsylvania (20) and either Arizona (11) or Nevada (6) to prevail.
The president has a one-point lead in both North Carolina and Georgia and the two remain neck-and-neck with most votes counted in Nevada. The Trump campaign is hopeful it can still take Arizona.
Mr Biden has a three-point advantage in the once reliably conservative sunbelt state with nearly 90% of votes counted, and CBS has categorised it as a “likely” win for the Democrat.
But the state’s Republican Governor Doug Ducey said in a statement on Wednesday: “The results have shifted greatly hour by hour, and from last night until today.
“With hundreds of thousands of votes still outstanding it’s important that we be patient before declaring any races up or down the ballot.” His remarks amounted to an implicit rebuke of Fox News, which called the state early for Mr Biden on election night.
What legal challenges are afoot?
The Trump campaign said the president would formally request a Wisconsin recount, citing “irregularities in several Wisconsin counties”.
Incomplete results indicate the margin between Mr Trump and Mr Biden in Wisconsin is less than one percentage point, which allows a candidate to seek a recount.
The campaign also filed a lawsuit in Michigan to stop counting of ballots there because it contended it was denied “meaningful access” to observe the opening of ballots and the counting.
In Detroit, Michigan, police were called on Wednesday afternoon to guard the doors to a vote-counting facility as some protesters outside demanded access to monitor the process. According to the Detroit Free-Press, there were already some 200 people observing the vote inside the building.
Officials were seen covering up the windows to the TCF Center, where postal ballots were being tallied.
The Trump campaign also filed two lawsuits in Pennsylvania to halt all vote counting “until there is meaningful transparency”.
The president has a five-point lead in the Keystone state, but hundreds of thousands of votes remain to be counted.
Mr Trump is also suing Georgia to halt the vote count there. His campaign said a Republican poll observer in the southern state had witnessed 53 late absentee ballots being illegally added to a pile of votes in Chatham County.
Mr Trump won Wisconsin, Michigan and Pennsylvania in his 2016 election victory.
In the early hours of Wednesday, he announced from the White House that he had won and said he would take the election to the Supreme Court.
The Trump campaign is asking Republican donors to help fund legal challenges.
Republican National Committee Chairwoman Ronna McDaniel said: “The fight’s not over. We’re in it.”
Mr Biden’s running mate, Kamala Harris, tweeted asking supporters to contribute $5 to help pay for a fight that could “stretch on for weeks”.
Biden campaign senior legal adviser Bob Bauer said there were no grounds for Mr Trump to invalidate lawfully cast ballots.
What were the other key results?
Mr Biden’s hopes of a decisive early victory on election night were thwarted as Mr Trump defied pollsters predictions by outperforming in key battlegrounds.
Mr Trump held several important states, including Texas, Ohio and Iowa. The president also comfortably won his adopted home state of Florida, the most hotly fought battleground of the night, despite two visits there by Mr Biden’s ally and former boss, ex-President Barack Obama.
But Mr Biden fended off his rival’s attempts to pick up New Hampshire and Minnesota.
What about the congressional races?
Democrats’ dreams were dashed of an electoral blue wave that would serve as a rebuke to Mr Trump and a Republican party recast in his image.
Democratic hopes of winning Senate control appeared to be dwindling as the dust settled from election day. They were projected to win two seats in Colorado and Arizona, but lost a seat in Alabama.
Senate races in North Carolina and Michigan remained undecided, and another race in Georgia was heading for a run-off vote in January.
But Senate Majority Leader Mitch McConnell said he felt “pretty good” about the remaining contests. Republicans currently control the chamber by 53-47.
Mr McConnell and Trump ally Lindsey Graham were both re-elected in their seats of Kentucky and South Carolina respectively.
Mr Graham said of the $100m challenge he brushed off from Democrat Jamie Harrison: “This is the worst return on investment in the history of American politics.”
Republicans also held on to other Senate seats in Maine, Montana, Texas and Iowa.
And there was an unexpected setback for Democrats in House of Representatives races. The party had hoped to gain 15 seats in the lower chamber of Congress, which they currently control.
Instead they face a reduced majority after seven of their incumbents lost and the party failed to beat a single Republican.
One of the incoming Republicans lawmakers, in Georgia, has been described as a supporter of the fringe, pro-Trump QAnon conspiracy theory.