/* 3D look for the whole site. Pure transforms/opacity so it stays on the GPU. Behaviour is in fx.js. */
.fx-stage{position:fixed;inset:0;z-index:1;overflow:hidden;pointer-events:none;perspective:900px;contain:strict}
.fx-shape{position:absolute;transform-style:preserve-3d;opacity:.5;will-change:transform}
.fx-cube{width:64px;height:64px;left:calc(100% - 118px);top:22%;animation:fxSpinA 26s linear infinite}
.fx-cube i{position:absolute;inset:0;border:1px solid rgba(201,168,76,.55);background:linear-gradient(135deg,rgba(201,168,76,.16),rgba(201,168,76,.02));backface-visibility:visible}
.fx-cube i:nth-child(1){transform:translateZ(32px)}
.fx-cube i:nth-child(2){transform:rotateY(180deg) translateZ(32px)}
.fx-cube i:nth-child(3){transform:rotateY(90deg) translateZ(32px)}
.fx-cube i:nth-child(4){transform:rotateY(-90deg) translateZ(32px)}
.fx-cube i:nth-child(5){transform:rotateX(90deg) translateZ(32px)}
.fx-cube i:nth-child(6){transform:rotateX(-90deg) translateZ(32px)}
.fx-ring{width:88px;height:88px;left:5%;top:62%;border-radius:50%;border:2px solid rgba(240,208,120,.5);box-shadow:inset 0 0 14px rgba(201,168,76,.25);animation:fxSpinB 21s linear infinite}
.fx-coin{width:46px;height:46px;left:calc(100% - 80px);top:68%;border-radius:50%;background:radial-gradient(circle at 30% 30%,#F0D078,#C9A84C 60%,#8a6d22);box-shadow:0 0 18px rgba(201,168,76,.35);animation:fxSpinC 9s linear infinite}
.fx-diamond{width:38px;height:38px;left:8%;top:18%;border:1.5px solid rgba(201,168,76,.5);background:rgba(201,168,76,.07);animation:fxSpinD 17s linear infinite}
@keyframes fxSpinA{from{transform:rotateX(-22deg) rotateY(0)}to{transform:rotateX(338deg) rotateY(360deg)}}
@keyframes fxSpinB{from{transform:rotateX(70deg) rotateZ(0)}to{transform:rotateX(70deg) rotateZ(360deg)}}
@keyframes fxSpinC{from{transform:rotateY(0)}to{transform:rotateY(360deg)}}
@keyframes fxSpinD{from{transform:rotateX(55deg) rotateZ(45deg) translateZ(0)}to{transform:rotateX(55deg) rotateZ(405deg) translateZ(0)}}
@media (max-width:768px){.fx-shape{opacity:.32}.fx-cube{width:44px;height:44px;left:calc(100% - 70px)}.fx-cube i{transform-origin:center}.fx-cube i:nth-child(1){transform:translateZ(22px)}.fx-cube i:nth-child(2){transform:rotateY(180deg) translateZ(22px)}.fx-cube i:nth-child(3){transform:rotateY(90deg) translateZ(22px)}.fx-cube i:nth-child(4){transform:rotateY(-90deg) translateZ(22px)}.fx-cube i:nth-child(5){transform:rotateX(90deg) translateZ(22px)}.fx-cube i:nth-child(6){transform:rotateX(-90deg) translateZ(22px)}.fx-ring{width:60px;height:60px}.fx-coin{width:32px;height:32px}}
.fx-sleepy .fx-shape{animation-play-state:paused}

/* Cards tilt toward the pointer (desktop with a mouse only) */
.fx-tilt{transition:transform .14s ease-out,border-color .3s,box-shadow .3s;transform-style:preserve-3d}
.fx-tilt:hover{box-shadow:0 22px 44px rgba(0,0,0,.5),0 0 26px rgba(201,168,76,.14)}

/* Cards flip up as they scroll into view */
.fx-reveal{opacity:0;transform:perspective(900px) rotateX(16deg) translateY(26px)}
.fx-reveal.in{opacity:1;transform:none;transition:opacity .6s ease,transform .7s cubic-bezier(.2,.7,.2,1)}

/* Easter eggs */
.fx-toast{position:fixed;left:50%;bottom:92px;z-index:2147483000;transform:translate(-50%,18px) scale(.96);opacity:0;max-width:min(88vw,420px);padding:.7rem 1.1rem;border-radius:14px;border:1px solid rgba(201,168,76,.5);background:rgba(10,17,32,.96);color:#F0D078;font-size:.9rem;font-weight:700;text-align:center;pointer-events:none;transition:opacity .25s,transform .25s}
.fx-toast.on{opacity:1;transform:translate(-50%,0) scale(1)}
.fx-conf{position:fixed;top:-14px;z-index:2147483000;width:9px;height:14px;border-radius:2px;pointer-events:none;animation:fxFall 2.6s cubic-bezier(.3,.6,.4,1) forwards}
@keyframes fxFall{0%{transform:translate3d(0,0,0) rotate(0)}100%{transform:translate3d(var(--dx,0),105vh,0) rotateX(720deg) rotateZ(var(--r,360deg));opacity:.9}}
.fx-barrel{animation:fxBarrel 1.1s ease-in-out 1}
@keyframes fxBarrel{0%{transform:rotateY(0)}100%{transform:rotateY(720deg)}}
.fx-zzz{position:fixed;left:18px;bottom:24px;z-index:2147482000;color:#9AA9C6;font-weight:800;letter-spacing:.3em;font-size:1.1rem;opacity:0;pointer-events:none;transition:opacity .8s;animation:fxZzz 2.4s ease-in-out infinite}
.fx-zzz.on{opacity:.55}
@keyframes fxZzz{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

@media (prefers-reduced-motion:reduce){
  .fx-stage,.fx-conf,.fx-zzz{display:none!important}
  .fx-reveal{opacity:1!important;transform:none!important}
  .fx-barrel{animation:none}
}
