/**
 * 10xWin bottom navigation — near-black glass, warm gold #ffd966.
 * Promotion | Activity | Gaming | Wallet | Account
 * Routes and icons stay as they are. Gaming is the center control.
 */

@keyframes tw-tabbar-glass-sweep {
  0% { background-position: -140% 0; }
  100% { background-position: 240% 0; }
}

body #app .tabbar__container,
body #app .tabbar__container[data-v-fb80cf49] {
  --tw-gold-deep: #c9971a;
  --tw-gold-mid: #e6b93c;
  --tw-gold-bright: #ffd966;
  --tw-gold-highlight: #fff0a6;
  --tab1: #ffd966;
  --tab2: #e6b93c;
  --text_color_L3: #ffd966;
  --text_color_L1: #fff0a6;

  position: fixed !important;
  z-index: 100 !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%) !important;
  width: min(430px, calc(100% - 20px)) !important;
  max-width: 430px !important;
  height: 58px !important;
  padding: 0 6px !important;
  border-radius: 34px !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  overflow: visible !important;

  background:
    linear-gradient(180deg, rgba(255, 217, 102, 0.07) 0%, transparent 34%),
    rgba(8, 8, 12, 0.92) !important;
  border: 1px solid rgba(255, 217, 102, 0.42) !important;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(255, 217, 102, 0.08),
    inset 0 1px 0 rgba(255, 217, 102, 0.28),
    inset 0 -12px 18px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(28px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(170%) !important;
}

body #app .tabbar__container::before,
body #app .tabbar__container[data-v-fb80cf49]::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 22px !important;
  right: 22px !important;
  top: 0 !important;
  height: 1px !important;
  border-radius: 999px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 217, 102, 0.25) 18%,
    rgba(255, 217, 102, 0.85) 50%,
    rgba(255, 217, 102, 0.25) 82%,
    transparent 100%
  ) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 3 !important;
  animation: none !important;
}

body #app .tabbar__container::after,
body #app .tabbar__container[data-v-fb80cf49]::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: linear-gradient(
    110deg,
    transparent 28%,
    rgba(255, 217, 102, 0.08) 46%,
    rgba(255, 240, 166, 0.06) 50%,
    rgba(255, 217, 102, 0.04) 56%,
    transparent 72%
  ) !important;
  background-size: 70% 100% !important;
  background-repeat: no-repeat !important;
  filter: blur(4px) !important;
  opacity: 0.85 !important;
  animation: tw-tabbar-glass-sweep 8s linear infinite !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

body #app .tabbar__container-item,
body #app .tabbar__container-item[data-v-fb80cf49] {
  position: relative !important;
  z-index: 2 !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  height: 100% !important;
  padding: 6px 0 0 !important;
  margin: 0 !important;
  color: var(--tw-gold-bright) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms ease !important;
}

body #app .tabbar__container-item span,
body #app .tabbar__container-item .tw-tabbar-gaming-label {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 6px !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  color: #ffd966 !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

body #app .tabbar__container-item:not(:nth-of-type(3)):not(.active) {
  --text_color_L3: #ffd966;
  color: #ffd966 !important;
}

body #app .tabbar__container-item:not(:nth-of-type(3)) .svg-icon,
body #app .tabbar__container-item:not(:nth-of-type(3)) svg {
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  box-sizing: content-box !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  transition: transform 220ms ease, filter 220ms ease !important;
}

body #app .tabbar__container-item.active:not(:nth-of-type(3)) {
  --tab1: #fff0a6;
  --tab2: #ffd966;
  --text_color_L3: #fff0a6;
  color: #fff0a6 !important;
}

body #app .tabbar__container-item.active:not(:nth-of-type(3)) span {
  color: #fff0a6 !important;
  font-weight: 600 !important;
  text-shadow: 0 0 10px rgba(255, 217, 102, 0.45) !important;
}

body #app .tabbar__container-item.active:not(:nth-of-type(3))::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 2px !important;
  width: 40px !important;
  height: 40px !important;
  transform: translateX(-50%) !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(255, 217, 102, 0.72) 0%, rgba(255, 196, 70, 0.28) 38%, transparent 70%) !important;
  filter: blur(1px) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

body #app .tabbar__container-item.active:not(:nth-of-type(3)) .svg-icon,
body #app .tabbar__container-item.active:not(:nth-of-type(3)) svg {
  position: relative !important;
  z-index: 1 !important;
  color: #fff0a6 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 0 3px rgba(255, 240, 166, 0.95))
    drop-shadow(0 0 8px rgba(255, 217, 102, 0.9))
    drop-shadow(0 0 16px rgba(255, 196, 70, 0.65)) !important;
}

body #app .tabbar__container-item:nth-of-type(3).active .promotionBg,
body #app .tabbar__container-item:nth-of-type(3).active .promotionBg[data-v-fb80cf49] {
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.5),
    0 0 0 5px rgba(8, 8, 12, 0.92),
    0 0 0 6px rgba(255, 217, 102, 0.95),
    0 0 22px rgba(255, 217, 102, 0.7),
    0 0 36px rgba(255, 196, 70, 0.35),
    inset 0 6px 10px rgba(255, 240, 166, 0.22),
    inset 0 -10px 14px rgba(201, 151, 26, 0.24) !important;
}

body #app .tabbar__container-item:nth-of-type(3).active .promotionBg .svg-icon,
body #app .tabbar__container-item:nth-of-type(3).active .promotionBg svg {
  filter:
    drop-shadow(0 0 3px rgba(255, 240, 166, 0.95))
    drop-shadow(0 0 10px rgba(255, 217, 102, 0.85)) !important;
}

body #app .tabbar__container-item.active:not(:nth-of-type(3))::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 2px !important;
  transform: translateX(-50%) !important;
  width: 14px !important;
  height: 2px !important;
  border-radius: 99px !important;
  background: #ffd966 !important;
  box-shadow: 0 0 8px rgba(255, 217, 102, 0.8) !important;
  pointer-events: none !important;
}

body #app .tabbar__container-item:nth-of-type(3) {
  flex: 1 1 0 !important;
  transform: none !important;
  color: #ffd966 !important;
  padding-top: 0 !important;
}

body #app .tabbar__container-item:nth-of-type(3) .tw-tabbar-gaming-label {
  color: #ffd966 !important;
  font-size: 10px !important;
}

body #app .tabbar__container-item:nth-of-type(3) .promotionBg,
body #app .tabbar__container-item:nth-of-type(3) .promotionBg[data-v-fb80cf49] {
  position: absolute !important;
  top: -16px !important;
  left: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  border-radius: 50% !important;
  z-index: 4 !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 240, 166, 0.55) 0%, rgba(255, 217, 102, 0.12) 16%, transparent 40%),
    radial-gradient(circle at 50% 88%, rgba(255, 217, 102, 0.28) 0%, transparent 46%),
    linear-gradient(180deg, rgba(28, 24, 16, 0.72), rgba(8, 8, 12, 0.88)) !important;
  border: 1.5px solid rgba(255, 217, 102, 0.95) !important;
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.5),
    0 0 0 5px rgba(8, 8, 12, 0.92),
    0 0 0 6px rgba(255, 217, 102, 0.7),
    0 0 16px rgba(255, 217, 102, 0.28),
    inset 0 6px 10px rgba(255, 240, 166, 0.16),
    inset 0 -10px 14px rgba(201, 151, 26, 0.2) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  animation: none !important;
  transition: transform 220ms ease, box-shadow 220ms ease !important;
}

body #app .tabbar__container-item:nth-of-type(3) .promotionBg::before {
  content: "" !important;
  position: absolute !important;
  inset: 5px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 217, 102, 0.35) !important;
  box-shadow: none !important;
  animation: none !important;
  pointer-events: none !important;
  background: transparent !important;
}

body #app .tabbar__container-item:nth-of-type(3) .promotionBg::after {
  content: "" !important;
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  top: 7px !important;
  bottom: auto !important;
  width: auto !important;
  height: 16px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: linear-gradient(180deg, rgba(255, 240, 166, 0.45) 0%, rgba(255, 217, 102, 0.08) 70%, transparent 100%) !important;
  pointer-events: none !important;
  transform: none !important;
  opacity: 0.9 !important;
}

body #app .tabbar__container-item:nth-of-type(3) .promotionBg .svg-icon,
body #app .tabbar__container-item:nth-of-type(3) .promotionBg svg,
body #app .tabbar__container .tabbar__container-item:nth-of-type(3) .svg-icon {
  position: relative !important;
  z-index: 2 !important;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #ffd966 !important;
  fill: #ffd966 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 0 rgba(120, 72, 0, 0.45)) !important;
  transition: transform 220ms ease, filter 220ms ease !important;
}

body #app .tabbar__container-item:nth-of-type(3) .promotionBg svg path {
  fill: currentColor !important;
}

@media (hover: hover) and (pointer: fine) {
  body #app .tabbar__container:hover {
    border-color: rgba(255, 217, 102, 0.6) !important;
  }

  body #app .tabbar__container-item:not(:nth-of-type(3)):hover span {
    color: #fff0a6 !important;
  }

  body #app .tabbar__container-item:not(:nth-of-type(3)):hover .svg-icon,
  body #app .tabbar__container-item:not(:nth-of-type(3)):hover svg {
    --text_color_L3: #fff0a6;
    background: transparent !important;
    filter: drop-shadow(0 0 5px rgba(255, 217, 102, 0.45)) !important;
  }

  body #app .tabbar__container-item:nth-of-type(3):hover .promotionBg {
    transform: translateX(-50%) scale(1.04) !important;
    box-shadow:
      0 12px 22px rgba(0, 0, 0, 0.45),
      0 0 0 5px rgba(8, 8, 12, 0.92),
      0 0 0 6px rgba(255, 217, 102, 0.85),
      0 0 22px rgba(255, 217, 102, 0.36),
      inset 0 6px 10px rgba(255, 240, 166, 0.2),
      inset 0 -10px 14px rgba(201, 151, 26, 0.22) !important;
  }
}

body #app .tabbar__container-item:not(:nth-of-type(3)):active .svg-icon,
body #app .tabbar__container-item:not(:nth-of-type(3)):active svg {
  transform: scale(0.94) !important;
}

body #app .tabbar__container-item:nth-of-type(3):active .promotionBg {
  transform: translateX(-50%) scale(0.96) !important;
}

@media (max-width: 360px) {
  body #app .tabbar__container,
  body #app .tabbar__container[data-v-fb80cf49] {
    width: calc(100vw - 12px) !important;
    height: 54px !important;
  }

  body #app .tabbar__container-item:nth-of-type(3) .promotionBg {
    width: 50px !important;
    height: 50px !important;
    top: -14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body #app .tabbar__container::after,
  body #app .tabbar__container[data-v-fb80cf49]::after {
    animation: none !important;
    opacity: 0 !important;
  }

  body #app .tabbar__container-item,
  body #app .tabbar__container-item .promotionBg,
  body #app .tabbar__container-item svg,
  body #app .tabbar__container-item .svg-icon {
    transition: none !important;
  }
}
