гратися (Ukrainian) comes from Ukrainian -ся, from Old East Slavic сѧ, from Proto-Slavic sę, from Proto-Balto-Slavic *sen, from Proto-Indo-European swé — self.
гратися (Ukrainian): to play to act in a manner such that one has fun