Mothers hosting playdates near cordoned-off parks, mahjong maestros huddled in streets and youngsters slugging night-time beers on barricaded sidewalks -- Beijingers are making the most of the small spaces available as China's coronavirus controls close in.
Meanwhile in Shanghai, a growing number of residents are being allowed to briefly venture outside as the city gradually eases out of an extended lockdown, celebrating their first hours outside in weeks with champagne and roadside picnics.
China is hitched to a zero-Covid policy which triggers mass lockdowns, routine tests and movement restrictions whenever infection clusters emerge -- the last major economy to do so in a world now living with the coronavirus.
Beijing, a city of 22 million people, looked on in horror as Shanghai entered a slow-motion lockdown in April, with millions still under stay-at-home orders.
The capital has recorded just dozens of cases each day but has also gone quiet since May with schools closed and everyone -- other than doctors and a few essential workers -- told to work from home.
Now the city is watching and waiting to see which way the virus trends.
Hundreds of thousands of people have been restricted to their homes, still well short of a full lockdown but enough to leave only the brave and the rebellious out on the streets of a pandemic-weary city.
"Everything is closed! Cinemas, museums... football pitches," said Eric Ma, a programmer sharing a few beers with friends around the Liangma River in downtown Beijing.
"It feels claustrophobic. We have to find creative ways to have fun."
- Cat-and-mouse -
Those, like Ma, who venture out face a cat-and-mouse game with police and city authorities enforcing strict virus rules and sealing off access to riverbanks and other gathering spots.
A large blue sign near the river captured the authorities' approach: "Be patient to enjoy the sunshine when the pandemic ends."
Still, dozens of people were seen jumping over the barricades or wriggling through police tape to go for a dip on a warm Monday afternoon.
A middle-aged man stood in the water singing an aria from a famous Peking Opera.
Some brought folding chairs, tables and small gas stoves to cook outside.
Since restaurants have been shuttered, only allowing takeout, and many housing blocks not permitting visitors, people have started picnicking on pavements.
"The guards come from time to time and chase us away," said Reiner Zhang, a fashion designer who had spread her picnic mat on a street corner near the Liangma River.
"But we don't care. People are frustrated with pay cuts and layoffs and we need to meet and vent," she said.
Parents sat on the riverbank, eating watermelon, while children paddled along the shallow edges of the river.
"We bring the children here for some exercise," said Niu Honglin, pointing to her seven-year-old son bobbing up and down in the river with his floaters.
"With parks closed, there are no places to play, but children start throwing tantrums if they are stuck at home all day doing online lessons."
- Brief relief in Shanghai -
Old neighbourhoods in the heart of Beijing, normally bustling warrens filled with hawkers, tourists and rickshaw drivers, have also been closed.
But a couple posed for wedding photos in front of the old drum tower on Monday, while on a nearby street retirees gathered to play mahjong, flouting strict social distancing rules.
"We come here after lunch every day, and play until the sun goes down," said a retired municipal worker who only offered his last name Zao.
"We've done it for years and the pandemic won't stop us."
In Shanghai, residents are slowly emerging from the other side of a lockdown during which millions were banned from stepping out of their homes.
The mood was festive in the central Jing'an district on Wednesday outside one apartment compound where residents were finally permitted to step outside -- for only two hours -- after 55 days indoors.
A masked quartet of friends toasted their brief freedom with champagne, while a group of older women put on their Sunday best for a long-awaited stroll through the neighbourhood.
A barber in protective gear gave customers haircuts in a makeshift roadside salon, as most hairdressers in the city remained shut.
C.Jaggi--BD