Bottom of the user menu goes out of screen

This is weird. The variable should be calculated regardless of the theme you use.

I have a custom header (HTML + CSS) and on my site and --header-offset is correctly set to another value than the default one.