.lbSiteFooter {
  --lb-footer-line: #2a2830;
  --lb-footer-ink: #f5f2f8;
  --lb-footer-text: #c5c1ce;
  --lb-footer-muted: #a5a0b1;
  --lb-footer-accent: #e3c78c;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-block-start: auto;
  border-block-start: 1px solid var(--lb-footer-line);
  background: transparent;
  color: var(--lb-footer-text);
  font: 400 .875rem/1.55 "Segoe UI Variable", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.lbSiteFooter *, .lbSiteFooter *::before { box-sizing: border-box; }
.lbFooterVisuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.lbFooterInner {
  --lb-footer-gutter: var(--ref-gutter, 16px);
  width: min(var(--ref-content-max, 1728px), calc(100% - max(var(--lb-footer-gutter), env(safe-area-inset-left)) - max(var(--lb-footer-gutter), env(safe-area-inset-right))));
  margin-inline: auto;
}
.lbFooterColumns {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .88fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 76px);
  padding-block: clamp(34px, 4vw, 56px) 30px;
}
.lbFooterColumns > * { min-width: 0; }
.lbFooterBrand {
  display: grid;
  justify-items: start;
  row-gap: 18px;
}
.lbSiteFooter h2 {
  margin: 0 0 7px;
  color: var(--lb-footer-ink);
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 750;
  text-wrap: balance;
}
.lbFooterBrand > h2 { margin: 0; }
.lbSiteFooter a, .lbSiteFooter summary { color: inherit; touch-action: manipulation; }
.lbSiteFooter a { text-decoration: none; }
.lbSiteFooter a:hover, .lbSiteFooter summary:hover { color: var(--lb-footer-accent); }
.lbSiteFooter a:focus-visible, .lbSiteFooter summary:focus-visible {
  outline: 2px solid var(--lb-footer-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.lbSiteFooter .lbFooterLogo {
  display: grid;
  place-items: center;
  width: fit-content;
  min-height: 46px;
  padding-inline: 4px;
  color: var(--lb-footer-ink);
}
.lbSiteFooter .lbFooterLogo span { font-size: 25px; }
.lbFooterSocial, .lbFooterLinks { margin: 0; padding: 0; list-style: none; }
.lbFooterSocial {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.lbFooterSocialBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  border: 1px solid var(--lb-footer-line);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: .8125rem;
}
.lbFooterSupportGrid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 16px;
}
.lbFooterLinks a, .lbFooterAbout summary, .lbFooterPending {
  display: flex;
  align-items: center;
  gap: 6px 9px;
  min-height: 34px;
}
.lbFooterLinks a, .lbFooterAbout summary { width: fit-content; }
.lbFooterAbout summary { cursor: pointer; }
.lbFooterAbout summary::-webkit-details-marker { display: none; }
.lbFooterAbout summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-1px) rotate(45deg);
}
.lbFooterAbout[open] summary::after { transform: translateY(2px) rotate(225deg); }
.lbFooterAbout p {
  margin: 0 0 9px;
  max-width: 28ch;
  color: var(--lb-footer-muted);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}
.lbFooterPending { flex-wrap: wrap; gap: 3px 8px; }
.lbFooterTag {
  color: var(--lb-footer-muted);
  font-size: .75rem;
}
.lbFooterLegal {
  border-block-start: 1px solid var(--lb-footer-line);
  padding-block: 17px 18px;
  color: var(--lb-footer-muted);
  font-size: .8125rem;
  line-height: 1.65;
}
.lbFooterLegal p { margin: 0; }
.lbFooterLegal .lbFooterCopyright {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin-block-start: 10px;
}
.lbFooterCopyright span:first-child { color: var(--lb-footer-text); font-weight: 650; }
.lbFooterMarket {
  border-block-start: 1px solid var(--lb-footer-line);
  background: transparent;
  /* Keep content above the existing fixed support launcher's 46px + edge. */
  padding-block-end: max(72px, calc(env(safe-area-inset-bottom) + 53px));
}
.lbFooterMarketInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(14px, 2.5vw, 44px);
  align-items: center;
  padding-block-start: 13px;
}
.lbFooterQuotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: stretch;
  margin: 0;
  padding: 0;
  border: 1px solid var(--lb-footer-line);
  border-radius: 6px;
}
.lbFooterQuote {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1px 10px;
  min-width: 0;
  padding: 8px 5px;
}
.lbFooterQuote + .lbFooterQuote { border-inline-start: 1px solid var(--lb-footer-line); }
.lbFooterQuote dt { color: var(--lb-footer-accent); font-weight: 750; font-size: .75rem; }
.lbFooterQuote dd {
  margin: 0;
  color: var(--lb-footer-ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lbFooterMarketMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  align-items: baseline;
  color: var(--lb-footer-muted);
  font-size: .75rem;
}
.lbFooterMarketMeta time { font-variant-numeric: tabular-nums; }
.lbFooterSource { color: var(--lb-footer-text); }
.lbFooterMarketStatus[data-state="stale"] { color: var(--lb-footer-accent); }
#lb-shelf-house, #lb-shelf-booster, #luckybox-catalog { scroll-margin-block-start: 12px; }

@media (max-width: 1023px) {
  .lbFooterSupportGrid { grid-template-columns: 1fr; gap: 0; }
  .lbFooterMarketInner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 700px) {
  .lbFooterColumns { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 23px 12px; padding-block: 27px 24px; }
  .lbFooterBrand { grid-column: 1 / -1; row-gap: 14px; }
  .lbFooterLinks a, .lbFooterAbout summary { min-height: 44px; }
  .lbFooterPending { min-height: 36px; }
  .lbFooterQuote { flex-direction: column; flex-wrap: nowrap; align-items: center; line-height: 1.36; }
  .lbFooterQuote dd { font-size: .8125rem; }
}
@media (max-width: 337px) {
  .lbFooterColumns { grid-template-columns: 1fr; }
  .lbFooterQuote dd { font-size: .75rem; }
}
