A's blow late lead, drop Wild Card showdown to Royals