Los Angeles - Los Angeles Lakers legend Kobe Bryant delivered a Hollywood ending as the curtain came down on his glittering 20-year NBA career on Wednesday in a blockbuster finale.
On a night of searing emotion at a packed Staples Center, the 37-year-old signed off with a mammoth 60 points, including a final burst of scoring to inspire a 101-96 comeback victory over the Utah Jazz.
A galaxy of A-list celebrities - from Jack Nicholson to David Beckham - roared their approval from courtside as Bryant exited with a perfectly scripted final act.
"Man, I can't believe how fast 20 years went by, this is crazy," Bryant told his adoring fans. "What can I say? Mamba out."
A sell-out crowd of 19 060 fans had packed into the Staples Center to watch Bryant lace up for the 1 566th and last time.
"Tonight was trying to go out, playing hard and putting on a show as much as I possibly could. It felt good to be able to do that one last time," Bryant said.
"The coolest thing is that my kids actually saw me play like I used to play."
Tickets for the game were the most expensive in basketball history, according to online exchange StubHub.com, which sold one pair of courtside seats for a staggering $27 500 each.
Lakers legend Magic Johnson had acted as master of ceremonies for a lengthy pre-game tribute that featured video messages from some of the NBA's most recognisable figures.
"We are here to celebrate greatness for 20 years," Johnson told the crowd.
"He's not only a great and unbelievable sports icon but he's already the greatest to wear the purple and gold."
Oscar-winning actor Nicholson - a regular presence at courtside during the Bryant era - wrapped up a montage of video messages.
"Kobe, goodbye, I think I might retire with you, I'm not sure," said Nicholson.
Nicholson later described Bryant's retirement as a "melancholy" moment.
"It's like anything - you don't know what you had until you don't have it," Nicholson told NBA TV. "Fortunately we do know what we had and he's been great all the way."
Football icon Beckham meanwhile expressed delight at the manner of Bryant's departure.
"Every wanted him to go out like this," Beckham said. "The way he's gone out tonight is incredible."
Lakers coach Byron Scott told his team they had "witnessed history."
"I hope they savor the moment. I hope they realize that man gave everything he could for 20 years and he gave it again tonight," Scott said.
Excitement for Bryant's farewell game had built throughout the day, with the streets surrounding the Staples Center transformed into a sea of purple and gold as thousands of fans thronged the area.
"It's like a family member, we spent $3 000 on two tickets, we are ready to spend a lot of money to see history," one Lakers fan, Miguel, told AFP.
Los Angeles transport officials meanwhile got into the spirit of celebration, renaming a metro station near the Staples Center "Kobe Station" for the day.
On Twitter, fans were invited to share their memories under the trending hashtag "#MambaDay", a reference to Bryant's "Black Mamba" nickname.
As day gave way to dusk, Los Angeles City Hall was lit up in the Lakers' iconic colors of purple and gold.
Announcing the gesture earlier in the day, Los Angeles City Council President Herb Wesson declared the move a fitting tribute to the retiring star.
"The City of Angels owes Kobe Bryant a debt of gratitude for sharing with us 20 remarkable years of electrifying dedication and commitment to the city, our fans and communities," said Wesson.
"His work ethic, hustle and quest for championships ensures his place in the history books - there will never be another Kobe Bryant."
Kobe Bryant by the numbers after the Los Angeles Lakers superstar brought down the curtain on his 20-year NBA career on Wednesday:
1: NBA Most Valuable Player award, in the 2007-08 season
2: NBA scoring titles, in 2005-06 (35.4 pts/game) and 2006-07 (31.6 pts/game)
2: NBA Finals MVP awards (2009, 2010)
5: NBA championships won with the Lakers in 2000, 2001, 2002, 2009 and 2010
8: First jersey number as a Laker, worn for his first decade in the league until he switched to 24.
10: Number of coaches in 20 seasons, including two stretches with Phil Jackson.
12: Three-pointers made in a January 7, 2003 game against Seattle, an NBA record since equalled by Golden State's Stephen Curry.
13: Overall selection by the Charlotte Hornets in the 1996 NBA Draft. He was traded to the Lakers 15 days later.
13.6: Scoring average for the United States in the 2008 and 2012 Olympics.
15: All-Star Game starts, the most in history.
18: Consecutive All-Star Game selections (the longest streak and second-most overall selections behind Abdul-Jabbar's 19).
20: Seasons with the Lakers, the most for one player with one team in NBA history.
24: Jersey number from start of 2006-07 season, after switching from No. 8.
50: 24 career 50 point games, third most in NBA history behind Chamberlain (118) and Jordan (31)
81: Points in a 122-104 victory over the Toronto Raptors on January 22, 2006 - second-highest total in NBA history behind Wilt Chamberlain's 100-point game in 1962.
1 346: Regular-season games played, along with 220 playoff games.
5 640: Points scored in the playoffs, third-most in NBA history behind Michael Jordan (5 987) and Abdul-Jabbar (5 762)
33 643: Career regular-season points, third on the NBA's all-time scoring list behind Kareem Abdul-Jabbar and Karl Malone.
323.3: Million dollars, Bryant's cumulative salary since his NBA debut, including $25 million for his final season.