How do I have more gold than the max?
If you collect gold when you're near max, and the amount collected + current gold is greater than max, then that happens.
This is most likely a glitch or a bug, to fix this just close and open the app and hopefully it will reset.
Once you reload the game it should fix itself, or it should display "Client and Server are out of sync."
This sometimes happens when the server lags and can't fix it in time. You can also try visiting someone else then coming back.