/* Shared chrome for the separate black-gold entry. The first three surfaces
   were sampled from Figma section 18002:3042. */
@layer hm7-blackgold {
  html[data-hm7-theme="blackgold"] {
    color-scheme: dark;
    --bg-canvas: #120706;
    --bg-base: #1e100b;
    --bg-panel: #27180e;
    --bg-card: #321e11;
    --bg-raise: #462b19;
    --bg-field: #21130d;
    --bg-line: #543c29;
    --bg-line-soft: #3f2a1c;
    --bg-text: #fff0df;
    --bg-copy: #e4d0bb;
    --bg-muted: #c2a793;
    --bg-dim: #ac9180;
    --bg-gold: #edc384;
    --bg-gold-hi: #ffe4ac;
    --bg-copper: #b98249;
    --bg-on-gold: #301a0c;
    --bg-gold-wash: #4a301c;
    --bg-metal: linear-gradient(112deg, #ffe4ac 0%, #eac28d 42%, #d9a66a 100%);
    --bg-hero: linear-gradient(124deg, #49301d, #2f1a0f 63%, #21130d);
    --bg-focus: #ffe1a5;
    --bg-error: #ff998b;
    --bg-positive: #7fd7aa;
    --bg-depth: 0 8px 25px rgb(13 5 3 / 32%);
  }

  html[data-hm7-theme="blackgold"],
  html[data-hm7-theme="blackgold"] :where(body, #app, .app-wrapper, .app-layout, .app-content, .main-container, .page-container, .page-container-scroll) {
    background-color: var(--bg-canvas) !important;
    color: var(--bg-text) !important;
    accent-color: var(--bg-gold);
    --sw-ink: var(--bg-text) !important;
    --sw-muted: var(--bg-muted) !important;
    --sw-secondary: var(--bg-muted) !important;
    --sw-line: var(--bg-line-soft) !important;
    --walk-text: var(--bg-text) !important;
    --walk-secondary: var(--bg-muted) !important;
    --walk-line: var(--bg-line-soft) !important;
    --van-primary-color: var(--bg-gold) !important;
    --van-background: var(--bg-canvas) !important;
    --van-background-2: var(--bg-panel) !important;
    --van-background-3: var(--bg-card) !important;
    --van-text-color: var(--bg-text) !important;
    --van-text-color-2: var(--bg-muted) !important;
    --van-text-color-3: var(--bg-dim) !important;
    --van-border-color: var(--bg-line-soft) !important;
    --van-active-color: var(--bg-raise) !important;
    --van-active-opacity: .82;
    --van-cell-background: var(--bg-panel) !important;
    --van-field-input-text-color: var(--bg-text) !important;
    --van-field-placeholder-text-color: var(--bg-dim) !important;
    --van-nav-bar-background: var(--bg-base) !important;
    --van-nav-bar-title-text-color: var(--bg-text) !important;
    --van-popup-background: var(--bg-panel) !important;
    --van-tab-active-text-color: var(--bg-gold-hi) !important;
    --van-tabs-bottom-bar-color: var(--bg-gold) !important;
    --van-tabs-nav-background: var(--bg-panel) !important;
    --van-button-primary-background: var(--bg-gold) !important;
    --van-button-primary-color: var(--bg-on-gold) !important;
    --van-button-primary-border-color: var(--bg-gold) !important;
    --van-dialog-background: var(--bg-panel) !important;
    --van-action-sheet-item-background: var(--bg-panel) !important;
    --van-picker-background: var(--bg-panel) !important;
    --van-picker-mask-background: linear-gradient(180deg, #27180ef0, #27180e00),linear-gradient(0deg, #27180ef0, #27180e00) !important;
    --van-picker-option-text-color: var(--bg-text) !important;
  }
  html[data-hm7-theme="blackgold"] :focus-visible {
    outline-color: var(--bg-focus) !important;
  }
  html[data-hm7-theme="blackgold"] ::selection {
    background: #e5b574;
    color: #291609;
  }
  html[data-hm7-theme="blackgold"] :is(nav[data-hm7-nav-motion], .hm7-member-dock) {
    --hm7-tab-active: var(--bg-gold-hi) !important;
    --hm7-tab-idle: var(--bg-dim) !important;
    background: linear-gradient(180deg,#2c1b12,#1e110c) !important;
    box-shadow: inset 0 1px 0 #644831, 0 -3px 12px #10060355 !important;
    border-color: var(--bg-line) !important;
  }
  html[data-hm7-theme="blackgold"] nav[data-hm7-nav-motion] a.hm7-bn-item,
  html[data-hm7-theme="blackgold"] .hm7-member-dock a { color: var(--bg-dim) !important; }
  html[data-hm7-theme="blackgold"] :is(nav[data-hm7-nav-motion], .hm7-member-dock) :is(a.active,a[aria-current="page"]) { color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] nav[data-hm7-nav-motion] a.hm7-bn-item > span { color: inherit !important; }
  html[data-hm7-theme="blackgold"] nav[data-hm7-nav-motion] a[aria-current="page"] .hm7-paint-start { stop-color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] nav[data-hm7-nav-motion] a[aria-current="page"] .hm7-paint-end { stop-color: #cd9458 !important; }
  html[data-hm7-theme="blackgold"] :is(.van-nav-bar, .van-dialog, .van-action-sheet, .van-picker, .van-address-list, .van-calendar, .van-search, .van-cell) {
    background-color: var(--bg-panel) !important;
    color: var(--bg-text) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.van-nav-bar__title, .van-action-sheet__name, .van-dialog__header, .van-picker-column__item, .van-cell__title) { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] :is(.van-nav-bar__arrow, .van-nav-bar__text, .van-picker__confirm, .van-dialog__confirm) { color: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] :is(.van-field__control, .van-tab--active, .van-calendar-day, .van-popup__close-icon) { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] :is(.van-action-sheet__description, .van-cell__value, .van-picker__cancel, .van-empty__description, .van-list__finished-text) { color: var(--bg-muted) !important; }
  html[data-hm7-theme="blackgold"] :is(.van-search__content, .van-action-sheet__gap) { background-color: var(--bg-field) !important; }
  html[data-hm7-theme="blackgold"] .sw-empty { background: var(--bg-panel) !important; color: var(--bg-copy) !important; border-color: var(--bg-line-soft) !important; }

  /* Dialog containers only; keep the overlay translucent and preserve QR,
     verification, reward, and brand imagery in their own elements. */
  html[data-hm7-theme="blackgold"] :is(.domain-card,.domain-content,.notice-modal-content,.hm7-auth-sheet,.hm7-p-sheet,.hm7-care-sheet,.wf-home-sheet,.inbox-dialog,.wr-sheet,.iv-sheet,.dp-sheet,.wd-sheet,.hm7-pro-sheet) {
    background: var(--bg-panel) !important;
    color: var(--bg-text) !important;
    border-color: var(--bg-line) !important;
    box-shadow: var(--bg-depth) !important;
  }
  html[data-hm7-theme="blackgold"] .domain-card::after { background: var(--bg-hero) !important; }
  html[data-hm7-theme="blackgold"] :is(.domain-title,.domain-label,.notice-title,.hm7-auth-label-row,.hm7-auth-sheet h2,.wf-nav,.wr-title,.dp-row-heading,.inbox-alert) { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] :is(.domain-title .title span,.hm7-auth-link,.hm7-auth-switch,.hm7-auth-secondary,.hm7-auth-sheet a,.hm7-care-secondary,.wf-rule-button) { color: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] :is(.domain-row,.hm7-auth-field,.hm7-auth-input,.hm7-auth-other,.wf-sheet-x,.hm7-p-close,.hm7-auth-close,.domain-close) {
    background: var(--bg-field) !important;
    color: var(--bg-copy) !important;
    border-color: var(--bg-line) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.domain-row span,.notice-content,.notice-type,.hm7-auth-options,.hm7-auth-rules,.hm7-auth-account-hint) { color: var(--bg-copy) !important; }
  html[data-hm7-theme="blackgold"] :is(.hm7-auth-input,.hm7-auth-field) input { background-color: transparent !important; color: var(--bg-text) !important; caret-color: var(--bg-gold); }
  html[data-hm7-theme="blackgold"] :is(.hm7-auth-field,.hm7-auth-sheet,.dp-sheet,.iv-sheet) ::placeholder { color: var(--bg-dim) !important; }
  html[data-hm7-theme="blackgold"] :is(.domain-row button,.notice-modal .btn-box .btn) { background: var(--bg-raise) !important; color: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] :is(.notice-modal .btn-box .blue-btn,.hm7-auth-primary,.hm7-care-cta,.wf-confirm,.hm7-p-primary,.iv-primary,.wa-primary,.wr-primary) {
    background: var(--bg-metal) !important;
    border-color: var(--bg-copper) !important;
    color: var(--bg-on-gold) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.hm7-auth-primary,.hm7-p-primary,.iv-primary,.wa-primary,.wr-primary,.wf-confirm):disabled {
    background: var(--bg-raise) !important;
    color: var(--bg-dim) !important;
    border-color: var(--bg-line) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.hm7-auth-error,.dp-error,.wa-error,.iv-error-text,.hm7-p-error,.hm7-check-error) { color: var(--bg-error) !important; }
}

/* Companion screens use the section's canvas, card and metal palette. All
   selectors stay attached to the separate document root. */
@layer hm7-blackgold {
  html[data-hm7-theme="blackgold"] .hm7-auth-sheet :is(h1,.hm7-auth-label-row label) { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] .hm7-auth-sheet .hm7-auth-field { background: transparent !important; }
  html[data-hm7-theme="blackgold"] .domain-popup[data-page1-popup] :is(.domain-card,.domain-content,.domain-close) { background: transparent !important; box-shadow: none !important; }
  html[data-hm7-theme="blackgold"] .domain-popup[data-page1-popup] .domain-card::before { filter: grayscale(1) brightness(.50) sepia(1) saturate(1.8) hue-rotate(-15deg) brightness(.49); }
  html[data-hm7-theme="blackgold"] .domain-popup[data-page1-popup] :is(.domain-section,.domain-row button) { background: var(--bg-panel) !important; }
  html[data-hm7-theme="blackgold"] .domain-popup[data-page1-popup] :is(.domain-title .title,.hide-check) { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] .domain-popup[data-page1-popup] .domain-title .title::after,
  html[data-hm7-theme="blackgold"] .notice-modal[data-page1-popup] .notice-modal-content::after { filter: sepia(1) saturate(1.2); }
  html[data-hm7-theme="blackgold"] .domain-popup[data-page1-popup] .save-btn {
    color: var(--bg-on-gold) !important; background: var(--bg-metal) !important; border-radius: 999px;
  }
  html[data-hm7-theme="blackgold"] .domain-popup[data-page1-popup] .hide-check { display: flex; align-items: center; }
  html[data-hm7-theme="blackgold"] .domain-popup[data-page1-popup] .hide-check span { display: inline-block; position: relative; flex: 0 0 14px; height: 14px; border: 1px solid var(--bg-muted) !important; background: var(--bg-field) !important; border-radius: 4px; }
  html[data-hm7-theme="blackgold"] .domain-popup[data-page1-popup] .hide-check em { font-style: normal; }
  html[data-hm7-theme="blackgold"] .domain-popup[data-page1-popup] .hide-check input:checked + span { background: var(--bg-copper) !important; }
  html[data-hm7-theme="blackgold"] .notice-modal[data-page1-popup] .notice-modal-content::before { background: var(--bg-field) !important; }
  html[data-hm7-theme="blackgold"] .notice-modal[data-page1-popup] .notice-modal-content::after { z-index: 0 !important; width: min(22vw,95px) !important; height: min(15vw,67px) !important; top: 2px !important; right: 15px !important; }
  html[data-hm7-theme="blackgold"] .notice-modal[data-page1-popup] .btn:not(.blue-btn) { border-color: var(--bg-line) !important; }
  html[data-hm7-theme="blackgold"] :is(
    .hm7-deposit,.hm7-withdraw,.hm7-withdraw-accounts,.hm7-w-records,.hm7-profile,
    .hm7-perks,.hm7-offer-detail,.hm7-welfare,.hm7-checkin,.hm7-invite,.hm7-inbox,
    .hm7-info,.hm7-guide,.hm7-access,.hm7-care,.loss-page,.rebate-main,.security-page,
    .about-page,.game-history-page,.game-record-page,.change-password-page,
    .user-transfer-page,.recover-balance-page,.today-stats-page,.room-settings,
    .room-details,.room-members,.xy28-help-page,.xy28-history,.xy28-chat,.hm7-official-room
  ) {
    --dp-blue: var(--bg-gold) !important;
    --dp-ink: var(--bg-text) !important;
    --dp-muted: var(--bg-muted) !important;
    --dp-field: var(--bg-field) !important;
    --dp-rule: var(--bg-line-soft) !important;
    --od-ink: var(--bg-text) !important;
    --od-copy: var(--bg-copy) !important;
    --od-muted: var(--bg-muted) !important;
    --od-line: var(--bg-line-soft) !important;
    --iv-blue: var(--bg-gold) !important;
    --iv-ink: var(--bg-text) !important;
    --iv-muted: var(--bg-muted) !important;
    --iv-page: var(--bg-canvas) !important;
    --iv-tint: var(--bg-raise) !important;
    --iv-gradient: var(--bg-metal) !important;
    --sw-ink: var(--bg-text) !important;
    --sw-muted: var(--bg-muted) !important;
    --detail-ink: var(--bg-text) !important;
    --detail-muted: var(--bg-muted) !important;
    background-color: var(--bg-canvas) !important;
    color: var(--bg-text) !important;
  }

  html[data-hm7-theme="blackgold"] :is(.dp-top,.dp-footer,.dp-method-sheet > header,.wr-title,.wr-bottom,.perks-header,.od-head,.od-foot,.iv-top,.inbox-header,.wf-nav,.hm7-info-head,.hm7-guide-heading,.hm7-access-nav,.rebate-detail-header) {
    background: var(--bg-base) !important;
    color: var(--bg-text) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.dp-types button,.dp-channel,.dp-box,.dp-choice,.dp-entry,.dp-fact,.dp-offer-choice,.dp-amounts button,.dp-method-row,.wd-amount-card,.wd-method,.wa-card,.wa-choice,.wa-form,.wr-card,.wr-panel,.wr-details,.wr-empty,.wr-row,.perks-offer,.perks-ticket,.perks-rebate-card,.perks-rebate-links,.perks-code,.perks-coupons,.perks-check,.od-card,.od-related,.iv-block,.iv-reward-card,.iv-income-block,.iv-empty,.iv-select,.hm7-p-group,.hm7-p-quick,.hm7-p-choice,.hm7-info-card,.hm7-info-article,.hm7-info-item,.hm7-info-row,.hm7-guide-article,.hm7-guide-row,.hm7-access-row,.inbox-card,.inbox-detail-card,.wf-card,.wf-panels,.wf-task,.hm7-check-task,.hm7-check-panel,.rebate-feedback) {
    background-color: var(--bg-panel) !important;
    color: var(--bg-text) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.dp-tabs,.perks-tabs,.iv-tab-strip,.inbox-tabs,.wf-day-tile,.wr-chips,.hm7-info-pills,.iv-date-value) {
    background: var(--bg-field) !important;
    color: var(--bg-copy) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.dp-types button,.dp-action,.dp-channel,.dp-note,.dp-method-copy,.dp-entry,.dp-offer-choice,.dp-amounts button,.wd-amount-card,.wa-field,.wa-card,.perks-offer-info,.perks-rebate-card,.perks-rebate-link,.wf-card,.wf-nav,.iv-top,.hm7-p-row,.hm7-p-quick,.hm7-guide-row,.hm7-info-row,.hm7-access-row) :is(h1,h2,h3,h4,b,strong,label) {
    color: var(--bg-text) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.dp-note,.dp-row-heading,.dp-method-copy small,.dp-offer-choice small,.dp-amounts small,.wd-limits,.wa-field label,.wr-time,.wr-state,.perks-ticket small,.perks-offer-info small,.perks-rebate-card small,.od-period,.wf-sub,.wf-footnote,.wf-time,.wf-day-name,.iv-dates,.iv-empty,.inbox-time,.inbox-state,.hm7-p-id,.hm7-p-status,.hm7-info-status,.hm7-info-text,.hm7-access-value,.hm7-check-conditions,.hm7-check-note,.rebate-feedback-note) {
    color: var(--bg-muted) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.dp-amounts,.dp-box,.dp-method-sheet,.wd-amount-card,.wa-field,.wr-filters,.perks-code,.iv-select,.hm7-phone-form,.hm7-code-field,.security-page,.recover-balance-page,.change-password-page) :is(input,textarea,select) {
    background-color: var(--bg-field) !important;
    color: var(--bg-text) !important;
    border-color: var(--bg-line) !important;
    caret-color: var(--bg-gold);
  }
  html[data-hm7-theme="blackgold"] :is(.dp-method-mark,.dp-more,.dp-custom-amount,.wr-chips button,.wa-link,.wd-link,.hm7-info-secondary,.iv-secondary,.inbox-cancel,.rebate-actions button,.hm7-p-secondary,.walk-more-welfare,.wf-rule-button) {
    background-color: var(--bg-raise) !important;
    color: var(--bg-gold) !important;
    border-color: var(--bg-line) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.dp-tabs,.inbox-tabs,.iv-tabs,.iv-tab-strip,.hm7-info-pills,.perks-tabs) button {
    color: var(--bg-muted) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.dp-tabs,.perks-tabs,.iv-tabs,.iv-tab-strip,.inbox-tabs,.hm7-info-pills) :is(.active,.selected,[aria-selected=true],[aria-pressed=true]),
  html[data-hm7-theme="blackgold"] :is(.dp-action,.perks-primary,.od-action,.hm7-info-primary,.wf-cta,.hm7-check-action,.hm7-check-go,.hm7-phone-submit,.iv-copy,.iv-primary,.inbox-confirm,.wa-primary) {
    background: var(--bg-metal) !important;
    color: var(--bg-on-gold) !important;
    border-color: var(--bg-copper) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.dp-tabs,.perks-tabs,.iv-tabs,.inbox-tabs,.hm7-info-pills) button.active :is(span,b,strong),
  html[data-hm7-theme="blackgold"] :is(.dp-action,.perks-primary,.od-action,.wf-cta) :is(span,b,strong) { color: inherit !important; }
  html[data-hm7-theme="blackgold"] :is(.dp-types,.dp-amounts,.dp-method-list,.wd-method,.wa-choice,.wr-chips) :is(.active,.selected,.is-active,[aria-selected=true],[aria-pressed=true]) {
    background: var(--bg-gold-wash) !important;
    color: var(--bg-gold-hi) !important;
    border-color: var(--bg-copper) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.dp-action,.perks-primary,.od-action,.wf-cta,.hm7-check-action,.hm7-phone-submit,.inbox-confirm):is(:disabled,[aria-disabled=true],.disabled) {
    background: var(--bg-raise) !important;
    color: var(--bg-dim) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.dp-link,.dp-help,.dp-refresh,.dp-records,.wd-link,.wr-retry,.wr-more,.iv-refresh,.iv-more,.iv-amount,.od-retry,.od-related-button,.perks-service,.hm7-p-vip-link,.hm7-check-money,.hm7-check-link,.hm7-guide-arrow,.hm7-access-chevron,.hm7-p-chevron) {
    color: var(--bg-gold) !important;
  }

  /* Monetary values and payment brandmarks keep their own meaning. */
  html[data-hm7-theme="blackgold"] .dp-balance { background: var(--bg-hero) !important; color: var(--bg-text) !important; box-shadow: inset 0 1px 0 #865d37 !important; }
  html[data-hm7-theme="blackgold"] .dp-balance::before { background: linear-gradient(100deg,#7c5030,#d9ac70,#a4734a) !important; }
  html[data-hm7-theme="blackgold"] .dp-balance :is(.dp-balance-top,.dp-number) { color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] .dp-balance-top .dp-badge { background-color: var(--bg-base) !important; color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] :is(.dp-required,.hm7-p-warning,.wf-error,.wa-danger) { color: var(--bg-error) !important; }
  html[data-hm7-theme="blackgold"] :is(.dp-green,.wf-day-check,.od-status-ongoing) { color: var(--bg-positive) !important; }
  html[data-hm7-theme="blackgold"] :is(.dp-promo,.hm7-check-notice,.wf-receipt,.iv-toast) { background-color: var(--bg-raise) !important; color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] .od-rich :is(p,li,td,th,span,strong,b),
  html[data-hm7-theme="blackgold"] :is(.od-terms,.wf-rules,.hm7-guide-article,.hm7-info-article,.iv-rules) :is(p,li,dd,td) { color: var(--bg-copy) !important; }
  html[data-hm7-theme="blackgold"] :is(.od-terms,.wf-rules,.hm7-guide-article,.iv-rules) :is(h2,h3,th) { color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] :is(.od-rich,.iv-table,.hm7-info-article) :is(td,th) { background-color: var(--bg-panel) !important; border-color: var(--bg-line) !important; }
  html[data-hm7-theme="blackgold"] .od-rich a { color: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] .perks-offer .perks-offer-info > span {
    color: var(--bg-on-gold) !important; background: var(--bg-metal) !important; border-color: var(--bg-copper) !important;
  }
  html[data-hm7-theme="blackgold"] .perks-offer-info .sw-expiry { color: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] .hm7-p-hero { background: radial-gradient(ellipse at 82% 0%, #563a25, transparent 62%),var(--bg-base) !important; }
  html[data-hm7-theme="blackgold"] :is(.hm7-p-vip,.hm7-p-signin,.hm7-p-quick > *, .hm7-p-row,.hm7-check-days > *, .wf-extra,.wf-condition) { background-color: var(--bg-card) !important; border-color: var(--bg-line-soft) !important; color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] :is(.hm7-p-hero,.hm7-p-vip,.wf-card,.perks-ticket,.iv-block) h2 { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] :is(.perks-track,.hm7-p-track) { background: var(--bg-field) !important; }
  html[data-hm7-theme="blackgold"] :is(.perks-track,.hm7-p-track) > :first-child { background: var(--bg-metal) !important; }
  html[data-hm7-theme="blackgold"] .hm7-profile .walk-profile-hint { color: var(--bg-copy) !important; }
  html[data-hm7-theme="blackgold"] :is(.hm7-p-icon,.hm7-p-chevron) svg { color: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] .wf-day-value { background: #684326 !important; color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] .wf-extra .wf-day-value { background: var(--bg-metal) !important; color: var(--bg-on-gold) !important; }
  html[data-hm7-theme="blackgold"] .wf-sheet-grip { background: var(--bg-dim) !important; }
  html[data-hm7-theme="blackgold"] .wf-overlay .wf-nav { color: var(--bg-text) !important; }

  /* Lottery balls, red/green/blue numbers, positive/negative amounts and
     provider artwork retain their original colors. */
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.room-title-bar,.title-bar,.chat-header,.professional-footer,.professional-bet-panel,.room-compose,.chat-input-area,.credit-footer,.bet-footer,.table-footer,.position-group,.picker-header,.hm7-room-strip,.category-list,.bet-card,.road-card,.hm7-streak-card,.hm7-road-card,.hm7-room-analysis,.hm7-room-toolbox,.recent-bets-panel,.rules-popup-content,.bet-detail-dialog,.credit-cart-panel) {
    background-color: var(--bg-panel) !important;
    color: var(--bg-text) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.professional-body,.chat-messages,.chat-messages-wrapper,.bet-content,.scroll-area,.table-content) { background-color: var(--bg-canvas) !important; color: var(--bg-copy) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.room-issue,.room-result-header,.last-result-wrapper,.last-result-info) { background-color: var(--bg-card) !important; color: var(--bg-copy) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.room-result-labels,.option-odds,.position-odds,.tail-option-odds,.card-subtitle,.bet-time,.result-label,.room-number-label) { color: var(--bg-muted) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.header-title,.category-item,.option-label,.tail-option-label,.bet-content h3,.hm7-room-strip button,.title-text,.card-title,.room-title-bar) { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.bet-option,.position-option,.tail-bet-option,.amount-chip,.chip-item,.hm7-room-toolbox button,.category-item,.quick-amount-row,.text-action,.room-compose input,.input-wrapper,.setting-input) {
    background-color: var(--bg-card) !important;
    color: var(--bg-copy) !important;
    border-color: var(--bg-line) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.category-item,.bet-option,.position-option,.tail-bet-option,.amount-chip,.chip-item):is(.active,.selected,.is-active,[aria-pressed=true]),
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) .hm7-room-strip .hm7-room-current {
    background-color: var(--bg-gold-wash) !important;
    color: var(--bg-gold-hi) !important;
    border-color: var(--bg-copper) !important;
  }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) .hm7-room-current::after { background: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.submit-button,.credit-bet-btn,.position-bet-btn,.send-btn):enabled { background: var(--bg-metal) !important; color: var(--bg-on-gold) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.submit-button,.credit-bet-btn,.position-bet-btn,.send-btn):disabled { background: var(--bg-raise) !important; color: var(--bg-dim) !important; }
  html[data-hm7-theme="blackgold"] .hm7-deposit :is(.dp-top h1,.dp-row-heading span,.dp-channel span,.dp-promo b,.dp-provider-card strong,.dp-channel strong) { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] .hm7-deposit .dp-balance-top :is(label,span,b) { color: inherit !important; }
  html[data-hm7-theme="blackgold"] .hm7-deposit .dp-balance-top > :last-child { background-color: var(--bg-base) !important; color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] .hm7-shield { background-color: var(--bg-card) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.issue-num,.plus,.equal,.room-issue b,.professional-footer span,.room-compose button span) { color: var(--bg-copy) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) .result-maipai { color: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.room-group,.room-empty) { background-color: var(--bg-canvas) !important; color: var(--bg-muted) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) .hm7-room-strip button { background-color: var(--bg-panel) !important; }
  html[data-hm7-theme="blackgold"] .hm7-official-room .room-compose button:disabled { background-color: var(--bg-raise) !important; color: var(--bg-muted) !important; }
  html[data-hm7-theme="blackgold"] .hm7-official-room :is(.room-current b,.room-tools span,.room-current-column span) { color: var(--bg-copy) !important; }
  html[data-hm7-theme="blackgold"] .hm7-profile .walk-task-entry { background-color: var(--bg-card) !important; border-color: var(--bg-line-soft) !important; }
  html[data-hm7-theme="blackgold"] .hm7-profile :is(.walk-task-entry small,.hm7-p-account > span) { color: var(--bg-muted) !important; }
  html[data-hm7-theme="blackgold"] .hm7-profile .hm7-p-account :is(.walk-wallet-value,.hm7-money,.hm7-balance-value,p) { color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] .hm7-profile .hm7-p-track i::after { background: var(--bg-gold) !important; box-shadow: 0 0 0 2px var(--bg-line) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) .ball-sum.sum-red { color: #a34613 !important; }
  html[data-hm7-theme="blackgold"] .hm7-profile .walk-profile-balance,
  html[data-hm7-theme="blackgold"] .hm7-profile .walk-profile-balance > span { color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.room-title-bar button,.header-left .van-icon,.room-game-select,.room-last,.clear-selection,.room-last-arrow,.secondary-empty-tools button) { color: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) :is(.secondary-empty-tools button,.go-bottom-btn,.edit-amount,.recent-button,.amount-control,.amount-row input) { background: var(--bg-raise) !important; color: var(--bg-gold) !important; border-color: var(--bg-line) !important; }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat,.hm7-official-room) .amount-row input::placeholder { color: var(--bg-muted) !important; }
  html[data-hm7-theme="blackgold"] .hm7-invite :is(.iv-story,.iv-tabs) { background: var(--bg-panel) !important; }
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-story :is(p,h2,h3) { color: var(--bg-copy) !important; }
  html[data-hm7-theme="blackgold"] .perks-benefit-tools :is(.perks-filter,.perks-tabs button:not([aria-selected=true])) { background: var(--bg-raise) !important; color: var(--bg-copy) !important; }
  html[data-hm7-theme="blackgold"] .perks-code > div { background: var(--bg-panel) !important; }
  html[data-hm7-theme="blackgold"] :is(.perks-rebate-card-cta,.perks-code button:enabled) { background: var(--bg-metal) !important; color: var(--bg-on-gold) !important; }
  html[data-hm7-theme="blackgold"] .perks-code button:disabled { background: var(--bg-raise) !important; color: var(--bg-dim) !important; }
  html[data-hm7-theme="blackgold"] :is(.activity-new-page,.tab-page.tab-rebate,.tab-page.loss-page) {
    --rebate-ink: var(--bg-text) !important;
    --rebate-muted: var(--bg-muted) !important;
    --rebate-blue: var(--bg-gold) !important;
    --rebate-line: var(--bg-line) !important;
    background: var(--bg-canvas) !important;
    color: var(--bg-text) !important;
  }
  html[data-hm7-theme="blackgold"] .activity-new-page :is(.rebate-detail-header button,.rebate-feedback-title) { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] .activity-new-page :is(.date-trigger,.status-trigger,.action-btn,.rebate-feedback-retry) { background: var(--bg-raise) !important; color: var(--bg-gold) !important; border-color: var(--bg-line) !important; }
  html[data-hm7-theme="blackgold"] .activity-new-page :is(.vendor-item,.rate-row,.loss-card,.record-card) { background-color: var(--bg-panel) !important; color: var(--bg-copy) !important; border-color: var(--bg-line-soft) !important; }
  html[data-hm7-theme="blackgold"] .activity-new-page :is(.rebate-header,.loss-page .hero) {
    position: relative;
    isolation: isolate;
    background-color: var(--bg-card) !important;
  }
  html[data-hm7-theme="blackgold"] .activity-new-page :is(.rebate-header,.loss-page .hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(95deg,#462a18 0%,#422a1a 40%,#402719a8 64%,transparent 100%);
    pointer-events: none;
  }
  html[data-hm7-theme="blackgold"] .activity-new-page :is(.hero-label,.hero-amount,.hero-note,.rebate-header .label,.rebate-header .amount) { color: var(--bg-text) !important; }
}

/* The lobby belongs to the live document; its category, provider and reel
   artwork remains full-color, just as on the home design board. */
@layer hm7-blackgold {
  html[data-hm7-theme="blackgold"] .hm7-ent {
    --ent-slate: var(--bg-panel) !important;
    --ent-soft: var(--bg-card) !important;
    --walk-text: var(--bg-text) !important;
    --walk-secondary: var(--bg-muted) !important;
    --walk-line: var(--bg-line-soft) !important;
    color: var(--bg-text) !important;
    background: var(--bg-canvas) !important;
  }
  html[data-hm7-theme="blackgold"] .ent-header {
    background: linear-gradient(135deg,#583529,#281911 69%,#1b0e0b) !important;
    color: var(--bg-text) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-ent :is(.ent-wordmark,.ent-bulletin,.ent-balance,.ent-balance span) { color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] .hm7-ent :is(.ent-account,.ent-balance,.ent-icon) { background: var(--bg-raise) !important; color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] .hm7-ent :is(.ent-register,.ent-balance b,.ent-search button,.ent-confirm .ent-primary) {
    background: var(--bg-metal) !important; border-color: var(--bg-copper) !important; color: var(--bg-on-gold) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-ent :is(.ent-body,.ent-detail,.ent-subbar,.ent-tabs,.ent-tab-row) {
    background-color: var(--bg-canvas) !important; color: var(--bg-text) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-ent :is(.ent-tabs button,.ent-search-toggle,.ent-section-head button,.ent-provider-strip button,.ent-more,.ent-selects select,.ent-search input,.ent-filter,.ent-search-head label,.ent-search-head button,.ent-search-vendors header button) {
    background: var(--bg-card) !important; border-color: var(--bg-line-soft) !important; color: var(--bg-copy) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-ent :is(.ent-tabs button.active,.ent-provider-strip button.active,.ent-filter .active) {
    background: var(--bg-metal) !important; color: var(--bg-on-gold) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-ent :is(.ent-section-head,.ent-section-head h2,.ent-section-head h3,.ent-subbar h2,.ent-filter-text,.ent-supplier-meta strong,.ent-win-platform) { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] .hm7-ent :is(.ent-state,.ent-empty,.ent-count,.ent-supplier-count,.ent-win-member,.ent-history-empty p,.ent-search-none p,.ent-search-end) { color: var(--bg-muted) !important; }
  html[data-hm7-theme="blackgold"] .hm7-ent :is(.ent-win-card,.ent-empty,.ent-confirm,.ent-search-sheet,.ent-filter-options,.ent-history-empty,.ent-search-none) {
    color: var(--bg-copy) !important; background: var(--bg-panel) !important; border-color: var(--bg-line) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-ent .ent-win-amount { color: #ffae82 !important; }
  html[data-hm7-theme="blackgold"] .hm7-ent .ent-win-ratio { background: #a64028 !important; color: #fff4dc !important; }
  html[data-hm7-theme="blackgold"] .hm7-ent .ent-tabs button:not(.active) .ent-caticon {
    filter: brightness(0) saturate(100%) invert(89%) sepia(23%) saturate(407%) hue-rotate(337deg) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-ent .ent-tabs button.active .ent-caticon {
    filter: brightness(0) saturate(100%) invert(12%) sepia(19%) saturate(1892%) hue-rotate(341deg) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-ent :is(.walk-tail,.walk-tail-label,.walk-tail-arrow) { color: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] .hm7-ent .ent-bulletin,
  html[data-hm7-theme="blackgold"] .hm7-ent .ent-ticker { color: var(--bg-copy) !important; }
}

@layer hm7-blackgold {
  html[data-hm7-theme="blackgold"] .hm7-ent .ent-icon img { filter: brightness(0) saturate(100%) invert(88%) sepia(19%) saturate(455%) hue-rotate(339deg); }
}

/* The existing desktop light/dark control selects the two gold surface palettes. */
html[data-hm7-shell="desktop"][data-hm7-theme="blackgold"] {
  color-scheme:dark;
  --canvas:#281910; --surface:#352218; --text:#f6e7d2; --muted:#d3b99d;
  --line:#634835; --soft:#483020; --accent:#f1c58e; --accent-soft:#51361f;
  --rail:#20130d; --sidebar-fg:#d3bcaa;
  background:radial-gradient(ellipse at 50% 0,#503421,transparent 72%),var(--canvas);
}
html[data-hm7-shell="desktop"][data-hm7-theme="blackgold"][data-theme="dark"] {
  --canvas:#120706; --surface:#27180e; --soft:#321e11; --line:#513727;
  --rail:#150b08; --text:#faead6; --muted:#c4aa91; --accent-soft:#402818;
  background:radial-gradient(ellipse at 50% 0,#321e11,transparent 72%),var(--canvas);
}
html[data-hm7-shell="desktop"] .sidebar {background:linear-gradient(165deg,#382419,var(--rail) 42%,#1c100b);color:var(--sidebar-fg)}
html[data-hm7-shell="desktop"] :is(.nav-block button:hover,.side-help:hover,.theme-switch button[aria-pressed="true"]) {background:var(--soft);color:var(--text)}
html[data-hm7-shell="desktop"] :is(.nav-block button.active,.register-btn,.dialog-primary,.mp-primary,.mp-tabs button[aria-pressed="true"],.poster-play) {background:linear-gradient(110deg,#eacba2,#c39a70);color:#27180e}
html[data-hm7-shell="desktop"] :is(.register-btn:hover,.dialog-primary:hover,.poster>.favorite[aria-pressed="true"]) {background:#e4bb8d;color:#24160e}
html[data-hm7-shell="desktop"] :is(.theme-switch,.desk-game-notice) {background:var(--rail);color:var(--text)}
html[data-hm7-shell="desktop"] :is(.theme-switch button,.nav-section h2,.supplier-top small) {color:var(--muted)}
html[data-hm7-shell="desktop"] .supplier {background:var(--surface);color:var(--text)}
html[data-hm7-shell="desktop"] :is(.hero-content p,.hero-type) {color:#fff3e2}
html[data-hm7-shell="desktop"] .hero-type::before {background:#f4cfa1}
html[data-hm7-shell="desktop"] .hero-veil {background:linear-gradient(90deg,#28180df2 0%,#3c271ace 22%,#5034206b 43%,transparent 65%)}
html[data-hm7-shell="desktop"] .hero.vip .hero-scenery {background:linear-gradient(108deg,#2a170d,#77523b 55%,#d4bca2)}
html[data-hm7-shell="desktop"] .hero.vip .hero-veil {background:linear-gradient(90deg,#301b12,#4e332599 40%,transparent 66%)}
html[data-hm7-shell="desktop"] :is(.hero .hero-button,.hero:not(.vip) .hero-button,.hero:not(.vip) .hero-action-arrow) {background:#eed2ac;color:#302015}
html[data-hm7-shell="desktop"] .promo-offers {background:linear-gradient(104deg,#5b4030,#39261b);color:#ffe8ca}
html[data-hm7-shell="desktop"] :is(.section-icon.blue,.section-icon.violet) {color:var(--accent);background:var(--accent-soft)}
html[data-hm7-shell="desktop"] .mp-asset {background:linear-gradient(120deg,#4a3425,#372316 66%,#74583d)}
html[data-hm7-shell="desktop"] :is(.mp-asset-head span,.mp-asset p,.mp-asset small) {color:#ffecd6}
html[data-hm7-shell="desktop"] dialog::backdrop {background:#100805aa}
html[data-hm7-shell="desktop"] :focus-visible {outline-color:#f3cc9a}

/* The same rules serve the document dock and the home component's open shadow root. */
@layer hm7-blackgold {
  :is(html[data-hm7-theme="blackgold"], :host([data-hm7-page1-host])) nav:is([data-hm7-nav-motion],.dock,.hm7-member-dock)[aria-label] {
    --hm7-tab-idle: #bc9b84 !important;
    --hm7-tab-active: #f1c8a8 !important;
    --hm7-nav-label-size: 11px;
    background: linear-gradient(180deg,#402a22,#251711) !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  :is(html[data-hm7-theme="blackgold"], :host([data-hm7-page1-host])) nav[data-hm7-nav-motion][aria-label] a.hm7-bn-item {
    color: var(--hm7-tab-idle) !important;
  }
  html[data-hm7-theme="blackgold"] nav.hm7-member-dock[data-hm7-nav-motion][aria-label] {
    inset-inline: 0 !important;
    margin-inline: auto !important;
    transform: none !important;
  }
  :is(html[data-hm7-theme="blackgold"], :host([data-hm7-page1-host])) nav[data-hm7-nav-motion][aria-label] a.hm7-bn-item[aria-current="page"] {
    color: var(--hm7-tab-active) !important;
  }
  :is(html[data-hm7-theme="blackgold"], :host([data-hm7-page1-host])) nav[data-hm7-nav-motion][aria-label] a.hm7-bn-item > span {
    color: inherit !important;
    font: 500 var(--hm7-nav-label-size)/14px Inter,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif !important;
    letter-spacing: 0 !important;
  }
  :is(html[data-hm7-theme="blackgold"], :host([data-hm7-page1-host])) nav[data-hm7-nav-motion][aria-label] a.hm7-bn-item .hm7-paint-start {
    stop-color: #c3a48c !important;
  }
  :is(html[data-hm7-theme="blackgold"], :host([data-hm7-page1-host])) nav[data-hm7-nav-motion][aria-label] a.hm7-bn-item .hm7-paint-end {
    stop-color: #b99579 !important;
  }
  :is(html[data-hm7-theme="blackgold"], :host([data-hm7-page1-host])) nav[data-hm7-nav-motion][aria-label] a.hm7-bn-item[aria-current="page"] .hm7-paint-start {
    stop-color: #f8d8bc !important;
  }
  :is(html[data-hm7-theme="blackgold"], :host([data-hm7-page1-host])) nav[data-hm7-nav-motion][aria-label] a.hm7-bn-item[aria-current="page"] .hm7-paint-end {
    stop-color: #f1c4a0 !important;
  }
  @media (min-width: 414px) {
    :is(html[data-hm7-theme="blackgold"], :host([data-hm7-page1-host])) nav:is([data-hm7-nav-motion],.dock,.hm7-member-dock)[aria-label] {
      --hm7-nav-label-size: 12px;
    }
  }
}

@layer hm7-blackgold {
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-care-sheet {
    background: var(--bg-base) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-care-hero {
    background: var(--bg-hero);
    color: var(--bg-text);
    padding: 28px 20px 20px;
    min-height: 188px;
    box-sizing: border-box;
  }
  html[data-hm7-theme="blackgold"] .hm7-care-hero h1 {
    font-size: clamp(21px, 6vw, 27px);
    font-weight: 600;
  }
  html[data-hm7-theme="blackgold"] .hm7-care-hero p {
    color: var(--bg-copy) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-care-hero > img {
    width: min(40%, 146px);
    height: auto;
    max-height: none;
    aspect-ratio: 154 / 199;
    right: 18px;
    -webkit-mask: url("./art/support-portrait-mask.svg") center / 100% 100% no-repeat;
    mask: url("./art/support-portrait-mask.svg") center / 100% 100% no-repeat;
  }
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-care-close {
    display: grid;
    place-items: center;
    top: 4px;
    right: 4px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: transparent !important;
    color: var(--bg-text) !important;
    isolation: isolate;
  }
  html[data-hm7-theme="blackgold"] .hm7-care-close::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 6px;
    border: 1px solid var(--bg-line);
    border-radius: 50%;
    background: var(--bg-card);
  }
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-care-flow {
    padding-top: 14px;
  }
  html[data-hm7-theme="blackgold"] .hm7-care :is(.hm7-care-message, .hm7-care-options) {
    background: var(--bg-panel) !important;
    color: var(--bg-text) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-care-message {
    border: 1px solid var(--bg-line-soft);
    border-radius: 12px;
  }
  html[data-hm7-theme="blackgold"] .hm7-care :is(.hm7-care-message, .hm7-care-options) h2 {
    color: var(--bg-text) !important;
    font-size: 16px;
    font-weight: 600;
  }
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-care-message .hm7-access-row {
    background: transparent !important;
    color: var(--bg-copy) !important;
    min-height: 44px;
    border-top: 1px solid var(--bg-line-soft);
  }
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-access-row i { color: var(--bg-muted) !important; }
  html[data-hm7-theme="blackgold"] .hm7-care :is(.hm7-care-pill,.hm7-care-choice) {
    background: var(--bg-raise) !important;
    color: var(--bg-gold-hi) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-care-actions {
    background: var(--bg-base) !important;
    border-top: 1px solid var(--bg-line-soft);
  }
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-care-secondary {
    background: var(--bg-card) !important;
    color: var(--bg-copy) !important;
    border: 1px solid var(--bg-line);
  }
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-care-message li {
    border-color: var(--bg-line-soft);
  }
  html[data-hm7-theme="blackgold"] .hm7-care .hm7-care-message li small {
    color: var(--bg-muted);
  }
}

/* Theme the actual invitation and VIP routes, including local bottom sheets. */
@layer hm7-blackgold {
  html[data-hm7-theme="blackgold"] .hm7-invite {
    --iv-blue: var(--bg-gold);
    --iv-ink: var(--bg-copy);
    --iv-muted: var(--bg-muted);
    --iv-page: var(--bg-base);
    --iv-tint: var(--bg-card);
    --iv-gradient: var(--bg-metal);
  }
  html[data-hm7-theme="blackgold"] .hm7-invite :is(.iv-block,.iv-list,.iv-reward-card,.iv-income-block,.iv-error,.iv-sheet) {
    color: var(--bg-copy) !important;
    background: var(--bg-panel) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-invite :is(.iv-wallet,.iv-instant-amount) {
    color: var(--bg-copy) !important;
    background: var(--bg-card) !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-invite :is(.iv-wallet,.iv-instant-amount) strong { color: var(--bg-gold-hi) !important; }
  html[data-hm7-theme="blackgold"] .hm7-invite :is(.iv-list,.iv-block,.iv-income-block,.iv-sheet) :is(h2,h3),
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-empty strong { color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] .hm7-invite :is(.iv-select,.iv-date,.iv-sheet input) {
    color: var(--bg-copy) !important;
    background: var(--bg-field) !important;
    border-color: var(--bg-line) !important;
    color-scheme: dark;
  }
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-select select,
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-date .iv-date-value {
    color: var(--bg-copy) !important;
    background: transparent !important;
  }
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-select select option { color: var(--bg-text); background: var(--bg-field); }
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-table th { color: var(--bg-copy) !important; background: var(--bg-card) !important; }
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-table td,
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-rules h2,
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-income-block header { border-color: var(--bg-line-soft) !important; }
  html[data-hm7-theme="blackgold"] .hm7-invite :is(.iv-state,.iv-why,.iv-empty-link) {color:var(--bg-muted) !important;}
  html[data-hm7-theme="blackgold"] .hm7-invite :is(.iv-error button,.iv-more,.iv-refresh,.iv-close) {color:var(--bg-gold) !important;}
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-error-text {color:var(--bg-error) !important;}
  html[data-hm7-theme="blackgold"] .hm7-invite :is(.iv-secondary,.iv-close) {background:var(--bg-raise) !important;}
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-primary {background:var(--bg-metal) !important;color:var(--bg-on-gold) !important;}
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-primary:disabled {background:var(--bg-raise) !important;color:var(--bg-muted) !important;}
  html[data-hm7-theme="blackgold"] .hm7-invite :where(button,select,input):focus-visible {outline-color:var(--bg-focus);}
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-wallet-art {content:url('./art/member-panels/invite-wallet.webp');}
  html[data-hm7-theme="blackgold"] .hm7-invite .iv-empty-art {content:url('./art/member-panels/invite-empty.webp');}
  html[data-hm7-theme="blackgold"] .hm7-perks.perks-vip {color: var(--bg-copy) !important; background: var(--bg-base) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-vip-top {background:var(--bg-hero) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-vip-details {background:var(--bg-panel) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-header {background:transparent !important; box-shadow:none !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-header .perks-back {background:transparent !important;color:var(--bg-gold-hi) !important;opacity:1 !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-header .perks-back::before {background:var(--bg-field) !important;box-shadow:inset 0 0 0 1px var(--bg-line);}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-header .perks-back:active::before {background:var(--bg-raise) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-header .perks-back svg {color:var(--bg-gold-hi) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .walk-vip-hint {margin:8px 0 !important; padding-inline:calc(16 * var(--pu)) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip :is(.perks-vip-top,.perks-vip-details) h2,
  html[data-hm7-theme="blackgold"] .perks-vip .perks-pair strong {color:var(--bg-text) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip :is(.walk-vip-hint,.perks-pair>span,.perks-privileges span) {color:var(--bg-copy) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-pair {border-color:var(--bg-line-soft) !important; background:transparent !important;}
  html[data-hm7-theme="blackgold"] .perks-vip :is(.walk-tier-picker button,.walk-tier-picker select,.walk-motion-switch) {
    color:var(--bg-gold-hi) !important; background:var(--bg-field) !important; border-color:var(--bg-line) !important; color-scheme:dark;
  }
  html[data-hm7-theme="blackgold"] .perks-vip .walk-tier-picker button:disabled {color:var(--bg-dim) !important;opacity:.58;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier {
    background-image:url('./art/member-vip.webp') !important;
    background-position:calc(9 * var(--pu)) calc(4 * var(--pu)) !important;
    background-size:93.6% auto !important; background-repeat:no-repeat !important;
    isolation:isolate;
  }
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier[data-tier="1"] {background-image:url('./art/member-panels/vip-tier-1.webp') !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier[data-tier="2"] {background-image:url('./art/member-panels/vip-tier-2.webp') !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier[data-tier="3"] {background-image:url('./art/member-panels/vip-tier-3.webp') !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier[data-tier="4"] {background-image:url('./art/member-panels/vip-tier-4.webp') !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier[data-tier="5"] {background-image:url('./art/member-panels/vip-tier-5.webp') !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier[data-tier="6"] {background-image:url('./art/member-panels/vip-tier-6.webp') !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-privileges img[src*="/upgrade.webp"] {content:url('./art/member-panels/vip-upgrade.webp');}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-privileges img[src*="/support.webp"] {content:url('./art/member-panels/vip-support.webp');}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-privileges img[src*="/gift.webp"] {content:url('./art/member-panels/vip-gift.webp');}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-privileges img[src*="/birthday.webp"] {content:url('./art/member-panels/vip-birthday.webp');}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-privileges img[src*="/withdraw.webp"] {content:url('./art/member-panels/vip-withdraw.webp');}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-privileges img[src*="/extra.webp"] {content:url('./art/member-panels/vip-extra.webp');}
  html[data-hm7-theme="blackgold"] .perks-vip .walk-vip-tilt::after {
    clip-path:inset(20% 4% 6% 3.5% round calc(10 * var(--pu)));
    background:linear-gradient(120deg,transparent 40%,#ffe2bc12,transparent 69%) !important;
  }
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier small,
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier strong {color:var(--bg-gold-hi) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier span.perks-avatar {color:var(--bg-gold-hi) !important;background:var(--bg-raise) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier .perks-track,
  html[data-hm7-theme="blackgold"] .perks-vip .perks-tier .perks-track>span {background:transparent !important;color:var(--bg-text) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-track progress {background:#3a291e !important;accent-color:var(--bg-gold);}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-track progress::-webkit-progress-bar {background:#3a291e !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-track progress::-webkit-progress-value {background:var(--bg-metal) !important;}
  html[data-hm7-theme="blackgold"] .perks-vip .perks-track progress::-moz-progress-bar {background:var(--bg-gold) !important;}
}

/* These skins follow the room components, including the Vant menus teleported to body. */
@layer hm7-blackgold {
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-room-sheet {
    background: var(--bg-panel) !important;
    color: var(--bg-text) !important;
    border: 1px solid var(--bg-line) !important;
    border-bottom: 0 !important;
    width: min(100%, var(--app-max-width)) !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -8px 32px #10080555 !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-room-sheet::backdrop {
    background: rgb(9 5 3 / 62%) !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-room-sheet header {
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-room-sheet :is(header strong,h3) {
    color: var(--bg-text) !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-room-sheet header button {
    color: var(--bg-muted) !important;
    background: transparent !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-tools-grid button {
    background: var(--bg-card) !important;
    border: 1px solid var(--bg-line-soft) !important;
    border-radius: 10px !important;
    min-height: 52px;
    gap: 3px;
    color: var(--bg-copy) !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-tools-grid .van-icon {
    color: var(--bg-gold) !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-tools-grid button:active {
    background: var(--bg-gold-wash) !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat article.hm7-room-slip {
    background: var(--bg-panel) !important;
    color: var(--bg-copy) !important;
    border: 1px solid var(--bg-line-soft) !important;
    border-radius: 12px;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-room-slip :is(.hm7-slip-header,.hm7-slip-line,.hm7-slip-footer) {
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-room-slip :is(.hm7-slip-name,.hm7-slip-header span strong,.hm7-slip-line strong) {
    color: var(--bg-gold-hi) !important;
    font-variant-numeric: tabular-nums;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-room-slip :is(.hm7-slip-footer,.hm7-slip-status,.hm7-slip-header > span) {
    color: var(--bg-muted) !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .hm7-room-slip .hm7-slip-status.is-confirmed { color: var(--bg-positive) !important; }
  html[data-hm7-theme="blackgold"] .xy28-chat .chat-input-area .input-wrapper {
    background: transparent !important;
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .chat-input-area .bet-input {
    color: var(--bg-text) !important;
    background: var(--bg-field) !important;
    border-color: var(--bg-line) !important;
    caret-color: var(--bg-gold);
  }
  html[data-hm7-theme="blackgold"] .xy28-chat .chat-input-area .bet-input::placeholder {
    color: var(--bg-muted) !important;
    opacity: 1;
  }
  html[data-hm7-theme="blackgold"] :is(.xy28-chat .mode-switch,.hm7-official-room .room-group-switch) img {
    filter: grayscale(1) sepia(.85) saturate(1.8);
  }

  html[data-hm7-theme="blackgold"] .hm7-official-room .room-title-content {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px;
  }
  html[data-hm7-theme="blackgold"] .hm7-official-room .room-title-bar :is(.van-icon,.room-play-select) {
    color: var(--bg-gold) !important;
  }
  /* The H5 shell zooms #app on desktop. Fixed children anchor to the browser
     viewport; placing the controls in the room's rows keeps them inside it. */
  @supports (grid-template-rows: subgrid) {
    html[data-hm7-theme="blackgold"] .hm7-official-room.is-professional {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: auto minmax(0, 1fr) auto;
      height: 100% !important;
      min-height: 0 !important;
      overflow: hidden;
    }
    html[data-hm7-theme="blackgold"] .hm7-official-room.is-professional > .room-group {
      grid-row: 1;
      grid-column: 1;
    }
    html[data-hm7-theme="blackgold"] .hm7-official-room.is-professional > .room-professional,
    html[data-hm7-theme="blackgold"] .room-professional > :is(.lhc-page,.fc3d-page) {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: subgrid;
      grid-column: 1;
      min-height: 0 !important;
      height: auto !important;
      overflow: hidden;
    }
    html[data-hm7-theme="blackgold"] .hm7-official-room.is-professional > .room-professional { grid-row: 2 / 4; }
    html[data-hm7-theme="blackgold"] .room-professional > :is(.lhc-page,.fc3d-page) {
      grid-row: 1 / -1;
      padding-bottom: 0 !important;
    }
    html[data-hm7-theme="blackgold"] .room-professional .page-content {
      grid-row: 1;
      grid-column: 1;
      min-height: 0 !important;
      overflow: hidden;
      padding-bottom: 0 !important;
    }
    html[data-hm7-theme="blackgold"] .room-professional .page-content .scroll-area {
      min-height: 0;
      height: 100% !important;
      container-type: size;
      overflow-y: auto !important;
      overscroll-behavior-y: contain;
      padding-bottom: 48px !important;
    }
    html[data-hm7-theme="blackgold"] .room-professional .betting-footer {
      position: relative !important;
      inset: auto !important;
      grid-row: 2;
      grid-column: 1;
      width: 100% !important;
      min-width: 0;
    }
    html[data-hm7-theme="blackgold"] .hm7-official-room.is-professional > .room-group-switch {
      position: relative !important;
      inset: auto !important;
      grid-row: 2;
      grid-column: 1;
      place-self: end;
      margin: 0 12px 10px 0 !important;
    }
    /* Keep the lock in the visible portion of a long sealed number grid. */
    html[data-hm7-theme="blackgold"] .room-professional .play-panel .sealed-overlay {
      align-items: flex-start !important;
    }
    html[data-hm7-theme="blackgold"] .room-professional .sealed-overlay .sealed-content {
      position: sticky;
      top: max(6px, calc(50cqh - 58px));
    }
  }
  html[data-hm7-theme="blackgold"] .room-professional :is(.lhc-page,.fc3d-page,.page-content) {
    background: var(--bg-canvas) !important;
    color: var(--bg-copy) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional :is(.play-panel,.betting-footer) {
    background: var(--bg-panel) !important;
    color: var(--bg-text) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .play-panel :is(.play-tips,.selector-row) {
    background: var(--bg-card) !important;
    color: var(--bg-copy) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .play-panel :is(.play-tips .van-icon,.row-title .title-text) { color: var(--bg-gold) !important; }
  html[data-hm7-theme="blackgold"] .room-professional .play-panel :is(.panel-content,.ball-selector,.row-title) {
    background: transparent !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .play-panel :is(.odds,.tip-text) { color: var(--bg-muted) !important; }
  html[data-hm7-theme="blackgold"] .room-professional .row-actions > span,
  html[data-hm7-theme="blackgold"] .room-professional .fc3d-page .balls-container .ball-item {
    background: var(--bg-field) !important;
    border-color: var(--bg-line) !important;
    color: var(--bg-copy) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .fc3d-page .balls-container .ball-item .ball-content { color: inherit !important; }
  html[data-hm7-theme="blackgold"] .room-professional .fc3d-page .balls-container .ball-item:is(.selected,.active,.is-selected) {
    background: var(--bg-metal) !important;
    color: var(--bg-on-gold) !important;
    border-color: var(--bg-copper) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .fc3d-page .balls-container .ball-item.disabled {
    color: var(--bg-dim) !important;
    background: var(--bg-base) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .sealed-overlay {
    background: rgb(31 19 12 / 66%) !important;
    border-color: var(--bg-line) !important;
    color: var(--bg-copy) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .sealed-overlay .lock-ring {
    color: var(--bg-on-gold) !important;
    background: var(--bg-metal) !important;
    box-shadow: 0 2px 12px #170e0973 !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .sealed-overlay .lock-ring .lock-icon { color: var(--bg-on-gold) !important; }
  html[data-hm7-theme="blackgold"] .room-professional .sealed-overlay .text {
    background: var(--bg-panel) !important;
    color: var(--bg-gold-hi) !important;
    border-radius: 999px;
    padding: 3px 12px;
  }
  html[data-hm7-theme="blackgold"] .room-professional .sealed-overlay .sub-text { color: var(--bg-muted) !important; }

  html[data-hm7-theme="blackgold"] .room-professional .betting-footer {
    box-shadow: 0 -1px 0 var(--bg-line), 0 -4px 18px #1108043b !important;
    padding-bottom: env(safe-area-inset-bottom);
  }
  html[data-hm7-theme="blackgold"] .room-professional .betting-footer :is(.footer-settings,.footer-actions) {
    background: var(--bg-panel) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .betting-footer :is(.label,.play-odds,.balance,.bet-count) {
    color: var(--bg-muted) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .betting-footer :is(.highlight,.play-name,.bet-count span,.van-icon-shopping-cart-o) {
    color: var(--bg-gold) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .betting-footer .summary {
    color: var(--bg-copy) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .betting-footer :is(.unit-select,.unit-btn,.cart-btn-wrapper,.van-button,.van-stepper__plus,.van-stepper__minus,.van-stepper__input) {
    background: var(--bg-card) !important;
    border-color: var(--bg-line) !important;
    color: var(--bg-copy) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .betting-footer :is(.unit-btn.active,.submit-btn:enabled) {
    background: var(--bg-metal) !important;
    border-color: var(--bg-copper) !important;
    color: var(--bg-on-gold) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .betting-footer :is(.van-button:disabled,.van-button--disabled,.van-stepper__minus--disabled,.van-stepper__plus--disabled) {
    background: var(--bg-field) !important;
    color: var(--bg-dim) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] .room-professional .betting-footer .van-button .van-button__text { color: inherit !important; }

  html[data-hm7-theme="blackgold"] .van-popup:has(> :is(.play-menu,.play-selector)),
  html[data-hm7-theme="blackgold"] .van-popup > :is(.play-menu,.play-selector),
  html[data-hm7-theme="blackgold"] .van-popup :is(.play-menu .menu-body,.play-selector .selector-body) {
    background: var(--bg-panel) !important;
    color: var(--bg-text) !important;
  }
  html[data-hm7-theme="blackgold"] .van-popup--top:has(> .play-menu) {
    width: min(100%, var(--app-total-width)) !important;
    left: max(0px, calc((100% - var(--app-total-width)) / 2)) !important;
    right: auto !important;
    overflow: hidden;
  }
  html[data-hm7-theme="blackgold"] .van-popup--left:has(> .play-selector) {
    left: max(0px, calc((100% - var(--app-total-width)) / 2)) !important;
    max-width: min(100%, var(--app-total-width)) !important;
  }
  html[data-hm7-theme="blackgold"] .van-popup :is(.play-menu,.play-selector) :is(.menu-header,.selector-header,.menu-content,.sub-plays) {
    background: var(--bg-panel) !important;
    border-color: var(--bg-line-soft) !important;
    color: var(--bg-text) !important;
  }
  html[data-hm7-theme="blackgold"] .van-popup :is(.play-menu,.play-selector) :is(.menu-sidebar,.main-plays) {
    background: var(--bg-base) !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] .van-popup :is(.play-menu,.play-selector) :is(.menu-item,.main-play-item) {
    color: var(--bg-muted) !important;
    background: transparent !important;
    border-color: var(--bg-line-soft) !important;
  }
  html[data-hm7-theme="blackgold"] .van-popup :is(.play-menu,.play-selector) :is(.menu-item.active,.main-play-item.active,.sub-play-item) {
    color: var(--bg-copy) !important;
    background: var(--bg-card) !important;
    border-color: var(--bg-line) !important;
  }
  html[data-hm7-theme="blackgold"] .van-popup :is(.play-menu,.play-selector) :is(.menu-item.active,.main-play-item.active) {
    box-shadow: inset 3px 0 0 var(--bg-copper);
    color: var(--bg-gold-hi) !important;
  }
  html[data-hm7-theme="blackgold"] .van-popup :is(.play-menu,.play-selector) :is(.menu-item.active,.main-play-item.active)::before {
    background: var(--bg-copper) !important;
  }
  html[data-hm7-theme="blackgold"] .van-popup :is(.play-menu,.play-selector) .sub-play-item.active {
    background: var(--bg-gold-wash) !important;
    border-color: var(--bg-copper) !important;
    color: var(--bg-gold-hi) !important;
  }
  html[data-hm7-theme="blackgold"] .van-popup :is(.play-menu,.play-selector) :is(.close-btn,.close-icon) { color: var(--bg-gold) !important; }
}

@layer hm7-blackgold {
  html[data-hm7-theme="blackgold"] .wf-overlay.wf-home-overlay { background: rgb(13 7 4 / 62%) !important; }
  html[data-hm7-theme="blackgold"] .hm7-welfare.wf-home-sheet {
    --wf-ink: var(--bg-text);
    --wf-muted: var(--bg-muted);
    border: 1px solid var(--bg-line);
    border-bottom: 0;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-sheet-chrome {
    background: var(--bg-panel) !important;
    padding-block: 22px 12px !important;
    min-height: 56px !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-sheet-chrome h1 {
    color: var(--bg-text) !important;
    font-weight: 600 !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet :is(.wf-sheet-grip,.wf-sheet-x,.wf-rule-button) {
    background: transparent !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-sheet-grip::after { background: #8a6b53 !important; }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-sheet-x i { background: var(--bg-raise) !important; color: var(--bg-text) !important; }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-hero {
    background: url('art/signin-calendar.webp') right 18px center / auto 88px no-repeat,
      radial-gradient(ellipse at 85% 18%, #65442a, #382214 59%, #29190f) !important;
    min-height: 112px !important;
    margin: 0 12px !important;
    padding: 18px 16px !important;
    border: 1px solid var(--bg-line);
    border-radius: 12px;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-balance { padding: 0 !important; }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-balance > span { color: var(--bg-copy) !important; font-weight: 500 !important; }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-balance :is(div,strong,small) {
    color: var(--bg-gold-hi) !important; font-weight: 600 !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-panels {
    margin: 10px 12px 0 !important;
    background: transparent !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--bg-line-soft);
    border-radius: 12px !important;
    padding: 14px 12px !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet :is(.wf-state,.wf-time time,.wf-day-name,.wf-rules p,.wf-footnote) {
    color: var(--bg-copy) !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet :is(.wf-footnote,.wf-rule-block) { border-color: var(--bg-line) !important; }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-extra {
    background: transparent !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-extra .wf-day-tile {
    background: #4a2c14 !important;
    border-color: var(--bg-copper) !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-done .wf-day-check {
    background: #35745d !important;
    color: #fff6e7 !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet .wf-rule-button {
    min-height: 44px;
    color: var(--bg-gold) !important;
  }
  html[data-hm7-theme="blackgold"] .wf-home-sheet button:focus-visible { outline-color: var(--bg-focus); }
}
