/* v149 宠物野外战斗 · 回合制国风场景（重制版） */
.btl-bq{position:fixed;inset:0;z-index:9998;display:flex;flex-direction:column;overflow:hidden;
  background:#08181b;color:#f8fbff;font-family:inherit;isolation:isolate}
.btl-bq *{box-sizing:border-box}
.btl-top{flex:0 0 auto;position:relative;z-index:20;display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:calc(7px + env(safe-area-inset-top)) 12px 7px;
  background:linear-gradient(180deg,rgba(5,20,22,.92),rgba(5,20,22,.58));
  border-bottom:1px solid rgba(245,214,143,.28)}
.btl-round{display:flex;align-items:center;gap:6px;background:rgba(255,238,184,.11);
  border:1px solid rgba(248,221,146,.45);border-radius:12px;padding:4px 9px 4px 7px;min-width:76px}
.btl-round em{font-style:normal;font-size:10px;color:#cfdcc9;letter-spacing:.5px}
.btl-round b{font-size:17px;line-height:1;color:#ffe6a0;font-weight:900}
.btl-place{display:flex;align-items:center;gap:7px;min-width:0;justify-content:center;flex:1}
.btl-place span{font-size:12px;color:#e4f2e5;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btl-place i{font-style:normal;font-size:9px;letter-spacing:1px;padding:2px 6px;border-radius:6px;
  background:rgba(255,255,255,.12);color:#d9e9df;white-space:nowrap}
.btl-place i.elite{background:rgba(110,185,255,.25);color:#cceaff}
.btl-place i.boss{background:rgba(255,90,105,.28);color:#ffd2d7}
.btl-quit{border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;
  width:30px;height:30px;border-radius:50%;font-size:15px;flex:0 0 auto}
.btl-quit:active{transform:scale(.92)}

.btl-stage{position:relative;flex:1;min-height:0;overflow:hidden;isolation:isolate;
  background:linear-gradient(180deg,#76c7e7 0%,#b7e6e2 30%,#eaf5d5 58%,#c5e3a5 78%,#8fbd79 100%)}
.btl-stage.in{animation:btlStageIn .55s ease-out both}
@keyframes btlStageIn{from{opacity:.6;transform:scale(1.015)}to{opacity:1;transform:none}}
.btl-sky{position:absolute;inset:0;background:
  radial-gradient(ellipse at 22% 7%,rgba(255,255,237,.9),rgba(255,255,237,0) 28%),
  radial-gradient(ellipse at 78% 11%,rgba(255,238,178,.24),rgba(255,238,178,0) 34%),
  linear-gradient(180deg,#6ec3e6 0%,#a9dfe4 27%,#dcedcc 52%,#cbe6ad 75%,#9cc77f 100%)}
.btl-sun{position:absolute;right:9%;top:6%;width:120px;height:120px;border-radius:50%;
  background:radial-gradient(circle,#fffef0 0%,#fff1b8 28%,rgba(255,226,142,.42) 50%,rgba(255,226,142,0) 70%);
  filter:blur(1px);animation:btlSun 8s ease-in-out infinite}
@keyframes btlSun{0%,100%{transform:scale(.94);opacity:.75}50%{transform:scale(1.06);opacity:.95}}
.btl-cloud{position:absolute;height:32px;border-radius:50%;background:rgba(255,255,255,.62);
  filter:blur(.7px);box-shadow:0 4px 16px rgba(255,255,255,.35);animation:btlCloud 46s linear infinite}
.btl-cloud.c1{width:150px;left:8%;top:16%;animation-duration:52s}
.btl-cloud.c2{width:210px;left:45%;top:9%;height:24px;opacity:.7;animation-duration:68s;animation-delay:-18s}
.btl-cloud.c3{width:120px;right:10%;top:24%;height:20px;opacity:.55;animation-duration:58s;animation-delay:-30s}
@keyframes btlCloud{0%{transform:translateX(-18vw)}100%{transform:translateX(30vw)}}
.btl-mtn{position:absolute;left:-12%;width:78%;height:34%;pointer-events:none;transform-origin:50% 100%}
.btl-mtn.far{bottom:27%;background:linear-gradient(180deg,#9bc6c0,#7fa99a);opacity:.42;
  clip-path:polygon(0 100%,0 58%,8% 62%,18% 38%,25% 49%,34% 18%,43% 42%,52% 30%,61% 52%,72% 24%,83% 48%,92% 36%,100% 58%,100% 100%)}
.btl-mtn.mid{bottom:22%;left:-4%;width:70%;height:31%;background:linear-gradient(180deg,#84b7a0,#547f68);
  opacity:.6;clip-path:polygon(0 100%,0 56%,12% 32%,21% 52%,33% 20%,43% 39%,55% 12%,66% 35%,78% 22%,88% 48%,100% 40%,100% 100%)}
.btl-mtn.near{bottom:17%;left:23%;width:72%;height:28%;background:linear-gradient(180deg,#5d9275,#31634d);
  opacity:.72;clip-path:polygon(0 100%,0 58%,11% 38%,25% 52%,38% 25%,50% 46%,64% 30%,78% 50%,91% 35%,100% 55%,100% 100%)}
.btl-mist{position:absolute;left:-5%;right:-5%;bottom:25%;height:22%;pointer-events:none;
  background:linear-gradient(180deg,rgba(236,255,230,0),rgba(236,255,230,.52) 55%,rgba(236,255,230,0));
  opacity:.5}
.btl-ground{position:absolute;left:0;right:0;bottom:0;height:42%;pointer-events:none;
  background:linear-gradient(180deg,rgba(135,190,122,0) 0%,rgba(88,148,84,.88) 28%,#3d7b4d 62%,#255638 100%)}
.btl-ground::before{content:"";position:absolute;inset:0;opacity:.3;
  background:radial-gradient(ellipse at 50% 92%,var(--btlc,#b9d68a),transparent 70%)}
.btl-floor{position:absolute;left:5%;right:5%;bottom:4%;height:28%;pointer-events:none;
  border-radius:50%;background:
  radial-gradient(ellipse at 50% 44%,rgba(250,238,202,.78) 0%,rgba(226,210,167,.54) 38%,rgba(157,175,122,.18) 65%,transparent 78%);
  box-shadow:inset 0 6px 18px rgba(255,255,255,.22),0 10px 26px rgba(25,50,35,.12);
  opacity:.9}
.btl-floor::before{content:"";position:absolute;left:8%;right:8%;top:12%;bottom:18%;border-radius:50%;
  border:2px solid rgba(255,242,196,.24);box-shadow:0 0 20px rgba(255,232,160,.12)}
.btl-floor::after{content:"";position:absolute;left:16%;right:16%;top:26%;bottom:28%;border-radius:50%;
  border:1px dashed rgba(255,242,196,.22)}
.btl-grass,.btl-petals{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:2}
.btl-grass i{position:absolute;bottom:0;display:block;width:3px;height:22px;border-radius:3px;
  background:linear-gradient(180deg,rgba(185,232,154,.8),rgba(45,112,62,.45));
  transform-origin:50% 100%;animation:btlGrass 4.2s ease-in-out infinite}
.btl-grass i:nth-child(1){left:5%;height:28px;animation-delay:-1s}
.btl-grass i:nth-child(2){left:12%;height:18px;animation-delay:-2.6s}
.btl-grass i:nth-child(3){left:20%;height:25px;animation-delay:-.4s}
.btl-grass i:nth-child(4){left:31%;height:17px;animation-delay:-3.2s}
.btl-grass i:nth-child(5){left:42%;height:24px;animation-delay:-1.8s}
.btl-grass i:nth-child(6){left:55%;height:16px;animation-delay:-2.2s}
.btl-grass i:nth-child(7){left:66%;height:29px;animation-delay:-.8s}
.btl-grass i:nth-child(8){left:76%;height:20px;animation-delay:-3.5s}
.btl-grass i:nth-child(9){left:87%;height:27px;animation-delay:-1.4s}
.btl-grass i:nth-child(10){left:95%;height:18px;animation-delay:-2.9s}
@keyframes btlGrass{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(7deg)}}
.btl-petals i{position:absolute;top:-16px;width:8px;height:5px;border-radius:60% 20% 60% 20%;
  background:rgba(255,220,166,.75);box-shadow:0 0 6px rgba(255,213,160,.5);
  animation:btlPetal 10s linear infinite}
.btl-petals i:nth-child(1){left:8%;animation-delay:-2s;animation-duration:12s}
.btl-petals i:nth-child(2){left:18%;animation-delay:-7s;animation-duration:9s;background:rgba(255,238,196,.7)}
.btl-petals i:nth-child(3){left:30%;animation-delay:-4s;animation-duration:13s}
.btl-petals i:nth-child(4){left:45%;animation-delay:-9s;animation-duration:11s}
.btl-petals i:nth-child(5){left:59%;animation-delay:-1s;animation-duration:14s}
.btl-petals i:nth-child(6){left:72%;animation-delay:-6s;animation-duration:10s}
.btl-petals i:nth-child(7){left:84%;animation-delay:-3s;animation-duration:12s}
.btl-petals i:nth-child(8){left:94%;animation-delay:-8s;animation-duration:9.5s}
@keyframes btlPetal{0%{opacity:0;transform:translate(0,-10px) rotate(0)}12%{opacity:.7}
  100%{opacity:0;transform:translate(-5vw,105vh) rotate(280deg)}}

.btl-foe{position:absolute;right:4%;top:8%;width:54%;height:61%;z-index:5;display:flex;
  flex-direction:column;align-items:center;justify-content:flex-end;transform-origin:50% 90%;will-change:transform}
.btl-me{position:absolute;left:3%;bottom:2%;width:56%;height:48%;z-index:6;display:flex;
  flex-direction:column;align-items:center;justify-content:flex-end;transform-origin:50% 90%;will-change:transform}
.btl-hud{position:relative;z-index:7;width:min(174px,92%);background:linear-gradient(180deg,rgba(14,35,34,.88),rgba(9,24,25,.78));
  border:1px solid rgba(245,220,154,.55);border-radius:12px;padding:5px 9px 6px;
  box-shadow:0 5px 16px rgba(0,0,0,.22);backdrop-filter:blur(4px)}
.btl-hud-foe{margin-bottom:6px}
.btl-hud-me{margin-bottom:6px}
.btl-name{display:flex;align-items:center;gap:4px;font-size:11.5px;font-weight:800;color:#fff5dc;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}
.btl-tier{font-style:normal;font-size:8.5px;line-height:1;padding:2px 5px;border-radius:5px;
  background:#d8a73c;color:#251a08;letter-spacing:.5px}
.btl-tier.elite{background:linear-gradient(135deg,#78c9ff,#427ee0);color:#fff}
.btl-tier.boss{background:linear-gradient(135deg,#ff7a88,#c93451);color:#fff}
.btl-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btl-name em{margin-left:auto;font-style:normal;font-size:9px;color:#ffdda1;opacity:.9;
  background:rgba(255,218,143,.1);border-radius:5px;padding:1px 4px}
.btl-bar{position:relative;height:8px;margin-top:4px;border-radius:8px;overflow:hidden;
  background:rgba(255,255,255,.13);box-shadow:inset 0 1px 2px rgba(0,0,0,.2)}
.btl-bar .gh,.btl-bar i{position:absolute;left:0;top:0;height:100%;border-radius:8px;display:block;transition:width .32s ease-out}
.btl-bar .gh{background:rgba(255,255,255,.42)}
.btl-bar-foe i{background:linear-gradient(90deg,#ffb36b,#ff5966 60%,#e6354f);
  box-shadow:0 0 9px rgba(255,75,90,.55)}
.btl-bar-hp i{background:linear-gradient(90deg,#9fe36c,#42b85f 62%,#1f9b52);
  box-shadow:0 0 9px rgba(85,220,115,.42)}
.btl-bar-mp i{background:linear-gradient(90deg,#78cfff,#4385ff 65%,#315be0);
  box-shadow:0 0 9px rgba(80,145,255,.48)}
.btl-num{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#e9f6e6;margin-top:3px;letter-spacing:.2px}
.btl-num.foe{color:#ffe1dc}
.btl-foe .btl-actor,.btl-me .btl-actor{position:relative;display:flex;align-items:flex-end;justify-content:center;
  width:100%;height:100%;min-height:0}
.btl-foe .btl-shadow,.btl-me .btl-shadow{position:absolute;left:50%;bottom:1%;width:55%;height:15px;
  transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,rgba(17,40,28,.52),rgba(17,40,28,0) 70%);
  z-index:1;animation:btlShadow 3.2s ease-in-out infinite}
@keyframes btlShadow{0%,100%{transform:translateX(-50%) scale(.94);opacity:.7}50%{transform:translateX(-50%) scale(1.06);opacity:.9}}
.btl-foe .btl-aura{position:absolute;left:50%;bottom:2%;width:76%;height:62%;transform:translateX(-50%);
  border-radius:50%;background:radial-gradient(ellipse,rgba(255,245,180,.35),rgba(255,245,180,0) 66%);
  filter:blur(2px);animation:btlAura 3s ease-in-out infinite;z-index:0}
.btl-me .btl-aura{position:absolute;left:50%;bottom:2%;width:78%;height:60%;transform:translateX(-50%);
  border-radius:50%;background:radial-gradient(ellipse,rgba(140,230,255,.32),rgba(140,230,255,0) 68%);
  filter:blur(2px);animation:btlAura 2.7s ease-in-out infinite;z-index:0}
@keyframes btlAura{0%,100%{opacity:.55;transform:translateX(-50%) scale(.92)}50%{opacity:1;transform:translateX(-50%) scale(1.07)}}
.btl-foe .btl-face,.btl-me .btl-face{position:relative;z-index:3;display:flex;align-items:flex-end;
  justify-content:center;width:100%;height:100%}
.btl-foe .btl-face{transform:scaleX(-1)}
.btl-me .btl-face{transform:scaleX(-1)}
.btl-foe-img{height:clamp(118px,24vh,202px);max-width:96%;object-fit:contain;transform-origin:50% 100%;
  animation:btlIdleFoe 3.2s ease-in-out infinite;
  filter:drop-shadow(0 12px 14px rgba(12,36,24,.35)) drop-shadow(0 0 3px rgba(255,255,255,.25))}
.btl-foe.boss .btl-foe-img{height:clamp(135px,27vh,224px);
  filter:drop-shadow(0 12px 18px rgba(25,15,25,.42)) drop-shadow(0 0 16px rgba(255,190,110,.26))}
.btl-foe.elite .btl-foe-img{filter:drop-shadow(0 12px 16px rgba(20,32,55,.38)) drop-shadow(0 0 13px rgba(120,205,255,.22))}
.btl-me-img{height:clamp(118px,25vh,205px);max-width:96%;object-fit:contain;transform-origin:50% 100%;
  animation:btlIdleMe 2.8s ease-in-out infinite;
  filter:drop-shadow(0 12px 16px rgba(10,28,25,.4)) drop-shadow(0 0 3px rgba(255,255,255,.22))}
@keyframes btlIdleFoe{0%,100%{transform:translateY(0) rotate(-.7deg)}50%{transform:translateY(-7px) rotate(.8deg)}}
@keyframes btlIdleMe{0%,100%{transform:translateY(0) rotate(.5deg)}50%{transform:translateY(-5px) rotate(-.6deg)}}
.btl-foe.hit .btl-foe-img{animation:btlFoeHit .38s ease-out}
@keyframes btlFoeHit{0%{transform:translate(0,0);filter:none}
  25%{transform:translate(-10px,2px) rotate(-5deg) scale(1.03);filter:brightness(2.4) sepia(1) hue-rotate(-38deg)}
  55%{transform:translate(8px,-2px) rotate(3deg)}100%{transform:none}}
.btl-foe.dodging{animation:btlDodge .42s ease-out}
@keyframes btlDodge{0%,100%{transform:none}45%{transform:translate(22px,-7px) rotate(5deg);opacity:.82}}
.btl-me.hurt .btl-me-img{animation:btlMeHurt .42s ease-out}
@keyframes btlMeHurt{0%{transform:none}22%{transform:translate(10px,3px) rotate(6deg);filter:brightness(2.2) sepia(1) hue-rotate(-38deg)}
  48%{transform:translate(-8px,1px) rotate(-4deg)}100%{transform:none}}
.btl-me.cast .btl-me-img{animation:btlCast .7s ease-in-out infinite}
@keyframes btlCast{0%,100%{filter:drop-shadow(0 0 6px rgba(255,222,140,.35))}
  50%{filter:drop-shadow(0 0 22px rgba(255,229,150,.95)) drop-shadow(0 12px 16px rgba(10,28,25,.4))}}
.btl-me.guard .btl-me-img{filter:drop-shadow(0 0 20px rgba(108,196,255,.85)) drop-shadow(0 12px 16px rgba(10,28,25,.4))}
.btl-me.cheer .btl-me-img{animation:btlCheer .7s ease-out}
@keyframes btlCheer{0%,100%{transform:translateY(0) scale(1)}30%{transform:translateY(-14px) scale(1.04) rotate(-3deg)}
  60%{transform:translateY(-4px) scale(1.02) rotate(2deg)}}
.btl-me.down .btl-me-img,.btl-foe.down .btl-foe-img{animation:btlDown .8s ease-in forwards}
@keyframes btlDown{to{opacity:.25;transform:translateY(14px) rotate(-12deg) scale(.86);filter:grayscale(1)}}
.btl-foe.down .btl-aura,.btl-me.down .btl-aura{animation:none;opacity:0}
.btl-foe.atk .btl-foe-img{animation:btlFoeAtk .5s cubic-bezier(.2,.7,.3,1)}
@keyframes btlFoeAtk{0%,100%{transform:none}40%{transform:translateY(30px) scale(1.12) rotate(-5deg)}70%{transform:translateY(10px) scale(1.04) rotate(2deg)}}

/* 编队小弟：主单位侧翼后排，体型缩小 */
.btl-foe.add{position:absolute;z-index:3}
.btl-foe.add.a1{right:33%;top:15%;width:30%;height:48%}
.btl-foe.add.a2{right:10%;top:24%;width:27%;height:42%}
.btl-foe.add .btl-hud{padding:3px 6px 4px;margin-bottom:4px}
.btl-foe.add .btl-name{font-size:9.5px}
.btl-foe.add .btl-foe-img{height:clamp(72px,15vh,118px)}
.btl-foe.add .btl-shadow{width:48%;height:11px}

.btl-cap{position:absolute;left:50%;top:2px;transform:translateX(-50%);z-index:9;max-width:88%;
  padding:4px 14px;border-radius:16px;line-height:1.3;background:linear-gradient(180deg,rgba(11,34,32,.9),rgba(7,23,22,.8));
  border:1px solid rgba(255,224,150,.55);box-shadow:0 6px 18px rgba(0,0,0,.24);
  color:#ffecb7;font-size:12px;font-weight:800;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  opacity:0;transition:opacity .2s;pointer-events:none}
.btl-cap.show{opacity:1;animation:btlCapIn .32s ease-out}
@keyframes btlCapIn{from{transform:translate(-50%,-6px) scale(.96);opacity:0}to{transform:translate(-50%,0) scale(1);opacity:1}}
.btl-log{position:absolute;left:9px;top:52px;z-index:6;width:min(188px,43vw);max-height:88px;overflow:hidden;
  padding:5px 8px 6px;border-radius:9px;background:rgba(4,23,23,.58);border-left:3px solid rgba(255,221,142,.65);
  box-shadow:0 6px 16px rgba(0,0,0,.16);pointer-events:none;color:#e0f4e2;font-size:10px;line-height:1.45}
.btl-log b{display:block;font-size:9px;letter-spacing:1px;color:#ffe6a6;opacity:.9;margin-bottom:2px}
.btl-log-line{opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btl-log-line.me{color:#d9ffe0}.btl-log-line.foe{color:#ffd6d4}.btl-log-line.warn{color:#ffe6a0}.btl-log-line.miss{color:#bfe8ff}
.btl-ord{display:none;position:absolute;right:9px;top:52px;z-index:6;align-items:center;gap:4px;
  padding:3px 8px;border-radius:10px;background:rgba(4,23,23,.55);border:1px solid rgba(255,225,155,.25);
  font-size:9.5px;color:#dff5df;pointer-events:none}
.btl-ord b{color:#ffe29b;font-size:10px}
.btl-intro{position:absolute;inset:0;z-index:12;display:flex;align-items:center;justify-content:center;
  pointer-events:none;background:radial-gradient(ellipse at 50% 50%,rgba(5,20,20,.18),rgba(5,20,20,0) 60%)}
.btl-intro.out{animation:btlIntroOut .65s ease-in forwards}
@keyframes btlIntroOut{to{opacity:0;transform:scale(1.04)}}
.btl-intro-box{display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px 32px;
  border:1px solid rgba(255,230,160,.55);border-radius:16px;background:linear-gradient(180deg,rgba(9,31,29,.9),rgba(7,22,22,.82));
  box-shadow:0 12px 34px rgba(0,0,0,.28);animation:btlIntroIn .55s cubic-bezier(.2,.8,.3,1)}
.btl-intro-box span{font-size:11px;color:#ffe3a0;letter-spacing:2px}
.btl-intro-box b{font-size:22px;font-weight:900;color:#fff4d3;text-shadow:0 2px 8px rgba(0,0,0,.35)}
.btl-intro-box i{font-style:normal;font-size:10px;color:#a7c9b9;letter-spacing:3px}
@keyframes btlIntroIn{from{opacity:0;transform:translateY(12px) scale(.92)}to{opacity:1;transform:none}}

.btl-fx{position:absolute;inset:0;z-index:11;pointer-events:none;overflow:hidden}
.btl-flash{position:absolute;inset:0;z-index:13;background:radial-gradient(circle at 50% 50%,rgba(255,247,212,.9),rgba(255,185,105,.38) 45%,rgba(255,120,80,.1));
  opacity:0;transition:opacity .2s;pointer-events:none}
.btl-stage.shk{animation:btlShake .36s}
.btl-stage.shk2{animation:btlShake2 .46s}
@keyframes btlShake{0%,100%{transform:none}25%{transform:translate(-5px,3px)}50%{transform:translate(4px,-2px)}75%{transform:translate(-2px,1px)}}
@keyframes btlShake2{0%,100%{transform:none}15%{transform:translate(-8px,4px) rotate(-.3deg)}
  35%{transform:translate(7px,-4px) rotate(.3deg)}55%{transform:translate(-5px,2px)}75%{transform:translate(3px,-1px)}}
.btl-orb{position:absolute;z-index:12;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;
  background:radial-gradient(circle,#fffdf0,#ffe08b 35%,rgba(255,150,70,.75) 65%,rgba(255,120,50,0));
  box-shadow:0 0 18px rgba(255,211,120,.9);pointer-events:none}
.btl-orb.ult{width:24px;height:24px;margin:-12px 0 0 -12px;background:
  radial-gradient(circle,#fff 0%,#bfeaff 30%,#6c9dff 62%,rgba(90,120,255,0));box-shadow:0 0 26px rgba(125,190,255,.95)}
.btl-shield{position:absolute;z-index:11;width:150px;height:150px;margin:-75px 0 0 -75px;border-radius:50%;
  border:2px solid rgba(140,215,255,.7);background:radial-gradient(circle,rgba(110,190,255,.15),rgba(110,190,255,0) 65%);
  box-shadow:0 0 22px rgba(120,205,255,.55),inset 0 0 22px rgba(120,205,255,.24);pointer-events:none;
  animation:btlShield .8s ease-out forwards}
@keyframes btlShield{0%{transform:scale(.55);opacity:0}35%{opacity:1}100%{transform:scale(1.2);opacity:0}}

.btl-cmd{position:relative;z-index:20;flex:0 0 auto;padding:7px 10px calc(9px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(5,20,21,.78),#07191b 40%,#061416);
  border-top:1px solid rgba(255,221,150,.32);box-shadow:0 -8px 28px rgba(0,0,0,.25)}
.btl-cmd.off{display:none}
.btl-cmd-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px 6px}
.btl-cmd-top span{font-size:11px;color:#ffe4a7;font-weight:800;letter-spacing:1px}
.btl-cmd-top em{font-style:normal;font-size:10px;color:#9fc8b6}
.btl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.btl-grid button{position:relative;min-height:62px;border:1px solid rgba(255,226,160,.28);border-radius:12px;
  background:linear-gradient(180deg,rgba(30,67,59,.88),rgba(12,39,39,.9));color:#effff1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:5px 3px 4px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 3px 8px rgba(0,0,0,.18);overflow:hidden}
.btl-grid button b{font-size:20px;line-height:1.05;font-weight:400;filter:drop-shadow(0 2px 3px rgba(0,0,0,.2))}
.btl-grid button span{font-size:12px;font-weight:900;letter-spacing:.5px}
.btl-grid button i{font-style:normal;font-size:9px;opacity:.68;letter-spacing:.2px}
.btl-grid button.atk{background:linear-gradient(180deg,#d9a84d,#b67c27);border-color:#f4d98c;color:#2b1a07}
.btl-grid button.heavy{background:linear-gradient(180deg,#d86f51,#ad3e33);border-color:#f0a68a}
.btl-grid button.guard{background:linear-gradient(180deg,#4e8fb2,#28617e);border-color:#98cbe0}
.btl-grid button.ult{background:linear-gradient(180deg,#7c71d8,#4b48a8);border-color:#c3baff}
.btl-grid button.auto{background:linear-gradient(180deg,#54a76a,#266d46);border-color:#9ed7a8}
.btl-grid button.run{background:linear-gradient(180deg,#536a6b,#2f4547);border-color:#a9c3bb}
.btl-grid button:active{transform:scale(.96);filter:brightness(1.12)}
.btl-grid button[data-act].lowmp{opacity:.42}
.btl-grid button:disabled{opacity:.38}
@media(max-height:690px){
  .btl-log{max-height:60px;font-size:9px;top:48px}
  .btl-grid button{min-height:54px}.btl-grid button b{font-size:18px}
  .btl-foe-img,.btl-me-img{height:clamp(100px,21vh,170px)}
}
@media(max-width:370px){
  .btl-log{display:none}.btl-hud{width:92%}.btl-grid button span{font-size:11px}
  .btl-stage .btl-foe{right:1%;width:58%}.btl-stage .btl-me{left:1%;width:58%}
}

/* 结算 */
.btl-res-wrap{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;
  padding:18px;background:radial-gradient(ellipse at 50% 50%,rgba(4,20,20,.28),rgba(4,20,20,.62));
  pointer-events:none}
.btl-res-wrap:empty{display:none}
.btl-result-card{position:relative;width:min(324px,88vw);padding:18px 18px 15px;pointer-events:auto;
  border-radius:15px;border:1px solid rgba(255,225,154,.6);
  background:linear-gradient(180deg,rgba(17,48,44,.98),rgba(8,26,28,.98));
  box-shadow:0 18px 44px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.14);
  animation:btlResIn .42s cubic-bezier(.2,.8,.3,1) both}
@keyframes btlResIn{from{opacity:0;transform:translateY(16px) scale(.94)}to{opacity:1;transform:none}}
.btl-result-card.win{border-color:rgba(255,221,142,.75);box-shadow:0 18px 44px rgba(0,0,0,.38),0 0 26px rgba(255,208,110,.18)}
.btl-result-card.lose{border-color:rgba(150,180,190,.42)}
.btl-res-ribbon{font-size:9px;letter-spacing:4px;color:#ffe39a;text-align:center;opacity:.75}
.btl-res-title{margin-top:3px;text-align:center;font-size:21px;font-weight:900;color:#fff2c6;
  text-shadow:0 2px 8px rgba(0,0,0,.35)}
.btl-result-card.lose .btl-res-title{color:#dfe9e9}
.btl-res-sub{margin:7px 0 10px;text-align:center;font-size:12px;line-height:1.5;color:#cfe4d8}
.btl-res-rewards{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding:8px 10px;
  border-radius:10px;background:rgba(255,245,205,.08);border:1px solid rgba(255,235,180,.14);
  font-size:11px;color:#dff2df}
.btl-res-rewards b{color:#ffe49c;font-size:13px}
.btl-drop-list{margin-top:9px;padding:7px 10px;border-radius:9px;background:rgba(255,255,255,.05);
  max-height:92px;overflow:auto}
.btl-drop{display:flex;align-items:center;gap:6px;font-size:11px;color:#e5f5e8;line-height:1.6}
.btl-drop b{font-size:12px;width:16px;text-align:center}
.btl-res-btns{display:flex;gap:8px;margin-top:13px}
.btl-res-btns .btn{flex:1;min-height:38px;font-size:12.5px;font-weight:900}
.btl-res-btns .btn:first-child{background:linear-gradient(180deg,#f2c86a,#cf9130);color:#2c1b05;border-color:#ffe6a2}
.btl-res-btns .btn.line{background:rgba(255,255,255,.08);color:#e9f7ea;border-color:rgba(255,255,255,.24)}
