/* All files are real alpha PNG atlases. Frame selection is shared by every surface. */
.scene{background-image:linear-gradient(180deg,#29274109,#282c4055),url('art/forest.png');image-rendering:auto}
.hero-sprite.hero-outfit,.equipment-sprite{image-rendering:auto}.pix-boss{image-rendering:pixelated}
.creature.pix-boss{background-image:url('art/bosses-v540.png');background-size:400% 400%;background-repeat:no-repeat;clip-path:none}
.equipment-sprite.pix-exclusive{background-image:url('art/gear-expanded.png');background-size:400% 300%;background-repeat:no-repeat}
.equipment-sprite.pix-common{background-image:url('art/equipment.png');background-size:400% 300%;background-repeat:no-repeat}
.aura-pixel{position:absolute;display:block;inset:-5% -8% -3%;background-image:url('art/auras-v540.png');background-size:400% 400%;background-repeat:no-repeat;pointer-events:none;image-rendering:pixelated;transform-origin:50% 85%;contain:layout style}
.aura-back{z-index:0;opacity:.5;animation:aura-pulse 4.8s ease-in-out infinite}.aura-front{z-index:6;opacity:.8;animation:aura-particles 4.4s ease-in-out infinite}
.aura-tier-0.aura-back{--aura-strength:.35;opacity:.35}.aura-tier-1.aura-back{--aura-strength:.5;opacity:.5}.aura-tier-2.aura-back{--aura-strength:.65;opacity:.65}.aura-tier-3.aura-back{--aura-strength:.8;opacity:.8}.aura-tier-0.aura-front{opacity:.4}.aura-tier-3.aura-front{animation-duration:3.6s}
.aura-decoration{inset:43% -1% -5%;opacity:.55}.aura-decoration.aura-front{opacity:.65}
/* Avoid two different glow systems hiding the actual sprite silhouette. */
.scene .hero-sprite.hero-outfit{filter:drop-shadow(0 5px 4px #23253c30)}
.aura-quality{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:10px 0;font-size:.8rem}.aura-quality button{min-height:44px}.aura-quality button[aria-pressed=true]{background:var(--pale);border-radius:10px;color:var(--purple);font-weight:700}
.pixel-effect{display:inline-block;width:88px;height:88px;background-image:url('art/effects-v540.png');background-size:400% 200%;background-repeat:no-repeat;image-rendering:pixelated;pointer-events:none;vertical-align:middle}
.battle-stage .pixel-effect{position:absolute;right:7%;top:30px;z-index:8;animation:pixel-impact .65s ease-out both}.battle-stage .pixel-effect-victory{width:110px;height:110px;right:calc(50% - 55px);top:8px;animation:pixel-victory 1.1s ease-out both}.celebrate>.pixel-effect{width:115px;height:115px;margin:0 auto;display:block}.badge .pixel-effect{width:36px;height:36px;display:block;margin:auto}
@keyframes aura-pulse{0%,100%{transform:scale(.97);opacity:calc(var(--aura-strength,.6)*.75)}50%{transform:scale(1.025);opacity:var(--aura-strength,.6)}}@keyframes aura-particles{0%,100%{transform:translateY(1px);opacity:.5}50%{transform:translateY(-3px);opacity:.9}}@keyframes pixel-impact{0%{opacity:0;transform:scale(.5) rotate(-8deg)}35%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(1.25)}}@keyframes pixel-victory{0%{opacity:0;transform:translateY(10px) scale(.8)}25%,75%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-8px)}}
html[data-effects=low] .aura-pixel,html[data-motion=reduce] .aura-pixel{animation:none!important}html[data-effects=low] .aura-front{display:none}html[data-effects=low] .pixel-effect,html[data-motion=reduce] .battle-stage .pixel-effect{animation:none!important}
html[data-effects=low] .scene .hero-sprite,html[data-effects=low] .creature{animation:none!important}html[data-theme=dark] .aura-quality button[aria-pressed=true]{background:#302b45;color:#dbcbff}
@media(prefers-reduced-motion:reduce){.aura-pixel,.battle-stage .pixel-effect{animation:none!important}}
html[data-effects=low] .battle-stage .pixel-effect,html[data-motion=reduce] .battle-stage .pixel-effect{display:none}@media(prefers-reduced-motion:reduce){.battle-stage .pixel-effect{display:none}}
/* Original illustration palette: keep effects at the feet and outer silhouette.
   Eight existing PNG themes are retained; this is CSS motion, not new frames. */
.aura-pixel{image-rendering:auto;filter:saturate(.82);transform-origin:50% 88%}
.aura-front{mask-image:radial-gradient(ellipse 40% 38% at 50% 33%,transparent 70%,#000 100%);opacity:.38}
.aura-back{--aura-strength:.32}
.aura-tier-0.aura-back{--aura-strength:.22}.aura-tier-1.aura-back{--aura-strength:.28}.aura-tier-2.aura-back{--aura-strength:.34}.aura-tier-3.aura-back{--aura-strength:.40}
.aura-decoration.aura-back{--aura-strength:.28}.aura-decoration.aura-front{opacity:.35}
@keyframes aura-pulse{0%,100%{transform:scale(.99);opacity:calc(var(--aura-strength,.32)*.85)}50%{transform:scale(1.01);opacity:var(--aura-strength,.32)}}
@keyframes aura-particles{0%,100%{transform:translateY(1px);opacity:.25}50%{transform:translateY(-1px);opacity:.42}}
html[data-effects=low] .aura-back,html[data-motion=reduce] .aura-back{opacity:var(--aura-strength,.32)}
.aura-card{position:relative;display:block;width:100px;height:95px;max-width:100%;isolation:isolate;pointer-events:none}
.aura-card .aura-pixel{inset:0;animation:none;opacity:.8;filter:none}
.aura-card .aura-front{mask-image:none;opacity:.65}
@media(prefers-reduced-motion:reduce){.aura-back{opacity:var(--aura-strength,.32)}}

/* Theme hue stays visible at the feet; no light covers face or grip. */
.aura-pixel{filter:saturate(1.12)}.aura-tier-0.aura-back{--aura-strength:.18}.aura-tier-1.aura-back{--aura-strength:.22}.aura-tier-2.aura-back{--aura-strength:.26}.aura-tier-3.aura-back{--aura-strength:.30}.aura-front{opacity:.22;clip-path:inset(66% 0 0)}.aura-decoration.aura-back{--aura-strength:.22}.aura-decoration.aura-front{opacity:.20}
.aura-band{position:absolute;left:15%;right:15%;top:85%;height:11%;border:2px solid var(--aura-color);border-radius:50%;box-shadow:0 2px 7px color-mix(in srgb,var(--aura-color) 35%,transparent);z-index:0;opacity:.70;pointer-events:none}.aura-band-decoration{left:12%;right:12%;top:87%;height:10%;opacity:.65}.aura-card .aura-band{top:83%;height:12%;border-width:1px}
@keyframes aura-particles{0%,100%{transform:translateY(0);opacity:.18}50%{transform:translateY(-1px);opacity:.27}}
html[data-effects=low] .aura-band,html[data-motion=reduce] .aura-band{box-shadow:none;opacity:.75}

.aura-pixel.aura-back{opacity:var(--aura-strength,.26)}.aura-pixel.aura-front{opacity:.22}.aura-card .aura-pixel{opacity:.8}

.aura-pixel{filter:hue-rotate(var(--aura-hue,0deg)) saturate(1.12)}
