/* 视听反馈: purchase celebrations, currencies flying into the top bar */
#fxCv { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 65; pointer-events: none; image-rendering: pixelated; }
#fxCv[hidden] { display: none; }
.res-chip.fx-bump { animation: fxBump 0.22s steps(3); }
.res-chip.fx-bump img { filter: brightness(1.6) drop-shadow(0 0 4px #ffffff); }
@keyframes fxBump { 0% { transform: scale(1.25); } 100% { transform: none; } }
#app.fx-shake { animation: fxShake 0.6s steps(12); }
@keyframes fxShake { 0%, 100% { transform: none; } 15% { transform: translate(-4px, 2px); } 30% { transform: translate(4px, -3px); } 45% { transform: translate(-3px, -2px); } 60% { transform: translate(3px, 3px); } 75% { transform: translate(-2px, 1px); } 90% { transform: translate(1px, -1px); } }

/* the banner in the middle of the screen: bigger and richer for bigger packs */
.fx-ban { position: fixed; left: 50%; top: 42%; z-index: 66; transform: translate(-50%, -50%); pointer-events: none; animation: fxBanIn 0.35s steps(6); }
.fx-ban.out { opacity: 0; transition: opacity 0.45s; }
.fx-ban-in { display: grid; justify-items: center; gap: 4px; min-width: 200px; padding: 12px 22px 12px; text-align: center; background: rgba(16, 8, 26, 0.9); box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 1px #ff8ad8, 0 10px 30px rgba(0, 0, 0, 0.6); }
.fx-tag { font: 12px var(--font-cn); font-style: normal; color: #2a1206; background: #ff8ad8; padding: 1px 10px; }
.fx-ban b { font: 24px var(--font-cn); font-weight: normal; color: #ffe6f6; text-shadow: 0 2px 0 #1a0812; }
.fx-ban em { display: inline-flex; align-items: center; gap: 4px; font: 700 26px var(--font-px); font-style: normal; color: #ff9ade; text-shadow: 0 2px 0 #1a0812; }
.fx-ban em img { width: 26px; height: 22px; image-rendering: pixelated; }
.fx-ban small { font: 14px var(--font-cn); color: var(--gold); }
.fx-ban.t1 .fx-ban-in { min-width: 160px; padding: 8px 16px; }
.fx-ban.t1 b { font-size: 18px; }
.fx-ban.t1 em { font-size: 20px; }
.fx-ban.t3 .fx-ban-in { box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 2px #c49aff, 0 0 26px rgba(196, 154, 255, 0.5); }
.fx-ban.t3 .fx-tag { background: #c49aff; }
.fx-ban.t4 .fx-ban-in { background: radial-gradient(circle at 50% 0%, rgba(255, 138, 216, 0.35), transparent 70%), rgba(16, 8, 26, 0.92); box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 2px #ff8ad8, 0 0 34px rgba(255, 138, 216, 0.55); }
.fx-ban.t5 .fx-ban-in, .fx-ban.t6 .fx-ban-in { background: radial-gradient(circle at 50% 0%, rgba(255, 211, 90, 0.45), transparent 70%), linear-gradient(#3a2408, #1a1004); box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 2px var(--gold), 0 0 44px rgba(255, 211, 90, 0.7); }
.fx-ban.t5 .fx-tag, .fx-ban.t6 .fx-tag { background: var(--gold); }
.fx-ban.t5 b, .fx-ban.t6 b { font-size: 30px; color: var(--gold); }
.fx-ban.t5 em, .fx-ban.t6 em { font-size: 32px; color: #fff6c0; }
.fx-ban.t6 .fx-ban-in { min-width: 250px; animation: fxPrism 1.2s linear infinite; }
.fx-ban.t6 b { background: linear-gradient(90deg, #ff6a6a, #ffd35a, #62e687, #5ac8ff, #c06cff, #ff6a6a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: soRainbow 2s linear infinite; text-shadow: none; filter: drop-shadow(0 2px 0 #1a0812); }
@keyframes fxBanIn { 0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; } 60% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes fxPrism { 50% { box-shadow: 0 0 0 2px var(--edge), inset 0 0 0 2px #fff6c0, 0 0 60px rgba(255, 246, 192, 0.85); } }

/* ---- the top-up page ---- */
.tp-vip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px 8px 4px; background: radial-gradient(circle at 12% 50%, rgba(255, 211, 90, 0.2), transparent 45%), var(--plate); box-shadow: var(--px); }
.tp-vip-mid { display: grid; gap: 3px; min-width: 0; }
.tp-vip-mid b { font: 18px var(--font-cn); font-weight: normal; color: var(--gold); }
.tp-vip-mid small { font-size: 11px; color: var(--muted); }
.tp-vip-mid .tp-next { color: #ffd8b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tp-t { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 6px 9px; border: 0; color: var(--text); font: inherit; cursor: pointer; overflow: hidden; background: radial-gradient(circle at 50% 35%, var(--tg, rgba(255, 138, 216, 0.25)), transparent 62%), var(--plate); box-shadow: var(--px), inset 0 0 0 1px var(--tb, var(--line)); }
.tp-t:active { transform: translateY(1px); }
.tp-t.t1 { --tg: rgba(90, 200, 255, 0.2); }
.tp-t.t2 { --tg: rgba(74, 216, 255, 0.28); --tb: #2a7ab0; }
.tp-t.t3 { --tg: rgba(160, 106, 255, 0.32); --tb: #7a4ad8; }
.tp-t.t4 { --tg: rgba(255, 106, 216, 0.36); --tb: #c040a0; }
.tp-t.t5 { --tg: rgba(255, 211, 90, 0.4); --tb: #ffd35a; }
.tp-t.t6 { --tg: rgba(255, 211, 90, 0.5); --tb: #fff6c0; background: radial-gradient(circle at 50% 35%, rgba(255, 211, 90, 0.5), transparent 62%), linear-gradient(#3a2408, #1e1404); box-shadow: var(--px), inset 0 0 0 2px var(--gold), 0 0 14px rgba(255, 211, 90, 0.35); }
.tp-t.t5::after, .tp-t.t6::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%) no-repeat; background-size: 260% 100%; animation: shine 2.8s steps(16) infinite; }
.tp-art { width: 88px; height: 68px; image-rendering: pixelated; }
.tp-n { font: 15px var(--font-cn); font-weight: normal; }
.tp-t.t5 .tp-n, .tp-t.t6 .tp-n { color: var(--gold); }
.tp-g { display: inline-flex; align-items: center; gap: 3px; font: 700 16px var(--font-px); color: #ff9ade; }
.tp-g img { width: 16px; height: 14px; }
.tp-g em { font-style: normal; font-size: 12px; color: var(--gold); margin-left: 2px; }
.tp-p { margin-top: 3px; min-width: 70px; padding: 3px 12px; font: 16px var(--font-cn); color: #2a1206; background: linear-gradient(var(--ember-hi), var(--ember)); box-shadow: var(--px), inset 0 -3px 0 0 rgba(120, 40, 0, 0.45); }
.tp-bonus { position: absolute; top: 4px; right: 0; z-index: 1; font: 11px var(--font-cn); font-style: normal; padding: 1px 6px 1px 8px; color: #2a1206; background: linear-gradient(90deg, #ffe680, var(--gold)); clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%); }
.tp-t.t5 .tp-bonus, .tp-t.t6 .tp-bonus { background: linear-gradient(90deg, #fff6c0, #ff9ade); animation: flash 1.2s steps(2) infinite; }
.tp-rate { font-size: 10.5px; color: var(--muted); }
.tp-t.t4 .tp-rate, .tp-t.t5 .tp-rate, .tp-t.t6 .tp-rate { color: #ffd8a0; }
.tp-dbl { position: absolute; top: 4px; left: 4px; z-index: 1; font: 11px var(--font-cn); font-style: normal; padding: 1px 5px; color: #fff; background: var(--bad); box-shadow: 0 0 0 1px var(--edge); animation: flash 0.9s steps(2) infinite; }
.tp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12px; }
.tp-log li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; background: var(--plate); }
.tp-log em { font-style: normal; color: var(--gold); }
