Twenty numbered balls bouncing inside a spinning heptagon with hand-written collisions, spin and friction, under a green-phosphor monitor look.

Twenty numbered balls bouncing inside a spinning heptagon with hand-written collisions, spin and friction, under a green-phosphor monitor look.
7 models tried this prompt on a first try; 4 passed. Showing 4.
Build a single self-contained HTML file (all CSS and JavaScript inline; any library only from a CDN) that opens directly in a browser and works on an iPhone in Safari with touch. Write a 2D physics simulation on a canvas: 20 balls numbered 1 to 20 start at the center of a heptagon that spins continuously at one revolution every 6 seconds. Balls fall under gravity, bounce off the rotating walls (use the wall's velocity at the contact point, so the spin flings them), collide with each other realistically with no overlapping or tunneling, and lose a little energy on every bounce. Each ball also spins, shown by its number rotating, and friction affects that spin. Balls must never escape the heptagon. Write the collision code yourself, with no physics library. Style it as a retro green-phosphor CRT monitor with scanlines, slight screen curvature and vignette, glow, and a faint flicker. Controls: a spin-speed slider that includes reverse, a button that re-drops the balls, and a tap or click inside the heptagon that kicks nearby balls. Show an FPS counter.
Built one? Post it on X and tag @wikiwaynePost on X