A 14-year-old boy allegedly took a selfie poking his tongue out moments after stabbing a schoolgirl 55 times to death, a court has been told.
The teenager is accused of murdering schoolgirl Lilly Jones, 14, in a secluded wooded area at Duffryn Park in her home village of Blaina, South Wales.
He had allegedly formed a relationship with the victim but secretly started dating another girl behind her back, Newport Crown Court heard.
Music-loving Lilly 'joined forces' with the other girl and the 'mature' pair planned to confront the cheating teenager, it is alleged.
But Lilly arranged to meet the boy, who cannot be named for legal reasons, first and vanished soon afterwards, the court was told.
Both were captured on CCTV together in Blaina around 6.50pm on Saturday, June 20 but Lilly, who had celebrated her 14th birthday the day before, never returned home.
Analysis of the boy's mobile phone showed he was not active on social media between 6.52pm and 8.16pm, but then uploaded two TikTok images at 8.16pm and 8.20pm before taking a selfie with his tongue out at 8.40pm, the jury was told.
Two days later, a witness found the girl's body 'face down' in undergrowth in Duffryn Park having suffered stab wounds to her face, neck, back and chest and rang 999, telling the operator to 'send as many police as you can'.
Lilly Jones, pictured, was found with 55 stab wounds to her neck, chest and back. A 14-year-old boy allegedly took a selfie poking his tongue out moments after stabbing the schoolgirl
Lilly's body was found in a patch of woodland in Duffryn Park, a nine-acre expanse of sports pitches and nature trails along the banks of the Ebbw Fach river
Prosecutor Anna Pope KC said Lilly and the boy started to 'take an interest' in each other in March, when she was still 13.
They messaged each other for several months before she found out the boy was also 'in some sort of relationship' with another girl, who also cannot be named for legal reasons.
Jurors were told that the two girls contacted each other and formed a friendship and planned to confront the boy over his deception.
'Rather than have any bad feelings towards each other, the two girls got in contact, and, it would appear, showed an understanding of the other girl's situation,' Ms Pope said.
'Something you may consider to be quite mature for their ages. And so, they joined forces, becoming friends together.
'We say that (the boy) did not know that they each knew about the other. We say that he did not know that the two girls he was seeing were by now friends with each other.'
The court was shown CCTV and text message analysis of the final hours of Lily's life - with the teenager telling friends she was going to meet 'him'.
Prosecutors previously said: 'At around 6.30pm on Saturday, June 20 she went out, telling her dad she was popping out for a bit. That night, she never came home.'
Lilly and the boy arrived at the scene around 500 yards from her home at around 6.53pm, the court heard.
The boy was not active on social media for around 90 minutes after this before 'heavy TikTok usage' started and he uploaded photos to his story.
He allegedly returned home with 'mud all over' his clothes and damp trainers after updating his social media profile as he walked.
The jury were shown a series of messages sent from the other teenage girl to the boy after she found out Lilly had been reported missing.
The girl wrote: 'I know you know who Lilly Jones is. I also know you kept asking her to go out today. Is she with you?
'I'm worried as she's now classed as missing because no one's heard off of [sic] her since 6.30pm x'
The boy replied: 'Ok, I won't lie. I know her yes. I didn't keep asking her to go out. She asked me to and she didn't show up. Also, wdym she's missing?'
The court heard he sent another message minutes later, reading: 'Please don't mention that I was "seeing her" if you now know what I mean but I'll call her now.'
Relatives reported Lilly missing and police quickly established that the boy was the last person to see her alive.
Bodyworn footage from officers attending the boy's house the following day showed the boy claiming scratches on his arm were from 'bushes'.
He told them: 'I was trying to get my football back.'
The court heard the boy initially denied he had met up with Lilly before changing his story when officers showed him CCTV of the pair walking along the road.
The footage shows the boy telling officers Lilly wanted to show him an 'abandoned park'.
He said: 'We got halfway and she kind of just stopped because she was on her phone. I decided to leave. She went off somewhere. I don't know.'
The boy added: 'She said she was going to see a different friend.'
He refused to give his parents access to his phone when they questioned him about his whereabouts, jurors were told.
Ms Pope said police seized his mobile phone and found it was used to search for 'Gwent Police' around 30 times the morning after Lilly disappeared, between 5.49am and 10.02am.
The barrister said photographs were also discovered on the handset with one in particular 'looking back towards the scene where we say Lilly's body was later found'.
Ms Pope added: 'We will ask you to consider why it is that (the defendant) would take a photograph of some distance, of the area where we know Lilly to have died that night – particularly if, as he suggests, he left her alive, when she was going to meet a friend?'
The court also heard a distressed 999 call from a member of the public after Lilly's body was found, saying: 'You need to send as many police as you can. There are no signs of life ok...Black skirt. It's the girl you are looking for.'
The boy's DNA was found under Lilly's nails during a post-mortem examination, the court was told.
Ms Pope said: 'When police had spoken to (the defendant) on the Sunday they noted that he had scratches inside his arm.
'You will see evidence which we say shows that those scratches were not on his arm on the Saturday during the daytime.
'We say that you can consider whether, during the incident, Lilly has used her nails to scratch out at the person who was killing her.'
Jurors were also told that Lilly's DNA was also found on a blood-stained camping knife recovered from the boy's bedroom during a search of his home.
Ms Pope said: 'We say that (the defendant) has not yet given any reason why it would be that Lilly's DNA was found on a knife in his drawer, after a time when we know that she had been stabbed repeatedly by someone using a knife.
Floral tributes were left near Duffryn Park in Blaina after Lilly's body was discovered following a two-day search
Lilly had been messaging the boy for four months, the court heard, but later discovered he had been 'two-timing' her
'The prosecution says that this was the weapon which (the defendant) used to kill her and that whilst he had made some attempts to clean the knife, we say he was not able to remove traces of her DNA which had ended up down inside the handle of the knife.'
Earlier, High Court Judge Mrs Justice Stacey told the jury panel there was no dispute that Lilly was stabbed to death.
'The boy says it was not him who did it but it was someone else she met after he left her in the park,' the judge said.
The boy denies a single charge of murder. The trial continues.