Understanding Q-balls beyond the thin-wall limit