✓ Two crowns ✓ Same mass, different density ✓ Vertical slider ✓ Slider works ✓ Slider controls crowns — Slider direction correct ✓ Full slider range — Fall animation ✓ Water displacement ✓ Rising water level ✓ Splash effects ✓ Physics correct — Live mass value — Live volume value — Live density value ✓ Live displaced water ✓ Gilded displaces more ✓ Heureka animation ✓ No external deps ✓ Light bg / dark text ✓ Self-contained HTML
Slider direction is inverted (value=0 at top means crowns start in air correctly, but slider min=0 maps to crown at top/air while max=100 maps to bottom/water — visually the thumb sliding DOWN corresponds to crowns going IN, which may be correct in some browsers but crown immersion logic is also broken because crownTop starts at 100px and goes to 300px, placing crowns far above the water surface without actually crossing it), and the three static live values (mass, volume, density) never change, only displaced water updates dynamically.
Slider direction is inverted (value=0 at top means crowns start in air correctly, but slider min=0 maps to crown at top/air while max=100 maps to bottom/water — visually the thumb sliding DOWN corresponds to crowns going IN, which may be correct in some browsers but crown immersion logic is also broken because crownTop starts at 100px and goes to 300px, placing crowns far above the water surface without actually crossing it), and the three static live values (mass, volume, density) never change, only displaced water updates dynamically.