The threejs scene in the docs is only for explaining the setup; it doesn't have a raytracer to render shadows accurately. The reference renders for the CSS were done in Blender. See
https://kikkupico.github.io/ambientcss/ambient-css/grounded#... for examples.