.mx-battle-upgrades {
  position: fixed;
  z-index: 110;
  width: 1080px;
  height: 472px;
  transform-origin: top left;
  color: #264d40;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  pointer-events: auto;
}
.mx-battle-upgrades[hidden] { display: none; }
.mx-battle-upgrades *, .mx-battle-upgrades::before { box-sizing: border-box; letter-spacing: 0; }
.mx-battle-upgrades::before {
  content: "";
  position: absolute;
  inset: 0;
  border: solid transparent;
  border-width: 23px 48px;
  border-image: url('assets/panel.png') 60 128 60 128 fill / 23px 48px stretch;
  pointer-events: none;
}
.mx-battle-upgrades button { color: inherit; font: inherit; cursor: pointer; }
.mx-battle-upgrades button:focus-visible { outline: 4px solid #b26721; outline-offset: -4px; }
.mx-battle-tabs { position: absolute; top: 7px; left: 0; width: 1080px; height: 97px; pointer-events: none; }
.mx-battle-tab {
  position: absolute;
  top: 0;
  height: 97px;
  padding: 0;
  border: 0;
  background: url('assets/normal-tab.png') center / 100% 100% no-repeat;
  color: #173f39;
  font-size: 42px !important;
  font-weight: 700 !important;
  pointer-events: auto;
}
.mx-battle-tab[aria-selected="true"] { background-image: url('assets/selected-tab.png'); }
.mx-battle-tab:nth-child(1) { left: 32px; width: 350px; }
.mx-battle-tab:nth-child(2) { left: 381px; width: 326px; }
.mx-battle-tab:nth-child(3) { left: 702px; width: 349px; }
.mx-battle-tab img, .mx-battle-tab span { position: absolute; display: block; }
.mx-battle-tab img { object-fit: contain; }
.mx-battle-tab span { top: 13px; width: 120px; height: 72px; line-height: 72px; text-align: center; white-space: nowrap; }
.mx-battle-tab:nth-child(1) img { left: 104px; top: 18px; width: 62px; height: 64px; }
.mx-battle-tab:nth-child(2) img { left: 84px; top: 17px; width: 59px; height: 65px; }
.mx-battle-tab:nth-child(3) img { left: 83px; top: 18px; width: 71px; height: 67px; }
.mx-battle-tab:nth-child(1) span { left: 168px; }
.mx-battle-tab:nth-child(2) span { left: 146px; }
.mx-battle-tab:nth-child(3) span { left: 162px; }
.mx-battle-list {
  position: absolute;
  top: 113px;
  left: 35px;
  right: 32px;
  bottom: 86px;
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 132px;
  gap: 9px 21px;
  overflow: auto;
  overscroll-behavior: contain;
}
.mx-battle-card { position: relative; min-width: 0; height: 132px; background: url('assets/card.png') center / 100% 100% no-repeat; }
.mx-battle-details {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 22px;
  width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.mx-battle-icon { flex: none; width: 96px; height: 96px; object-fit: contain; }
.mx-battle-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mx-battle-name, .mx-battle-value { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mx-battle-name { font-size: 31px; font-weight: 700; }
.mx-battle-value { font-size: 23px; }
.mx-battle-buy {
  position: absolute;
  top: 25px;
  right: 18px;
  width: 168px;
  height: 83px;
  padding: 0 5px;
  border: 0;
  background: url('../cultivation-page/assets/controls/upgrade-button.png') center / 100% 100% no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #4a3418 !important;
  font-size: 27px !important;
  font-weight: 700 !important;
  line-height: 1.1;
}
.mx-battle-buy[aria-disabled="true"] { filter: grayscale(.7); opacity: .7; }
.mx-battle-buy span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-battle-price { display: flex; align-items: center; justify-content: center; gap: 3px; }
.mx-battle-price img { flex: none; width: 48px; height: 48px; object-fit: contain; }
.mx-battle-empty { grid-column: 1 / -1; padding: 25px; font-size: 30px; text-align: center; }
.mx-battle-description {
  position: absolute;
  inset: 14px;
  overflow: auto;
  padding: 24px 80px 24px 30px;
  background: #eff3e9;
  border: 3px solid #557d68;
  border-radius: 8px;
  font-size: 30px;
  line-height: 1.35;
}
.mx-battle-description[hidden] { display: none; }
.mx-battle-description p { margin: 15px 0; white-space: pre-wrap; }
.mx-battle-description-close { position: absolute; top: 8px; right: 12px; width: 65px; height: 65px; border: 0; background: transparent; font-size: 48px !important; }
