You can do it with css and buttons, but they sit on top of the canvas.
Take a look at this in css.
It shuffles, then when clicked on it puts the choosen card on top (z-ordered).
Best in Chrome, but works in Firefox and edge
https://www.sizzle-games.com/cardflip/
Yes. i see in behavior script blocks with something like css3 code.
Your example look very good. But in behavior this is look much better. For example, you can see side card at every flip moment.. Not only when card was placed.
I try search and compare other card game... well, most not use flip. Try use effects by Gigatron, not good too.
I think that Flip-behavior can use for coins, heart, card ... maybe random item generator (if behavior will be with properties).
You example great, but.. not so smooth. And im think with every project you need again and again re-work css. This is not ideal.
Im not so familiar with C2 and css using.
Can you share you primer capx? Or make only 1-2 card with no shift and transition? Only flip in a place.
Maybe its possible combine with Moveto or Litetween behavior?