How do CSS Layers (@layer) work, and what problem do they solve?

CSS Layers allow controlled stacking of CSS rules for better organization and specificity management, prioritizing specific layers.