EDINBURGH, Scotland — The thrill of history in the making enveloped Scotland — and spooked the rest of the United Kingdom — after voters turned out with unprecedented enthusiasm for an independence referendum that could end the country's 307-year union with England.
As the polls closed late Thursday and the vote counting began, many Scots settled in to stay up all night in homes and bars to watch the results. A nationwide count began immediately at 32 regional centers across Scotland.
For some, it was a day they had dreamed of for decades. For others, the time had finally come to make up their minds about the future — both for themselves and for the United Kingdom.
"Fifty years I fought for this," said 83-year-old Isabelle Smith, a Yes supporter in Edinburgh's maritime district of Newhaven, a former fishing port. "And we are going to win. I can feel it in my bones."
At the Highland Hall outside Edinburgh, where the final result will be announced sometime after 0500GMT (1 a.m. EDT) Friday, vote-counters at dozens of tables sorted through paper ballots late Thursday, watched keenly by monitors from the Yes and No camps.
Eager voters had lined up outside some polling stations even before they opened at 7 a.m. Many polling stations were busy and turnout was expected to be high. More than 4.2 million people had registered to vote — 97 percent of those eligible — including residents as young as 16.
David Clarke, a writing consultant, said he was a No voter, but thought the referendum campaign had been "a fascinating, worthwhile discussion about Scotland's future."
A Yes vote would trigger 18 months of negotiations between Scottish leaders and London-based politicians on how the two countries would separate their institutions before Scotland's planned Independence Day on March 24, 2016.
Many questions — the currency an independent Scotland would use, its status within the 28-nation European Union and NATO, the fate of Britain's nuclear-armed submarines, based at a Scottish port — remain uncertain or disputed after months of campaigning.
Yet for Smith, who went to the polling station decked out in a blue-and-white pro-independence shirt and rosette, statehood for Scotland was a dream nurtured during three decades living in the U.S. with her late husband.
"The one thing America has that the Scots don't have is confidence," said Smith, who returned to Scotland years ago. "But they're getting it, they're walking tall."
"No matter what, Scotland will never, ever be the same again," she declared.
The question on the ballot paper could not be simpler: "Should Scotland be an independent country?"
Yet it has divided Scots during months of campaigning, generating an unprecedented volume and intensity of public debate and participation. The Yes side, in particular, has energized young people and previously disillusioned working-class voters.
Polls suggest the result was too close to call. A final Ipsos MORI poll released Thursday put support for the No side at 53 percent and Yes at 47 percent. The phone survey of 991 people has a margin of error of plus or minus three percentage points.
Until recently, polls suggested as many as 1 in 5 voters was undecided, but that number shrunk dramatically as the poll neared to only 4 percent.
After weeks in which British media have talked of little else, the television airwaves were almost a referendum-free zone Thursday due to electoral rules.
On the streets, it was a different story, with rival Yes and No billboards and campaigners outside many polling places.
At an Edinburgh polling station, Thomas Roberts said he had voted Yes because he felt optimistic about Scotland's future as an independent country.
"Why not roll the dice for once?" he asked.
Roberts said he was looking forward to learning the outcome in a pub, many of which were staying open all night.
"I'm going to sit with a beer in my hand watching the results coming in," he said.
But some No supporters said the pro-independence campaign had divided the country and fueled bad feeling among neighbors.
"The country is divided with a hatchet. It's so awful — and it was completely unnecessary," said Fiona Mitchell, distributing No leaflets outside a polling station.
First Minister Alex Salmond, leader of the independence campaign, cast his vote near his home in northeastern Scotland. If the Yes side prevails, he will have realized a long-held dream of leading his country to independence from an alliance with England that was formed in 1707.
"This is our opportunity of a lifetime and we must seize it with both hands," Salmond told voters in his final pre-vote speech.
Pro-independence forces got a last-minute boost from tennis star Andy Murray, who signaled his support of the Yes campaign in a tweet to his 2.7 million followers Thursday.
Anti-independence leaders, including former Prime Minister Gordon Brown, himself a Scot, have implored Scots not to break their links with the rest of the United Kingdom and have stressed the economic uncertainties that independence would bring.
Many Yes supporters planned to gather in symbolic spots like Calton Hill overlooking Edinburgh — hoping the sun will rise Friday on a new dawn of independence and not just a hangover.
But financial consultant Michael MacPhee, a No voter, said he would observe the returns coming in "with anxiety."
Scottish independence was "the daftest idea I've ever heard," he said.
Follow Jill Lawless on Twitter at http://Twitter.com/JillLawless