:root {
  --xtw-tabbar-h: 52px;
}

body.xtw-has-tabbar {
  padding-bottom: var(--xtw-tabbar-h);
}

body.xtw-has-tabbar .limitation-width .gallery-main {
  height: calc(100% - 110px - var(--xtw-tabbar-h));
}

body.xtw-has-tabbar .lottery-helper,
body.xtw-has-tabbar .record-mains {
  padding-bottom: var(--xtw-tabbar-h);
}

#xtw-bottom-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate3d(-50%, 0, 0);
  width: 100%;
  max-width: 720px;
  height: var(--xtw-tabbar-h);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
  contain: layout style paint;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#xtw-bottom-tabbar.xtw-tabbar-hidden {
  display: none;
}

#xtw-bottom-tabbar .xtw-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  padding: 4px 0 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  color: #666;
  font-size: 11px;
  line-height: 1.2;
  font-family: Arial, Helvetica, "Microsoft YaHei", sans-serif;
}

#xtw-bottom-tabbar .xtw-tab-item:active {
  opacity: 0.75;
}

#xtw-bottom-tabbar .xtw-tab-icon {
  width: 24px;
  height: 24px;
  display: block;
}

#xtw-bottom-tabbar .xtw-tab-item.is-active {
  color: #07c160;
  font-weight: 600;
}

#xtw-bottom-tabbar .xtw-tab-item.is-active[data-tab="predict"] {
  color: #c77dff;
}

#xtw-bottom-tabbar .xtw-tab-item.is-active .xtw-tab-icon .xtw-accent {
  stroke: currentColor;
  fill: currentColor;
}

#xtw-bottom-tabbar .xtw-tab-item:not(.is-active) .xtw-tab-icon .xtw-accent {
  stroke: #07c160;
  fill: none;
}

#xtw-bottom-tabbar .xtw-tab-item[data-tab="predict"]:not(.is-active) .xtw-tab-icon .xtw-accent {
  stroke: #9d4edd;
}
