.hxsj-battle-animation-shell {
  --hxsj-ba-card-transition: 160ms;
  --hxsj-ba-avatar-transition: 220ms;
  --hxsj-ba-bar-transition: 340ms;
  --hxsj-ba-dash-duration: 680ms;
  --hxsj-ba-cast-duration: 680ms;
  --hxsj-ba-hit-duration: 340ms;
  --hxsj-ba-healed-duration: 520ms;
  --hxsj-ba-float-duration: 1500ms;
  --hxsj-ba-slash-duration: 360ms;
  --hxsj-ba-projectile-duration: 420ms;
  --hxsj-ba-burst-duration: 480ms;
  --hxsj-ba-heal-ring-duration: 740ms;
  --hxsj-ba-aoe-duration: 620ms;
  --hxsj-ba-start-duration: 1050ms;
  --hxsj-ba-ult-duration: 980ms;
  --hxsj-ba-result-duration: 420ms;
  --hxsj-ba-shake-duration: 320ms;
  width: 100%;
  max-width: 760px;
  margin: 12px auto;
  box-sizing: border-box;
}

.hxsj-battle-animation,
.hxsj-battle-animation * {
  box-sizing: border-box;
}

.hxsj-battle-animation {
  color: #d5deef;
  font-family: "Noto Sans SC", "Microsoft YaHei", Inter, Arial, sans-serif;
}

.hxsj-ba-stage {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid #2a3045;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(245, 158, 11, .12), transparent 58%),
    linear-gradient(180deg, rgba(10, 12, 20, .48), rgba(10, 12, 20, .96)),
    url("image/other/bg_map30.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
  isolation: isolate;
}

.hxsj-ba-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 8px;
  align-items: stretch;
}

.hxsj-ba-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(251, 191, 36, .12), transparent 24%),
    radial-gradient(circle at 50% 73%, rgba(96, 165, 250, .06), transparent 26%),
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(148, 163, 184, .018) 51px),
    linear-gradient(180deg, rgba(13, 15, 26, .74), rgba(18, 21, 31, .30) 42%, rgba(10, 12, 20, .78));
  pointer-events: none;
}

.hxsj-ba-stage::after {
  content: "";
  position: absolute;
  inset: 31% 0 auto 0;
  z-index: 0;
  height: 31%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 155, 64, .24), transparent 26%),
    radial-gradient(ellipse at center, rgba(8, 8, 14, .42), rgba(8, 8, 14, 0) 69%);
  pointer-events: none;
}

.hxsj-ba-topbar {
  position: relative;
  z-index: 16;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 16px 0;
}

.hxsj-ba-team-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffe3a1;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .75);
  white-space: nowrap;
}

.hxsj-ba-team-title span:last-child,
.hxsj-ba-team-title span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hxsj-ba-team-title-enemy {
  justify-content: flex-end;
  color: #ffd3d3;
}

.hxsj-ba-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4c76b;
  box-shadow: 0 0 14px rgba(244, 199, 107, .9);
}

.hxsj-ba-team-title-enemy .hxsj-ba-dot {
  background: #ef746d;
  box-shadow: 0 0 14px rgba(239, 116, 109, .85);
}

.hxsj-ba-center {
  display: grid;
  min-width: 98px;
  max-width: 138px;
  min-height: 34px;
  padding: 7px 12px;
  place-items: center;
  border: 1px solid #2a3045;
  border-radius: 4px;
  background: rgba(26, 30, 46, .86);
  box-shadow: none;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hxsj-ba-team {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 12;
  display: grid;
  grid-template-rows: repeat(2, auto);
  gap: 8px;
  align-content: center;
  justify-items: center;
}

.hxsj-ba-team-team1 {
  top: 82px;
}

.hxsj-ba-team-team0 {
  bottom: 72px;
}

.hxsj-ba-lane {
  position: relative;
  width: 100%;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
}

.hxsj-ba-lane-back {
  transform: scale(.92);
  opacity: .94;
}

.hxsj-ba-card {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  min-height: 102px;
  padding: 0;
  border: 0;
  background: none;
  transform-origin: center bottom;
  transition:
    transform var(--hxsj-ba-card-transition, 160ms) ease,
    filter var(--hxsj-ba-card-transition, 160ms) ease,
    opacity var(--hxsj-ba-card-transition, 160ms) ease;
}

.hxsj-ba-card-inner {
  position: relative;
  display: flex;
  min-height: 102px;
  flex-direction: column;
  align-items: center;
}

.hxsj-ba-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 2px solid rgba(255, 220, 84, .58);
  border-radius: 12px;
  background: rgba(12, 12, 22, .88);
  box-shadow: 0 0 14px rgba(255, 215, 0, .18), 0 3px 12px rgba(0, 0, 0, .54);
}

.hxsj-ba-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1);
  transition: transform var(--hxsj-ba-avatar-transition, 220ms) ease;
}

.hxsj-ba-avatar.is-missing::before {
  content: "?";
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 238, 178, .86);
  font-size: 24px;
  font-weight: 900;
}

.hxsj-ba-badge {
  position: absolute;
  top: 1px;
  left: 1px;
  max-width: 48px;
  overflow: hidden;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(14, 12, 17, .72);
  color: #ffe36f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hxsj-ba-mark {
  position: absolute;
  right: 1px;
  bottom: 1px;
  max-width: 34px;
  overflow: hidden;
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(255, 215, 0, .72);
  color: #1d1308;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hxsj-ba-name {
  width: 76px;
  margin-top: 4px;
  overflow: hidden;
  color: #fff2c6;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .92);
  white-space: nowrap;
}

.hxsj-ba-bars {
  width: 76px;
  padding-top: 3px;
}

.hxsj-ba-bar {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(0, 0, 0, .45);
}

.hxsj-ba-bar + .hxsj-ba-bar {
  margin-top: 2px;
}

.hxsj-ba-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width var(--hxsj-ba-bar-transition, 340ms) ease;
}

.hxsj-ba-bar-hp .hxsj-ba-bar-fill {
  background: linear-gradient(90deg, #22c55e, #2dd4bf);
}

.hxsj-ba-bar-sp .hxsj-ba-bar-fill {
  background: linear-gradient(90deg, #f97316, #facc15);
}

.hxsj-ba-bar.is-hidden .hxsj-ba-bar-fill {
  background: repeating-linear-gradient(45deg, #6e6256 0, #6e6256 5px, #8b7a66 5px, #8b7a66 10px);
}

.hxsj-ba-bar-label {
  display: none;
}

.hxsj-ba-shadow {
  position: absolute;
  inset: auto 8px 30px 8px;
  z-index: -1;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .46);
  filter: blur(5px);
}

.hxsj-ba-card.is-acting {
  z-index: 10;
  filter: drop-shadow(0 0 18px rgba(255, 213, 80, .72));
}

.hxsj-ba-card.is-acting .hxsj-ba-avatar img {
  transform: scale(1.12);
}

.hxsj-ba-card.is-targeted {
  z-index: 9;
  filter: drop-shadow(0 0 18px rgba(255, 84, 70, .62));
}

.hxsj-ba-card.is-dead {
  opacity: .15;
  filter: grayscale(1) blur(1px);
  transform: scale(.82);
}

.hxsj-ba-card.is-dashing {
  z-index: 28;
  filter: drop-shadow(0 0 22px rgba(255, 226, 119, .86));
  animation: hxsjBaDash var(--hxsj-ba-dash-duration, 680ms) cubic-bezier(.2, .92, .18, 1) both;
}

.hxsj-ba-card.is-dashing .hxsj-ba-shadow {
  animation: hxsjBaDashShadow var(--hxsj-ba-dash-duration, 680ms) cubic-bezier(.2, .92, .18, 1) both;
}

.hxsj-ba-card.is-casting {
  animation: hxsjBaCast var(--hxsj-ba-cast-duration, 680ms) ease both;
}

.hxsj-ba-card.is-hit {
  animation: hxsjBaHit var(--hxsj-ba-hit-duration, 340ms) ease both;
}

.hxsj-ba-card.is-healed {
  animation: hxsjBaHealed var(--hxsj-ba-healed-duration, 520ms) ease both;
}

.hxsj-ba-vs {
  position: absolute;
  top: 47%;
  left: 0;
  right: 0;
  z-index: 13;
  transform: translateY(-50%);
  color: #ff8d35;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 107, 53, .58);
}

.hxsj-ba-vs::before,
.hxsj-ba-vs::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin: 0 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, .38), transparent);
}

.hxsj-ba-effect-layer {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.hxsj-ba-float {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 22;
  color: #ffef9c;
  font-size: 26px;
  font-weight: 900;
  text-shadow: 0 3px 6px #000, 0 0 18px currentColor;
  transform: translate(-50%, -50%);
  animation: hxsjBaFloat var(--hxsj-ba-float-duration, 1500ms) ease-out forwards;
  white-space: nowrap;
}

.hxsj-ba-float-damage {
  color: #ffef9c;
}

.hxsj-ba-float-heal {
  color: #a9ffd0;
}

.hxsj-ba-float-sp,
.hxsj-ba-float-status {
  color: #b9c8ff;
  font-size: 18px;
}

.hxsj-ba-slash {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 20;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff7c7, #ff6e4f, transparent);
  box-shadow: 0 0 18px rgba(255, 239, 160, .88);
  transform: translate(-50%, -50%) rotate(var(--angle, -18deg));
  animation: hxsjBaSlash var(--hxsj-ba-slash-duration, 360ms) ease-out forwards;
}

.hxsj-ba-projectile {
  position: absolute;
  left: var(--x1);
  top: var(--y1);
  z-index: 20;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9be 0 22%, #ffc94b 36%, rgba(255, 108, 65, .1) 72%);
  box-shadow: 0 0 18px #ffc94b, 0 0 36px rgba(255, 108, 65, .8);
  transform: translate(-50%, -50%);
  animation: hxsjBaProjectile var(--hxsj-ba-projectile-duration, 420ms) cubic-bezier(.17, .84, .28, 1) forwards;
}

.hxsj-ba-burst {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 19;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 233, 145, .86);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2);
  animation: hxsjBaBurst var(--hxsj-ba-burst-duration, 480ms) ease-out forwards;
}

.hxsj-ba-heal-ring {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 19;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(113, 232, 168, .78);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(113, 232, 168, .5);
  transform: translate(-50%, -50%) scale(.18);
  animation: hxsjBaHealRing var(--hxsj-ba-heal-ring-duration, 740ms) ease-out forwards;
}

.hxsj-ba-aoe {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 18;
  width: 58%;
  height: 30%;
  border: 3px solid rgba(255, 221, 113, .72);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 94, .28), transparent 66%);
  transform: translate(-50%, -50%) scale(.1);
  animation: hxsjBaAoe var(--hxsj-ba-aoe-duration, 620ms) ease-out forwards;
}

.hxsj-ba-start {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 122, 53, .18), transparent 34%),
    rgba(0, 0, 0, .18);
  pointer-events: none;
}

.hxsj-ba-start.is-show {
  display: grid;
}

.hxsj-ba-start span {
  color: #fff;
  font-size: 58px;
  font-weight: 900;
  text-shadow: 0 0 28px #ff7a35, 0 0 55px rgba(255, 107, 53, .48);
  animation: hxsjBaBattleStart var(--hxsj-ba-start-duration, 1050ms) ease forwards;
}

.hxsj-ba-skill-banner {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 211, 72, .24), rgba(0, 0, 0, .78) 68%);
  color: #fff4cf;
  text-align: center;
  text-shadow: 0 2px 8px #000;
  opacity: 0;
  pointer-events: none;
}

.hxsj-ba-skill-banner.is-show {
  animation: hxsjBaUltOverlay var(--hxsj-ba-ult-duration, 980ms) ease both;
}

.hxsj-ba-skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -42px;
}

.hxsj-ba-skill-portrait {
  width: 142px;
  height: 174px;
  object-fit: contain;
  object-position: center bottom;
  border: 3px solid #ffd700;
  border-radius: 14px;
  background: rgba(10, 10, 18, .9);
  box-shadow: 0 0 34px rgba(255, 215, 0, .48), 0 12px 34px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: scale(.5);
}

.hxsj-ba-skill-portrait.is-missing {
  object-fit: none;
}

.hxsj-ba-skill-banner.is-show .hxsj-ba-skill-portrait {
  animation: hxsjBaUltPortrait var(--hxsj-ba-ult-duration, 980ms) cubic-bezier(.34, 1.56, .64, 1) both;
}

.hxsj-ba-skill-banner strong {
  display: block;
  margin-top: 24px;
  color: #ffd700;
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
  opacity: 0;
  text-shadow: 0 0 22px rgba(255, 215, 0, .72), 0 3px 8px rgba(0, 0, 0, .88);
  transform: translateY(15px);
}

.hxsj-ba-skill-banner.is-show strong {
  animation: hxsjBaUltText var(--hxsj-ba-ult-duration, 980ms) ease both;
}

.hxsj-ba-skill-banner span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 230, 122, .86);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
}

.hxsj-ba-skill-banner.is-show span {
  animation: hxsjBaUltSub var(--hxsj-ba-ult-duration, 980ms) ease both;
}

.hxsj-ba-result-layer {
  position: absolute;
  inset: 0;
  z-index: 42;
  display: none;
  place-items: center;
  background: radial-gradient(circle, rgba(28, 18, 12, .48), rgba(7, 7, 12, .82));
  text-align: center;
}

.hxsj-ba-result-layer.is-show {
  display: grid;
  animation: hxsjBaResultFade var(--hxsj-ba-result-duration, 420ms) ease both;
}

.hxsj-ba-result-panel {
  display: flex;
  min-width: min(320px, calc(100% - 32px));
  flex-direction: column;
  align-items: center;
}

.hxsj-ba-result-layer h1 {
  margin: 0;
  color: #fff1bb;
  font-size: clamp(54px, 16vw, 104px);
  line-height: .92;
  letter-spacing: 0;
  text-shadow: 0 7px 0 rgba(95, 48, 24, .75), 0 0 34px rgba(244, 199, 107, .72);
}

.hxsj-ba-result-layer p {
  margin: 12px 0 0;
  color: #f3d49b;
  font-size: 16px;
  font-weight: 900;
}

.hxsj-ba-result-back {
  min-width: 144px;
  min-height: 44px;
  margin-top: 28px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 222, 139, .72);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(91, 63, 33, .96), rgba(48, 31, 22, .98));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 245, 204, .16);
  color: #fff1bb;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
}

.hxsj-ba-result-back:hover {
  border-color: #ffe5a0;
  background: linear-gradient(180deg, rgba(117, 81, 40, .98), rgba(59, 37, 24, .98));
}

.hxsj-ba-result-back:focus-visible {
  outline: 3px solid rgba(255, 218, 121, .42);
  outline-offset: 3px;
}

.hxsj-ba-result-back:active {
  transform: translateY(1px);
}

.hxsj-ba-live-log {
  min-width: 0;
  min-height: 0;
  height: 720px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #2a3045;
  border-radius: 8px;
  background: #0d0f1a;
  color: #d5deef;
}

.hxsj-ba-live-title {
  flex: 0 0 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 0 12px;
  border-bottom: 1px solid #2a3045;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
}

.hxsj-ba-report-btn {
  appearance: none;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(245, 158, 11, .62);
  border-radius: 999px;
  background: rgba(245, 158, 11, .10);
  color: #fbbf24;
  font-family: "Noto Sans SC", "Microsoft YaHei", Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
}

.hxsj-ba-report-btn:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, .18);
  color: #fde68a;
}

.hxsj-ba-live-list {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: #475569 #111827;
  scrollbar-width: thin;
}

.hxsj-ba-live-list li + li {
  margin-top: 6px;
}

.hxsj-ba-live-item {
  appearance: none;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #2a3045;
  border-left: 3px solid #334155;
  border-radius: 6px;
  background: rgba(26, 30, 46, .62);
  color: #94a3b8;
  font-family: "Noto Sans SC", "Microsoft YaHei", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.hxsj-ba-live-item.is-done {
  border-left-color: rgba(245, 158, 11, .5);
  color: #d5deef;
}

.hxsj-ba-live-item.is-current {
  border-color: rgba(245, 158, 11, .72);
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, .14);
  color: #fbbf24;
}

.hxsj-ba-live-item.is-pending {
  opacity: .72;
}

.hxsj-ba-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #2a3045;
  border-radius: 8px;
  background: #0d0f1a;
  box-shadow: none;
}

.hxsj-ba-controls.has-battle-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(70px, auto);
}

.hxsj-ba-action-form {
  min-width: 0;
  margin: 0;
}

.hxsj-ba-action-btn {
  appearance: none;
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(245, 158, 11, .72);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(245, 158, 11, .18), rgba(146, 64, 14, .18));
  color: #fbbf24;
  font-family: "Noto Sans SC", "Microsoft YaHei", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 30px;
  white-space: nowrap;
  cursor: pointer;
}

.hxsj-ba-action-btn:hover {
  border-color: #f59e0b;
  background: linear-gradient(180deg, rgba(245, 158, 11, .28), rgba(146, 64, 14, .24));
  color: #fde68a;
}

.hxsj-ba-action-btn:disabled {
  border-color: #2a3045;
  background: #151927;
  color: #64748b;
  cursor: not-allowed;
}

.hxsj-ba-btn,
.hxsj-ba-speed {
  min-height: 32px;
  border: 1px solid #2a3045;
  border-radius: 4px;
  background: #1a1e2e;
  color: #d5deef;
  padding: 0 9px;
  font-family: "Noto Sans SC", "Microsoft YaHei", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.hxsj-ba-btn.is-primary {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
}

.hxsj-ba-btn:hover,
.hxsj-ba-speed:hover {
  border-color: #f59e0b;
  color: #fbbf24;
  filter: none;
}

.hxsj-ba-btn:disabled {
  border-color: #2a3045;
  background: #151927;
  color: #64748b;
  cursor: not-allowed;
}

.hxsj-battle-log-original {
  margin-top: 12px;
  border: 1px solid rgba(223, 187, 105, .28);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, .12);
}

.hxsj-battle-log-original summary {
  cursor: pointer;
  color: #ffe0a0;
  font-weight: 700;
}

.hxsj-game-content-panel .hxsj-battle-animation-shell {
  max-width: min(100%, 920px);
  margin: 0 auto 14px;
}

.hxsj-game-content-panel .hxsj-ba-stage {
  min-height: 640px;
  height: clamp(640px, 72vh, 760px);
}

.hxsj-game-content-panel .hxsj-ba-live-log {
  height: clamp(640px, 72vh, 760px);
}

.hxsj-game-content-panel .hxsj-ba-team-team1 {
  top: 70px;
}

.hxsj-game-content-panel .hxsj-ba-team-team0 {
  bottom: 58px;
}

.hxsj-ba-stage.is-shake {
  animation: hxsjBaCameraShake var(--hxsj-ba-shake-duration, 320ms) ease;
}

@keyframes hxsjBaDash {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
  }
  14% {
    transform: translate3d(var(--windup-x, 0px), var(--windup-y, -14px), 0) scale(1.06) rotate(var(--windup-tilt, -4deg));
  }
  42%, 54% {
    transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(1.14) rotate(var(--tilt, 6deg));
  }
  64% {
    transform: translate3d(var(--recoil-x, 0px), var(--recoil-y, 0px), 0) scale(1.06) rotate(0);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
  }
}

@keyframes hxsjBaDashShadow {
  0%, 100% {
    opacity: 1;
    transform: scaleX(1);
  }
  14% {
    opacity: .72;
    transform: scaleX(.74);
  }
  42%, 54% {
    opacity: .52;
    transform: scaleX(1.36);
  }
}

@keyframes hxsjBaCast {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  45% { transform: translate3d(0, -12px, 0) scale(1.04); }
}

@keyframes hxsjBaHit {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-8px, 0, 0); }
  50% { transform: translate3d(7px, 0, 0); }
  75% { transform: translate3d(-4px, 0, 0); }
}

@keyframes hxsjBaHealed {
  0%, 100% { filter: none; transform: translate3d(0, 0, 0); }
  45% { filter: drop-shadow(0 0 18px rgba(113, 232, 168, .8)); transform: translate3d(0, -5px, 0); }
}

@keyframes hxsjBaFloat {
  0% { opacity: 1; transform: translate(-50%, -20%) scale(.8); }
  10% { opacity: 1; transform: translate(-50%, -45%) scale(1.35); }
  60% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(1); }
}

@keyframes hxsjBaSlash {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle, -18deg)) scaleX(.15); }
  45% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle, -18deg)) scaleX(1.25); }
}

@keyframes hxsjBaProjectile {
  to {
    left: var(--x2);
    top: var(--y2);
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
  }
}

@keyframes hxsjBaBurst {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

@keyframes hxsjBaHealRing {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.18); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -58%) scale(1.25); }
}

@keyframes hxsjBaAoe {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.1); }
  35% { opacity: .95; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); }
}

@keyframes hxsjBaBattleStart {
  0% { opacity: 0; transform: scale(2) rotate(-5deg); }
  25%, 72% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(.82); }
}

@keyframes hxsjBaUltOverlay {
  0% { opacity: 0; }
  12%, 72% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes hxsjBaUltPortrait {
  0% { opacity: 0; transform: scale(.5); }
  18%, 72% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}

@keyframes hxsjBaUltText {
  0%, 12% { opacity: 0; transform: translateY(15px); }
  25%, 74% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes hxsjBaUltSub {
  0%, 18% { opacity: 0; }
  32%, 76% { opacity: .86; }
  100% { opacity: 0; }
}

@keyframes hxsjBaResultFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hxsjBaCameraShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-6px, 2px, 0); }
  40% { transform: translate3d(6px, -2px, 0); }
  60% { transform: translate3d(-4px, -1px, 0); }
  80% { transform: translate3d(4px, 1px, 0); }
}

@media (max-width: 760px) {
  .hxsj-ba-viewer {
    grid-template-columns: minmax(0, 1fr);
  }

  .hxsj-ba-live-log {
    height: 220px;
  }
}

@media (max-width: 700px) {
  .hxsj-battle-animation-shell {
    max-width: none;
    margin: 8px 0;
  }

  .hxsj-game-content-panel .hxsj-battle-animation-shell {
    margin: 0 0 10px;
  }

  .hxsj-ba-stage {
    min-height: 720px;
    border-radius: 0;
  }

  .hxsj-game-content-panel .hxsj-ba-stage {
    min-height: 640px;
    height: 640px;
    border-radius: 8px;
  }

  .hxsj-ba-topbar {
    padding: 10px 8px 0;
    gap: 6px;
  }

  .hxsj-ba-team-title {
    gap: 5px;
    font-size: 12px;
  }

  .hxsj-ba-center {
    min-width: 82px;
    max-width: 114px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .hxsj-ba-team {
    left: 8px;
    right: 8px;
  }

  .hxsj-ba-team-team1 {
    top: 72px;
  }

  .hxsj-ba-team-team0 {
    bottom: 64px;
  }

  .hxsj-ba-lane {
    min-height: 100px;
    gap: 8px;
  }

  .hxsj-ba-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 8px 10px 0;
  }

  .hxsj-ba-controls.has-battle-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
  }

  .hxsj-ba-btn,
  .hxsj-ba-speed {
    width: 100%;
  }

  .hxsj-ba-speed {
    grid-column: 1 / -1;
  }

  .hxsj-ba-controls.has-battle-actions .hxsj-ba-speed {
    grid-column: auto;
    min-width: 0;
    padding: 0 4px;
    font-size: 11px;
  }

  .hxsj-ba-controls.has-battle-actions .hxsj-ba-action-btn {
    min-height: 30px;
    padding: 0 4px;
    font-size: 11px;
    line-height: 28px;
  }

  .hxsj-ba-vs {
    top: 46%;
  }
}
