The idea
Everything at once. The card is the containing block (position: relative), the badge hangs off its top-right corner with top/right and a high z-index, and the close button pins to the bottom-right with bottom/right. Match all three elements.
This level needs position, top, right, bottom and z-index — the badge and close button are absolutely positioned against the card.