OAKLAND, Calif. (AP) - Dallas kept its playoff hopes alive by the slimmest of margins after Dak Prescott converted a fourth-down sneak by the width of an index card to set up Dan Bailey's go-ahead 19-yard field goal, and Derek Carr fumbled the ball inches from the goal line with 31 seconds left to give the Cowboys a 20-17 victory over the Oakland Raiders on Sunday night.
The first key play came when Cowboys coach Jason Garrett decided to go for it on fourth-and-1 from his own 39 with about five minutes left in a tie game. Prescott ran into a pile that took officials time to untangle.
Referee Gene Steratore then called for the chains to come out, but even that wasn't enough. He then tried to slide what appeared to be an index card between the tip of the ball and the end of the chain. When the card didn't slide through, Steratore gave Dallas (8-6) a first down.
Bryant then hit Dez Bryant with a 40-yard pass that set up Bailey's short kick with 1:44 to play that gave the Cowboys the lead.
But the game was far from over. The Raiders (6-8) got a gift when Jourdan Lewis committed a 43-yard pass interference penalty on a fourth-and-10 from their own 30. Carr then scrambled on third-and-3 from the 8 and reached out for the end zone. But the ball came loose before crossing the goal line and went out of the end zone for a touchback that all but ended Oakland's playoff hopes. The Raiders are tied for ninth in the AFC.
Dallas is in a three-way tie for seventh place in the NFC, a half-game behind Atlanta for the final playoff spot. The Falcons beat the Cowboys head-to-head.
The Cowboys got their third straight win without suspended star running back Ezekiel Elliott, who returns from a six-game suspension next week. But Dallas' three straight losses at the start of the suspension created a hole the team is still trying to escape.
FAKE IT OUT
The Cowboys took a risk in the third quarter on a fourth-and-11 from their own 24. Punter Chris Jones kept the ball and ran 24 yards for a first down. Dallas then drove down the field and took a 17-10 lead when Prescott ran in from 5 yards out and then was given a shower of drinks thrown by fans in the Black Hole.
Carr set up Oakland's first TD with a 32-yard scramble that was his longest run since his rookie year. That led to a 2-yard TD to Michael Crabtree that gave Carr 100 career touchdown passes. He joined Dan Marino, Peyton Manning, Russell Wilson and Andrew Luck as the only players with at least 100 TD passes in their first four years in the NFL. Carr added a second TD pass to Crabtree in the fourth quarter that tied the game at 17.
TAKE IT AWAY
Sean Smith intercepted two passes for the Raiders, doubling the team's total from the first 13 games. Smith got his first on the opening drive of the game and then added another just moments after Oakland got on the board for the first time. Bruce Irvin hit Prescott on the throw and Smith came up with the floater . He was initially given a TD return on the play but was ruled down by contact on replay and Oakland settled for a game-tying field goal from Giorgio Tavecchio.
The Raiders appeared to get on the scoreboard when Jared Cook caught an 11-yard TD pass from Carr in the closing seconds of the first half. But a pass interference call on Cook wiped out the TD and Oakland came up empty when Tavecchio missed a 39-yard field goal wide left on the final play.
The Raiders lost LT Donald Penn (foot) and DT Treyvon Hester (ankle) to injuries in the first half. ... Dallas LT Tyron Smith left in the second half with a knee injury.
Cowboys: Host Seattle on Sunday.
Raiders: Visit Philadelphia on Dec. 25.