.open-lottery,
.van-tabbar__placeholder,
.van-tabbar,
.van-overlay:has(.notice),
.van-popup:has(.notice) {
  display: none !important;
}

.van-nav-bar__left,
.van-nav-bar__right {
  display: none !important;
}

.van-nav-bar__title {
  max-width: 100% !important;
}

.zhud-lottery {
  --zhud-ball-size: clamp(40px, 10vw, 80px);
  width: min(100%, 800px);
  margin: 5px auto;
  padding: 12px 15px 15px;
  color: #151515;
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  box-sizing: border-box;
}

.zhud-lottery *,
.zhud-lottery *::before,
.zhud-lottery *::after {
  box-sizing: border-box;
}

.zhud-lottery-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.zhud-lottery-tab {
  min-height: 34px;
  padding: 6px 4px;
  border: 0;
  border-radius: 5px;
  color: #111;
  background: #ededed;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.zhud-lottery-tab.is-active {
  color: #fff;
  background: #13cb46;
}

.zhud-lottery-tab:focus-visible {
  outline: 3px solid rgba(18, 189, 30, .35);
  outline-offset: 2px;
}

.zhud-draw-summary {
  margin-top: 0;
  padding: 10px;
  border: 1px solid #13cb46;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

.zhud-draw-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 0 15px;
  font-size: 14px;
}

#zhudIssueText {
  color: #e92323;
}

.zhud-history-link {
  justify-self: end;
  padding: 4px 0;
  color: #00a51a;
  text-decoration: none;
}

.zhud-history-link:hover,
.zhud-history-link:focus-visible {
  color: #087a19;
  text-decoration: underline;
}

.zhud-number-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  padding: 0 0 20px;
}

.zhud-number-card {
  position: relative;
  min-width: 0;
  width: var(--zhud-ball-size);
  padding: 0;
  text-align: center;
}

.zhud-number-card.pending .zhud-number-label { visibility: hidden; }

.zhud-number-plus {
  position: relative;
  flex: 0 0 clamp(10px, 2vw, 16px);
  width: clamp(10px, 2vw, 16px);
  height: clamp(42.3px, 10.6vw, 84.7px);
  align-self: flex-start;
}

.zhud-number-plus::before,
.zhud-number-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: #111;
  transform: translate(-50%, -50%);
}

.zhud-number-plus::before {
  width: 100%;
  height: 2px;
}

.zhud-number-plus::after {
  width: 2px;
  height: clamp(10px, 2vw, 16px);
}

.zhud-number-value.zhud-number-image {
  display: block;
  width: var(--zhud-ball-size);
  height: auto;
}

.zhud-number-label {
  display: block;
  min-height: 17px;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  color: #000;
  background: transparent;
  font-size: clamp(12px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .zhud-lottery {
    --zhud-ball-size: clamp(36px, 10.25vw, 40px);
    padding-right: 7px;
    padding-left: 7px;
  }
  .zhud-lottery-tab { min-height: 32px; font-size: 14px; }
  .zhud-draw-heading { font-size: 12px; }
  .zhud-number-grid { padding-right: 5px; padding-left: 5px; }
  .zhud-number-plus {
    flex-basis: 6px;
    width: 6px;
    height: clamp(38.1px, 10.85vw, 42.3px);
  }
  .zhud-number-plus::before {
    height: 1px;
  }
  .zhud-number-plus::after {
    width: 1px;
    height: 6px;
  }
  .zhud-number-label { font-size: 14px; }
}

@media (min-width: 800px) {
  .content > div[style*="overflow-y: auto"] {
    height: calc(100vh - 47px) !important;
  }
}
