Responded to emergency service call for toilet leaking and flooding bathroom. Diagnosed failed wax seal and broken closet flange causing water to escape from base during flushing. Replaced damaged closet flange and installed new wax ring, successfully resolving the leak.