.wfx-cv { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9983; }

.wfx-coin { display: inline-block; width: .78em; height: .78em; flex-shrink: 0; background: linear-gradient(135deg, #ffe45c, #ffa400); -webkit-mask: url(/assets/sicoin.png) center / contain no-repeat; mask: url(/assets/sicoin.png) center / contain no-repeat; }

.wfx-flash { position: absolute; pointer-events: none; z-index: 9984; border-radius: 12px; opacity: 0; box-shadow: 0 0 0 1px rgba(255, 196, 26, .75), 0 0 16px rgba(255, 176, 0, .28), inset 0 0 22px rgba(255, 176, 0, .10); animation: wfxFlash 1.1s ease-out forwards; }
.wfx-flash.wfx-t2 { box-shadow: 0 0 0 1px rgba(255, 196, 26, .5); animation-duration: .9s; }
.wfx-flash.wfx-t3 { box-shadow: 0 0 0 2px #ffc61a, 0 0 40px rgba(255, 176, 0, .55), inset 0 0 50px rgba(255, 176, 0, .22); animation: wfxFlash3 1.7s ease-out forwards; }
@keyframes wfxFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wfxFlash3 { 0% { opacity: 0; } 8% { opacity: 1; } 18% { opacity: .55; } 28% { opacity: 1; } 100% { opacity: 0; } }

.wfx-amt { position: absolute; z-index: 9985; pointer-events: none; display: inline-flex; align-items: center; gap: .32em; padding: .2em .6em; border-radius: 999px; background: rgba(0, 0, 0, .66); color: #ffcf2e; font-family: var(--body); font-size: 1.2rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; transform: translate(-50%, -50%); text-shadow: 0 0 14px rgba(255, 170, 0, .45); animation: wfxAmtIn .3s cubic-bezier(.2, 1.5, .4, 1) both; }
.wfx-amt.wfx-t2 { font-size: 1.6rem; }
.wfx-amt.wfx-end { animation: wfxAmtOut .45s ease-in forwards; }
@keyframes wfxAmtIn { from { opacity: 0; transform: translate(-50%, -30%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes wfxAmtOut { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -65%) scale(1); } }

.wfx-big { position: fixed; inset: 0; z-index: 9986; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.wfx-big::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; }
.wfx-big.on { opacity: 1; visibility: visible; transition: opacity .14s ease; }
.wfx-big.on::before { animation: wfxDim 1.3s ease-out forwards; }
@keyframes wfxDim { 0% { opacity: 0; } 12% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } }
.wfx-big-in { position: absolute; left: 50%; top: 40%; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: calc(100vw - 32px); box-sizing: border-box; white-space: nowrap; padding: 16px 32px 14px; border-radius: 22px; background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-align: center; transform: translate(-50%, -50%) scale(.72); transition: transform .5s cubic-bezier(.2, 1.6, .4, 1); }
.wfx-big.on .wfx-big-in { transform: translate(-50%, -50%) scale(1); }
.wfx-big-t { font-family: var(--body); font-size: .82rem; font-weight: 600; color: #fff; }
.wfx-big-n { display: inline-flex; align-items: center; gap: .2em; font-family: var(--body); font-size: clamp(2.3rem, 9vw, 4rem); font-weight: 900; line-height: 1.05; color: #ffcf2e; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(255, 160, 0, .25); }
@media (max-width: 600px) {
    .wfx-big-in.wfx-money { flex-direction: row; align-items: baseline; gap: 10px; padding: 6px 16px; border-radius: 14px; }
    .wfx-big-in.wfx-money .wfx-big-t { display: none; }
    .wfx-big-in.wfx-money .wfx-big-n { font-size: 1.75rem; }
    .wfx-big:has(.wfx-money) { transition: opacity .15s ease, visibility 0s linear .15s; }
}
.wfx-big-m { font-family: var(--body); font-size: clamp(.9rem, 3vw, 1.15rem); font-weight: 700; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.wfx-big-in::before { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 168, 0, .15), rgba(255, 168, 0, 0) 70%); }
@media (pointer: coarse) { .wfx-big-in::before { display: none; } }
.wfx-big.wfx-t4 .wfx-big-t { color: #ffcf2e; }
.wfx-big.wfx-t4.on .wfx-big-n { animation: wfxBeat .9s ease-in-out .5s 2; }
@keyframes wfxBeat { 50% { transform: scale(1.06); } }

.g-snd { position: relative; width: 32px; height: 32px; margin-bottom: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 10px; border: 1px solid #2a2a2a; background: transparent; color: #a0a0a0; cursor: pointer; }
.g-snd:hover { color: var(--white); border-color: #3a3a3a; }
.g-snd svg { width: 16px; height: 16px; }
.g-snd::after { content: ''; position: absolute; inset: -6px; }

@media (prefers-reduced-motion: reduce) {
    .wfx-amt, .wfx-amt.wfx-end { animation: wfxFade 1.4s ease forwards; transform: translate(-50%, -50%); }
    .wfx-big-in, .wfx-big.on .wfx-big-in { transform: translate(-50%, -50%); transition: none; }
    .wfx-big.wfx-t4.on .wfx-big-n { animation: none; }
    .wfx-flash.wfx-t3 { animation-name: wfxFlash; }
    @keyframes wfxFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
}
