TITLE Abelian Sandpile Avalanche PROMPT Create a luminous, tactile mathematical-physics cellular automaton studio exploring the Bak-Tang-Wiesenfeld Abelian Sandpile model — the foundational demonstration of self-organized criticality where simple local toppling rules (`h ≥ 4 → topple 1 grain to each of 4 neighbors`) spontaneously generate breathtaking symmetrical fractal diamond mandalas. Mood: calm crystalline precision, warm ceramic-tile minimalism, hypnotic emergent complexity. Palette: Warm studio linen `#F2EFE9`, 0-grain alabaster `#EAE4D7`, 1-grain celadon `#8BB8A8`, 2-grain ochre gold `#E8A849`, 3-grain burnt terracotta `#C84B31`, unstable avalanche spark `#FFF7E6`, and slate ink `#242220`. Typography: Georgia serif for the studio title ("ABELIAN SANDPILE // SELF-ORGANIZED CRITICALITY") and mathematical rule badge (`z(x,y) ≥ 4 → topple`), paired with Menlo tabular monospace for live Total Grains, Topplings/sec, Avalanche Size, and Equilibrium status. Layout & Composition: Clean modernist exhibition frame centered on a crisp square high-DPI Canvas 2D lattice (151×151 or 201×201 cells rendered cleanly via direct `ImageData` pixel buffer for blazing 60fps throughput even during massive 50,000-grain avalanches!). Minimalist bottom architectural bar: **"Drop 10,000 Grains"** central burst button, **"Drop 1,000"** brush click mode, Presets ("Identity Element", "Twin Peaks Collision", "Square Lattice Seed", "Clear"), Simulation Speed (`Step`, `1×`, `Fast 40×`), and a 4-swatch ceramic color legend (`0`, `1`, `2`, `3` grains). Motion & Choreography: Ultra-fast double-buffered parallel toppling engine executing up to 40 avalanche generations per animation frame at 60fps so massive cascades ripple outward in hypnotic crystalline shockwaves, fractal triangles, and self-similar chevrons before snapping into serene static symmetry. Interactions & Signature Moment: Clicking **"Drop 10,000 Grains"** (or clicking/dragging anywhere on the lattice to pour sand columns) triggers a mesmerizing self-organized avalanche that erupts outward across the warm ceramic grid — hundreds of thousands of toppling events resolve into razor-sharp, breathtakingly intricate symmetrical fractal diamond mandalas in celadon, ochre, and terracotta that prove order can emerge purely from simple local arithmetic! Dropping a second pile off-center creates stunning asymmetric interference patterns. Copy Direction: Authentic statistical-mechanics language — "BAK–TANG–WIESENFELD MODEL", "CRITICAL THRESHOLD z = 4", "TOPPLINGS / FRAME", "IDENTITY ELEMENT", "CLICK TO POUR GRAINS". DESCRIPTION An Abelian sandpile cellular automaton studio rendered in warm ceramic tones where pouring thousands of grains triggers 60fps cascades that self-organize into intricate fractal diamond mandalas. VISUAL TECHNIQUES - High-speed double-buffered Uint32Array + Canvas 2D ImageData pixel engine executing dozens of toppling generations per frame at 60fps - Warm ceramic 4-state color LUT (alabaster, celadon, ochre, terracotta) with subtle unstable-front highlight - Pre-computed Abelian Sandpile Identity Element preset and multi-peak collision playground - Live avalanche toppling counter and power-law activity indicator INTERACTION MODEL Click Drop 10,000 Grains for an instant central fractal bloom, or click/drag anywhere on the lattice to pour custom piles and collide avalanches; switch speed between single-step inspection and 40× fast cascade.