/* =======================================
   ALICE (heroId 87) – PILLANGÓENERGIA
   =======================================
   Paletta (skin szerint, a JS írja felül inline változókkal; a spec
   --color-1 ... --color-5 sorrendje):
   Alap:        #BA5BE6, #9E6195, #5B4895, #B358AD, #78588C – lila-kék biolumineszcens pillangók, tündérfény.
   Monster H.:  #5327DB, #E63EFF, #00FFFF, #A710E9, #0078AA – páncélozott rovarszárny, hologram, k-pop.
   Fejl. MH:    #5327DB, #E63EFF, #00FFFF, #A710E9, #52468F – prizmatikus hologram, csillogás.
   Mesekönyv:   #A41953, #282622, #B33A58, #5B0714, #FFDDB5 – szívecskék, buborékok, mesebeli lepkék.
   --al-fill: Pillangóenergia 0..100 -> 0..1.
   data-tier: 0..4 – Nyugvó / Fénylő Raj / Csillagpillangók / Tündérvihar / Királynő.
   Szárnyak: --al-wu (felső), --al-wl (alsó), --al-wv (erezet), --al-wb (test). */

:root {
    --al-1: #BA5BE6; --al-2: #9E6195; --al-3: #5B4895; --al-4: #B358AD; --al-5: #78588C;
    --al-glow: #BA5BE6; --al-accent: #7FB8FF;
    --al-wu: #BA5BE6; --al-wl: #7FB8FF; --al-wv: #F4E6FF; --al-wb: #3A2656;
    --al-deep: #07030f;
    --al-gold: #FFD76A;
}
.alice-butterfly-meter, .alice-butterfly-tooltip, #alice-butterfly-workshop, .alice-card-fx { --al-fill: 0; }

/* ---------------------------------------
   Vektoros pillangó (külön szárny + test, csapkodás)
   --------------------------------------- */
.al-fly { position: absolute; left: 50%; top: 50%; display: block; width: 0; height: 0; pointer-events: none; font-style: normal; }
.al-fly__x, .al-fly__y, .al-fly__wob { position: absolute; left: 0; top: 0; display: block; }
.al-fly__svg {
    position: absolute; left: calc(-11px * var(--f-s, 1)); top: calc(-11px * var(--f-s, 1));
    width: calc(22px * var(--f-s, 1)); height: calc(22px * var(--f-s, 1));
    overflow: visible;
    filter: drop-shadow(0 0 3px color-mix(in srgb, var(--al-wu) 70%, transparent));
}
.al-wing { transform-box: view-box; transform-origin: 50% 50%; animation: alFlap .34s ease-in-out infinite alternate; animation-delay: calc(var(--f-i, 0) * -.07s); }
.al-wing__upper { fill: color-mix(in srgb, var(--al-wu) 88%, transparent); stroke: color-mix(in srgb, var(--al-wv) 70%, transparent); stroke-width: .45; }
.al-wing__lower { fill: color-mix(in srgb, var(--al-wl) 85%, transparent); stroke: color-mix(in srgb, var(--al-wv) 60%, transparent); stroke-width: .4; }
.al-wing__vein { fill: none; stroke: color-mix(in srgb, var(--al-wv) 75%, transparent); stroke-width: .35; stroke-linecap: round; }
.al-wing__spot { fill: var(--al-wv); opacity: .85; }
.al-fly__body { fill: var(--al-wb); stroke: color-mix(in srgb, var(--al-wv) 55%, transparent); stroke-width: .4; }
.al-fly__head { fill: var(--al-wb); }
.al-fly__antenna { fill: none; stroke: var(--al-wb); stroke-width: .5; stroke-linecap: round; }

/* Skin-szárnyak. Monster Hunter: páncélozott, szögletesebb rovarszárny
   hologram-kontúrral. Fejlesztett MH: prizmatikus színforgás. Mesekönyv:
   puha, pasztell-rózsaszín szárny. */
[data-al-motif="holo"] .al-wing__upper, [data-al-motif="holo"] .al-wing__lower { stroke: var(--al-wv); stroke-width: .7; stroke-linejoin: bevel; }
[data-al-motif="holo"] .al-fly__svg { filter: drop-shadow(0 0 2px var(--al-wv)) drop-shadow(0 0 5px color-mix(in srgb, var(--al-wu) 70%, transparent)); }
[data-al-motif="prism"] .al-fly__svg { animation: alPrism 3.2s linear infinite; animation-delay: calc(var(--f-i, 0) * -.4s); }
[data-al-motif="tale"] .al-wing__upper, [data-al-motif="tale"] .al-wing__lower { stroke-width: .6; }
[data-al-motif="tale"] .al-wing__spot { fill: #fff; }

/* Csillag Alice: a distinct faceted butterfly and a rose nebula palette. */
[data-al-theme="csillag"] { --al-gold: #F3B8F1; --al-deep: #140b24; }
[data-al-motif="star"] .al-fly__svg { filter: drop-shadow(0 0 2px #F3B8F1) drop-shadow(0 0 5px #C04EC180); }
[data-al-motif="star"] .al-wing__upper, [data-al-motif="star"] .al-wing__lower { stroke-linejoin: bevel; stroke-width: .5; }
[data-al-motif="star"] .al-wing__star { fill: #fff1ff; }
[data-al-motif="star"] .al-fly__antenna { stroke: var(--al-glow); }
[data-al-motif="star"] .al-motif.is-star svg path { fill: var(--al-4); filter: drop-shadow(0 0 4px var(--al-1)); }
[data-al-motif="star"] .al-motif.is-comet { width: 22px; height: 22px; filter: drop-shadow(0 0 3px var(--al-4)); }
[data-al-motif="star"] .al-motif.is-constellation { width: 27px; height: 27px; }
[data-al-motif="star"] .al-motif.is-galaxy { width: 25px; height: 25px; }
[data-al-theme="csillag"] .alice-card-fx__aura {
    background: radial-gradient(ellipse, transparent 45%, #C04EC11f 62%, #F3B8F144 68%, transparent 76%);
}

/* Keringés: X és Y lengés fáziseltolva -> ellipszis-pálya. */
.alice-card-fx .al-fly__x { animation: alSwingX var(--f-t, 8s) ease-in-out infinite alternate; animation-delay: calc(var(--f-i) * -1.13s); }
.alice-card-fx .al-fly__y { animation: alSwingY var(--f-t, 8s) ease-in-out infinite alternate; animation-delay: calc(var(--f-i) * -1.13s - var(--f-t, 8s) / 2); }
.alice-card-fx .al-fly__wob { animation: alWobble 1.9s ease-in-out infinite; animation-delay: calc(var(--f-i) * -.3s); }

/* ---------------------------------------
   Témafüggő motívumok (tündérfény, csillag, levél / hatszög, szilánk,
   reflektor / prizma, gyémánt / szív, buborék, mesekönyv)
   --------------------------------------- */
.al-motif { position: absolute; display: block; width: 12px; height: 12px; opacity: 0; pointer-events: none; font-style: normal; }
.al-motif svg { display: block; width: 100%; height: 100%; overflow: visible; }
.al-motif svg * { fill: var(--m-tint, var(--al-glow)); }
.al-motif svg .is-line { fill: none; stroke: var(--m-tint, var(--al-glow)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.al-motif svg .is-thin { stroke-width: 1.3; }
.al-motif svg .is-soft { fill: color-mix(in srgb, var(--m-tint, var(--al-glow)) 25%, transparent); }
.al-motif svg .is-alt { fill: var(--al-accent); }
.al-motif.is-orb svg circle:not(.is-soft) { fill: #fff; filter: drop-shadow(0 0 3px var(--al-glow)) drop-shadow(0 0 6px var(--al-accent)); }
.al-motif.is-sparkle svg path { fill: #fff; filter: drop-shadow(0 0 3px var(--al-glow)) drop-shadow(0 0 6px var(--al-accent)); }
.al-motif.is-star svg path { fill: var(--al-gold); filter: drop-shadow(0 0 3px var(--al-gold)); }
.al-motif.is-leaf svg path:first-child { fill: color-mix(in srgb, var(--al-accent) 55%, transparent); }
.al-motif.is-hexagon { width: 14px; height: 14px; }
.al-motif.is-hexagon svg .is-line { stroke: var(--al-3); filter: drop-shadow(0 0 3px var(--al-3)); }
.al-motif.is-shard svg path:first-child { fill: color-mix(in srgb, var(--al-1) 60%, #fff); filter: drop-shadow(0 0 3px var(--al-2)); }
.al-motif.is-shard svg .is-line { stroke: var(--al-3); }
.al-motif.is-spot { width: 12px; height: 18px; }
.al-motif.is-spot svg .is-alt { fill: color-mix(in srgb, var(--al-3) 45%, transparent); }
.al-motif.is-spot svg rect { fill: var(--al-2); }
.al-motif.is-prism { width: 14px; height: 14px; }
.al-motif.is-prism svg path:first-child { fill: color-mix(in srgb, var(--al-3) 45%, #fff); filter: drop-shadow(-2px 0 2px var(--al-2)) drop-shadow(2px 0 2px var(--al-3)); }
.al-motif.is-prism svg .is-line { stroke: #fff; }
.al-motif.is-diamond svg path { fill: color-mix(in srgb, var(--al-3) 60%, #fff); filter: drop-shadow(0 0 3px var(--al-3)); }
.al-motif.is-diamond svg .is-line { stroke: var(--al-2); }
.al-motif.is-heart svg path { fill: var(--al-3); filter: drop-shadow(0 0 4px var(--al-1)); }
.al-motif.is-bubble { width: 14px; height: 14px; }
.al-motif.is-bubble svg .is-line { stroke: color-mix(in srgb, var(--al-5) 85%, #fff); }
.al-motif.is-book { width: 14px; height: 14px; }
.al-motif.is-book svg path:first-child { fill: color-mix(in srgb, var(--al-5) 80%, transparent); }
.al-motif.is-book svg .is-line { stroke: var(--al-1); }

/* ---------------------------------------
   Lepke-mérő a kártyán (mechanika-ikon)
   --------------------------------------- */
.alice-butterfly-meter {
    position: absolute; left: 36px; bottom: 4px; z-index: 19;
    width: 92px; height: 88px; padding: 0; border: 0;
    background: transparent; color: #fff; cursor: pointer; isolation: isolate;
    filter: drop-shadow(0 7px 9px #000d);
}
.alice-butterfly-meter[hidden] { display: none; }
.alice-butterfly-meter:focus-visible { outline: 2px solid var(--al-glow); outline-offset: 2px; border-radius: 16px; }
.alice-butterfly-meter__halo {
    position: absolute; left: 50%; top: 38px; z-index: -3; width: 82px; height: 82px; border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--al-glow) 50%, transparent), color-mix(in srgb, var(--al-3) 45%, transparent) 44%, transparent 70%);
    opacity: calc(.45 + var(--al-fill) * .55);
    animation: alHaloPulse 2.6s ease-in-out infinite alternate;
}
.alice-butterfly-meter.is-full .alice-butterfly-meter__halo {
    background: conic-gradient(from 0deg, #9B5CFF, #5AA8FF, var(--al-gold), #9B5CFF);
    -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
    animation: alSpinCentered 6s linear infinite;
}
.alice-butterfly-meter__ring { position: absolute; left: 50%; top: 38px; z-index: -1; width: 76px; height: 76px; transform: translate(-50%, -50%) rotate(0deg); overflow: visible; }
.alice-butterfly-meter__ring circle { fill: none; }
.alice-butterfly-meter__ring .is-track { stroke: #0009; stroke-width: 4.5; }
.alice-butterfly-meter__ring .is-fill {
    stroke: var(--al-glow); stroke-width: 3.4; stroke-linecap: round;
    transform: rotate(-90deg); transform-origin: 40px 40px;
    filter: drop-shadow(0 0 3px var(--al-glow));
    transition: stroke-dashoffset .6s cubic-bezier(.2,1.2,.4,1);
}
.alice-butterfly-meter.is-full .alice-butterfly-meter__ring .is-fill { stroke: var(--al-gold); filter: drop-shadow(0 0 4px var(--al-gold)); }
.alice-butterfly-meter__ring .is-mark { fill: #1a1030; stroke: color-mix(in srgb, var(--al-glow) 50%, transparent); stroke-width: 1; }
.alice-butterfly-meter__ring .is-mark.is-reached { fill: #fff; stroke: var(--al-glow); filter: drop-shadow(0 0 3px var(--al-glow)); }
.alice-butterfly-meter__fx { position: absolute; left: 50%; top: 38px; z-index: 1; width: 0; height: 0; }
.alice-butterfly-meter .al-fly.is-meter .al-fly__x { animation: alMeterOrbit calc(3.6s + var(--f-i) * .8s) linear infinite; animation-delay: calc(var(--f-i) * -1.3s); }
.alice-butterfly-meter .al-fly.is-meter { --f-s: .62; opacity: 0; transition: opacity .4s; }
.alice-butterfly-meter[data-tier="1"] .al-fly.is-meter:nth-child(-n+1),
.alice-butterfly-meter[data-tier="2"] .al-fly.is-meter:nth-child(-n+2),
.alice-butterfly-meter[data-tier="3"] .al-fly.is-meter,
.alice-butterfly-meter[data-tier="4"] .al-fly.is-meter { opacity: 1; }
.alice-butterfly-meter__icon {
    position: absolute; left: 50%; top: 38px; width: 58px; height: 58px; object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 4px #fff6) drop-shadow(0 0 calc(6px + var(--al-fill) * 10px) var(--al-glow));
    animation: alIconFloat 2.8s ease-in-out infinite;
}
.alice-butterfly-meter[data-tier="0"] .alice-butterfly-meter__icon { filter: saturate(.75) drop-shadow(0 0 6px var(--al-glow)); }
.alice-butterfly-meter__crown {
    position: absolute; left: 50%; top: -6px; z-index: 3; width: 34px; height: 24px; object-fit: contain;
    opacity: 0; transform: translateX(-50%) scale(.5);
    filter: drop-shadow(0 0 4px var(--al-gold)) drop-shadow(0 0 10px #9B5CFF);
    transition: opacity .4s, transform .5s cubic-bezier(.2,1.6,.4,1);
}
.alice-butterfly-meter.is-full .alice-butterfly-meter__crown { opacity: 1; transform: translateX(-50%) scale(1); animation: alCrownBob 2.2s ease-in-out infinite; }
.alice-butterfly-meter__count {
    position: absolute; left: 50%; bottom: 0; z-index: 4; display: inline-flex; align-items: baseline; gap: 2px;
    padding: 2px 7px; transform: translateX(-50%);
    border: 1px solid var(--al-glow); border-radius: 9px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--al-3) 70%, #000), #08040ff0);
    box-shadow: 0 0 8px color-mix(in srgb, var(--al-glow) 50%, transparent);
    font: 900 13px/1 Montserrat, sans-serif; white-space: nowrap;
}
.alice-butterfly-meter__count small { color: color-mix(in srgb, var(--al-accent) 55%, #fff); font: 800 7.5px/1 Montserrat, sans-serif; }
.alice-butterfly-meter.is-full .alice-butterfly-meter__count { border-color: var(--al-gold); box-shadow: 0 0 10px #FFD76A88, 0 0 16px #9B5CFF66; }
.alice-butterfly-meter__tier {
    position: absolute; right: 4px; top: 4px; z-index: 4; display: grid; width: 24px; height: 24px; place-items: center;
    border: 1px solid var(--al-glow); border-radius: 50%; background: #08040fd9;
    box-shadow: 0 0 6px color-mix(in srgb, var(--al-glow) 55%, transparent);
}
.alice-butterfly-meter__tier img { width: 20px; height: 20px; object-fit: contain; }
.alice-butterfly-meter.is-gain .alice-butterfly-meter__icon { animation: alPop .5s cubic-bezier(.2,1.6,.4,1); }
.alice-butterfly-meter.is-strike .alice-butterfly-meter__halo,
.alice-butterfly-meter.is-burst .alice-butterfly-meter__halo { animation: alGainFlash .9s ease-out; }
.alice-butterfly-meter.is-tierup .alice-butterfly-meter__icon,
.alice-butterfly-meter.is-queen .alice-butterfly-meter__icon { animation: alTierUp 1s cubic-bezier(.2,1.6,.4,1); }
.alice-butterfly-meter.is-tierup .alice-butterfly-meter__tier { animation: alPop .7s cubic-bezier(.2,1.6,.4,1); }
.v3-card.alice-queen-active { box-shadow: 0 0 0 1px #FFD76A88, 0 0 18px #9B5CFF66, 0 0 26px #5AA8FF44; }

/* ---------------------------------------
   Pillangók a kártya körül
   --------------------------------------- */
.alice-card-fx { position: absolute; z-index: 31; pointer-events: none; transform: translate(-50%, -50%); overflow: visible; --al-rx: 90px; --al-ry: 130px; }
.alice-card-fx__aura { position: absolute; inset: 26px; border-radius: 14px; opacity: 0; transition: opacity .6s; }
.alice-card-fx[data-tier="2"] .alice-card-fx__aura,
.alice-card-fx[data-tier="3"] .alice-card-fx__aura {
    opacity: calc(.3 + var(--al-fill) * .5);
    box-shadow: 0 0 calc(6px + var(--al-fill) * 14px) color-mix(in srgb, var(--al-glow) 45%, transparent), 0 0 26px color-mix(in srgb, var(--al-3) 30%, transparent);
    animation: alAuraBreath 2.4s ease-in-out infinite alternate;
}
/* 100: lila-kék-arany aura. */
.alice-card-fx[data-tier="4"] .alice-card-fx__aura {
    inset: 22px; opacity: 1; border-radius: 17px;
    padding: 3px;
    background: conic-gradient(from var(--al-angle, 0deg), #9B5CFF, #5AA8FF, #FFD76A, #C77DFF, #5AA8FF, #9B5CFF);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    filter: drop-shadow(0 0 8px #9B5CFFcc) drop-shadow(0 0 16px #FFD76A77);
    animation: alAuraSpin 4s linear infinite;
}
@property --al-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.alice-card-fx__swarm { position: absolute; inset: 0; }
.alice-card-fx .al-fly { opacity: 0; transition: opacity .6s; }
/* Láthatóság szintenként: 0-24: 1-2 halvány, 25+: 5, 50+: 7 (szárnyfény),
   75+: 12 (nagy raj), 100: 14. */
.alice-card-fx[data-tier="0"] .al-fly:nth-child(1),
.alice-card-fx[data-tier="0"][data-low="2"] .al-fly:nth-child(2) { opacity: .45; }
.alice-card-fx[data-tier="0"] .al-fly__svg { filter: saturate(.7); }
.alice-card-fx[data-tier="1"] .al-fly:nth-child(-n+5) { opacity: .9; }
.alice-card-fx[data-tier="2"] .al-fly:nth-child(-n+7) { opacity: 1; }
.alice-card-fx[data-tier="3"] .al-fly:nth-child(-n+12) { opacity: 1; }
.alice-card-fx[data-tier="4"] .al-fly { opacity: 1; }
/* 50+: szárnyfény. */
.alice-card-fx[data-tier="2"] .al-fly__svg,
.alice-card-fx[data-tier="3"] .al-fly__svg { filter: drop-shadow(0 0 3px var(--al-wv)) drop-shadow(0 0 8px var(--al-glow)); }
.alice-card-fx[data-tier="4"] .al-fly__svg { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px var(--al-glow)) drop-shadow(0 0 12px #FFD76A88); }
.alice-card-fx[data-tier="3"] .al-wing, .alice-card-fx[data-tier="4"] .al-wing { animation-duration: .24s; }

/* 50+: csillagpor. */
.alice-card-fx__dustfield { position: absolute; inset: 26px; opacity: 0; transition: opacity .6s; }
.alice-card-fx[data-tier="2"] .alice-card-fx__dustfield,
.alice-card-fx[data-tier="3"] .alice-card-fx__dustfield,
.alice-card-fx[data-tier="4"] .alice-card-fx__dustfield { opacity: 1; }
.alice-card-fx__dust {
    position: absolute; left: var(--d-x); top: var(--d-y); width: 3px; height: 3px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 4px var(--al-glow), 0 0 8px var(--al-accent);
    opacity: 0; animation: alDust 3.2s ease-in-out infinite; animation-delay: calc(var(--d-i) * -.37s);
}
.alice-card-fx[data-tier="4"] .alice-card-fx__dust { background: #FFF3C4; box-shadow: 0 0 4px #FFD76A, 0 0 9px #9B5CFF; }
.alice-card-fx[data-tier="2"] .alice-card-fx__dust:nth-child(n+7) { display: none; }

/* Motívumok (skin-díszítés) a kártya szélén, 25+ szinttől. */
.alice-card-fx__motifs { position: absolute; inset: 26px; }
.alice-card-fx__motifs .al-motif {
    left: calc(8% + var(--m-i) * 16%); bottom: -4px;
    animation: alMotifRise 6s linear infinite; animation-delay: calc(var(--m-i) * -1s);
}
.alice-card-fx[data-tier="0"] .alice-card-fx__motifs,
.alice-card-fx[data-tier="1"] .alice-card-fx__motifs .al-motif:nth-child(n+3),
.alice-card-fx[data-tier="2"] .alice-card-fx__motifs .al-motif:nth-child(n+5) { display: none; }

/* 100: Korona a kártya tetején. */
.alice-card-fx__crown {
    position: absolute; left: 50%; top: 2px; width: 64px; height: 46px; object-fit: contain;
    opacity: 0; transform: translateX(-50%) translateY(-12px) scale(.4);
    filter: drop-shadow(0 0 5px #FFD76A) drop-shadow(0 0 14px #9B5CFF) drop-shadow(0 0 20px #5AA8FF88);
    transition: opacity .5s, transform .7s cubic-bezier(.2,1.6,.4,1);
}
.alice-card-fx.is-full .alice-card-fx__crown { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); animation: alCardCrown 2.6s ease-in-out infinite; }

/* Egyszeri villanások (motor-események). */
.alice-card-fx__burst { position: absolute; inset: 26px; border-radius: 14px; opacity: 0; }
.alice-card-fx.is-gain .alice-card-fx__burst { animation: alCardFlash .6s ease-out; background: radial-gradient(circle at 50% 80%, color-mix(in srgb, var(--al-glow) 30%, transparent), transparent 60%); }
.alice-card-fx.is-strike .alice-card-fx__burst,
.alice-card-fx.is-cast .alice-card-fx__burst { animation: alCardFlash .8s ease-out; background: radial-gradient(circle, color-mix(in srgb, var(--al-accent) 40%, transparent), transparent 70%); }
.alice-card-fx.is-burst .alice-card-fx__burst { animation: alCardBurst 1.1s ease-out; background: radial-gradient(circle, #ffffffaa, color-mix(in srgb, var(--al-glow) 55%, transparent) 30%, transparent 70%); }
.alice-card-fx.is-tierup .alice-card-fx__burst,
.alice-card-fx.is-queen .alice-card-fx__burst { animation: alCardBurst 1.3s ease-out; background: radial-gradient(circle, #FFF3C4cc, #9B5CFF88 35%, #5AA8FF44 55%, transparent 72%); }
.alice-card-fx.is-tierup .al-wing, .alice-card-fx.is-queen .al-wing { animation-duration: .12s; }
.alice-card-fx.has-cocoon .alice-card-fx__aura { opacity: 1; box-shadow: inset 0 0 22px color-mix(in srgb, var(--al-glow) 45%, transparent), 0 0 14px color-mix(in srgb, var(--al-accent) 50%, transparent); }
.alice-card-fx.is-fallen { opacity: .4; filter: saturate(.45); }
.alice-card-fx.is-fallen * { animation-play-state: paused !important; }

/* ---------------------------------------
   Prémium tooltip (full-bleed, saját körvonal)
   --------------------------------------- */
body.v3-body > .item-tooltip-floating:has(.alice-butterfly-tooltip),
body.v3-body > .v3-floating-tooltip:has(.alice-butterfly-tooltip) {
    width: min(430px, calc(100vw - 20px)) !important; max-width: 430px !important; max-height: none !important;
    padding: 0 !important; border: 0 !important; border-radius: 20px;
    background: transparent !important; box-shadow: none !important; overflow: visible !important;
}
.item-tooltip-floating .item-tooltip-desc:has(.alice-butterfly-tooltip) { margin: 0 !important; color: inherit; font-size: inherit; line-height: inherit; }
.alice-butterfly-tooltip {
    position: relative; isolation: isolate; box-sizing: border-box; display: block; width: 100%;
    padding: 16px; overflow: hidden;
    border: 2px solid var(--al-glow); border-radius: 20px;
    outline: 1px solid color-mix(in srgb, var(--al-accent) 55%, transparent); outline-offset: -6px;
    background:
        radial-gradient(circle at 10% 6%, color-mix(in srgb, var(--al-glow) 24%, transparent), transparent 34%),
        radial-gradient(circle at 94% 92%, color-mix(in srgb, var(--al-accent) 30%, transparent), transparent 46%),
        linear-gradient(150deg, color-mix(in srgb, var(--al-3) 70%, #000), color-mix(in srgb, var(--al-deep) 92%, #000) 55%, color-mix(in srgb, var(--al-1) 40%, #000));
    box-shadow: 0 24px 70px #000e, 0 0 26px color-mix(in srgb, var(--al-glow) 38%, transparent), inset 0 0 48px #0008;
    color: #fff; font-family: Outfit, sans-serif; text-align: left;
}
.alice-butterfly-tooltip.is-full {
    border-color: var(--al-gold);
    box-shadow: 0 24px 70px #000e, 0 0 30px #9B5CFF77, 0 0 18px #FFD76A55, inset 0 0 48px #0008;
}
/* Alap: biolumineszcens fénypöttyök. */
.alice-butterfly-tooltip::before, #alice-butterfly-workshop::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .3;
    background:
        radial-gradient(2px 2px at 14% 22%, #fff, transparent 60%),
        radial-gradient(3px 3px at 38% 70%, var(--al-accent), transparent 60%),
        radial-gradient(2px 2px at 72% 30%, var(--al-glow), transparent 60%),
        radial-gradient(1.5px 1.5px at 88% 78%, #fff, transparent 60%),
        radial-gradient(ellipse 40% 26% at 86% 12%, color-mix(in srgb, var(--al-glow) 25%, transparent), transparent 70%);
    background-size: 140px 120px, 140px 120px, 140px 120px, 140px 120px, 100% 100%;
}
/* Monster Hunter: hologram-rács és színpadfény. */
.alice-butterfly-tooltip[data-al-theme="mh"]::before, #alice-butterfly-workshop[data-al-theme="mh"]::before {
    opacity: .22;
    background:
        linear-gradient(160deg, transparent 20%, color-mix(in srgb, var(--al-2) 40%, transparent) 30%, transparent 42%),
        linear-gradient(200deg, transparent 50%, color-mix(in srgb, var(--al-3) 35%, transparent) 60%, transparent 70%),
        repeating-linear-gradient(0deg, color-mix(in srgb, var(--al-3) 60%, transparent) 0 1px, transparent 1px 4px);
    background-size: 100% 100%;
}
/* Fejlesztett Monster Hunter: prizmatikus fénytörés és csillogás. */
.alice-butterfly-tooltip[data-al-theme="fmh"]::before, #alice-butterfly-workshop[data-al-theme="fmh"]::before {
    opacity: .32;
    background:
        conic-gradient(from 200deg at 88% 10%, transparent 0 20deg, #ff4fd866 30deg, #ffe06666 40deg, #5fffd266 50deg, #6fa8ff66 60deg, transparent 70deg),
        radial-gradient(1.5px 1.5px at 18% 24%, #fff, transparent 60%),
        radial-gradient(1px 1px at 52% 70%, #fff, transparent 60%),
        radial-gradient(1.5px 1.5px at 76% 40%, var(--al-3), transparent 60%),
        repeating-linear-gradient(0deg, color-mix(in srgb, var(--al-2) 45%, transparent) 0 1px, transparent 1px 5px);
    background-size: 100% 100%, 120px 100px, 120px 100px, 120px 100px, 100% 100%;
}
/* Mesekönyv: pasztell buborékok és papír-textúra. */
.alice-butterfly-tooltip[data-al-theme="mese"]::before, #alice-butterfly-workshop[data-al-theme="mese"]::before {
    opacity: .26;
    background:
        radial-gradient(circle at 84% 18%, transparent 0 9px, color-mix(in srgb, var(--al-5) 70%, transparent) 10px 11px, transparent 12px),
        radial-gradient(circle at 72% 30%, transparent 0 5px, color-mix(in srgb, var(--al-5) 60%, transparent) 6px 7px, transparent 8px),
        radial-gradient(circle at 12% 84%, transparent 0 7px, color-mix(in srgb, var(--al-3) 70%, transparent) 8px 9px, transparent 10px),
        repeating-linear-gradient(0deg, #ffffff08 0 1px, transparent 1px 18px);
    background-size: 100% 100%;
}
.alice-butterfly-tooltip[data-al-theme="csillag"]::before, #alice-butterfly-workshop[data-al-theme="csillag"]::before {
    opacity: .5;
    background:
        radial-gradient(1.5px 1.5px at 18% 24%, #fff1ff, transparent 80%),
        radial-gradient(1px 1px at 74% 56%, #F3B8F1, transparent 80%),
        radial-gradient(2px 2px at 46% 82%, #D379D9, transparent 80%),
        conic-gradient(from 200deg at 92% 6%, transparent 0 22deg, #F3B8F13b 23deg 30deg, #C04EC128 31deg 44deg, transparent 45deg),
        radial-gradient(ellipse at 0% 80%, #C04EC155, transparent 46%),
        radial-gradient(ellipse at 100% 10%, #71619688, transparent 45%);
    background-size: 113px 97px, 157px 123px, 197px 157px, 100% 100%, 100% 100%, 100% 100%;
}
.alice-butterfly-tooltip[data-al-theme="csillag"].is-full,
#alice-butterfly-workshop[data-al-theme="csillag"].is-full {
    border-color: #F3B8F1;
    box-shadow: 0 24px 70px #000e, 0 0 32px #C04EC166, inset 0 0 45px #71619622;
}
[data-al-theme="csillag"] .alice-butterfly-workshop__ladder article.is-queen.is-current {
    background: linear-gradient(100deg, #71619644, #C04EC122, #F3B8F122);
    box-shadow: 0 0 14px #C04EC144, 0 0 8px #F3B8F133;
}
.alice-butterfly-tooltip > * { position: relative; z-index: 2; }
.alice-butterfly-tooltip > .alice-butterfly-tooltip__vfx { position: absolute; z-index: 0; inset: 0; pointer-events: none; overflow: hidden; }
.alice-butterfly-tooltip__vfx .al-motif { top: 104%; left: calc(4% + var(--m-i) * 11%); animation: alMotifRiseFar 8s linear infinite; animation-delay: calc(var(--m-i) * -.9s); }
.alice-butterfly-tooltip__vfx .al-fly.is-drift, .alice-butterfly-workshop__vfx .al-fly.is-drift { top: 100%; left: calc(18% + var(--f-i) * 55%); --f-s: 1.1; opacity: .5; }
.alice-butterfly-tooltip__vfx .al-fly.is-drift .al-fly__x, .alice-butterfly-workshop__vfx .al-fly.is-drift .al-fly__x { animation: alDriftUp calc(9s + var(--f-i) * 1.7s) linear infinite; animation-delay: calc(var(--f-i) * -3.1s); }
.alice-butterfly-tooltip header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 11px; padding-bottom: 11px;
    border-bottom: 1px solid color-mix(in srgb, var(--al-glow) 28%, transparent);
}
.alice-butterfly-tooltip__crest, .alice-butterfly-workshop__crest { position: relative; flex: 0 0 62px; width: 62px; height: 62px; }
.alice-butterfly-tooltip__crest i, .alice-butterfly-workshop__crest i {
    position: absolute; inset: 2px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--al-glow) 45%, transparent), transparent 70%);
    animation: alHaloPulseSimple 2.2s ease-in-out infinite alternate;
}
.alice-butterfly-tooltip__crest img, .alice-butterfly-workshop__crest img {
    position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 4px #fff6) drop-shadow(0 0 11px var(--al-glow));
    animation: alIconFloat 2.8s ease-in-out infinite;
}
.alice-butterfly-tooltip__crest img.is-crown, .alice-butterfly-workshop__crest img.is-crown {
    top: -2px; width: 34px; height: 24px; z-index: 2;
    filter: drop-shadow(0 0 4px var(--al-gold)) drop-shadow(0 0 9px #9B5CFF);
    animation: alCrownBob 2.2s ease-in-out infinite;
}
.alice-butterfly-tooltip header > div { display: grid; flex: 1; gap: 2px; min-width: 0; }
.alice-butterfly-tooltip header small { color: var(--al-glow); font: 800 9px/1 Montserrat, sans-serif; letter-spacing: .16em; }
.alice-butterfly-tooltip header strong { font: 900 21px/1.1 Montserrat, sans-serif; text-shadow: 0 0 15px var(--al-1); }
.alice-butterfly-tooltip header em { display: inline-flex; align-items: center; gap: 5px; color: color-mix(in srgb, var(--al-accent) 60%, #fff); font: 800 10.5px/1.2 Outfit, sans-serif; font-style: normal; letter-spacing: .06em; }
.alice-butterfly-tooltip header em img { width: 18px; height: 18px; object-fit: contain; filter: drop-shadow(0 0 4px var(--al-glow)); }
.alice-butterfly-tooltip.is-full header em {
    background: linear-gradient(90deg, #C77DFF, #5AA8FF, var(--al-gold));
    -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; letter-spacing: .1em;
}
.alice-butterfly-tooltip header > b { position: relative; display: grid; justify-items: center; gap: 2px; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--al-glow) 45%, transparent); border-radius: 11px; background: #0006; }
.alice-butterfly-tooltip header > b span { color: #fff; font: 900 22px/1 Montserrat, sans-serif; text-shadow: 0 0 10px var(--al-glow); }
.alice-butterfly-tooltip header > b small { color: #fff; font: 800 7.5px/1 Montserrat, sans-serif; letter-spacing: .1em; }
.alice-butterfly-tooltip.is-full header > b { border-color: var(--al-gold); }
/* Energia-sáv 25/50/75 jelölőkkel. */
.alice-butterfly-tooltip__bar, .alice-butterfly-workshop__bar {
    position: relative; display: block; height: 10px; margin-bottom: 9px; overflow: visible;
    border: 1px solid color-mix(in srgb, var(--al-glow) 45%, transparent); border-radius: 6px; background: #0008;
}
.alice-butterfly-tooltip__bar-fill, .alice-butterfly-workshop__bar-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--al-fill) * 100%); border-radius: 5px;
    background: linear-gradient(90deg, var(--al-3), var(--al-glow), var(--al-accent));
    box-shadow: 0 0 8px color-mix(in srgb, var(--al-glow) 70%, transparent);
    font-style: normal;
}
.alice-butterfly-tooltip.is-full .alice-butterfly-tooltip__bar-fill, #alice-butterfly-workshop.is-full .alice-butterfly-workshop__bar-fill {
    background: linear-gradient(90deg, #9B5CFF, #5AA8FF, #FFD76A, #9B5CFF); background-size: 200% 100%; animation: alBarShine 2.4s linear infinite;
}
.alice-butterfly-tooltip__bar b, .alice-butterfly-workshop__bar b {
    position: absolute; left: var(--mark); top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px;
    background: color-mix(in srgb, var(--al-glow) 40%, #0008);
}
.alice-butterfly-tooltip__bar b.is-reached, .alice-butterfly-workshop__bar b.is-reached { background: #fff; box-shadow: 0 0 5px var(--al-glow); }
.alice-butterfly-tooltip__tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-bottom: 9px; }
.alice-butterfly-tooltip__tier {
    position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 2px 3px;
    border: 1px solid color-mix(in srgb, var(--al-glow) 30%, transparent); border-radius: 9px; background: #0006;
}
.alice-butterfly-tooltip__tier img { width: 26px; height: 26px; object-fit: contain; }
.alice-butterfly-tooltip__tier small { color: color-mix(in srgb, var(--al-accent) 50%, #fff); font: 800 8px/1 Montserrat, sans-serif; }
.alice-butterfly-tooltip__tier.is-locked { opacity: .4; }
.alice-butterfly-tooltip__tier.is-locked img { filter: grayscale(.8) brightness(.6); }
.alice-butterfly-tooltip__tier.is-reached { border-color: color-mix(in srgb, var(--al-glow) 60%, transparent); }
.alice-butterfly-tooltip__tier.is-current {
    border-color: var(--al-glow);
    background: radial-gradient(circle, color-mix(in srgb, var(--al-glow) 35%, transparent), #0007 72%);
    box-shadow: inset 0 0 10px color-mix(in srgb, var(--al-glow) 40%, transparent), 0 0 9px color-mix(in srgb, var(--al-glow) 50%, transparent);
}
.alice-butterfly-tooltip__tier.is-current img { filter: drop-shadow(0 0 5px var(--al-glow)); animation: alIconFloat 2.4s ease-in-out infinite; }
.alice-butterfly-tooltip__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 8px; }
.alice-butterfly-tooltip__facts span { display: grid; justify-items: center; gap: 3px; padding: 6px 4px; border: 1px solid color-mix(in srgb, var(--al-glow) 22%, transparent); border-radius: 9px; background: #0006; text-align: center; }
.alice-butterfly-tooltip__facts small { color: color-mix(in srgb, var(--al-accent) 50%, #fff); font: 700 8px/1.1 Montserrat, sans-serif; letter-spacing: .05em; }
.alice-butterfly-tooltip__facts b { color: #fff; font: 900 13px/1 Montserrat, sans-serif; text-shadow: 0 0 7px var(--al-glow); }
.alice-butterfly-tooltip__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.alice-butterfly-tooltip__badges span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 2px; border: 1px solid var(--al-glow); border-radius: 10px; background: color-mix(in srgb, var(--al-3) 30%, #0008); font: 800 9px/1.2 Montserrat, sans-serif; }
.alice-butterfly-tooltip__badges img { width: 18px; height: 18px; border-radius: 6px; object-fit: cover; }
.alice-butterfly-tooltip__badges .is-mark { border-color: var(--al-accent); }
.alice-butterfly-tooltip__line { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 7px 9px; border-left: 2px solid color-mix(in srgb, var(--al-glow) 50%, transparent); border-radius: 0 8px 8px 0; background: #0005; color: color-mix(in srgb, var(--al-accent) 35%, #fff); font: 500 10.5px/1.4 Outfit, sans-serif; }
.alice-butterfly-tooltip__line > img { flex: 0 0 26px; width: 26px; height: 26px; object-fit: contain; opacity: .7; }
.alice-butterfly-tooltip__line.is-active, .alice-butterfly-tooltip__line.is-queen { border-left-color: var(--al-glow); background: color-mix(in srgb, var(--al-3) 30%, #0006); color: #fff; }
.alice-butterfly-tooltip__line.is-queen { border-left-color: var(--al-gold); }
.alice-butterfly-tooltip__line.is-active > img, .alice-butterfly-tooltip__line.is-queen > img { opacity: 1; filter: drop-shadow(0 0 5px var(--al-glow)); }
.alice-butterfly-tooltip__hint { display: block; margin-top: 9px; color: var(--al-glow); font: 700 8px/1.3 Montserrat, sans-serif; text-align: center; letter-spacing: .06em; }

/* ---------------------------------------
   Pillangókert-popup (dialog)
   --------------------------------------- */
#alice-butterfly-workshop {
    position: fixed; width: min(1140px, 95vw); max-width: 95vw; max-height: 92vh; padding: 0; overflow: hidden;
    border: 2px solid var(--al-glow); border-radius: 22px;
    outline: 1px solid color-mix(in srgb, var(--al-accent) 50%, transparent); outline-offset: -7px;
    background:
        radial-gradient(circle at 10% 0, color-mix(in srgb, var(--al-glow) 18%, transparent), transparent 34%),
        radial-gradient(circle at 92% 100%, color-mix(in srgb, var(--al-accent) 28%, transparent), transparent 45%),
        linear-gradient(145deg, color-mix(in srgb, var(--al-3) 62%, #000), color-mix(in srgb, var(--al-deep) 94%, #000) 60%, color-mix(in srgb, var(--al-1) 35%, #000));
    box-shadow: 0 30px 100px #000f, 0 0 45px color-mix(in srgb, var(--al-glow) 34%, transparent);
    color: #fff;
}
#alice-butterfly-workshop.is-full { border-color: var(--al-gold); box-shadow: 0 30px 100px #000f, 0 0 60px #9B5CFF66, 0 0 30px #FFD76A44; }
#alice-butterfly-workshop::backdrop { background: rgba(4, 2, 10, .86); backdrop-filter: blur(8px); }
.alice-butterfly-workshop__vfx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.alice-butterfly-workshop__vfx .al-motif {
    top: auto; bottom: -24px; left: calc(2% + var(--m-i) * 6.2%);
    width: 16px; height: 16px;
    animation: alWorkshopRise 14s linear infinite;
    animation-delay: calc(var(--m-i) * -.9s);
}
.alice-butterfly-workshop__vfx .al-fly.is-drift { left: calc(6% + var(--f-i) * 12%); }
#alice-butterfly-workshop > header, .alice-butterfly-workshop__content { position: relative; z-index: 1; }
#alice-butterfly-workshop > header { display: flex; align-items: center; gap: 14px; padding: 16px 25px 12px; border-bottom: 1px solid color-mix(in srgb, var(--al-glow) 28%, transparent); }
.alice-butterfly-workshop__title { flex: 1; }
.alice-butterfly-workshop__title small { color: var(--al-glow); font: 800 9px/1 Montserrat, sans-serif; letter-spacing: .2em; }
.alice-butterfly-workshop__title h2 { margin: 5px 0 0; font: 900 25px/1 Montserrat, sans-serif; text-shadow: 0 0 16px var(--al-1); }
#alice-butterfly-workshop > header button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--al-glow); border-radius: 50%; background: #0007; color: #fff; font-size: 22px; cursor: pointer; }
.alice-butterfly-workshop__content { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(460px, 1.1fr); gap: 15px; max-height: calc(92vh - 86px); padding: 18px 22px 24px; overflow: auto; }
.alice-butterfly-workshop__overview h3 { margin: 14px 0 0; color: var(--al-glow); font: 900 11px/1 Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.alice-butterfly-workshop__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.alice-butterfly-workshop__stats span { display: grid; justify-items: center; gap: 3px; padding: 8px 5px; border: 1px solid color-mix(in srgb, var(--al-glow) 22%, transparent); border-radius: 10px; background: #0006; text-align: center; }
.alice-butterfly-workshop__stats b { color: #fff; font: 900 16px/1 Montserrat, sans-serif; text-shadow: 0 0 8px var(--al-glow); }
.alice-butterfly-workshop__stats small { color: color-mix(in srgb, var(--al-accent) 45%, #fff); font: 600 8.5px/1.2 Outfit, sans-serif; }
.alice-butterfly-workshop__state { margin-top: 9px; }
.alice-butterfly-workshop__state ul, .alice-butterfly-workshop__rules { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.alice-butterfly-workshop__state li, .alice-butterfly-workshop__rules li, .alice-butterfly-workshop__basic li { padding: 6px 9px; border-left: 2px solid var(--al-glow); border-radius: 0 8px 8px 0; background: #0005; color: color-mix(in srgb, var(--al-accent) 35%, #fff); font: 500 10px/1.35 Outfit, sans-serif; }
.alice-butterfly-workshop__state b, .alice-butterfly-workshop__rules b, .alice-butterfly-workshop__basic li b { color: #fff; }
.alice-butterfly-workshop__ladder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.alice-butterfly-workshop__ladder article { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 8px; padding: 8px; border: 1px solid color-mix(in srgb, var(--al-accent) 25%, transparent); border-radius: 10px; background: #0005; opacity: .62; }
.alice-butterfly-workshop__ladder article.is-reached { opacity: .9; }
.alice-butterfly-workshop__ladder article.is-current { opacity: 1; border-color: var(--al-glow); background: color-mix(in srgb, var(--al-glow) 14%, #0006); box-shadow: 0 0 12px color-mix(in srgb, var(--al-glow) 32%, transparent); }
.alice-butterfly-workshop__ladder article.is-queen { grid-column: 1 / -1; }
.alice-butterfly-workshop__ladder article.is-queen.is-current { border-color: var(--al-gold); background: linear-gradient(100deg, #9B5CFF33, #5AA8FF22, #FFD76A22); box-shadow: 0 0 14px #9B5CFF55, 0 0 8px #FFD76A44; }
.alice-butterfly-workshop__ladder img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 5px var(--al-glow)); }
.alice-butterfly-workshop__ladder small { color: var(--al-accent); font: 800 8px/1 Montserrat, sans-serif; letter-spacing: .12em; }
.alice-butterfly-workshop__ladder strong { display: block; margin-top: 2px; font: 900 12px/1.1 Montserrat, sans-serif; }
.alice-butterfly-workshop__ladder p { margin: 3px 0 0; color: color-mix(in srgb, var(--al-accent) 40%, #fff); font: 500 9px/1.3 Outfit, sans-serif; }
.alice-butterfly-workshop__summary { margin: 10px 0 0; color: color-mix(in srgb, var(--al-accent) 35%, #fff); font: 500 10.5px/1.45 Outfit, sans-serif; }
.alice-butterfly-workshop__gallery { display: grid; gap: 6px; margin-top: 9px; }
.alice-butterfly-workshop__gallery article { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--al-glow) 16%, transparent); border-radius: 11px; background: #0005; opacity: .74; }
.alice-butterfly-workshop__gallery article.is-current { opacity: 1; border-color: var(--al-glow); box-shadow: inset 0 0 16px color-mix(in srgb, var(--al-3) 30%, transparent), 0 0 12px color-mix(in srgb, var(--al-glow) 32%, transparent); }
.alice-butterfly-workshop__gallery img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 6px var(--al-glow)); }
.alice-butterfly-workshop__gallery small { color: var(--al-glow); font: 800 8px/1 Montserrat, sans-serif; letter-spacing: .12em; }
.alice-butterfly-workshop__gallery strong { display: block; margin-top: 2px; font: 900 14px/1.1 Montserrat, sans-serif; }
.alice-butterfly-workshop__gallery p { margin: 3px 0 0; color: color-mix(in srgb, var(--al-accent) 40%, #fff); font: 500 9.5px/1.3 Outfit, sans-serif; }
.alice-butterfly-workshop__overview .alice-butterfly-tooltip { box-shadow: 0 0 18px color-mix(in srgb, var(--al-glow) 30%, transparent), inset 0 0 40px #0008; }
.alice-butterfly-workshop__overview .alice-butterfly-tooltip__hint { display: none; }
.alice-butterfly-workshop__abilities { display: grid; align-content: start; gap: 9px; }
.alice-butterfly-workshop__abilities article { display: grid; grid-template-columns: 68px 1fr; align-items: start; gap: 11px; padding: 11px; border: 1px solid color-mix(in srgb, var(--al-glow) 22%, transparent); border-radius: 13px; background: #ffffff07; }
.alice-butterfly-workshop__abilities article > img { width: 66px; height: 66px; object-fit: cover; border: 1px solid var(--al-glow); border-radius: 11px; box-shadow: 0 0 13px color-mix(in srgb, var(--al-1) 45%, transparent); }
.alice-butterfly-workshop__basic > img { object-fit: contain !important; background: radial-gradient(circle, color-mix(in srgb, var(--al-glow) 30%, transparent), #0008 70%); }
.alice-butterfly-workshop__basic.is-passive > img { object-fit: cover !important; }
.alice-butterfly-workshop__basic small { color: var(--al-glow); font: 800 8px/1 Montserrat, sans-serif; letter-spacing: .14em; }
.alice-butterfly-workshop__basic strong { display: block; margin-top: 3px; font: 900 15px/1.1 Montserrat, sans-serif; }
.alice-butterfly-workshop__basic p { margin: 4px 0 6px; color: color-mix(in srgb, var(--al-accent) 35%, #fff); font: 500 10.5px/1.4 Outfit, sans-serif; }
.alice-butterfly-workshop__basic ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.alice-butterfly-workshop__abilities .ability-progression { margin-top: 7px; }
@media (max-width: 900px) {
    .alice-butterfly-workshop__content { grid-template-columns: minmax(0, 1fr); }
    .alice-butterfly-workshop__ladder { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------
   Harci napló: Pillangóenergia chip
   --------------------------------------- */
.v3-log-stat-alice {
    border-color: #BA5BE699 !important;
    background: linear-gradient(135deg, #5B489566, #7FB8FF33) !important;
    color: #F6EAFF !important;
    box-shadow: 0 0 8px #BA5BE655;
}

/* ---------------------------------------
   Kulcsszó-ikonok (csak Alice szövegeiben)
   --------------------------------------- */
.ability-inline-icon.is-alice-keyword {
    width: 1.4em; height: 1.4em; margin: -.3em .14em -.28em 0;
    object-fit: contain;
    filter: drop-shadow(0 0 3px #BA5BE6aa);
}
.ability-inline-icon.is-alice-keyword[data-alice-keyword="kard"] { filter: drop-shadow(0 0 3px #7FB8FFcc); }
.ability-inline-icon.is-alice-keyword[data-alice-keyword="korona"],
.ability-inline-icon.is-alice-keyword[data-alice-keyword="kiralyno"],
.ability-inline-icon.is-alice-keyword[data-alice-keyword="max"],
.ability-inline-icon.is-alice-keyword[data-alice-keyword="astraQueen"] { filter: drop-shadow(0 0 3px #FFD76Add) drop-shadow(0 0 5px #9B5CFF99); }
.ability-inline-icon.is-alice-keyword[data-alice-keyword="seal"] { filter: drop-shadow(0 0 3px #C77DFFdd); }
.ability-inline-icon.is-alice-keyword[data-alice-keyword="burst"],
.ability-inline-icon.is-alice-keyword[data-alice-keyword="strike"],
.ability-inline-icon.is-alice-keyword[data-alice-keyword="blade"] { filter: drop-shadow(0 0 3px #7FB8FFdd); }
.alice-butterfly-tooltip .ability-inline-icon.is-alice-keyword { width: 1.45em; height: 1.45em; }
/* Részletező leírás-lista (ability tooltip, Pillangókert-popup): a
   "25+ / 50+ / 75+ / 100 Pillangóenergia" sorok az aktuális energia szerint
   elértek, a legmagasabb elért sor kiemelt. */
.ability-progression.is-alice-details .ability-progression-step {
    grid-template-columns: 124px minmax(0, 1fr);
}
.ability-progression.is-alice-details .ability-progression-step.is-wide-label {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
}
.ability-progression.is-alice-details .ability-progression-step.is-wide-label .ability-progression-label {
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(186, 91, 230, .3);
}
.ability-progression.is-alice-details .ability-progression-step.is-reached .ability-progression-label { color: #f3e3ff; }
.ability-progression.is-alice-details .ability-progression-step.is-current {
    background: linear-gradient(100deg, rgba(91, 72, 149, .55), rgba(0, 0, 0, .42) 62%, rgba(127, 184, 255, .18));
    border-color: rgba(186, 91, 230, .75);
    box-shadow: inset 0 0 14px rgba(91, 72, 149, .5), 0 0 10px rgba(186, 91, 230, .35);
}
.ability-progression.is-alice-details .ability-progression-step.is-current .ability-progression-label {
    color: #fbf4ff;
    text-shadow: 0 0 8px rgba(186, 91, 230, .85);
}
.ability-progression.is-alice-details .ability-progression-step.is-alice-tier-100.is-current {
    background: linear-gradient(100deg, rgba(155, 92, 255, .45), rgba(90, 168, 255, .22) 55%, rgba(255, 215, 106, .22));
    border-color: rgba(255, 215, 106, .8);
    box-shadow: inset 0 0 14px rgba(155, 92, 255, .5), 0 0 12px rgba(255, 215, 106, .35);
}
body.v3-body > .ability-tooltip-floating .ability-progression.is-alice-details .ability-progression-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 8px 10px 9px;
    border-radius: 10px;
}

@keyframes alFlap { from { transform: scaleX(1); } to { transform: scaleX(.22); } }
@keyframes alSwingX { from { transform: translateX(calc(var(--al-rx) * var(--f-r, 1) * -1)); } to { transform: translateX(calc(var(--al-rx) * var(--f-r, 1))); } }
@keyframes alSwingY { from { transform: translateY(calc(var(--al-ry) * var(--f-r, 1) * -1)); } to { transform: translateY(calc(var(--al-ry) * var(--f-r, 1))); } }
@keyframes alWobble { 0%, 100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-4px); } }
@keyframes alMeterOrbit { from { transform: rotate(0deg) translateX(40px) rotate(90deg); } to { transform: rotate(360deg) translateX(40px) rotate(90deg); } }
@keyframes alPrism { from { filter: hue-rotate(0deg) drop-shadow(0 0 4px #fff); } to { filter: hue-rotate(360deg) drop-shadow(0 0 4px #fff); } }
@keyframes alHaloPulse { from { transform: translate(-50%, -50%) scale(.88); } to { transform: translate(-50%, -50%) scale(1.1); } }
@keyframes alHaloPulseSimple { from { opacity: .5; transform: scale(.85); } to { opacity: 1; transform: scale(1.1); } }
@keyframes alSpinCentered { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes alIconFloat { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -3px; rotate: 3deg; } }
@keyframes alCrownBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes alCardCrown { 0%, 100% { translate: 0 0; filter: drop-shadow(0 0 5px #FFD76A) drop-shadow(0 0 14px #9B5CFF) drop-shadow(0 0 20px #5AA8FF88); } 50% { translate: 0 -4px; filter: drop-shadow(0 0 8px #FFD76A) drop-shadow(0 0 20px #9B5CFF) drop-shadow(0 0 26px #5AA8FFaa); } }
@keyframes alPop { 0% { scale: 1; } 40% { scale: 1.25; } 100% { scale: 1; } }
@keyframes alTierUp { 0% { scale: .6; filter: brightness(2) drop-shadow(0 0 18px var(--al-glow)); } 50% { scale: 1.35; } 100% { scale: 1; } }
@keyframes alGainFlash { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); filter: brightness(1.7); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes alAuraBreath { from { filter: brightness(.85); } to { filter: brightness(1.2); } }
@keyframes alAuraSpin { to { --al-angle: 360deg; } }
@keyframes alDust { 0%, 100% { opacity: 0; transform: translateY(0) scale(.4); } 45% { opacity: 1; transform: translateY(-6px) scale(1); } 80% { opacity: .2; transform: translateY(-12px) scale(.6); } }
@keyframes alMotifRise { 0% { opacity: 0; transform: translateY(0) rotate(0); } 15% { opacity: .8; } 100% { opacity: 0; transform: translateY(-80px) rotate(40deg); } }
@keyframes alMotifRiseFar { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 12% { opacity: .75; } 50% { transform: translate(12px, -200px) rotate(40deg); } 100% { opacity: 0; transform: translate(-10px, -420px) rotate(-30deg); } }
@keyframes alDriftUp { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 50% { transform: translate(30px, -45vh); } 100% { opacity: 0; transform: translate(-20px, -100vh); } }
@keyframes alWorkshopRise { 0% { opacity: 0; transform: translate(0, 0) scale(1.2) rotate(0); } 10% { opacity: .6; } 100% { opacity: 0; transform: translate(40px, -95vh) scale(1.2) rotate(160deg); } }
@keyframes alBarShine { from { background-position: 0 0; } to { background-position: 200% 0; } }
@keyframes alCardFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes alCardBurst { 0% { opacity: 1; transform: scale(.7); } 60% { opacity: .8; } 100% { opacity: 0; transform: scale(1.25); } }

@media (prefers-reduced-motion: reduce) {
    .alice-card-fx *, .alice-butterfly-meter *, .alice-butterfly-tooltip *, #alice-butterfly-workshop * { animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}
/* Combat indicators are state-bound and follow the global VFX switch. */
.v3-vfx-disabled .alice-combat-status { display: none !important; }
