Royals' hopes hang by a string after damaging defeat