SAN FRANCISCO — Maybe this was supposed to happen in a game pitting the Major Leagues’ winningest team of the season against the most successful one of the past decade. Neither would yield easily.

Joe Panik‘s double scored Brandon Crawford to snap a 13th-inning tie and lift the Giants to a 6-5 victory over the Cubs on Monday night in Game 3 of the National League Division Series. When the thoroughly entertained AT&T Park audience of 43,571 finally departed, slack-jawed from amazement, the Giants had trimmed the Cubs’ lead in the best-of-five series to 2-1.