How I architected "Haunt the Arena" - a Halloween-themed tournament platform for Vedam Esports that served 200+ participants across 48 teams with zero downtime.

Esports platforms require an incredibly unique architecture. You aren't just serving forms; you are serving real-time brackets, interactive 3D elements, and glitch-free experiences simultaneously. When Vedam Esports asked for a tournament platform for their "Haunt the Arena" event on 31 October 2025 - powered by Code Nexus - I decided to push the boundaries of WebGL and serverless databases instead of shipping another generic landing page.

This is the full architectural breakdown: what I built, why I chose Three.js and Firebase, and what actually held up when 150+ teams hammered the registration API the moment the countdown hit zero.

The event and the requirements

Haunt the Arena ran two tournaments side by side. Tekken 7 as a 1v1 single-elimination knockout on PC and console, and a BGMI Arena 4v4 TDM knockout on mobile. That dual-tournament shape drove almost every technical decision:

  • Two bracket systems, not one - each with its own match states, advancement logic, and admin controls.
  • Game-specific registration - a Tekken player and a four-person BGMI squad submit completely different data. A single generic form would have collapsed under validation edge cases.
  • Live operations on event day - brackets updating in real time as matches finished, plus an admin dashboard for the organizing team.
  • A visual identity worth the theme - Halloween: spectral effects, glitch text, neon glows, fog. The site had to feel like the event.

The zero-compromise constraint: the platform could not crash at the registration spike, and it could not lag on the mid-range phones most participants would use to check brackets.

The stack

Frontend engine. A completely custom HTML5/CSS3 layer overlaid on top of a Three.js canvas. No UI framework for the landing experience - the overlay approach kept the DOM light while the WebGL canvas carried the atmosphere: a floating particle background with spectral effects and parallax, glitch text animations, neon glows, and fog.

Real-time sync. Firebase Firestore was the obvious choice for the bracket system. The data pipeline is reactive: when an admin updates a match result, Firestore pushes the change and the bracket UI updates instantly across every connected client. No refresh, no polling loop, no stale brackets on the big screen.

Security. Firebase Authentication with rules that ensure team captains can only edit their own roster details - nobody else's.

Motion. GSAP for the UI animation layer on top of the CSS3 work.

Handling 3D performance

Using Three.js on a landing page is risky because of mobile performance. A WebGL render loop running at full tilt will drain a phone battery and turn a budget device into a hand warmer. Two decisions kept the experience at a stable 60FPS even on older mobile devices:

1. Pause what nobody is looking at. I implemented an intersection observer that pauses the WebGL rendering loop whenever the canvas is scrolled out of view. If you can't see the particles, they don't render. This single change did more for battery life and thermal behavior than any amount of shader tuning.

2. Spend the polygon budget where it shows. Low-polygon models and custom shaders carry the scene. The visual fidelity comes from post-processing effects - Bloom and Chromatic Aberration - which are comparatively cheap, rather than from geometry, which is not. The result reads as high-end without asking the GPU to act like it.

The broader lesson: performance on a 3D marketing page is mostly a scheduling problem. Render only what's visible, only when it's visible, and fake the rest.

Real-time architecture under load

The reactive pipeline is simple to describe: admin action -> Firestore write -> realtime listener -> client UI update. The interesting part is what it removes. There is no polling interval to tune, no cache invalidation to get wrong, and no "refresh to see the latest bracket" moment during a live event. During operations, the admin dashboard is the single writer; every participant screen is a read-only subscriber. That one-directional flow kept the system predictable exactly when the room got loud.

On the registration side, the multi-step form wizard did live validation with game-specific fields - Tekken entrants went down one path, BGMI squads down another, with per-step checks instead of one giant submit-and-pray. When registration opened, over 150 teams hit the API right at the countdown. The serverless model absorbed the spike without a single provisioning decision on my side, which is precisely why I picked it for a fixed-date event with an unknown load curve.

The visual system

The theme did real work. The Three.js particle background runs spectral effects with parallax so the scene responds as you move through the page; glitch text handles the headers; neon glows and fog set the Halloween mood without a single heavy texture. Because the atmosphere is procedural - generated by shaders and CSS rather than shipped as image assets - the page stays light even though it looks dense. That mattered for the same reason the intersection observer mattered: most participants opened the site on a phone, often on event Wi-Fi.

The bracket data model

Two tournaments meant resisting the urge to build "one bracket with a type field." Tekken 7 was a 1v1 single-elimination knockout; BGMI was a 4v4 squad TDM knockout. The advancement logic, the entity being seeded (a player versus a roster of four), and the match metadata are all different. I modeled each tournament as its own bracket tree in Firestore, with a shared match-result shape so the admin dashboard could render either tournament from the same component. Shared rendering, separate data - that split made the dashboard simple and kept the bracket logic honest.

The admin dashboard

The organizing team needed to run the event from one screen: verify registrations, seed the brackets, and record match results as games finished. The dashboard is the only writer in the system, which let me keep every participant-facing page read-only. That separation paid for itself on event day - there is no class of bug where a participant's action corrupts the bracket, because participants have no write path at all. Results went in from the dashboard, and every screen in the venue updated on its own.

The outcome

The platform hosted over 200 participants across 48 teams without a single second of downtime. Registration, brackets, admin operations, and the 3D landing experience all held through the event.

Building platforms like this proves that the gap between a standard "web page" and an immersive "digital experience" is purely architectural. The tools - Three.js, Firebase, GSAP - are available to everyone. What separates a site that works from a platform that scales is the set of decisions you make before the first user arrives: what renders when, who can write what, and how state moves through the system. None of those decisions are expensive. All of them are easier to make early than to retrofit after the registration spike has already knocked once.

If you're planning a tournament or an event platform and want to talk through the architecture, the full write-up with project context is on my site, and my inbox is open.

Originally published on sidhantpande.in.