/* ASTERVEIL V7 — clean lower command, correct cloud creation,
   ranger bow alignment, female bow choreography and single impact. Preview only. */
body.av-ui-ready #battleStage.battle-command-v3 #battleQuiz.battle-question-overlay{
 background:
  radial-gradient(ellipse at 50% -10%,rgba(103,75,175,.23),transparent 60%),
  radial-gradient(circle at 2% 75%,rgba(65,79,160,.20),transparent 33%),
  radial-gradient(circle at 98% 75%,rgba(65,79,160,.20),transparent 33%),
  linear-gradient(165deg,#141e43,#1a2750 51%,#0d183b)!important;
 border-top:1px solid #f9d79b!important;
 box-shadow:inset 0 1px 0 rgba(255,238,184,.25),inset 0 -8px 18px #070f2b55!important;
}
/* No banner, pillar, arch or ornamental art behind question/answers.
   Only a restrained gilded border remains at the edges. */
body.av-ui-ready #battleStage.battle-command-v3 #battleQuiz::before{
 content:none!important;display:none!important;background:none!important;
}
body.av-ui-ready #battleStage.battle-command-v3 #battleQuiz::after{
 content:"";position:absolute;pointer-events:none;
 inset:8px 10px!important;z-index:0;
 border:1px solid rgba(240,204,148,.27)!important;
 border-radius:17px!important;
 box-shadow:inset 0 1px 0 rgba(255,243,200,.09);
}
body.av-ui-ready #battleStage.battle-command-v3 #battleQuiz .battleword,
body.av-ui-ready #battleStage.battle-command-v3 #battleQuiz #answerChoices,
body.av-ui-ready #battleStage.battle-command-v3 #battleQuiz .battle-quiz-heading{
 position:relative;z-index:1;
}
/* Cloud creation uses a preselected role/gender slot: no duplicate 3-class
   gallery or dead gender controls; retain ONE preview and the Create button. */
body.av-ui-ready #creator.av-cloud-slot-creator #classes,
body.av-ui-ready #creator.av-cloud-slot-creator .gender-options{
 display:none!important;
}
body.av-ui-ready #creator.av-cloud-slot-creator #creatorPreview.creator-preview{
 margin:22px auto 22px;
 width:min(340px,100%);max-width:340px;
 min-height:290px;
 border:1px solid rgba(248,204,142,.75);
 border-radius:19px;
 background:radial-gradient(ellipse at 50% 50%,rgba(132,94,190,.34),rgba(21,40,78,.87) 81%);
}
body.av-ui-ready #creator.av-cloud-slot-creator #creatorPreview .hero-sprite{
 width:min(265px,75vw)!important;height:auto!important;aspect-ratio:1/1;
 background-size:300% 200%;
}
/* Chrome/Safari autofill should not introduce a white field. */
body.av-ui-ready #creator #heroName:-webkit-autofill,
body.av-ui-ready #creator #heroName:-webkit-autofill:hover,
body.av-ui-ready #creator #heroName:-webkit-autofill:focus{
 -webkit-box-shadow:0 0 0 1000px #13244c inset!important;
 -webkit-text-fill-color:#fef0d5!important;
 caret-color:#ffedd0!important;
}
body.av-ui-ready #creator #classes .hero-sprite,
body.av-ui-ready #characterSelect #characterSlots .hero-sprite{
 /* Preserve JS-set per-class background-position (0,50,100 × female/male).
    Never override it with center!important. */
 background-size:300% 200%!important;
 background-repeat:no-repeat!important;
}
/* Ranger: only the dedicated projectile is drawn.
   Disable overly bright legacy full-field hit beams and glow blooms. */
body.av-ui-ready #battleStage.battle-command-v3.attack.ranger .hit-effect,
body.av-ui-ready #battleStage.battle-command-v3.attack.ranger .attack-projectile,
body.av-ui-ready #battleStage.battle-command-v3.attack.ranger .battle-action-effect,
body.av-ui-ready #battleStage.battle-command-v3.attack.ranger .luna-magic-bolt,
body.av-ui-ready #battleStage.battle-command-v3.attack.ranger .meta-independent-bolt{
 display:none!important;opacity:0!important;animation:none!important;
}
/* Ranger enemy reacts as the arrow reaches the target, never with a white flash
   before the arrow leaves the bow. */
body.av-ui-ready #battleStage.battle-command-v3.attack.ranger .enemy-unit .monster-sprite{
 animation:av7ArrowReact 1.7s linear both!important;
}
@keyframes av7ArrowReact{
 0%,80%{transform:translate3d(0,0,0) scale(1);filter:brightness(1)}
 85%{transform:translate3d(7px,0,0) scale(.985);filter:brightness(1.23)}
 92%{transform:translate3d(-3px,0,0) scale(1.01);filter:brightness(1.08)}
 100%{transform:translate3d(0,0,0) scale(1);filter:brightness(1)}
}
/* Female Ranger: deliberate nock, draw, hold, release and recovery on
   the existing approved Iris character artwork (does not swap character identity). */
body.av-ui-ready #battleStage.battle-command-v3.attack.ranger #battleHero.av-iris-motion{
 transform-origin:58% 83%!important;
 animation:av7IrisBowSequence 1.65s cubic-bezier(.35,.08,.45,1) both!important;
}
@keyframes av7IrisBowSequence{
 0%{transform:translate3d(0,0,0) rotate(0) scale(1);filter:drop-shadow(0 9px 8px #07122c77)}
 14%{transform:translate3d(-3px,0,0) rotate(-2deg) scale(1.015)}
 32%{transform:translate3d(-9px,-2px,0) rotate(-5deg) scale(1.035);filter:drop-shadow(0 0 5px #a7e7b855)}
 44%{transform:translate3d(-11px,-2px,0) rotate(-5deg) scale(1.035);filter:drop-shadow(0 0 11px #b7f4b977)}
 50%{transform:translate3d(5px,0,0) rotate(1.8deg) scale(1.01)}
 64%{transform:translate3d(7px,0,0) rotate(2.4deg) scale(1.01)}
 82%{transform:translate3d(1px,0,0) rotate(.4deg) scale(1)}
 100%{transform:translate3d(0,0,0) rotate(0) scale(1);filter:drop-shadow(0 9px 8px #07122c77)}
}
/* Adam frame canvas is the ONLY moving ranger sprite while the illustrated
   12-frame attack plays; no CSS bowRelease translation. */
body.av-ui-ready #battleStage.battle-command-v3.attack.ranger #battleHero.has-adam-frames{
 animation:none!important;transform:none!important;
}
body.av-ui-ready #battleStage.battle-command-v3 .iris-straight-arrow{
 width:57px;height:4px;z-index:17;
 background:linear-gradient(90deg,transparent 0%,#85cda54d 20%,#dcffd3 70%,#fff6d0 100%);
 box-shadow:0 0 5px #9af6bc,0 0 11px #91dfab80;
 opacity:0;
}
body.av-ui-ready #battleStage.battle-command-v3 .iris-straight-arrow::before{
 width:18px;height:11px;right:-6px;
 filter:drop-shadow(0 0 4px #ffedb5);
}
body.av-ui-ready #battleStage.battle-command-v3 .iris-straight-arrow::after{
 width:58px;height:2px;right:23px;box-shadow:0 0 5px #86eab783;
}
body.av-ui-ready #battleStage.battle-command-v3 .iris-straight-arrow.in-flight{
 animation:av7ArrowFly .47s linear both!important;
}
@keyframes av7ArrowFly{
 0%{opacity:.7;transform:translate(-50%,-50%) rotate(var(--iris-shot-rotation,0rad)) translate3d(0,0,0) scale(.91)}
 14%,84%{opacity:1}
 100%{opacity:.05;transform:translate(-50%,-50%) translate3d(var(--iris-shot-distance),var(--iris-shot-dy,0px),0) rotate(var(--iris-shot-rotation,0rad)) scale(1)}
}
body.av-ui-ready #battleStage.battle-command-v3 .iris-arrow-impact{
 width:41px;height:41px;border:1px solid #dafbb6;
 background:radial-gradient(circle,#fffac3 0 8%,#9cebaf80 15%,#5ed79b33 44%,transparent 76%);
 box-shadow:0 0 11px #b6e7ab99,0 0 21px #65cfa34b;
 animation:av7ArrowImpact .29s ease-out both!important;
}
body.av-ui-ready #battleStage.battle-command-v3 .iris-arrow-impact::before,
body.av-ui-ready #battleStage.battle-command-v3 .iris-arrow-impact::after{
 font-size:15px;text-shadow:0 0 7px #b3edac;
}
@keyframes av7ArrowImpact{
 0%{opacity:0;transform:translate(-50%,-50%) scale(.15)}
 30%{opacity:1}
 100%{opacity:0;transform:translate(-50%,-50%) scale(1.15)}
}
@media(max-width:480px){
 body.av-ui-ready #creator.av-cloud-slot-creator #creatorPreview.creator-preview{
  width:230px;min-height:210px;margin:18px auto;
 }
 body.av-ui-ready #creator.av-cloud-slot-creator #creatorPreview .hero-sprite{
  width:180px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body.av-ui-ready #battleStage.battle-command-v3.attack.ranger #battleHero.av-iris-motion{animation:none!important}
 body.av-ui-ready #battleStage.battle-command-v3.attack.ranger .enemy-unit .monster-sprite{animation:none!important}
}
