The two most obvious features here are elections (not referenda), and the judicial system. The latter adds an element of “village elders”, while the former makes decision-makers confront hard choices and their consequences.
That’s why direct democracy is considered rather harmful: just look at the clusterfuck that is Brexit for an idea of what happens when people are allowed to make fantasy decisions while disregarding their actual implementation.
As an analogy, consider trial-by-jury (managed by a competent judge) with having all of the locals decide all criminal cases once a month based on what they read in the (disappearing) local paper and on nextdoor. Who would you want to decide the punishment when the neighbor boy accuses you of touching him in funny places?