
.questResetTime {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(126, 188, 255, 0.26);
  background: linear-gradient(180deg, rgba(20, 33, 53, 0.82), rgba(13, 23, 40, 0.9));
  color: #bcd1ee;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ===== Final Game Pass ===== */
body {
  background:
    radial-gradient(1280px 560px at 18% -8%, rgba(112, 198, 255, 0.13), transparent 60%),
    radial-gradient(980px 460px at 100% 8%, rgba(155, 144, 255, 0.11), transparent 58%),
    radial-gradient(880px 420px at 50% 100%, rgba(120, 239, 203, 0.08), transparent 62%),
    linear-gradient(180deg, #050a13 0%, #09111f 52%, #060a13 100%);
  color: #eef5ff;
}

body::before {
  background:
    linear-gradient(rgba(5, 10, 19, 0.34), rgba(5, 11, 22, 0.8)),
    radial-gradient(780px 280px at 50% 100%, rgba(123, 198, 255, 0.14), transparent 72%),
    var(--bg-image) center/cover no-repeat;
  filter: blur(1.5px) brightness(0.46) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.9;
}

body::after {
  opacity: 0.18;
}

.app {
  max-width: 1240px;
  padding: 18px 18px 28px;
}

.hud {
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(150, 201, 255, 0.2);
  background:
    radial-gradient(540px 180px at 0% 0%, rgba(123, 198, 255, 0.16), transparent 64%),
    radial-gradient(520px 220px at 100% 100%, rgba(155, 144, 255, 0.11), transparent 68%),
    linear-gradient(180deg, rgba(16, 26, 46, 0.92), rgba(9, 15, 29, 0.96));
  box-shadow: 0 24px 56px rgba(2, 8, 20, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(118%);
}

.nickname {
  font-size: 16px;
  font-weight: 800;
  color: #f4f8ff;
  letter-spacing: 0.02em;
}

.hudRight {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.audioControl,
.currency {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(123, 198, 255, 0.18);
  background: linear-gradient(180deg, rgba(22, 35, 57, 0.84), rgba(12, 21, 36, 0.9));
}

.currency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: #eff6ff;
}

.mainTabs {
  margin-top: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  border-radius: 22px;
  border: 1px solid rgba(123, 198, 255, 0.16);
  background:
    radial-gradient(620px 200px at 50% 0%, rgba(123, 198, 255, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(11, 19, 33, 0.86), rgba(8, 14, 24, 0.92));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.mainTab {
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(123, 198, 255, 0.14);
  background: linear-gradient(180deg, rgba(24, 38, 60, 0.94), rgba(13, 22, 38, 0.96));
  color: rgba(207, 223, 244, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mainTab.isActive {
  color: #f7fbff;
  border-color: rgba(157, 214, 255, 0.54);
  background:
    radial-gradient(240px 120px at 50% 0%, rgba(123, 198, 255, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(52, 84, 132, 0.98), rgba(28, 49, 82, 0.98));
  box-shadow: 0 12px 28px rgba(44, 92, 170, 0.24), 0 0 0 1px rgba(123, 198, 255, 0.16) inset;
}

.notice,
.panel {
  position: relative;
  overflow: hidden;
}

.panel {
  margin-top: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(123, 198, 255, 0.26);
  background:
    radial-gradient(980px 320px at 0% 0%, rgba(123, 198, 255, 0.12), transparent 66%),
    radial-gradient(760px 320px at 100% 100%, rgba(153, 112, 255, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(10, 16, 29, 0.9), rgba(7, 12, 21, 0.96));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.panel::before,
.notice::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(160, 214, 255, 0.12);
  pointer-events: none;
}

.stageInfo,
.tankShowcase,
.shopMenu,
.shopContent,
.containerWrap,
.statCard,
.itemCard,
.shopCard,
.battleBotCard,
.battleArena,
.battleSide,
.battleMovePad,
.battleActionPad,
.leadersTableWrap,
.leadersMeWrap,
.leadersBoardCard,
.promoRedeemCard,
.promoHeroCard,
.shopShowcase,
.chatCard,
.refHero,
.refLinkCard,
.refRewardCard,
.refMilestoneCard,
.questCard,
.card,
.battleModeCard {
  border-radius: 20px !important;
  border: 1px solid rgba(123, 198, 255, 0.16) !important;
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(123, 198, 255, 0.12), transparent 64%),
    linear-gradient(180deg, rgba(18, 29, 46, 0.94), rgba(10, 17, 31, 0.98)) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.promoBtn,
.equipBtn,
.ghostBtn,
.shopBuyBtn,
.purchaseActionBtn {
  min-height: 48px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.promoBtn,
.equipBtn {
  background: linear-gradient(180deg, #a3ff70, #62f01f) !important;
  color: #091108 !important;
  border: 1px solid rgba(182, 255, 154, 0.86) !important;
}

.ghostBtn,
.shopBuyBtnAlt {
  background: linear-gradient(180deg, rgba(34, 50, 76, 0.98), rgba(18, 29, 46, 0.98)) !important;
  color: #ecf3ff !important;
  border: 1px solid rgba(123, 198, 255, 0.2) !important;
}

.subTabs {
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(123, 198, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 20, 35, 0.82), rgba(8, 14, 25, 0.9));
}

.subTab {
  min-height: 44px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subTab.isActive {
  background: radial-gradient(220px 90px at 50% 0%, rgba(123, 198, 255, 0.16), transparent 70%), linear-gradient(180deg, rgba(50, 77, 118, 0.97), rgba(25, 42, 68, 0.98));
}

.profileTankTitle,
.stageTitle,
.leadersTitle,
.battlesTitle,
.shopShowcaseTitle,
.promoTitle,
.refHeroTitle,
.battleBotCardTitle {
  color: #f5f9ff;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profileTankWrap,
.tankShowcase {
  min-height: 360px;
  padding: 18px;
}

.statsGrid {
  gap: 12px;
}

.statCard {
  min-height: 112px;
  padding: 16px 16px 14px;
}

.statValue {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.04;
  color: #f5f9ff;
}

.chatCard,
.refLinkCard,
.card,
.refHero,
.refRewardCard,
.refMilestoneCard,
.questCard {
  padding: 18px;
}

.promoInput {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 17, 29, 0.92), rgba(15, 24, 39, 0.96));
}

.itemsRail {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.itemCard {
  min-height: 118px;
  padding: 12px;
}

.battleModesGrid {
  gap: 12px;
}

.battleModeCard {
  min-height: 170px;
  padding: 16px 14px;
}

.shopLayout {
  gap: 18px;
}

.shopMenu {
  padding: 14px;
}

.shopCat {
  min-height: 76px;
}

.shopShowcase {
  padding: 22px;
  grid-template-columns: minmax(0, 1.6fr) minmax(344px, 0.9fr);
}

.shopShowcaseTitle {
  font-size: 38px;
}

.shopShowcaseStat {
  min-height: 96px;
  padding: 12px;
}

.shopShowcaseStatValue {
  font-size: 14px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.shopList {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.shopCard,
.shopCardBody,
.shopCardTitle,
.shopCardMeta,
.shopPremiumChip,
.shopShowcaseStatValue,
.shopShowcaseStatLabel {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shopCardMedia {
  min-height: 176px;
}

.shopCardItem .shopCardMedia img {
  height: 132px;
}

.shopCardActions {
  grid-template-columns: 112px minmax(0, 1fr);
}

.shopCardActions .shopBuyBtn {
  width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.14;
  align-self: stretch;
}

.shopPrice {
  width: 100%;
  justify-content: center;
}

.shopPremiumContainerShowcase {
  padding: 24px;
}

.premiumContainerShowcaseLayout {
  grid-template-columns: minmax(420px, 1.15fr) minmax(320px, 0.9fr);
  gap: 26px;
}

.premiumContainerVisual {
  min-height: 320px;
}

.premiumContainerHero {
  min-height: 300px;
}

.premiumContainerHeroImg {
  width: min(680px, 100%);
  height: 300px;
}

.premiumContainerActions {
  grid-template-columns: 120px minmax(0, 320px) !important;
  justify-content: flex-start;
}

.premiumContainerPrice .shopPriceStars {
  margin-right: 0;
}

.containerWrap {
  min-height: 320px;
}

.questsList {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 900px) {
  .app {
    padding: 12px 12px 24px;
  }

  .mainTabs {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }

  .panel {
    padding: 14px;
  }

  .profileTankWrap,
  .tankShowcase {
    min-height: 300px;
  }

  .shopShowcase {
    grid-template-columns: 1fr;
  }

  .shopCardActions {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .premiumContainerShowcaseLayout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .app {
    padding: 8px 8px 20px;
  }

  .mainTabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mainTab {
    min-height: 46px;
    font-size: 11px;
  }

  .panel {
    border-radius: 22px;
    padding: 12px;
  }

  .profileTankWrap,
  .tankShowcase {
    min-height: 248px;
    padding: 12px;
  }

  .stageTitle,
  .leadersTitle,
  .promoTitle,
  .refHeroTitle,
  .battlesTitle,
  .shopShowcaseTitle {
    font-size: 24px;
  }

  .itemsRail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shopCardActions,
  .premiumContainerActions {
    grid-template-columns: 1fr !important;
  }

  .premiumContainerVisual {
    min-height: 240px;
  }

  .premiumContainerHero {
    min-height: 220px;
  }

  .premiumContainerHeroImg {
    height: 220px;
  }
}

/* Final UI polish overrides */

.mainTab,
.subTab,
.promoBtn,
.equipBtn,
.ghostBtn,
.shopBuyBtn,
.purchaseActionBtn,
.questClaimBtn {
  font-weight: 680 !important;
  letter-spacing: 0.02em !important;
}

.leadersTitle,
.battlesTitle,
.shopShowcaseTitle,
.profileTankTitle,
.stageTitle,
.purchaseTitle,
.questTitle,
.shopTitle,
.nickname,
.currency {
  font-weight: 760 !important;
  letter-spacing: 0.015em !important;
}

.stageInfo,
.tankShowcase,
.shopMenu,
.shopContent,
.containerWrap,
.statCard,
.itemCard,
.shopCard,
.battleBotCard,
.battleArena,
.battleSide,
.leadersTableWrap,
.leadersMeWrap,
.leadersBoardCard,
.promoRedeemCard,
.promoHeroCard,
.shopShowcase,
.chatCard,
.refHero,
.refLinkCard,
.refRewardCard,
.refMilestoneCard,
.questCard,
.card,
.battleModeCard,
.rewardCard,
.errorCard,
.battleResultCard {
  transition:
    transform 380ms cubic-bezier(.22,.78,.16,1),
    box-shadow 380ms cubic-bezier(.22,.78,.16,1),
    border-color 320ms ease,
    background 380ms ease !important;
  will-change: transform, box-shadow;
}

.containerWrap,
.shopCard,
.questCard,
.battleModeCard {
  position: relative;
  overflow: hidden;
}

.containerWrap::after,
.shopCard::after,
.questCard::after,
.battleModeCard::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 48%, transparent 70%);
  opacity: 0;
  transform: translateX(-34%);
  transition: opacity 320ms ease, transform 540ms cubic-bezier(.22,.78,.16,1);
}

.containerWrap:hover,
.shopCard:hover,
.questCard:hover,
.battleModeCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(2, 10, 24, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.containerWrap:hover::after,
.shopCard:hover::after,
.questCard:hover::after,
.battleModeCard:hover::after {
  opacity: 1;
  transform: translateX(16%);
}

.battleResultModal {
  background:
    radial-gradient(860px 320px at 50% 50%, rgba(30, 56, 94, 0.16), transparent 72%),
    rgba(2, 6, 14, 0.8) !important;
  backdrop-filter: blur(10px) saturate(112%);
}

.battleResultCard {
  width: min(820px, 94vw) !important;
  border-radius: 28px !important;
  border: 1px solid rgba(134, 196, 255, 0.22) !important;
  background:
    radial-gradient(760px 280px at 50% -10%, rgba(129, 213, 255, 0.14), transparent 66%),
    radial-gradient(640px 260px at 100% 100%, rgba(132, 116, 255, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(10, 18, 34, 0.98), rgba(6, 10, 20, 0.99)) !important;
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

.battleResultCard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.03));
  opacity: 0.84;
}

.battleResultCard.isWin {
  border-color: rgba(90, 219, 152, 0.3) !important;
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(90, 219, 152, 0.08) inset, 0 0 42px rgba(60, 174, 130, 0.08) !important;
}

.battleResultCard.isLose {
  border-color: rgba(255, 94, 94, 0.24) !important;
  background:
    radial-gradient(760px 300px at 50% -10%, rgba(255, 90, 90, 0.16), transparent 66%),
    radial-gradient(620px 240px at 100% 100%, rgba(118, 28, 52, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(20, 11, 18, 0.985), rgba(8, 7, 13, 0.995)) !important;
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 78, 96, 0.08) inset, 0 0 46px rgba(150, 24, 44, 0.12) !important;
}

.battleResultBanner {
  min-height: 132px;
  padding: 26px 22px !important;
  background:
    radial-gradient(460px 190px at 50% 50%, rgba(78, 231, 152, 0.26), transparent 68%),
    linear-gradient(180deg, rgba(18, 54, 41, 0.96), rgba(10, 23, 21, 0.98)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.battleResultBanner.isLose {
  background:
    radial-gradient(500px 200px at 50% 52%, rgba(255, 92, 92, 0.22), transparent 66%),
    linear-gradient(180deg, rgba(63, 18, 28, 0.98), rgba(21, 10, 14, 0.995)) !important;
  border-bottom-color: rgba(255, 112, 112, 0.14) !important;
}

.battleResultTitle {
  font-size: clamp(34px, 6vw, 52px) !important;
  font-weight: 820 !important;
  letter-spacing: 0.045em !important;
  text-transform: uppercase;
  color: #f7fbff !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.battleResultBody {
  padding: 30px 28px 32px !important;
  gap: 16px !important;
}

.battleResultIcon {
  width: 108px;
  height: 108px;
  display: grid !important;
  place-items: center;
  border-radius: 30px;
  font-size: 54px !important;
  line-height: 1 !important;
  color: #ffe7a0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 236, 158, 0.26), transparent 56%),
    linear-gradient(180deg, rgba(42, 52, 82, 0.92), rgba(15, 21, 36, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  filter: none !important;
}

.battleResultCard.isWin .battleResultIcon {
  color: #ffe598;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34), 0 0 32px rgba(71, 209, 148, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.battleResultCard.isLose .battleResultIcon {
  color: #ff9c87;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 149, 80, 0.28), transparent 56%),
    linear-gradient(180deg, rgba(63, 24, 24, 0.94), rgba(18, 10, 14, 0.98));
  border-color: rgba(255, 110, 110, 0.16);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.44), 0 0 36px rgba(173, 24, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.battleResultText {
  max-width: 600px !important;
  font-size: 16px !important;
  font-weight: 590 !important;
  line-height: 1.58 !important;
  color: rgba(226, 236, 248, 0.88) !important;
}

.errorModal {
  background:
    radial-gradient(760px 280px at 50% 40%, rgba(129, 14, 39, 0.18), transparent 68%),
    rgba(5, 4, 10, 0.84) !important;
  backdrop-filter: blur(12px) saturate(112%) !important;
}

.errorCard {
  width: min(500px, 92vw) !important;
  border-radius: 26px !important;
  border: 1px solid rgba(191, 52, 74, 0.38) !important;
  background:
    radial-gradient(540px 220px at 50% -10%, rgba(138, 14, 43, 0.22), transparent 66%),
    linear-gradient(180deg, rgba(26, 8, 16, 0.985), rgba(10, 6, 10, 0.995)) !important;
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 86, 116, 0.05) inset, 0 0 54px rgba(109, 12, 33, 0.16) !important;
  overflow: hidden;
}

.errorHead {
  min-height: 86px !important;
  padding: 0 24px !important;
  gap: 16px;
  background:
    radial-gradient(360px 120px at 0% 50%, rgba(255, 77, 107, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(58, 14, 26, 0.98), rgba(31, 8, 13, 0.995)) !important;
  border-bottom: 1px solid rgba(255, 94, 122, 0.14) !important;
}

.errorAccent {
  width: 14px !important;
  height: 14px;
  align-self: auto !important;
  border-radius: 999px;
  background: radial-gradient(circle, #ff7d94 0%, #ea3b5b 54%, #8d112d 100%) !important;
  box-shadow: 0 0 24px rgba(234, 59, 91, 0.46);
  animation: dangerPulse 2.4s ease-in-out infinite;
}

.errorTitle {
  margin-left: 0 !important;
  font-size: clamp(24px, 5vw, 38px) !important;
  font-weight: 820 !important;
  letter-spacing: 0.04em !important;
  color: #fff4f6 !important;
}

.errorBody {
  padding: 28px 26px 30px !important;
  display: grid;
  justify-items: center;
  gap: 18px;
  background:
    radial-gradient(420px 200px at 50% 10%, rgba(136, 14, 40, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(16, 8, 13, 0.7), rgba(9, 5, 8, 0));
}

.errorIcon {
  width: 136px;
  height: 136px;
  display: grid !important;
  place-items: center;
  border-radius: 34px;
  border: 1px solid rgba(255, 96, 126, 0.18);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 111, 140, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(56, 12, 24, 0.94), rgba(21, 8, 14, 0.98));
  color: #ff718d !important;
  font-size: 72px !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42), 0 0 38px rgba(158, 18, 48, 0.18);
}

.errorText {
  max-width: 360px;
  text-align: center;
  font-size: 19px !important;
  font-weight: 620 !important;
  line-height: 1.5 !important;
  color: rgba(255, 230, 235, 0.94) !important;
}

.questResetTime {
  margin-bottom: 12px;
  font-size: 12px !important;
  font-weight: 620 !important;
  color: rgba(197, 213, 234, 0.68) !important;
}

.questsList {
  display: grid;
  gap: 12px;
}

.questCard {
  padding: 16px !important;
  min-height: 0 !important;
  gap: 12px !important;
  border-radius: 18px !important;
}

.questTop,
.questFooter {
  gap: 12px !important;
  align-items: center !important;
}

.questTitle {
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
}

.questChip {
  min-height: 24px;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 680 !important;
}

.questReward {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 211, 98, 0.1);
  border: 1px solid rgba(255, 211, 98, 0.16);
  color: #ffd980 !important;
  font-size: 13px !important;
  font-weight: 720 !important;
}

.questDesc {
  margin-top: -2px;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: rgba(206, 220, 239, 0.74) !important;
}

.questProgressRow {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px !important;
  align-items: center !important;
}

.questProgressTrack {
  height: 10px !important;
}

.questProgressText {
  font-size: 12px !important;
  font-weight: 650 !important;
  color: rgba(215, 229, 246, 0.82) !important;
}

.questStatus {
  min-height: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(202, 217, 237, 0.76) !important;
}

.questClaimBtn {
  min-height: 40px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.shopLayout {
  gap: 16px !important;
}

.shopMenu {
  padding: 16px !important;
  gap: 10px !important;
}

.shopMenuIntro {
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.shopMenuTitle {
  font-size: 28px !important;
  font-weight: 780 !important;
}

.shopMenuNote {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: rgba(203, 216, 236, 0.7) !important;
}

.shopCat {
  min-height: 68px !important;
  padding: 12px 14px !important;
  gap: 12px !important;
  border-radius: 16px !important;
}

.shopCatIcon {
  width: 40px !important;
  height: 40px !important;
  font-size: 18px !important;
}

.shopCatTitle {
  font-size: 14px !important;
  font-weight: 720 !important;
}

.shopCatMeta {
  font-size: 11px !important;
  line-height: 1.35 !important;
  color: rgba(207, 220, 239, 0.68) !important;
}

.shopContent {
  padding: 16px !important;
  gap: 14px !important;
}

.shopShowcase {
  padding: 18px !important;
  gap: 16px !important;
}

.shopShowcaseTitle {
  font-size: clamp(28px, 4.6vw, 40px) !important;
}

.shopShowcaseSubtitle {
  font-size: 14px !important;
  line-height: 1.48 !important;
  color: rgba(211, 224, 242, 0.74) !important;
}

.shopShowcaseMeta {
  gap: 10px !important;
}

.shopShowcaseStat {
  min-height: 82px !important;
  padding: 12px !important;
  border-radius: 16px !important;
}

.shopShowcaseStatValue {
  font-size: 20px !important;
  font-weight: 760 !important;
}

.shopShowcaseStatLabel {
  font-size: 11px !important;
  font-weight: 580 !important;
}

.shopList {
  gap: 12px !important;
}

.shopCard {
  padding: 14px !important;
  gap: 12px !important;
}

.shopCardMedia {
  min-height: 146px !important;
  border-radius: 16px !important;
}

.shopCardTitle {
  font-size: 17px !important;
  font-weight: 740 !important;
  line-height: 1.25 !important;
}

.shopCardMeta {
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 560 !important;
}

.shopCardActions {
  gap: 10px !important;
  align-items: stretch !important;
}

.shopPrice,
.premiumContainerPrice {
  min-height: 42px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-weight: 730 !important;
}

.shopBuyBtnAlt,
.starsBuyBtn {
  min-height: 42px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.shopPremiumContainerShowcase {
  border-radius: 22px !important;
}

.premiumContainerShowcaseLayout {
  gap: 18px !important;
}

.premiumContainerVisual {
  min-height: 252px !important;
  padding: 8px !important;
}

.premiumContainerHero {
  min-height: 208px !important;
}

.premiumContainerHeroImg {
  height: 234px !important;
}

.premiumContainerShowTitle {
  font-size: 17px !important;
  font-weight: 760 !important;
}

.premiumContainerShowSub {
  font-size: 12px !important;
  font-weight: 580 !important;
}

.containerTabs {
  gap: 8px !important;
}

.containerTabs .subTab {
  min-height: 42px !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
}

.containerWrap {
  min-height: 208px !important;
  border-radius: 20px !important;
  background:
    radial-gradient(420px 220px at 50% 45%, rgba(94, 167, 255, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(22, 33, 56, 0.96), rgba(14, 22, 39, 0.99)) !important;
}

.containerImg {
  width: min(340px, 88%) !important;
  height: 170px !important;
  animation: standardContainerFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.34));
}

.containerActions {
  gap: 8px !important;
  margin-top: 10px !important;
}

.containerActions .equipBtn,
.containerActions .ghostBtn {
  min-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.containerMetaRow {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  gap: 10px !important;
  border-radius: 16px !important;
}

.containerMetaTitle {
  font-size: 11px !important;
  font-weight: 740 !important;
  letter-spacing: 0.04em !important;
}

.containerPill {
  min-height: 28px;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.containerMetaActive {
  font-size: 12px !important;
  font-weight: 620 !important;
}

.rewardModal {
  background:
    radial-gradient(900px 340px at 50% 42%, rgba(67, 102, 170, 0.16), transparent 72%),
    rgba(3, 7, 16, 0.82) !important;
  backdrop-filter: blur(12px) saturate(114%);
}

.rewardCard {
  --reward-glow: rgba(88, 231, 255, 0.98);
  --reward-glow-soft: rgba(88, 231, 255, 0.24);
  width: min(560px, 92vw) !important;
  padding: 24px 22px 22px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(127, 194, 255, 0.22) !important;
  background:
    radial-gradient(600px 220px at 50% -10%, rgba(138, 212, 255, 0.14), transparent 68%),
    radial-gradient(520px 220px at 100% 100%, rgba(140, 126, 255, 0.12), transparent 74%),
    linear-gradient(180deg, rgba(12, 20, 38, 0.98), rgba(7, 11, 22, 0.995)) !important;
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  overflow: hidden;
}

.rewardCard::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  background:
    radial-gradient(circle at 50% 46%, var(--reward-glow-soft) 0%, rgba(255, 255, 255, 0.02) 34%, transparent 66%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 68%);
  filter: blur(8px);
}

.rewardCard.rarity-rare { --reward-glow: rgba(88, 231, 255, 0.98); --reward-glow-soft: rgba(88, 231, 255, 0.26); }
.rewardCard.rarity-epic { --reward-glow: rgba(176, 113, 255, 0.98); --reward-glow-soft: rgba(176, 113, 255, 0.28); }
.rewardCard.rarity-ultrarare { --reward-glow: rgba(255, 93, 93, 0.98); --reward-glow-soft: rgba(255, 93, 93, 0.28); }
.rewardCard.rarity-legendary { --reward-glow: rgba(255, 211, 79, 0.99); --reward-glow-soft: rgba(255, 211, 79, 0.32); }

.rewardCard.isPrimed::before {
  animation: rewardRarityGlow var(--reward-glow-ms, 680ms) cubic-bezier(.16,.84,.2,1) forwards;
}

.rewardCard.rarity-legendary.isPrimed::before {
  animation: rewardLegendaryHaloFinal calc(var(--reward-glow-ms, 1600ms) * 1.18) cubic-bezier(.14,.82,.18,1) forwards;
}

.rewardCard.isReveal {
  border-color: color-mix(in srgb, var(--reward-glow) 50%, rgba(255, 255, 255, 0.12)) !important;
  box-shadow: 0 34px 84px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 56px var(--reward-glow-soft) !important;
}

.rewardTitle {
  font-size: 20px !important;
  font-weight: 760 !important;
  letter-spacing: 0.03em !important;
}

.rewardContainerBox {
  width: min(360px, 100%) !important;
  height: 234px !important;
  margin: 18px auto 0 !important;
  border-radius: 26px !important;
  border: 1px solid rgba(146, 199, 255, 0.16) !important;
  background:
    radial-gradient(320px 180px at 50% 44%, rgba(106, 171, 255, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(16, 26, 47, 0.94), rgba(10, 17, 31, 0.98)) !important;
  overflow: hidden;
}

.rewardContainerBox::before {
  content: "";
  position: absolute;
  inset: -8%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  background:
    radial-gradient(circle at 50% 46%, var(--reward-glow-soft) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--reward-glow) 56%, transparent) 0%, transparent 72%);
  filter: blur(12px);
}

.rewardContainerBox.isPrimed::before {
  opacity: 1;
  transform: scale(1.04);
  transition:
    opacity var(--reward-glow-ms, 680ms) cubic-bezier(.16,.84,.2,1),
    transform var(--reward-glow-ms, 680ms) cubic-bezier(.16,.84,.2,1);
}

.rewardContainerImg,
.rewardDropImg {
  transition:
    transform 420ms cubic-bezier(.22,.78,.16,1),
    opacity 320ms ease,
    filter 380ms ease !important;
}

.rewardContainerBox.isCharging .rewardContainerImg {
  animation: rewardContainerCharge 1.26s ease-in-out infinite;
}

.rewardContainerBox.isReveal .rewardContainerImg {
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

.rewardContainerImg.isHidden {
  opacity: 0 !important;
  transform: translateY(10px) scale(0.92) !important;
}

.rewardDropImg.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  animation: rewardDropRise 520ms cubic-bezier(.18,.88,.24,1);
}

.rewardContainerBox.rewardBurst::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--reward-glow) 34%, transparent) 0%, transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 38%);
  animation: rewardBurstFx 720ms ease-out forwards;
}

.rewardText {
  margin-top: 18px !important;
  font-size: 16px !important;
  font-weight: 620 !important;
  line-height: 1.52 !important;
  color: rgba(232, 240, 250, 0.92) !important;
}

@keyframes rewardRarityGlow {
  0% {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(16px);
  }
  55% {
    opacity: 0.92;
    transform: scale(1.03);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1.08);
    filter: blur(8px);
  }
}

@keyframes rewardLegendaryHaloFinal {
  0% {
    opacity: 0;
    transform: scale(0.84);
    filter: blur(20px);
  }
  38% {
    opacity: 0.48;
    transform: scale(0.96);
    filter: blur(16px);
  }
  72% {
    opacity: 0.92;
    transform: scale(1.06);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1.12);
    filter: blur(8px);
  }
}

@keyframes rewardContainerCharge {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.3));
  }
  50% {
    transform: translateY(-7px) scale(1.025);
    filter: drop-shadow(0 18px 28px color-mix(in srgb, var(--reward-glow) 32%, rgba(0, 0, 0, 0.18)));
  }
}

@keyframes rewardDropRise {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.82);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rewardBurstFx {
  0% {
    opacity: 0;
    transform: scale(0.76);
  }
  28% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes dangerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

@keyframes standardContainerFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  .battleResultCard {
    width: min(94vw, 520px) !important;
    border-radius: 24px !important;
  }

  .battleResultBanner {
    min-height: 106px;
    padding: 18px 16px !important;
  }

  .battleResultTitle {
    font-size: 17vw !important;
    line-height: 0.94 !important;
  }

  .battleResultBody {
    padding: 20px 16px 22px !important;
    gap: 12px !important;
  }

  .battleResultIcon {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    font-size: 40px !important;
  }

  .battleResultText {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .errorCard {
    width: min(92vw, 420px) !important;
    border-radius: 22px !important;
  }

  .errorHead {
    min-height: 72px !important;
    padding: 0 18px !important;
    gap: 12px;
  }

  .errorIcon {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    font-size: 58px !important;
  }

  .errorBody {
    padding: 22px 18px 24px !important;
    gap: 14px;
  }

  .errorText {
    font-size: 16px !important;
  }

  .questsList {
    gap: 10px;
  }

  .questCard {
    padding: 12px !important;
    gap: 10px !important;
  }

  .questTop {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .questTitle {
    font-size: 15px !important;
  }

  .questChip,
  .questStatus,
  .questProgressText,
  .questDesc {
    font-size: 11px !important;
  }

  .questReward {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px !important;
  }

  .questFooter {
    align-items: stretch !important;
  }

  .questClaimBtn {
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
  }

  .shopLayout {
    gap: 12px !important;
  }

  .shopMenu,
  .shopContent {
    padding: 12px !important;
  }

  .shopMenuIntro {
    gap: 4px !important;
    margin-bottom: 4px !important;
  }

  .shopMenuTitle {
    font-size: 22px !important;
  }

  .shopMenuNote {
    font-size: 11px !important;
  }

  .shopCat {
    min-height: 56px !important;
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  .shopCatIcon {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }

  .shopCatTitle {
    font-size: 13px !important;
  }

  .shopCatMeta {
    font-size: 10px !important;
    line-height: 1.28 !important;
  }

  .shopShowcase {
    padding: 14px !important;
    gap: 12px !important;
  }

  .shopShowcaseTitle {
    font-size: 24px !important;
  }

  .shopShowcaseSubtitle {
    font-size: 12px !important;
  }

  .shopShowcaseMeta {
    gap: 8px !important;
  }

  .shopShowcaseStat {
    min-height: 68px !important;
    padding: 10px !important;
  }

  .shopShowcaseStatValue {
    font-size: 17px !important;
  }

  .shopShowcaseStatLabel {
    font-size: 10px !important;
  }

  .shopList {
    gap: 10px !important;
  }

  .shopCard {
    padding: 12px !important;
    gap: 10px !important;
  }

  .shopCardMedia {
    min-height: 108px !important;
  }

  .shopCardTitle {
    font-size: 15px !important;
  }

  .shopCardMeta {
    font-size: 11px !important;
  }

  .shopCardActions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .shopPrice,
  .premiumContainerPrice,
  .shopBuyBtnAlt,
  .starsBuyBtn {
    min-height: 38px !important;
    font-size: 11px !important;
  }

  .premiumContainerShowcaseLayout {
    gap: 14px !important;
  }

  .premiumContainerVisual {
    min-height: 200px !important;
  }

  .premiumContainerHero {
    min-height: 170px !important;
  }

  .premiumContainerHeroImg {
    height: 184px !important;
    transform: scale(1.08) !important;
  }

  .premiumContainerShowTitle {
    font-size: 15px !important;
  }

  .premiumContainerShowSub {
    font-size: 11px !important;
  }

  .containerTabs {
    gap: 6px !important;
  }

  .containerTabs .subTab {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
  }

  .containerWrap {
    min-height: 170px !important;
    margin-top: 10px !important;
  }

  .containerImg {
    width: min(270px, 82%) !important;
    height: 132px !important;
  }

  .containerActions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .containerActions .equipBtn,
  .containerActions .ghostBtn {
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
  }

  .containerMetaRow {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
    gap: 8px !important;
  }

  .containerMetaRight {
    align-items: stretch !important;
  }

  .containerPill {
    min-height: 24px;
    font-size: 11px !important;
  }

  .rewardCard {
    width: min(92vw, 440px) !important;
    padding: 18px 16px 18px !important;
    border-radius: 24px !important;
  }

  .rewardTitle {
    font-size: 17px !important;
  }

  .rewardContainerBox {
    width: min(290px, 100%) !important;
    height: 188px !important;
    margin-top: 14px !important;
    border-radius: 22px !important;
  }

  .rewardText {
    margin-top: 14px !important;
    font-size: 13px !important;
  }
}

/* ===== Final UI polish: battles, errors, quests, shop, containers ===== */
.battleResultModal {
  background:
    radial-gradient(820px 320px at 50% 12%, rgba(120, 239, 203, 0.08), transparent 72%),
    rgba(2, 7, 14, 0.82) !important;
  backdrop-filter: blur(14px) saturate(115%) !important;
}

.battleResultCard {
  position: relative;
  width: min(720px, 94vw) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(146, 205, 255, 0.18) !important;
  background:
    linear-gradient(180deg, rgba(8, 14, 27, 0.98), rgba(7, 10, 20, 0.99)) !important;
  box-shadow: 0 36px 72px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  overflow: hidden !important;
}

.battleResultCard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 220px at 50% 12%, rgba(120, 239, 203, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%);
}

.battleResultCard.isLose::before {
  background:
    radial-gradient(520px 220px at 50% 12%, rgba(255, 84, 114, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 34%);
}

.battleResultCard.isLose {
  border-color: rgba(255, 98, 126, 0.22) !important;
}

.battleResultBanner {
  position: relative;
  padding: 24px 20px 18px !important;
  background:
    linear-gradient(180deg, rgba(12, 64, 49, 0.84), rgba(9, 28, 24, 0.9)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.battleResultBanner::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.battleResultBanner.isLose {
  background:
    linear-gradient(180deg, rgba(72, 12, 20, 0.9), rgba(22, 8, 12, 0.92)) !important;
}

.battleResultTitle {
  font-size: 38px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.34) !important;
}

.battleResultBody {
  position: relative;
  min-height: 250px;
  padding: 26px 24px 28px !important;
  display: grid !important;
  justify-items: center !important;
  align-content: center !important;
  gap: 14px !important;
  background:
    radial-gradient(360px 180px at 50% 34%, rgba(255, 255, 255, 0.04), transparent 72%);
}

.battleResultBody::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.battleResultIcon {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 108px;
  display: grid !important;
  place-items: center;
  border-radius: 28px;
  border: 1px solid rgba(120, 239, 203, 0.22);
  background:
    linear-gradient(180deg, rgba(120, 239, 203, 0.12), rgba(13, 34, 30, 0.2));
  color: #d8fff0;
  font-size: 52px !important;
  line-height: 1 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 30px rgba(120, 239, 203, 0.12);
}

.battleResultCard.isLose .battleResultIcon {
  border-color: rgba(255, 98, 126, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 84, 114, 0.12), rgba(40, 8, 14, 0.22));
  color: #ffd6de;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 34px rgba(255, 84, 114, 0.12);
}

.battleResultText {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
  max-width: 520px !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  color: rgba(231, 239, 251, 0.94) !important;
}

.errorModal {
  background:
    radial-gradient(520px 260px at 50% 18%, rgba(183, 18, 44, 0.2), transparent 70%),
    rgba(3, 4, 8, 0.88) !important;
  backdrop-filter: blur(12px) saturate(120%) !important;
}

.errorCard {
  position: relative;
  width: min(540px, 94vw) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 84, 114, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(24, 6, 10, 0.98), rgba(10, 4, 7, 0.99)) !important;
  box-shadow:
    0 36px 70px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 92, 114, 0.06) inset,
    0 0 60px rgba(122, 0, 25, 0.18) !important;
  overflow: hidden !important;
}

.errorCard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(460px 160px at 50% 22%, rgba(255, 65, 95, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%);
}

.errorHead {
  position: relative;
  min-height: 72px !important;
  padding: 0 18px !important;
  gap: 14px !important;
  background:
    linear-gradient(180deg, rgba(76, 10, 20, 0.92), rgba(35, 5, 11, 0.96)) !important;
  border-bottom: 1px solid rgba(255, 94, 112, 0.18) !important;
}

.errorHead::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 94, 112, 0.5), transparent);
}

.errorAccent {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  align-self: auto !important;
  background: #ff526d !important;
  box-shadow: 0 0 18px rgba(255, 82, 109, 0.8) !important;
}

.errorTitle {
  margin-left: 0 !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #fff1f4 !important;
  text-shadow: 0 0 24px rgba(255, 82, 109, 0.18) !important;
}

.errorBody {
  min-height: 260px !important;
  padding: 28px 20px 26px !important;
  gap: 16px !important;
  background:
    radial-gradient(300px 160px at 50% 34%, rgba(255, 68, 98, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(20, 4, 8, 0.32), transparent) !important;
}

.errorIcon {
  width: 120px !important;
  height: 120px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 84, 114, 0.22) !important;
  background: linear-gradient(180deg, rgba(255, 75, 104, 0.08), rgba(40, 5, 13, 0.18)) !important;
  color: #ff637d !important;
  font-size: 58px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 32px rgba(255, 40, 80, 0.16) !important;
}

.errorText {
  max-width: 420px !important;
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #fff3f5 !important;
}

.questsList {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 10px !important;
}

.questCard {
  padding: 11px 11px 10px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.questTop,
.questFooter,
.questProgressRow {
  gap: 8px !important;
}

.questTop {
  align-items: flex-start !important;
}

.questTitle {
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
}

.questChip {
  margin-top: 4px !important;
  min-height: 18px !important;
  padding: 0 7px !important;
  font-size: 9px !important;
  letter-spacing: 0.04em !important;
}

.questReward {
  font-size: 11px !important;
  white-space: nowrap;
}

.questDesc {
  margin: 6px 0 !important;
  min-height: 0 !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.questProgressTrack {
  height: 7px !important;
}

.questProgressText,
.questStatus {
  font-size: 10px !important;
  min-height: 0 !important;
}

.questClaimBtn,
.questClaimBtn.promoBtn {
  min-height: 28px !important;
  min-width: 84px !important;
  padding: 0 10px !important;
  font-size: 10px !important;
  border-radius: 9px !important;
}

.shopShowcase {
  padding: 18px !important;
  gap: 16px !important;
}

.shopShowcaseTitle {
  font-size: 32px !important;
}

.shopShowcaseStat {
  min-height: 84px !important;
  padding: 10px 12px !important;
}

.shopCard {
  padding: 12px !important;
  gap: 10px !important;
}

.shopCardMedia {
  min-height: 140px !important;
  padding: 12px 12px 10px !important;
}

.shopCardItem .shopCardMedia img {
  height: 114px !important;
}

.shopCardMeta {
  min-height: 0 !important;
}

.shopCardActions {
  gap: 8px !important;
}

.shopPrice,
.premiumContainerPrice {
  min-height: 36px !important;
}

.rewardModal {
  background:
    radial-gradient(760px 300px at 50% 16%, rgba(123, 198, 255, 0.08), transparent 72%),
    rgba(3, 7, 14, 0.82) !important;
  backdrop-filter: blur(14px) saturate(115%) !important;
}

.rewardCard {
  width: min(480px, 92vw) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(154, 206, 255, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(11, 18, 34, 0.98), rgba(8, 13, 26, 0.99)) !important;
  padding: 18px 18px 16px !important;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  overflow: visible !important;
  --reward-glow-ms: 760ms;
}

.rewardCard::before {
  inset: 0 !important;
  opacity: 0;
  transform: scale(0.96);
  background:
    radial-gradient(340px 180px at 50% 24%, var(--reward-glow-soft, rgba(0, 0, 0, 0)), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%);
  transition:
    opacity var(--reward-glow-ms) ease,
    box-shadow var(--reward-glow-ms) ease,
    transform var(--reward-glow-ms) ease !important;
}

.rewardCard.rarity-rare { --reward-glow: rgba(88, 231, 255, 0.98); --reward-glow-soft: rgba(88, 231, 255, 0.28); }
.rewardCard.rarity-epic { --reward-glow: rgba(176, 113, 255, 0.98); --reward-glow-soft: rgba(176, 113, 255, 0.3); }
.rewardCard.rarity-ultrarare { --reward-glow: rgba(255, 93, 93, 0.98); --reward-glow-soft: rgba(255, 93, 93, 0.3); }
.rewardCard.rarity-legendary { --reward-glow: rgba(255, 211, 79, 0.99); --reward-glow-soft: rgba(255, 211, 79, 0.32); }

.rewardCard.isPrimed::before {
  opacity: 1;
  transform: scale(1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px var(--reward-glow),
    0 0 34px var(--reward-glow-soft);
}

.rewardCard.isReveal {
  transform: translateY(-2px) scale(1.01);
  transition: transform 420ms ease;
}

.rewardCard.rarity-legendary.isPrimed::before {
  animation: rewardLegendaryHalo 1800ms ease-in-out infinite alternate;
}

@keyframes rewardLegendaryHalo {
  0% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 0 1px var(--reward-glow), 0 0 26px var(--reward-glow-soft); }
  100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 0 1px var(--reward-glow), 0 0 54px var(--reward-glow-soft); }
}

.rewardTitle {
  margin-bottom: 12px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  opacity: 0.86;
}

.rewardContainerBox {
  min-height: 250px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(18, 27, 45, 0.82), rgba(11, 16, 30, 0.96)) !important;
  overflow: hidden;
}

.rewardContainerBox::before {
  content: "";
  position: absolute;
  inset: -10% -12%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  background: radial-gradient(circle at 50% 50%, var(--reward-glow-soft, rgba(0, 0, 0, 0)), transparent 62%);
  transition: opacity var(--reward-glow-ms) ease, transform var(--reward-glow-ms) ease;
}

.rewardContainerBox.isPrimed::before {
  opacity: 1;
  transform: scale(1);
}

.rewardContainerImg {
  width: min(330px, 88%) !important;
  height: 190px !important;
  transition: opacity 220ms ease, transform 360ms ease, filter 360ms ease !important;
}

.rewardContainerBox.isCharging .rewardContainerImg {
  animation: rewardContainerCharge 1600ms ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 18px var(--reward-glow-soft, rgba(255, 255, 255, 0.14)));
}

.rewardContainerBox.isReveal .rewardContainerImg {
  transform: translateY(-10px) scale(1.045);
}

.rewardContainerImg.isHidden {
  opacity: 0 !important;
  transform: translateY(-14px) scale(0.9) !important;
}

.rewardDropImg {
  top: 50% !important;
  width: 124px !important;
  height: 124px !important;
  transform: translate(-50%, -48%) scale(0.58) rotate(-8deg);
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.34)) drop-shadow(0 0 28px var(--reward-glow-soft, rgba(255, 255, 255, 0.16)));
  transition: transform 680ms cubic-bezier(0.18, 0.84, 0.22, 1), opacity 360ms ease !important;
}

.rewardDropImg.show {
  opacity: 1;
  transform: translate(-50%, -54%) scale(1) rotate(0deg);
}

.rewardContainerBox.rewardBurst::after {
  inset: 6% 8% !important;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.24), var(--reward-glow-soft, rgba(255, 255, 255, 0.14)) 28%, transparent 72%) !important;
  animation: rewardBurstFx 720ms cubic-bezier(0.18, 0.86, 0.22, 1) !important;
}

@keyframes rewardContainerCharge {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.018); }
}

@keyframes rewardBurstFx {
  0% { opacity: 0.16; transform: scale(0.74); }
  40% { opacity: 0.92; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.24); }
}

.rewardText {
  margin-top: 12px !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: #f1f7ff !important;
}

@media (max-width: 640px) {
  .battleResultCard {
    width: min(100%, 96vw) !important;
    border-radius: 18px !important;
  }

  .battleResultBanner {
    padding: 18px 14px 14px !important;
  }

  .battleResultTitle {
    font-size: 30px !important;
  }

  .battleResultBody {
    min-height: 0 !important;
    padding: 18px 14px 20px !important;
    gap: 12px !important;
  }

  .battleResultIcon {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    font-size: 40px !important;
  }

  .battleResultText {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .errorCard {
    border-radius: 18px !important;
  }

  .errorHead {
    min-height: 62px !important;
    padding: 0 16px !important;
  }

  .errorTitle {
    font-size: 26px !important;
  }

  .errorBody {
    min-height: 220px !important;
    padding: 20px 14px 22px !important;
    gap: 14px !important;
  }

  .errorIcon {
    width: 88px !important;
    height: 88px !important;
    border-radius: 22px !important;
    font-size: 44px !important;
  }

  .errorText {
    font-size: 18px !important;
    line-height: 1.28 !important;
  }

  .questsList {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .questCard {
    padding: 10px !important;
  }

  .shopMenu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    padding: 8px !important;
  }

  .shopMenuIntro {
    grid-column: 1 / -1;
    padding: 0 2px 6px !important;
  }

  .shopMenuTitle {
    font-size: 18px !important;
  }

  .shopMenuNote {
    margin-top: 4px !important;
    font-size: 11px !important;
  }

  .shopCat {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    min-height: 54px !important;
    padding: 8px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }

  .shopCatIcon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  .shopCatTitle {
    font-size: 12px !important;
    line-height: 1.12 !important;
  }

  .shopCatMeta {
    display: none !important;
  }

  .shopContent {
    padding: 8px !important;
  }

  .shopShowcase {
    padding: 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  .shopShowcaseTitle {
    font-size: 20px !important;
  }

  .shopShowcaseSubtitle {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .shopShowcaseMeta {
    gap: 8px !important;
  }

  .shopShowcaseStat {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  .shopShowcaseStatValue {
    font-size: 15px !important;
  }

  .shopShowcaseStatLabel {
    font-size: 10px !important;
  }

  .shopList {
    gap: 8px !important;
  }

  .shopCard {
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 14px !important;
  }

  .shopCardMedia {
    min-height: 112px !important;
    padding: 10px 10px 8px !important;
    border-radius: 12px !important;
  }

  .shopCardItem .shopCardMedia img {
    height: 92px !important;
  }

  .shopCardBadge,
  .shopOwnedPill {
    top: 8px !important;
    min-height: 20px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
  }

  .shopCardTitle {
    font-size: 13px !important;
  }

  .shopCardMeta {
    min-height: 0 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .shopPrice,
  .premiumContainerPrice {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }

  .shopCardActions .shopBuyBtn,
  .shopBuyBtnAlt,
  .starsBuyBtn {
    min-height: 36px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }

  .shopPremiumContainerShowcase {
    padding: 10px 10px 12px !important;
  }

  .premiumContainerVisual {
    min-height: 0 !important;
    padding: 4px !important;
    border-radius: 14px !important;
  }

  .premiumContainerHero {
    min-height: 170px !important;
  }

  .premiumContainerHeroImg {
    height: 176px !important;
    transform: scale(1.08) !important;
  }

  .premiumContainerKicker {
    min-height: 22px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
  }

  .shopPremiumContainerShowcase .shopCardTitle,
  .premiumContainerShowTitle {
    font-size: 18px !important;
  }

  .shopPremiumContainerShowcase .shopCardMeta,
  .premiumContainerShowSub {
    font-size: 12px !important;
  }

  .premiumContainerDrops {
    gap: 6px !important;
  }

  .containerTabs {
    gap: 6px !important;
    padding: 6px !important;
  }

  .containerTabs .subTab {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }

  .containerWrap {
    min-height: 170px !important;
    margin-top: 10px !important;
  }

  .containerImg {
    width: min(280px, 88%) !important;
    height: 140px !important;
  }

  .containerActions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .containerActions .equipBtn,
  .containerActions .ghostBtn {
    width: 100% !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
  }

  .containerMetaRow {
    margin-top: 10px !important;
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }

  .containerMetaTitle {
    font-size: 10px !important;
  }

  .containerMetaActive {
    font-size: 12px !important;
  }

  .containerPill {
    gap: 5px !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
  }

  .rewardCard {
    width: min(94vw, 420px) !important;
    border-radius: 18px !important;
    padding: 14px 14px 12px !important;
  }

  .rewardTitle {
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
  }

  .rewardContainerBox {
    min-height: 210px !important;
    border-radius: 14px !important;
  }

  .rewardContainerImg {
    width: min(260px, 84%) !important;
    height: 150px !important;
  }

  .rewardDropImg {
    width: 96px !important;
    height: 96px !important;
  }

  .rewardText {
    font-size: 14px !important;
  }
}

.quickMatchWidget.isHidden,
#quickMatchWidget.isHidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

button,
.mainTab,
.subTab,
.promoBtn,
.equipBtn,
.ghostBtn,
.shopBuyBtn,
.purchaseActionBtn,
.quickMatchWidgetCancel {
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

.nickname,
.currency,
.leadersTitle,
.battlesTitle,
.shopShowcaseTitle,
.profileTankTitle,
.stageTitle,
.purchaseTitle,
.questTitle,
.shopTitle,
.leadersHeroHeadline,
.quickMatchWidgetTitle,
.errorTitle,
.battleResultTitle {
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
}

.leadersSubtitle,
.leadersHeroSub,
.quickMatchWidgetMetricLabel,
.quickMatchWidgetKicker,
.hint,
.purchaseLabel,
.shopCardMeta,
.battleLobbyMeta,
.battleLobbyMapBrief {
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
}

.statValue,
.quickMatchWidgetMetric b,
.leadersPlace,
.leadersName,
.shopPriceCrystals,
.shopPriceStars {
  font-weight: 700 !important;
}

/* ===== Final polish pass ===== */
body {
  color: #eef5ff !important;
  background:
    radial-gradient(1280px 560px at 18% -8%, rgba(112, 198, 255, 0.13), transparent 60%),
    radial-gradient(980px 460px at 100% 8%, rgba(155, 144, 255, 0.11), transparent 58%),
    radial-gradient(880px 420px at 50% 100%, rgba(120, 239, 203, 0.08), transparent 62%),
    linear-gradient(180deg, #050a13 0%, #09111f 52%, #060a13 100%) !important;
}

body::before {
  background:
    linear-gradient(rgba(5, 10, 19, 0.34), rgba(5, 11, 22, 0.8)),
    radial-gradient(780px 280px at 50% 100%, rgba(123, 198, 255, 0.14), transparent 72%),
    var(--bg-image) center/cover no-repeat !important;
  filter: blur(1.5px) brightness(0.46) saturate(1.08) !important;
  opacity: 0.9 !important;
}

body::after {
  opacity: 0.22 !important;
}

.hud,
.mainTabs,
.panel {
  border-color: rgba(150, 201, 255, 0.2) !important;
  box-shadow: 0 24px 56px rgba(2, 8, 20, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(18px) saturate(118%) !important;
}

.hud {
  background:
    radial-gradient(540px 180px at 0% 0%, rgba(123, 198, 255, 0.16), transparent 64%),
    radial-gradient(520px 220px at 100% 100%, rgba(155, 144, 255, 0.11), transparent 68%),
    linear-gradient(180deg, rgba(16, 26, 46, 0.92), rgba(9, 15, 29, 0.96)) !important;
}

.mainTabs {
  background:
    radial-gradient(620px 200px at 50% 0%, rgba(123, 198, 255, 0.07), transparent 72%),
    linear-gradient(180deg, rgba(12, 19, 35, 0.82), rgba(8, 14, 25, 0.92)) !important;
}

.panel {
  background:
    radial-gradient(980px 320px at 0% 0%, rgba(123, 198, 255, 0.1), transparent 66%),
    radial-gradient(760px 300px at 100% 100%, rgba(155, 144, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.86), rgba(7, 12, 23, 0.95)) !important;
}

.panelReferrals {
  background:
    radial-gradient(720px 260px at 10% 8%, rgba(123, 198, 255, 0.14), transparent 64%),
    radial-gradient(560px 220px at 100% 100%, rgba(171, 141, 255, 0.11), transparent 68%),
    linear-gradient(180deg, rgba(10, 17, 32, 0.93), rgba(7, 12, 24, 0.98)) !important;
}

.panelLeaders {
  background:
    radial-gradient(780px 260px at 0% 0%, rgba(106, 203, 255, 0.14), transparent 62%),
    radial-gradient(620px 240px at 100% 12%, rgba(255, 194, 118, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(10, 17, 32, 0.93), rgba(7, 12, 24, 0.98)) !important;
}

.panelBattles {
  background:
    radial-gradient(820px 280px at 86% 12%, rgba(255, 160, 92, 0.11), transparent 62%),
    radial-gradient(720px 260px at 0% 100%, rgba(123, 198, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(10, 16, 27, 0.94), rgba(7, 11, 20, 0.98)) !important;
}

.stageInfo,
.tankShowcase,
.shopMenu,
.shopContent,
.containerWrap,
.statCard,
.itemCard,
.shopCard,
.battleBotCard,
.battleArena,
.battleSide,
.battleMovePad,
.battleActionPad,
.leadersTableWrap,
.leadersMeWrap,
.leadersBoardCard,
.promoRedeemCard,
.promoHeroCard,
.shopShowcase,
.chatCard,
.refHero,
.refLinkCard,
.refRewardCard,
.refMilestoneCard,
.questCard,
.card,
.battleModeCard,
.purchaseCard,
.rankUpCard,
.rewardCard,
.battleResultCard {
  border-color: rgba(149, 201, 255, 0.16) !important;
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(123, 198, 255, 0.1), transparent 64%),
    radial-gradient(340px 160px at 100% 100%, rgba(155, 144, 255, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(17, 27, 48, 0.9), rgba(10, 17, 32, 0.97)) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.mainTab,
.subTab,
.promoBtn,
.equipBtn,
.ghostBtn,
.shopBuyBtn,
.purchaseActionBtn,
.quickMatchWidgetCancel {
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
}

.mainTab {
  border-color: rgba(149, 201, 255, 0.12) !important;
  background: linear-gradient(180deg, rgba(21, 34, 58, 0.92), rgba(13, 22, 38, 0.96)) !important;
  color: rgba(213, 227, 247, 0.78) !important;
}

.mainTab.isActive,
.subTab.isActive {
  border-color: rgba(181, 224, 255, 0.5) !important;
  background:
    radial-gradient(260px 110px at 50% 0%, rgba(144, 214, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(66, 93, 146, 0.96), rgba(34, 53, 86, 0.98)) !important;
  box-shadow: 0 12px 26px rgba(34, 84, 162, 0.22), 0 0 0 1px rgba(144, 214, 255, 0.12) inset !important;
}

.promoBtn,
.equipBtn,
.quickBattleCta,
.purchaseActionBtn,
.shopBuyBtn,
.questClaimBtn {
  border: 1px solid rgba(201, 241, 255, 0.78) !important;
  background:
    radial-gradient(180px 80px at 50% 0%, rgba(255, 255, 255, 0.28), transparent 72%),
    linear-gradient(135deg, #95ecff 0%, #7cb8ff 50%, #8d84ff 100%) !important;
  color: #071321 !important;
  box-shadow: 0 16px 30px rgba(72, 123, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.ghostBtn,
.shopBuyBtnAlt,
.quickMatchWidgetCancel {
  border: 1px solid rgba(149, 201, 255, 0.18) !important;
  background: linear-gradient(180deg, rgba(27, 41, 64, 0.96), rgba(14, 24, 40, 0.98)) !important;
  color: #eef5ff !important;
}

.nickname,
.currency,
.statValue,
.questTitle,
.shopTitle,
.battleLobbyName,
.leadersName,
.purchaseTitle,
.profileTankTitle,
.stageTitle,
.leadersTitle,
.battlesTitle,
.shopShowcaseTitle,
.promoTitle,
.refHeroTitle,
.battleBotCardTitle,
.leadersHeroHeadline,
.quickMatchWidgetTitle,
.errorTitle,
.battleResultTitle,
.premiumContainerShowTitle,
.containerMetaTitle {
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

.hint,
.leadersSubtitle,
.leadersHeroSub,
.battleLobbyMeta,
.shopCardMeta,
.purchaseLabel,
.quickMatchWidgetMetricLabel,
.quickMatchWidgetKicker {
  color: rgba(210, 224, 245, 0.74) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

.leadersHeroCard {
  justify-content: stretch !important;
}

.leadersHeroArt {
  width: 100% !important;
  max-width: none !important;
  min-height: 212px !important;
  border-color: rgba(184, 222, 255, 0.14) !important;
  background:
    radial-gradient(620px 240px at 18% 18%, rgba(123, 198, 255, 0.16), transparent 62%),
    radial-gradient(560px 220px at 84% 76%, rgba(153, 112, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(18, 27, 42, 0.9), rgba(10, 15, 26, 0.96)) !important;
}

.quickMatchWidget {
  top: 24px !important;
  right: 16px !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  padding: 14px 14px 14px 16px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(155, 214, 255, 0.22) !important;
  grid-template-columns: minmax(0, 1fr) 112px !important;
  grid-template-areas:
    "top cancel"
    "body cancel"
    "status cancel" !important;
  gap: 10px 12px !important;
  background:
    linear-gradient(132deg, rgba(10, 17, 31, 0.94), rgba(11, 20, 38, 0.9) 52%, rgba(31, 20, 51, 0.84) 100%),
    radial-gradient(280px 120px at 84% 84%, rgba(155, 144, 255, 0.18), transparent 72%),
    radial-gradient(260px 120px at 12% 18%, rgba(123, 198, 255, 0.14), transparent 74%),
    var(--bg-image) center/cover no-repeat !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(168, 215, 255, 0.08) inset !important;
  backdrop-filter: blur(16px) saturate(118%) !important;
}

.quickMatchWidgetTop {
  gap: 10px !important;
}

.quickMatchWidgetEmblem {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border-color: rgba(153, 215, 255, 0.24) !important;
  background: linear-gradient(180deg, rgba(129, 222, 255, 0.16), rgba(78, 107, 255, 0.12)) !important;
  color: #bbecff !important;
  font-size: 18px !important;
}

.quickMatchWidgetKicker {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
}

.quickMatchWidgetTitle {
  font-size: 20px !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
}

.quickMatchWidgetBody {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.quickMatchWidgetMetric {
  min-height: 64px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border-color: rgba(155, 214, 255, 0.12) !important;
  background: linear-gradient(180deg, rgba(15, 24, 41, 0.76), rgba(10, 16, 29, 0.88)) !important;
  gap: 6px !important;
}

.quickMatchWidgetMetricLabel {
  font-size: 10px !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.quickMatchWidgetMetric b {
  color: #f3f8ff !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.quickMatchWidgetStatus {
  min-height: 28px !important;
  padding: 0 10px !important;
  border-color: rgba(120, 239, 203, 0.18) !important;
  background: rgba(120, 239, 203, 0.08) !important;
  color: rgba(219, 255, 245, 0.92) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

.quickMatchWidgetStatusDot {
  width: 7px !important;
  height: 7px !important;
  background: #78efcb !important;
  box-shadow: 0 0 12px rgba(120, 239, 203, 0.58) !important;
}

.quickMatchWidgetCancel {
  width: 112px !important;
  min-height: 100% !important;
  border-radius: 16px !important;
  font-size: 12px !important;
}

@media (max-width: 900px) {
  .quickMatchWidget {
    top: 14px !important;
    right: 10px !important;
    width: min(460px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
  }
}

@media (max-width: 640px) {
  .mainTab,
  .subTab,
  .promoBtn,
  .equipBtn,
  .ghostBtn,
  .shopBuyBtn,
  .purchaseActionBtn {
    letter-spacing: 0.02em !important;
  }

  .quickMatchWidget {
    top: 10px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    padding: 10px 10px 10px 12px !important;
    border-radius: 18px !important;
    grid-template-columns: minmax(0, 1fr) 94px !important;
    grid-template-areas:
      "top cancel"
      "body cancel"
      "status status" !important;
    gap: 8px 10px !important;
  }

  .quickMatchWidgetTop {
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .quickMatchWidgetEmblem {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
  }

  .quickMatchWidgetKicker {
    display: none !important;
  }

  .quickMatchWidgetTitle {
    font-size: 16px !important;
    line-height: 1.1 !important;
  }

  .quickMatchWidgetBody {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .quickMatchWidgetMetric {
    min-height: 52px !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
    gap: 4px !important;
  }

  .quickMatchWidgetMetricLabel {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  .quickMatchWidgetMetric b {
    font-size: 17px !important;
  }

  .quickMatchWidgetStatus {
    width: 100% !important;
    justify-content: center !important;
    font-size: 9px !important;
    padding: 0 8px !important;
  }

  .quickMatchWidgetCancel {
    width: 94px !important;
    min-height: 100% !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
  }

  .leadersHeroArt {
    min-height: 176px !important;
    padding: 16px !important;
  }

  .leadersHeroHeadline {
    font-size: 20px !important;
  }
}

/* ===== 2026 refinement pass ===== */
:root {
  --web-shell-bg: #060b14;
  --web-panel-a: rgba(12, 19, 36, 0.9);
  --web-panel-b: rgba(8, 13, 25, 0.96);
  --web-card-a: rgba(17, 27, 48, 0.88);
  --web-card-b: rgba(10, 17, 32, 0.96);
  --web-line: rgba(150, 201, 255, 0.2);
  --web-line-strong: rgba(188, 225, 255, 0.42);
  --web-text: #eef5ff;
  --web-text-soft: rgba(210, 224, 245, 0.74);
  --web-cyan: #90d6ff;
  --web-violet: #9b90ff;
  --web-mint: #78efcb;
  --web-shadow-lg: 0 24px 56px rgba(2, 8, 20, 0.44);
}

body {
  color: var(--web-text);
  background:
    radial-gradient(1280px 560px at 18% -8%, rgba(112, 198, 255, 0.13), transparent 60%),
    radial-gradient(980px 460px at 100% 8%, rgba(155, 144, 255, 0.11), transparent 58%),
    radial-gradient(880px 420px at 50% 100%, rgba(120, 239, 203, 0.08), transparent 62%),
    linear-gradient(180deg, #050a13 0%, #09111f 52%, #060a13 100%) !important;
}

body::before {
  background:
    linear-gradient(rgba(5, 10, 19, 0.34), rgba(5, 11, 22, 0.8)),
    radial-gradient(780px 280px at 50% 100%, rgba(123, 198, 255, 0.14), transparent 72%),
    var(--bg-image) center/cover no-repeat !important;
  filter: blur(1.5px) brightness(0.46) saturate(1.08) !important;
  opacity: 0.9 !important;
}

body::after {
  opacity: 0.22 !important;
  background:
    linear-gradient(180deg, rgba(149, 197, 255, 0.035), transparent 26%, transparent 74%, rgba(151, 127, 255, 0.04)),
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 76% 22%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 58% 76%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px) !important;
  background-size: auto, 132px 132px, 176px 176px, 118px 118px !important;
}

.hud,
.mainTabs,
.panel {
  border-color: var(--web-line) !important;
  box-shadow: var(--web-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(18px) saturate(118%) !important;
}

.hud {
  background:
    radial-gradient(540px 180px at 0% 0%, rgba(123, 198, 255, 0.16), transparent 64%),
    radial-gradient(520px 220px at 100% 100%, rgba(155, 144, 255, 0.11), transparent 68%),
    linear-gradient(180deg, rgba(16, 26, 46, 0.92), rgba(9, 15, 29, 0.96)) !important;
}

.mainTabs {
  background:
    radial-gradient(620px 200px at 50% 0%, rgba(123, 198, 255, 0.07), transparent 72%),
    linear-gradient(180deg, rgba(12, 19, 35, 0.82), rgba(8, 14, 25, 0.92)) !important;
}

.panel {
  background:
    radial-gradient(980px 320px at 0% 0%, rgba(123, 198, 255, 0.1), transparent 66%),
    radial-gradient(760px 300px at 100% 100%, rgba(155, 144, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.86), rgba(7, 12, 23, 0.95)) !important;
}

.panel::before,
.notice::before {
  border-color: rgba(190, 225, 255, 0.1) !important;
}

.panelProfile {
  background:
    radial-gradient(760px 260px at 12% 14%, rgba(107, 211, 255, 0.14), transparent 64%),
    radial-gradient(520px 240px at 88% 100%, rgba(120, 239, 203, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(9, 16, 31, 0.93), rgba(6, 11, 22, 0.98)) !important;
}

.panelReferrals {
  background:
    radial-gradient(720px 260px at 10% 8%, rgba(123, 198, 255, 0.14), transparent 64%),
    radial-gradient(560px 220px at 100% 100%, rgba(171, 141, 255, 0.11), transparent 68%),
    linear-gradient(180deg, rgba(10, 17, 32, 0.93), rgba(7, 12, 24, 0.98)) !important;
}

.panelLeaders {
  background:
    radial-gradient(780px 260px at 0% 0%, rgba(106, 203, 255, 0.14), transparent 62%),
    radial-gradient(620px 240px at 100% 12%, rgba(255, 194, 118, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(10, 17, 32, 0.93), rgba(7, 12, 24, 0.98)) !important;
}

.panelBattles {
  background:
    radial-gradient(820px 280px at 86% 12%, rgba(255, 160, 92, 0.11), transparent 62%),
    radial-gradient(720px 260px at 0% 100%, rgba(123, 198, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(10, 16, 27, 0.94), rgba(7, 11, 20, 0.98)) !important;
}

.panelGarage {
  background:
    radial-gradient(720px 280px at 86% 16%, rgba(147, 126, 255, 0.12), transparent 64%),
    radial-gradient(620px 240px at 0% 100%, rgba(123, 198, 255, 0.1), transparent 68%),
    linear-gradient(180deg, rgba(8, 15, 28, 0.94), rgba(6, 11, 22, 0.98)) !important;
}

.panelShop {
  background:
    radial-gradient(760px 280px at 0% 0%, rgba(123, 198, 255, 0.1), transparent 66%),
    radial-gradient(720px 280px at 100% 100%, rgba(120, 239, 203, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(9, 15, 29, 0.94), rgba(7, 12, 22, 0.98)) !important;
}

.panelContainers {
  background:
    radial-gradient(760px 280px at 50% 0%, rgba(255, 204, 120, 0.11), transparent 64%),
    radial-gradient(680px 260px at 0% 100%, rgba(123, 198, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(10, 15, 24, 0.94), rgba(7, 11, 20, 0.98)) !important;
}

.panelQuests {
  background:
    radial-gradient(760px 280px at 0% 0%, rgba(120, 239, 203, 0.1), transparent 64%),
    radial-gradient(720px 280px at 100% 100%, rgba(123, 198, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(9, 15, 26, 0.94), rgba(7, 11, 19, 0.98)) !important;
}

.panelSettings {
  background:
    radial-gradient(760px 280px at 0% 0%, rgba(123, 198, 255, 0.12), transparent 64%),
    radial-gradient(720px 280px at 100% 100%, rgba(155, 144, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(10, 16, 29, 0.94), rgba(7, 11, 21, 0.98)) !important;
}

.stageInfo,
.tankShowcase,
.shopMenu,
.shopContent,
.containerWrap,
.statCard,
.itemCard,
.shopCard,
.battleBotCard,
.battleArena,
.battleSide,
.battleMovePad,
.battleActionPad,
.leadersTableWrap,
.leadersMeWrap,
.leadersBoardCard,
.promoRedeemCard,
.promoHeroCard,
.shopShowcase,
.chatCard,
.refHero,
.refLinkCard,
.refRewardCard,
.refMilestoneCard,
.questCard,
.card,
.battleModeCard,
.purchaseCard,
.rankUpCard,
.rewardCard,
.battleResultCard {
  border-color: rgba(149, 201, 255, 0.16) !important;
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(123, 198, 255, 0.1), transparent 64%),
    radial-gradient(340px 160px at 100% 100%, rgba(155, 144, 255, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(17, 27, 48, 0.9), rgba(10, 17, 32, 0.97)) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.mainTab,
.subTab {
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

.mainTab {
  border-color: rgba(149, 201, 255, 0.12) !important;
  background: linear-gradient(180deg, rgba(21, 34, 58, 0.92), rgba(13, 22, 38, 0.96)) !important;
  color: rgba(213, 227, 247, 0.78) !important;
}

.mainTab.isActive,
.subTab.isActive {
  border-color: rgba(181, 224, 255, 0.5) !important;
  background:
    radial-gradient(260px 110px at 50% 0%, rgba(144, 214, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(66, 93, 146, 0.96), rgba(34, 53, 86, 0.98)) !important;
  box-shadow: 0 12px 26px rgba(34, 84, 162, 0.22), 0 0 0 1px rgba(144, 214, 255, 0.12) inset !important;
}

.promoBtn,
.equipBtn,
.quickBattleCta,
.purchaseActionBtn,
.shopBuyBtn,
.questClaimBtn {
  border: 1px solid rgba(201, 241, 255, 0.78) !important;
  background:
    radial-gradient(180px 80px at 50% 0%, rgba(255, 255, 255, 0.28), transparent 72%),
    linear-gradient(135deg, #95ecff 0%, #7cb8ff 50%, #8d84ff 100%) !important;
  color: #071321 !important;
  box-shadow: 0 16px 30px rgba(72, 123, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
}

.ghostBtn,
.shopBuyBtnAlt {
  border: 1px solid rgba(149, 201, 255, 0.18) !important;
  background: linear-gradient(180deg, rgba(27, 41, 64, 0.96), rgba(14, 24, 40, 0.98)) !important;
  color: #eef5ff !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
}

.nickname,
.currency,
.statValue,
.questTitle,
.shopTitle,
.battleLobbyName,
.leadersName,
.purchaseTitle,
.profileTankTitle,
.stageTitle,
.leadersTitle,
.battlesTitle,
.shopShowcaseTitle,
.promoTitle,
.refHeroTitle,
.battleBotCardTitle,
.leadersHeroHeadline,
.quickMatchWidgetTitle,
.errorTitle,
.battleResultTitle,
.premiumContainerShowTitle,
.containerMetaTitle {
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

.hint,
.leadersSubtitle,
.leadersHeroSub,
.battleLobbyMeta,
.shopCardMeta,
.purchaseLabel,
.quickMatchWidgetMetricLabel,
.quickMatchWidgetKicker {
  color: var(--web-text-soft) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

.leadersHeroCard {
  justify-content: stretch !important;
}

.leadersHeroArt {
  width: 100% !important;
  max-width: none !important;
  min-height: 212px !important;
  border-color: rgba(184, 222, 255, 0.14) !important;
  background:
    radial-gradient(620px 240px at 18% 18%, rgba(123, 198, 255, 0.16), transparent 62%),
    radial-gradient(560px 220px at 84% 76%, rgba(153, 112, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(18, 27, 42, 0.9), rgba(10, 15, 26, 0.96)) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.leadersHeroHeadline {
  font-size: 24px !important;
}

.leadersHeroSub {
  font-size: 14px !important;
}

.leadersBoardCard {
  padding: 20px 22px 18px !important;
}

.quickMatchWidget {
  position: fixed !important;
  top: 24px !important;
  right: 16px !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  padding: 14px 14px 14px 16px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(155, 214, 255, 0.22) !important;
  grid-template-columns: minmax(0, 1fr) 112px !important;
  grid-template-areas:
    "top cancel"
    "body cancel"
    "status cancel" !important;
  gap: 10px 12px !important;
  background:
    linear-gradient(132deg, rgba(10, 17, 31, 0.94), rgba(11, 20, 38, 0.9) 52%, rgba(31, 20, 51, 0.84) 100%),
    radial-gradient(280px 120px at 84% 84%, rgba(155, 144, 255, 0.18), transparent 72%),
    radial-gradient(260px 120px at 12% 18%, rgba(123, 198, 255, 0.14), transparent 74%),
    var(--bg-image) center/cover no-repeat !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(168, 215, 255, 0.08) inset !important;
  backdrop-filter: blur(16px) saturate(118%) !important;
}

.quickMatchWidget::before {
  background:
    linear-gradient(122deg, transparent 0 46%, rgba(160, 200, 255, 0.08) 58%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 35%) !important;
}

.quickMatchWidgetTop {
  gap: 10px !important;
}

.quickMatchWidgetEmblem {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border-color: rgba(153, 215, 255, 0.24) !important;
  background: linear-gradient(180deg, rgba(129, 222, 255, 0.16), rgba(78, 107, 255, 0.12)) !important;
  color: #bbecff !important;
  font-size: 18px !important;
}

.quickMatchWidgetKicker {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
}

.quickMatchWidgetTitle {
  font-size: 20px !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
}

.quickMatchWidgetBody {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.quickMatchWidgetMetric {
  min-height: 64px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border-color: rgba(155, 214, 255, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(15, 24, 41, 0.76), rgba(10, 16, 29, 0.88)) !important;
  gap: 6px !important;
}

.quickMatchWidgetMetricLabel {
  font-size: 10px !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.quickMatchWidgetMetric b {
  color: #f3f8ff !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.quickMatchWidgetStatus {
  min-height: 28px !important;
  padding: 0 10px !important;
  border-color: rgba(120, 239, 203, 0.18) !important;
  background: rgba(120, 239, 203, 0.08) !important;
  color: rgba(219, 255, 245, 0.92) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

.quickMatchWidgetStatusDot {
  width: 7px !important;
  height: 7px !important;
  background: #78efcb !important;
  box-shadow: 0 0 12px rgba(120, 239, 203, 0.58) !important;
}

.quickMatchWidgetCancel {
  width: 112px !important;
  min-height: 100% !important;
  border-radius: 16px !important;
  font-size: 12px !important;
}

@media (max-width: 900px) {
  .quickMatchWidget {
    top: 14px !important;
    right: 10px !important;
    width: min(460px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
  }
}

@media (max-width: 640px) {
  .mainTabs {
    gap: 6px !important;
  }

  .mainTab,
  .subTab,
  .promoBtn,
  .equipBtn,
  .ghostBtn,
  .shopBuyBtn,
  .purchaseActionBtn {
    letter-spacing: 0.02em !important;
  }

  .quickMatchWidget {
    top: 10px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    padding: 10px 10px 10px 12px !important;
    border-radius: 18px !important;
    grid-template-columns: minmax(0, 1fr) 94px !important;
    grid-template-areas:
      "top cancel"
      "body cancel"
      "status status" !important;
    gap: 8px 10px !important;
  }

  .quickMatchWidgetTop {
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .quickMatchWidgetEmblem {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
  }

  .quickMatchWidgetKicker {
    display: none !important;
  }

  .quickMatchWidgetTitle {
    font-size: 16px !important;
    line-height: 1.1 !important;
  }

  .quickMatchWidgetBody {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .quickMatchWidgetMetric {
    min-height: 52px !important;
    padding: 8px 9px !important;
    border-radius: 12px !important;
    gap: 4px !important;
  }

  .quickMatchWidgetMetricLabel {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  .quickMatchWidgetMetric b {
    font-size: 17px !important;
  }

  .quickMatchWidgetStatus {
    width: 100% !important;
    justify-content: center !important;
    font-size: 9px !important;
    padding: 0 8px !important;
  }

  .quickMatchWidgetCancel {
    width: 94px !important;
    min-height: 100% !important;
    padding: 10px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
  }

  .leadersHeroArt {
    min-height: 176px !important;
    padding: 16px !important;
  }

  .leadersHeroHeadline {
    font-size: 20px !important;
  }
}
/* EOF mobile/game overrides */
#quickMatchWidget[style*="display:none"] { display: none !important; }
.questClaimBtn:disabled { background: linear-gradient(180deg, rgba(110, 121, 140, 0.96), rgba(75, 85, 102, 0.98)) !important; border: 1px solid rgba(191, 202, 216, 0.24) !important; color: rgba(232, 239, 246, 0.86) !important; box-shadow: none !important; }
.errorHead { background: radial-gradient(320px 140px at 0% 0%, rgba(255, 100, 100, 0.22), transparent 70%), linear-gradient(180deg, rgba(76, 16, 24, 0.78), rgba(34, 11, 17, 0.78)) !important; border-bottom: 1px solid rgba(255, 110, 110, 0.14) !important; }
.errorCard { border-color: rgba(255, 103, 103, 0.28) !important; background: radial-gradient(460px 180px at 50% 0%, rgba(255, 95, 95, 0.22), transparent 70%), linear-gradient(180deg, rgba(34, 12, 16, 0.98), rgba(12, 7, 14, 0.99)) !important; }
.errorText { color: #fff0f0 !important; text-align: center !important; }
@media (max-width: 640px) {
  .mainTabs { display: flex !important; gap: 6px !important; padding: 6px !important; overflow-x: auto !important; scrollbar-width: none; }
  .mainTabs::-webkit-scrollbar { display: none; }
  .mainTab { flex: 0 0 auto !important; min-width: 84px !important; min-height: 38px !important; padding: 8px 10px !important; font-size: 10px !important; border-radius: 11px !important; }
  .quickMatchWidget { top: 10px !important; right: 8px !important; width: min(94vw, 420px) !important; padding: 12px !important; border-radius: 18px !important; grid-template-columns: 1fr !important; grid-template-areas: "top" "body" "status" "cancel" !important; gap: 8px !important; }
  .quickMatchWidgetBody { grid-template-columns: 1fr !important; }
  .quickMatchWidgetTitle { font-size: 18px !important; }
  .quickMatchWidgetMetric { min-height: 58px !important; padding: 9px 10px !important; }
  .quickMatchWidgetMetric b { font-size: 20px !important; }
  .quickMatchWidgetCancel { width: 100% !important; min-height: 46px !important; border-radius: 14px !important; }
}

/* ===== Last-mile guaranteed overrides ===== */
#quickMatchWidget[style*="display:none"] { display: none !important; }
.questClaimBtn:disabled { background: linear-gradient(180deg, rgba(110, 121, 140, 0.96), rgba(75, 85, 102, 0.98)) !important; border: 1px solid rgba(191, 202, 216, 0.24) !important; color: rgba(232, 239, 246, 0.86) !important; box-shadow: none !important; }
.errorHead { background: radial-gradient(320px 140px at 0% 0%, rgba(255, 100, 100, 0.22), transparent 70%), linear-gradient(180deg, rgba(76, 16, 24, 0.78), rgba(34, 11, 17, 0.78)) !important; border-bottom: 1px solid rgba(255, 110, 110, 0.14) !important; }
.errorCard { border-color: rgba(255, 103, 103, 0.28) !important; background: radial-gradient(460px 180px at 50% 0%, rgba(255, 95, 95, 0.22), transparent 70%), linear-gradient(180deg, rgba(34, 12, 16, 0.98), rgba(12, 7, 14, 0.99)) !important; }
.errorText { color: #fff0f0 !important; text-align: center !important; }

@media (max-width: 640px) {
  .mainTabs {
    display: flex !important;
    gap: 6px !important;
    padding: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .mainTabs::-webkit-scrollbar { display: none; }
  .mainTab {
    flex: 0 0 auto !important;
    min-width: 84px !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 10px !important;
    border-radius: 11px !important;
  }
  .quickMatchWidget {
    top: 10px !important;
    right: 8px !important;
    width: min(94vw, 420px) !important;
    padding: 12px !important;
    border-radius: 18px !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: "top" "body" "status" "cancel" !important;
    gap: 8px !important;
  }
  .quickMatchWidgetBody { grid-template-columns: 1fr !important; }
  .quickMatchWidgetTitle { font-size: 18px !important; }
  .quickMatchWidgetMetric { min-height: 58px !important; padding: 9px 10px !important; }
  .quickMatchWidgetMetric b { font-size: 20px !important; }
  .quickMatchWidgetCancel { width: 100% !important; min-height: 46px !important; border-radius: 14px !important; }
}

/* ===== Absolute final overrides ===== */
#quickMatchWidget[style*="display:none"] { display: none !important; }

.quickMatchWidget {
  border-color: rgba(255, 191, 92, 0.28) !important;
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 211, 134, 0.08) inset !important;
}

.tankShowcase.isPreviewMode {
  border-color: rgba(255, 214, 102, 0.34) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 214, 102, 0.14) inset, 0 0 24px rgba(255, 214, 102, 0.08) !important;
}

.tankShowcase.isPreviewMode::after {
  content: "PREVIEW";
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 102, 0.36);
  background: rgba(255, 214, 102, 0.12);
  color: rgba(255, 236, 178, 0.98);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.errorModal {
  background: radial-gradient(480px 240px at 50% 22%, rgba(255, 76, 76, 0.18), transparent 68%), rgba(5, 8, 14, 0.86) !important;
  backdrop-filter: blur(10px);
}

.errorCard {
  width: min(560px, calc(100vw - 24px));
  border-radius: 24px;
  border: 1px solid rgba(255, 103, 103, 0.28) !important;
  background: radial-gradient(460px 180px at 50% 0%, rgba(255, 95, 95, 0.22), transparent 70%), linear-gradient(180deg, rgba(34, 12, 16, 0.98), rgba(12, 7, 14, 0.99)) !important;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 115, 115, 0.08) inset, 0 0 46px rgba(255, 74, 74, 0.12) !important;
}

.errorBody {
  min-height: 290px;
  background: radial-gradient(320px 160px at 50% 34%, rgba(255, 95, 95, 0.16), transparent 72%), linear-gradient(180deg, rgba(24, 10, 15, 0.2), transparent);
}

.errorText {
  max-width: 420px;
  text-align: center;
  color: #fff0f0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

/* ===== Ultra polish pass ===== */
.promoBtn:disabled,
.equipBtn:disabled,
.shopBuyBtn:disabled,
.questClaimBtn:disabled,
.promoBtn.isDisabled,
.equipBtn.isDisabled {
  background: linear-gradient(180deg, rgba(110, 121, 140, 0.96), rgba(75, 85, 102, 0.98)) !important;
  border: 1px solid rgba(191, 202, 216, 0.24) !important;
  color: rgba(232, 239, 246, 0.86) !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: not-allowed !important;
}

.questClaimBtn:disabled {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.questCard {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
}

.questFooter {
  align-items: end;
}

.questStatus {
  color: rgba(186, 205, 229, 0.82);
}

.errorHead {
  padding: 18px 20px 16px !important;
  background:
    radial-gradient(320px 140px at 0% 0%, rgba(255, 100, 100, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(76, 16, 24, 0.78), rgba(34, 11, 17, 0.78)) !important;
  border-bottom: 1px solid rgba(255, 110, 110, 0.14);
}

.errorAccent {
  width: 14px !important;
  height: 14px !important;
  box-shadow: 0 0 18px rgba(255, 100, 100, 0.82), 0 0 0 6px rgba(255, 100, 100, 0.06) !important;
}

.errorTitle {
  font-size: 34px !important;
}

.errorBody {
  border-top: none !important;
}

.errorIcon {
  position: relative;
}

.errorIcon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 32px;
  border: 1px solid rgba(255, 103, 103, 0.12);
  pointer-events: none;
}

.panel::before,
.notice::before {
  border-color: rgba(160, 214, 255, 0.1);
}

.mainTabs {
  align-items: stretch;
}

.mainTab {
  text-wrap: balance;
}

.shopCard,
.questCard,
.battleLobbyCard,
.refRewardCard,
.refMilestoneCard,
.card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.shopCard:hover,
.questCard:hover,
.battleLobbyCard:hover,
.refRewardCard:hover,
.refMilestoneCard:hover {
  transform: translateY(-2px);
}

.quickMatchWidgetMetric {
  min-height: 72px;
}

.quickMatchWidgetMetric b {
  font-size: 24px;
}

.quickMatchWidgetCancel {
  font-size: 13px;
}

@media (max-width: 900px) {
  .hud {
    padding: 12px;
    border-radius: 18px;
  }

  .audioControl {
    min-width: 150px;
  }

  .mainTab {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 11px;
  }

  .shopShowcaseTitle,
  .leadersTitle,
  .refHeroTitle,
  .battlesTitle,
  .profileTankTitle {
    font-size: 28px !important;
  }

  .quickMatchWidget {
    width: min(540px, calc(100vw - 20px)) !important;
    padding: 14px 14px 14px 15px !important;
    grid-template-columns: minmax(0, 1fr) 112px !important;
  }

  .quickMatchWidgetTitle {
    font-size: 22px !important;
  }

  .quickMatchWidgetMetric {
    min-height: 66px;
    padding: 10px 12px;
  }

  .quickMatchWidgetMetric b {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .hud {
    gap: 8px;
  }

  .nickname {
    font-size: 14px;
  }

  .mainTabs {
    display: flex !important;
    gap: 6px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 16px;
  }

  .mainTabs::-webkit-scrollbar {
    display: none;
  }

  .mainTab {
    flex: 0 0 auto;
    min-width: 84px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .panel {
    margin-top: 10px;
    padding: 10px;
  }

  .statCard {
    min-height: 92px;
    padding: 12px;
  }

  .statValue {
    font-size: 22px;
  }

  .shopMenu,
  .shopShowcase,
  .chatCard,
  .refHero,
  .refLinkCard,
  .questCard,
  .card,
  .battleArena,
  .battleSide {
    border-radius: 16px !important;
  }

  .quickMatchWidget {
    top: 10px !important;
    right: 8px !important;
    width: min(94vw, 420px) !important;
    padding: 12px !important;
    border-radius: 18px !important;
    gap: 8px !important;
  }

  .quickMatchWidgetEmblem {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
  }

  .quickMatchWidgetKicker {
    font-size: 9px;
  }

  .quickMatchWidgetTitle {
    font-size: 18px !important;
  }

  .quickMatchWidgetMetric {
    min-height: 58px;
    padding: 9px 10px;
    border-radius: 13px;
  }

  .quickMatchWidgetMetricLabel {
    font-size: 10px;
  }

  .quickMatchWidgetMetric b {
    font-size: 20px;
  }

  .quickMatchWidgetCancel {
    min-height: 46px !important;
    border-radius: 14px !important;
    font-size: 12px;
  }

  .quickMatchWidgetStatus {
    min-height: 28px;
    padding: 0 10px;
    font-size: 10px;
  }

  .errorCard {
    width: min(92vw, 420px);
  }

  .errorTitle {
    font-size: 26px !important;
  }

  .errorBody {
    min-height: 236px;
    padding: 18px 14px 20px;
  }

  .errorIcon {
    width: 84px;
    height: 84px;
    font-size: 42px;
    border-radius: 22px;
  }

  .errorText {
    font-size: 20px;
  }
}

/* ===== Visual finish: widget + section atmosphere ===== */
.quickMatchWidget {
  top: 18px !important;
  right: 18px !important;
  width: min(620px, calc(100vw - 24px)) !important;
  padding: 16px 16px 16px 18px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 191, 92, 0.28) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px !important;
  grid-template-areas:
    "top cancel"
    "body cancel"
    "status cancel";
  gap: 12px 16px !important;
  background:
    linear-gradient(90deg, rgba(9, 16, 27, 0.94) 0%, rgba(9, 16, 27, 0.82) 42%, rgba(26, 18, 10, 0.72) 100%),
    radial-gradient(320px 140px at 78% 68%, rgba(255, 157, 51, 0.22), transparent 72%),
    radial-gradient(260px 120px at 16% 20%, rgba(126, 188, 255, 0.14), transparent 74%),
    var(--bg-image) center/cover no-repeat !important;
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 211, 134, 0.08) inset !important;
}

.quickMatchWidgetTop { grid-area: top; display: flex; align-items: center; gap: 12px; min-width: 0; }
.quickMatchWidgetBody { grid-area: body; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quickMatchWidgetStatus { grid-area: status; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; width: fit-content; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(126, 255, 53, 0.22); background: rgba(126, 255, 53, 0.08); color: rgba(223, 255, 204, 0.92); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.quickMatchWidgetCancel { grid-area: cancel; width: 132px !important; min-height: 100%; border-radius: 18px !important; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.quickMatchWidgetEmblem { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 191, 92, 0.26); background: linear-gradient(180deg, rgba(255, 167, 72, 0.18), rgba(68, 34, 9, 0.18)); color: #ffd36f; font-size: 20px; }
.quickMatchWidgetHeading { min-width: 0; display: grid; gap: 4px; }
.quickMatchWidgetKicker { color: rgba(255, 208, 143, 0.76); font-size: 10px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.quickMatchWidgetTitle { padding: 0 !important; font-size: 26px !important; line-height: 1 !important; letter-spacing: 0.03em !important; }
.quickMatchWidgetMetric { min-width: 0; min-height: 76px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(12, 21, 36, 0.72), rgba(8, 14, 24, 0.84)); display: grid; gap: 8px; align-content: space-between; }
.quickMatchWidgetMetricLabel { color: rgba(214, 228, 246, 0.82); font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase; overflow-wrap: anywhere; }
.quickMatchWidgetMetric b { color: #ffd45e; font-size: 26px; font-weight: 1000; line-height: 1; text-shadow: 0 0 16px rgba(255, 195, 92, 0.18); }
.quickMatchWidgetStatusDot { width: 8px; height: 8px; border-radius: 50%; background: #8ef95b; box-shadow: 0 0 14px rgba(142, 249, 91, 0.72); animation: quickMatchPulse 1s ease-in-out infinite; }

.panelProfile { background: radial-gradient(760px 260px at 12% 14%, rgba(116, 190, 255, 0.14), transparent 64%), radial-gradient(540px 220px at 88% 100%, rgba(124, 255, 192, 0.08), transparent 68%), linear-gradient(180deg, rgba(8, 16, 29, 0.92), rgba(6, 12, 22, 0.98)) !important; }
.panelGarage { background: radial-gradient(720px 280px at 86% 16%, rgba(131, 116, 255, 0.12), transparent 64%), radial-gradient(620px 240px at 0% 100%, rgba(123, 198, 255, 0.1), transparent 68%), linear-gradient(180deg, rgba(8, 15, 28, 0.94), rgba(6, 11, 22, 0.98)) !important; }
.panelBattles { background: radial-gradient(820px 280px at 86% 12%, rgba(255, 151, 79, 0.12), transparent 62%), radial-gradient(700px 260px at 0% 100%, rgba(123, 198, 255, 0.08), transparent 68%), linear-gradient(180deg, rgba(10, 16, 27, 0.94), rgba(7, 11, 20, 0.98)) !important; }
.panelShop { background: radial-gradient(760px 280px at 0% 0%, rgba(123, 198, 255, 0.1), transparent 66%), radial-gradient(720px 280px at 100% 100%, rgba(255, 211, 110, 0.08), transparent 68%), linear-gradient(180deg, rgba(9, 15, 29, 0.94), rgba(7, 12, 22, 0.98)) !important; }
.panelContainers { background: radial-gradient(760px 280px at 50% 0%, rgba(255, 203, 104, 0.1), transparent 64%), radial-gradient(680px 260px at 0% 100%, rgba(123, 198, 255, 0.08), transparent 68%), linear-gradient(180deg, rgba(10, 15, 24, 0.94), rgba(7, 11, 20, 0.98)) !important; }
.panelQuests { background: radial-gradient(760px 280px at 0% 0%, rgba(142, 249, 91, 0.1), transparent 64%), radial-gradient(720px 280px at 100% 100%, rgba(123, 198, 255, 0.08), transparent 68%), linear-gradient(180deg, rgba(9, 15, 26, 0.94), rgba(7, 11, 19, 0.98)) !important; }
.panelSettings { background: radial-gradient(760px 280px at 0% 0%, rgba(123, 198, 255, 0.12), transparent 64%), radial-gradient(720px 280px at 100% 100%, rgba(153, 112, 255, 0.08), transparent 68%), linear-gradient(180deg, rgba(10, 16, 29, 0.94), rgba(7, 11, 21, 0.98)) !important; }

.quickBattleCta { background: radial-gradient(260px 120px at 50% 0%, rgba(255, 243, 181, 0.28), transparent 70%), linear-gradient(180deg, #9ce8ff 0%, #58aaff 52%, #2d68f6 100%) !important; border: 1px solid rgba(193, 235, 255, 0.9) !important; color: #06111f !important; box-shadow: 0 18px 36px rgba(36, 124, 255, 0.32), inset 0 1px 0 rgba(255,255,255,0.28) !important; }
.tankShowcase { background: radial-gradient(360px 180px at 50% 58%, rgba(123, 198, 255, 0.16), transparent 68%), linear-gradient(180deg, rgba(12, 19, 33, 0.94), rgba(7, 12, 22, 0.98)) !important; }
.battleModesGrid .battleModeCard:nth-child(1) { background: radial-gradient(320px 140px at 50% 0%, rgba(123, 198, 255, 0.18), transparent 68%), linear-gradient(180deg, rgba(18, 31, 52, 0.98), rgba(10, 18, 31, 0.98)) !important; }
.battleModesGrid .battleModeCard:nth-child(2) { background: radial-gradient(320px 140px at 50% 0%, rgba(255, 171, 85, 0.16), transparent 68%), linear-gradient(180deg, rgba(33, 24, 16, 0.98), rgba(14, 18, 30, 0.98)) !important; }
.battleModesGrid .battleModeCard:nth-child(3), .battleModesGrid .battleModeCard:nth-child(4) { background: radial-gradient(320px 140px at 50% 0%, rgba(142, 249, 91, 0.14), transparent 68%), linear-gradient(180deg, rgba(18, 30, 29, 0.98), rgba(10, 18, 26, 0.98)) !important; }
.battleLobbyCard { background: radial-gradient(320px 120px at 0% 0%, rgba(123, 198, 255, 0.14), transparent 68%), linear-gradient(180deg, rgba(21, 33, 52, 0.98), rgba(11, 18, 31, 0.98)) !important; }
.refHero { background: radial-gradient(520px 180px at 0% 0%, rgba(123, 198, 255, 0.2), transparent 66%), radial-gradient(420px 180px at 100% 100%, rgba(153, 112, 255, 0.16), transparent 70%), linear-gradient(180deg, rgba(18, 29, 46, 0.97), rgba(10, 17, 31, 0.99)) !important; }
.containerWrap { background: radial-gradient(420px 220px at 50% 45%, rgba(255, 203, 104, 0.2), transparent 70%), radial-gradient(320px 180px at 50% 65%, rgba(123, 198, 255, 0.16), transparent 72%), linear-gradient(180deg, rgba(16, 24, 39, 0.96), rgba(9, 15, 26, 0.98)) !important; }
.questCard { background: radial-gradient(360px 140px at 0% -20%, rgba(126, 188, 255, 0.24), transparent 58%), radial-gradient(260px 120px at 100% 130%, rgba(151, 111, 255, 0.12), transparent 62%), linear-gradient(180deg, rgba(22, 35, 57, 0.96), rgba(11, 18, 31, 0.98)) !important; }

@media (max-width: 900px) {
  .quickMatchWidget { top: 12px !important; right: 10px !important; width: min(620px, calc(100vw - 20px)) !important; }
}

@media (max-width: 640px) {
  .quickMatchWidget { grid-template-columns: 1fr !important; grid-template-areas: "top" "body" "status" "cancel"; gap: 10px !important; padding: 14px !important; }
  .quickMatchWidgetBody { grid-template-columns: 1fr !important; }
  .quickMatchWidgetCancel { width: 100% !important; min-height: 54px; }
  .quickMatchWidgetTitle { font-size: 22px !important; }
}

#quickMatchWidget[style*="display:none"] {
  display: none !important;
}

.tankShowcase.isPreviewMode {
  border-color: rgba(255, 214, 102, 0.34) !important;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 214, 102, 0.14) inset,
    0 0 24px rgba(255, 214, 102, 0.08) !important;
}

.tankShowcase.isPreviewMode::after {
  content: "PREVIEW";
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 102, 0.36);
  background: rgba(255, 214, 102, 0.12);
  color: rgba(255, 236, 178, 0.98);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.tankShowcase.isPreviewMode #garageTankImg {
  filter: drop-shadow(0 20px 28px rgba(255, 191, 77, 0.22));
}

.chatCard,
.battleLobbyCard,
.refRewardCard,
.refMilestoneCard,
.questCard,
.card,
.purchaseCard,
.rankUpCard,
.lootModalCard,
.rewardCard {
  overflow: hidden;
  position: relative;
}

.chatCard::before,
.battleLobbyCard::before,
.refRewardCard::before,
.refMilestoneCard::before,
.questCard::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 38%);
  pointer-events: none;
}

.battleLobbyCard {
  padding: 16px;
}

.battleLobbyTag {
  background: rgba(96, 149, 226, 0.14);
  border-color: rgba(123, 198, 255, 0.18);
}

.refRewardCard {
  display: grid;
  align-content: start;
  gap: 10px;
}

.refRewardIcon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(123, 198, 255, 0.18), rgba(52, 84, 132, 0.14));
  border: 1px solid rgba(123, 198, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.refRewardTitle,
.refMilestoneReward,
.questTitle,
.shopTitle {
  color: #f4f8ff;
  font-weight: 900;
}

.battleLobbySelect,
.battleLobbyAllRanks,
.battleLobbyCard,
.purchaseActionBtn {
  border-radius: 16px;
}

.errorModal {
  background:
    radial-gradient(480px 240px at 50% 22%, rgba(255, 76, 76, 0.18), transparent 68%),
    rgba(5, 8, 14, 0.86);
  backdrop-filter: blur(10px);
}

.errorCard {
  width: min(560px, calc(100vw - 24px));
  border-radius: 24px;
  border: 1px solid rgba(255, 103, 103, 0.28);
  background:
    radial-gradient(460px 180px at 50% 0%, rgba(255, 95, 95, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(34, 12, 16, 0.98), rgba(12, 7, 14, 0.99));
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 115, 115, 0.08) inset,
    0 0 46px rgba(255, 74, 74, 0.12);
  overflow: hidden;
}

.errorHead {
  padding: 18px 20px 0;
  gap: 12px;
  align-items: center;
}

.errorAccent {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6464;
  box-shadow: 0 0 18px rgba(255, 100, 100, 0.82);
}

.errorTitle {
  color: #ffe8e8;
  letter-spacing: 0.14em;
  text-shadow: 0 0 18px rgba(255, 100, 100, 0.22);
}

.errorBody {
  min-height: 290px;
  padding: 24px 22px 24px;
  display: grid;
  place-items: center;
  gap: 18px;
  background:
    radial-gradient(320px 160px at 50% 34%, rgba(255, 95, 95, 0.16), transparent 72%),
    linear-gradient(180deg, rgba(24, 10, 15, 0.2), transparent);
}

.errorIcon {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 56px;
  color: #ffd6d6;
  border: 1px solid rgba(255, 103, 103, 0.24);
  background: linear-gradient(180deg, rgba(255, 95, 95, 0.14), rgba(76, 13, 13, 0.22));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 28px rgba(255, 80, 80, 0.12);
}

.errorText {
  max-width: 420px;
  text-align: center;
  color: #fff0f0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(255, 95, 95, 0.1);
}

/* ===== Art pass: matchmaking widget + section skins ===== */
.quickMatchWidget {
  top: 18px;
  right: 18px;
  width: min(620px, calc(100vw - 24px));
  padding: 16px 16px 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 191, 92, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  grid-template-areas:
    "top cancel"
    "body cancel"
    "status cancel";
  gap: 12px 16px;
  background:
    linear-gradient(90deg, rgba(9, 16, 27, 0.94) 0%, rgba(9, 16, 27, 0.82) 42%, rgba(26, 18, 10, 0.72) 100%),
    radial-gradient(320px 140px at 78% 68%, rgba(255, 157, 51, 0.22), transparent 72%),
    radial-gradient(260px 120px at 16% 20%, rgba(126, 188, 255, 0.14), transparent 74%),
    var(--bg-image) center/cover no-repeat;
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 211, 134, 0.08) inset;
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.quickMatchWidget::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 46%, rgba(255, 166, 71, 0.1) 56%, transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 35%);
  pointer-events: none;
}

.quickMatchWidget::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 153, 0.08);
  pointer-events: none;
}

.quickMatchWidgetTop,
.quickMatchWidgetBody,
.quickMatchWidgetStatus,
.quickMatchWidgetCancel {
  position: relative;
  z-index: 1;
}

.quickMatchWidgetTop {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.quickMatchWidgetEmblem {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 191, 92, 0.26);
  background: linear-gradient(180deg, rgba(255, 167, 72, 0.18), rgba(68, 34, 9, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(255, 157, 51, 0.12);
  color: #ffd36f;
  font-size: 20px;
}

.quickMatchWidgetHeading {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.quickMatchWidgetKicker {
  color: rgba(255, 208, 143, 0.76);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quickMatchWidgetTitle {
  padding: 0;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(255, 174, 77, 0.16);
}

.quickMatchWidgetBody {
  grid-area: body;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quickMatchWidgetMetric {
  min-width: 0;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(12, 21, 36, 0.72), rgba(8, 14, 24, 0.84));
  display: grid;
  gap: 8px;
  align-content: space-between;
}

.quickMatchWidgetMetricLabel {
  color: rgba(214, 228, 246, 0.82);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.quickMatchWidgetMetric b {
  color: #ffd45e;
  font-size: 26px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 195, 92, 0.18);
}

.quickMatchWidgetStatus {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 255, 53, 0.22);
  background: rgba(126, 255, 53, 0.08);
  color: rgba(223, 255, 204, 0.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quickMatchWidgetStatusDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ef95b;
  box-shadow: 0 0 14px rgba(142, 249, 91, 0.72);
  animation: quickMatchPulse 1s ease-in-out infinite;
}

@keyframes quickMatchPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.7; }
}

.quickMatchWidgetCancel {
  grid-area: cancel;
  width: 132px;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.quickMatchWidgetCancel:hover {
  filter: brightness(1.05);
  border-color: rgba(255, 214, 153, 0.24);
}

.panelProfile {
  background:
    radial-gradient(760px 260px at 12% 14%, rgba(116, 190, 255, 0.14), transparent 64%),
    radial-gradient(540px 220px at 88% 100%, rgba(124, 255, 192, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(8, 16, 29, 0.92), rgba(6, 12, 22, 0.98));
}

.panelGarage {
  background:
    radial-gradient(720px 280px at 86% 16%, rgba(131, 116, 255, 0.12), transparent 64%),
    radial-gradient(620px 240px at 0% 100%, rgba(123, 198, 255, 0.1), transparent 68%),
    linear-gradient(180deg, rgba(8, 15, 28, 0.94), rgba(6, 11, 22, 0.98));
}

.panelBattles {
  background:
    radial-gradient(820px 280px at 86% 12%, rgba(255, 151, 79, 0.12), transparent 62%),
    radial-gradient(700px 260px at 0% 100%, rgba(123, 198, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(10, 16, 27, 0.94), rgba(7, 11, 20, 0.98));
}

.panelShop {
  background:
    radial-gradient(760px 280px at 0% 0%, rgba(123, 198, 255, 0.1), transparent 66%),
    radial-gradient(720px 280px at 100% 100%, rgba(255, 211, 110, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(9, 15, 29, 0.94), rgba(7, 12, 22, 0.98));
}

.panelContainers {
  background:
    radial-gradient(760px 280px at 50% 0%, rgba(255, 203, 104, 0.1), transparent 64%),
    radial-gradient(680px 260px at 0% 100%, rgba(123, 198, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(10, 15, 24, 0.94), rgba(7, 11, 20, 0.98));
}

.panelQuests {
  background:
    radial-gradient(760px 280px at 0% 0%, rgba(142, 249, 91, 0.1), transparent 64%),
    radial-gradient(720px 280px at 100% 100%, rgba(123, 198, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(9, 15, 26, 0.94), rgba(7, 11, 19, 0.98));
}

.panelSettings {
  background:
    radial-gradient(760px 280px at 0% 0%, rgba(123, 198, 255, 0.12), transparent 64%),
    radial-gradient(720px 280px at 100% 100%, rgba(153, 112, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(10, 16, 29, 0.94), rgba(7, 11, 21, 0.98));
}

.profileQuickBattleWrap,
.battleLobbyCreateWrap {
  margin-bottom: 16px;
}

.quickBattleCta {
  background:
    radial-gradient(260px 120px at 50% 0%, rgba(255, 243, 181, 0.28), transparent 70%),
    linear-gradient(180deg, #9ce8ff 0%, #58aaff 52%, #2d68f6 100%) !important;
  border: 1px solid rgba(193, 235, 255, 0.9) !important;
  color: #06111f !important;
  box-shadow: 0 18px 36px rgba(36, 124, 255, 0.32), inset 0 1px 0 rgba(255,255,255,0.28) !important;
}

.stageInfo {
  background:
    linear-gradient(180deg, rgba(17, 29, 46, 0.92), rgba(10, 17, 29, 0.98)) !important;
}

.tankShowcase {
  background:
    radial-gradient(360px 180px at 50% 58%, rgba(123, 198, 255, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(12, 19, 33, 0.94), rgba(7, 12, 22, 0.98)) !important;
}

.battleModeCard {
  overflow: hidden;
  position: relative;
}

.battleModeCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 34%);
  pointer-events: none;
}

.battleModesGrid .battleModeCard:nth-child(1) {
  background:
    radial-gradient(320px 140px at 50% 0%, rgba(123, 198, 255, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(18, 31, 52, 0.98), rgba(10, 18, 31, 0.98)) !important;
}

.battleModesGrid .battleModeCard:nth-child(2) {
  background:
    radial-gradient(320px 140px at 50% 0%, rgba(255, 171, 85, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(33, 24, 16, 0.98), rgba(14, 18, 30, 0.98)) !important;
}

.battleModesGrid .battleModeCard:nth-child(3),
.battleModesGrid .battleModeCard:nth-child(4) {
  background:
    radial-gradient(320px 140px at 50% 0%, rgba(142, 249, 91, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(18, 30, 29, 0.98), rgba(10, 18, 26, 0.98)) !important;
}

.battleLobbyCard {
  padding: 14px;
  background:
    radial-gradient(320px 120px at 0% 0%, rgba(123, 198, 255, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(21, 33, 52, 0.98), rgba(11, 18, 31, 0.98));
}

.refHero {
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(123, 198, 255, 0.2), transparent 66%),
    radial-gradient(420px 180px at 100% 100%, rgba(153, 112, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(18, 29, 46, 0.97), rgba(10, 17, 31, 0.99)) !important;
}

.refRewardCard {
  min-height: 152px;
}

.containerWrap {
  background:
    radial-gradient(420px 220px at 50% 45%, rgba(255, 203, 104, 0.2), transparent 70%),
    radial-gradient(320px 180px at 50% 65%, rgba(123, 198, 255, 0.16), transparent 72%),
    linear-gradient(180deg, rgba(16, 24, 39, 0.96), rgba(9, 15, 26, 0.98)) !important;
}

.questCard {
  background:
    radial-gradient(360px 140px at 0% -20%, rgba(126, 188, 255, 0.24), transparent 58%),
    radial-gradient(260px 120px at 100% 130%, rgba(151, 111, 255, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(22, 35, 57, 0.96), rgba(11, 18, 31, 0.98)) !important;
}

.panelSettings .card {
  background:
    radial-gradient(360px 140px at 0% 0%, rgba(123, 198, 255, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(18, 29, 46, 0.96), rgba(10, 17, 31, 0.98)) !important;
}

@media (max-width: 900px) {
  .quickMatchWidget {
    top: 12px;
    right: 10px;
    width: min(620px, calc(100vw - 20px));
  }
}

@media (max-width: 640px) {
  .quickMatchWidget {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "body"
      "status"
      "cancel";
    gap: 10px;
    padding: 14px;
  }

  .quickMatchWidgetBody {
    grid-template-columns: 1fr;
  }

  .quickMatchWidgetCancel {
    width: 100%;
    min-height: 54px;
  }

  .quickMatchWidgetTitle {
    font-size: 22px;
  }
}

/* ===== Game UI Refresh ===== */
:root {
  --shell-ink: #08101d;
  --shell-panel: rgba(11, 18, 32, 0.9);
  --shell-panel-strong: rgba(14, 23, 40, 0.96);
  --shell-border: rgba(123, 183, 255, 0.26);
  --shell-border-strong: rgba(168, 215, 255, 0.48);
  --shell-blue: #7bc6ff;
  --shell-green: #8ef95b;
  --shell-gold: #ffd66e;
  --shell-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
}

body {
  background:
    radial-gradient(1400px 620px at 50% -10%, rgba(90, 150, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #060b14 0%, #08101b 48%, #060b13 100%);
}

body::before {
  background:
    linear-gradient(rgba(4, 10, 19, 0.34), rgba(5, 11, 20, 0.76)),
    radial-gradient(700px 260px at 50% 100%, rgba(126, 188, 255, 0.12), transparent 72%),
    var(--bg-image) center/cover no-repeat;
  filter: blur(1.5px) brightness(0.44) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.84;
}

body::after {
  background:
    linear-gradient(180deg, rgba(147, 196, 255, 0.045), transparent 28%, transparent 72%, rgba(155, 112, 255, 0.04)),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 58% 72%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px);
  background-size: auto, 132px 132px, 176px 176px, 104px 104px;
  opacity: 0.18;
}

.app {
  max-width: 1240px;
  padding: 18px 18px 28px;
}

.hud {
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid var(--shell-border);
  background:
    radial-gradient(560px 180px at 0% 0%, rgba(123, 198, 255, 0.18), transparent 64%),
    radial-gradient(520px 200px at 100% 100%, rgba(153, 112, 255, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(17, 28, 47, 0.94), rgba(10, 17, 30, 0.96));
  box-shadow: var(--shell-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.nickname {
  font-size: 16px;
  font-weight: 800;
  color: #f4f8ff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(123, 198, 255, 0.14);
}

.rankLine,
.expValue {
  color: rgba(207, 224, 247, 0.9);
}

.hudRight {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.audioControl,
.currency {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(123, 198, 255, 0.18);
  background: linear-gradient(180deg, rgba(22, 35, 57, 0.84), rgba(12, 21, 36, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.currency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: #eff6ff;
}

.mainTabs {
  margin-top: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  border-radius: 22px;
  border: 1px solid rgba(123, 198, 255, 0.16);
  background:
    radial-gradient(620px 200px at 50% 0%, rgba(123, 198, 255, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(11, 19, 33, 0.86), rgba(8, 14, 24, 0.92));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.mainTab {
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(123, 198, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(24, 38, 60, 0.94), rgba(13, 22, 38, 0.96));
  color: rgba(207, 223, 244, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mainTab:hover {
  color: #f2f7ff;
  border-color: rgba(123, 198, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(33, 53, 82, 0.97), rgba(18, 29, 47, 0.97));
}

.mainTab.isActive {
  color: #f7fbff;
  border-color: rgba(157, 214, 255, 0.54);
  background:
    radial-gradient(240px 120px at 50% 0%, rgba(123, 198, 255, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(52, 84, 132, 0.98), rgba(28, 49, 82, 0.98));
  box-shadow:
    0 12px 28px rgba(44, 92, 170, 0.24),
    0 0 0 1px rgba(123, 198, 255, 0.16) inset;
}

.notice,
.panel {
  position: relative;
  overflow: hidden;
}

.panel {
  margin-top: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--shell-border);
  background:
    radial-gradient(980px 320px at 0% 0%, rgba(123, 198, 255, 0.12), transparent 66%),
    radial-gradient(760px 320px at 100% 100%, rgba(153, 112, 255, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(10, 16, 29, 0.9), rgba(7, 12, 21, 0.96));
  box-shadow: var(--shell-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.panel::before,
.notice::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(160, 214, 255, 0.12);
  pointer-events: none;
}

.panel > *,
.notice > * {
  position: relative;
  z-index: 1;
}

.notice {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(123, 198, 255, 0.22);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(123, 198, 255, 0.12), transparent 66%),
    linear-gradient(180deg, rgba(16, 26, 44, 0.96), rgba(8, 15, 26, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.stageInfo,
.tankShowcase,
.shopMenu,
.shopContent,
.containerWrap,
.statCard,
.itemCard,
.shopCard,
.battleBotCard,
.battleArena,
.battleSide,
.battleMovePad,
.battleActionPad,
.leadersTableWrap,
.leadersMeWrap,
.leadersBoardCard,
.promoRedeemCard,
.promoHeroCard,
.shopShowcase,
.chatCard,
.refHero,
.refLinkCard,
.refRewardCard,
.refMilestoneCard,
.questCard,
.card,
.battleModeCard,
.settingsRow {
  border-radius: 20px !important;
  border: 1px solid rgba(123, 198, 255, 0.16) !important;
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(123, 198, 255, 0.12), transparent 64%),
    linear-gradient(180deg, rgba(18, 29, 46, 0.94), rgba(10, 17, 31, 0.98)) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(10px);
}

.leadersHeroArt {
  border-radius: 24px;
  background:
    radial-gradient(560px 240px at 24% 28%, rgba(123, 198, 255, 0.2), transparent 62%),
    radial-gradient(480px 240px at 80% 72%, rgba(153, 112, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(17, 25, 40, 0.94), rgba(9, 14, 24, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.promoBtn,
.equipBtn,
.ghostBtn,
.shopBuyBtn,
.purchaseActionBtn {
  min-height: 48px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.promoBtn,
.equipBtn {
  background: linear-gradient(180deg, #a3ff70, #62f01f) !important;
  color: #091108 !important;
  border: 1px solid rgba(182, 255, 154, 0.86) !important;
  box-shadow: 0 16px 26px rgba(98, 240, 31, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.promoBtn:hover,
.equipBtn:hover {
  filter: saturate(1.05) brightness(1.03);
}

.ghostBtn,
.shopBuyBtnAlt {
  background:
    linear-gradient(180deg, rgba(34, 50, 76, 0.98), rgba(18, 29, 46, 0.98)) !important;
  color: #ecf3ff !important;
  border: 1px solid rgba(123, 198, 255, 0.2) !important;
}

.subTabs {
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(123, 198, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 20, 35, 0.82), rgba(8, 14, 25, 0.9));
}

.subTab {
  min-height: 44px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subTab.isActive {
  border-color: rgba(157, 214, 255, 0.44);
  background:
    radial-gradient(220px 90px at 50% 0%, rgba(123, 198, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(50, 77, 118, 0.97), rgba(25, 42, 68, 0.98));
}

.profileTankTitle,
.stageTitle,
.leadersTitle,
.battlesTitle,
.shopShowcaseTitle,
.promoTitle,
.refHeroTitle,
.battleBotCardTitle {
  color: #f5f9ff;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profileTankWrap,
.tankShowcase {
  min-height: 360px;
  padding: 18px;
}

.tankGlow {
  filter: blur(26px) saturate(1.15);
  opacity: 0.92;
}

.statsGrid {
  gap: 12px;
}

.statCard {
  min-height: 112px;
  padding: 16px 16px 14px;
}

.statLabel {
  color: rgba(169, 193, 226, 0.84);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.statValue {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.04;
  color: #f5f9ff;
}

.chatCard,
.refLinkCard,
.card {
  padding: 18px;
}

.chatTitle,
.refLinkTitle,
.refMilestonesTitle,
.battleSideTitle,
.battleSectionTitle,
.shopHeader {
  color: rgba(207, 223, 244, 0.9);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chatList {
  border-radius: 16px;
  border: 1px solid rgba(123, 198, 255, 0.12);
  background: linear-gradient(180deg, rgba(9, 15, 27, 0.72), rgba(5, 10, 18, 0.84));
}

.promoInput {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 17, 29, 0.92), rgba(15, 24, 39, 0.96));
  border-color: rgba(174, 199, 234, 0.2);
}

.promoInput:focus {
  border-color: rgba(142, 249, 91, 0.74);
  box-shadow: 0 0 0 3px rgba(142, 249, 91, 0.12);
}

.stageInfo {
  padding: 18px;
}

.stageTitle {
  font-size: 28px;
  line-height: 1.06;
}

.stageDesc,
.shopShowcaseSubtitle,
.leadersSubtitle,
.promoSubtitle,
.refHeroSub,
.shopCardMeta,
.questDesc {
  color: rgba(184, 204, 232, 0.9);
}

.itemsRail {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.itemCard {
  min-height: 118px;
  padding: 12px;
}

.itemCard img {
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.34));
}

.battleModesGrid {
  gap: 12px;
}

.battleModeCard {
  min-height: 170px;
  padding: 16px 14px;
}

.battleArena,
.battleSide,
.battleBotCard {
  padding: 16px;
}

.battleMap {
  border-radius: 16px;
  background:
    radial-gradient(420px 240px at 50% 40%, rgba(123, 198, 255, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(11, 18, 31, 0.88), rgba(8, 14, 25, 0.92));
}

.battleCell {
  border-radius: 12px;
}

.refHero,
.refLinkCard,
.refRewardCard,
.refMilestoneCard,
.questCard {
  padding: 18px;
}

.shopLayout {
  gap: 18px;
}

.shopMenu {
  padding: 14px;
}

.shopCat {
  min-height: 76px;
}

.shopShowcase {
  padding: 22px;
}

.shopShowcaseTitle {
  font-size: 38px;
}

.shopShowcaseSubtitle {
  max-width: 680px;
}

.shopShowcaseStat {
  text-align: left;
}

.shopShowcaseStatValue {
  font-size: 14px;
}

.shopCard {
  min-width: 0;
}

.shopCardMedia {
  min-height: 176px;
}

.shopCardItem .shopCardMedia img {
  height: 132px;
}

.shopCardTitle,
.shopCardMeta,
.shopPremiumChip,
.shopShowcaseStatValue,
.shopShowcaseStatLabel,
.battleModeName,
.refRewardDesc,
.refRewardTitle,
.questTitle,
.questStatus {
  overflow-wrap: anywhere;
}

.shopCardActions {
  grid-template-columns: 112px minmax(0, 1fr);
}

.shopCardActions .shopBuyBtn {
  white-space: normal;
  line-height: 1.14;
  align-self: stretch;
}

.shopPrice {
  width: 100%;
}

.shopPremiumContainerShowcase {
  padding: 24px;
}

.premiumContainerShowcaseLayout {
  grid-template-columns: minmax(420px, 1.15fr) minmax(320px, 0.9fr);
  gap: 26px;
}

.premiumContainerVisual {
  min-height: 320px;
}

.premiumContainerHero {
  min-height: 300px;
}

.premiumContainerHeroImg {
  width: min(680px, 100%);
  height: 300px;
}

.premiumContainerDrops {
  gap: 10px;
}

.premiumContainerActions {
  grid-template-columns: 120px minmax(0, 320px) !important;
  justify-content: flex-start;
}

.premiumContainerPrice .shopPriceStars {
  margin-right: 0;
}

.containerWrap {
  min-height: 320px;
}

.containerActions {
  gap: 10px;
}

.containerActions .equipBtn,
.containerActions .ghostBtn {
  flex: 1 1 220px;
}

.questsList {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.questCard {
  min-height: 228px;
}

@media (max-width: 900px) {
  .app {
    padding: 12px 12px 24px;
  }

  .hud {
    padding: 12px;
  }

  .mainTabs {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }

  .panel {
    padding: 14px;
  }

  .profileTankWrap,
  .tankShowcase {
    min-height: 300px;
  }

  .statValue {
    font-size: 24px;
  }

  .stageTitle,
  .shopShowcaseTitle {
    font-size: 30px;
  }

  .shopCardActions {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .app {
    padding: 8px 8px 20px;
  }

  .hud {
    border-radius: 18px;
  }

  .mainTabs {
    padding: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mainTab {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 11px;
  }

  .panel {
    border-radius: 22px;
    padding: 12px;
  }

  .panel::before,
  .notice::before {
    inset: 7px;
    border-radius: 15px;
  }

  .profileTankWrap,
  .tankShowcase {
    min-height: 248px;
    padding: 12px;
  }

  .stageTitle,
  .leadersTitle,
  .promoTitle,
  .refHeroTitle,
  .battlesTitle,
  .shopShowcaseTitle {
    font-size: 24px;
  }

  .stageDesc,
  .shopShowcaseSubtitle,
  .shopCardMeta,
  .promoSubtitle,
  .refHeroSub {
    font-size: 13px;
  }

  .itemsRail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shopCardActions,
  .premiumContainerActions {
    grid-template-columns: 1fr !important;
  }

  .shopPrice,
  .premiumContainerPrice {
    width: 100%;
  }

  .premiumContainerVisual {
    min-height: 240px;
  }

  .premiumContainerHero {
    min-height: 220px;
  }

  .premiumContainerHeroImg {
    height: 220px;
  }

  .containerActions {
    display: grid;
  }
}

.questsList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.questCard {
  background:
    radial-gradient(360px 140px at 0% -20%, rgba(126, 188, 255, 0.26), transparent 58%),
    radial-gradient(260px 120px at 100% 130%, rgba(151, 111, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(22, 35, 57, 0.96), rgba(14, 23, 39, 0.97));
  border: 1px solid rgba(124, 172, 232, 0.38);
  border-radius: 14px;
  padding: 13px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.questCard:hover {
  transform: translateY(-1px);
  border-color: rgba(144, 198, 255, 0.52);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(126, 188, 255, 0.15) inset;
}

.questCardPremium {
  border-color: rgba(255, 210, 96, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 210, 96, 0.2) inset, 0 12px 26px rgba(0, 0, 0, 0.34);
}

.questTop,
.questFooter,
.questProgressRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.questTitle { font-weight: 900; font-size: 14px; letter-spacing: 0.03em; color: #eef5ff; }
.questChip {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(126, 188, 255, 0.35);
  background: rgba(81, 139, 214, 0.16);
  color: #cae2ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.questReward { color: #ffd36d; font-weight: 900; font-size: 12px; }
.questDesc { color: #a8bdd8; margin: 8px 0; min-height: 36px; font-size: 12px; line-height: 1.35; }
.questProgressTrack {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.questProgressFill {
  height: 100%;
  background: linear-gradient(90deg, #58adff, #88d2ff);
}
.questProgressText { font-size: 11px; color: #97adc9; min-width: 56px; text-align: right; }
.questStatus { font-size: 11px; color: #9db4d1; min-height: 26px; display: inline-flex; align-items: center; }
.questClaimBtn {
  margin-top: 0;
  padding: 0 12px;
  min-height: 30px;
  min-width: 96px;
  font-size: 11px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 800;
  box-shadow: none;
}
.questClaimBtn.promoBtn {
  min-height: 30px !important;
  min-width: 96px !important;
  padding: 0 12px !important;
  font-size: 11px !important;
  border-radius: 10px !important;
}
.questCardReady {
  border-color: rgba(126, 255, 53, 0.55);
  box-shadow: 0 0 0 1px rgba(126, 255, 53, 0.18) inset, 0 14px 28px rgba(0, 0, 0, 0.36);
}
.questCardReady .questChip {
  border-color: rgba(126, 255, 53, 0.5);
  background: rgba(126, 255, 53, 0.15);
  color: #dbffc7;
}
.questCardDone {
  opacity: 0.54;
  filter: saturate(0.7);
}
.questCardCompleted:not(.questCardDone) {
  opacity: 0.82;
}
.questCardCompleted .questDesc {
  display: none;
}
.questCardDone .questDesc,
.questCardDone .questProgressRow {
  display: none;
}

.questTabAlert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  margin-left: 6px;
  background: linear-gradient(180deg, #ff5f5f, #ff2f2f);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(255, 73, 73, 0.65);
  animation: questBadgePulse 1s ease-in-out infinite;
}
@keyframes questBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
:root {
  --bg: #0a0f18;
  --surface: #141c2b;
  --surface-soft: #1a2538;
  --border: #304562;
  --text: #eef5ff;
  --muted: #9fb4cf;
  --primary: #4ea1ff;
  --primary-hover: #3b90f0;
  --neon-blue: rgba(126, 188, 255, 0.55);
  --neon-purple: rgba(156, 112, 255, 0.42);
  --glass: rgba(18, 28, 46, 0.56);
  --danger: #ff5d5d;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  /* Use API-served absolute path by default (prod hosting has no bundled ./images/webapp assets). */
  --bg-image: url("/images/webapp/Background.webp");
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0c121d 0%, #0a101a 100%);
  color: var(--text);
  font: 14px/1.45 "Segoe UI", Inter, Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
  touch-action: manipulation;
}

button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}

button, .mainTab, .equipBtn, .purchaseActionBtn, .ghostBtn, .chatFlagBtn {
  -webkit-user-select: none;
  user-select: none;
}

@media (pointer: coarse) {
  .mainTab,
  .equipBtn,
  .purchaseActionBtn,
  .ghostBtn,
  .chatFlagBtn {
    min-height: 44px;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(8, 14, 24, 0.52), rgba(8, 14, 24, 0.62)),
    var(--bg-image) center/cover no-repeat;
  filter: blur(3px) brightness(0.5);
  transform: scale(1);
  transform-origin: center;
  opacity: 0.5;
  z-index: 0;
}

@media (pointer: coarse) {
  body::before {
    filter: brightness(0.56);
    opacity: 0.42;
  }
  .app::before,
  body::after {
    display: none;
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 74% 68%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 56% 36%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
  background-size: 120px 120px, 160px 160px, 90px 90px;
  mix-blend-mode: soft-light;
  opacity: 0.1;
  z-index: 0;
}

.app {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 100%;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 320px at 50% 100%, rgba(112, 170, 255, 0.06), transparent 68%),
    radial-gradient(700px 280px at 5% 90%, rgba(156, 112, 255, 0.05), transparent 70%);
  z-index: 0;
}

.app > * {
  position: relative;
  z-index: 1;
}

.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #162338, #121d2f);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.hudLeft {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(126, 188, 255, 0.35);
  background: linear-gradient(145deg, #d4c4ff 0%, #8b7ae8 45%, #4f7fd4 100%);
  flex: 0 0 auto;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

.userMeta {
  min-width: 0;
}

.nickname {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rankLine {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* Звание поверх премиум-картинки (премиум крупнее, на заднем плане) */
.rankPremiumStack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.premiumBadgeLayer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

.rankIcon.rankIconFront,
.rankValueIcon.rankIconFront {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

/* Без премиума — только иконка звания */
.rankPremiumStack--hud {
  width: 36px;
  height: 36px;
}

.rankPremiumStack--hud .rankIconFront {
  width: 32px;
  height: 32px;
}

.rankPremiumStack--hud.rankPremiumStack--hasPremium {
  width: 44px;
  height: 44px;
}

.rankPremiumStack--hud.rankPremiumStack--hasPremium .rankIconFront {
  width: 24px;
  height: 24px;
}

.rankPremiumStack--profile {
  width: 38px;
  height: 38px;
}

.rankPremiumStack--profile .rankIconFront {
  width: 32px;
  height: 32px;
}

.rankPremiumStack--profile.rankPremiumStack--hasPremium {
  width: 48px;
  height: 48px;
}

.rankPremiumStack--profile.rankPremiumStack--hasPremium .rankIconFront {
  width: 24px;
  height: 24px;
}

.leadersRankImgCol {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.leadersRankImgCol:not(.rankPremiumStack--hasPremium) {
  width: auto;
  height: auto;
}

.leadersRankImgCol:not(.rankPremiumStack--hasPremium) .leadersRankIcon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.leadersRankImgCol.rankPremiumStack--hasPremium {
  width: 44px;
  height: 44px;
}

.leadersRankImgCol .premiumBadgeLayer {
  z-index: 0;
}

.leadersRankImgCol .leadersRankIcon {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.leadersRankImgCol.rankPremiumStack--hasPremium .leadersRankIcon {
  width: 22px;
  height: 22px;
}

.leadersRank .leadersRankImgCol {
  margin-right: 8px;
}

.battleRankPremiumCol {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  vertical-align: middle;
}

.battleRankPremiumCol:not(.rankPremiumStack--hasPremium) {
  width: auto;
  height: auto;
}

.battleRankPremiumCol:not(.rankPremiumStack--hasPremium) .battleRankIcon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.battleRankPremiumCol.rankPremiumStack--hasPremium {
  width: 48px;
  height: 48px;
}

.battleRankPremiumCol .battleRankIcon {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.battleRankPremiumCol.rankPremiumStack--hasPremium .battleRankIcon {
  width: 24px;
  height: 24px;
}

.battleRankPremiumCol .premiumBadgeLayer {
  z-index: 0;
}

.chatRankPremiumStack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.chatRankPremiumStack .chatPremiumBg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

.chatRankPremiumStack .chatRankIcon {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* Non-premium rank icon base size (used in global chat line layout) */
.chatRankIcon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45));
  flex-shrink: 0;
}

/* Обёртка без filter — иначе в WebView не анимируется градиент у дочернего текста */
.chatNickPremiumGlow {
  display: inline-block;
  vertical-align: baseline;
}

.chatNickPremium {
  display: inline-block;
  font-weight: 900;
  background: linear-gradient(92deg, #fffef8 0%, #ffe566 14%, #ffc933 32%, #ffb020 52%, #ffe8a0 72%, #ffd54a 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: premiumShine 2.8s linear infinite;
  will-change: background-position;
  transform: translateZ(0);
}

@keyframes premiumShine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.battleChatNickPremium {
  display: inline-block;
  font-weight: 900;
  background: linear-gradient(92deg, #fffef8 0%, #ffe566 14%, #ffc933 32%, #ffb020 52%, #ffe8a0 72%, #ffd54a 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: premiumShine 2.8s linear infinite;
  will-change: background-position;
  transform: translateZ(0);
}

.expLine {
  margin-top: 6px;
  width: min(360px, 68vw);
}

.expValue {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.expTrack {
  height: 6px;
  border-radius: 999px;
  background: #11151d;
  border: 1px solid var(--border);
}

.expFill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.2s ease;
}

.hudRight {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.currency {
  min-width: 88px;
  text-align: center;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 600;
}

.audioControl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 170px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, #1e2d47, #162338);
  box-shadow: inset 0 0 0 1px rgba(78, 161, 255, 0.12);
}

.musicBtn {
  margin-top: 0;
  padding: 7px 12px;
  font-size: 12px;
  min-width: 130px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #2a3c5e, #22324f);
  border-color: #476187;
}

.musicBtn:hover {
  border-color: #5f84bd;
  background: linear-gradient(180deg, #30476f, #273b5d);
}

.musicBtn.isOn {
  border-color: #63b4ff;
  box-shadow:
    0 0 0 1px rgba(78, 161, 255, 0.35) inset,
    0 0 16px rgba(78, 161, 255, 0.2);
}

.musicLed {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8494aa;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
  transition: all 0.18s ease;
}

.musicLed.isOn {
  background: #5dffad;
  box-shadow: 0 0 10px rgba(93, 255, 173, 0.65);
}

.musicVolume {
  width: 130px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  accent-color: var(--primary);
  cursor: pointer;
}

.mainTabs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.mainTab {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.16s ease;
}

.mainTab.isActive {
  color: #fff;
  border-color: var(--primary);
  background: linear-gradient(180deg, #284b77, #1a3253);
  box-shadow: 0 0 0 1px rgba(78, 161, 255, 0.25) inset;
}

.mainTab:disabled,
.mainTab.isDisabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

button.isDisabled,
.battleModeCard.isDisabled,
.battleBtn.isDisabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.mainTab:hover {
  color: #d8e4ff;
  border-color: #3a4a67;
}

.notice {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #5a2a2a;
  background: #26181a;
  color: #ffc7c7;
}

.panel {
  margin-top: 10px;
  background:
    radial-gradient(820px 240px at 15% -10%, rgba(110, 187, 255, 0.12), transparent 66%),
    radial-gradient(620px 220px at 100% 0%, rgba(140, 96, 255, 0.1), transparent 62%),
    linear-gradient(180deg, #152033, #121b2c);
  border: 1px solid rgba(115, 166, 235, 0.3);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(130, 180, 245, 0.08) inset;
  backdrop-filter: blur(2px);
}

.panelProfile,
.panelGarage,
.panelBattles,
.panelShop,
.panelContainers,
.panelLeaders {
  position: relative;
  overflow: hidden;
}

.panelProfile::after,
.panelGarage::after,
.panelBattles::after,
.panelShop::after,
.panelContainers::after,
.panelLeaders::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(114, 178, 255, 0.09), transparent 34%),
    linear-gradient(320deg, rgba(166, 116, 255, 0.08), transparent 40%);
}

.leadersHeader { display: grid; gap: 4px; margin-bottom: 10px; }
.leadersTitle { font-size: 24px; font-weight: 900; letter-spacing: 0.04em; color: #f3f8ff; }
.leadersSubtitle { color: rgba(203, 221, 246, 0.86); font-size: 13px; }
.leadersPromoLayout {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 18px;
  padding: 8px 0 4px;
}
.leadersHeroCard {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: stretch;
}

.leadersHeroArt {
  width: 100%;
  max-width: none;
  min-height: 212px;
  border-radius: 22px;
  border: 1px solid rgba(184, 222, 255, 0.14);
  background:
    radial-gradient(620px 240px at 18% 18%, rgba(123, 198, 255, 0.16), transparent 62%),
    radial-gradient(560px 220px at 84% 76%, rgba(153, 112, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(18, 27, 42, 0.9), rgba(10, 15, 26, 0.96));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.leadersHeroTrophy {
  font-size: 72px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
}

.leadersHeroHeadline {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f3f8ff;
}

.leadersHeroSub {
  margin-top: 6px;
  color: rgba(210, 224, 245, 0.74);
  font-size: 14px;
  font-weight: 600;
}

.leadersHeroShine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(120deg, transparent 30%, rgba(126, 255, 53, 0.08), transparent 70%);
  transform: rotate(12deg);
  animation: leadersShine 4.8s ease-in-out infinite;
}

@keyframes leadersShine {
  0% { transform: translateX(-10%) rotate(12deg); opacity: 0.2; }
  50% { transform: translateX(10%) rotate(12deg); opacity: 0.55; }
  100% { transform: translateX(-10%) rotate(12deg); opacity: 0.2; }
}
.leadersBoardCard {
  flex: 0 0 auto;
  width: 100%;
  padding: 20px 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(22, 28, 39, 0.96), rgba(15, 20, 30, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}
.leadersControls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.leadersSortBtn {
  border: 1px solid rgba(126, 188, 255, 0.32);
  border-radius: 999px;
  background: rgba(20, 33, 54, 0.9);
  color: rgba(226, 237, 251, 0.95);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.leadersSortBtn.isActive {
  background: linear-gradient(180deg, rgba(56, 93, 145, 0.96), rgba(38, 68, 114, 0.96));
  border-color: rgba(126, 188, 255, 0.58);
  box-shadow: 0 0 0 1px rgba(126, 188, 255, 0.22) inset;
}
.leadersTableWrap {
  border: 1px solid rgba(126, 188, 255, 0.24);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 21, 36, 0.95), rgba(9, 16, 29, 0.96));
}
.leadersTableHead, .leadersRow {
  display: grid;
  grid-template-columns: 56px minmax(280px, 2.3fr) minmax(110px, 0.95fr) minmax(92px, 0.82fr) minmax(92px, 0.82fr);
  gap: 8px;
  align-items: center;
}
.leadersTableHead {
  padding: 10px 12px;
  background: rgba(33, 52, 81, 0.75);
  color: rgba(208, 224, 247, 0.9);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.leadersRows { max-height: 520px; overflow-y: auto; }
.leadersRow { padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.leadersRow:nth-child(1) { background: linear-gradient(90deg, rgba(255, 215, 80, 0.12), transparent); }
.leadersRow:nth-child(2) { background: linear-gradient(90deg, rgba(183, 219, 255, 0.1), transparent); }
.leadersRow:nth-child(3) { background: linear-gradient(90deg, rgba(245, 174, 121, 0.1), transparent); }
.leadersRow.isMe { border: 1px solid rgba(126, 188, 255, 0.45); border-radius: 10px; background: rgba(37, 61, 97, 0.36); }
.leadersPlace { font-weight: 900; color: #f6fbff; }
.leadersIdentity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leadersAvatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(126, 188, 255, 0.44);
  background: linear-gradient(180deg, rgba(41, 66, 102, 0.95), rgba(27, 45, 73, 0.96));
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: rgba(220, 235, 255, 0.95);
  flex: 0 0 auto;
}

.leadersAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadersAvatarFallback {
  display: none;
}

.leadersAvatar.isFallback .leadersAvatarFallback {
  display: inline;
}

.leadersNameWrap {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.leadersName {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leadersRank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(192, 214, 243, 0.88);
  font-size: 11px;
  min-width: 0;
}

.leadersRank span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leadersRankIcon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}
.leadersExp, .leadersWL, .leadersBattles { color: rgba(216, 231, 250, 0.94); font-weight: 700; }
.leadersMeWrap { margin-top: 10px; border: 1px dashed rgba(126, 188, 255, 0.34); border-radius: 12px; padding: 8px; }
.leadersMeLabel { color: rgba(188, 210, 240, 0.86); font-size: 12px; margin-bottom: 6px; }
.leadersEmpty { padding: 14px; color: rgba(195, 214, 238, 0.86); text-align: center; }

/* ---- Unified promo-style theme across tabs ---- */
.panel {
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.72), rgba(6, 12, 22, 0.82)),
    radial-gradient(circle at center, rgba(104, 134, 190, 0.08), transparent 42%);
  border: 1px solid rgba(126, 188, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(126, 188, 255, 0.12) inset;
  transition: box-shadow 140ms ease, border-color 140ms ease;
}

.panelProfile::after,
.panelGarage::after,
.panelBattles::after,
.panelShop::after,
.panelContainers::after,
.panelLeaders::after {
  background:
    linear-gradient(150deg, rgba(119, 182, 255, 0.11), transparent 35%),
    linear-gradient(330deg, rgba(156, 112, 255, 0.1), transparent 42%);
}

.stageInfo,
.tankShowcase,
.shopMenu,
.shopContent,
.containerWrap,
.statCard,
.itemCard,
.shopCard,
.battleBotCard,
.battleArena,
.battleSide,
.battleMovePad,
.battleActionPad,
.leadersTableWrap,
.leadersMeWrap {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(22, 28, 39, 0.96), rgba(15, 20, 30, 0.98)) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

/* battle chat is inside arena now; no extra reserved space needed */

.statCard:hover,
.itemCard:not(.isLocked):hover,
.shopCard:hover {
  border-color: rgba(126, 188, 255, 0.58) !important;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(126, 188, 255, 0.16) inset !important;
}

.equipBtn {
  background: linear-gradient(180deg, #82ff39, #58f10e) !important;
  border-color: rgba(126, 255, 53, 0.95) !important;
  color: #081008 !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(88, 241, 14, 0.18);
}

.equipBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(88, 241, 14, 0.24) !important;
}

/* Disabled/locked action buttons must be GREY (no green glow) */
.equipBtn.isDisabled,
.equipBtn:disabled {
  background: linear-gradient(180deg, rgba(98, 108, 125, 0.95), rgba(67, 76, 92, 0.98)) !important;
  border-color: rgba(190, 200, 214, 0.35) !important;
  color: rgba(230, 236, 245, 0.9) !important;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  cursor: not-allowed !important;
}

.equipBtn:disabled:hover,
.equipBtn.isDisabled:hover {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

.ghostBtn {
  background: linear-gradient(180deg, rgba(37, 50, 74, 0.96), rgba(28, 39, 59, 0.98)) !important;
  border-color: rgba(126, 188, 255, 0.34) !important;
}

.ghostBtn:hover {
  border-color: rgba(126, 188, 255, 0.56) !important;
  background: linear-gradient(180deg, rgba(44, 61, 90, 0.98), rgba(33, 46, 70, 0.98)) !important;
}

.mainTab {
  border-radius: 10px;
  border: 1px solid rgba(126, 188, 255, 0.28);
  background: linear-gradient(180deg, rgba(24, 37, 58, 0.96), rgba(17, 28, 44, 0.96));
}

.mainTab.isActive {
  border-color: rgba(126, 188, 255, 0.65);
  background: linear-gradient(180deg, rgba(54, 85, 130, 0.96), rgba(35, 60, 98, 0.98));
}

/* Leaders: make it more premium than other tabs */
.panelLeaders .leadersTitle {
  font-size: 28px;
  text-shadow: 0 0 18px rgba(126, 188, 255, 0.24);
}

.panelLeaders .leadersTableWrap {
  border: 1px solid rgba(126, 188, 255, 0.42) !important;
  background:
    radial-gradient(660px 240px at 50% -30%, rgba(126, 188, 255, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(12, 21, 36, 0.98), rgba(9, 16, 29, 0.98)) !important;
}

.panelLeaders .leadersBoardCard {
  border: 1px solid rgba(126, 188, 255, 0.42);
  background:
    radial-gradient(660px 240px at 50% -30%, rgba(126, 188, 255, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(22, 28, 39, 0.98), rgba(15, 20, 30, 0.99));
}

.panelLeaders .leadersRow:nth-child(1) {
  background: linear-gradient(90deg, rgba(255, 215, 80, 0.2), rgba(255, 215, 80, 0.04));
}

.panelLeaders .leadersRow:nth-child(2) {
  background: linear-gradient(90deg, rgba(199, 224, 255, 0.18), rgba(199, 224, 255, 0.04));
}

.panelLeaders .leadersRow:nth-child(3) {
  background: linear-gradient(90deg, rgba(255, 193, 143, 0.18), rgba(255, 193, 143, 0.04));
}

.battlesHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 10px;
}

.battlesTitle {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2f7ff;
}

.profileQuickBattleWrap {
  display: flex;
  justify-content: center;
  margin: 2px 0 12px;
}

.quickBattleCta {
  width: min(100%, 460px);
  min-height: 56px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 16px;
  background: linear-gradient(180deg, #7ed1ff 0%, #4ea3ff 45%, #2a72ff 100%);
  box-shadow: 0 18px 30px rgba(37, 120, 255, 0.45), 0 0 0 1px rgba(185, 226, 255, 0.6) inset;
}

.quickBattleCta:hover {
  transform: translateY(-1px);
  filter: saturate(1.07);
}

.battleModesGrid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.battleSectionTitle {
  margin-top: 6px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(215, 229, 248, 0.9);
}

.battleModesGridSingle {
  grid-template-columns: minmax(240px, 420px);
  justify-content: center;
}

.battleModeCard {
  min-height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: radial-gradient(520px 220px at 50% 45%, rgba(255, 255, 255, 0.05), transparent 62%),
    linear-gradient(180deg, rgba(18, 28, 46, 0.9), rgba(12, 19, 33, 0.92));
  color: #eaf2ff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.battleModeCard:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.battleModeCard:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(97, 170, 255, 0.55);
}

.battleModeCard.isPrimary {
  border-color: rgba(97, 170, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(97, 170, 255, 0.2) inset;
}

.battleModeName {
  font-size: 11px;
  color: rgba(206, 223, 246, 0.92);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.battleModeIcon {
  font-size: 46px;
  color: rgba(224, 236, 255, 0.92);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.battleBotCard {
  margin-top: 10px;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: radial-gradient(620px 260px at 50% 45%, rgba(255, 255, 255, 0.07), transparent 62%),
    linear-gradient(180deg, rgba(18, 28, 46, 0.95), rgba(10, 16, 28, 0.96));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 12px;
}

.battleBotCardTitle {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.battleBotCardIcon {
  font-size: 86px;
  color: rgba(224, 236, 255, 0.92);
}

.battleBotCardActions {
  display: flex;
  gap: 10px;
}

/* Bot battle card: keep "Назад" same size as "Начать бой" */
#battleBotCard .battleBotCardActions #startBotBattleBtn,
#battleBotCard .battleBotCardActions #backToModesBtn {
  width: min(100%, 260px);
  min-height: 50px;
  padding: 14px 18px;
  font-size: 15px;
  margin-top: 0 !important;
}

.battleArena {
  position: relative;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.96), rgba(10, 16, 28, 0.97));
  padding: 12px;
}

.battleLoadingOverlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.battleLoadingCard {
  text-align: center;
  padding: 20px 28px;
  border-radius: 16px;
  border: 1px solid rgba(126, 188, 255, 0.22);
  background: linear-gradient(180deg, rgba(26, 38, 58, 0.96), rgba(14, 22, 38, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.battleLoadingSpinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(126, 188, 255, 0.2);
  border-top-color: rgba(126, 188, 255, 0.95);
  animation: battleLoadSpin 0.85s linear infinite;
}

.battleLoadingText {
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: rgba(226, 236, 248, 0.92);
}

@keyframes battleLoadSpin {
  to { transform: rotate(360deg); }
}

.battleStage {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 12px;
  align-items: start;
}

.battleSide {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.92), rgba(10, 16, 28, 0.94));
  padding: 12px;
}

.battleSideTitle {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(206, 223, 246, 0.9);
}

.battleSideTitle .battleRankPremiumCol:not(.rankPremiumStack--hasPremium) .battleRankIcon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
}

.battleSideTitle .battleRankPremiumCol.rankPremiumStack--hasPremium {
  vertical-align: middle;
}

#pvpInviteName .battleRankPremiumCol:not(.rankPremiumStack--hasPremium) .battleRankIcon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
}

#pvpInviteName .battleRankPremiumCol.rankPremiumStack--hasPremium {
  vertical-align: middle;
}

.battleAimState {
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 102, 0.5);
  background: linear-gradient(180deg, rgba(255, 214, 102, 0.22), rgba(179, 128, 28, 0.18));
  color: rgba(255, 236, 179, 0.98);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  align-items: center;
  gap: 6px;
}

.battleAimState.isActive {
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.25) inset, 0 0 16px rgba(255, 191, 43, 0.25);
}

.battleTankImg {
  margin-top: 10px;
  width: 100%;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.battleSideMeta {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.battleSideHp {
  margin-top: 8px;
}

.battleDamageHint {
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 105, 105, 0.45);
  background: rgba(77, 19, 19, 0.5);
  color: #ffadad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.battleDamageHint.isShow {
  opacity: 1;
  transform: translateY(0);
}

.battleSideHpHead {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.battleSideHpLabel,
.battleSideHpValue {
  color: rgba(206, 223, 246, 0.9);
  font-weight: 800;
  font-size: 12px;
}

.battleSideLine {
  color: rgba(224, 236, 255, 0.92);
  font-weight: 800;
  font-size: 12px;
}

.battleCenter {
  min-width: 0;
}

.battleArenaTop {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.battleHpTrack {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.battleHpFill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width 0.18s ease;
}

.battleHpFill.isPlayer { background: linear-gradient(90deg, #49ff9d, #2bdc7c); }
.battleHpFill.isBot { background: linear-gradient(90deg, #ff5d5d, #d93a3a); }

.battleMap {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: radial-gradient(420px 240px at 50% 40%, rgba(97, 170, 255, 0.14), transparent 68%);
}

.battleCell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
}

.battleCell.isPlayer {
  overflow: visible;
  background: rgba(73, 255, 157, 0.12);
  border-color: rgba(73, 255, 157, 0.35);
}
.battleCell.isBot { background: rgba(255, 93, 93, 0.12); border-color: rgba(255, 93, 93, 0.35); }

.battleCell.isCover {
  background: linear-gradient(180deg, rgba(72, 92, 118, 0.55), rgba(38, 52, 72, 0.72));
  border-color: rgba(180, 200, 220, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.battleCoverMark {
  font-size: clamp(16px, 4.2vw, 22px);
  line-height: 1;
  opacity: 0.55;
  color: rgba(210, 224, 240, 0.85);
  user-select: none;
}

.battleMarker {
  width: 78%;
  height: 78%;
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 21, 35, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: rgba(240, 247, 255, 0.95);
  text-transform: uppercase;
}

.battleMarker.isPlayer {
  box-shadow: 0 0 0 1px rgba(73, 255, 157, 0.35) inset;
}

.battleMarker.isPlayer.isAiming {
  border-color: rgba(255, 214, 102, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.48) inset, 0 0 12px rgba(255, 189, 54, 0.45);
}

.battlePlayerHintArrow {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 1;
  color: rgba(210, 255, 234, 0.98);
  text-shadow:
    0 0 16px rgba(73, 255, 157, 0.9),
    0 2px 0 rgba(0, 0, 0, 0.35);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  pointer-events: none;
  animation: battleHintBounce 0.9s ease-in-out infinite;
  z-index: 4;
}

@keyframes battleHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(-3px); opacity: 0.85; }
}

.battleMarker.isPlayer.isAiming::after {
  content: "🎯";
  position: absolute;
  right: -6px;
  top: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: rgba(20, 16, 5, 0.9);
  border: 1px solid rgba(255, 214, 102, 0.7);
  box-shadow: 0 0 10px rgba(255, 189, 54, 0.4);
}

.battleMarker.isBot {
  box-shadow: 0 0 0 1px rgba(255, 93, 93, 0.35) inset;
}

.battleMarker.isBot.isAiming {
  border-color: rgba(255, 214, 102, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.48) inset, 0 0 12px rgba(255, 189, 54, 0.45);
}

.battleMarker.isBot.isAiming::after {
  content: "🎯";
  position: absolute;
  right: -6px;
  top: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: rgba(20, 16, 5, 0.9);
  border: 1px solid rgba(255, 214, 102, 0.7);
  box-shadow: 0 0 10px rgba(255, 189, 54, 0.4);
}

.battleMarkerImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.battleMarkerDamage {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(99, 16, 16, 0.88);
  border: 1px solid rgba(255, 104, 104, 0.65);
  color: #ffd6d6;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
  animation: markerDamageFloat 0.9s ease forwards;
}

@keyframes markerDamageFloat {
  0% { opacity: 0; transform: translateX(-50%) translateY(4px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-14px); }
}

.battleLog {
  margin-top: 10px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 6px;
  overflow: hidden;
}

.battleLogItem {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(224, 236, 255, 0.92);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
}

.battleLogIcon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0.95;
}

.battleLogText { min-width: 0; }
.battleLogName { font-weight: 700; color: rgba(235, 245, 255, 0.96); }
.battleLogSep { opacity: 0.9; }
.battleLogMsg { color: rgba(224, 236, 255, 0.92); }

.battleLogItem.isHit {
  background: rgba(97, 170, 255, 0.14);
  border-color: rgba(97, 170, 255, 0.32);
}

.battleLogItem.isWarn {
  background: rgba(255, 93, 93, 0.14);
  border-color: rgba(255, 93, 93, 0.32);
}

.battleLogItem.isWin {
  background: rgba(93, 255, 173, 0.14);
  border-color: rgba(93, 255, 173, 0.32);
}

.battleLogItem.isTime {
  background: rgba(255, 211, 79, 0.12);
  border-color: rgba(255, 211, 79, 0.3);
}

.battleControls {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.battleMovePad {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 10px;
  justify-items: center;
  background: rgba(255, 255, 255, 0.04);
}

.battlePadRowTop {
  width: 100%;
}

.battlePadRow {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 10px;
  align-items: center;
  justify-items: center;
  justify-content: center;
}

.battlePadSpacer {
  width: 52px;
  height: 52px;
  display: block;
}

.battlePadBtn {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(113, 177, 255, 0.26);
  background: linear-gradient(180deg, rgba(32, 49, 76, 0.96), rgba(18, 29, 47, 0.98));
  color: rgba(240, 247, 255, 0.98);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.battlePadBtn span {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.battlePadBtn:hover {
  border-color: rgba(123, 191, 255, 0.58);
  background: linear-gradient(180deg, rgba(41, 63, 95, 0.98), rgba(22, 35, 56, 1));
}

.battlePadBtn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.battleActionPad {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

#battleShootBtn,
#battleAimBtn {
  width: 100%;
}

.battleHotkeysHint {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(190, 208, 235, 0.72);
  letter-spacing: 0.01em;
}

.battleLobbyCreateWrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 14px;
}

.battleLobbyCreateWrapCustom {
  margin-top: 14px;
}

.battleLobbyCreateBtn {
  width: min(100%, 420px);
}

.battleCustomCreateBtn {
  min-height: 48px;
  font-weight: 900;
  letter-spacing: 0.08em;
  /* soften glow */
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
  border-color: rgba(120, 190, 255, 0.22);
}

.quickMatchCard {
  width: min(100%, 760px);
  border-radius: 14px;
  border: 1px solid rgba(101, 212, 145, 0.38);
  background:
    linear-gradient(102deg, rgba(40, 138, 72, 0.88) 0 2.2%, transparent 2.2% 100%),
    radial-gradient(680px 200px at 0% 0%, rgba(44, 148, 88, 0.36), transparent 62%),
    radial-gradient(520px 200px at 100% 100%, rgba(42, 101, 189, 0.3), transparent 62%),
    linear-gradient(140deg, rgba(15, 40, 33, 0.97), rgba(11, 30, 53, 0.97));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.56);
}

.quickMatchWidget {
  position: fixed;
  top: 24px;
  right: 16px;
  width: min(500px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(155, 214, 255, 0.22);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(168, 215, 255, 0.08) inset;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  grid-template-areas:
    "top cancel"
    "body cancel"
    "status cancel";
  gap: 10px 12px;
  z-index: 60;
  background:
    linear-gradient(132deg, rgba(10, 17, 31, 0.94), rgba(11, 20, 38, 0.9) 52%, rgba(31, 20, 51, 0.84) 100%),
    radial-gradient(280px 120px at 84% 84%, rgba(155, 144, 255, 0.18), transparent 72%),
    radial-gradient(260px 120px at 12% 18%, rgba(123, 198, 255, 0.14), transparent 74%),
    var(--bg-image);
  background-size: cover;
  background-position: center;
  padding: 14px 14px 14px 16px;
  backdrop-filter: blur(16px) saturate(118%);
}

@media (max-width: 900px) {
  .quickMatchWidget {
    top: 14px;
    right: 10px;
    width: min(460px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }
}

.quickMatchWidgetTitle {
  padding: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 20px;
  color: rgba(245, 250, 255, 0.96);
  line-height: 1.05;
  text-shadow: none;
}

.quickMatchWidgetBody {
  grid-area: body;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quickMatchWidgetTop {
  grid-area: top;
  gap: 10px;
}

.quickMatchWidgetEmblem {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border-color: rgba(153, 215, 255, 0.24);
  background: linear-gradient(180deg, rgba(129, 222, 255, 0.16), rgba(78, 107, 255, 0.12));
  color: #bbecff;
  font-size: 18px;
}

.quickMatchWidgetKicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(210, 224, 245, 0.74);
}

.quickMatchWidgetMetric {
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 14px;
  border-color: rgba(155, 214, 255, 0.12);
  background: linear-gradient(180deg, rgba(15, 24, 41, 0.76), rgba(10, 16, 29, 0.88));
  gap: 6px;
}

.quickMatchWidgetMetricLabel {
  font-size: 10px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(210, 224, 245, 0.74);
}

.quickMatchWidgetMetric b {
  color: #f3f8ff;
  font-size: 22px;
  font-weight: 800;
  text-shadow: none;
}

.quickMatchWidgetStatus {
  grid-area: status;
  min-height: 28px;
  padding: 0 10px;
  border-color: rgba(120, 239, 203, 0.18);
  background: rgba(120, 239, 203, 0.08);
  color: rgba(219, 255, 245, 0.92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.quickMatchWidgetStatusDot {
  width: 7px;
  height: 7px;
  background: #78efcb;
  box-shadow: 0 0 12px rgba(120, 239, 203, 0.58);
}

.quickMatchWidgetCancel {
  grid-area: cancel;
  width: 112px;
  min-height: 100%;
  border: 1px solid rgba(149, 201, 255, 0.18);
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #eef5ff;
  background: linear-gradient(180deg, rgba(27, 41, 64, 0.96), rgba(14, 24, 40, 0.98));
  transition: filter 0.12s ease, background 0.12s ease;
}

.quickMatchWidgetCancel:hover { filter: brightness(1.06); }
.quickMatchWidgetCancel:active { filter: brightness(0.98); }

@media (max-width: 640px) {
  .quickMatchWidget {
    top: 10px;
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    padding: 10px 10px 10px 12px;
    border-radius: 18px;
    grid-template-columns: minmax(0, 1fr) 94px;
    grid-template-areas:
      "top cancel"
      "body cancel"
      "status status";
    gap: 8px 10px;
  }

  .quickMatchWidgetTop {
    gap: 8px;
    align-items: flex-start;
  }

  .quickMatchWidgetEmblem {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
  }

  .quickMatchWidgetKicker {
    display: none;
  }

  .quickMatchWidgetTitle {
    font-size: 16px;
    line-height: 1.1;
  }

  .quickMatchWidgetBody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quickMatchWidgetMetric {
    min-height: 52px;
    padding: 8px 9px;
    border-radius: 12px;
    gap: 4px;
  }

  .quickMatchWidgetMetricLabel {
    font-size: 9px;
    line-height: 1.2;
  }

  .quickMatchWidgetMetric b {
    font-size: 17px;
  }

  .quickMatchWidgetStatus {
    width: 100%;
    justify-content: center;
    font-size: 9px;
    padding: 0 8px;
  }

  .quickMatchWidgetCancel {
    width: 94px;
    min-height: 100%;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 11px;
  }
}
.quickMatchTop {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.quickMatchTitle {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #effaff;
  text-transform: uppercase;
}

.quickMatchCancelBtn {
  border: 1px solid rgba(131, 195, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  color: #e7f2ff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  min-height: 58px;
  min-width: 170px;
  padding: 8px 22px;
  border-radius: 10px;
  cursor: pointer;
}

.quickMatchCancelBtn:hover {
  border-color: rgba(163, 214, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
}

.quickMatchBody {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.quickMatchLine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  color: rgba(231, 244, 255, 0.94);
  font-weight: 800;
  font-size: 21px;
}

.quickMatchLine b {
  color: #ffd44f;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 24px;
}

.battleLobbiesSection {
  margin-top: 20px;
  display: block;
}

.battleLobbiesTitle {
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 12px;
  opacity: 0.75;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.battleLobbiesList {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.battleLobbyCard {
  border: 1px solid rgba(126, 188, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(27, 40, 62, 0.96), rgba(19, 29, 46, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  padding: 12px 12px 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  color: rgba(236, 244, 255, 0.96);
}

.battleLobbyCard:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 188, 255, 0.35);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.battleLobbyName {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
  color: rgba(245, 250, 255, 0.98);
}

.battleLobbyMapBrief {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.78;
  margin: -4px 0 8px;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.battleLobbyMeta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
  font-size: 11px;
  opacity: 0.92;
}

.battleLobbyTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  box-sizing: border-box;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 188, 255, 0.24);
  background: rgba(80, 136, 210, 0.14);
  color: rgba(237, 245, 255, 0.96);
}

.battleLobbyAllRanks {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
  color: rgba(238, 245, 255, 0.9);
  font-weight: 800;
  font-size: 12px;
}

.battleLobbyAllRanks input {
  width: 18px;
  height: 18px;
  accent-color: #7ebcff;
}

.battleLobbyCoverLabel {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.78;
  color: rgba(220, 232, 248, 0.92);
}

.battleLobbyCoverSelect {
  margin-top: 6px;
}

.battleLobbyRankRange {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.battleLobbySelect {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(238, 245, 255, 0.95);
  font-weight: 800;
}

.battleLobbyDash {
  opacity: 0.6;
  font-weight: 900;
}

.battleLobbyCreatorTag {
  gap: 6px;
  max-width: 100%;
  flex-wrap: nowrap;
  flex: 1 1 120px;
  min-width: 0;
}

.battleLobbyCreatorName {
  font-weight: 800;
  color: rgba(245, 250, 255, 0.96);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 12px;
}

/* Открытые бои: стек премиум + звание (как в профиле) */
.battleLobbyRankStack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.battleLobbyRankStack .premiumBadgeLayer {
  z-index: 0;
}

.battleLobbyRankStack .battleLobbyRankIcon {
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.battleLobbyRankPremium:not(.rankPremiumStack--hasPremium) {
  width: 26px;
  height: 26px;
}

.battleLobbyRankPremium:not(.rankPremiumStack--hasPremium) .battleLobbyRankIcon {
  width: 22px;
  height: 22px;
}

.battleLobbyRankPremium.rankPremiumStack--hasPremium {
  width: 30px;
  height: 30px;
}

.battleLobbyRankPremium.rankPremiumStack--hasPremium .battleLobbyRankIcon {
  width: 18px;
  height: 18px;
}

.battleLobbyRangeTag {
  gap: 4px;
  flex: 0 1 auto;
}

.battleLobbyStripIcon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.battleLobbyRangeDash {
  opacity: 0.55;
  font-weight: 900;
  font-size: 12px;
  padding: 0 2px;
}

.battleLobbyTimerTag {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

/* —— Модалка «Вступить в бой» (макет: ник слева зелёным, звания справа) —— */
.joinLobbyModalRoot {
  background: rgba(6, 10, 14, 0.82);
}

#joinLobbyModal .joinLobbyPurchaseCard {
  background: #0b0c0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
}

#joinLobbyModal .joinLobbyIconPane {
  background:
    radial-gradient(ellipse 130% 100% at 50% 46%, rgba(80, 210, 60, 0.42), transparent 58%),
    radial-gradient(circle at center, rgba(115, 255, 37, 0.2), transparent 52%),
    linear-gradient(180deg, #060a0e, #0a100f);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

#joinLobbyModal .joinLobbyPadIcon {
  filter: drop-shadow(0 0 28px rgba(114, 255, 39, 0.45));
}

#joinLobbyModal .joinLobbyPurchaseContent {
  padding: 22px 26px 20px;
}

#joinLobbyModal .joinLobbySubtitle {
  margin-top: 10px;
  color: rgba(210, 218, 232, 0.88);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

#joinLobbyModal .joinLobbyBattleHint {
  margin: 10px 0 0;
  padding: 0;
  color: rgba(170, 186, 210, 0.78);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

#joinLobbyModal .joinLobbyMapHint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(200, 218, 240, 0.9);
}

#joinLobbyModal .joinLobbyDataRow {
  margin-top: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#joinLobbyModal .joinLobbyDataLeft {
  color: #72ff27;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 48%;
}

#joinLobbyModal .joinLobbyDataRight {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
  color: #72ff27;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

#joinLobbyModal .joinLobbyRankIconsInline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

#joinLobbyModal .joinLobbyRankIconsInline .battleLobbyStripIcon {
  width: 22px;
  height: 22px;
}

#joinLobbyModal .joinLobbyRankCap {
  white-space: normal;
  text-align: right;
  max-width: 200px;
  line-height: 1.25;
}

#joinLobbyModal .joinLobbyPurchaseActions {
  margin-top: 22px;
  justify-content: space-between;
  gap: 12px;
}

#joinLobbyModal .joinLobbyGhostBtn {
  margin-top: 0;
  min-width: 0;
  flex: 1;
}

#joinLobbyModal .joinLobbyConfirmBtn {
  flex: 1.2;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 16px;
}

@media (max-width: 520px) {
  #joinLobbyModal .joinLobbyDataRow {
    flex-direction: column;
    align-items: stretch;
  }
  #joinLobbyModal .joinLobbyDataLeft {
    max-width: none;
  }
  #joinLobbyModal .joinLobbyDataRight {
    justify-content: flex-start;
    text-align: left;
  }
  #joinLobbyModal .joinLobbyRankCap {
    text-align: left;
    max-width: none;
  }
}

/* ===== Chats ===== */
.chatCard {
  margin-top: 14px;
  border: 1px solid rgba(126, 188, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 28, 39, 0.94), rgba(15, 20, 30, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  padding: 14px;
}
.chatHead { margin-bottom: 10px; }
.chatTitle {
  font-weight: 1000;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
}
.chatSubtitle {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.72;
}
.chatList {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}
.chatMsg {
  display: block;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(30, 43, 66, 0.5), rgba(18, 26, 41, 0.55));
}
.chatIdentityCol {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.chatInlineRow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.chatInlineRow--full {
  width: 100%;
}

.chatMsgLine {
  flex: 1;
  min-width: 0;
  color: rgba(226, 236, 248, 0.92);
  line-height: 1.35;
  font-size: 13px;
  word-break: break-word;
}

.chatNickInline {
  font-weight: 900;
  color: rgba(244, 250, 255, 0.98);
}

.chatFlagBtn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(230, 242, 255, 0.8);
  border-radius: 10px;
  height: 30px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
  flex-shrink: 0;
}

.chatFlagBtn:active {
  transform: translateY(1px);
}

.chatAvatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(53, 74, 104, 0.95), rgba(29, 43, 64, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(230, 242, 255, 0.92);
  font-weight: 900;
  font-size: 12px;
}

.chatAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chatAvatarFallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chatAvatar:not(.isFallback) .chatAvatarFallback {
  display: none;
}

.chatAvatarSmall {
  width: 24px;
  height: 24px;
  font-size: 11px;
  flex-shrink: 0;
}

.chatIdentityCol > .chatRankIcon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45));
  align-self: start;
  justify-self: center;
}
.chatMsgBody { display: grid; gap: 4px; }
.chatMsgTop {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
}
.chatNick:not(.chatNickPremium) {
  font-weight: 900;
  color: rgba(244, 250, 255, 0.98);
}
.chatText {
  color: rgba(226, 236, 248, 0.92);
  line-height: 1.35;
  font-size: 13px;
  word-break: break-word;
}
.chatForm {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  align-items: center;
}
.chatSendBtn { min-height: 48px; }

.battleChatWrap {
  margin-top: 10px;
  border: 1px solid rgba(126, 188, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(560px 180px at 50% 0%, rgba(126, 188, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(22, 28, 39, 0.92), rgba(15, 20, 30, 0.96));
  padding: 10px;
}

.battleChatInArena {
  margin-top: 12px;
}
.battleChatTitle {
  font-weight: 1000;
  letter-spacing: 0.08em;
  font-size: 12px;
  opacity: 0.85;
}
.battleChatList {
  margin-top: 8px;
  max-height: 140px;
  overflow: auto;
  display: grid;
  gap: 6px;
}
.battleChatLine {
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(30, 43, 66, 0.44), rgba(18, 26, 41, 0.5));
  color: rgba(226, 236, 248, 0.94);
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 8px;
}

.battleChatLine .chatFlagBtn {
  height: 26px;
  min-width: 26px;
  border-radius: 9px;
  opacity: 0.9;
}

.battleChatMsgInline {
  flex: 1;
  min-width: 0;
}

.battleChatMsgRest {
  color: rgba(226, 236, 248, 0.94);
  font-weight: 500;
}

.battleChatLine > .chatRankIcon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.battleChatRankStack.chatRankPremiumStack {
  margin-top: 0;
  align-self: center;
}

.chatRankPlaceholder {
  display: block;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.battleChatForm {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 8px;
}
.battleChatSend { min-height: 44px; }

.toastHost {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  left: auto;
  bottom: auto;
  width: min(380px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: none;
  border: 1px solid rgba(126, 188, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 28, 39, 0.96), rgba(15, 20, 30, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  padding: 12px 12px 10px;
  color: rgba(240, 247, 255, 0.96);
  overflow: hidden;
}

.toastTop {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.toastTitle {
  font-weight: 1000;
  letter-spacing: 0.06em;
  font-size: 12px;
  opacity: 0.85;
  text-transform: uppercase;
}

.toastText {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.toastBar {
  margin-top: 10px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.toastBarFill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(130, 255, 57, 0.95), rgba(88, 241, 14, 0.95));
  transform-origin: right center;
  transform: scaleX(1);
  animation: toastDrain var(--toast-ms, 2600ms) linear forwards;
}

@keyframes toastDrain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 640px) {
  .chatForm { grid-template-columns: 1fr; }
  .battleChatForm { grid-template-columns: 1fr 72px; }
  .chatList { max-height: 220px; }
  .toastHost {
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: 10px;
    width: min(360px, calc(100vw - 20px));
  }
}

/* ===== Modern Neon Refresh ===== */
body {
  background:
    radial-gradient(1200px 520px at 10% -10%, rgba(84, 143, 255, 0.22), transparent 62%),
    radial-gradient(920px 420px at 100% 0%, rgba(156, 112, 255, 0.2), transparent 58%),
    linear-gradient(180deg, #070d18 0%, #060b14 100%);
}

.app {
  max-width: 1140px;
  margin: 0 auto;
}

.mainTabs {
  justify-content: center;
  flex-wrap: wrap;
}

.hud,
.panel,
.shopContent,
.shopMenu,
.stageInfo,
.tankShowcase,
.battleArena,
.battleSide,
.itemCard,
.shopCard,
.statCard {
  background: linear-gradient(180deg, rgba(19, 29, 46, 0.78), rgba(11, 18, 31, 0.84)) !important;
  border-color: rgba(120, 176, 255, 0.24) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(120, 176, 255, 0.08) inset,
    0 0 28px rgba(120, 176, 255, 0.08);
}

.mainTab,
.subTab,
.shopCat,
.ghostBtn,
.promoBtn,
.equipBtn,
.purchaseActionBtn {
  transition: transform 140ms ease, box-shadow 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.mainTab:hover,
.subTab:hover,
.shopCat:hover {
  transform: translateY(-1px);
}

.mainTab.isActive,
.subTab.isActive,
.shopCat.isActive {
  box-shadow: 0 0 0 1px rgba(126, 188, 255, 0.24) inset, 0 0 18px rgba(126, 188, 255, 0.14);
}

.promoBtn:active,
.equipBtn:active,
.ghostBtn:active,
.purchaseActionBtn:active,
.mainTab:active,
.subTab:active,
.shopCat:active {
  transform: translateY(1px) scale(0.99);
}

.battleLobbyCreateBtn {
  position: relative;
  min-height: 56px;
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  box-shadow:
    0 14px 28px rgba(126, 255, 53, 0.22),
    0 0 20px rgba(126, 255, 53, 0.14);
}

.battleLobbyCreateBtn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(126, 255, 53, 0.26), 0 0 20px rgba(126, 255, 53, 0.16);
}

.panelContainers .containerWrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopPremiumContainerShowcase {
  margin: 0 auto;
  max-width: 980px;
}

.battleCooldown {
  margin-top: 8px;
  min-height: 18px;
  color: rgba(206, 223, 246, 0.82);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .battleModesGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .battleStage { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .battleControls { grid-template-columns: 1fr; }
  .battleModeCard { min-height: 130px; }
  .battlesTitle {
    font-size: 15px;
    letter-spacing: 0.05em;
    text-align: center;
  }
  .battleBotCard {
    min-height: 0;
    padding: 12px 10px;
    gap: 10px;
  }
  #battlePlayerCard .battleBotCardActions {
    width: 100%;
    min-width: 0;
  }
  .battleArena {
    padding: 10px 8px;
  }

  .battleLobbiesList {
    grid-template-columns: 1fr;
  }
  .battleArenaTop {
    justify-content: stretch;
  }
  .battleArenaTop .ghostBtn {
    width: 100%;
  }
  .battleStage {
    margin-top: 10px;
    gap: 10px;
  }
  .battleSide {
    padding: 10px;
  }
  .battleSideTitle {
    font-size: 10px;
  }
  .battleAimState {
    margin-top: 6px;
    font-size: 10px;
    padding: 4px 8px;
  }
  .battleTankImg {
    height: 88px;
    margin-top: 6px;
  }
  .battleSideMeta {
    gap: 4px;
  }
  .battleSideLine {
    font-size: 11px;
  }
  .battleMap {
    gap: 6px;
    padding: 8px;
  }
  .battleCell {
    border-radius: 8px;
    font-size: 16px;
  }
  .battleMarker {
    width: 82%;
    height: 82%;
    border-radius: 8px;
    font-size: 9px;
  }
  .battleLog {
    min-height: 76px;
    max-height: 180px;
    overflow-y: auto;
  }
  .battleLogItem {
    font-size: 11px;
    padding: 6px 8px;
  }
  .battleControls {
    margin-top: 10px;
    gap: 10px;
  }
  .battleMovePad,
  .battleActionPad {
    padding: 8px;
  }
  .battlePadRow {
    grid-template-columns: repeat(3, 44px);
    gap: 8px;
  }
  .battlePadBtn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .battlePadSpacer {
    width: 44px;
    height: 44px;
  }
  .battlePadBtn span {
    font-size: 15px;
  }
  .battleMarker.isPlayer.isAiming::after {
    width: 16px;
    height: 16px;
    font-size: 10px;
    right: -5px;
    top: -7px;
  }
  .battleMarker.isBot.isAiming::after {
    width: 16px;
    height: 16px;
    font-size: 10px;
    right: -5px;
    top: -7px;
  }
  .battleResultTitle {
    font-size: 34px;
  }
  .battleResultIcon {
    font-size: 50px;
  }
  .battleResultText {
    font-size: 13px;
  }
  .battleCooldown {
    font-size: 11px;
    min-height: 16px;
  }

  .battleCenter {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .battleMap {
    order: 1;
  }

  .battleControls {
    order: 2;
    margin-top: 0;
  }

  .battleLog {
    order: 3;
    margin-top: 0;
    max-height: 132px;
  }
}

.battleResultModal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 14, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.battleResultModal.isOpen {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.battleResultCard {
  width: min(860px, 94vw);
  border-radius: 18px;
  border: 1px solid rgba(126, 188, 255, 0.28);
  background:
    radial-gradient(720px 240px at 50% -20%, rgba(123, 191, 255, 0.2), transparent 65%),
    linear-gradient(180deg, rgba(18, 28, 46, 0.98), rgba(10, 16, 28, 0.98));
  overflow: hidden;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease;
}

.battleResultModal.isOpen .battleResultCard {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.battleResultBanner {
  padding: 30px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(420px 160px at 50% 55%, rgba(73, 255, 157, 0.35), transparent 65%),
    linear-gradient(90deg, rgba(22, 60, 44, 0.9), rgba(16, 34, 30, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.battleResultBanner.isLose {
  background: radial-gradient(420px 160px at 50% 55%, rgba(255, 93, 93, 0.35), transparent 65%),
    linear-gradient(90deg, rgba(62, 22, 28, 0.9), rgba(34, 16, 18, 0.9));
}

.battleResultTitle {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4f8ff;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.battleResultBody {
  padding: 22px 18px 24px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.battleResultIcon {
  font-size: 62px;
  line-height: 1;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.battleResultText {
  margin-top: 8px;
  max-width: 560px;
  text-align: center;
  color: rgba(218, 231, 248, 0.96);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.rankUpModal {
  position: fixed;
  inset: 0;
  z-index: 2450;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 14, 0.78);
}

.rankUpCard {
  width: min(560px, 94vw);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 28, 46, 0.96), rgba(10, 16, 28, 0.97));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

.rankUpHead {
  padding: 16px 18px;
  background:
    repeating-linear-gradient(-30deg, rgba(93, 255, 173, 0.16) 0 10px, transparent 10px 20px),
    radial-gradient(520px 200px at 50% 50%, rgba(93, 255, 173, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(18, 44, 36, 0.92), rgba(12, 24, 22, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rankUpTitle {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.rankUpBody {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.rankUpImg {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(93, 255, 173, 0.25));
}

.rankUpName {
  font-size: 22px;
  font-weight: 900;
  color: rgba(244, 248, 255, 0.98);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

.rankUpGift {
  color: rgba(206, 223, 246, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.rankUpFooter {
  padding: 14px 18px 18px;
  display: flex;
  justify-content: center;
}

.profileTankTitle {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profileTankWrap,
.tankShowcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, #1a2740, #172236);
  overflow: hidden;
}

.profileTankWrap {
  margin-bottom: 12px;
  min-height: 330px;
  background: linear-gradient(180deg, rgba(17, 24, 36, 0.98), rgba(12, 18, 28, 0.98)) !important;
}

.tankGlow {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(130, 185, 255, 0.18) 38%, rgba(130, 185, 255, 0) 72%);
  filter: blur(7px);
}

.profileTankWrap .tankGlow {
  display: none;
}

.subTabs {
  display: flex;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.subTab {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.subTab.isActive {
  color: #fff;
  border-color: var(--primary);
}

.subTab:hover {
  color: #d8e4ff;
  border-color: #3a4a67;
}

.garageStage {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
}

.stageInfo,
.tankShowcase,
.shopMenu,
.shopContent,
.containerWrap,
.statCard,
.itemCard,
.shopCard {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, #1a2740, #172236);
}

.stageInfo {
  padding: 12px;
}

.stageTitle {
  font-size: 18px;
  font-weight: 700;
}

.stageDesc {
  margin-top: 8px;
  color: var(--muted);
  min-height: 44px;
}

.hint {
  margin-top: 8px;
  color: var(--muted);
  min-height: 18px;
}

.equipBtn,
.ghostBtn {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.16s ease;
}

.equipBtn {
  background: linear-gradient(180deg, #56adff, #2e7fda);
  border-color: #63b4ff;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.equipBtn:hover {
  background: linear-gradient(180deg, #69b8ff, #3e90e8);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(62, 144, 232, 0.35);
}

.equipBtn.isDisabled {
  background: linear-gradient(180deg, #5b6577, #465063);
  border-color: #707b8f;
  color: #d6dde8;
  text-shadow: none;
  box-shadow: none;
  transform: none;
}

.equipBtn:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.ghostBtn {
  background: linear-gradient(180deg, #253451, #202d46);
  color: var(--text);
}

.ghostBtn:hover {
  border-color: #3a4a67;
  background: #262d3c;
}

.tankShowcase {
  padding: 8px;
}

.profileTank,
#garageTankImg {
  position: relative;
  z-index: 1;
  width: min(640px, 98%);
  height: 290px;
  object-fit: contain;
}

.itemsRail {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.itemCard {
  padding: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}

.itemCard.isSelected {
  border-color: var(--primary);
  box-shadow:
    0 0 0 1px rgba(78, 161, 255, 0.5) inset,
    0 0 14px rgba(78, 161, 255, 0.22);
}

.itemCard.isLocked {
  opacity: 0.58;
}

.itemCard:not(.isLocked):hover {
  border-color: #3a4a67;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.itemCard img {
  width: 100%;
  height: 58px;
  object-fit: contain;
}

.lockedQuestionMark {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #223447, #1a2a3b);
  color: #7f97b6;
  font-size: 42px;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.28);
}

.itemName {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.itemStatus {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.shopLayout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
}

.shopMenu {
  padding: 8px;
  display: grid;
  gap: 7px;
  height: fit-content;
}

.shopCat {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #2c3d5d, #24334e);
  color: var(--muted);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.shopCat.isActive {
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(78, 161, 255, 0.3) inset;
}

.shopCat:hover {
  border-color: #3a4a67;
  color: #d8e4ff;
}

.shopContent {
  padding: 10px;
}

.shopContent.isPromoView {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.72), rgba(6, 12, 22, 0.82)),
    radial-gradient(circle at center, rgba(104, 134, 190, 0.08), transparent 42%);
}

.shopContent.isPremiumContainersView {
  background:
    radial-gradient(900px 360px at 50% -10%, rgba(255, 214, 92, 0.18), transparent 66%),
    radial-gradient(740px 280px at 0% 100%, rgba(126, 188, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(18, 16, 22, 0.96), rgba(10, 13, 23, 0.98)) !important;
  border-color: rgba(255, 211, 79, 0.28) !important;
}

.shopHeader {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.shopList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.starsRecordWarning {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 211, 79, 0.46);
  background:
    radial-gradient(640px 180px at 50% 0%, rgba(255, 211, 79, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(46, 35, 12, 0.95), rgba(22, 18, 12, 0.97));
  color: rgba(255, 236, 186, 0.98);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32), 0 0 16px rgba(255, 211, 79, 0.12);
}

.promoPanel {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 10px 8px;
}

.promoHeroCard {
  flex: 1 1 auto;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promoHeroDots {
  width: min(100%, 420px);
  min-height: 102px;
  border-radius: 22px;
  border: 1px solid rgba(206, 220, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(203, 216, 255, 0.96), rgba(167, 179, 206, 0.94) 72%, rgba(126, 137, 161, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.promoHeroDot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #233346, #0d1722 72%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.promoRedeemCard {
  flex: 0 0 300px;
  padding: 20px 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(22, 28, 39, 0.96), rgba(15, 20, 30, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.promoTitle {
  color: #eef4ff;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.promoSubtitle {
  margin-top: 8px;
  color: #94a8c4;
  font-size: 13px;
  line-height: 1.5;
}

.promoForm {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.promoInput {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(182, 195, 220, 0.34);
  background: #181d27;
  color: #f3f8ff;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.promoInput::placeholder {
  color: #7f90aa;
}

.promoInput:focus {
  border-color: rgba(126, 255, 53, 0.9);
  box-shadow: 0 0 0 3px rgba(126, 255, 53, 0.14);
  background: #1b212d;
}

.promoBtn {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #82ff39, #58f10e);
  color: #081008;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(88, 241, 14, 0.18);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.promoBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(88, 241, 14, 0.24);
}

.promoBtn:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(180deg, rgba(98, 108, 125, 0.95), rgba(67, 76, 92, 0.98));
  color: rgba(230, 236, 245, 0.9);
  box-shadow: none;
  filter: none;
}

.promoResult {
  min-height: 20px;
  margin-top: 14px;
  color: #d9e7fa;
  font-size: 13px;
  line-height: 1.5;
}

.shopCard {
  padding: 10px;
  transition: all 0.16s ease;
}

.shopCard:hover {
  border-color: #3a4a67;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.shopCard img {
  width: 100%;
  height: 96px;
  object-fit: contain;
}

.shopCardTitle {
  margin-top: 6px;
  font-weight: 600;
}

.shopCardMeta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.shopCardActions {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shopOwned {
  color: #8de7a1;
  font-weight: 600;
}

.shopPrice {
  font-weight: 600;
}

/* Shop redesign (match promo green/dark look) */
.shopCard {
  position: relative;
  padding: 12px 12px 12px;
  background:
    radial-gradient(420px 160px at 50% 10%, rgba(126, 255, 53, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(22, 28, 39, 0.96), rgba(15, 20, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.shopCard:hover {
  border-color: rgba(126, 255, 53, 0.28);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(126, 255, 53, 0.16) inset;
}

.shopCardTitle {
  margin-top: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.shopCardMeta {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(160, 180, 210, 0.92);
}

.shopPrice {
  font-weight: 900;
  color: rgba(205, 231, 255, 0.95);
}

.shopBuyBtn {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
}

.shopBuyBtn:disabled {
  filter: none;
  background: linear-gradient(180deg, rgba(98, 108, 125, 0.95), rgba(67, 76, 92, 0.98));
  color: rgba(230, 236, 245, 0.9);
  box-shadow: none;
}

.shopCardPremium {
  overflow: hidden;
  background:
    radial-gradient(520px 180px at 50% 0%, rgba(244, 208, 74, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(36, 28, 10, 0.98), rgba(18, 16, 12, 0.98));
  border-color: rgba(244, 208, 74, 0.18);
}

.shopCardPremium:hover {
  border-color: rgba(255, 222, 111, 0.38);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 222, 111, 0.16) inset;
}

.shopPremiumGlow {
  position: absolute;
  inset: -40px -20px auto;
  height: 120px;
  background: radial-gradient(circle at center, rgba(255, 221, 95, 0.22), transparent 68%);
  pointer-events: none;
}

.shopPremiumHero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding-top: 8px;
}

.shopPremiumHero img {
  width: min(180px, 88%);
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(255, 208, 61, 0.18));
}

.shopPremiumBadge {
  position: absolute;
  top: 10px;
  right: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 226, 120, 0.96), rgba(216, 176, 45, 0.96));
  color: #261b05;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.shopPremiumPerks {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shopPremiumChip {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 223, 120, 0.18);
  background: rgba(255, 233, 159, 0.07);
  color: rgba(255, 237, 189, 0.96);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.shopBuyBtnPremium {
  background: linear-gradient(180deg, #ffd96e, #ecb92d);
  color: #2b1d05;
  box-shadow: 0 10px 24px rgba(236, 185, 45, 0.22);
}

.shopBuyBtnPremium:hover {
  box-shadow: 0 14px 28px rgba(236, 185, 45, 0.28);
}

.shopBuyDual {
  width: 100%;
  display: grid;
  gap: 10px;
}

.shopBuyBtnAlt {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shopPriceStars { display: inline-block; margin-right: 10px; font-weight: 1000; color: rgba(255, 237, 189, 0.98); }
.shopPriceCrystals { opacity: 0.78; font-weight: 900; color: rgba(205, 231, 255, 0.9); }

/* Shop redesign: unified storefront */
.shopLayout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.shopMenu {
  position: sticky;
  top: 10px;
  padding: 12px;
  gap: 10px;
  border: 1px solid rgba(126, 188, 255, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(480px 180px at 10% 0%, rgba(126, 188, 255, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(19, 29, 46, 0.94), rgba(11, 18, 31, 0.96));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shopMenuIntro {
  padding: 6px 4px 10px;
  border-bottom: 1px solid rgba(126, 188, 255, 0.14);
}

.shopMenuEyebrow {
  color: rgba(161, 188, 228, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shopMenuTitle {
  margin-top: 6px;
  color: #f2f7ff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.shopMenuNote {
  margin-top: 8px;
  color: rgba(183, 202, 228, 0.86);
  font-size: 13px;
  line-height: 1.45;
}

.shopCat {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(126, 188, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(31, 45, 68, 0.94), rgba(20, 31, 49, 0.96));
  color: #d4e4ff;
  overflow: hidden;
}

.shopCat::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(126, 188, 255, 0.12), rgba(156, 112, 255, 0.12));
  opacity: 0;
  transition: opacity 0.16s ease;
}

.shopCatIcon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(136, 187, 255, 0.18);
  background: linear-gradient(180deg, rgba(72, 103, 150, 0.32), rgba(32, 49, 77, 0.32));
  color: #edf4ff;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.shopCatCopy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.shopCatTitle {
  color: #f2f7ff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.shopCatMeta {
  color: rgba(170, 193, 224, 0.86);
  font-size: 11px;
  line-height: 1.35;
}

.shopCat:hover {
  border-color: rgba(126, 188, 255, 0.34);
  color: #eef5ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

.shopCat:hover::after,
.shopCat.isActive::after {
  opacity: 1;
}

.shopCat.isActive {
  border-color: rgba(126, 188, 255, 0.52);
  background:
    radial-gradient(320px 120px at 0% 0%, rgba(126, 188, 255, 0.18), transparent 64%),
    linear-gradient(180deg, rgba(44, 67, 102, 0.98), rgba(24, 41, 67, 0.98));
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(126, 188, 255, 0.18) inset;
}

.shopCat.isActive .shopCatIcon {
  border-color: rgba(171, 211, 255, 0.48);
  background: linear-gradient(180deg, rgba(112, 165, 255, 0.34), rgba(43, 69, 111, 0.4));
}

.shopContent {
  padding: 0;
  display: grid;
  gap: 12px;
}

.shopShowcase {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(344px, 0.9fr);
  gap: 14px;
  align-items: end;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(126, 188, 255, 0.22);
  background:
    radial-gradient(720px 280px at 0% 0%, rgba(126, 188, 255, 0.18), transparent 68%),
    radial-gradient(540px 240px at 100% 100%, rgba(156, 112, 255, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(18, 29, 46, 0.96), rgba(10, 17, 31, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.shopShowcaseCopy {
  min-width: 0;
}

.shopShowcaseEyebrow {
  color: rgba(171, 198, 235, 0.8);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shopShowcaseTitle {
  margin-top: 10px;
  color: #f4f8ff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
}

.shopShowcaseSubtitle {
  margin-top: 10px;
  max-width: 720px;
  color: rgba(193, 214, 241, 0.92);
  font-size: 14px;
  line-height: 1.55;
}

.shopShowcaseMeta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shopShowcaseStat {
  min-height: 92px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(126, 188, 255, 0.16);
  background: linear-gradient(180deg, rgba(20, 33, 53, 0.78), rgba(11, 19, 33, 0.84));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.shopShowcaseStatLabel {
  color: rgba(161, 184, 216, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.shopShowcaseStatValue {
  color: #f2f7ff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.shopHeader {
  margin: 2px 2px 0;
  color: rgba(180, 203, 234, 0.88);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shopList {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.starsRecordWarning {
  border-radius: 14px;
}

.promoPanel {
  min-height: 0;
  align-items: stretch;
  gap: 16px;
  padding: 0;
}

.promoHeroCard,
.promoRedeemCard {
  border-radius: 18px;
  border: 1px solid rgba(126, 188, 255, 0.16);
  background:
    radial-gradient(520px 200px at 0% 0%, rgba(126, 188, 255, 0.16), transparent 68%),
    linear-gradient(180deg, rgba(18, 29, 46, 0.96), rgba(10, 17, 31, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.promoHeroCard {
  min-height: 320px;
}

.promoHeroPoster {
  width: min(100%, 520px);
  min-height: 220px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(206, 220, 255, 0.16);
  background:
    radial-gradient(460px 200px at 0% 0%, rgba(126, 188, 255, 0.18), transparent 70%),
    radial-gradient(420px 220px at 100% 100%, rgba(126, 255, 53, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(24, 37, 58, 0.96), rgba(13, 23, 39, 0.98));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.promoHeroLabel {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 255, 53, 0.34);
  background: rgba(126, 255, 53, 0.1);
  color: #d8ffc0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promoHeroLines {
  display: grid;
  gap: 10px;
}

.promoHeroLine {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 188, 255, 0.75), rgba(126, 255, 53, 0.4));
  opacity: 0.95;
}

.promoHeroLine:nth-child(1) { width: 78%; }
.promoHeroLine:nth-child(2) { width: 92%; }
.promoHeroLine:nth-child(3) { width: 56%; }

.promoHeroDots {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  justify-content: flex-start;
  gap: 12px;
}

.promoHeroDot {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 35% 35%, #c5f7a7, #65a62d 72%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 16px rgba(126, 255, 53, 0.18);
}

.promoRedeemCard {
  flex: 0 0 340px;
  padding: 22px 20px 18px;
}

.shopCard {
  min-height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 16px;
}

.shopCardItem {
  background:
    radial-gradient(460px 160px at 50% 0%, rgba(126, 188, 255, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(20, 31, 49, 0.97), rgba(11, 18, 31, 0.98));
  border-color: rgba(126, 188, 255, 0.16);
}

.shopCardItem--weapon {
  background:
    radial-gradient(420px 170px at 50% 0%, rgba(86, 166, 255, 0.14), transparent 64%),
    linear-gradient(180deg, rgba(18, 31, 52, 0.98), rgba(10, 18, 31, 0.98));
}

.shopCardItem--hull {
  background:
    radial-gradient(420px 170px at 50% 0%, rgba(126, 255, 53, 0.12), transparent 64%),
    linear-gradient(180deg, rgba(20, 34, 44, 0.98), rgba(11, 19, 27, 0.98));
}

.shopCardItem.isOwned {
  border-color: rgba(126, 255, 53, 0.24);
}

.shopCardMedia {
  position: relative;
  min-height: 160px;
  padding: 16px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(320px 120px at 50% 20%, rgba(255, 255, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(16, 25, 40, 0.92), rgba(10, 16, 28, 0.96));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopCardMediaGlow {
  position: absolute;
  inset: auto 15% 10px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 188, 255, 0.26), transparent 70%);
  filter: blur(10px);
}

.shopCardItem--hull .shopCardMediaGlow {
  background: radial-gradient(circle, rgba(126, 255, 53, 0.18), transparent 70%);
}

.shopCardItem .shopCardMedia img {
  position: relative;
  width: 100%;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.32));
}

.shopCardBadge,
.shopOwnedPill {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shopCardBadge {
  left: 10px;
  border: 1px solid rgba(126, 188, 255, 0.24);
  background: rgba(82, 131, 206, 0.18);
  color: #d5e8ff;
}

.shopOwnedPill {
  right: 10px;
  border: 1px solid rgba(126, 255, 53, 0.28);
  background: rgba(126, 255, 53, 0.12);
  color: #d8ffc0;
}

.shopCardBody {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.shopCardTitle {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.shopCardMeta {
  margin-top: 0;
  min-height: 40px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.shopCardActions {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(128px, 1fr);
  align-items: center;
  gap: 10px;
}

.shopCardActions .shopBuyBtn {
  width: 100%;
  min-width: 0;
  margin-left: 0;
  padding: 10px 12px;
  font-size: 13px;
}

.shopPrice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(126, 188, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.shopCardPremium {
  padding: 16px;
}

.shopCardPremium .shopCardTitle {
  font-size: 17px;
}

.shopCardPremium .shopCardActions {
  display: grid;
  gap: 12px;
}

.shopCardPremium .shopPrice {
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
}

.shopBuyDual .shopBuyBtn {
  width: 100%;
  margin-left: 0;
}

.shopBuyBtnAlt {
  background: linear-gradient(180deg, rgba(43, 62, 92, 0.98), rgba(28, 43, 66, 0.98));
  color: #eaf2ff;
  border: 1px solid rgba(126, 188, 255, 0.18);
}

.shopPremiumContainerShowcase {
  padding: 20px 20px 22px;
}

.shopPremiumContainerShowcase .shopCardTitle {
  font-size: 22px;
}

.shopPremiumContainerShowcase .shopCardMeta {
  min-height: 0;
  font-size: 14px;
}

.shopPremiumContainerShowcase .shopCardActions {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(220px, 320px);
  align-items: center;
  gap: 14px;
}

.shopPremiumContainerShowcase .starsBuyBtn {
  width: 100%;
  min-width: 0;
}

.premiumContainerShowcaseLayout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: center;
}

.premiumContainerVisual,
.premiumContainerInfo {
  min-width: 0;
}

.premiumContainerVisual {
  border-radius: 20px;
  border: 1px solid rgba(255, 211, 79, 0.2);
  background:
    radial-gradient(520px 240px at 50% 35%, rgba(255, 214, 92, 0.24), transparent 70%),
    linear-gradient(180deg, rgba(36, 28, 11, 0.44), rgba(21, 14, 29, 0.22));
  padding: 10px;
}

.premiumContainerInfo {
  display: grid;
  align-content: center;
  gap: 12px;
}

.premiumContainerKicker {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 79, 0.34);
  background: rgba(255, 211, 79, 0.1);
  color: rgba(255, 235, 186, 0.96);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.premiumContainerActions {
  margin-top: 4px;
}

.premiumContainerPrice {
  min-width: 110px;
  border-color: rgba(255, 211, 79, 0.22);
  background: rgba(255, 220, 120, 0.08);
}

.containerTabs {
  overflow-x: auto;
}

.containerWrap {
  margin-top: 12px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(380px 210px at 50% 45%, rgba(78, 161, 255, 0.24), transparent 72%),
    linear-gradient(180deg, #1a2740, #172236);
}

.containerImg {
  width: min(360px, 90%);
  height: 180px;
  object-fit: contain;
}

.containerActions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.containerMetaRow {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, auto);
  align-items: center;
  justify-content: stretch;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(420px 160px at 10% 20%, rgba(126, 188, 255, 0.12), transparent 60%),
    radial-gradient(420px 160px at 90% 80%, rgba(156, 112, 255, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(22, 28, 39, 0.92), rgba(15, 20, 30, 0.96));
}
.containerMetaTitle { font-weight: 1000; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; opacity: 0.88; }
.containerMetaCounts { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.containerPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 188, 255, 0.28);
  background: rgba(80, 136, 210, 0.12);
  font-weight: 900;
}
.containerPill.isPremium {
  border-color: rgba(255, 211, 79, 0.45);
  background: rgba(255, 211, 79, 0.12);
  box-shadow: 0 0 18px rgba(255, 211, 79, 0.12);
}
.containerMetaActive { color: rgba(226, 236, 248, 0.92); font-weight: 800; }
.containerMetaRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.starsBuyBtn {
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd96e, #ecb92d);
  color: #2b1d05;
  box-shadow: 0 12px 26px rgba(236, 185, 45, 0.22), 0 0 22px rgba(255, 211, 79, 0.12);
}
.starsBuyBtn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.panelContainers.isPremiumContainerView {
  background:
    radial-gradient(700px 280px at 50% 10%, rgba(255, 211, 79, 0.14), transparent 62%),
    radial-gradient(620px 260px at 20% 80%, rgba(126, 188, 255, 0.13), transparent 64%),
    linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(15, 10, 26, 0.98));
  border-color: rgba(255, 211, 79, 0.36);
}

.panelContainers.isPremiumContainerView .containerWrap {
  min-height: 300px;
  background:
    radial-gradient(420px 220px at 50% 45%, rgba(255, 211, 79, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(20, 16, 6, 0.92), rgba(14, 11, 20, 0.96));
  border-color: rgba(255, 211, 79, 0.36) !important;
}

.panelContainers.isPremiumContainerView .containerImg {
  width: min(430px, 94%);
  height: 230px;
  animation: premiumContainerFloat 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(255, 211, 79, 0.38));
}

.premiumContainerShowInfo {
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 211, 79, 0.36);
}
.premiumContainerShowTitle { font-size: 18px; font-weight: 1000; color: #ffe7ac; letter-spacing: 0.03em; }
.premiumContainerShowSub { margin-top: 6px; font-size: 13px; color: rgba(255, 229, 170, 0.92); font-weight: 700; }
.premiumContainerDrops {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shopPremiumContainerShowcase {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 211, 79, 0.4) !important;
  background:
    radial-gradient(820px 360px at 50% 10%, rgba(255, 214, 92, 0.38), transparent 70%),
    radial-gradient(760px 300px at 6% 100%, rgba(126, 188, 255, 0.24), transparent 72%),
    radial-gradient(720px 280px at 94% 100%, rgba(156, 112, 255, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(37, 28, 11, 0.98), rgba(21, 14, 29, 0.99)) !important;
}
.premiumContainerBgFx {
  position: absolute;
  inset: -40% -20%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 211, 79, 0.2), transparent 60%);
  filter: blur(16px);
}
.premiumContainerHero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premiumContainerHero::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 92, 0.3), rgba(255, 214, 92, 0) 68%);
  filter: blur(8px);
  pointer-events: none;
}

.premiumContainerHeroImg {
  width: min(620px, 100%);
  height: 260px;
  object-fit: contain;
  transform: scale(1.18);
  filter: drop-shadow(0 0 30px rgba(255, 211, 79, 0.42));
  animation: premiumContainerFloat 4.8s ease-in-out infinite;
}

@keyframes premiumContainerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.containerActions .equipBtn,
.containerActions .ghostBtn {
  margin-top: 0;
}

.rewardModal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 20, 0.72);
  /* Blur is expensive in mobile WebView; keep FPS high. */
  backdrop-filter: none;
}

.errorModal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(4px);
}

.errorCard {
  width: min(520px, 94vw);
  border: 1px solid #6d2d3c;
  border-radius: 0;
  background: linear-gradient(180deg, #4b5062 0%, #484d5f 70%, #5a606f 100%);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.52);
  overflow: hidden;
}

.errorHead {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  background:
    repeating-linear-gradient(-30deg, rgba(255, 94, 112, 0.28) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #5b6071, #5a6070);
  border-bottom: 1px solid #6a7080;
}

.errorAccent {
  width: 6px;
  align-self: stretch;
  background: #f05a6f;
}

.errorTitle {
  margin-left: 14px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f4f7ff;
  text-transform: uppercase;
}

.errorBody {
  min-height: 300px;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.errorIcon {
  width: 108px;
  height: 108px;
  border: 5px solid #f05a6f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62px;
  font-weight: 900;
  color: #f05a6f;
  text-shadow: 0 0 16px rgba(240, 90, 111, 0.35);
}

.errorText {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  color: #f2f6ff;
}

.errorFooter {
  min-height: 54px;
  padding: 10px 14px;
  background: rgba(33, 38, 52, 0.38);
  display: flex;
  justify-content: flex-end;
}

.purchaseModal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 14, 0.72);
  backdrop-filter: none;
}

.purchaseCard {
  position: relative;
  width: min(840px, 94vw);
  min-height: 280px;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #040707;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48);
}

.purchaseIconPane {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(115, 255, 37, 0.18), transparent 50%),
    linear-gradient(180deg, #030706, #07100f);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.purchaseCartIcon {
  color: #72ff27;
  font-size: 92px;
  filter: drop-shadow(0 0 20px rgba(114, 255, 39, 0.28));
}

.purchaseContent {
  padding: 26px 28px 22px;
  display: flex;
  flex-direction: column;
}

.purchaseTitle {
  color: #f6f8fd;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.purchaseLabel {
  margin-top: 54px;
  color: #d6dce7;
  font-size: 15px;
  font-weight: 600;
}

.purchaseRow {
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.purchaseItemName,
.purchaseItemPrice {
  color: #72ff27;
  font-size: 18px;
  font-weight: 700;
}

.purchaseActions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.purchaseActions .ghostBtn {
  min-width: 220px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
}

.purchaseActionBtn {
  min-width: 256px;
  padding: 16px 22px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #76ff2e, #5cff18);
  color: #0c130e;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.purchaseCloseTop {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.lootModal {
  position: fixed;
  inset: 0;
  z-index: 2250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: none;
}

.lootCard {
  position: relative;
  width: min(1120px, 96vw);
  min-height: 640px;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: linear-gradient(180deg, #0d1524, #0b1320);
  border: 1px solid #26374f;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

.lootSidebar {
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #121f33, #0d1828);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lootSidebarIcon {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: linear-gradient(180deg, #21344d, #18283b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.lootSidebarLabel {
  margin-top: 18px;
  color: #8ea6c5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lootPreviewName {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  color: #f4f8ff;
}

.lootPreviewDesc {
  margin-top: 14px;
  color: #b8c7db;
  font-size: 14px;
  line-height: 1.55;
}

.lootContent {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lootHeader {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lootTitle {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

.lootFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lootFilterBtn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #304562;
  background: #162338;
  color: #d5e4f8;
  cursor: pointer;
  font-weight: 700;
}

.lootFilterBtn.isActive {
  background: linear-gradient(180deg, #2f4a73, #223959);
  border-color: #61aaff;
}

.lootFilterBtn.rarity-rare.isActive { border-color: #58e7ff; }
.lootFilterBtn.rarity-epic.isActive { border-color: #b071ff; }
.lootFilterBtn.rarity-ultrarare.isActive { border-color: #ff5d5d; }
.lootFilterBtn.rarity-legendary.isActive { border-color: #ffd34f; }

.lootGrid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
}

.lootItemCard {
  position: relative;
  min-height: 148px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #31445d;
  background: linear-gradient(180deg, #1a283b, #142133);
  color: #eff5ff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.lootItemCard:hover,
.lootItemCard.isSelected {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.lootItemCard.rarity-rare {
  background: linear-gradient(180deg, rgba(34, 74, 102, 0.92), rgba(23, 39, 59, 0.94));
  border-color: rgba(88, 231, 255, 0.55);
}

.lootItemCard.rarity-epic {
  background: linear-gradient(180deg, rgba(77, 46, 112, 0.92), rgba(30, 29, 58, 0.94));
  border-color: rgba(176, 113, 255, 0.55);
}

.lootItemCard.rarity-ultrarare {
  background: linear-gradient(180deg, rgba(106, 39, 54, 0.94), rgba(46, 20, 32, 0.96));
  border-color: rgba(255, 93, 93, 0.58);
}

.lootItemCard.rarity-legendary {
  background: linear-gradient(180deg, rgba(105, 90, 28, 0.96), rgba(45, 37, 17, 0.98));
  border-color: rgba(255, 211, 79, 0.68);
}

.lootChance {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(245, 248, 255, 0.92);
}

.lootItemImage {
  width: 100%;
  height: 86px;
  object-fit: contain;
  margin-top: 18px;
}

.lootItemFooter {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.lootCloseTop {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.rewardCard {
  width: min(460px, 92vw);
  border-radius: 14px;
  border: 2px solid transparent;
  background: linear-gradient(180deg, #1a2740, #172236);
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  position: relative;
  /* Do NOT clip glow (otherwise rarity highlight disappears). */
  overflow: visible;
  will-change: transform;
}

.rewardCard::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 520ms ease;
  box-shadow:
    0 0 0 2px var(--reward-glow, rgba(255, 255, 255, 0)),
    0 0 22px var(--reward-glow-soft, rgba(0, 0, 0, 0));
}

.rewardCard.rarity-rare { --reward-glow: rgba(88, 231, 255, 0.95); --reward-glow-soft: rgba(88, 231, 255, 0.35); }
.rewardCard.rarity-epic { --reward-glow: rgba(176, 113, 255, 0.95); --reward-glow-soft: rgba(176, 113, 255, 0.35); }
.rewardCard.rarity-ultrarare { --reward-glow: rgba(255, 93, 93, 0.95); --reward-glow-soft: rgba(255, 93, 93, 0.36); }
.rewardCard.rarity-legendary { --reward-glow: rgba(255, 211, 79, 0.98); --reward-glow-soft: rgba(255, 211, 79, 0.38); }

.rewardCard.rarity-rare::before,
.rewardCard.rarity-epic::before,
.rewardCard.rarity-ultrarare::before,
.rewardCard.rarity-legendary::before {
  opacity: 1;
  box-shadow:
    0 0 0 2px var(--reward-glow),
    0 0 22px var(--reward-glow-soft);
}

.rewardTitle {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.rewardContainerBox {
  position: relative;
  border-radius: 10px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 70%);
  will-change: transform;
}

.rewardContainerImg {
  width: min(320px, 90%);
  height: 180px;
  object-fit: contain;
  transition: opacity 260ms ease;
  will-change: opacity;
}

.rewardContainerImg.isHidden {
  opacity: 0;
}

.rewardDropImg {
  position: absolute;
  top: 43%;
  left: 50%;
  width: 110px;
  height: 110px;
  object-fit: contain;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
  transition: transform 0.45s ease, opacity 0.45s ease;
  will-change: transform, opacity;
}

.rewardDropImg.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rewardContainerBox.rewardBurst::after {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 240, 180, 0.65), rgba(255, 211, 79, 0) 70%);
  animation: rewardBurstFx 260ms ease-out;
}

@keyframes rewardBurstFx {
  0% { opacity: 0.9; transform: scale(0.88); }
  100% { opacity: 0; transform: scale(1.15); }
}

.rewardText {
  margin-top: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.rewardCloseBtn {
  display: block;
  margin: 14px auto 0;
}

.rewardCloseBtn {
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.rewardCloseBtn.isShown {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 0s;
}

.shake { animation: shake 0.35s linear 1; }

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

.statsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.statCard {
  padding: 10px;
  transition: border-color 0.16s ease;
}

.statCard:hover {
  border-color: #3a4a67;
}

.statLabel {
  font-size: 12px;
  color: var(--muted);
}

.statValue {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
}

.rankValueRow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rankValueIcon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.rankValueRow #profileRankStack {
  flex-shrink: 0;
}

.panelReferrals {
  display: grid;
  gap: 12px;
}

.refHero {
  position: relative;
  border: 1px solid rgba(120, 170, 255, 0.28);
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(650px 220px at 0% 0%, rgba(72, 98, 224, 0.28), transparent 60%),
    radial-gradient(620px 220px at 100% 100%, rgba(38, 196, 190, 0.2), transparent 62%),
    linear-gradient(140deg, rgba(9, 24, 48, 0.96), rgba(8, 22, 36, 0.96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.refHeroBadge {
  display: inline-flex;
  border: 1px solid rgba(157, 188, 255, 0.42);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(216, 228, 255, 0.96);
  background: rgba(79, 125, 244, 0.22);
}

.refHeroTitle {
  margin: 10px 0 6px;
  font-size: 26px;
  line-height: 1.08;
}

.refHeroSub {
  margin: 0;
  color: rgba(196, 212, 236, 0.95);
}

.refHeroStats {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.refStat {
  border: 1px solid rgba(130, 160, 220, 0.3);
  border-radius: 11px;
  padding: 10px;
  background: rgba(16, 27, 49, 0.66);
}

.refStatLabel {
  font-size: 12px;
  color: rgba(178, 198, 226, 0.96);
}

.refStatValue {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 800;
}

.refLinkCard {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(12, 22, 36, 0.82);
  padding: 12px;
}

.refLinkTitle {
  font-size: 13px;
  font-weight: 700;
  color: rgba(189, 208, 232, 0.95);
  margin-bottom: 8px;
}

.refLinkRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.refRewardsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.refRewardCard {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(11, 24, 41, 0.9), rgba(8, 21, 34, 0.86));
  padding: 12px;
}

.refRewardIcon {
  font-size: 20px;
}

.refRewardTitle {
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
}

.refRewardDesc {
  margin-top: 6px;
  color: rgba(184, 202, 228, 0.95);
  font-size: 13px;
  line-height: 1.34;
}

.refMilestones {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(11, 21, 34, 0.82);
}

.refMilestonesTitle {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
}

.refMilestonesList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.refMilestoneCard {
  border: 1px solid rgba(124, 148, 188, 0.26);
  border-radius: 11px;
  padding: 10px;
  background: rgba(14, 26, 43, 0.72);
}

.refMilestoneCard.isDone {
  border-color: rgba(106, 208, 158, 0.55);
  background: linear-gradient(150deg, rgba(20, 48, 39, 0.82), rgba(15, 34, 55, 0.82));
}

.refMilestoneCard.isNext {
  border-color: rgba(104, 165, 255, 0.58);
  box-shadow: 0 0 0 1px rgba(104, 165, 255, 0.16) inset;
}

.refMilestoneTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.refMilestoneIcon {
  font-size: 20px;
}

.refMilestoneTarget {
  font-size: 18px;
  font-weight: 900;
}

.refMilestoneReward {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.refMilestoneMeta {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(186, 204, 228, 0.95);
}

.refMilestoneBar {
  margin-top: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(83, 105, 138, 0.34);
  overflow: hidden;
}

.refMilestoneBar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4ab3ff, #61d39b);
}

@media (max-width: 900px) {
  .garageStage {
    grid-template-columns: 1fr;
  }

  .shopLayout {
    grid-template-columns: 1fr;
  }

  .shopMenu {
    position: static;
  }

  .shopShowcase {
    grid-template-columns: 1fr;
  }

  .shopShowcaseMeta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .premiumContainerShowcaseLayout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shopPremiumContainerShowcase .shopCardActions {
    grid-template-columns: minmax(0, auto) minmax(220px, 1fr);
  }

  .promoPanel {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .promoHeroCard,
  .promoRedeemCard {
    width: 100%;
  }

  .refHeroStats,
  .refRewardsGrid,
  .refMilestonesList {
    grid-template-columns: 1fr;
  }

  .refLinkRow {
    grid-template-columns: 1fr;
  }

  .promoRedeemCard {
    flex-basis: auto;
  }
}

@media (max-width: 640px) {
  .shopMenu {
    padding: 10px;
  }

  .shopCat {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 62px;
    padding: 10px;
  }

  .shopCatIcon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
  }

  .shopShowcase {
    padding: 16px;
  }

  .shopShowcaseTitle {
    font-size: 24px;
  }

  .shopShowcaseSubtitle {
    font-size: 13px;
  }

  .shopShowcaseMeta {
    grid-template-columns: 1fr;
  }

  .shopShowcaseStat {
    min-height: 0;
  }

  .shopList {
    grid-template-columns: 1fr;
  }

  .shopCardActions,
  .shopPremiumContainerShowcase .shopCardActions {
    grid-template-columns: 1fr;
  }

  .shopPrice,
  .premiumContainerPrice {
    width: 100%;
  }

  .promoHeroPoster {
    min-height: 180px;
    padding: 18px;
  }

  .promoRedeemCard {
    padding: 18px 16px 16px;
  }

  .shopCardActions .shopBuyBtn,
  .shopPremiumContainerShowcase .starsBuyBtn {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .shopPremiumContainerShowcase {
    padding: 16px 14px 18px;
  }

  .premiumContainerVisual {
    padding: 6px;
  }

  .purchaseModal,
  .lootModal,
  .errorModal,
  .rankUpModal,
  .battleResultModal {
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 6px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .rewardModal {
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
  }

  .purchaseCard,
  .lootCard,
  .errorCard,
  .rankUpCard,
  .battleResultCard {
    margin: 0 auto;
    max-height: calc(100vh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rewardCard {
    margin: 0 auto;
    max-height: none;
    overflow: visible;
  }

  .purchaseContent {
    min-width: 0;
  }

  .purchaseActions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(4, 7, 12, 0), rgba(4, 7, 12, 0.88) 36%);
    padding-top: 8px;
    margin-top: 12px;
  }

  #createLobbyModal .purchaseCard {
    max-height: calc(100vh - 12px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .starsRecordWarning {
    font-size: 12px;
    padding: 10px 11px;
  }

  .containerMetaRow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .containerMetaLeft,
  .containerMetaRight {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .premiumContainerShowInfo {
    margin-top: 2px;
    padding-top: 10px;
  }

  .premiumContainerShowTitle {
    font-size: 24px;
    line-height: 1.1;
  }

  .premiumContainerShowSub {
    font-size: 14px;
  }

  .premiumContainerDrops {
    justify-content: center;
  }

  .shopPremiumContainerShowcase {
    padding: 12px 10px 14px;
  }

  .premiumContainerHero {
    min-height: 220px;
  }

  .premiumContainerHeroImg {
    width: min(520px, 100%);
    height: 240px;
    transform: scale(1.22);
  }

  .app {
    padding: 8px;
  }

  .hud {
    padding: 8px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hudRight {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .audioControl {
    min-width: 0;
    width: 100%;
    border-radius: 14px;
    padding: 8px;
  }

  .musicBtn,
  .musicVolume {
    width: 100%;
  }

  .currency {
    flex: 1;
    min-width: 0;
  }

  .mainTabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .mainTab {
    white-space: nowrap;
    padding: 8px 12px;
  }

  .statsGrid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 10px;
  }

  .profileTankTitle {
    font-size: 18px;
  }

  .profileTankWrap {
    min-height: 240px;
  }

  .profileTank,
  #garageTankImg {
    height: 210px;
  }

  .containerActions {
    flex-direction: column;
  }

  .containerActions .equipBtn,
  .containerActions .ghostBtn {
    width: 100%;
  }

  .promoHeroCard {
    min-height: 200px;
  }

  .promoHeroDots {
    min-height: 88px;
    gap: 14px;
  }

  .promoHeroDot {
    width: 30px;
    height: 30px;
  }

  .promoTitle {
    font-size: 18px;
  }

  .purchaseCard {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lootCard {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: 92vh;
  }

  .lootSidebar {
    padding: 12px 12px 10px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .lootSidebarIcon {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .lootSidebarLabel {
    margin-top: 10px;
    font-size: 11px;
  }

  .lootPreviewName {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.2;
  }

  .lootPreviewDesc {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .lootContent {
    padding: 12px 10px 14px;
  }

  .lootHeader {
    gap: 8px;
  }

  .lootTitle {
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .lootFilters {
    gap: 6px;
  }

  .lootFilterBtn {
    padding: 7px 10px;
    font-size: 13px;
  }

  .lootGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 360px;
    margin-top: 10px;
    gap: 8px;
  }

  .lootItemCard {
    min-height: 132px;
    padding: 8px;
  }

  .lootChance {
    top: 6px;
    right: 8px;
    font-size: 11px;
  }

  .lootItemImage {
    height: 70px;
    margin-top: 14px;
  }

  .lootItemFooter {
    margin-top: 8px;
    font-size: 12px;
  }

  .purchaseIconPane {
    min-height: 130px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .purchaseTitle {
    font-size: 18px;
    padding-right: 28px;
  }

  .purchaseLabel {
    margin-top: 22px;
  }

  .purchaseActionBtn {
    min-width: 100%;
  }

  .battleHotkeysHint {
    font-size: 10px;
  }

  .leadersTitle {
    font-size: 20px;
  }

  .leadersPromoLayout {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 4px 0 0;
  }

  .leadersHeroCard,
  .leadersBoardCard {
    width: 100%;
    min-height: 0;
  }

  /* Mobile leaderboard: readable card layout */
  .leadersTableHead {
    display: none;
  }

  .leadersTableWrap {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .leadersRows {
    max-height: none;
    overflow: visible;
    display: grid;
    gap: 10px;
  }

  .leadersRow {
    border-top: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(22, 28, 39, 0.96), rgba(15, 20, 30, 0.98));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
    padding: 10px 10px 12px;

    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "place identity"
      "exp wl"
      "battles battles";
    gap: 8px 10px;
    align-items: start;
  }

  .leadersRow.isMe {
    border-color: rgba(126, 188, 255, 0.6);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(126, 188, 255, 0.16) inset;
  }

  .leadersPlace {
    grid-area: place;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(33, 52, 81, 0.75);
    border: 1px solid rgba(126, 188, 255, 0.28);
    font-size: 13px;
  }

  .leadersIdentity { grid-area: identity; }
  .leadersExp { grid-area: exp; }
  .leadersWL { grid-area: wl; }
  .leadersBattles { grid-area: battles; }

  .leadersExp,
  .leadersWL,
  .leadersBattles {
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.16);
    display: grid;
    gap: 2px;
    justify-items: start;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 900;
    color: rgba(238, 245, 255, 0.96);
  }

  body[data-locale="ru"] .leadersExp::before {
    content: "ОПЫТ";
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 900;
    color: rgba(193, 214, 243, 0.8);
  }
  body[data-locale="en"] .leadersExp::before {
    content: "EXP";
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 900;
    color: rgba(193, 214, 243, 0.8);
  }
  .leadersWL::before {
    content: "W/L";
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 900;
    color: rgba(193, 214, 243, 0.8);
  }
  body[data-locale="ru"] .leadersBattles::before {
    content: "БОИ";
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 900;
    color: rgba(193, 214, 243, 0.8);
  }
  body[data-locale="en"] .leadersBattles::before {
    content: "BATTLES";
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 900;
    color: rgba(193, 214, 243, 0.8);
  }

  .leadersAvatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .leadersRank {
    font-size: 10px;
  }

  .purchaseActions {
    justify-content: stretch;
  }

  .purchaseActions .ghostBtn,
  .purchaseActions .purchaseActionBtn {
    width: 100%;
    min-width: 0;
  }

  .errorTitle {
    font-size: 28px;
  }

  .errorBody {
    min-height: 230px;
    padding: 22px 12px;
  }

  .errorText {
    font-size: 22px;
  }
}

/* ===== Final Game Pass: end-of-file overrides ===== */
body {
  background:
    radial-gradient(1280px 560px at 18% -8%, rgba(112, 198, 255, 0.13), transparent 60%),
    radial-gradient(980px 460px at 100% 8%, rgba(155, 144, 255, 0.11), transparent 58%),
    radial-gradient(880px 420px at 50% 100%, rgba(120, 239, 203, 0.08), transparent 62%),
    linear-gradient(180deg, #050a13 0%, #09111f 52%, #060a13 100%);
  color: #eef5ff;
}

body::before {
  background:
    linear-gradient(rgba(5, 10, 19, 0.34), rgba(5, 11, 22, 0.8)),
    radial-gradient(780px 280px at 50% 100%, rgba(123, 198, 255, 0.14), transparent 72%),
    var(--bg-image) center/cover no-repeat;
  filter: blur(1.5px) brightness(0.46) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.9;
}

.app {
  max-width: 1240px;
  padding: 18px 18px 28px;
}

.hud {
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(150, 201, 255, 0.2);
  background:
    radial-gradient(540px 180px at 0% 0%, rgba(123, 198, 255, 0.16), transparent 64%),
    radial-gradient(520px 220px at 100% 100%, rgba(155, 144, 255, 0.11), transparent 68%),
    linear-gradient(180deg, rgba(16, 26, 46, 0.92), rgba(9, 15, 29, 0.96));
  box-shadow: 0 24px 56px rgba(2, 8, 20, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(118%);
}

.hudRight {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.audioControl,
.currency {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(123, 198, 255, 0.18);
  background: linear-gradient(180deg, rgba(22, 35, 57, 0.84), rgba(12, 21, 36, 0.9));
}

.mainTabs {
  margin-top: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  border-radius: 22px;
  border: 1px solid rgba(150, 201, 255, 0.16);
  background:
    radial-gradient(620px 200px at 50% 0%, rgba(123, 198, 255, 0.07), transparent 72%),
    linear-gradient(180deg, rgba(12, 19, 35, 0.82), rgba(8, 14, 25, 0.92));
  box-shadow: 0 24px 56px rgba(2, 8, 20, 0.4);
}

.mainTab {
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(149, 201, 255, 0.12);
  background: linear-gradient(180deg, rgba(21, 34, 58, 0.92), rgba(13, 22, 38, 0.96));
  color: rgba(213, 227, 247, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mainTab.isActive {
  color: #f7fbff;
  border-color: rgba(181, 224, 255, 0.5);
  background:
    radial-gradient(260px 110px at 50% 0%, rgba(144, 214, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(66, 93, 146, 0.96), rgba(34, 53, 86, 0.98));
  box-shadow: 0 12px 26px rgba(34, 84, 162, 0.22), 0 0 0 1px rgba(144, 214, 255, 0.12) inset;
}

.panel {
  margin-top: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(150, 201, 255, 0.2);
  background:
    radial-gradient(980px 320px at 0% 0%, rgba(123, 198, 255, 0.1), transparent 66%),
    radial-gradient(760px 300px at 100% 100%, rgba(155, 144, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.86), rgba(7, 12, 23, 0.95));
  box-shadow: 0 24px 56px rgba(2, 8, 20, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(118%);
}

.stageInfo,
.tankShowcase,
.shopMenu,
.shopContent,
.containerWrap,
.statCard,
.itemCard,
.shopCard,
.battleBotCard,
.battleArena,
.battleSide,
.leadersTableWrap,
.leadersMeWrap,
.leadersBoardCard,
.promoRedeemCard,
.promoHeroCard,
.shopShowcase,
.chatCard,
.refHero,
.refLinkCard,
.refRewardCard,
.refMilestoneCard,
.questCard,
.card,
.battleModeCard {
  border-radius: 20px !important;
  border: 1px solid rgba(149, 201, 255, 0.16) !important;
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(123, 198, 255, 0.1), transparent 64%),
    radial-gradient(340px 160px at 100% 100%, rgba(155, 144, 255, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(17, 27, 48, 0.9), rgba(10, 17, 32, 0.97)) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.profileTankWrap,
.tankShowcase {
  min-height: 360px;
  padding: 18px;
}

.statsGrid {
  gap: 12px;
}

.statCard {
  min-height: 112px;
  padding: 16px 16px 14px;
}

.statValue {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.04;
}

.promoBtn,
.equipBtn,
.ghostBtn,
.shopBuyBtn,
.purchaseActionBtn {
  min-height: 48px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.promoBtn,
.equipBtn,
.quickBattleCta,
.purchaseActionBtn,
.shopBuyBtn,
.questClaimBtn {
  border: 1px solid rgba(201, 241, 255, 0.78) !important;
  background:
    radial-gradient(180px 80px at 50% 0%, rgba(255, 255, 255, 0.28), transparent 72%),
    linear-gradient(135deg, #95ecff 0%, #7cb8ff 50%, #8d84ff 100%) !important;
  color: #071321 !important;
  box-shadow: 0 16px 30px rgba(72, 123, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

.ghostBtn,
.shopBuyBtnAlt {
  border: 1px solid rgba(149, 201, 255, 0.18) !important;
  background: linear-gradient(180deg, rgba(27, 41, 64, 0.96), rgba(14, 24, 40, 0.98)) !important;
  color: #eef5ff !important;
}

.nickname,
.currency,
.leadersTitle,
.battlesTitle,
.shopShowcaseTitle,
.profileTankTitle,
.stageTitle,
.purchaseTitle,
.questTitle,
.shopTitle {
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

.hint,
.leadersSubtitle,
.shopCardMeta,
.purchaseLabel {
  color: rgba(210, 224, 245, 0.74) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

.shopLayout {
  gap: 18px;
}

.shopShowcase {
  padding: 22px;
  grid-template-columns: minmax(0, 1.6fr) minmax(344px, 0.9fr);
}

.shopShowcaseTitle {
  font-size: 38px;
}

.shopShowcaseStat {
  min-height: 96px;
  padding: 12px;
}

.shopShowcaseStatValue,
.shopShowcaseStatLabel,
.shopCardTitle,
.shopCardMeta,
.shopPremiumChip {
  overflow-wrap: anywhere;
}

.shopList {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.shopCardMedia {
  min-height: 176px;
}

.shopCardActions {
  grid-template-columns: 112px minmax(0, 1fr);
}

.shopCardActions .shopBuyBtn {
  width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.14;
}

.shopPrice {
  width: 100%;
  justify-content: center;
}

.premiumContainerShowcaseLayout {
  grid-template-columns: minmax(420px, 1.15fr) minmax(320px, 0.9fr);
  gap: 26px;
}

.premiumContainerVisual {
  min-height: 320px;
}

.premiumContainerHero {
  min-height: 300px;
}

.premiumContainerHeroImg {
  width: min(680px, 100%);
  height: 300px;
}

.premiumContainerActions {
  grid-template-columns: 120px minmax(0, 320px) !important;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .app {
    padding: 12px 12px 24px;
  }

  .mainTabs {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }

  .shopShowcase {
    grid-template-columns: 1fr;
  }

  .premiumContainerShowcaseLayout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .app {
    padding: 8px 8px 20px;
  }

  .mainTabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    border-radius: 22px;
    padding: 12px;
  }

  .profileTankWrap,
  .tankShowcase {
    min-height: 248px;
    padding: 12px;
  }

  .shopCardActions,
  .premiumContainerActions {
    grid-template-columns: 1fr !important;
  }

  .premiumContainerVisual {
    min-height: 240px;
  }

  .premiumContainerHero {
    min-height: 220px;
  }

  .premiumContainerHeroImg {
    height: 220px;
  }
}
/* Final EOF overrides */

.mainTab,
.subTab,
.promoBtn,
.equipBtn,
.ghostBtn,
.shopBuyBtn,
.purchaseActionBtn,
.questClaimBtn {
  font-weight: 660 !important;
  letter-spacing: 0.02em !important;
}

.leadersTitle,
.battlesTitle,
.shopShowcaseTitle,
.profileTankTitle,
.stageTitle,
.purchaseTitle,
.questTitle,
.shopTitle,
.nickname,
.currency {
  font-weight: 760 !important;
  letter-spacing: 0.015em !important;
}

.containerWrap,
.shopCard,
.questCard,
.battleModeCard,
.rewardCard,
.errorCard,
.battleResultCard {
  transition:
    transform 380ms cubic-bezier(.22,.78,.16,1),
    box-shadow 380ms cubic-bezier(.22,.78,.16,1),
    border-color 320ms ease,
    background 380ms ease !important;
}

.containerWrap:hover,
.shopCard:hover,
.questCard:hover,
.battleModeCard:hover {
  transform: translateY(-2px);
}

.battleResultModal {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100dvh !important;
  padding: 16px 14px !important;
  box-sizing: border-box !important;
  background:
    radial-gradient(860px 320px at 50% 50%, rgba(30, 56, 94, 0.16), transparent 72%),
    rgba(2, 6, 14, 0.8) !important;
  backdrop-filter: blur(10px) saturate(112%) !important;
}

.battleResultCard {
  width: min(820px, 94vw) !important;
  border-radius: 28px !important;
  border: 1px solid rgba(134, 196, 255, 0.22) !important;
  background:
    radial-gradient(760px 280px at 50% -10%, rgba(129, 213, 255, 0.14), transparent 66%),
    radial-gradient(640px 260px at 100% 100%, rgba(132, 116, 255, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(10, 18, 34, 0.98), rgba(6, 10, 20, 0.99)) !important;
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

.battleResultCard.isLose {
  border-color: rgba(255, 94, 94, 0.24) !important;
  background:
    radial-gradient(760px 300px at 50% -10%, rgba(255, 90, 90, 0.16), transparent 66%),
    radial-gradient(620px 240px at 100% 100%, rgba(118, 28, 52, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(20, 11, 18, 0.985), rgba(8, 7, 13, 0.995)) !important;
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 78, 96, 0.08) inset, 0 0 46px rgba(150, 24, 44, 0.12) !important;
}

.battleResultBanner {
  min-height: 132px !important;
  padding: 26px 22px !important;
  background:
    radial-gradient(460px 190px at 50% 50%, rgba(78, 231, 152, 0.26), transparent 68%),
    linear-gradient(180deg, rgba(18, 54, 41, 0.96), rgba(10, 23, 21, 0.98)) !important;
}

.battleResultBanner.isLose {
  background:
    radial-gradient(500px 200px at 50% 52%, rgba(255, 92, 92, 0.22), transparent 66%),
    linear-gradient(180deg, rgba(63, 18, 28, 0.98), rgba(21, 10, 14, 0.995)) !important;
}

.battleResultTitle {
  font-size: clamp(34px, 6vw, 52px) !important;
  font-weight: 820 !important;
  letter-spacing: 0.045em !important;
  color: #f7fbff !important;
}

.battleResultBody {
  padding: 30px 28px 32px !important;
  gap: 16px !important;
}

.battleResultIcon {
  width: 108px;
  height: 108px;
  display: grid !important;
  place-items: center;
  border-radius: 30px;
  font-size: 54px !important;
  line-height: 1 !important;
  color: #ffe7a0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 236, 158, 0.26), transparent 56%),
    linear-gradient(180deg, rgba(42, 52, 82, 0.92), rgba(15, 21, 36, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  filter: none !important;
}

.battleResultCard.isLose .battleResultIcon {
  color: #ff9c87;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 149, 80, 0.28), transparent 56%),
    linear-gradient(180deg, rgba(63, 24, 24, 0.94), rgba(18, 10, 14, 0.98));
  border-color: rgba(255, 110, 110, 0.16);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.44), 0 0 36px rgba(173, 24, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.battleResultText {
  max-width: 600px !important;
  font-size: 16px !important;
  font-weight: 590 !important;
  line-height: 1.58 !important;
  color: rgba(226, 236, 248, 0.88) !important;
}

.errorModal {
  background:
    radial-gradient(760px 280px at 50% 40%, rgba(129, 14, 39, 0.18), transparent 68%),
    rgba(5, 4, 10, 0.84) !important;
  backdrop-filter: blur(12px) saturate(112%) !important;
}

.errorCard {
  width: min(500px, 92vw) !important;
  border-radius: 26px !important;
  border: 1px solid rgba(191, 52, 74, 0.38) !important;
  background:
    radial-gradient(540px 220px at 50% -10%, rgba(138, 14, 43, 0.22), transparent 66%),
    linear-gradient(180deg, rgba(26, 8, 16, 0.985), rgba(10, 6, 10, 0.995)) !important;
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 86, 116, 0.05) inset, 0 0 54px rgba(109, 12, 33, 0.16) !important;
}

.errorHead {
  min-height: 86px !important;
  padding: 0 24px !important;
  gap: 16px;
  background:
    radial-gradient(360px 120px at 0% 50%, rgba(255, 77, 107, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(58, 14, 26, 0.98), rgba(31, 8, 13, 0.995)) !important;
  border-bottom: 1px solid rgba(255, 94, 122, 0.14) !important;
}

.errorAccent {
  width: 14px !important;
  height: 14px;
  align-self: auto !important;
  border-radius: 999px;
  background: radial-gradient(circle, #ff7d94 0%, #ea3b5b 54%, #8d112d 100%) !important;
  box-shadow: 0 0 24px rgba(234, 59, 91, 0.46);
  animation: dangerPulseEof 2.4s ease-in-out infinite;
}

.errorTitle {
  margin-left: 0 !important;
  font-size: clamp(24px, 5vw, 38px) !important;
  font-weight: 820 !important;
  letter-spacing: 0.04em !important;
  color: #fff4f6 !important;
}

.errorBody {
  padding: 28px 26px 30px !important;
  display: grid;
  justify-items: center;
  gap: 18px;
  background:
    radial-gradient(420px 200px at 50% 10%, rgba(136, 14, 40, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(16, 8, 13, 0.7), rgba(9, 5, 8, 0));
}

.errorIcon {
  width: 136px;
  height: 136px;
  display: grid !important;
  place-items: center;
  border-radius: 34px;
  border: 1px solid rgba(255, 96, 126, 0.18);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 111, 140, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(56, 12, 24, 0.94), rgba(21, 8, 14, 0.98));
  color: #ff718d !important;
  font-size: 72px !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42), 0 0 38px rgba(158, 18, 48, 0.18);
}

.errorText {
  max-width: 360px;
  text-align: center;
  font-size: 19px !important;
  font-weight: 620 !important;
  line-height: 1.5 !important;
  color: rgba(255, 230, 235, 0.94) !important;
}

.questResetTime {
  margin-bottom: 12px;
  font-size: 12px !important;
  font-weight: 620 !important;
  color: rgba(197, 213, 234, 0.68) !important;
}

.questsList {
  display: grid;
  gap: 12px;
}

.questCard {
  padding: 16px !important;
  min-height: 0 !important;
  border-radius: 18px !important;
  gap: 12px !important;
}

.questTop,
.questFooter {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px !important;
  align-items: center !important;
}

.questTitle {
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
}

.questChip {
  min-height: 24px;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 680 !important;
}

.questReward {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 211, 98, 0.1);
  border: 1px solid rgba(255, 211, 98, 0.16);
  color: #ffd980 !important;
  font-size: 13px !important;
  font-weight: 720 !important;
}

.questDesc {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: rgba(206, 220, 239, 0.74) !important;
}

.questProgressRow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px !important;
  align-items: center !important;
}

.questProgressTrack {
  height: 10px !important;
}

.questProgressText {
  font-size: 12px !important;
  font-weight: 650 !important;
}

.questStatus {
  min-height: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(202, 217, 237, 0.76) !important;
}

.questClaimBtn {
  min-height: 40px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.shopLayout {
  gap: 16px !important;
}

.shopMenu,
.shopContent {
  padding: 16px !important;
}

.shopMenuIntro {
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.shopMenuTitle {
  font-size: 28px !important;
  font-weight: 780 !important;
}

.shopMenuNote,
.shopCatMeta,
.shopCardMeta,
.shopShowcaseSubtitle,
.premiumContainerShowSub {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: rgba(203, 216, 236, 0.7) !important;
}

.shopCat {
  min-height: 68px !important;
  padding: 12px 14px !important;
  gap: 12px !important;
  border-radius: 16px !important;
}

.shopCatIcon {
  width: 40px !important;
  height: 40px !important;
  font-size: 18px !important;
}

.shopCatTitle,
.shopCardTitle,
.premiumContainerShowTitle {
  font-size: 17px !important;
  font-weight: 740 !important;
  line-height: 1.25 !important;
}

.shopShowcase {
  padding: 18px !important;
  gap: 16px !important;
}

.shopShowcaseTitle {
  font-size: clamp(28px, 4.6vw, 40px) !important;
}

.shopShowcaseStat {
  min-height: 82px !important;
  padding: 12px !important;
  border-radius: 16px !important;
}

.shopShowcaseStatValue {
  font-size: 20px !important;
  font-weight: 760 !important;
}

.shopShowcaseStatLabel {
  font-size: 11px !important;
  font-weight: 580 !important;
}

.shopList {
  gap: 12px !important;
}

.shopCard {
  padding: 14px !important;
  gap: 12px !important;
}

.shopCardMedia {
  min-height: 146px !important;
  border-radius: 16px !important;
}

.shopCardActions {
  gap: 10px !important;
}

.shopPrice,
.premiumContainerPrice {
  min-height: 42px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-weight: 730 !important;
}

.shopBuyBtnAlt,
.starsBuyBtn {
  min-height: 42px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.premiumContainerShowcaseLayout {
  gap: 18px !important;
}

.premiumContainerVisual {
  min-height: 252px !important;
  padding: 8px !important;
}

.premiumContainerHero {
  min-height: 208px !important;
}

.premiumContainerHeroImg {
  height: 234px !important;
}

.containerTabs {
  gap: 8px !important;
}

.containerTabs .subTab {
  min-height: 42px !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
}

.containerWrap {
  min-height: 208px !important;
  border-radius: 20px !important;
  background:
    radial-gradient(420px 220px at 50% 45%, rgba(94, 167, 255, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(22, 33, 56, 0.96), rgba(14, 22, 39, 0.99)) !important;
}

.containerImg {
  width: min(340px, 88%) !important;
  height: 170px !important;
  animation: standardContainerFloatEof 3.6s ease-in-out infinite;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.34));
}

.containerActions {
  gap: 8px !important;
  margin-top: 10px !important;
}

.containerActions .equipBtn,
.containerActions .ghostBtn {
  min-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.containerMetaRow {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  gap: 10px !important;
  border-radius: 16px !important;
}

.containerMetaTitle {
  font-size: 11px !important;
  font-weight: 740 !important;
  letter-spacing: 0.04em !important;
}

.containerPill {
  min-height: 28px;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.containerMetaActive {
  font-size: 12px !important;
  font-weight: 620 !important;
}

.rewardModal {
  background:
    radial-gradient(760px 280px at 50% 42%, rgba(67, 102, 170, 0.12), transparent 72%),
    rgba(3, 7, 16, 0.8) !important;
  backdrop-filter: none !important;
}

.rewardCard {
  --reward-glow: rgba(88, 231, 255, 0.98);
  --reward-glow-soft: rgba(88, 231, 255, 0.24);
  width: min(560px, 92vw) !important;
  padding: 24px 22px 22px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(127, 194, 255, 0.22) !important;
  background:
    radial-gradient(600px 220px at 50% -10%, rgba(138, 212, 255, 0.14), transparent 68%),
    radial-gradient(520px 220px at 100% 100%, rgba(140, 126, 255, 0.12), transparent 74%),
    linear-gradient(180deg, rgba(12, 20, 38, 0.98), rgba(7, 11, 22, 0.995)) !important;
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  overflow: hidden !important;
}

.rewardCard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.06) 0%, transparent 54%),
    radial-gradient(circle at 50% 50%, var(--reward-glow-soft) 0%, transparent 78%);
}

.rewardCard.rarity-rare { --reward-glow: rgba(88, 231, 255, 0.98); --reward-glow-soft: rgba(88, 231, 255, 0.26); }
.rewardCard.rarity-epic { --reward-glow: rgba(176, 113, 255, 0.98); --reward-glow-soft: rgba(176, 113, 255, 0.28); }
.rewardCard.rarity-ultrarare { --reward-glow: rgba(255, 93, 93, 0.98); --reward-glow-soft: rgba(255, 93, 93, 0.28); }
.rewardCard.rarity-legendary { --reward-glow: rgba(255, 211, 79, 0.99); --reward-glow-soft: rgba(255, 211, 79, 0.32); }

.rewardCard.isPrimed::before {
  animation: rewardRarityGlowEof var(--reward-glow-ms, 680ms) cubic-bezier(.16,.84,.2,1) forwards;
}

.rewardCard.rarity-legendary.isPrimed::before {
  animation: rewardLegendaryHaloEof calc(var(--reward-glow-ms, 1600ms) * 1.18) cubic-bezier(.14,.82,.18,1) forwards;
}

.rewardCard.isReveal {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    inset 0 0 38px var(--reward-glow-soft) !important;
}

.rewardTitle {
  font-size: 20px !important;
  font-weight: 760 !important;
  letter-spacing: 0.03em !important;
}

.rewardContainerBox {
  width: min(360px, 100%) !important;
  height: 234px !important;
  margin: 18px auto 0 !important;
  border-radius: 26px !important;
  border: 1px solid rgba(146, 199, 255, 0.16) !important;
  background:
    radial-gradient(320px 180px at 50% 44%, rgba(106, 171, 255, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(16, 26, 47, 0.94), rgba(10, 17, 31, 0.98)) !important;
  overflow: hidden;
}

.rewardContainerBox::before {
  content: "";
  position: absolute;
  inset: 10%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  background:
    radial-gradient(circle at 50% 50%, var(--reward-glow-soft) 0%, transparent 64%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0%, transparent 78%);
}

.rewardContainerBox.isPrimed::before {
  opacity: 1;
  transform: scale(1.01);
  transition:
    opacity var(--reward-glow-ms, 680ms) cubic-bezier(.16,.84,.2,1),
    transform var(--reward-glow-ms, 680ms) cubic-bezier(.16,.84,.2,1);
}

.rewardContainerImg,
.rewardDropImg {
  transition:
    transform 320ms cubic-bezier(.22,.78,.16,1),
    opacity 420ms ease !important;
  backface-visibility: hidden;
}

.rewardContainerBox.isCharging .rewardContainerImg {
  animation: rewardContainerChargeEof 1.26s ease-in-out infinite;
}

.rewardContainerImg.isHidden {
  opacity: 0 !important;
  transform: translateY(8px) scale(0.96) !important;
}

#rewardDropImg {
  position: absolute !important;
  top: 43% !important;
  left: 50% !important;
  width: clamp(96px, 28vw, 112px) !important;
  height: clamp(96px, 28vw, 112px) !important;
  object-fit: contain !important;
  opacity: 0;
  transform: translate(-50%, -50%);
  transform-origin: center center !important;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.38));
  will-change: opacity;
}

#rewardDropImg.show {
  opacity: 1 !important;
}

.rewardContainerBox.rewardBurst::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, var(--reward-glow-soft) 0%, transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 38%);
  animation: rewardBurstFxEof 720ms ease-out forwards;
}

.rewardText {
  margin-top: 18px !important;
  font-size: 16px !important;
  font-weight: 620 !important;
  line-height: 1.52 !important;
  color: rgba(232, 240, 250, 0.92) !important;
  opacity: 0;
  transform: translateY(0);
  filter: none;
  will-change: opacity;
}

#rewardText.show {
  opacity: 1 !important;
}

@keyframes rewardRarityGlowEof {
  0% { opacity: 0; transform: scale(0.98); }
  55% { opacity: 0.72; transform: scale(1.01); }
  100% { opacity: 0.92; transform: scale(1.03); }
}

@keyframes rewardLegendaryHaloEof {
  0% { opacity: 0; transform: scale(0.98); }
  38% { opacity: 0.52; transform: scale(1.01); }
  72% { opacity: 0.82; transform: scale(1.03); }
  100% { opacity: 0.96; transform: scale(1.04); }
}

@keyframes rewardContainerChargeEof {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.3)); }
  50% { transform: translateY(-7px) scale(1.025); filter: drop-shadow(0 18px 28px rgba(255, 255, 255, 0.16)); }
}

@keyframes rewardBurstFxEof {
  0% { opacity: 0; transform: scale(0.76); }
  28% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes dangerPulseEof {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes standardContainerFloatEof {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 640px) {
  .battleResultCard {
    width: min(94vw, 520px) !important;
    border-radius: 24px !important;
  }

  .battleResultBanner {
    min-height: 106px !important;
    padding: 18px 16px !important;
  }

  .battleResultTitle {
    font-size: 17vw !important;
    line-height: 0.94 !important;
  }

  .battleResultBody {
    padding: 20px 16px 22px !important;
    gap: 12px !important;
  }

  .battleResultIcon {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    font-size: 40px !important;
  }

  .battleResultText {
    font-size: 13px !important;
  }

  .errorCard {
    width: min(92vw, 420px) !important;
    border-radius: 22px !important;
  }

  .errorHead {
    min-height: 72px !important;
    padding: 0 18px !important;
    gap: 12px;
  }

  .errorIcon {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    font-size: 58px !important;
  }

  .errorBody {
    padding: 22px 18px 24px !important;
    gap: 14px;
  }

  .errorText {
    font-size: 16px !important;
  }

  .questCard {
    padding: 12px !important;
    gap: 10px !important;
  }

  .questTitle,
  .shopCardTitle,
  .premiumContainerShowTitle {
    font-size: 15px !important;
  }

  .questChip,
  .questStatus,
  .questProgressText,
  .questDesc,
  .shopMenuNote,
  .shopCatMeta,
  .shopCardMeta,
  .shopShowcaseSubtitle,
  .premiumContainerShowSub {
    font-size: 11px !important;
  }

  .questReward {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px !important;
  }

  .questClaimBtn {
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
  }

  .shopLayout {
    gap: 12px !important;
  }

  .shopMenu,
  .shopContent {
    padding: 12px !important;
  }

  .shopMenuTitle {
    font-size: 22px !important;
  }

  .shopCat {
    min-height: 56px !important;
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  .shopCatIcon {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }

  .shopCatTitle {
    font-size: 13px !important;
  }

  .shopShowcase {
    padding: 14px !important;
    gap: 12px !important;
  }

  .shopShowcaseTitle {
    font-size: 24px !important;
  }

  .shopShowcaseStat {
    min-height: 68px !important;
    padding: 10px !important;
  }

  .shopShowcaseStatValue {
    font-size: 17px !important;
  }

  .shopShowcaseStatLabel {
    font-size: 10px !important;
  }

  .shopList {
    gap: 10px !important;
  }

  .shopCard {
    padding: 12px !important;
    gap: 10px !important;
  }

  .shopCardMedia {
    min-height: 108px !important;
  }

  .shopCardActions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .shopPrice,
  .premiumContainerPrice,
  .shopBuyBtnAlt,
  .starsBuyBtn {
    min-height: 38px !important;
    font-size: 11px !important;
  }

  .premiumContainerShowcaseLayout {
    gap: 14px !important;
  }

  .premiumContainerVisual {
    min-height: 200px !important;
  }

  .premiumContainerHero {
    min-height: 170px !important;
  }

  .premiumContainerHeroImg {
    height: 184px !important;
    transform: scale(1.08) !important;
  }

  .containerTabs {
    gap: 6px !important;
  }

  .containerTabs .subTab {
    min-height: 36px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
  }

  .containerWrap {
    min-height: 170px !important;
    margin-top: 10px !important;
  }

  .containerImg {
    width: min(270px, 82%) !important;
    height: 132px !important;
  }

  .containerActions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .containerActions .equipBtn,
  .containerActions .ghostBtn {
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
  }

  .containerMetaRow {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
    gap: 8px !important;
  }

  .containerMetaRight {
    align-items: stretch !important;
  }

  .containerPill {
    min-height: 24px;
    font-size: 11px !important;
  }

  .rewardCard {
    width: min(92vw, 440px) !important;
    padding: 18px 16px 18px !important;
    border-radius: 24px !important;
  }

  .rewardTitle {
    font-size: 17px !important;
  }

  .rewardContainerBox {
    width: min(290px, 100%) !important;
    height: 188px !important;
    margin-top: 14px !important;
    border-radius: 22px !important;
  }

  .rewardText {
    margin-top: 14px !important;
    font-size: 13px !important;
  }
}
