“Ran riot” means behaving in an uncontrolled or chaotic manner.
The phrase is often used in situations of wild, unchecked activity.
Option (C) – “acted without restraint” is a perfect match.
Others:
(A) Implies fun, not chaos.
(B) “Cleverly” doesn’t match the chaotic tone.
(D) Incorrect due to (C) being accurate.