One can use contain: paint ↗ instead of overflow: hidden. There is also corner-shape: squircle ↗.
contain: paint
overflow: hidden
corner-shape: squircle