A teenage thug battered a man an empty bottle during a horrific ATM robbery.
Finlay Main launched the vicious attack after demanding the victim's cash when he engaged him in conversation.
Paisley Sheriff Court heard the 18-year-old belted the Mad Dog 20/20 bottle off the side of Kyle McKendrick's face, then warned him "'I've got a blade and I'd kill c***s for less."
Main went on to steal £70 in cash from the victim after the pair struggled on the ground, the Paisley Daily Express reports.
Procurator fiscal David McDonald explained: "Just after midnight on March 13, Kyle McKendrick was at the ATM at the rear of the Day-Today in Clippens Road, Linwood.
"McKendrick saw the accused running towards him and they engaged in a conversation.
"The witness asked Main where he was from and he replied Kilwinning.
"Main asked the witness what he was up to and he replied that he was lifting money when the accused then pulled out an empty Mad Dog 20/20 bottle from his jacket and stated 'give me your money then.'
"Holding the bottle in his right hand, Main struck McKendrick to the left side of his face, making the bottle smash.
"McKendrick was stunned and dazed from the impact.
"The accused then stated 'I've got a blade and I'd kill c***s for less.'
"McKendrick tried to hold Main to prevent him hitting him further but both ended up on the ground in a struggle."
Court heard McKendrick got to his feet and gave Main £70 in cash and Main left the scene.
McKendrick returned to a friend's house where he was taken to hospital and police were contacted.
Mr McDonald went on to explain how Main was causing drivers concern on the A737 as he walked towards traffic in the darkness.
Mr McDonald explained: "Between 1.15am and 1.25am, police received three reports of a male walking on the A737 at the Johnstone/ Kilbarchan interchange and one report stated the male had said he had stabbed someone.
"Police attended and traced Main, whose hands were covered in blood.
"Main was arrested and he told officers he had been at his girlfriend's house. She was traced and she stated she hadn't been in his company.
"Main freely told officers he had been at an 18th birthday party in Linwood and had drank a bottle of Mad Dog 20/20."
Main was taken to hospital for treatment to his hand when officers were made aware he matched the description of the male involved in an earlier assault in Linwood, and so his clothes were seized.
Mr McDonald added: "Around 3.30am in the Royal Alexandra Hospital, Main began to shout at officers 'Your maw's a f****t, your dad is a black b*****d.'
"The accused went on 'I hate you f*****s, you gays, you blacks, you Polish c***s, see all the Polish c***s coming into the country do you think I'm gonna do a few days in the jail for that? I'm at the top, you're at the bottom.'
"Main continued with offensive remarks and was informed of his arrest and placed in handcuffs when he stated 'You're lucky I've not spat on you, you p**f.
"Bet I don't get remanded for this cause they are p***s in the justice system. I did do the stabbing but yous cant prove it, yous haven't witnessed it, you need forensic evidence you f****t. The judge is a racist as well.'
"A doctor attended Main when he stated 'Who are you, you P**i f*****s? I pay good my taxes.'
"Around 4.50am Main continued to shout and swear when he then stood up and spat at PC Cowan.
"He later stated to PC Cowan, 'I'll f*****g rape you, you wee poof.'"
Court heard a £20 note was recovered from Main's sock and McKendrick required seven stitches to the left side of his face which is expected to leave permanent scarring.
Defence agent David Nicholson told how Main, of Kirkland Crescent in Dalry, is already subject to a supervision order and given his young age, reports may be necessary.
Sheriff Tom McCartney said: "Be aware that due to the gravity of these matters that it may be the only suitable sentence is one of detention."
Sentencing was adjourned for the preparation of a criminal justice social work and a restriction of liberty order assessment until April 11.