/* 加成卡觸發動畫樣式（搭配 jokerfx.js）。所有元素都是 position: fixed、不擋點擊。 */
.jfx { position: fixed; pointer-events: none; z-index: 950; }

/* 浮動大字 */
.jfx-label {
  position: fixed;
  z-index: 970;
  pointer-events: none;
  transform: translate(-50%, -100%);
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  color: #fff6d8;
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(255, 200, 80, 0.9);
  animation: jfxLabel 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.jfx-label.small { font-size: 11px; }
.jfx-label.mult { color: #ff8a8a; text-shadow: 0 2px 0 #000, 0 0 10px rgba(255, 70, 70, 0.9); }
.jfx-label.chips { color: #8fd0ff; text-shadow: 0 2px 0 #000, 0 0 10px rgba(60, 160, 255, 0.9); }
.jfx-label.money { color: #ffe066; font-size: 17px; }
.jfx-label.grow { color: #9dff7a; text-shadow: 0 2px 0 #000, 0 0 10px rgba(80, 220, 80, 0.9); }
.jfx-label.decay { color: #ff9f68; text-shadow: 0 2px 0 #000, 0 0 10px rgba(255, 90, 40, 0.9); }
.jfx-label.hit { color: #ffe066; font-size: 18px; }
.jfx-label.miss { color: #b8b8b8; text-shadow: 0 2px 0 #000; }
.jfx-label.copy { color: #c8e6ff; font-size: 11px; }
.jfx-label.retrigger { color: #ffe066; }
.jfx-label.passive { color: #d0b8ff; font-size: 12px; text-shadow: 0 2px 0 #000, 0 0 10px rgba(160, 110, 255, 0.9); }
.jfx-label.use { color: #9ad8ff; font-size: 16px; }
.jfx-label.down { transform: translate(-50%, 0); animation-name: jfxLabelDown; }
@keyframes jfxLabel {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(0.6); }
  20% { opacity: 1; transform: translate(-50%, -110%) scale(1.15); }
  70% { opacity: 1; transform: translate(-50%, -140%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -175%) scale(0.95); }
}
@keyframes jfxLabelDown {
  0% { opacity: 0; transform: translate(-50%, -18%) scale(0.6); }
  20% { opacity: 1; transform: translate(-50%, 0%) scale(1.12); }
  70% { opacity: 1; transform: translate(-50%, 18%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 40%) scale(0.95); }
}

/* 卡片外框發光 */
.jfx-frame { border-radius: 8px; animation: jfxFrame 0.65s ease-out forwards; box-shadow: 0 0 0 2px #ffd166, 0 0 18px 4px rgba(255, 209, 102, 0.8); }
.jfx-frame.mult { box-shadow: 0 0 0 2px #ff6b6b, 0 0 18px 4px rgba(255, 80, 80, 0.85); }
.jfx-frame.chips { box-shadow: 0 0 0 2px #4dabf7, 0 0 18px 4px rgba(77, 171, 247, 0.85); }
.jfx-frame.x { box-shadow: 0 0 0 2px #ffe066, 0 0 24px 6px rgba(255, 120, 220, 0.8); }
.jfx-frame.grow { box-shadow: 0 0 0 2px #69db7c, 0 0 18px 4px rgba(105, 219, 124, 0.85); }
.jfx-frame.decay { box-shadow: 0 0 0 2px #ff8a3d, 0 0 18px 4px rgba(255, 90, 40, 0.85); }
.jfx-frame.passive { box-shadow: 0 0 0 2px #b197fc, 0 0 18px 4px rgba(177, 151, 252, 0.85); }
@keyframes jfxFrame { 0% { opacity: 0; transform: scale(0.92); } 25% { opacity: 1; transform: scale(1.08); } 100% { opacity: 0; transform: scale(1.18); } }

/* 四角星芒閃爍 */
.jfx-sparks { z-index: 956; overflow: visible; }
.jfx-sparks svg { width: 100%; height: 100%; overflow: visible; }
.jfx-sparks .sp { fill: #fff6c2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: jfxSpark 0.65s ease-out forwards; }
.jfx-sparks .s2 { animation-delay: 0.08s; }
.jfx-sparks.mult .sp { fill: #ff9e9e; }
.jfx-sparks.chips .sp { fill: #9ad8ff; }
.jfx-sparks.x .sp { fill: #ffe066; }
.jfx-sparks.grow .sp { fill: #9dff7a; }
.jfx-sparks.passive .sp { fill: #d0b8ff; }
@keyframes jfxSpark {
  0% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  35% { opacity: 1; transform: scale(1.15) rotate(25deg); }
  100% { opacity: 0; transform: scale(0.4) rotate(75deg); }
}

/* 籌碼／倍率擴散波紋 */
.jfx-ripple { border-radius: 10px; z-index: 952; animation: jfxRipple 0.62s ease-out forwards; }
.jfx-ripple.chips { border: 2px solid rgba(116, 192, 252, 0.9); box-shadow: inset 0 0 14px rgba(77, 171, 247, 0.45); }
.jfx-ripple.mult { border: 2px solid rgba(255, 107, 107, 0.9); box-shadow: inset 0 0 14px rgba(255, 80, 80, 0.45); }
@keyframes jfxRipple { 0% { opacity: 0.95; transform: scale(0.96); } 100% { opacity: 0; transform: scale(1.36); } }

/* ×倍率 蓋章 + 放射衝擊線 */
.jfx-stamp { display: flex; align-items: center; justify-content: center; z-index: 965; overflow: visible; }
.jfx-stamp-burst {
  position: absolute; width: 125%; height: 125%; color: #ffe066; pointer-events: none;
  animation: jfxStampBurst 0.55s ease-out forwards;
}
.jfx-stamp span {
  position: relative;
  font-size: 24px; font-weight: 900; color: #fff;
  -webkit-text-stroke: 1px #7a1fa2;
  text-shadow: 0 0 12px #ff5ec4, 0 0 24px #ffe066;
  animation: jfxStamp 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
@keyframes jfxStamp { 0% { opacity: 0; transform: scale(3) rotate(-12deg); } 25% { opacity: 1; transform: scale(0.9) rotate(-6deg); } 40% { transform: scale(1.05) rotate(-6deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1) rotate(-6deg); } }
@keyframes jfxStampBurst { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 0.95; transform: scale(0.95); } 100% { opacity: 0; transform: scale(1.45); } }

/* 骰子 */
.jfx-dice-wrap { z-index: 966; display: flex; align-items: center; justify-content: center; overflow: visible; }
.jfx-die-halo {
  position: absolute; inset: -24%; width: 148%; height: 148%; pointer-events: none;
  animation: jfxHaloSpin 1.1s linear infinite;
}
.jfx-die-halo.hit circle { stroke: #ffe066; }
.jfx-die-halo.miss { opacity: 0; transition: opacity 0.2s; }
.jfx-die {
  position: relative;
  width: 100%; height: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 14%; gap: 4%;
  background: linear-gradient(145deg, #fffaf0, #e6dcc4);
  border-radius: 18%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.jfx-die i { border-radius: 50%; }
.jfx-die i.on { background: radial-gradient(circle at 35% 35%, #444, #111); }
.jfx-die.rolling { animation: jfxRoll 0.12s linear infinite; }
.jfx-die.hit { background: linear-gradient(145deg, #fff3b0, #ffc94d); box-shadow: 0 0 22px 6px rgba(255, 214, 102, 0.95), 0 6px 14px rgba(0, 0, 0, 0.6); animation: jfxDieHit 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
.jfx-die.hit i.on { background: radial-gradient(circle at 35% 35%, #d6336c, #7a0f35); }
.jfx-die.miss { filter: grayscale(1) brightness(0.7); animation: jfxDieMiss 0.4s ease; }
@keyframes jfxHaloSpin { to { transform: rotate(360deg); } }
@keyframes jfxRoll { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(0.85); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes jfxDieHit { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
@keyframes jfxDieMiss { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* 再觸發：雙環迴響波紋 + 閃電徽章 */
.jfx-retrigger-ring {
  border-radius: 10px; z-index: 962; display: flex; align-items: center; justify-content: center;
  border: 2px solid #ffe066; box-shadow: 0 0 18px rgba(255, 224, 102, 0.85);
  animation: jfxRetriggerRing 0.7s ease-out forwards;
}
.jfx-retrigger-svg { width: 58%; height: 58%; animation: jfxBoltPop 0.65s ease-out forwards; }
@keyframes jfxRetriggerRing { 0% { opacity: 1; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.32); } }
@keyframes jfxBoltPop { 0% { opacity: 0; transform: scale(0.5) rotate(-10deg); } 30% { opacity: 1; transform: scale(1.15) rotate(4deg); } 100% { opacity: 0; transform: scale(0.9) translateY(-10px); } }

/* 金幣、魂火 */
.jfx-coin {
  position: fixed; left: 0; top: 0; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; z-index: 968; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9db, #ffd43b 48%, #b8860b);
  border: 1.5px solid #fff3bf;
  box-shadow: 0 0 10px rgba(255, 212, 59, 0.95);
}
.jfx-wisp {
  position: fixed; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; z-index: 968; pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #c0a8ff 38%, rgba(120, 60, 255, 0) 74%);
  box-shadow: 0 0 12px rgba(177, 151, 252, 0.85);
}

/* 鏡面掃光（複製） */
.jfx-mirror { border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(165, 216, 255, 0.85); }
.jfx-mirror::before, .jfx-mirror::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 38%; left: -55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: jfxSweep 0.65s ease-out forwards;
}
.jfx-mirror::after { width: 20%; animation-delay: 0.12s; opacity: 0.7; }
@keyframes jfxSweep { to { left: 125%; } }

/* 成長上升光柱、遞減下墜 */
.jfx-rise, .jfx-fall { overflow: visible; }
.jfx-rise span, .jfx-fall span { position: absolute; bottom: 10%; width: 3px; height: 40%; border-radius: 2px; }
.jfx-rise span { background: linear-gradient(to top, transparent, #9dff7a); animation: jfxRise 0.9s ease-out forwards; }
.jfx-fall span { background: linear-gradient(to bottom, transparent, #ff8a3d); animation: jfxFall 0.9s ease-in forwards; top: 10%; }
.jfx-rise span:nth-child(1), .jfx-fall span:nth-child(1) { left: 25%; }
.jfx-rise span:nth-child(2), .jfx-fall span:nth-child(2) { left: 50%; animation-delay: 0.1s; }
.jfx-rise span:nth-child(3) { left: 75%; animation-delay: 0.2s; }
.jfx-arrows { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.jfx-arrows.up { stroke: #9dff7a; filter: drop-shadow(0 0 6px rgba(105, 219, 124, 0.9)); animation: jfxRise 0.95s ease-out forwards; }
.jfx-arrows.down { stroke: #ff8a3d; filter: drop-shadow(0 0 6px rgba(255, 90, 40, 0.9)); animation: jfxFall 0.95s ease-in forwards; }
@keyframes jfxRise { 0% { opacity: 0; transform: translateY(20px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px); } }
@keyframes jfxFall { 0% { opacity: 0; transform: translateY(-20px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(40px); } }

/* 消失（燃盡＋碎裂紋） */
.jfx-vanish { overflow: visible; }
.jfx-vanish span {
  position: absolute; inset: 0; border-radius: 8px;
  background: radial-gradient(circle, rgba(255, 160, 60, 0.9), rgba(80, 40, 10, 0.6) 60%, transparent 75%);
  animation: jfxVanish 1s ease-out forwards;
}
.jfx-shatter { position: absolute; inset: 0; width: 100%; height: 100%; animation: jfxShatter 0.95s ease-out forwards; }
@keyframes jfxVanish { 0% { opacity: 1; transform: scale(0.9); filter: blur(0); } 100% { opacity: 0; transform: scale(1.4) translateY(-20px); filter: blur(6px); } }
@keyframes jfxShatter { 0% { opacity: 0; transform: scale(0.85); } 20% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0; transform: scale(1.35) translateY(-14px); } }

/* 被動光環、使用道具 */
.jfx-aura { border-radius: 10px; overflow: visible; animation: jfxAura 1.1s ease-out forwards; box-shadow: 0 0 0 2px rgba(177, 151, 252, 0.9), 0 0 26px 8px rgba(140, 100, 255, 0.6); }
.jfx-aura.use { box-shadow: 0 0 0 2px rgba(116, 192, 252, 0.95), 0 0 30px 10px rgba(116, 192, 252, 0.6); }
.jfx-rune-ring, .jfx-star-sigil { position: absolute; inset: -10%; width: 120%; height: 120%; animation: jfxSigil 1.05s ease-out forwards; }
@keyframes jfxAura { 0% { opacity: 0; transform: scale(0.9); } 30% { opacity: 1; transform: scale(1.06); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes jfxSigil { 0% { opacity: 0; transform: scale(0.75) rotate(-12deg); } 35% { opacity: 1; transform: scale(1.04) rotate(0deg); } 100% { opacity: 0; transform: scale(1.28) rotate(12deg); } }

@media (prefers-reduced-motion: reduce) {
  .jfx-label, .jfx-frame, .jfx-stamp span, .jfx-aura, .jfx-sparks .sp, .jfx-ripple, .jfx-retrigger-ring, .jfx-shatter,
  .jfx-pill-sheen { animation-duration: 0.35s; }
  .jfx-die.rolling, .jfx-die-halo { animation: none; }
  .jfx-pill-banner { animation: jfxPillBannerReduced 0.85s ease-out forwards !important; }
  .jfx-pill-banner .jpb-from,
  .jfx-pill-banner .jpb-from::after,
  .jfx-pill-banner .jpb-arrow,
  .jfx-pill-banner .jpb-to,
  .jfx-pill-banner .jpb-alert,
  .jfx-pill-banner .jpb-sheen::after { animation: none !important; opacity: 1 !important; transform: none !important; }
  .jfx-pill-banner .jpb-from { opacity: 0.45 !important; text-decoration: line-through; }
}

/* 出牌／棄牌次數變化：畫面中央（約 40% 高度）橫跨大橫幅＋飛回頂部小格子閃爍 */
.jfx-pill-stack {
  position: fixed;
  left: 0;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  z-index: 980;
}

.jfx-pill-banner {
  --pb-accent: #6fb3f2;
  --pb-glow: rgba(111, 179, 242, 0.65);
  --pb-bg: linear-gradient(90deg, rgba(10, 18, 30, 0.45) 0%, rgba(14, 28, 48, 0.94) 18%, rgba(14, 28, 48, 0.94) 82%, rgba(10, 18, 30, 0.45) 100%);
  position: relative;
  width: 100%;
  min-height: 92px;
  padding: 12px 16px;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pb-bg);
  border-top: 2px solid var(--pb-accent);
  border-bottom: 2px solid var(--pb-accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.78), inset 0 0 26px rgba(0, 0, 0, 0.45), 0 0 24px var(--pb-glow);
  font-variant-numeric: tabular-nums;
  animation: jfxPillBanner 1.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.jfx-pill-banner.discards {
  --pb-accent: #ff7b7b;
  --pb-glow: rgba(255, 110, 110, 0.65);
  --pb-bg: linear-gradient(90deg, rgba(28, 10, 12, 0.45) 0%, rgba(48, 15, 18, 0.94) 18%, rgba(48, 15, 18, 0.94) 82%, rgba(28, 10, 12, 0.45) 100%);
}
.jfx-pill-banner.warn-1 {
  --pb-accent: #ff9f43;
  --pb-glow: rgba(255, 159, 67, 0.8);
}
.jfx-pill-banner.discards.warn-1 {
  --pb-accent: #ff6b6b;
  --pb-glow: rgba(255, 95, 95, 0.85);
}
.jfx-pill-banner.warn-0 {
  --pb-accent: #ff4757;
  --pb-glow: rgba(255, 55, 70, 0.95);
  --pb-bg: linear-gradient(90deg, rgba(45, 6, 10, 0.55) 0%, rgba(82, 12, 18, 0.96) 18%, rgba(82, 12, 18, 0.96) 82%, rgba(45, 6, 10, 0.55) 100%);
  animation: jfxPillBannerWarn0 1.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.jfx-pill-banner.up {
  --pb-accent: #69db7c;
  --pb-glow: rgba(105, 219, 124, 0.72);
}

.jfx-pill-banner .jpb-sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.jfx-pill-banner .jpb-sheen::after {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  width: 26%;
  left: -35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  animation: jfxSweep 0.65s 0.72s ease-out forwards;
}

.jfx-pill-banner .jpb-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 22px);
  max-width: 100%;
  white-space: nowrap;
}
.jfx-pill-banner .jpb-title {
  font-size: clamp(20px, 5.2vw, 28px);
  font-weight: 900;
  color: #f5ebd6;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}
.jfx-pill-banner .jpb-nums {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 2.4vw, 18px);
}
.jfx-pill-banner .jpb-from {
  position: relative;
  display: inline-block;
  font-size: clamp(56px, 14.5vw, 76px);
  font-weight: 900;
  line-height: 1;
  color: #e6dcc4;
  text-shadow: 0 3px 0 #000, 0 0 14px rgba(0, 0, 0, 0.8);
  animation: jfxBannerFrom 0.28s 0.46s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.jfx-pill-banner .jpb-from::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  height: 5px;
  border-radius: 3px;
  background: #ff5c5c;
  box-shadow: 0 0 10px rgba(255, 70, 70, 0.95);
  transform: translateY(-50%) rotate(-18deg) scaleX(0);
  transform-origin: left center;
  animation: jfxBannerSlash 0.16s 0.44s ease-out forwards;
}
.jfx-pill-banner .jpb-arrow {
  display: inline-block;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 900;
  color: #ffd166;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  opacity: 0.15;
  transform: translateX(-8px);
  animation: jfxBannerArrow 0.2s 0.56s ease-out forwards;
}
.jfx-pill-banner .jpb-to {
  display: inline-block;
  font-size: clamp(56px, 14.5vw, 76px);
  font-weight: 900;
  line-height: 1;
  color: var(--pb-accent);
  text-shadow: 0 4px 0 #000, 0 0 22px var(--pb-glow);
  opacity: 0;
  animation: jfxBannerTo 0.34s 0.68s cubic-bezier(0.2, 1.5, 0.35, 1) forwards;
}
.jfx-pill-banner .jpb-to.flying {
  opacity: 0 !important;
}
.jfx-pill-banner .jpb-alert {
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid var(--pb-accent);
  color: #fff3d6;
  letter-spacing: 0.6px;
  opacity: 0;
  animation: jfxBannerAlert 0.26s 0.78s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
.jfx-pill-banner.warn-0 .jpb-alert { background: #c92a2a; color: #fff; border-color: #ffa8a8; }
.jfx-pill-banner.warn-1 .jpb-alert { background: rgba(217, 119, 6, 0.85); color: #fff9db; }

/* 收尾飛回頂部小格子的數字 */
.jfx-pill-fly {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 985;
  font-size: clamp(56px, 14.5vw, 76px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #6fb3f2;
  text-shadow: 0 3px 0 #000, 0 0 18px rgba(111, 179, 242, 0.85);
}
.jfx-pill-fly.discards { color: #ff7b7b; text-shadow: 0 3px 0 #000, 0 0 18px rgba(255, 110, 110, 0.85); }
.jfx-pill-fly.warn-1 { color: #ff9f43; text-shadow: 0 3px 0 #000, 0 0 18px rgba(255, 159, 67, 0.9); }
.jfx-pill-fly.discards.warn-1 { color: #ff6b6b; }
.jfx-pill-fly.warn-0 { color: #ff4757; text-shadow: 0 3px 0 #000, 0 0 22px rgba(255, 55, 70, 0.95); }
.jfx-pill-fly.up { color: #69db7c; text-shadow: 0 3px 0 #000, 0 0 18px rgba(105, 219, 124, 0.85); }

/* Pill 原地掃光（裁切在框內，不用外擴框） */
.jfx-pill-sheen { border-radius: 5px; z-index: 955; overflow: hidden; box-shadow: inset 0 0 0 1.5px #6fb3f2, inset 0 0 14px rgba(111, 179, 242, 0.75); animation: jfxPillSheen 0.65s ease-out forwards; }
.jfx-pill-sheen.discards { box-shadow: inset 0 0 0 1.5px #ff7b7b, inset 0 0 14px rgba(255, 110, 110, 0.75); }
.jfx-pill-sheen.warn-0 { box-shadow: inset 0 0 0 2px #ff4757, inset 0 0 18px rgba(255, 55, 70, 0.9); }
.jfx-pill-sheen::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: jfxSweep 0.5s ease-out forwards;
}

@keyframes jfxPillBanner {
  0% { opacity: 0; transform: scaleY(0.8); }
  9% { opacity: 1; transform: scaleY(1); }
  37% { transform: translateY(0); }
  45% { transform: translateY(4px); }
  52% { transform: translateY(0); }
  77% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0.94); }
}
@keyframes jfxPillBannerWarn0 {
  0% { opacity: 0; transform: scaleY(0.8); }
  9% { opacity: 1; transform: scaleY(1); }
  42% { transform: translateX(0); }
  46% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  54% { transform: translateX(-5px); }
  58% { transform: translateX(4px); }
  62% { transform: translateX(0); }
  77% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0.94); }
}
@keyframes jfxPillBannerReduced {
  0% { opacity: 0; }
  20% { opacity: 1; }
  76% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes jfxBannerFrom {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0.36; transform: translateY(5px) rotate(-10deg) scale(0.8); filter: saturate(0.45); }
}
@keyframes jfxBannerSlash {
  0% { transform: translateY(-50%) rotate(-18deg) scaleX(0); }
  100% { transform: translateY(-50%) rotate(-18deg) scaleX(1); }
}
@keyframes jfxBannerArrow {
  0% { opacity: 0.15; transform: translateX(-8px) scale(0.85); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes jfxBannerTo {
  0% { opacity: 0; transform: translateY(-22px) scale(2.4); }
  55% { opacity: 1; transform: translateY(4px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes jfxBannerAlert {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes jfxPillSheen {
  0% { opacity: 0; }
  22% { opacity: 1; }
  100% { opacity: 0; }
}
