Firefox 161 lets var(), attr() and env() take nested functions, so a variable name can come from an attribute. Tested patterns and safe fallbacks.