The Vancouver Winter Olympics ended in spectacular triumph with a dazzling closing ceremony that mixed traditional pomp with self-deprecating humour to put the icing on 17 days of unrelenting drama and action.
The president of the International Olympic Committee Jacques Rogge declared the Games "excellent and very friendly" in a closing speech that paid tribute to the Georgian luger who was killed in a training accident before the Games opened on February 12.
"We have shared the grief of an Olympic dream cut short. The memory of Nodar Kumaritashvili will always be with us," Rogge said before declaring the Games closed and inviting the world's athletes to reassemble at Sochi, Russia for the 2014 Winter Olympics.
Millions of Canadians had already begun celebrating long before the ceremony began after the host nation defeated the United States 3-2 in a nerve-churning men's ice hockey final to claim a record 14th gold medal.
The whole country, it seemed, had stopped to watch the three-hour drama on ice.
Sidney Crosby scored the winner after the Americans had equalised 24 seconds from the end of regular time to force the match into overtime and threaten to spoil Canada's party.
"You dream of that moment a thousand times growing up," Crosby said. "For that to come true is pretty amazing."
The hockey was one of just two medals decided on the last day with Norway's Petter Northug winning the first in the men's 50km cross country ski race at Whistler after the closest-ever finish to the lung-bursting event.
Canada were already assured of finishing top of the standings for the first time at either a Winter or Summer Olympics but beating their American neighbours was the perfect ending for the hockey-crazy host nation. "Our last one (gold) will be remembered for generations," Vancouver's organising chief John Furlong said at the ceremony.
The Canadian victory set a new record for golds won by any nation at a single Winter Games, surpassing the previous mark of 13 jointly held by the Soviet Union (Innsbruck, 1976) and Norway (Salt Lake City, 2002).
The festivities spilled into the closing ceremony at BC Place with the hosts poking fun at themselves in a two-hour extravaganza dripping with self-mockery.
Giant inflatable beavers, moose and Mounties all joined in a game of table hockey that took an irreverent view of the country's obsession with the sport. The organisers even made fun of one of the technical glitches at the opening ceremony, belatedly raising one of the huge ice crystal legs that had malfunctioned.
It was all in stark contrast to the gloom that surrounded the first week when bad weather, some poor planning and plain bad luck conspired against the Games.