/* Combat effects (assets/js/combatfx.js): the canvases over and under the cards, passing and lasting
   looks on the cards, the buff icons, and each hero's action / bonus action / resource labels and
   spell dots. Turned off (the replay's Effects switch), the canvases stay empty and the looks come off;
   the labels and icons stay. */
#fxc { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 30; pointer-events: none; }
#fx-flash { position: fixed; inset: 0; z-index: 25; opacity: 0; pointer-events: none; }
#fx-dim { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(28, 18, 10, .28), rgba(18, 11, 5, .62)); }
.fx-cardflash { position: absolute; inset: 0; border-radius: 9px; pointer-events: none; z-index: 8; mix-blend-mode: screen; }
.fx-st { position: absolute; inset: 0; border-radius: 9px; pointer-events: none; z-index: 7; }
.fx-st-scorch { background: radial-gradient(ellipse at 50% 55%, transparent 35%, rgba(52, 16, 4, .5)); box-shadow: inset 0 0 16px rgba(255, 120, 30, .85), 0 0 16px rgba(255, 120, 30, .55); }
.fx-st-frost { background:
    radial-gradient(circle at 0 0, rgba(235, 248, 255, .95), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(235, 248, 255, .85), transparent 30%),
    radial-gradient(circle at 0 100%, rgba(235, 248, 255, .85), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(235, 248, 255, .95), transparent 34%),
    linear-gradient(rgba(175, 220, 255, .32), rgba(175, 220, 255, .32));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8), inset 0 0 22px rgba(170, 225, 255, .95), 0 0 14px rgba(150, 210, 255, .6); }
.fx-st-guided { box-shadow: 0 0 0 2px rgba(255, 222, 130, .95), 0 0 24px rgba(255, 210, 100, .9); background: linear-gradient(rgba(255, 236, 170, .18), rgba(255, 236, 170, .18)); animation: fx-guided 1s ease-in-out infinite alternate; }
@keyframes fx-guided { to { box-shadow: 0 0 0 2px rgba(255, 236, 170, .7), 0 0 34px rgba(255, 220, 120, 1); } }
.fx-st-sick { background: linear-gradient(rgba(70, 130, 40, .22), rgba(40, 70, 20, .3)); box-shadow: inset 0 0 20px rgba(110, 200, 80, .9), 0 0 12px rgba(90, 170, 60, .55); }
.fx-arrow { position: absolute; z-index: 9; width: 46px; height: 12px; margin: -6px 0 0 -42px; transform-origin: 42px 6px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 12'%3E%3Cpath d='M2 6h40' stroke='%234a3523' stroke-width='2.4'/%3E%3Cpath d='M46 6l-9-4 2 4-2 4z' fill='%23cfd3d6' stroke='%235d6166'/%3E%3Cpath d='M12 6L2 0 0 6l2 6z' fill='%23b5372b'/%3E%3C/svg%3E") no-repeat center / contain; }
.fx-st-aid { box-shadow: 0 0 0 2px rgba(255, 215, 110, .95), 0 0 22px rgba(255, 205, 90, .85); background: linear-gradient(rgba(255, 235, 170, .16), rgba(255, 235, 170, .16)); }
.fx-st-shield { box-shadow: 0 0 0 2px rgba(190, 225, 255, .9), 0 0 20px rgba(150, 200, 255, .75); background: linear-gradient(160deg, rgba(200, 230, 255, .22), rgba(150, 200, 255, .06) 60%, rgba(200, 230, 255, .2)); }
.fx-splat { position: absolute; inset: 0; pointer-events: none; z-index: 6; border-radius: 9px; overflow: hidden; }
.fx-splat i { position: absolute; border-radius: 50%; }
/* Buffs: the game's condition icons, with a gold rim. */
.adv-conds { z-index: 9; }
.cond-ic.buff { border-color: #c9994a; background: rgba(40, 28, 8, .94); box-shadow: 0 0 0 1px rgba(240, 207, 142, .25), 0 2px 6px rgba(0, 0, 0, .45); }
.cond-ic.b-bless { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='20' rx='30' ry='9' fill='none' stroke='black' stroke-width='8'/%3E%3Cpath d='M50 36 L57.6 57 L80 58.5 L62.5 72.4 L68.5 94 L50 81.6 L31.5 94 L37.5 72.4 L20 58.5 L42.4 57 Z'/%3E%3C/svg%3E"); color: #ffd76a; }
.cond-ic.b-shield { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 5 C62 14 74 16 87 15 V48 C87 72 71 87 50 96 C29 87 13 72 13 48 V15 C26 16 38 14 50 5 Z M45 24 V43 H29 V53 H45 V80 H55 V53 H71 V43 H55 V24 Z'/%3E%3C/svg%3E"); color: #ffe9a8; }
.cond-ic.b-aid { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 91 C21 70 6 54 6 34 C6 18 18 8 31 8 C40 8 46 13 50 19 C54 13 60 8 69 8 C82 8 94 18 94 34 C94 54 79 70 50 91 Z M45 27 V42 H30 V52 H45 V67 H55 V52 H70 V42 H55 V27 Z'/%3E%3C/svg%3E"); color: #8cc4ff; }
/* Aid's temporary hit points: a blue stretch of the health bar after the green. */
.adv-hp s.fx-thp { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #2f6fc4, #6fb0ff); transition: left .5s ease, width .5s ease; box-shadow: inset 1px 0 0 rgba(255,255,255,.5); }
.adv-hp s.fx-thp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); background-size: 300% 100%; animation: thp-shine 2.4s linear infinite; }
@keyframes thp-shine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.adv-note.temp { color: #a9d0ff; font-size: 1.1rem; }
/* Bless: a ring of golden motes circling over the card's name (with the game's bless glow). */
.fx-halo { position: absolute; left: 50%; top: 17%; width: 0; height: 0; z-index: 7; pointer-events: none; transform: scaleY(.3); }
.fx-halo i { position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: radial-gradient(circle, #fff 0 20%, #ffd76a 45%, rgba(255, 200, 80, 0) 72%); animation: halo 3.6s linear infinite; }
@keyframes halo { from { transform: rotate(0deg) translateX(var(--r)) scale(1, 3.3); } to { transform: rotate(360deg) translateX(var(--r)) scale(1, 3.3); } }
/* Shield of Faith: a holy glow at the card's edge and a slow sweep of light across it. */
.fx-holy { position: absolute; inset: -2px; border-radius: 11px; z-index: 6; pointer-events: none; overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(255, 226, 140, .9), 0 0 18px rgba(255, 214, 110, .7), inset 0 0 16px rgba(255, 236, 170, .55); animation: holy-pulse 2.6s ease-in-out infinite; }
.fx-holy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 248, 215, .5) 50%, transparent 62%); background-size: 260% 100%; animation: holy-sweep 3.4s ease-in-out infinite; }
@keyframes holy-pulse { 50% { box-shadow: 0 0 0 1.5px rgba(255, 236, 170, .7), 0 0 28px rgba(255, 220, 120, .95), inset 0 0 22px rgba(255, 240, 190, .7); } }
@keyframes holy-sweep { from { background-position: 160% 0; } to { background-position: -60% 0; } }
/* Poisoned: a faint sickly tint that comes and goes. */
.fx-ill { position: absolute; inset: 0; border-radius: 9px; z-index: 6; pointer-events: none; background: linear-gradient(rgba(90, 150, 50, .14), rgba(50, 90, 25, .24)); box-shadow: inset 0 0 14px rgba(110, 200, 80, .55); animation: ill 2.2s ease-in-out infinite; }
@keyframes ill { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .fx-halo i, .fx-holy, .fx-holy::after, .fx-ill, .adv-hp s.fx-thp::after { animation: none; } }
/* The health bar sits over every effect on the card (glows, halos, flashes, spatters, a stuck arrow). */
.adv-hand .hand-card .adv-hp { z-index: 12; }

/* Bardic Inspiration (a buff) and Vicious Mockery (a condition, in the game's plain style). */
.cond-ic.b-inspired { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M38 14 L86 4 V66 A14 11 0 1 1 74 55 V27 L48 32 V76 A14 11 0 1 1 36 65 Z'/%3E%3C/svg%3E"); color: #d2a8ff; }
.cond-ic.c-mocked { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 4 L58 18 L74 8 L74 26 L94 24 L84 40 L98 52 L80 58 L86 76 L68 70 L62 90 L50 76 L32 96 L34 72 L14 78 L22 60 L2 52 L18 40 L8 24 L28 26 L28 8 L42 18 Z M46 26 V56 H54 V26 Z M46 62 V72 H54 V62 Z'/%3E%3C/svg%3E"); color: #d2a8ff; }
/* Inspired: little notes drift up off the card now and then. */
.fx-notes { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.fx-notes::before, .fx-notes::after { content: ""; position: absolute; width: 15px; height: 15px; background: #c79bff; opacity: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M38 14 L86 4 V66 A14 11 0 1 1 74 55 V27 L48 32 V76 A14 11 0 1 1 36 65 Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M38 14 L86 4 V66 A14 11 0 1 1 74 55 V27 L48 32 V76 A14 11 0 1 1 36 65 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(210, 160, 255, .95)); animation: note-rise 3.2s ease-out infinite; }
.fx-notes::before { left: 16%; top: 46%; }
.fx-notes::after { left: 70%; top: 58%; background: #ffd76a; animation-delay: 1.6s; }
@keyframes note-rise { 0% { transform: translateY(0) rotate(-10deg) scale(.8); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-52px) rotate(12deg) scale(1.05); opacity: 0; } }
/* Mocked: a faint violet unease. */
.fx-mocked { position: absolute; inset: 0; border-radius: 9px; z-index: 6; pointer-events: none; box-shadow: inset 0 0 14px rgba(170, 100, 230, .55); animation: ill 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fx-notes::before, .fx-notes::after, .fx-mocked { animation: none; } }

/* ---------------- every spell and ability: icons and lasting looks (spellfx) */
.cond-ic.b-laughing { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='50' cy='50' r='40'/%3E%3Cpath d='M28 58 Q50 82 72 58'/%3E%3Cpath d='M30 40 Q37 33 44 40'/%3E%3Cpath d='M56 40 Q63 33 70 40'/%3E%3C/g%3E%3C/svg%3E"); color: #ffd76a; }
.cond-ic.b-entranced { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 50 a5 5 0 1 1 10 0 a15 15 0 1 1 -30 0 a25 25 0 1 1 50 0 a35 35 0 1 1 -70 0'/%3E%3C/g%3E%3C/svg%3E"); color: #ff9ee8; }
.cond-ic.b-slowed { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M24 8 H76 L50 50 Z M24 92 H76 L50 50 Z'/%3E%3C/svg%3E"); color: #9fc8ff; }
.cond-ic.b-baned { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 26 L50 52 L80 26 M20 52 L50 78 L80 52'/%3E%3C/g%3E%3C/svg%3E"); color: #b49ad8; }
.cond-ic.b-faerie { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4 L60 40 L96 50 L60 60 L50 96 L40 60 L4 50 L40 40 Z'/%3E%3C/svg%3E"); color: #d7a6ff; }
.cond-ic.b-banished { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='50' cy='50' rx='28' ry='42'/%3E%3Cellipse cx='50' cy='50' rx='12' ry='22'/%3E%3C/g%3E%3C/svg%3E"); color: #c79bff; }
.cond-ic.b-caged { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='14' width='72' height='72' rx='6'/%3E%3Cpath d='M38 14 V86 M62 14 V86'/%3E%3C/g%3E%3C/svg%3E"); color: #c9b6ff; }
.cond-ic.b-polymorphed { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='34' cy='48' r='17'/%3E%3Ccircle cx='52' cy='38' r='17'/%3E%3Ccircle cx='68' cy='50' r='16'/%3E%3Ccircle cx='48' cy='62' r='17'/%3E%3Cellipse cx='82' cy='34' rx='11' ry='9'/%3E%3Crect x='34' y='70' width='7' height='20'/%3E%3Crect x='58' y='70' width='7' height='20'/%3E%3C/svg%3E"); color: #f2efe6; }
.cond-ic.b-dancing { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M38 14 L86 4 V66 A14 11 0 1 1 74 55 V27 L48 32 V76 A14 11 0 1 1 36 65 Z'/%3E%3C/svg%3E"); color: #ff9ee8; }
.cond-ic.b-confused { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 32 Q32 12 50 12 Q68 12 68 30 Q68 44 50 50 V62'/%3E%3Ccircle cx='50' cy='82' r='3' fill='black'/%3E%3C/g%3E%3C/svg%3E"); color: #ffd76a; }
.cond-ic.b-feebleminded { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='22' cy='55' r='9'/%3E%3Ccircle cx='50' cy='55' r='9'/%3E%3Ccircle cx='78' cy='55' r='9'/%3E%3C/svg%3E"); color: #c9c3b8; }
.cond-ic.b-marked { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3Cpath d='M50 6 V30 M50 70 V94 M6 50 H30 M70 50 H94'/%3E%3C/g%3E%3C/svg%3E"); color: #9fe07a; }
.cond-ic.b-hexed { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 50 Q50 6 94 50 Q50 94 6 50 Z'/%3E%3Ccircle cx='50' cy='50' r='12' fill='black'/%3E%3C/g%3E%3C/svg%3E"); color: #d29bff; }
.cond-ic.b-vowed { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='36' cy='50' rx='24' ry='14' transform='rotate%28-30 36 50%29'/%3E%3Cellipse cx='64' cy='50' rx='24' ry='14' transform='rotate%28-30 64 50%29'/%3E%3C/g%3E%3C/svg%3E"); color: #ffb36a; }
.cond-ic.b-guided { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 8 L92 86 H8 Z'/%3E%3C/g%3E%3C/svg%3E"); color: #ffe9a8; }
.cond-ic.b-agathys { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 6 V94 M12 28 L88 72 M12 72 L88 28 M40 12 L50 22 L60 12 M40 88 L50 78 L60 88'/%3E%3C/g%3E%3C/svg%3E"); color: #bfe3ff; }
.cond-ic.b-barkskin { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 94 C10 70 12 30 50 6 C88 30 90 70 50 94 Z M50 20 V88'/%3E%3C/g%3E%3C/svg%3E"); color: #b88a54; }
.cond-ic.b-weapon { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4 L58 14 L56 66 H44 L42 14 Z'/%3E%3Crect x='26' y='66' width='48' height='9' rx='3'/%3E%3Crect x='45' y='75' width='10' height='20' rx='3'/%3E%3C/svg%3E"); color: #c9b6ff; }
.cond-ic.b-holyweapon { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4 L58 14 L56 66 H44 L42 14 Z'/%3E%3Crect x='26' y='66' width='48' height='9' rx='3'/%3E%3Crect x='45' y='75' width='10' height='20' rx='3'/%3E%3C/svg%3E"); color: #ffd76a; }
.cond-ic.b-mirror { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='20' width='44' height='64' rx='6'/%3E%3Crect x='44' y='12' width='44' height='64' rx='6'/%3E%3C/g%3E%3C/svg%3E"); color: #d7c4ff; }
.cond-ic.b-hasted { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M60 4 L22 56 H46 L38 96 L80 40 H55 Z'/%3E%3C/svg%3E"); color: #ffe066; }
.cond-ic.b-deathward { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='50' cy='28' rx='16' ry='20'/%3E%3Cpath d='M50 48 V94 M24 60 H76'/%3E%3C/g%3E%3C/svg%3E"); color: #e6ecff; }
.cond-ic.b-fireshield { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4 C70 30 86 46 80 66 C76 86 62 96 50 96 C38 96 24 86 20 66 C16 46 36 36 40 20 C46 36 56 34 50 4 Z'/%3E%3C/svg%3E"); color: #ff9a4a; }
.cond-ic.b-stoneskin { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 30 L46 10 L80 22 L92 56 L70 88 L30 90 L8 60 Z'/%3E%3C/svg%3E"); color: #c3c0b5; }
.cond-ic.b-wild { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='28' cy='34' r='10'/%3E%3Ccircle cx='50' cy='22' r='10'/%3E%3Ccircle cx='72' cy='34' r='10'/%3E%3Cpath d='M30 74 C30 54 70 54 70 74 C70 90 30 90 30 74 Z'/%3E%3C/svg%3E"); color: #9fe07a; }
.cond-ic.b-circle { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='50' cy='50' r='40'/%3E%3Ccircle cx='50' cy='50' r='22'/%3E%3C/g%3E%3C/svg%3E"); color: #e6ecff; }
.cond-ic.b-globe { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 76 A40 40 0 0 1 90 76 Z'/%3E%3Cpath d='M6 84 H94'/%3E%3C/g%3E%3C/svg%3E"); color: #a9d0ff; }
.cond-ic.b-holyaura { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='50' cy='50' r='18'/%3E%3Cpath d='M50 6 V20 M50 80 V94 M6 50 H20 M80 50 H94 M19 19 L29 29 M71 71 L81 81 M81 19 L71 29 M29 71 L19 81'/%3E%3C/g%3E%3C/svg%3E"); color: #ffe9a8; }
.cond-ic.b-foresight { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 56 Q50 18 94 56 Q50 94 6 56 Z'/%3E%3Ccircle cx='50' cy='56' r='10' fill='black'/%3E%3Cpath d='M50 6 V18 M24 14 L30 24 M76 14 L70 24'/%3E%3C/g%3E%3C/svg%3E"); color: #ffd76a; }
.cond-ic.b-sanctuary { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='50' cy='50' r='38'/%3E%3Cpath d='M50 30 V70 M30 50 H70'/%3E%3C/g%3E%3C/svg%3E"); color: #cfe3ff; }
.cond-ic.b-regenerating { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 88 C22 68 8 54 8 36 C8 22 19 12 31 12 C40 12 46 17 50 23 C54 17 60 12 69 12 C81 12 92 22 92 36 C92 54 78 68 50 88 Z'/%3E%3C/svg%3E"); color: #8fe0a0; }
.cond-ic.b-raging { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14 L44 88 M44 10 L66 86 M68 12 L86 70'/%3E%3C/g%3E%3C/svg%3E"); color: #ff7a62; }
.cond-ic.b-ward { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 6 L88 28 V72 L50 94 L12 72 V28 Z'/%3E%3Cpath d='M50 28 L70 40 V62 L50 74 L30 62 V40 Z'/%3E%3C/g%3E%3C/svg%3E"); color: #c79bff; }
.cond-ic.b-beast { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='24' cy='36' r='10'/%3E%3Ccircle cx='42' cy='20' r='10'/%3E%3Ccircle cx='60' cy='20' r='10'/%3E%3Ccircle cx='78' cy='36' r='10'/%3E%3Cpath d='M28 76 C28 52 74 52 74 76 C74 94 28 94 28 76 Z'/%3E%3C/svg%3E"); color: #d9b07a; }
.cond-ic.b-winged { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 70 C40 40 20 26 4 24 C14 36 16 48 12 60 C24 54 30 60 30 70 C38 62 44 64 50 70 Z M50 70 C60 40 80 26 96 24 C86 36 84 48 88 60 C76 54 70 60 70 70 C62 62 56 64 50 70 Z'/%3E%3C/svg%3E"); color: #ff9a4a; }
.cond-ic.b-absorbing { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 50 m-30 0 a30 30 0 1 1 30 30'/%3E%3Cpath d='M50 80 L40 70 M50 80 L40 90'/%3E%3C/g%3E%3C/svg%3E"); color: #ffb36a; }
.cond-ic.b-spirit { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4 L60 38 L96 38 L66 58 L78 94 L50 72 L22 94 L34 58 L4 38 L40 38 Z'/%3E%3C/svg%3E"); color: #ffd76a; }
.cond-ic.b-angel { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='14' rx='18' ry='6' fill='none' stroke='black' stroke-width='6'/%3E%3Cpath d='M50 76 C40 46 20 32 4 30 C14 42 16 54 12 66 C24 60 30 66 30 76 C38 68 44 70 50 76 Z M50 76 C60 46 80 32 96 30 C86 42 84 54 88 66 C76 60 70 66 70 76 C62 68 56 70 50 76 Z'/%3E%3C/svg%3E"); color: #fff2c4; }
.cond-ic.b-shadowed { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M62 8 A42 42 0 1 0 92 70 A34 34 0 1 1 62 8 Z'/%3E%3C/svg%3E"); color: #b49ad8; }

.adv-hand .hand-tilt { isolation: isolate; }
.fx-look { position: absolute; inset: 0; border-radius: 9px; pointer-events: none; z-index: 7; }
/* glyphs that float off the card (Zzz, Ha!, ?, ♥, ♪) or circle its head (stars) */
.fx-look i { position: absolute; top: 22%; font: 900 15px/1 'Alegreya Sans', sans-serif; font-style: normal; text-shadow: 0 0 4px rgba(0,0,0,.6), 0 1px 0 rgba(0,0,0,.6); animation: glyph-rise 2.7s ease-out infinite; opacity: 0; }
@keyframes glyph-rise { 0% { transform: translateY(10px) scale(.7) rotate(-8deg); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-46px) scale(1.15) rotate(10deg); opacity: 0; } }
.fx-look-zzz i { color: #dfe6ff; font-size: 17px; }
.fx-look-haha i { color: #ffe27a; }
.fx-look-hearts i { color: #ff8cc8; font-size: 16px; }
.fx-look-notes2 i { color: #ff9ee8; font-size: 16px; }
.fx-look-confused i { color: #ffe27a; font-size: 17px; }
.fx-look-dazed i, .fx-look-stars i { top: -2px; left: 50% !important; color: #ffe066; animation: glyph-orbit 1.6s linear infinite; opacity: 1; }
@keyframes glyph-orbit { from { transform: rotate(0deg) translateX(30px) rotate(0deg) scaleY(1); } to { transform: rotate(360deg) translateX(30px) rotate(-360deg); } }
.fx-look-dazed { transform: scaleY(.45); transform-origin: 50% 0; top: 4%; }
.fx-look-stars { transform: scaleY(.45); transform-origin: 50% 0; top: 4%; }
.fx-card-dim .hand-tilt { filter: brightness(.8) saturate(.75); }
.fx-card-shiver .hand-sway { animation: shiver .32s linear infinite !important; }
@keyframes shiver { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px) rotate(-.6deg); } 75% { transform: translateX(2px) rotate(.6deg); } }
.fx-card-cower .hand-sway { animation: cower .5s ease-in-out infinite !important; }
@keyframes cower { 0%, 100% { transform: scale(.93) translateY(6px) rotate(-3deg); } 50% { transform: scale(.92) translateY(8px) rotate(-1deg); } }
.fx-look-swirl { overflow: hidden; }
.fx-look-swirl::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, rgba(255,90,90,.35), rgba(255,200,60,.35), rgba(120,230,120,.35), rgba(90,170,255,.35), rgba(200,110,255,.35), rgba(255,90,90,.35)); animation: spin 5s linear infinite; mix-blend-mode: screen; }
@keyframes spin { to { transform: rotate(360deg); } }
.fx-look-fear { background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(30,10,45,.55)); box-shadow: inset 0 0 20px rgba(80,30,120,.75); animation: ill 1.8s ease-in-out infinite; }
.fx-look-vines { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23356b22' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M6 140 C30 110 -10 90 20 60 C40 40 10 30 26 4'/%3E%3Cpath d='M94 140 C70 112 110 92 80 64 C60 44 92 30 74 6'/%3E%3Cpath d='M30 140 C50 120 40 104 60 92 C80 80 60 70 50 50'/%3E%3C/g%3E%3Cg fill='%2378b84a'%3E%3Cellipse cx='20' cy='60' rx='7' ry='4'/%3E%3Cellipse cx='80' cy='64' rx='7' ry='4'/%3E%3Cellipse cx='60' cy='92' rx='7' ry='4'/%3E%3Cellipse cx='26' cy='18' rx='6' ry='3.5'/%3E%3C/g%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.fx-look-web { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='white' stroke-opacity='.85' stroke-width='1.4'%3E%3Cpath d='M0 0 L100 100 M100 0 L0 100 M50 0 V100 M0 50 H100'/%3E%3Cpath d='M30 50 Q40 40 50 30 Q60 40 70 50 Q60 60 50 70 Q40 60 30 50 Z'/%3E%3Cpath d='M14 50 Q32 32 50 14 Q68 32 86 50 Q68 68 50 86 Q32 68 14 50 Z'/%3E%3Cpath d='M0 50 Q25 25 50 0 Q75 25 100 50 Q75 75 50 100 Q25 75 0 50 Z'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.fx-look-chains { overflow: hidden; }
.fx-look-chains::before, .fx-look-chains::after { content: ""; position: absolute; left: -10%; right: -10%; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='%23e8c060' stroke-width='3'%3E%3Cellipse cx='10' cy='10' rx='8' ry='5'/%3E%3Cellipse cx='30' cy='10' rx='8' ry='5'/%3E%3C/g%3E%3C/svg%3E") left center / 28px 14px repeat-x; filter: drop-shadow(0 0 3px rgba(255,210,100,.9)); }
.fx-look-chains::before { top: 30%; transform: rotate(-14deg); }
.fx-look-chains::after { top: 62%; transform: rotate(12deg); }
.fx-card-still .hand-tilt { filter: saturate(.45) sepia(.35) brightness(.95); }
.fx-card-still .hand-sway { animation: none !important; }
.fx-look-blind { background: linear-gradient(rgba(10,6,16,.0) 8%, rgba(10,6,16,.82) 18%, rgba(10,6,16,.82) 34%, rgba(10,6,16,0) 44%); }
.fx-card-prone .hand-sway { transform: rotate(-14deg) translateY(16px) !important; }
.fx-card-stone .hand-tilt { filter: grayscale(1) contrast(1.15) brightness(.88); }
.fx-look-slow { background: linear-gradient(rgba(120,170,255,.16), rgba(120,170,255,.24)); box-shadow: inset 0 0 14px rgba(140,190,255,.7); }
.fx-card-slow .hand-sway { animation-duration: 14s !important; }
.fx-look-bane::before, .fx-look-bane::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(50,20,70,.9) 0 2px, transparent 3px) 0 0 / 22px 26px; animation: fall 2.4s linear infinite; opacity: .7; }
.fx-look-bane::after { background-size: 30px 34px; animation-duration: 3.2s; opacity: .5; }
.fx-look-bane { overflow: hidden; box-shadow: inset 0 0 14px rgba(60,20,90,.6); }
@keyframes fall { from { background-position: 0 -30px; } to { background-position: 0 30px; } }
.fx-look-faerie { box-shadow: 0 0 0 2px rgba(210,150,255,.95), 0 0 18px rgba(200,130,255,.85), inset 0 0 12px rgba(220,170,255,.6); animation: faerie 1.1s ease-in-out infinite alternate; }
@keyframes faerie { to { box-shadow: 0 0 0 2px rgba(240,200,255,.8), 0 0 28px rgba(210,140,255,1), inset 0 0 18px rgba(230,190,255,.7); } }
.fx-card-gone .qv-mini, .fx-card-gone .foe-card, .fx-card-gone .adv-st { opacity: .1; filter: blur(1px); transition: opacity .5s; }
.fx-look-portal { inset: 8% 4%; border-radius: 50%; background: radial-gradient(ellipse, rgba(10,5,25,.95) 30%, rgba(95,40,200,.7) 62%, rgba(170,95,255,0) 72%); animation: spin 3s linear infinite; }
.fx-look-cage { inset: -4px; border-radius: 10px; border: 2px solid rgba(200,180,255,.95); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10' preserveAspectRatio='none'%3E%3Crect x='10' y='0' width='4' height='10' fill='%23c9b6ff'/%3E%3C/svg%3E") 0 0 / 24px 100% repeat-x; box-shadow: 0 0 14px rgba(170,140,255,.8); opacity: .9; }
.fx-look-beast { z-index: 5; background: linear-gradient(170deg, #4a6a32, #22331a); border: 1px solid #1a2612; overflow: hidden; }
.fx-look-beast .fx-emb { position: absolute; inset: 14% 22% 36%; background: #e8e2cf; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; opacity: .9; }
.fx-look-beast b { position: absolute; left: 4%; right: 4%; bottom: 20%; text-align: center; color: #f4ecda; font: 400 1rem/1.1 var(--serif, Georgia, serif); }
.fx-look-beast small { position: absolute; left: 4%; right: 4%; bottom: 10%; text-align: center; color: rgba(244, 236, 218, .75); font: 700 .62rem/1 var(--sans, sans-serif); letter-spacing: .08em; text-transform: uppercase; }
.fx-look-beast-bear { background: linear-gradient(170deg, #6a4a2a, #2e1e12); }
.fx-card-dance .hand-sway { animation: dance .9s ease-in-out infinite !important; }
@keyframes dance { 0%, 100% { transform: rotate(-7deg) translateY(0); } 25% { transform: rotate(0) translateY(-8px); } 50% { transform: rotate(7deg) translateY(0); } 75% { transform: rotate(0) translateY(-8px); } }
.fx-card-dull .hand-tilt { filter: grayscale(.8) brightness(.85); }
.fx-look-mark, .fx-look-vow { inset: 18% 10% 30%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%239fe07a' stroke-width='4'%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3Ccircle cx='50' cy='50' r='12'/%3E%3Cpath d='M50 4 V26 M50 74 V96 M4 50 H26 M74 50 H96'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; animation: spin 9s linear infinite; opacity: .9; filter: drop-shadow(0 0 4px rgba(160,230,120,.9)); }
.fx-look-vow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffb36a' stroke-width='4'%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3Cpath d='M50 4 V26 M50 74 V96 M4 50 H26 M74 50 H96'/%3E%3C/g%3E%3C/svg%3E"); filter: drop-shadow(0 0 4px rgba(255,180,100,.9)); }
.fx-look-hex { inset: 26% 14% 44%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M4 30 Q50 -6 96 30 Q50 66 4 30 Z' fill='none' stroke='%23c88cff' stroke-width='4'/%3E%3Ccircle cx='50' cy='30' r='11' fill='%23c88cff'/%3E%3C/svg%3E") center / contain no-repeat; animation: hexpulse 2s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(200,140,255,.95)); }
@keyframes hexpulse { 50% { opacity: .55; transform: scale(.94); } }
.fx-look-guided { inset: auto -8px auto auto; top: 26%; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8 L92 86 H8 Z' fill='%23fff3c4' stroke='%23c9994a' stroke-width='5'/%3E%3Ctext x='50' y='72' font-size='34' font-weight='900' text-anchor='middle' fill='%237a5410'%3E4%3C/text%3E%3C/svg%3E") center / contain no-repeat; animation: bob 1.6s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(255,220,120,.95)); }
@keyframes bob { 50% { transform: translateY(-5px) rotate(8deg); } }
.fx-look-frostarmour { background: radial-gradient(circle at 0 0, rgba(235,248,255,.85), transparent 30%), radial-gradient(circle at 100% 100%, rgba(235,248,255,.85), transparent 30%), linear-gradient(rgba(175,220,255,.2), rgba(175,220,255,.2)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8), inset 0 0 18px rgba(170,225,255,.9), 0 0 12px rgba(150,210,255,.6); }
.fx-look-bark { background: repeating-linear-gradient(95deg, rgba(110,75,40,.28) 0 6px, rgba(80,52,26,.18) 6px 11px); box-shadow: inset 0 0 0 2px rgba(110,75,40,.8), inset 0 0 14px rgba(80,52,26,.7); }
.fx-look-gleam { overflow: hidden; box-shadow: 0 0 0 1px rgba(200,180,255,.8), 0 0 12px rgba(180,150,255,.6); }
.fx-look-gleam::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(230,215,255,.6) 50%, transparent 60%); background-size: 260% 100%; animation: holy-sweep 2.2s ease-in-out infinite; }
.fx-look-gleam-holy { box-shadow: 0 0 0 1px rgba(255,220,130,.9), 0 0 14px rgba(255,210,100,.7); }
.fx-look-gleam-holy::after { background-image: linear-gradient(115deg, transparent 40%, rgba(255,245,200,.7) 50%, transparent 60%); }
.fx-look-mirror { z-index: -1; }
.fx-look-mirror i { position: absolute; inset: 0; top: 0; border-radius: 9px; background: rgba(230,215,255,.35); border: 1px solid rgba(220,200,255,.7); opacity: 1; animation: drift 2.4s ease-in-out infinite; font-size: 0; }
.fx-look-mirror i:first-child { transform: translateX(-16px) rotate(-4deg); }
.fx-look-mirror i:last-child { animation-delay: -1.2s; }
@keyframes drift { 0%, 100% { transform: translateX(-16px) rotate(-4deg); } 50% { transform: translateX(16px) rotate(4deg); } }
.fx-look-haste { overflow: visible; }
.fx-look-haste::before, .fx-look-haste::after { content: ""; position: absolute; top: 10%; bottom: 10%; width: 14px; background: repeating-linear-gradient(transparent 0 6px, rgba(255,225,90,.85) 6px 8px); animation: streak .5s linear infinite; }
.fx-look-haste::before { left: -16px; }
.fx-look-haste::after { right: -16px; }
@keyframes streak { to { background-position: 0 14px; } }
.fx-card-haste .hand-sway { animation-duration: 1.6s !important; }
.fx-card-invisible .hand-tilt { opacity: .32; filter: blur(.4px); animation: shimmer 2s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .2; } }
.fx-card-shadow .hand-tilt { filter: brightness(.45) saturate(.5) drop-shadow(0 0 10px rgba(80,40,120,.9)); opacity: .8; }
.fx-look-deathward { box-shadow: 0 0 0 1.5px rgba(230,236,255,.9), 0 0 16px rgba(210,220,255,.8); }
.fx-look-deathward::before { content: "☥"; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); color: #eef2ff; font-size: 18px; text-shadow: 0 0 6px rgba(200,215,255,1); animation: bob 2s ease-in-out infinite; }
.fx-look-fireshield { box-shadow: 0 0 0 1.5px rgba(255,150,60,.9), 0 0 18px rgba(255,120,30,.85), inset 0 0 14px rgba(255,140,40,.5); animation: flicker .25s steps(2) infinite alternate; }
.fx-look-fireshield::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -8px; height: 26px; background: radial-gradient(ellipse at 20% 100%, rgba(255,150,40,.9), transparent 60%), radial-gradient(ellipse at 55% 100%, rgba(255,90,20,.9), transparent 55%), radial-gradient(ellipse at 85% 100%, rgba(255,200,80,.9), transparent 60%); filter: blur(2px); animation: flicker .3s steps(2) infinite alternate; }
@keyframes flicker { to { opacity: .75; } }
.fx-look-stoneskin { background: repeating-radial-gradient(circle at 30% 40%, rgba(120,118,110,.18) 0 4px, rgba(170,168,160,.12) 4px 9px); box-shadow: inset 0 0 0 2px rgba(130,128,120,.8), inset 0 0 16px rgba(100,98,92,.6); }
.fx-look-wild { box-shadow: 0 0 0 1.5px rgba(140,220,100,.9), 0 0 18px rgba(110,200,80,.8); animation: holy-pulse 2.6s ease-in-out infinite; }
.fx-look-circle::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -14px; height: 22px; border-radius: 50%; border: 2px solid rgba(235,240,255,.9); box-shadow: 0 0 14px rgba(210,220,255,.9); }
.fx-look-globe { inset: -12px -10px; border-radius: 50% 50% 14px 14px; background: radial-gradient(ellipse at 35% 25%, rgba(255,255,255,.5), rgba(150,195,255,.16) 40%, rgba(120,170,255,.08)); border: 1.5px solid rgba(190,215,255,.85); box-shadow: 0 0 14px rgba(150,195,255,.6); }
.fx-look-holyaura { box-shadow: 0 0 0 2px rgba(255,245,210,.95), 0 0 26px rgba(255,235,170,.95), inset 0 0 18px rgba(255,250,225,.7); animation: holy-pulse 2.2s ease-in-out infinite; }
.fx-look-eye { inset: auto 30% auto; top: -14px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M4 30 Q50 -6 96 30 Q50 66 4 30 Z' fill='%23fff8e0' stroke='%23d29a12' stroke-width='4'/%3E%3Ccircle cx='50' cy='30' r='11' fill='%23d29a12'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 5px rgba(255,215,110,1)); animation: hexpulse 2.4s ease-in-out infinite; }
.fx-look-sanctuary { box-shadow: 0 0 0 1.5px rgba(210,228,255,.9), 0 0 16px rgba(190,215,255,.75); background: linear-gradient(rgba(220,235,255,.12), rgba(220,235,255,.12)); }
.fx-look-regen { box-shadow: inset 0 0 12px rgba(120,220,140,.55); overflow: hidden; }
.fx-look-regen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(150,240,170,.9) 0 2px, transparent 3px) 0 0 / 24px 30px; animation: rise-dots 2.6s linear infinite; }
@keyframes rise-dots { from { background-position: 0 30px; } to { background-position: 0 -30px; } }
.fx-look-rage { box-shadow: 0 0 0 1.5px rgba(255,100,70,.9), 0 0 18px rgba(235,60,40,.8); animation: holy-pulse 1s ease-in-out infinite; }
.fx-look-ward { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cpath d='M8 1 H22 L29 13 L22 25 H8 L1 13 Z' fill='none' stroke='%23c9a6ff' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 22px 19px; opacity: .55; box-shadow: 0 0 0 1.5px rgba(200,160,255,.9), 0 0 16px rgba(170,120,255,.7); animation: hexpulse 2.4s ease-in-out infinite; }
/* Wings: not drawn shapes but two fans of light rays spreading behind the card, breathing slowly. */
.fx-look-wings { --wc: 255,138,52; --wc2: 255,215,140; z-index: -1; overflow: visible; }
.fx-look-wings-light { --wc: 255,226,150; --wc2: 255,252,235; }
.fx-look-wings i { position: absolute; top: -34%; height: 100%; width: 120%; right: 50%; opacity: 1; font-size: 0;
  background:
    repeating-conic-gradient(from 0deg at 100% 82%, rgba(var(--wc2),.9) 0deg 0.8deg, rgba(var(--wc),.55) 1.6deg, transparent 3.2deg 5.5deg),
    radial-gradient(ellipse 70% 60% at 100% 82%, rgba(var(--wc),.55), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 100% 95% at 100% 82%, #000 18%, rgba(0,0,0,.6) 45%, transparent 78%), conic-gradient(from 268deg at 100% 82%, transparent 0deg, #000 14deg, #000 60deg, transparent 80deg, transparent 360deg);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: radial-gradient(ellipse 100% 95% at 100% 82%, #000 18%, rgba(0,0,0,.6) 45%, transparent 78%), conic-gradient(from 268deg at 100% 82%, transparent 0deg, #000 14deg, #000 60deg, transparent 80deg, transparent 360deg);
  filter: blur(.6px) drop-shadow(0 0 6px rgba(var(--wc),.9)); mix-blend-mode: screen;
  transform-origin: 100% 82%; animation: wing-breathe 3.2s ease-in-out infinite; }
.fx-look-wings i:last-child { scale: -1 1; animation-delay: -.1s; }
.fx-look-wings::before { content: ""; position: absolute; inset: -40% -60% 30%; background: radial-gradient(circle, rgba(var(--wc2),.95) 0 1.4px, transparent 2.4px) 0 0 / 26px 34px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 80%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 60% at 50% 80%, #000, transparent 75%);
  animation: wing-motes 3s linear infinite; opacity: .8; mix-blend-mode: screen; }
@keyframes wing-breathe { 0%, 100% { transform: rotate(4deg) scale(.94); opacity: .7; } 50% { transform: rotate(-3deg) scale(1.04); opacity: 1; } }
@keyframes wing-motes { from { background-position: 0 0; } to { background-position: 6px -68px; } }
.fx-look-absorb { overflow: hidden; box-shadow: inset 0 0 14px rgba(255,150,60,.6); }
.fx-look-absorb::before { content: ""; position: absolute; inset: -30%; background: conic-gradient(rgba(255,140,40,.35), transparent 30%, rgba(140,200,255,.35), transparent 70%, rgba(255,140,40,.35)); animation: spin 3s linear infinite; }
.fx-look-spirit { box-shadow: 0 0 0 1.5px rgba(255,220,120,.9), 0 0 16px rgba(255,205,90,.75); animation: holy-pulse 1.8s ease-in-out infinite; }
/* passing looks on a card (status) for the new effects */
.fx-st-wither { background: linear-gradient(rgba(40,30,45,.25), rgba(40,30,45,.4)); box-shadow: inset 0 0 18px rgba(30,20,40,.7); }
.fx-st-heat { background: radial-gradient(ellipse, rgba(255,120,40,.2), rgba(255,60,10,.35)); box-shadow: inset 0 0 18px rgba(255,110,30,.9), 0 0 16px rgba(255,90,20,.7); animation: holy-pulse .8s ease-in-out infinite; }
/* temporary HP from different sources */
.adv-hp[data-thp="agathys"] s.fx-thp { background: linear-gradient(90deg, #7fb8e8, #d6f0ff); }
.adv-hp[data-thp="ward"] s.fx-thp { background: linear-gradient(90deg, #7a48c2, #c79bff); }
.adv-hp[data-thp="spirit"] s.fx-thp { background: linear-gradient(90deg, #c9994a, #ffe39a); }
/* summoned creatures in the party's hand */
.adv-party .fx-summon .foe-card { filter: hue-rotate(115deg) saturate(.75) brightness(1.05); }
.adv-party .fx-summon .adv-hp { top: -7px; bottom: auto; }
@media (prefers-reduced-motion: reduce) { .fx-look, .fx-look *, .fx-look::before, .fx-look::after { animation: none !important; } }


/* The turn economy on hero cards. */
.fx-econ { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; align-items: stretch; z-index: 3; white-space: nowrap; pointer-events: none; }
.fx-econ .adv-st { padding-left: 4px !important; padding-right: 4px !important; letter-spacing: .03em !important; font-size: 9px !important; }
.fx-econ-pips { display: flex; gap: 2px; order: 1; }
.fx-econ .adv-st { order: 0; }
/* Narrow cards (phone): the pips sit on their own line above the status. */
.fx-econ.stack { flex-direction: column-reverse; align-items: center; top: -48px; }
.fx-econ.stack .fx-econ-pips { justify-content: center; }
.fx-econ .adv-st { position: static !important; transform: none !important; left: auto !important; top: auto !important; margin: 0 !important; }
.fx-pip { display: inline-flex; align-items: center; gap: 2px; padding: 0 3.5px; border-radius: 5px; background: rgba(28, 22, 18, .92); box-shadow: 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08);
  font: 800 9px/1 "Alegreya Sans", "Gill Sans", system-ui, sans-serif; letter-spacing: .03em; text-transform: uppercase; color: #f1e6d6; }
.fx-pip .dot { width: 6.5px; height: 6.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9ffd6, #34d167 55%, #1c8f42); box-shadow: 0 0 5px rgba(60,230,110,.95); transition: all .35s; }
.fx-pip .tri { width: 8px; height: 7px; background: linear-gradient(#ffd08a, #ff8a1f); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 0 3px rgba(255,150,40,.95)); transition: all .35s; }
.fx-pip .used { background: transparent; box-shadow: inset 0 0 0 1.3px rgba(80,200,120,.55); opacity: .55; }
.fx-pip .tri.used { background: rgba(255,150,60,.3); filter: none; }
.fx-pip.res b { color: #fff; font-weight: 900; }
.fx-pip.res .k { color: var(--rc, #ffcf7a); }
.fx-pip.res.out { opacity: .5; }
.fx-pip .bump, .fx-slots .bump { animation: fx-bump .5s ease-out; }
@keyframes fx-bump { 30% { transform: scale(1.7); } }
.fx-slots { position: absolute; top: 9px; left: 8%; right: 8%; display: flex; justify-content: center; flex-wrap: wrap; gap: 3px; z-index: 12; pointer-events: none; }
.fx-slots i { width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #c9a8ff 50%, #8a5cff); box-shadow: 0 0 5px rgba(170,130,255,1), 0 0 10px rgba(150,110,255,.6); transition: all .4s; }
.fx-slots i.used { background: rgba(140,110,200,.25); box-shadow: inset 0 0 0 1px rgba(170,140,255,.45); }

/* Aid: a gold crest over the card's name while its extra hit points last. */
.fx-look-aidcrest { position: absolute; left: 50%; top: -12px; width: 22px; height: 22px; transform: translateX(-50%); z-index: 9; pointer-events: none; background: radial-gradient(circle, rgba(255,226,140,.95) 0 28%, rgba(255,205,90,.0) 70%); filter: drop-shadow(0 0 6px rgba(255,210,100,.95)); animation: holy-pulse 2.6s ease-in-out infinite; border-radius: 50%; }
/* The Effects switch next to Speed. */
.adv-opts { display: flex; align-items: center; gap: 16px; }
.adv-fxbtn[aria-pressed="false"] { opacity: .7; }
.adv-pause[aria-pressed="true"] { color: var(--gold, #e7c36a); }
/* Paused: the fight holds, dimmed a little, with a word in the middle */
.adventure.paused::after { content: "Paused"; position: fixed; left: 50%; top: 46%; z-index: 60; transform: translate(-50%, -50%); padding: 8px 18px; border-radius: 5px; background: rgba(20, 14, 8, .84); border: 1px solid rgba(231, 195, 106, .55); color: #f2e2b6; font: 400 1.3rem/1 var(--serif); letter-spacing: .06em; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
/* The footer (Speed, Effects, Skip) stays over the effects, as it does over the cards. */
.adventure .qv-foot { z-index: 31; }
