--tooth-width: 50px;
--tooth-height: 25px;
--tooth-width: 2rem;
--tooth-height: 3rem;
--tooth-width: calc(33vw - 31px);
--tooth-height: 2em;

This Houdini demo requires the CSS Paint API, CSS Properties and Values API, and Typed OM.
Use Chrome and go to chrome://flags and enable Experimental Web Platform features.
Also make sure you're serving over https or localhost.