/* QA33: battlefield atmosphere, actor/enemy reaction, weapon and spell effects. */
#battle[data-region=wood] .dq-scene{background:radial-gradient(ellipse at 55% 35%,#54646d 0%,#283c4f 40%,#121e2b 100%)}
#battle[data-region=wood] .dq-ridge{background:#192d2a}
#battle[data-region=wood] .ridge2{background:#25402f}
#battle[data-region=desert] .dq-scene{background:radial-gradient(ellipse at 51% 40%,#b5a077 0%,#65585c 44%,#2b293c 100%)}
#battle[data-region=desert] .dq-ridge{background:#59423b;clip-path:polygon(0 68%,15% 44%,34% 76%,49% 35%,70% 67%,87% 45%,100% 73%,100% 100%,0 100%)}
#battle[data-region=desert] .ridge2{background:#725548}
#battle[data-region=desert] .dq-ground{background:linear-gradient(#877157,#58483b 42%,#2c2929);border-color:#dbb77a78}
#battle[data-region=water] .dq-scene{background:radial-gradient(ellipse at 50% 38%,#2c7286 0%,#253a55 38%,#0b1a2b 100%)}
#battle[data-region=water] .dq-ridge{background:#1b303e}
#battle[data-region=water] .dq-ground{background:repeating-linear-gradient(92deg,#68b8bc08 0px,#7aceda2b 25px,#3066781b 49px),linear-gradient(#213a4a,#172733 45%,#12202c)}
#battle[data-region=ruins] .dq-scene{background:radial-gradient(ellipse at 50% 39%,#555067,#35344f 50%,#14162a 100%)}
#battle[data-region=ruins] .dq-ridge{background:#343043;clip-path:polygon(0 50%,8% 51%,8% 12%,11% 12%,11% 46%,28% 46%,28% 17%,33% 17%,33% 56%,62% 56%,62% 15%,67% 15%,67% 48%,85% 48%,85% 9%,89% 9%,89% 46%,100% 46%,100% 100%,0 100%)}
#battle[data-region=ruins] .ridge2{background:#22283a}
#battle[data-region=ruins] .dq-ground{background:repeating-linear-gradient(0deg,transparent 0 24px,#777b8d25 25px 26px),repeating-linear-gradient(90deg,#28303b 0 54px,#4a465540 55px 56px);border-top:2px solid #7878918a}
#battle[data-region=road] .dq-scene{background:radial-gradient(ellipse at 48% 36%,#8a8886 0%,#505a60 42%,#1b282d 100%)}
#battle[data-region=mountain] .dq-scene{background:radial-gradient(ellipse at 49% 32%,#7a8a9b 0%,#424863 48%,#161d34 100%)}
#battle[data-region=ash] .dq-scene{background:radial-gradient(ellipse at 50% 34%,#797579 0%,#4d4c50 45%,#151921 100%)}
#battle[data-region=ash] .dq-ridge{background:#36353a}
#battle[data-region=ash] .ridge2{background:#242830}
#battle[data-region=star] .dq-scene{background:radial-gradient(ellipse at 50% 42%,#44597b 0%,#343456 41%,#111c30 100%)}
#battle[data-region=star] .dq-mist{background:radial-gradient(ellipse at 50% 75%,#728ccb66,transparent 70%),repeating-radial-gradient(circle at 35% 45%,transparent 0 18px,#d7defc08 20px 21px)}
#battle[data-region=royal] .dq-scene{background:radial-gradient(ellipse at 50% 38%,#615779,#363454 48%,#16192e 100%)}
#battle .battleenemy{isolation:isolate}
#battle .enemyicon{position:relative!important;isolation:isolate}
#battle .enemyicon .qa22-enemy-art{transform:scale(var(--enemy-scale,1));transform-origin:center 83%;filter:hue-rotate(var(--enemy-hue,0deg)) saturate(var(--enemy-sat,1)) drop-shadow(0 0 14px var(--glow,#95c9ff));animation:qa33-enemy-float 2.3s ease-in-out infinite alternate}
#battle .enemyicon[data-action=charge] .qa22-enemy-art{animation:qa33-enemy-pulse 1.8s ease-in-out infinite alternate}
#battle .enemyicon[data-action=swoop] .qa22-enemy-art{animation:qa33-enemy-wing 1.9s ease-in-out infinite alternate}
#battle .enemyicon[data-action=trick] .qa22-enemy-art{animation:qa33-enemy-step 2.7s ease-in-out infinite alternate}
#battle .enemyicon[data-action=drain] .qa22-enemy-art{animation:qa33-enemy-float 3s ease-in-out infinite alternate}
#battle .enemyicon.qa33-recoil{animation:qa33-monster-hit .34s ease-out!important}
#battle .battlehero{position:relative;isolation:isolate}
#battle .battlehero.turn b{color:#ffe9b2!important}
#battle .dq-log{z-index:4}
#battle .dq-commands{z-index:4}
#battle .dq-status{z-index:4}
#battle .qa33-fx{position:absolute;inset:-12%;pointer-events:none;z-index:8;display:grid;place-items:center;animation:qa33-fx-vanish .87s ease-out forwards}
#battle .qa33-fx::before,#battle .qa33-fx::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none}
#battle .qa33-slash::before{height:5px;width:100%;background:linear-gradient(90deg,transparent,#f8f4ec,#fdd783,transparent);box-shadow:0 0 14px #ffe7af;transform:translate(-50%,-50%) rotate(-39deg);animation:qa33-cut .35s ease-out both}
#battle .qa33-slash::after{height:3px;width:88%;background:#cbefff;transform:translate(-50%,-50%) rotate(29deg);animation:qa33-cut .45s .07s ease-out both}
#battle .qa33-star::before,#battle .qa33-magic::before,#battle .qa33-heal::before,#battle .qa33-sand::before{width:72%;aspect-ratio:1;border:4px solid #a4defc;box-shadow:0 0 28px #90dbff, inset 0 0 24px #90dbff8c;animation:qa33-ring .65s ease-out both}
#battle .qa33-star::before{border-color:#a1c2ff;box-shadow:0 0 28px #7998ff}
#battle .qa33-magic::before{border-color:#eee3ff;box-shadow:0 0 25px #ceadfa}
#battle .qa33-heal::before{border-color:#9fffc4;box-shadow:0 0 25px #80e5ae}
#battle .qa33-sand::before{border-color:#ffdda0;box-shadow:0 0 25px #d8ab64}
#battle .qa33-shield::before{width:65%;aspect-ratio:1;border:4px solid #9fcee1;background:#9ce7ff19;box-shadow:0 0 18px #76caff;animation:qa33-ring .55s ease-out both}
#battle .qa33-impact::before{width:80%;height:80%;border:4px solid #ffe1ba;box-shadow:0 0 24px #ffae5f;animation:qa33-ring .5s ease-out both}
#battle .qa33-wind::before{width:85%;height:45%;border:5px solid #c8e8ff;box-shadow:0 0 20px #80c6ed;animation:qa33-ring .5s ease-out both}
#battle .qa33-dark::before{width:70%;aspect-ratio:1;border:5px solid #c69cf5;box-shadow:0 0 22px #8355b5;animation:qa33-ring .6s ease-out both}
#battle .qa33-particle{position:absolute;left:50%;top:47%;width:var(--size,5px);height:var(--size,5px);background:#fbe7ac;border-radius:100%;box-shadow:0 0 8px currentColor;animation:qa33-spark .6s ease-out both;transform:rotate(var(--rad)) translateX(0);opacity:0}
#battle .qa33-star .qa33-particle{background:#a8dbff}
#battle .qa33-magic .qa33-particle{background:#d8b1ff}
#battle .qa33-heal .qa33-particle{background:#8bffc2}
#battle .qa33-sand .qa33-particle{background:#f6d17c}
#battle .qa33-dark .qa33-particle{background:#b795ed}
#battle .qa33-fx-value{position:absolute;top:2%;right:14%;color:#fff3b9;font-size:clamp(16px,3vw,28px);z-index:3;white-space:nowrap;text-shadow:0 2px 3px #000,0 0 10px #000;animation:qa33-number .7s cubic-bezier(.2,.9,.2,1) both}
#battle .qa33-heal .qa33-fx-value{color:#a9ffca}
#battle .qa33-fx.qa33-ally .qa33-fx-value{top:-80%;right:0;font-size:18px}
#battle .qa33-screenflare{position:absolute;inset:0;z-index:5;pointer-events:none;animation:qa33-flare .58s ease-out both;background:radial-gradient(ellipse at 35% 45%,#b0dcff7b,transparent 55%)}
#battle .qa33-screenflare.qa33-slash{background:radial-gradient(ellipse at 35% 45%,#ffe39a53,transparent 55%)}
#battle .qa33-screenflare.qa33-sand{background:radial-gradient(ellipse at 35% 45%,#dab77a5a,transparent 60%)}
@keyframes qa33-enemy-float{0%{transform:translateY(0) scale(var(--enemy-scale,1))}100%{transform:translateY(-8px) scale(var(--enemy-scale,1))}}
@keyframes qa33-enemy-pulse{0%{transform:translateY(0) scale(var(--enemy-scale,1))}100%{transform:translateY(1px) scale(calc(var(--enemy-scale,1)*1.04))}}
@keyframes qa33-enemy-wing{0%{transform:translate(-5px,-3px) rotate(-3deg) scale(var(--enemy-scale,1))}100%{transform:translate(5px,3px) rotate(3deg) scale(var(--enemy-scale,1))}}
@keyframes qa33-enemy-step{0%,48%,100%{transform:translateX(0) scale(var(--enemy-scale,1))}55%,70%{transform:translateX(6px) scale(var(--enemy-scale,1))}}
@keyframes qa33-monster-hit{0%,100%{filter:brightness(1)}30%{filter:brightness(2.4);transform:translateX(-9px)}60%{filter:brightness(.8);transform:translateX(8px)}}
@keyframes qa33-ring{0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(-22deg)}35%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.3) rotate(12deg)}}
@keyframes qa33-cut{0%{opacity:0;clip-path:inset(0 100% 0 0)}20%{opacity:1}100%{opacity:0;clip-path:inset(0 0 0 0)}}
@keyframes qa33-spark{0%{opacity:0;transform:rotate(var(--rad)) translateX(0) scale(.5)}35%{opacity:1}100%{opacity:0;transform:rotate(var(--rad)) translateX(60px) scale(.2)}}
@keyframes qa33-number{0%{opacity:0;transform:translateY(15px) scale(.6)}22%{opacity:1;transform:translateY(-9px) scale(1.25)}100%{opacity:0;transform:translateY(-34px) scale(1)}}
@keyframes qa33-flare{0%{opacity:0}26%{opacity:1}100%{opacity:0}}
@keyframes qa33-fx-vanish{0%,65%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){#battle .enemyicon .qa22-enemy-art{animation:none!important}#battle .qa33-fx,#battle .qa33-screenflare{animation-duration:.1s!important}}
