.pof-vs{top:2%;left:50%;transform:translate(-50%,-100%) scale(.45) rotate(-12deg);pointer-events:none}
.pof-overlay.is-waiting_accept .pof-vs{transform:translate(-50%,-100%) scale(.85)}
@keyframes pof-vs-in{to{opacity:1;transform:translate(-50%,-100%) scale(1) rotate(-8deg)}}

/* Make the two sides of the coin deterministic in Chromium/OBS as well as
   Firefox: neither browser is allowed to reveal the mirrored rear of 54. */
.pof-coin-core{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}
.pof-coin-face{-webkit-backface-visibility:hidden;backface-visibility:hidden}
.pof-coin-face--pile{transform:rotateY(0deg) translateZ(18px)}
.pof-coin-face--face{transform:rotateY(180deg) translateZ(18px)}
.pof-coin-face--pile b{position:absolute;top:50%;left:50%;display:block;width:auto;margin:0;padding:0;text-align:center;letter-spacing:0;line-height:.86;transform:translate(-56%,-56%)}
.pof-overlay.is-finished.pof-result-face .pof-coin-face--pile{visibility:hidden}
.pof-overlay.is-finished.pof-result-face .pof-coin-face--face{visibility:visible}
.pof-overlay.is-finished.pof-result-pile .pof-coin-face--face{visibility:hidden}
.pof-overlay.is-finished.pof-result-pile .pof-coin-face--pile{visibility:visible}

/* On Face, keep the parent on the front plane and reveal only the Croco
   face. This avoids an upside-down 54 on browser sources that flatten 3D. */
.pof-overlay.is-finished.pof-result-face .pof-coin-core{animation:pof-land-face-croco .88s cubic-bezier(.16,.82,.25,1.14) both}
.pof-overlay.is-finished.pof-result-face .pof-coin-face--pile{display:none}
.pof-overlay.is-finished.pof-result-face .pof-coin-face--face{display:grid;transform:translateZ(18px)!important}
@keyframes pof-land-face-croco{0%{transform:rotateY(1080deg) rotateX(12deg) scale(1.02)}72%{transform:rotateY(1416deg) rotateX(0) scale(1.11)}100%{transform:rotateY(1440deg) scale(1)}}

/* The supplied Croco badge is placed above the physical coin only on a
   Face result. This is deliberately not a mirrored 3D child. */
.pof-croco-forced-face{position:absolute;z-index:8;top:50%;left:50%;display:none;width:55%;aspect-ratio:1;align-items:center;justify-content:center;transform:translate(-50%,-50%);pointer-events:none}
.pof-croco-forced-face:before{content:"";position:absolute;inset:-16%;border-radius:50%;background:radial-gradient(circle at 35% 24%,rgba(255,245,205,.5),transparent 28%),radial-gradient(circle,#f7d273 0,#cc7a24 57%,#7b2d07 100%);box-shadow:inset 0 0 0 5px rgba(91,31,5,.78),0 0 24px rgba(255,174,54,.62)}
.pof-croco-forced-face img{position:relative;z-index:1;width:108%;height:108%;object-fit:contain;image-rendering:auto;filter:brightness(0) saturate(100%) invert(17%) sepia(73%) saturate(2521%) hue-rotate(10deg) brightness(91%) contrast(98%) drop-shadow(0 4px 0 rgba(91,31,5,.76)) drop-shadow(0 0 11px rgba(255,174,54,.62))}
.pof-overlay.is-finished.pof-result-face .pof-croco-forced-face{display:grid;animation:pof-croco-reveal .58s .2s cubic-bezier(.16,.82,.25,1.16) both}
@keyframes pof-croco-reveal{from{opacity:0;transform:translate(-50%,-50%) scale(.46) rotate(-12deg)}to{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}}

/* Keep the game block and its inner edging; nothing is painted around it. */
.pof-overlay .pof-stage{box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)}
