/* ============================================================================
   BOF FX "ตราทอง": ภาษาภาพกลางของทั้งเกม (ใช้คู่กับ js/bof-fx.js)
   สี: กรมท่าเข้ม + ทองกรอบการ์ด · ประกายเพชรทอง · วงเวทหกแฉก · การ์ดยกแล้วตบลง
   ============================================================================ */
:root {
  --fx-ink: #0b0e24;
  --fx-panel: #141938;
  --fx-panel-hi: #1c2250;
  --fx-line: rgba(243, 201, 105, .28);
  --fx-gold: #f3c969;
  --fx-gold-hi: #ffe39a;
  --fx-gold-lo: #c98a26;
  --fx-text: #eef0ff;
  --fx-text-soft: #aab1d8;
  --fx-good: #5ef2a0;
  --fx-bad: #ff5d73;
  --fx-gold-grad: linear-gradient(135deg, var(--fx-gold-hi), var(--fx-gold) 45%, var(--fx-gold-lo));
}

/* วงเวท: วางทับกลางการ์ด (left/top 50%) */
.fx-seal {
  position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; z-index: -1;
  filter: drop-shadow(0 0 6px rgba(255, 210, 110, .85));
}
.fx-seal svg { width: 100%; height: 100%; display: block; }

/* คลื่นกระแทกตอนการ์ดตบลง */
.fx-shock {
  position: absolute; left: 50%; top: 50%; width: 180%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2); opacity: 0; pointer-events: none; z-index: -1;
  border: 3px solid var(--fx-gold-hi);
  box-shadow: 0 0 18px rgba(255, 220, 130, .8), inset 0 0 14px rgba(255, 220, 130, .6);
}

/* เส้นแสงพุ่ง (โจมตี/สกิลเล็งเป้า): หมุนจากจุดซ้าย */
.fx-beam {
  position: absolute; height: 1.2%; min-height: 4px; transform-origin: 0 50%; pointer-events: none; z-index: 6;
  border-radius: 999px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 227, 154, 0), #fff 30%, var(--fx-gold-hi) 70%, rgba(255, 140, 60, .9));
  box-shadow: 0 0 12px rgba(255, 210, 110, .95), 0 0 26px rgba(255, 150, 60, .6);
}

/* เส้นเชื่อมคู่หู (บัฟต่อเนื่อง) */
.fx-link {
  position: absolute; height: .5%; min-height: 2px; transform-origin: 0 50%; pointer-events: none; z-index: 1; opacity: 0;
  background: repeating-linear-gradient(90deg, var(--fx-gold-hi) 0 8px, transparent 8px 14px);
  filter: drop-shadow(0 0 4px rgba(255, 220, 130, .9));
}

/* เศษการ์ดตอนถูกทำลาย */
.fx-shard { position: absolute; inset: 0; opacity: 0; pointer-events: none; background-size: cover; border-radius: inherit; }
.fx-flash { position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: screen; }

/* จุดแตะนิ้ว (แสดงว่าผู้เล่นต้องกดตรงไหน) */
.fx-touch {
  position: absolute; width: 6%; aspect-ratio: 1; margin: -3% 0 0 -3%; border-radius: 50%; pointer-events: none; z-index: 20; opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 28%, rgba(255, 255, 255, .35) 30% 62%, transparent 64%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 4px 14px rgba(0, 0, 0, .5);
}
.fx-touch::after {
  content: ''; position: absolute; inset: -40%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9);
  opacity: 0; transform: scale(.4);
}
.fx-touch.is-press::after { animation: fx-ripple .5s ease-out; }
@keyframes fx-ripple { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.3); } }

/* เส้นพุ่งตอนโจมตี (BOFFX.impact): ดาวหาง หางเรียวไปหัวโต + หัวเรืองแสง · วางด้วยพิกัดจอ หมุนจากจุดซ้าย
   ทอง = เราตี · .is-ai แดง = คู่แข่งตี · อยู่ใต้แบนเนอร์ cut-in (350) */
.fx-trail {
  --c1: 255, 227, 154; --c2: 255, 255, 255;
  position: fixed; height: 14px; margin-top: -7px; transform-origin: 0 50%; pointer-events: none; z-index: 300; opacity: 0;
  filter: drop-shadow(0 0 6px rgba(var(--c1), .95)) drop-shadow(0 0 16px rgba(var(--c1), .6));
}
.fx-trail.is-ai { --c1: 255, 96, 70; --c2: 255, 220, 200; }
.fx-trail::before {
  content: ''; position: absolute; inset: 0; clip-path: polygon(0 50%, 100% 8%, 100% 92%);
  background: linear-gradient(90deg, rgba(var(--c1), 0), rgba(var(--c1), .7) 55%, rgb(var(--c2)));
}
.fx-trail::after {
  content: ''; position: absolute; right: -9px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, rgba(var(--c1), .9) 45%, rgba(var(--c1), 0) 72%);
}

/* ตัวเลขดาเมจเด้งที่ Leader (BOFFX.damage) · พิกัดจอ ไม่หายตอนวาดกระดานใหม่ */
.fx-dmg {
  position: fixed; pointer-events: none; z-index: 320;
  font: 900 clamp(28px, 6vmin, 46px)/1 system-ui, sans-serif; color: #ff5d73;
  -webkit-text-stroke: 2px #2a0710; paint-order: stroke fill;
  text-shadow: 0 3px 0 #2a0710, 0 0 14px rgba(255, 93, 115, .85);
}

/* จอสั่นสั้นตอนปะทะ (BOFFX.impact ใส่ให้ #bof-game-arena) · is-heavy = ตี Leader */
.fx-shake { --amp: 3px; animation: fx-shake .18s linear; }
.fx-shake.is-heavy { --amp: 7px; }
@keyframes fx-shake {
  25% { transform: translate(var(--amp), calc(var(--amp) * -.5)); }
  50% { transform: translate(calc(var(--amp) * -1), calc(var(--amp) * .4)); }
  75% { transform: translate(calc(var(--amp) * .5), 0); }
}

/* ลูกศรเล็งโค้ง (js/aim-fx.js): SVG เต็มจอ ไม่รับคลิก
   ชั้น: รัศมีเบลอ → แกนไล่สี (จางที่ผู้โจมตี สว่างที่หัว) → ลูกศรเล็กไหลไปหาเป้า → หัวลูกศร → วงพัลส์ที่ผู้โจมตี
   สี (--aim) ตามผล: ทอง = ยังไม่ล็อก/ตี Leader, เขียว = ชนะ, แดง = แพ้, ส้ม = เสมอ */
.aim-arrow {
  --aim: #ffd77a; --aim-rgb: 255, 215, 122;
  position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 240; overflow: visible;
  opacity: 0; transition: opacity .14s ease-out;
}
.aim-arrow.is-on { opacity: 1; }
.aim-arrow.is-win { --aim: #5ef2a0; --aim-rgb: 94, 242, 160; }
.aim-arrow.is-lose { --aim: #ff5d73; --aim-rgb: 255, 93, 115; }
.aim-arrow.is-tie { --aim: #ffb04a; --aim-rgb: 255, 176, 74; }
.aim-arrow .a-glow { fill: none; stroke: rgba(var(--aim-rgb), .6); stroke-width: 22; stroke-linecap: round; filter: url(#aim-blur); }
.aim-arrow .a-core { fill: none; stroke: url(#aim-grad); stroke-width: 7; stroke-linecap: round; }
.aim-arrow .a-edge { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 2 10; }
.aim-arrow .g0 { stop-color: var(--aim); stop-opacity: .15; }
.aim-arrow .g1 { stop-color: var(--aim); stop-opacity: 1; }
.aim-arrow .g2 { stop-color: #fff; stop-opacity: 1; }
.aim-arrow .a-flow path { fill: #fff; stroke: var(--aim); stroke-width: 1; paint-order: stroke; }
.aim-arrow .a-head path { fill: var(--aim); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(var(--aim-rgb), .95)); }
.aim-arrow .a-head .h-in { fill: #fff; stroke: none; filter: none; opacity: .9; }
.aim-arrow .a-origin circle { fill: none; stroke: var(--aim); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.aim-arrow .a-origin .o-pulse { animation: aim-pulse 1.1s ease-out infinite; }
.aim-arrow .a-origin .o-dot { fill: #fff; stroke: var(--aim); stroke-width: 3; }
@keyframes aim-pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
/* ยิงจริง: ลำแสงหนาวาบแล้วจาง */
.aim-arrow.is-fire { transition: opacity .22s ease-in .06s; opacity: 0; }
.aim-arrow.is-fire .a-core { stroke-width: 12; transition: stroke-width .08s; }
.aim-arrow.is-fire .a-glow { stroke-width: 40; transition: stroke-width .08s; }

/* กรอบล็อกเป้า: มุม 4 ด้านพุ่งเข้ามาหมุนเข้าที่ แล้วหายใจเบาๆ */
.aim-lock {
  --aim: #ffd77a; position: fixed; pointer-events: none; z-index: 241; opacity: 0;
  transition: left .12s ease-out, top .12s ease-out, width .12s ease-out, height .12s ease-out;
}
.aim-lock.is-win { --aim: #5ef2a0; } .aim-lock.is-lose { --aim: #ff5d73; } .aim-lock.is-tie { --aim: #ffb04a; }
.aim-lock.is-on { opacity: 1; animation: aim-lock-in .26s cubic-bezier(.2, 1.4, .4, 1) both, aim-breathe 1.2s ease-in-out .26s infinite alternate; }
.aim-lock i { position: absolute; width: 26%; max-width: 18px; aspect-ratio: 1; border: 0 solid var(--aim); filter: drop-shadow(0 0 4px var(--aim)); }
.aim-lock i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; border-top-left-radius: 6px; }
.aim-lock i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; border-top-right-radius: 6px; }
.aim-lock i:nth-child(3) { right: 0; bottom: 0; border-width: 0 3px 3px 0; border-bottom-right-radius: 6px; }
.aim-lock i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 3px 3px; border-bottom-left-radius: 6px; }
@keyframes aim-lock-in { from { transform: scale(1.6) rotate(-35deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aim-breathe { to { transform: scale(1.06); } }
/* ป้ายของเป้าที่ล็อกอยู่ขยายเด่นขึ้น */
.aim-chip.is-focus { transform: translateX(-50%) scale(1.18); box-shadow: 0 0 12px currentColor, 0 2px 8px rgba(0, 0, 0, .5); z-index: 9; }

/* ป้ายพรีวิวผล "2:3 แพ้" ใต้เป้า · มือถือช่องแคบ จึงตัวเล็กลง */
.aim-chip {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); z-index: 8; pointer-events: none; white-space: nowrap;
  padding: 2px 7px; border-radius: 999px; font: 800 12px/1.25 system-ui, sans-serif; color: #fff;
  background: rgba(11, 14, 36, .94); border: 1.5px solid var(--fx-gold); box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  transition: transform .15s ease-out, box-shadow .15s;
}
.aim-chip i { font-style: normal; }
html.is-mobile .aim-chip { padding: 1px 4px; font-size: 10px; bottom: -8px; }
.aim-chip.is-win { border-color: var(--fx-good); } .aim-chip.is-win i { color: var(--fx-good); }
.aim-chip.is-lose { border-color: var(--fx-bad); } .aim-chip.is-lose i { color: var(--fx-bad); }
.aim-chip.is-tie { border-color: #ffb04a; } .aim-chip.is-tie i { color: #ffb04a; }
.aim-chip.is-hit { border-color: var(--fx-bad); color: var(--fx-bad); }

/* ขอบแดงเตือน: ยูนิตนี้จะถูกทำลายถ้าโจมตี */
.card.aim-doomed { outline: 3px solid var(--fx-bad) !important; outline-offset: 1px; box-shadow: 0 0 16px rgba(255, 93, 115, .85) !important; }

@media (prefers-reduced-motion: reduce) {
  .aim-arrow .a-origin .o-pulse { animation: none; opacity: 0; }
  .aim-lock.is-on { animation: none; }
  .aim-lock { transition: none; }
}

/* หลังการ์ดระหว่างพลิก (BOFFX.flip): ทับหน้าการ์ดครึ่งแรกของการหมุน · ใช้ลายหลังการ์ดที่ผู้เล่นเลือกในร้านค้า */
.fx-flip-back {
  position: absolute; inset: 0; z-index: 30; pointer-events: none; border-radius: inherit;
  background: var(--bof-card-back-url, url('../images/card-back.png')) center / cover no-repeat, #141938;
  box-shadow: inset 0 0 0 2px rgba(243, 201, 105, .55);
  transform: scaleX(-1); /* การ์ดหมุนเกิน 90° ภาพจะกลับด้าน: กลับอีกทีให้อ่านถูก */
}

/* ============================================================================
   การ์ด 3D บนสนาม (js/card-3d.js): เอียงตามเมาส์ / แตะค้างบนมือถือ · ยกตัวมีเงาตก · การ์ด Rest ไม่เอียง
   ============================================================================ */
.board-slots .card:not(.Rest), .leader-card-slot > .card { transition: transform .4s cubic-bezier(.2, .9, .3, 1.2), box-shadow .3s; }
.board-slots .card.holo-live:not(.Rest), .leader-card-slot > .card.holo-live {
  transform: perspective(520px) translateY(-5px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.04);
  transition: transform .08s linear, box-shadow .3s;
  box-shadow: calc(var(--px, 0) * -16px) calc(10px - var(--py, 0) * 12px) 18px rgba(0, 0, 0, .5);
  z-index: 5;
}
/* แตะค้างบนมือถือ: ยุบลงเล็กน้อยแทนการยกตัว */
.board-slots .card.c3d-press:not(.Rest), .leader-card-slot > .card.c3d-press {
  transform: perspective(520px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(.97);
  transition: transform .12s ease-out;
}
/* การ์ดที่เลือกบนมือ: เอนเข้าหาผู้เล่นเล็กน้อย (เอียงตามเมาส์ยังทับได้ตามปกติ) */
#player-hand .card.selected-hand:not(.holo-live) { --rx: 8deg; }

/* ============================================================================
   FUSION SUMMON FX (SummonFx.playFusion — สไตล์ Master Duel บนกระดานจริง)
   Stage 1: การ์ดวัตถุดิบลอยกรอบม่วงบนกระดานมืด -> ดูดรวมเข้ากลาง
   Stage 2: วังวนไฟส้ม-ขาวหมุนเร่งกลางกระดาน + ประกายพลังงาน
   Stage 3: การ์ดฟิวชั่นเด้งเปิดตัวใหญ่กลางจอพร้อมออร่าม่วง
   Stage 4: พุ่งตบลงช่องจริงบนกระดาน + คลื่นวงแหวนม่วงกระแทก
   ============================================================================ */
.sfx-fusion-overlay {
  position: fixed; inset: 0; z-index: 99999; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 5, 16, .58);
  cursor: pointer; user-select: none;
  font-family: 'Kanit', system-ui, sans-serif;
  animation: sfx-f-fadein .2s ease-out;
  transition: background .35s ease-out, opacity .3s ease-in;
}
.sfx-fusion-overlay.is-landing { background: rgba(6, 5, 16, 0); }
.sfx-fusion-overlay.is-closing { opacity: 0; pointer-events: none; }

/* Stage 1: การ์ดวัตถุดิบลอยกรอบออร่าม่วงไฟฟ้า */
.sfx-fusion-mats {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 4.5vw, 56px); pointer-events: none;
}
.sfx-fusion-mat-card {
  position: relative; width: clamp(96px, 20vw, 185px); aspect-ratio: 240 / 336;
  border-radius: 10px; overflow: visible;
  animation: sfx-f-mat-in .32s cubic-bezier(.16, 1, .3, 1) both;
  transition: transform .42s cubic-bezier(.6, .04, .98, .34), opacity .36s ease-in, filter .36s ease-in;
}
.sfx-fusion-mat-card::before {
  content: ''; position: absolute; inset: -10px; border-radius: 15px; pointer-events: none;
  background: radial-gradient(circle, rgba(217, 70, 239, .85) 0%, rgba(147, 51, 234, .55) 55%, transparent 78%);
  filter: blur(8px);
  animation: sfx-f-aura-pulse .75s ease-in-out infinite alternate;
}
.sfx-fusion-mat-card img {
  position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 10px; border: 2px solid #e879f9;
  box-shadow: 0 0 22px rgba(217, 70, 239, .95), 0 0 46px rgba(147, 51, 234, .75);
}
.sfx-fusion-mats.is-merging .sfx-fusion-mat-card {
  transform: translate(var(--merge-x, 0px), 0) scale(.12) rotate(var(--merge-rot, 180deg));
  opacity: 0; filter: brightness(2.8);
}

/* Stage 2: หลุมดำเกลียวพลังงานส้ม-น้ำเงินแบบยูกิโอ (Canvas Spiral Vortex) */
.sfx-fusion-vortex {
  position: absolute; left: 50%; top: 50%; width: clamp(280px, 56vmin, 500px); height: clamp(280px, 56vmin, 500px);
  transform: translate(-50%, -50%) scale(.2); opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .2s ease-out;
}
.sfx-fusion-vortex.is-active { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sfx-fusion-vortex.is-burst {
  transform: translate(-50%, -50%) scale(2.0); opacity: 0;
  transition: transform .26s ease-out, opacity .24s ease-out;
}
.sfx-fusion-canvas { width: 100%; height: 100%; display: block; }

/* แสงวาบกลางกระดานตอนการ์ดฟิวชั่นโผล่ */
.sfx-fusion-flash {
  position: absolute; left: 50%; top: 50%; width: 70vmin; height: 70vmin; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2); opacity: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 237, 213, .85) 35%, rgba(192, 132, 252, .45) 65%, transparent 100%);
}
.sfx-fusion-flash.is-active { animation: sfx-f-burst .42s ease-out forwards; }

/* Stage 3 & 4: การ์ดฟิวชั่นเด้งเปิดตัวใหญ่กลางจอ + บินตบลงช่องจริง */
.sfx-fusion-reveal-wrap {
  position: fixed; left: 50%; top: 50%; z-index: 6;
  width: clamp(150px, 31vmin, 236px); aspect-ratio: 240 / 336;
  transform: translate(-50%, -50%) scale(.15); opacity: 0; pointer-events: none;
}
.sfx-fusion-reveal-wrap.is-shown {
  animation: sfx-f-card-emerge .42s cubic-bezier(.16, 1, .3, 1) forwards;
}
.sfx-fusion-aura {
  position: absolute; inset: -14px; border-radius: 18px; pointer-events: none;
  background: radial-gradient(circle, rgba(232, 121, 249, .95) 0%, rgba(168, 85, 247, .7) 48%, transparent 78%);
  filter: blur(11px);
  animation: sfx-f-aura-pulse .9s ease-in-out infinite alternate;
}
.sfx-fusion-reveal-card {
  position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 12px; overflow: hidden;
  border: 2.5px solid #e879f9;
  box-shadow: 0 0 26px rgba(217, 70, 239, .95), 0 0 58px rgba(147, 51, 234, .85), 0 18px 38px rgba(0, 0, 0, .7);
}
.sfx-fusion-reveal-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sfx-fusion-caption {
  position: fixed; left: 50%; bottom: clamp(22px, 8vh, 72px); transform: translateX(-50%);
  z-index: 7; text-align: center; pointer-events: none; opacity: 0;
  transition: opacity .22s ease-out;
}
.sfx-fusion-caption.is-shown { opacity: 1; }
.sfx-fusion-tag {
  display: inline-block; padding: 3px 14px; border-radius: 999px; margin-bottom: 5px;
  font-size: clamp(11px, 1.8vmin, 13px); font-weight: 800; letter-spacing: .16em;
  color: #fff; background: linear-gradient(90deg, #7e22ce, #d946ef, #7e22ce);
  border: 1px solid rgba(243, 201, 105, .8); box-shadow: 0 0 16px rgba(217, 70, 239, .75);
}
.sfx-fusion-name {
  font-size: clamp(18px, 3.8vmin, 30px); font-weight: 900; color: #fff; line-height: 1.15; white-space: nowrap;
  text-shadow: 0 2px 0 #2e1065, 0 0 18px rgba(217, 70, 239, .95);
}

/* Stage 4: คลื่นวงแหวนสีม่วงกระแทกตอนการ์ดลงช่อง */
.sfx-fusion-ring {
  position: fixed; z-index: 99999; pointer-events: none; border-radius: 50%;
  border: 5px solid #e879f9;
  background: radial-gradient(circle, rgba(217, 70, 239, .45) 0%, rgba(147, 51, 234, .18) 55%, transparent 75%);
  box-shadow: 0 0 32px rgba(217, 70, 239, .95), inset 0 0 26px rgba(232, 121, 249, .8);
  transform: translate(-50%, -50%) scale(.25); opacity: 1;
  animation: sfx-f-ring-impact .58s cubic-bezier(.16, 1, .3, 1) forwards;
}

.sfx-fusion-skip {
  position: absolute; bottom: 14px; right: 18px; z-index: 10;
  font-size: 12px; color: rgba(255, 255, 255, .6);
}

@keyframes sfx-f-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes sfx-f-spin { to { transform: rotate(360deg); } }
@keyframes sfx-f-spin-rev { to { transform: rotate(-360deg); } }
@keyframes sfx-f-mat-in {
  from { opacity: 0; transform: scale(1.22) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes sfx-f-core-throb {
  from { transform: scale(.92); }
  to { transform: scale(1.12); }
}
@keyframes sfx-f-burst {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}
@keyframes sfx-f-card-emerge {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.15); filter: brightness(2.6); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); filter: brightness(1.15); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: brightness(1); }
}
@keyframes sfx-f-aura-pulse {
  from { transform: scale(.96); opacity: .78; }
  to { transform: scale(1.1); opacity: 1; }
}
@keyframes sfx-f-ring-impact {
  0% { transform: translate(-50%, -50%) scale(.25); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sfx-fusion-swirl-outer, .sfx-fusion-swirl-ring, .sfx-fusion-core,
  .sfx-fusion-aura, .sfx-fusion-mat-card::before { animation: none !important; }
}
