.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;overflow:hidden;clip-path:circle(50% at 50% 50%);-webkit-mask-image:radial-gradient(circle at center,#000 99%,transparent 100%)}
.pof-coin-shine{border-radius:50%;clip-path:circle(50% at 50% 50%)}
.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)}

/* GTA VI / Vice City is opt-in per channel. It never changes another
   streamer's existing Pile ou Face design. */
.pof-overlay[data-theme="gta"]{--pof-gold:#ffd36a;--pof-green:#52f0d5;background:transparent}
.pof-overlay[data-theme="gta"] .pof-stage{border-color:rgba(255,92,185,.78);border-radius:22px;background:linear-gradient(108deg,rgba(21,8,45,.48),rgba(76,24,91,.20) 52%,rgba(255,107,151,.10)),url('/assets/images/pileouface-gta-cooldown.jpg') center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),inset 0 0 52px rgba(11,0,35,.28),0 0 34px rgba(255,54,173,.42)}
.pof-overlay[data-theme="gta"] .pof-stage:before{background:linear-gradient(115deg,rgba(50,219,255,.2),transparent 31%,rgba(255,53,165,.24) 69%,transparent 100%)}
.pof-overlay[data-theme="gta"] .pof-stage:after{border-color:rgba(255,218,115,.46);border-radius:13px}
.pof-overlay[data-theme="gta"] .pof-kicker{font-family:Impact,"Arial Black",sans-serif;font-size:clamp(12px,1vw,20px);letter-spacing:.22em;color:#fff2d1;text-shadow:0 2px 0 #42115d,0 0 19px #ff35aa}
.pof-overlay[data-theme="gta"] .pof-heading__line{height:3px;background:linear-gradient(90deg,transparent,#ff39bf,#54dfff)}
.pof-overlay[data-theme="gta"] .pof-player__side,.pof-overlay[data-theme="gta"] .pof-result>span{color:#fff2d1;text-shadow:0 2px 8px #25043d}
.pof-overlay[data-theme="gta"] .pof-player__rule{color:#50e8ff;text-shadow:0 0 12px #35c6ff}
.pof-overlay[data-theme="gta"] .pof-player__symbol,.pof-overlay[data-theme="gta"] .pof-player__croco{opacity:.3;color:#ffce67;filter:drop-shadow(0 0 22px #ff3ba7)}
.pof-overlay[data-theme="gta"] .pof-vs{color:#fff0d0;text-shadow:0 0 21px #ff39bb,0 5px 0 #35104e}
.pof-overlay[data-theme="gta"] .pof-coin-face{border-color:#ff79cf;background:radial-gradient(circle at 32% 26%,#fff8d9 0 4%,#ffd269 20%,#e34eaa 49%,#65236f 77%,#220c3d 100%);box-shadow:inset 0 0 0 clamp(3px,.32vw,6px) #511354,inset 0 0 0 clamp(8px,.9vw,14px) rgba(255,241,174,.42),inset 0 0 23px rgba(255,208,235,.72),0 0 42px rgba(255,48,174,.72)}
.pof-overlay[data-theme="gta"] .pof-coin-face:before{border-color:rgba(255,237,160,.76);box-shadow:0 0 0 3px rgba(72,224,255,.35)}
.pof-overlay[data-theme="gta"] .pof-coin-face--pile b{color:#57154c;text-shadow:1px 1px 0 #fff0be,-2px -2px 0 #35103d,0 5px 0 rgba(59,13,57,.6)}
.pof-overlay[data-theme="gta"] .pof-result strong{color:#fff1ba;text-shadow:0 0 22px #ff38ae,0 3px 0 #441052}
.pof-overlay[data-theme="gta"] .pof-particles i{background:#ff40b8;box-shadow:0 0 10px #ffc259}
.pof-overlay[data-custom-background="1"] .pof-stage{background:linear-gradient(108deg,rgba(12,7,24,.72),rgba(31,12,42,.45) 55%,rgba(9,6,18,.62)),var(--pof-custom-background) center/cover no-repeat!important}

/* GTA VI coin faces for Ahmedlndy: no legacy 54 and no Croco are ever
   visible on the physical coin. Pile is the supplied GTA VI mark; Face is
   a tight crop of the two supplied characters. */
.pof-overlay[data-theme="gta"] .pof-coin-face--pile b,
.pof-overlay[data-theme="gta"] .pof-coin-face--pile em,
.pof-overlay[data-theme="gta"] .pof-coin-face--face .pof-crocodile,
.pof-overlay[data-theme="gta"] .pof-coin-face--face em{opacity:0!important}
.pof-overlay[data-theme="gta"] .pof-side-visual{z-index:9;width:71%;border-radius:50%;filter:drop-shadow(0 7px 10px rgba(14,0,32,.7)) drop-shadow(0 0 16px rgba(255,55,179,.72))}
.pof-overlay[data-theme="gta"] .pof-side-visual--pile img{object-fit:contain;transform:scale(1.08)}
.pof-overlay[data-theme="gta"] .pof-side-visual--face img{object-fit:cover;object-position:47% 20%;transform:scale(1.02)}
.pof-overlay[data-theme="gta"] .pof-coin-core:after{content:"";position:absolute;z-index:10;inset:-7%;border-radius:50%;pointer-events:none;border:clamp(3px,.36vw,7px) solid rgba(255,202,101,.86);box-shadow:inset 0 0 0 clamp(3px,.4vw,8px) rgba(39,9,58,.75),0 0 16px rgba(69,230,255,.6),0 0 27px rgba(255,45,169,.68)}

/* At rest, the coin is visibly on Pile. The logo disappears only while the
   coin is spinning, then the resolved Pile/Face artwork is shown. */
.pof-overlay[data-theme="gta"].is-waiting_accept.has-pof-custom-pile .pof-side-visual--pile:not([hidden]){display:grid;animation:none}

/* The GTA layout keeps only the challenger names: no legacy 54 or Croco
   badge is shown beneath either pseudo. */
.pof-overlay[data-theme="gta"] .pof-player__symbol,
.pof-overlay[data-theme="gta"] .pof-player__croco,
.pof-overlay[data-theme="gta"] .pof-player__rule{display:none}
