#weapon-bag-inspect-overlay {
  --weapon-bag-inspect-scale: 1;
  position: fixed;
  z-index: 100018;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(24, 17, 12, 0.58);
  color: #3a2519;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  user-select: none;
  touch-action: manipulation;
}

#weapon-bag-inspect-overlay.is-visible {
  display: flex;
}

#weapon-bag-inspect-overlay * {
  box-sizing: border-box;
}

.weapon-bag-inspect-shell {
  width: 520px;
  flex: 0 0 520px;
  transform: scale(var(--weapon-bag-inspect-scale));
  transform-origin: center;
}

.weapon-bag-inspect-window {
  position: relative;
  width: 520px;
  min-height: 360px;
  padding: 64px 48px 36px;
  background: url("../../../resources/img/battleUI/giveUpDialog/bg.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 16px 12px rgba(24, 13, 7, 0.45));
  text-align: center;
}

.weapon-bag-inspect-window h2 {
  width: 280px;
  height: 64px;
  margin: 0 auto 8px;
  padding-top: 12px;
  background: url("../../../resources/img/pvpUI/titleShadow.png") center / 100% 100% no-repeat;
  color: #3b2016;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 2px 0 #f5dfae;
}

.weapon-bag-inspect-name {
  margin: 0 0 22px;
  color: #5c3825;
  font-size: 24px;
  font-weight: 700;
}

.weapon-bag-inspect-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 50px;
  height: 48px;
  padding: 0;
  border: 0;
  background: url("../../../resources/img/pvpUI/close.png") center / contain no-repeat;
  cursor: pointer;
}

.weapon-bag-inspect-close:active {
  transform: translateY(3px) scale(0.94);
}

.weapon-bag-inspect-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 320px;
  margin: 0 auto;
}

.weapon-bag-inspect-btn {
  width: 100%;
  min-height: 72px;
  padding: 12px 18px;
  border: 2px solid #c9a36a;
  border-radius: 12px;
  background: rgba(255, 244, 214, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #3b2016;
  font-family: inherit;
  font-size: 30px;
  font-weight: 800;
  cursor: pointer;
}

.weapon-bag-inspect-btn:active {
  transform: translateY(3px) scale(0.99);
  filter: brightness(0.96);
}
