.fx { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; }
.fx::before { content: ""; position: absolute; inset: 0; background: rgba(8,10,16,0.62); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); animation: fx-bg 1.15s ease forwards; }
@keyframes fx-bg { 0% { opacity: 0; } 14% { opacity: 1; } 84% { opacity: 1; } 100% { opacity: 0; } }
.fx-p { position: absolute; bottom: -50px; color: #ffc233; text-shadow: 0 0 16px rgba(255,194,51,0.85); opacity: 0; animation: fx-rise 1s ease-out forwards; }
@keyframes fx-rise { 0% { transform: translate(0,0) rotate(0) scale(0.5); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx),-100vh) rotate(380deg) scale(1.15); opacity: 0; } }
.fx-pop { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: fx-pop 1.15s ease-out forwards; }
@keyframes fx-pop { 0% { transform: translate(-50%,-50%) scale(0.2); opacity: 0; } 22% { transform: translate(-50%,-50%) scale(1.3); opacity: 1; } 40% { transform: translate(-50%,-50%) scale(1); } 80% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 100% { transform: translate(-50%,-62%) scale(1.05); opacity: 0; } }
.fx-big { font-size: min(130px, 15vw); letter-spacing: 8px; color: #ffc233; text-shadow: 0 0 28px rgba(255,194,51,0.9); white-space: nowrap; }
.fx-ico svg { width: 200px; height: 200px; stroke: rgb(var(--c)); fill: rgba(var(--c),0.28); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(var(--c),0.7)); }
.fx-spin svg { animation: fx-spin 0.95s cubic-bezier(.2,.7,.3,1); }
@keyframes fx-spin { from { transform: rotate(-400deg); } to { transform: rotate(0); } }
.fx-cap { font-weight: 800; font-size: 32px; padding: 8px 28px; border-radius: 999px; color: rgb(var(--c)); background: rgba(var(--c),0.2); border: 1px solid rgba(var(--c),0.6); backdrop-filter: blur(6px); white-space: nowrap; }
.fx-long::before { animation-duration: 2.3s; }
.fx-mid::before { animation-duration: 1.55s; }
.fx-rate::before { animation-duration: 1.8s; }
.fx-rate .fx-pop { animation-duration: 1.8s; }
.fx-starrow { display: flex; justify-content: center; gap: 8px; margin-top: 18px; font-size: 40px; line-height: 1; }
.fx-s { color: rgba(128,128,128,0.45); opacity: 0; animation: fx-starpop 0.45s cubic-bezier(.3,1.6,.5,1) both; }
.fx-s.on { color: #ffc233; text-shadow: 0 0 16px rgba(255,194,51,0.9); }
@keyframes fx-starpop { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.fx-rate .fx-pw { width: 190px; }
.fx-rate .fx-cardimg { width: 190px; }
.r5 .fx-cardimg { animation: fx-cardin 0.6s cubic-bezier(.2,.9,.3,1.2) both, fx-gold 0.8s ease-in-out 0.6s infinite alternate; }
@keyframes fx-gold { from { box-shadow: 0 0 20px 2px rgba(255,194,51,0.6), 0 0 0 3px #ffc233; } to { box-shadow: 0 0 70px 14px rgba(255,194,51,0.95), 0 0 0 3px #ffe08a; } }
.r4 .fx-cardimg { box-shadow: 0 14px 40px rgba(0,0,0,0.6), 0 0 28px 3px rgba(255,176,46,0.7), 0 0 0 2px rgba(255,176,46,0.9); }
.r3 .fx-cardimg { animation-duration: 0.9s; }
.r2 .fx-cardimg { animation: fx-cardin 0.6s ease both, fx-sink 0.7s ease-in 0.7s forwards; filter: saturate(0.6); }
@keyframes fx-sink { to { transform: translateY(18px) rotate(-7deg) scale(0.96); } }
.r1 .fx-cardimg { animation: fx-plop 0.7s cubic-bezier(.4,0,.6,1) both, fx-shake 0.5s linear 0.7s both; filter: grayscale(0.7) brightness(0.8); }
@keyframes fx-plop { 0% { transform: translateY(-60vh) rotate(8deg); opacity: 0; } 60% { opacity: 1; transform: translateY(0) rotate(-3deg); } 75% { transform: translateY(-14px); } 100% { transform: translateY(0); opacity: 1; } }
@keyframes fx-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-12px) rotate(-3deg); } 40% { transform: translateX(12px) rotate(3deg); } 60% { transform: translateX(-8px); } 80% { transform: translateX(8px); } }
.fx-mid .fx-pop { animation-duration: 1.55s; }
.fx-mid .fx-cap { margin-top: 34px; }
.fx-pw { position: relative; width: 200px; perspective: 800px; }
.fx-cardimg { display: block; width: 200px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,0.6), 0 0 0 2px rgba(var(--c),0.7); animation: fx-cardin 0.6s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes fx-cardin { from { transform: scale(0.3) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.fx-flip { animation: fx-cardin 0.5s cubic-bezier(.2,.9,.3,1.2) both, fx-flipy 0.9s ease-in-out 0.45s both; }
@keyframes fx-flipy { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.fx-ribbon { position: absolute; top: -20px; right: -16px; width: 86px; height: 86px; animation: fx-ribbon 0.55s cubic-bezier(.3,1.4,.5,1) 0.5s both; }
.fx-ribbon svg { width: 100%; height: 100%; stroke: rgb(var(--c)); fill: rgb(var(--c)); stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
@keyframes fx-ribbon { from { transform: translateY(-160px) scale(1.5); opacity: 0; } 70% { opacity: 1; } to { transform: translateY(0) scale(1); opacity: 1; } }
.fx-ring { position: absolute; right: -34px; bottom: -34px; width: 104px; height: 104px; border-radius: 50%; background: rgba(var(--c),0.25); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; animation: fx-ribbon 0.5s cubic-bezier(.3,1.4,.5,1) 0.5s both; }
.fx-ring svg { width: 70px; height: 70px; stroke: rgb(var(--c)); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: fx-spin 1s ease-out 0.5s both; }
.fx-bin { position: absolute; left: 50%; top: 50%; width: 230px; height: 230px; margin: -115px 0 0 -115px; opacity: 0; animation: fx-bin 1.2s ease forwards; }
.fx-bin svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: rgb(var(--c)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 16px rgba(var(--c),0.6)); }
.fx-bin-body { fill: rgba(var(--c),0.42); }
.fx-bin-lid { fill: none; transform-origin: 20% 25%; animation: fx-lid 0.5s ease 0.55s both; }
@keyframes fx-bin { 0% { opacity: 0; transform: scale(0.6); } 12% { opacity: 1; transform: scale(1); } 72% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.85); } }
@keyframes fx-lid { 0% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-14px) rotate(-14deg); } 65% { transform: translateY(2px) rotate(3deg); } 100% { transform: translateY(0) rotate(0); } }
.fx-slam { position: absolute; left: 50%; top: 50%; width: 150px; margin: -105px 0 0 -75px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; animation: fx-slam 0.95s cubic-bezier(.5,0,.8,.4) forwards; }
.fx-slam-ph { height: 210px; background: rgba(128,128,128,0.55); }
@keyframes fx-slam { 0% { opacity: 0; transform: translate(-36vw,-52vh) rotate(-30deg) scale(1.15); } 10% { opacity: 1; } 58% { opacity: 1; transform: translate(0,-60px) rotate(8deg) scale(0.6); } 78% { opacity: 1; transform: translate(0,32px) rotate(-4deg) scale(0.34); } 100% { opacity: 0; transform: translate(0,60px) rotate(0) scale(0.2); } }
.fx-late { animation: fx-pop 1.15s ease-out 1.05s both; }
.fx-late .fx-sad { animation-delay: 1.05s; }
.fx-sad { position: relative; animation: fx-drop 0.95s cubic-bezier(.3,.7,.4,1) both; }
.fx-tear { position: absolute; top: 69%; width: 11px; height: 19px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: #62b6ff; opacity: 0; animation: fx-tear 0.75s ease-in 0.45s infinite; }
.fx-tear.l { left: 32%; } .fx-tear.r { left: 62%; animation-delay: 0.7s; }
@keyframes fx-tear { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(80px); opacity: 0; } }
@keyframes fx-drop { 0% { transform: translateY(-55vh) rotate(-25deg) scale(0.8); opacity: 0; } 40% { transform: translateY(0) rotate(0); opacity: 1; } 50% { transform: scale(1.4,0.6); } 62% { transform: scale(0.92,1.12); } 75% { transform: scale(1.06,0.95); } 100% { transform: scale(1); opacity: 1; } }
.fx-kick { position: absolute; left: 50%; top: 50%; width: 230px; margin: -170px 0 0 -115px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: fx-kick 1s ease-in forwards; }
.fx-kick-ph { height: 340px; background: rgba(128,128,128,0.5); }
@keyframes fx-kick { 0%, 28% { transform: translate(0,0) rotate(0) scale(1); opacity: 1; } 36% { transform: translate(-8px,0) rotate(-4deg) scale(1); } 100% { transform: translate(75vw,-35vh) rotate(620deg) scale(0.25); opacity: 0; } }
.fx-boot { position: absolute; left: 50%; top: 50%; margin: -80px 0 0 -400px; opacity: 0; animation: fx-boot 0.5s ease-out 0.05s forwards; }
.fx-boot svg { width: 160px; height: 160px; stroke: #ef4444; fill: rgba(239,68,68,0.28); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 16px rgba(239,68,68,0.7)); }
@keyframes fx-boot { 0% { transform: translateX(-80px) rotate(-30deg); opacity: 0; } 45% { transform: translateX(120px) rotate(20deg); opacity: 1; } 100% { transform: translateX(150px) rotate(25deg); opacity: 0; } }
