A man awakens in a cube-shaped chamber where every wall doubles as a hatch to a neighboring room, and razor-sharp beams suddenly slice through the space, taking one life in a blink. The camera lingers on the cold, clinical geometry of the maze, hinting at a challenge that is as much about wit and nerve as it is about survival.
Engineer Yuichi Goto wakes up in a similar room alongside middle school student Chiharu Uno and freeter Shinji Ochi. All three wear identical jumpsuits, their belongings gone, and memory of how they arrived wiped clean. A fourth traveler, Ide Hiroshi, materializes with a wary confidence, warning them that some chambers are booby-trapped. Soon after, Kai Asako joins the uneasy group, adding another layer to their fragile alliance as they weigh their next move.
When Ide opens a hatch in the ceiling, the corpse of the man from the earlier scene drops into the room, a brutal reminder that the maze is more than a test of speed—it is a test of trust and restraint. With that grim signal, the quartet agrees to team up and search for an exit, pooling their instincts and scavenging whatever clues they can find. Ide uses a boot as a decoy to probe for hidden traps, while Uno begins to map the sequence of rooms by memorizing the numbers between the thresholds and scratching them onto a panel for reference. Goto proposes a theory that rooms whose thresholds include prime numbers are more dangerous, and the group begins to test this idea together, hopeful that mathematics might point them toward safety.
They soon confront a chamber whose exits all appear trapped, and further tests reveal a trap that responds to sound. The team moves through in eerie silence, but a single misstep by Ochi triggers a lethal sequence that injures Ando’s leg and sparks tension within the group. Ando’s anger sharpens the sense of danger as they speculate that the rooms themselves might be shifting, complicating their sense of direction and safety.
A tremor jolts Uno, sending him tumbling into a laser-equipped slot, and Goto and Ide rush to pull him back, but Ide is killed in the attempt. Kai, quick-thinking and composed, helps Goto decipher a crucial pattern: the numbers on the plates align with Cartesian coordinates that can guide them to an exit. The group presses on, only to be separated as metal bars slam down, splitting Ochi and Ando from the others. Ando decides to strike out on his own with Ochi, while the remaining trio rallies around a new objective.
In a dimly lit room, a screen reveals Goto’s painful memories of his younger brother Hiroto, who died by his own hand while suffering abuse, a revelation that unsettles him deeply. Uno’s empathy and quiet strength steady him as he consoles Goto, who suddenly steels himself to protect the others at all costs. Back in the maze’s corridors, Ando bullies Ochi, pushing the dynamic toward a breaking point until Ochi—the freeter who had seemed a wildcard—slams Ando’s head against a hatch door in a fatal, brutal moment.
Uno accuses Goto of cowardice for not saving Hiroto, and Goto confronts the painful truth about his past. Yet when Ochi’s manipulation becomes clear, Goto’s resolve tightens: he must keep Uno and Kai safe. The group advances toward what appears to be the edge of the cube, the walls thinning as a doorway opens onto a startling view. They discover that their cube is part of an enormous, vertical structure, tens of meters above the ground, with the distant opposite side seemingly blocked by sheer height and distance.
Ochi reappears, claiming Ando died in a trap, sowing doubt and fear among the survivors. Uno challenges Ochi, who responds with aggression, forcing another confrontation. The others intervene, and Ochi finally admits to killing Ando and deliberately steering the group into a deadly trap. As the trap activates, Goto fights to subdue him, and Ochi is swallowed by the mechanism’s deadly teeth. Goto’s selfless act moments later—sacrificing his own chance to escape—secures a safer route for Uno and Kai as they edge closer to what might be the exit.
The remaining pair reach the edge and glimpse a passage that hints at the first true light beyond their prison, but Kai stays behind to scout for any last survivors, while Uno takes a leap toward the known and possible exit, stepping into a corridor that leads toward a distant glow. Wounded but resolute, Goto continues to navigate the maze, driven by a new purpose to ensure a future for those who survive him.
In a chilling final twist, it is revealed that Kai has been cybernetically monitoring the survivors as part of an ongoing experiment. She re-enters the cube to begin the process anew with a different group, implying that the cycle will repeat, and the human cost will continue to accumulate, even as the pursuit of a way out persists.