BEIJING — My brush was tiny, more like something you’d use for nail polish. That was apt because I was struggling to paint the toenails of my dragon shadow puppet.

Dipping the silken brush into royal-blue ink, I tried to give its curving talons a proper pedicure.

Mao Zhongbo, our soft-spoken teacher, noticed my struggle and showed me how to keep my brush from becoming overloaded with pigment. It was an unexpected personal touch from the resident master at a Beijing hotel that strives to save the dying art of Chinese shadow puppet theater.

Shichahai Shadow Art Performance Hotel is a step back in time. Surrounded by a forest of ultramodern skyscrapers, this little inn is in a hutong, a neighborhood formed by a maze of alleys. Once you open the inn’s massive wooden doors, studded with decorative cast iron and heavy ring knockers, you enter a calm space with clean lines that direct your gaze to the framed shadow puppet art that decorates the walls. The mission here is clear: to educate guests about a vanishing part of Chinese culture before it’s too late.

Preserving an art form

UNESCO’s list of Intangible Cultural Heritage describes Chinese shadow puppetry as a “traditional performance art transmitted from generation to generation.”

Until now, it has been difficult for foreigners to understand because its dialogue was delivered through an ancient form of Chinese operatic singing. “Even Chinese audiences would not understand the dialogue without subtitles,” said Dave Bae, the hotel manager. “Now that the special kind of singing traditionally used is dying out.”

Those who are most skilled at this puppet artistry are in their 70s and 80s, Bae said, and interest is waning.

“Since Chinese people aren’t that interested anymore, we open it up to foreign guests. We welcome people from all over America, Europe and Asia.”

This is why I visited last winter. As a longtime theater lover, I hoped to get a behind-the-scenes peek into a completely different performing art.

The 25-room inn provides English interpreters who help make the cultural offerings accessible. These include performances in the intimate puppet theater at the center of the hotel and several classes a week taught by Mao.

One night, I watched Mao and several other hotel employees perform “Turtle and Crane,” the classic in which a crane helps a frog cross a river. When a sneaky turtle tries to bite the frog, the crane grabs the turtle and flings it into the water. The animals’ supple movements made me forget that puppeteers controlled them.

Afterward, I joined other spectators behind the translucent screen and, with Mao’s guidance, tried my hand at manipulating the many rods needed to make each puppet glide effortlessly. My awkward attempts to operate several sticks at once showed why it takes years to master something that looks deceptively simple.

I was more successful in the puppet painting class, my favorite activity. It required patience and concentration, like a moving meditation.

My jointed dragon, made of vellum-like leather and lacy filigree, was a challenge to paint. I modeled it after one in various shades of blue that Mao showed us at the beginning of class. That meant I needed to add just the right amount of water to my pot of blue ink to differentiate the colors of its scales, nostrils and claws.

Mine wasn’t quite as subtly shaded as the model I worked from, but it did have, to my eye, an otherworldly charm.

Mao attached its rods. Holding it gave me a visceral sense of connection to a timeless art form.

Roadshow roots

No one knows for sure how shadow puppetry started thousands of years ago, but in China it has served many purposes. In its heyday, it was the most popular form of entertainment, thanks to its simplicity and portability. Traveling troupes of musicians and puppeteers set up temporary stages in villages across the country to entertain the people, providing a sort of precursor to movies.

Shadow puppet plays were an essential part of birthdays, weddings and funerals. Although much of it was aimed at the masses, members of nobility enjoyed it too, but they traveled with personal shadow puppet theater companies to keep entertained.

Mao was 18 when he saw his first shadow play — it happened to be “Turtle and Crane” — in northern China. He found it “vivid and alive,” he said. The traveling company was recruiting new members and accepted him.

He studied for three years with a master of the art, learning the skills that make the motions look fluid. “The right hand controls the puppet’s arm and leg,” he said, “your left hand does the head.

“But cutting out the puppet figures is the real art,” he said, his face lighting up.

Mao worked with various troupes before joining the Shichahai Hotel when it opened in 2011. I asked him whether anyone could learn to be a shadow puppet performer. He paused, then answered, “Like ballet, some have a talent for this and some don’t. Making a puppet seem real comes from the hands, the heart and the brain.”

It also takes a passion.

“Nowadays, the younger generation has movies, TV, video games,” Bae said. “They are less interested in keeping this art alive.”

At the end of my stay, I went to the lobby to retrieve my dragon shadow puppet. It was in a padded red satin envelope decorated with brocade dragons for the journey home. I noticed Mao teaching another class, speaking in animated Chinese to a group of local youngsters, hoping, perhaps, to inspire a new generation of masters.