Elias, a high school junior, endures relentless bullying and harassment from his peers, particularly his neighbor, Agnes. As he grows increasingly isolated from his divorced father, Stefan, his younger brother, Jonas, and his closest friend, Adam, Elias seeks refuge in the online game The Secret World. Within this virtual realm, he forms a bond with the avatar, Sc4rlet.
After enduring a humiliating incident where he is stripped and filmed, with the edited footage uploaded to YouTube, Elias spirals into deep anger and depression, contemplating suicide. On a fateful night, Sc4rlet sends him her picture along with an invitation to meet at their hometown's central station in Stockholm. However, the situation takes a turn for the worse when Agnes steals Elias's phone, obliterating their chance to connect. When he catches sight of her on the train heading home, fear grips him, causing him to jump off and nearly land on the tracks. At that critical moment, Sc4rlet intervenes, having recognized Elias, and their friendship blossoms.
As their relationship develops, Sc4rlet encourages Elias to reclaim his power and orchestrate a plan for revenge against his bullies. They target Agnes, the instigator of his torment, intending to replicate her cruelty by stripping her of her dignity and posting compromising photos online. The duo also conspires to procure drugs from a nearby hospital for Elias. The next day, during physical education class, Elias confronts Agnes but fails in his attempt to overpower her, ultimately being injected with the drugs she had intended for herself. Under the influence, Elias hallucinates Sc4rlet, who leads him to the rooftop of a neighboring building, whispering, "we'll die together, like you want." Meanwhile, Stefan discovers the illicit drugs hidden in Elias's room alongside an unedited video of the previous humiliation, gifted to him by Adam. Alarmed, he rushes to save Elias, who is precariously perched on the roof.
Upon waking up in the hospital, Elias faces a furious Stefan, who confronts him about the bullying and substance abuse. In response, Elias articulates a single, profound desire. Following his release, he records a video suicide note, expressing his farewells to friends and family. That evening, Sc4rlet returns to comfort him. It's revealed that she never left the train after all; an apparition imagined by Elias to guide him through his darkest moments. The following day, Elias boards a ferry to Åland, where Sc4rlet reappears, questioning whether he is certain about his decision. Setting up a camera, he plunges into the sea.
Three days later, Stefan is engulfed in despair as he watches the media coverage surrounding his son's disappearance, speculating on a potential suicide. A memorial service unfolds at Elias's school, where students grieve his loss. In a shocking twist, during the principal's address, Adam hijacks the projector to broadcast Elias’s suicide note to the entire student body, unraveling the truth about Agnes and her friends. The video then reveals the reality of the earlier incident, leaving the assembly in disbelief. At that moment, Elias reveals himself from the gallery, alive and well, having orchestrated the ruse to shed light on the bullying epidemic.
In a flashback, it’s shown that Elias survived by leaping to a lower deck, where his father caught him, devising a plan to fake his death to draw attention to the issue of bullying. In the aftermath, time passes, and Elias, Stefan, and Jonas find themselves a united family once more, watching an interview featuring Stefan, where he reflects on the moral implications of Elias's actions. Stefan asserts that bullying only garners attention when it escalates to tragedy, stating, “not until someone dies. We needed someone to die, so that the world could see the truth.” A vision of Sc4rlet reappears, bringing a smile to Elias’s face for the first time. Determined to find her, he uses the number she previously texted and discovers her real identity, Scarlet Friedmann. Upon their reunion, she recognizes him and expresses her sadness over their missed connection at the station, but now rejoices in his bravery to meet her.