In a development that’s equal parts biotech and rave aesthetic, scientists in the US have figured out how to coax a sea-dwelling species of algae into producing a sustained, mesmerizing blue glow - and then 3D-print it into shapes that look like they belong in a sci-fi nightclub.

The culprit is Pyrocystis lunula, a single-celled bioluminescent organism that normally flashes blue only in brief, dramatic bursts - the kind that make breaking waves look like they’re hosting an underwater disco. Giulia Brachi, a researcher at the University of Colorado Boulder, was initially trying to replicate the mechanical stress of waves by "squishing them very slowly" in a darkened lab. The algae, however, were not impressed. "They weren’t really responding to that," Brachi admitted, which is probably the most passive-aggressive response a microorganism has ever given to a scientist.

So Brachi and her colleagues pivoted to a different tactic, one that previous studies had hinted at: drop the pH in the algae’s light-emitting organelles and the light show begins. After adding a slightly acidic solution to a flask of algae, Brachi was momentarily confused, thinking the glow might be a laptop reflection. Instead, the flask had transformed into a container of living glitter. The results, published in Science Advances, describe glowing lasting up to 25 minutes per session.

The team encapsulated the algae in a hydrogel - essentially water-based jelly - and 3D-printed it into blobby shapes, including a crescent moon as a nod to the algae’s microscopic appearance. All shapes emitted a strong cyan glow, which would undoubtedly make for some stellar glow bracelets at your next warehouse party.

The chemistry behind this light show involves luciferase, an enzyme that reacts with luciferin (both named after the Latin "lucifer," meaning light bearer - because of course). "They’re pretty self-sustaining provided that they have access to seawater," said Prof Wil Srubar, also of the University of Colorado Boulder. He suggested the "living light" could be used for glowsticks or rave bracelets, or even embedded in biosensors that glow when detecting environmental toxins.

Prof Chris Howe of the University of Cambridge, who was not involved in the study, called it "a really interesting first step" but cautioned that moving from lab-controlled conditions to the real world will be a challenge. He also pointed out a potential environmental win: for small light-emitting devices that rely on disposable batteries, bioluminescence could drastically reduce battery waste.

Not everyone is sold on the algae’s long-term happiness. Anthony Campbell, a professor emeritus at the University of Cardiff, noted that the study’s solution had a pH of 4 - about as acidic as a tomato - and algae "don’t like it, it stresses them." So, the algae might be glowing, but are they glowing with joy? Possibly not.

And then there’s the big mystery: why did Pyrocystis lunula evolve to glow in the first place? The leading theory is defense - the light might deter predators. Howe says it’s "a fairly plausible explanation," though not confirmed. Because sometimes nature just likes to throw a light show without explaining itself.