Just discovered this excellent resource about which CSS features work well in shadow DOM and which don't: https://shadow-dom-css.adobe.com/
Honestly this is the part I miss least about working with web components. It broke so many parts of the web platform, and plenty of new web APIs seem to be just plowing ahead and hoping "somebody will figure out this shadow DOM stuff later"