OAKLAND — The Raiders played not to lose in the second half Sunday. That's usually a recipe for disaster, but thanks to a dogged defensive effort and a couple of fortunate breaks, they came away with a tense 21-18 victory against the Pittsburgh Steelers at O.co Coliseum that had the crowd on the edge of its seats — even the large numbers who were wearing yellow and waving Terrible Towels.

"We wanted to make sure we gave the fans their money's worth," said Oakland head coach Dennis Allen, able to joke after his team had improved to 3-4.

But this was anything but a textbook win. The Raiders gained 93 yards on their first play from scrimmage, 151 over the rest of the first half, and a measly 35 in the second half. In other words, the offense went on full auto-pilot, relying on the defense to grind out the victory.

Fortunately, the Steelers didn't have the firepower to get it done. They came in with virtually no running attack to speak of, then lost three guards to injuries during the game. Ben Roethlisberger wound up with 275 passing yards and engineered some late-game theatrics, but the Raiders sacked him five times and came up with just enough big defensive stops to thwart him.

The biggest included three plays by three different defensive backs in the fourth quarter. Mike Jenkins intercepted a deep pass by Roethlisberger a minute into the quarter, safety Brandian Ross broke up a potential big gain on third-and-15 with 9:25 left and corner Tracy Porter picked off a pass — tipped by Jenkins and then by Pittsburgh receiver Antonio Brown — at the Oakland 21 with 6:46 remaining.

"We play defense, it doesn't matter how long," Porter said. "If we had to have been on the field for 60 minutes or 60 seconds, that's what we have to do. Our job is to play defense."

Those three plays helped end four Steelers possessions, but sandwiched in between was Roethlisberger's 9-yard touchdown pass to wide receiver Emmanuel Sanders that cut the Raiders' lead to 21-10.

Things got even more diceyer in the closing minutes when Roethlisberger engineered an 83-yard drive in just 2:58, running back Le'Veon Bell finishing it off with a 2-yard plunge. The Steelers then executed a 2-point conversion on an end-around to Sanders. That made the score 21-18 with 1:24 left, and Raiderland got nervous.

But Rashad Jennings covered Pittsburgh's onside-kick attempt, and the next time the Steelers got the ball, they had no timeouts left and almost the entire field ahead of them. The game ended with Roethlisberger unsuccessfully attempting to line up his offense for one last play at the Pittsburgh 36.

The Raiders' offensive hibernation was massive. After mounting a 72-yard drive in the second quarter (and finishing it with Darren McFadden's 4-yard touchdown run from Wildcat formation), their next nine possessions netted 0 yards, minus-1 yard, 1 yard, 29 yards, minus-4 yards, 3 yards, minus-3 yards, 6 yards and minus-2 yards.

The play-calling got conservative, and the offensive players failed to execute when they had to.

Fortunately, the Raiders did enough in the first half to set up the victory. And it started immediately, with a stunning blow on the first play that set the tone for the game and further established quarterback Terrelle Pryor as a player to watch.

The Raiders' script called for a read-option play on that opening snap, and practically the whole Pittsburgh defense followed McFadden to the left side of the offense. But Pryor kept the ball and zipped through a hole on the right side. He picked up a key block from wide receiver Rod Streater on Steelers safety Troy Polamalu and was off to the races — 93 yards.

"Even if you're excited about stopping McFadden, you have to understand the beast that's playing quarterback," Pittsburgh free safety Ryan Clark said. "You have to understand what he brings to the game. .<TH>.<TH>. Once a guy like him gets in front of the whole defense, he's legit 4.4 (seconds over 40 yards).<NO1> It just looks slow because he's 6-6, but he was moving.<NO>"

It was the longest run in Raiders franchise history, and the longest scoring run ever by an NFL quarterback.

"Man, I don't think anyone was close to catching him," Oakland right guard Mike Brisiel said. "He's like a dad-gum gazelle out there."

The Raiders scored again on touchdown runs by McFadden in the first and second quarters to build a 21-3 lead, and the defense was impenetrable early on. The Steelers had just 8 rushing yards, and no rushing first downs, at halftime.

Pryor's day was mixed. He ran for 106 yards but threw two interceptions. One was his fault, a pass that sailed and wound up in the arms of Polamalu. The other was a throw that bounced out of Brice Butler's hands and right to cornerback Cortez Allen. Those plays, along with Jacoby Ford's lost fumble at his own 9, nearly proved disastrous.

"What I'm going to visit with our guys about is you have to understand what wins and loses in this game," Allen said. "When you're in these games like this, the only way they have a chance to get back in the game is for you to turn the ball over and make mistakes."

The Raiders did just that, and won anyway. It's another sign that this team is headed in the right direction.

You can reach Staff Writer Phil Barber at 521-5263 or phil.barber@pressdemocrat.com.