Improved device width vars with actual viewports and true res