A mother "lost her temper" with her three-year-old son before she battered him to death, a court heard.
When Mikaeel Kular was repeatedly sick following a trip to a Nando's restaurant, his mother Rosdeep Adekoya smacked him and struck him on the body and head with a clenched fist, advocate depute Alex Prentice told the High Court in Edinburgh.
After the youngster was sick for a third time, she dragged him to the shower by his arms and "beat him heavily" on his back as he lay over the bath edge, he added.
Mr Prentice said: "It's likely that the internal damage was inflicted during this last beating."
Over the next few days the court heard that Mikaeel's condition worsened and he was kept off nursery. He was assaulted again on the Monday after being sick and became "listless."
His mother did not take him to a doctor because of the bruising, the court heard.
Rosdeep Adekoya, 34, has pleaded guilty to culpable homicide.
More top news
The author said "It's been wonderful" as fans mark two decades since the children's books opened up a world of magic to millions.
There was something very striking about the pact, which implies the new agreement could remain in place even if the prime minister does not.
The royal will visit the site of the deadly attack at Manchester Arena as he remembers those killed and injured.