.player-theme-settings{display:grid;gap:10px;min-width:0}
.player-theme-settings label{font-size:14px;font-weight:600}
.player-theme-settings select{width:100%;padding:9px 12px;border:1px solid #8a775b;border-radius:8px;background:#1b2029;color:#f5ead6;font:inherit}
.player-theme-settings p{margin:0;font-size:12px;line-height:1.5;color:inherit}
.player-theme-settings [role=status]:empty{display:none}
#drawer{overflow-y:auto}
#drawer .player-theme-settings{margin:12px;padding:14px;flex-shrink:0}
html[data-player-theme=light] body{background:#f4f1eb;color:#292722}
html[data-player-theme=light] :is(.topbar,.bottom-nav,.settings-card,.form-card,.profile-card,.sheet,.search-field,.account-menu>button,.account-menu>a,.quick-grid button,.service-strip button,.category-tabs button,.language-options button,.drawer,.modal,.bet-panel){background:#fffaf2;color:#302b25;border-color:#cbbda8}
html[data-player-theme=light] :is(.settings-card,.form-card,.profile-card,.sheet,.drawer,.modal,.bet-panel) :is(h2,h3,label,p,.drawer-item){color:#302b25}
html[data-player-theme=light] :is(input,textarea,select){background:#fff;color:#302b25;border-color:#b9aa94}
html[data-player-theme=light] :is(.bottom-nav button,.header-action,.back-button,.outline-button,.dialog-head button,.section-title h2,.page-heading h1,.page-heading p,.game-data h2,.game-data p){color:#51402c}
html[data-player-theme=light] :is(.category-card,.featured-hall){background:radial-gradient(circle at 72% 30%,var(--glow,#e6d5ad),transparent 65%),linear-gradient(140deg,#fff8e9,#e5dbc8);color:#302719}
html[data-player-theme=light] .category-card.has-art :is(strong,small){color:#302719;text-shadow:0 1px 2px #fff}
html[data-player-theme=light] .featured-hall-label{color:#302719;text-shadow:0 1px 2px #fff}
html[data-player-theme=light] .game-row{background:#fffaf2;color:#302b25;border-color:#cbbda8}
html[data-player-theme=light] .category-tabs button.active{background:#e8d3ac;color:#3b2a13}
html[data-player-theme=light] :is(.framework-wrap,#app){background:#eee7dc}
html[data-player-theme=light] .player-theme-settings select{background:#fff;color:#302b25}

/* 浅色导航背景上的品牌文字与复制图标共用同一前景色。 */
html[data-player-theme=light] .topbar :is(#brandName,#brandDomain,.brand-domain-row,.brand-domain-row>.asen-copy-icon){color:#302b25}

/* Light surfaces and dark foregrounds use explicit pairs; artwork stays intact. */
html[data-player-theme=light] .topbar .header-action{background:#fffaf2;color:#302b25;border-color:#ad9876}
html[data-player-theme=light] .topbar .balance-value{color:#087c46}
html[data-player-theme=light] :is(.rc-panel,.rc-detail,.rc-history,.rc-tile,.rc-network-grid button,.rc-amount-grid button,.language-options button){background:#fffaf2;color:#302b25;border-color:#cbbda8}
html[data-player-theme=light] :is(.rc-panel,.rc-detail,.rc-history,.settings-card,.profile-card) :is(h2,h3,p,small,label,summary,.rc-muted,.rc-hint){color:#443c31}
html[data-player-theme=light] :is(.rc-tile[aria-pressed=true],.rc-network-grid button[aria-pressed=true],.rc-amount-grid button[aria-pressed=true]){background:#ead5ad;color:#241a0d;border-color:#947544}
html[data-player-theme=light] :is(.popular-heading h2,.popular-heading button,.section-title p,.section-title .text-link,.page-heading .eyebrow){color:#51402c}
html[data-player-theme=light] :is(.download-showcase,.platform-board){background:#f6eee0;color:#302b25}
html[data-player-theme=light] .topbar .header-action span{color:inherit}
html[data-player-theme=light] #rechargeCatalog,
html[data-player-theme=light] #rechargeCatalog :is(.rc-detail,.rc-tile,.rc-history,.rc-proof-upload,.rc-network-grid button,.rc-amount-grid button){background:#fffaf2;color:#302b25;border-color:#cbbda8}
html[data-player-theme=light] #rechargeCatalog :is(input,select,textarea){background:#fff;color:#302b25;border-color:#b9aa94}
html[data-player-theme=light] #rechargeCatalog :is(p,small,label,h2,h3,summary,.rc-status,.rc-hint,.rc-muted,.rc-tile-label){color:#443c31}
html[data-player-theme=light] #rechargeCatalog :is(input,textarea)::placeholder{color:#766b5d;opacity:1}
html[data-player-theme=light] #rechargeCatalog :is(.rc-tile,.rc-amount-grid button)[aria-pressed=true]{background:#ead5ad;color:#241a0d;border-color:#947544}

/* Player action surfaces: translucent fill, opaque labels and icons. */
html[data-player-theme] :is(.page,.drawer,.sheet) .outline-button{background:rgb(27 32 41 / 60%);color:#f5ead6}
html[data-player-theme=light] :is(.page,.drawer,.sheet) .outline-button{background:rgb(255 250 242 / 70%);color:#302b25}

/* Matched theme surfaces and readable copy across player pages. */
html[data-player-theme]{--player-panel:rgb(27 32 41 / 60%);--player-ink:#f5ead6;--player-muted:#c8c2b8;--player-line:#8c7553}
html[data-player-theme=light]{--player-panel:rgb(255 250 242 / 70%);--player-ink:#302b25;--player-muted:#514638;--player-line:#b9aa94}
html[data-player-theme=light] .lobby-background{background-image:url('./assets/lobby-watermarks-light.svg')}
html[data-player-theme] :is(.payment-showcase h3,.pay-symbol small,.platform-intro,.first-reward span,.page-footer h2){color:var(--player-ink)}
html[data-player-theme] :is(.platform-board,.provider-mark,.service-strip button,.page-footer nav button,.page-footer .footer-support,.account-quick-actions button,.member-grid button,.member-overview,.member-tabs button,.member-ref button,.member-item,.member-state){background:var(--player-panel);color:var(--player-ink);border-color:var(--player-line)}
html[data-player-theme] :is(.page,.drawer,.sheet) :is(.outline-button,.back-button){background:var(--player-panel);color:var(--player-ink);border-color:var(--player-line)}
html[data-player-theme] .back-button{border:1px solid var(--player-line);border-radius:8px;padding-inline:10px}
html[data-player-theme] :is(.member-overview span,.member-overview strong,.member-item summary,.member-item p){color:var(--player-ink)}
html[data-player-theme=light] .provider-mark{text-shadow:none}
html[data-player-theme=light] .first-reward strong{color:#176e38;text-shadow:none}

html[data-player-theme=light],html[data-player-theme=light] body{background:#fff}


/* Inbox selection follows the active message category in both themes. */
#page-messages .member-tabs{gap:14px;padding:5px}
#page-messages .member-tabs [data-member-list]{transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease;transform-origin:center}
html #page-messages .member-tabs [data-member-list][aria-pressed="true"]{transform:scale(1.08);border-color:#36a9ff;box-shadow:0 0 0 1px #36a9ff,0 0 12px rgb(54 169 255 / 65%);color:#fff}
html[data-player-theme=light] #page-messages .member-tabs [data-member-list][aria-pressed="true"]{background:rgba(128,128,128,.2);color:#000;border-color:rgba(128,128,128,.2);box-shadow:none}
@media(prefers-reduced-motion:reduce){#page-messages .member-tabs [data-member-list]{transition:none}}
