Large-time asymptotics of a public goods game model with diffusion