Joint-replacement surgery once felt like a game of chance. You hoped for the best but feared the worst – pain, complications, a long recovery.…