/* Final boss second phase (eclipse-phase.js). Poses come from game.js through #battlefield[data-eclipse]. */
/* fallen poses are lower than the standing emperor: scale from the feet */
#battlefield[data-eclipse=fallen] #monsterArt .actor-idle,#battlefield[data-eclipse=fallenEclipse] #monsterArt .actor-idle{scale:.74;transform-origin:50% 100%}
/* phase 2: larger than phase 1 and floating above the duel line (not on the hero foot line) */
#battlefield[data-eclipse=eclipse] #monsterArt{translate:0 -14%;scale:1.22;transform-origin:50% 100%}
/* hit flash/finisher are placed from the unscaled target box: give them the same lift and scale */
#battlefield[data-eclipse=eclipse] :is(#targetFlash,#finisherArt){translate:0 -14%;scale:1.22;transform-origin:50% 100%}
#battlefield[data-eclipse=eclipse] .attack-target .mob-shadow{opacity:.45!important;scale:.72}
/* darkening during the transformation (above the scenery and light, below the actors) */
.eclipse-shade{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;
  background:radial-gradient(ellipse 70% 60% at 70% 55%,rgb(40 0 8 / .35),rgb(6 0 3 / .72) 70%)}
.eclipse-flash{position:absolute;inset:0;z-index:30;pointer-events:none;opacity:0;
  background:radial-gradient(ellipse 60% 70% at 72% 52%,rgb(255 225 210 / .9),rgb(255 60 50 / .55) 35%,rgb(120 0 10 / .2) 65%,transparent 80%)}
.eclipse-shade[hidden],.eclipse-flash[hidden],.eclipse-banner[hidden]{display:none}
/* name: dark eclipse letters with a burning red corona, over an eclipse disc; top band, centred (like boss names) */
.eclipse-banner{position:absolute;left:0;right:0;top:clamp(2.6rem,6.5vh,4.4rem);z-index:46;display:flex;flex-direction:column;align-items:center;gap:.35rem;pointer-events:none;text-align:center}
.eclipse-banner strong{position:relative;z-index:1;font-family:var(--font-title)!important;font-size:clamp(1.9rem,3.6vw,4.2rem);font-weight:600;letter-spacing:.06em;line-height:1.15;
  color:#e3131f;-webkit-text-stroke:.025em #3a0006;text-shadow:0 2px 0 #1a0003,0 0 .2em #ff2a2a,0 0 .5em #b00010,0 0 1em #5a0008}
.eclipse-banner small{position:relative;z-index:1;font-size:clamp(.7rem,1vw,.95rem);letter-spacing:.24em;text-transform:uppercase;color:#e9b3a8;text-shadow:0 1px 0 #000,0 0 .6em #8a0a14}
.eclipse-disc{position:absolute;left:50%;top:42%;width:clamp(5rem,9vw,10rem);aspect-ratio:1;border-radius:50%;translate:none;transform:translate(-50%,-50%);
  background:radial-gradient(circle,#050103 0 57%,#ff4a3a 60%,rgb(200 20 30 / .6) 64%,rgb(120 0 10 / .25) 72%,transparent 80%)}
@media(max-width:760px),(max-height:600px){.eclipse-banner{top:.6rem}.eclipse-banner strong{font-size:clamp(1.3rem,6vw,2rem)}}
/* the target is disabled (combat blocked) during the scene, but the boss must stay fully visible */
#battlefield[data-eclipse] #attackTarget:disabled{opacity:1}
/* Throne arena follows the fight: damaged when the emperor falls, devastated from the transformation on. Same framing
   and floor line as the intact arena, so the actors do not move; the swaps hide under the darkening and the flash. */
.zone-5.boss-fight[data-eclipse=fallen]{--landscape:url('assets/backgrounds/fast/trono-do-crepusculo-boss-danificada.webp?v=1')}
.zone-5.boss-fight:is([data-eclipse=fallenEclipse],[data-eclipse=eclipse]){--landscape:url('assets/backgrounds/fast/trono-do-crepusculo-boss-devastada.webp?v=1')}
@media(max-width:760px){
  .zone-5.boss-fight[data-eclipse=fallen]{--landscape:url('assets/backgrounds/fast/trono-do-crepusculo-boss-danificada-mobile.webp?v=1')}
  .zone-5.boss-fight:is([data-eclipse=fallenEclipse],[data-eclipse=eclipse]){--landscape:url('assets/backgrounds/fast/trono-do-crepusculo-boss-devastada-mobile.webp?v=1')}
}
/* Encarnação do Eclipse light: a burning corona behind the upper body and a red pool on the floor under it.
   Static gradients on the existing aura/shadow nodes; eclipse-phase.js only breathes the aura's opacity. */
#battlefield[data-eclipse=eclipse] .attack-target .monster-aura{display:block!important;inset:-6% -4% 8%!important;opacity:.9!important;z-index:0;
  background:radial-gradient(circle at 50% 22%,rgb(0 0 0 / .0) 0 7%,rgb(255 70 50 / .55) 8.5%,rgb(220 30 40 / .28) 13%,transparent 24%),
             radial-gradient(ellipse 48% 42% at 50% 34%,rgb(255 60 45 / .30),rgb(150 10 25 / .16) 55%,transparent 78%)!important}
#battlefield[data-eclipse=eclipse] .attack-target::after{content:'';position:absolute;left:8%;right:8%;bottom:-3%;height:16%;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse 50% 50% at 50% 50%,rgb(255 50 40 / .32),rgb(140 10 20 / .14) 55%,transparent 75%)}
.eclipse-kneel-ghost{position:absolute;z-index:6;pointer-events:none;object-fit:contain;object-position:center bottom}
/* Encarnação do Eclipse on the boss HP bar: crimson name with gold details */
#battlefield[data-eclipse=eclipse] #bossHUDName{color:#b80a1a!important;-webkit-text-stroke:.3px #e8b445;
  text-shadow:0 1px 0 #1a0003,0 0 .35em rgb(255 190 60 / .35),0 0 .8em rgb(160 0 16 / .6)!important}
#battlefield[data-eclipse=eclipse] #bossHUDLevel{color:#f2c14e!important;text-shadow:0 1px 0 #000}
/* boss fights: no "FASE 10/10 · CHEFÃO" label or phase pips at the top (the pause button stays) */
#phaseIndicator:has(+#battlefield.boss-fight) :is(.souls-phase-line>span,#stagePips){visibility:hidden}
/* no pause control in the HUD */
#pauseBattle{display:none!important}
