Cocktail Layering by Density (2D)

This 2D side-view simulator lets you pour liquids of chosen density and volume into a glass in any order, then watch buoyancy sort them into stable layers with the densest liquid always settling at the bottom. Stir the glass to mix the layers into a cloudy blend, then let it settle to see them separate again, while the live readout tracks fill level, layer count, and the current top-to-bottom density order.