No question. 4th down fumble rule applies. A1 is the fumbler, and the spot of the fumble is wherever A1 lost possession (presumed to be behind the NZ, but could be anywhere in the field of play). The ball is dead when legally recovered by A88 in the end zone. 7-2-2-a is then applied, and the ball is returned to the spot of the fumble, next down. Since A failed make the line to gain, Team B is awarded a series, 1/10, spot of the fumble. Since the clock expired during the down, the period, and, in this case, the game, is over.
Get a bean bag down!