Institutional collective action in an ecology of games