Render Flow - Variable scope
Parse CSS file
Identify :root variables
Identify variables in selectors
Build cascade and inheritance
Apply variables based on scope
Render styles with resolved values
The browser reads CSS variables from global (:root) and local selectors, then applies them based on where they are defined and used, resolving the final values during rendering.