body[data-huana-theme="gold"] {
  --huana-ink: #12120f;
  --huana-panel: #1b1a16;
  --huana-paper: #f7edda;
  --huana-gold: #dfbf84;
  --huana-muted: #cabc9f;
  --huana-rule: #635239;
  --huana-serif: "Noto Serif SC", "Songti SC", SimSun, "Noto Serif CJK SC", Georgia, serif;
  --kl-ink: var(--huana-paper);
  --kl-muted: var(--huana-muted);
  --kl-green: var(--huana-gold);
  --kl-gold: var(--huana-gold);
  --kl-line: var(--huana-rule);
  --kl-canvas: var(--huana-ink);
  color: var(--huana-paper);
  background: var(--huana-ink);
  color-scheme: dark;
}

body[data-huana-theme="gold"] .home {
  --home-ink: var(--huana-paper);
  --home-muted: var(--huana-muted);
  --home-line: var(--huana-rule);
  --home-shadow: none;
  background: var(--huana-ink);
  color: var(--huana-paper);
}

body[data-huana-theme="gold"] .home .brand {
  border-bottom: 1px solid var(--huana-rule);
  color: var(--huana-gold);
}

body[data-huana-theme="gold"] .home .brand h1,
body[data-huana-theme="gold"] .box h1,
body[data-huana-theme="gold"] .cs-login-brand strong,
body[data-huana-theme="gold"] .cs-member-brand strong,
body[data-huana-theme="gold"] .home h2 {
  font-family: var(--huana-serif);
  font-weight: 500;
}

body[data-huana-theme="gold"] .home .brand small,
body[data-huana-theme="gold"] .cs-login-brand small,
body[data-huana-theme="gold"] .cs-login-brand strong,
body[data-huana-theme="gold"] .cs-member-brand strong,
body[data-huana-theme="gold"] .cs-member-brand small {
  color: var(--huana-gold);
}

body[data-huana-theme="gold"] .home .brand .service,
body[data-huana-theme="gold"] .home .actions .home-funds-withdraw,
body[data-huana-theme="gold"] .home .home-history {
  background: #252018;
  border-color: var(--huana-rule);
  color: var(--huana-gold);
}

.huana-gold-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; }
.huana-gold-nav button {
  min-height: 44px; padding: 6px 8px; border: 0; background: transparent; color: var(--huana-gold); font: inherit;
}
.huana-gold-nav button[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
body[data-huana-theme="gold"] .home .brand .service { margin-left: 0; }
.huana-gold-overview { margin: 14px 0; overflow: hidden; border: 1px solid var(--huana-rule); border-radius: 16px; }
.huana-gold-period {
  position: relative; isolation: isolate; padding: clamp(24px,6vw,52px);
  background: radial-gradient(ellipse at 84% 112%, #665033 0, #2c251b 36%, #171611 75%);
}
.huana-gold-period::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(ellipse at 84% 115%, transparent 0 17px, #b2915c66 18px 19px, transparent 20px 27px);
  mask-image: linear-gradient(90deg, transparent 20%, #000 65%);
}
.huana-gold-period > p { margin: 0 0 8px; color: var(--huana-gold); letter-spacing: .16em; }
.huana-gold-period h2 { margin: 0 0 9px; color: var(--huana-paper); font-size: clamp(28px, 6vw, 54px); line-height: 1.18; letter-spacing: .06em; }
.huana-gold-period > div { color: var(--huana-muted); }
.huana-gold-last {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px;
  padding: 16px clamp(18px, 5vw, 38px); background: var(--huana-panel); border-top: 1px solid var(--huana-rule);
}
.huana-gold-last h3 { margin: 0 0 3px; color: var(--huana-gold); font: 500 20px/1.3 var(--huana-serif); }
.huana-gold-last span { color: var(--huana-muted); }
.huana-gold-last .numbers { display: flex; flex-wrap: wrap; gap: 5px; }
.huana-gold-last .numbers span {
  display: grid; place-items: center; height: 30px; width: 30px; border: 1px solid var(--huana-rule);
  border-radius: 50%; color: var(--huana-paper); font-size: 12px; font-variant-numeric: tabular-nums;
}
.huana-gold-last .numbers span:last-child { color: var(--huana-ink); background: var(--huana-gold); border-color: var(--huana-gold); }

body[data-huana-theme="gold"] .home .balance,
body[data-huana-theme="gold"] .me-v3 .wallet,
body[data-huana-theme="gold"] .me-v3 .guest-card {
  background: linear-gradient(122deg,#1c1914,#302718); border-color: var(--huana-rule); color: var(--huana-paper); box-shadow: none;
}
body[data-huana-theme="gold"] .home .balance :is(.eyeline, .money small, p) { color: var(--huana-muted); }
body[data-huana-theme="gold"] .home .actions .home-funds-deposit,
body[data-huana-theme="gold"] .home .segment button.active,
body[data-huana-theme="gold"] .home .home-art-game .home-art-copy > span {
  background: var(--huana-gold); border-color: var(--huana-gold); color: var(--huana-ink);
}
body[data-huana-theme="gold"] .home :is(.card,.home-secondary,.notice,.home-game-links,.quick,.segment,.brandcard),
body[data-huana-theme="gold"] :is(.page,.me-v3) :is(.card,.sheet,.list,.segment) {
  background: var(--huana-panel); color: var(--huana-paper); border-color: var(--huana-rule);
}
body[data-huana-theme="gold"] .home :is(.quick button,.home-game-links h2,.segment button,.section h2),
body[data-huana-theme="gold"] .page :is(.row strong,.muted) { color: var(--huana-paper); }
body[data-huana-theme="gold"] .home .quick svg { color: var(--huana-gold); background: #32291c; }
body[data-huana-theme="gold"] .home .quick button:hover { background: #2d261a; }
body[data-huana-theme="gold"] .home :is(.home-art,.brand-showcase,.activity-illustrated),
body[data-huana-theme="gold"] .home .activity-illustrated:not([data-member-art]) {
  background: #1d1a13; color: var(--huana-paper); border-color: var(--huana-rule);
}
body[data-huana-theme="gold"] .home :is(.home-art,.brand-showcase,.activity-illustrated)::after,
body[data-huana-theme="gold"] .home .activity-illustrated:not([data-member-art])::after {
  background: linear-gradient(90deg,#12120ff5 5%,#12120fdf 27%,#12120f41 65%,#12120f00 91%);
}
body[data-huana-theme="gold"] .home :is(.home-art-copy small,.brand-showcase small,.activity-illustrated small),
body[data-huana-theme="gold"] .home .activity-illustrated:not([data-member-art]) small { color: var(--huana-gold); }
body[data-huana-theme="gold"] .home :is(.home-art-copy > span,.brand-showcase p,.activity-illustrated p),
body[data-huana-theme="gold"] .home .activity-illustrated:not([data-member-art]) p { color: var(--huana-muted); }
body[data-huana-theme="gold"] .home .activity-illustrated:not([data-member-art]) footer { background: #211b11; border-color: var(--huana-rule); }
body[data-huana-theme="gold"] .home .home-art-dots button[aria-pressed="true"]::after { background: var(--huana-gold); }
body[data-huana-theme="gold"] .home .balance::after,
body[data-huana-theme="gold"] .me-v3 :is(.wallet,.guest-card)::after { background-image: url('/assets/xinao-mark.svg'); opacity: .10; }

body[data-huana-theme="gold"][data-kailong-page="login"] {
  background: radial-gradient(ellipse at 75% 22%, #463823, transparent 66%), var(--huana-ink);
}
body[data-huana-theme="gold"][data-kailong-page="login"] .box { background: var(--huana-panel); color: var(--huana-paper); border-color: var(--huana-rule); }
body[data-huana-theme="gold"][data-kailong-page="login"] :is(h1,label,.hint,.links a) { color: var(--huana-paper); }
body[data-huana-theme="gold"][data-kailong-page="login"] input:not([type="checkbox"]) { background: #171611; color: var(--huana-paper); border-color: var(--huana-rule); }
body[data-huana-theme="gold"][data-kailong-page="login"] form button[type="submit"],
body[data-huana-theme="gold"][data-kailong-page="login"] form button:not([type]) { color: var(--huana-ink); }
@media (max-width: 470px) {
  .huana-gold-nav { order: 3; flex-basis: 100%; margin-left: 0; }
  body[data-huana-theme="gold"] .home .brand .service { margin-left: auto; }
}

body[data-kailong-page="member"][data-huana-theme="gold"] {
  --huana-raised: #252119;
  --huana-selected: #372c1c;
  --card-bg: var(--huana-panel);
  background: var(--huana-ink);
}

body[data-huana-theme="gold"] #shell {
  background: var(--huana-ink);
  color: var(--huana-paper);
}

body[data-huana-theme="gold"] #shell :is(.nav,.member-topnav,.tabs,.composer,.lottery-submit) {
  background: var(--huana-panel);
  color: var(--huana-paper);
  border-color: var(--huana-rule);
  box-shadow: none;
}

body[data-huana-theme="gold"] #shell :is(.nav,.member-topnav) :is(h1,h2,strong) {
  font-family: var(--huana-serif);
  color: var(--huana-paper);
}

body[data-huana-theme="gold"] #shell :is(.nav,.member-topnav,.tabs,.composer) button {
  color: var(--huana-muted);
}

body[data-huana-theme="gold"] #shell .tabs button:is(.active,:hover),
body[data-huana-theme="gold"] #shell :is(.deposit-methods,.lottery-board) button:is(.active,[aria-pressed="true"]),
body[data-huana-theme="gold"] #shell :is(.number-option.selected,.chip.active) {
  background: var(--huana-selected);
  color: var(--huana-gold);
  border-color: #876f46;
  box-shadow: none;
}
body[data-huana-theme="gold"] #shell .tabs .active::after { background: var(--huana-gold); }

body[data-huana-theme="gold"] #shell :is(.me-v3,.lottery-board,.number-board,.amount-panel,.deposit-methods,.kpi),
body[data-huana-theme="gold"] #shell :is(.usdt-create-panel,.usdt-orders-panel,.usdt-order-card) {
  background: var(--huana-panel) !important;
  border-color: var(--huana-rule) !important;
  color: var(--huana-paper) !important;
}

body[data-huana-theme="gold"] #shell :is(.chip,.pill,.rule-link,.odds-tip,.svc-item,.field,.single-input,.composer input) {
  background: var(--huana-raised);
  color: var(--huana-paper);
  border-color: var(--huana-rule);
}
body[data-huana-theme="gold"] #shell :is(.field,.single-input,.composer) :is(input,select,textarea) {
  color: var(--huana-paper);
}
body[data-huana-theme="gold"] #shell :is(input,textarea)::placeholder { color: var(--huana-muted); }
body[data-huana-theme="gold"] #shell :is(.nav,.member-topnav,.me-v3,.lottery-board,.usdt-create-panel,.usdt-orders-panel)
  :is(h2,h3,label,.number-option small,.single-input span,.svc-item small,.svc-item svg,.muted) { color: var(--huana-muted); }
body[data-huana-theme="gold"] #shell .me-v3 .logout { background: #352520; color: #f2bbb0; }
body[data-huana-theme="gold"] #shell .lottery-submit button:not(:disabled) { background: var(--huana-gold); color: var(--huana-ink); }

body[data-huana-theme="gold"] #shell .huana-draw-history {
  max-width: 960px;
  margin-inline: auto;
}
body[data-huana-theme="gold"] #shell .huana-draw-history .card {
  border: 1px solid var(--huana-rule);
  box-shadow: none;
}
body[data-huana-theme="gold"] #shell .huana-draw-history .card .row { gap: 6px 12px; flex-wrap: wrap; }
body[data-huana-theme="gold"] #shell .huana-draw-history .card strong {
  font-family: var(--huana-serif);
  color: var(--huana-gold);
  font-weight: 500;
}
body[data-huana-theme="gold"] #shell .huana-draw-history .card .muted { color: var(--huana-muted); }
body[data-huana-theme="gold"] #shell .huana-draw-history .ball {
  background: var(--huana-raised) !important;
  border: 1px solid var(--huana-rule);
  box-shadow: none;
  color: var(--huana-paper) !important;
}
body[data-huana-theme="gold"] #shell .huana-draw-history .ball.special {
  background: var(--huana-gold) !important;
  border-color: var(--huana-gold);
  color: var(--huana-ink) !important;
}
body[data-huana-theme="gold"] #shell .draw-history-paging { margin-block: 10px; gap: 6px; color: var(--huana-muted); }
body[data-huana-theme="gold"] #shell .draw-history-paging button {
  min-height: 40px; padding-inline: 12px; border: 1px solid var(--huana-rule);
  border-radius: 8px; background: var(--huana-raised); color: var(--huana-gold);
}
body[data-huana-theme="gold"] #shell .draw-history-paging button:disabled { opacity: .55; }

body[data-kailong-page="member"][data-huana-theme="gold"] {
  --phone-bg: var(--huana-ink);
  --list-bg: var(--huana-ink);
  --nav-bar: var(--huana-panel);
  --card-title: var(--huana-paper);
  --card-text: var(--huana-muted);
}
body[data-huana-theme="gold"] #shell {
  --member-navy: var(--huana-paper);
  --member-line: var(--huana-rule);
  --member-muted: var(--huana-muted);
  --member-surface: var(--huana-ink);
}
body[data-huana-theme="gold"] #shell :is(.member-tool,.profile-v3) {
  background: var(--huana-ink);
  color: var(--huana-paper);
}
body[data-huana-theme="gold"] #shell :is(.tool-card,.record-item,.brandcard,.profile-v3 .row,.help details,.bubble,.agent-apply-page > .card) {
  background: var(--huana-panel);
  border-color: var(--huana-rule);
  color: var(--huana-paper);
  box-shadow: none;
}
body[data-huana-theme="gold"] #shell main .card { background-color: var(--huana-panel); color: var(--huana-paper); }
body[data-huana-theme="gold"] #shell :is(.brandcard,.profile-v3 .card,.help details) { border: 1px solid var(--huana-rule); }
body[data-huana-theme="gold"] #shell :is(.profile-v3 .row,.tool-field,.record-item,.tool-card) :is(label,span:not(.badge),input,select,textarea) {
  color: var(--huana-paper);
}
body[data-huana-theme="gold"] #shell :is(.profile-v3 .hint,.profile-v3 .val,.record-item p,.tool-field small,.brandcard p,.nav small,.member-topnav small) {
  color: var(--huana-muted);
}
body[data-huana-theme="gold"] #shell :is(.member-tool,.profile-v3,.help) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) {
  background-color: var(--huana-raised);
  border-color: var(--huana-rule);
  color: var(--huana-paper);
}
body[data-huana-theme="gold"] #shell :is(.member-tool,.profile-v3) :is(.primary,.save,.member-modal-button),
body[data-huana-theme="gold"] #shell main .page .primary {
  background: var(--huana-gold);
  border-color: var(--huana-gold);
  color: var(--huana-ink);
}
body[data-huana-theme="gold"] #shell :is(.member-tool,.profile-v3) .ghost,
body[data-huana-theme="gold"] #shell .profile-v3 .cam {
  background: var(--huana-raised);
  border-color: var(--huana-rule);
  color: var(--huana-gold);
}
body[data-huana-theme="gold"] #shell .chip.on,
body[data-huana-theme="gold"] #shell [role="tab"][aria-selected="true"] {
  background: var(--huana-selected);
  color: var(--huana-gold);
  border-color: #876f46;
}
body[data-huana-theme="gold"] #shell .invite-summary {
  background: var(--huana-selected);
  color: var(--huana-paper);
}
body[data-huana-theme="gold"] #shell .invite-summary small { color: var(--huana-muted); }
body[data-huana-theme="gold"] #shell .rebate-detail {
  background: linear-gradient(130deg,#1c1913,#352c1b);
  border-color: var(--huana-rule);
  color: var(--huana-gold);
}
body[data-huana-theme="gold"] #shell .bubble.self { background: var(--huana-selected); color: var(--huana-paper); }

body[data-huana-theme="gold"] #shell :is(.brand-showcase,.activity-illustrated,.activity-illustrated[data-member-art]) {
  background: #1d1a13;
  border-color: var(--huana-rule);
  color: var(--huana-paper);
}
body[data-huana-theme="gold"] #shell :is(.brand-showcase,.activity-illustrated)::after {
  background: linear-gradient(90deg,#12120ff5 5%,#12120fdf 27%,#12120f41 65%,#12120f00 91%);
}
body[data-huana-theme="gold"] #shell :is(.brand-showcase,.activity-illustrated) :is(small,em) { color: var(--huana-gold); }
body[data-huana-theme="gold"] #shell :is(.brand-showcase,.activity-illustrated) p { color: var(--huana-muted); }
body[data-huana-theme="gold"] #shell .activity-illustrated footer { background: #211b11; border-color: var(--huana-rule); }
body[data-huana-theme="gold"] #shell .activity-illustrated[data-member-art] .activity-artwork {
  inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center;
}
body[data-huana-theme="gold"] #shell .brandcard .logo {
  display: grid; place-items: center; background: var(--huana-selected); color: var(--huana-gold);
  border: 1px solid var(--huana-rule); font-family: var(--huana-serif);
}
body[data-huana-theme="gold"] #shell .brandcard .logo img { width: 100%; height: 100%; object-fit: contain; }
body[data-huana-theme="gold"] #shell .brandcard strong { color: var(--huana-paper); }

body[data-huana-theme="gold"] :is(dialog,.member-layer) :is(.sheet,.dialog,.box,.member-modal) {
  background: var(--huana-panel);
  border-color: var(--huana-rule);
  color: var(--huana-paper);
}
body[data-huana-theme="gold"] dialog { background: var(--huana-panel); color: var(--huana-paper); border-color: var(--huana-rule); }
body[data-huana-theme="gold"] .member-layer :is(.opt,.grab) { border-color: var(--huana-rule); }
body[data-huana-theme="gold"] .member-layer .opt.on { color: var(--huana-gold); }
body[data-huana-theme="gold"] .member-layer .acts .ghost { background: var(--huana-raised); color: var(--huana-paper); }
body[data-huana-theme="gold"] .member-layer .acts .ok { background: var(--huana-gold); color: var(--huana-ink); }

body[data-huana-theme="gold"] #shell :is(.play-tabs,.type-tabs,.amount-chips) button,
body[data-huana-theme="gold"] #shell .calc-kpis > div {
  background: var(--huana-raised);
  color: var(--huana-paper);
  border-color: var(--huana-rule);
}
body[data-huana-theme="gold"] #shell :is(.play-tabs,.type-tabs,.amount-chips) button.active {
  background: var(--huana-selected);
  color: var(--huana-gold);
  border-color: #876f46;
}
body[data-huana-theme="gold"] #shell :is(.play-tabs button,.calc-kpis) :is(small,span) { color: var(--huana-muted); }
body[data-huana-theme="gold"] #shell :is(.play-tabs button.active strong,.calc-kpis strong) { color: var(--huana-gold); }
