BBC News
Published
image copyrightReuters
image captionNicola Sturgeon easily saw off a challenge from Scottish Labour leader Anas Sarwar in her Glasgow Southside constituency
The SNP has won three key seats but its hopes of securing an overall majority in the Scottish Parliament election remain on a knife edge.
The party has taken both Edinburgh Central - where former MP Angus Robertson was standing for the SNP - and Ayr from the Conservatives.
It also won the East Lothian seat from Labour.
But it fell short in other targets, with counting in the remaining seats due to resume on Saturday.