As they entered the fourth quarter Tuesday night, the Warriors appeared poised to push their NBA-record postseason home win streak to 17 games. They had another signature third-quarter run, a double-digit lead and a raucous Oracle Arena crowd behind them.

But Houston — at 65-17, the league’s best regular-season team — is a master of rallies, too. In a nightmarish final period, Golden State deviated from its movement-heavy blueprint, mustered only 12 points and was left grappling with a 95-92 loss to the Rockets in Game 4 of the Western Conference finals.

Down three points with 0.5 of a second on the clock, the Warriors got one last shot at salvaging a victory. Stephen Curry didn’t get off his corner three-pointer in time, however, as Houston snapped Golden State’s record for the longest home winning streak in postseason history.

“I thought we made that great push in the third, but we weren’t really able to make many subs,” Warriors head coach Steve Kerr said. “I felt like in the fourth quarter, we just ran out of gas.”

In a series — and a playoffs — defined by routs, Game 4 provided the suspense that many NBA fans have desired. Now, after needing less than 11 minutes to fumble away a 12-point lead, the Warriors fly to Houston with the series tied at 2-2.

Win Game 5 on Thursday, and they have a chance to clinch an NBA Finals berth at home. Lose, and they will be on the brink of their second postseason collapse in three seasons.

It would help Golden State if Andre Iguodala, who missed Game 4 with a left lateral leg contusion, could get well enough in the next 48 hours to play Game 5. Without the former NBA Finals MVP on Tuesday, Kerr was forced to adjust his substitution pattern and test the limits of a thin wing rotation.

Because the Warriors have four centers — JaVale McGee, Zaza Pachulia, David West and Damian Jones — whom Kerr would prefer not to use against the perimeter-oriented Rockets, he only played nine players in Game 4. His four All-Stars — Draymond Green (45 minutes), Kevin Durant (43), Klay Thompson (39) and Curry (39) — seldom left the floor for more than a few moments.

Such heavy workloads took their toll. After outscoring Houston 34-17 in the third quarter to turn a seven-point halftime deficit into a 10-point cushion, Golden State seemed to tire.

Its pass-happy system gave way to repeated isolation situations. In those final 12 minutes, the Warriors shot 3-for-18 from the field — 0-for-6 from three-point range — to tie for the franchise’s lowest-scoring fourth quarter in playoff history.

Golden State didn’t have a field goal after Curry, who poured in 17 of his team-high 28 points in the third quarter, hit an 11-footer with 3:18 left to cut the deficit to 91-88. With 2.2 seconds remaining, Thompson missed a 16-foot jumper that would have tied the game 94-94.

“Going up 10 going into the fourth, it was a good opportunity for us to kind of take control, and we didn’t,” said Durant, who had 27 points but shot just 9-for-24. “I definitely wish we had those last plays back.”

After seven months of build-up to this conference-finals matchup, the NBA world finally has the drama it anticipated. Now, just two days after they routed Houston by 41 points in Game 4, the Warriors face perhaps their biggest challenge since their implosion in the 2016 NBA Finals to Cleveland.

In reviewing the wreckage of Game 4, Golden State will try to figure out how to contain James Harden (30 points) and Chris Paul (27 points). The Warriors will re-watch the fourth quarter to understand how they could’ve gotten better looks and where they need to go from here.

“It was there for the taking, but it’s in the past now,” Thompson said. “We have to focus on winning two of the next three.”