When rain falls on certain tree snails in the Philippines and Japan, something strange happens: their pale, patterned shells turn dark brown in minutes, disappearing into the wet tree bark around them. Now scientists know exactly how they do it—and what they've found could inspire new materials that work without batteries.

Researchers at the University Museum at the University of Tokyo discovered that two distantly related snail species independently evolved the same color-shifting trick. The Philippine snail Hypselostyla camelopardalis and the Japanese snail Reinia variegata both hide from predators by blending into their damp surroundings when it rains.

"The two-layered structure of the outermost organic membrane has sponge-like nano- to microscale voids that absorb moisture," explained Taro Yoshimura, a researcher in evolutionary paleontology. When water fills these tiny pores, it changes the way light passes through the shell's surface, making a darker layer underneath suddenly visible.

The team used powerful microscopes to watch the change happen in real time. The transformation is surprisingly fast: the shell surface goes from wrinkled and light-colored to smooth and dark within seconds. The researchers measured how much light the shell lets through, jumping from about 37 percent when dry to roughly 85 percent when wet.

This kind of color-changing ability is called dynamic camouflage, and it's common in animals like octopuses and cuttlefish, which can transform dramatically to hide from predators. But finding it in snails was unexpected. Shell colors and patterns were long thought to be fixed for life. The fact that two snails on opposite sides of Asia developed the exact same trick, without being closely related, shows how powerful evolution can be at finding elegant solutions.

"Witnessing how natural selection can drive entirely different organisms toward the exact same elegant evolutionary solution was an incredibly exciting discovery," Yoshimura said.

Beyond biology, the discovery has practical potential. Because the snails' shells react to moisture without any energy source, they could inspire new types of sensors and smart materials that respond to humidity on their own. That could mean coatings or sensors that work without batteries, useful for tracking conditions in hard-to-reach places.

The researchers are Associate Professor Takenori Sasaki and Taro Yoshimura at the University Museum, University of Tokyo. Their findings were published in the journal Zoological Letters.