/* theme-modals.css — สร้างอัตโนมัติจาก scripts/gen-theme-modals.js ห้ามแก้มือ
 * ทับสีฟ้า/กรมท่า/ทองที่ฝังในหน้าต่างและหน้าฝากถอน ด้วยตัวแปรสีธีม (--tm-*) ที่ data.js / template2.js / template3.js ตั้งให้
 * มีผลเมื่อ <html class="tm-on"> เท่านั้น */

/* ---- modals.css (110) ---- */
:where(html.tm-on) .modal-card { background: linear-gradient(180deg,color-mix(in srgb,var(--t-primary,rgb(var(--tm-accent-rgb))) 16%,var(--t-bg,rgb(var(--tm-deep-rgb)))),var(--t-bg,rgb(var(--tm-deep-rgb)))); border: 1px solid color-mix(in srgb,var(--t-primary,rgb(var(--tm-accent-rgb))) 45%,transparent); }
:where(html.tm-on) .auth-modal .modal-card { background: linear-gradient(180deg,color-mix(in srgb,var(--t-primary,rgb(var(--tm-accent-rgb))) 16%,var(--t-bg,rgb(var(--tm-deep-rgb)))),var(--t-bg,rgb(var(--tm-deep-rgb)))); }
:where(html.tm-on) .auth-tabs { background: var(--t-bg,rgb(var(--tm-deep-rgb))); border-bottom: 1px solid color-mix(in srgb,var(--t-primary,rgb(var(--tm-accent-rgb))) 30%,transparent); }
:where(html.tm-on) .auth-tab { background: color-mix(in srgb,var(--t-primary,rgb(var(--tm-accent-rgb))) 12%,var(--t-bg,rgb(var(--tm-deep-rgb)))); color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .auth-tab.active { border-bottom-color: var(--t-primary,rgb(var(--tm-accent-rgb))); }
:where(html.tm-on) .input { background: rgb(var(--tm-deep-rgb)); }
:where(html.tm-on) .input-eye { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .radio input { accent-color: var(--t-primary,rgb(var(--tm-accent-rgb))); }
:where(html.tm-on) .terms-row input { accent-color: var(--t-primary,rgb(var(--tm-accent-rgb))); }
:where(html.tm-on) .step-line { background: rgb(var(--tm-raised-rgb)); }
:where(html.tm-on) .step-line span { background: linear-gradient(90deg,var(--t-primary,rgb(var(--tm-accent-rgb))),var(--t-accent,#21df8b)); }
:where(html.tm-on) .step-section .stepno { color: rgb(var(--tm-accent-ink-rgb)); }
:where(html.tm-on) .step-section .step-arrow { color: var(--t-primary,rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .help-text { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .help-text b { color: var(--t-primary,rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .forgot-link { color: var(--t-primary,rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .btn-submit { background: linear-gradient(180deg,var(--t-primary,rgb(var(--tm-accent-rgb))),rgba(0,0,0,.42)); }
:where(html.tm-on) .btn-submit:disabled { background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-raised-rgb))); }
:where(html.tm-on) .bank-picker .modal-card { background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-deep-rgb))); }
:where(html.tm-on) .bank-list::-webkit-scrollbar-thumb { background: rgb(var(--tm-raised-rgb)); }
:where(html.tm-on) .bank-item { background: rgb(var(--tm-deep-rgb)); }
:where(html.tm-on) .promo-modal .modal-card { background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .promo-modal .modal-head { background: linear-gradient(180deg,rgba(var(--tm-accent-rgb), .1),rgba(var(--tm-accent-rgb), .02)); }
:where(html.tm-on) .promo-list::-webkit-scrollbar-thumb { background: rgb(var(--tm-raised-rgb)); }
:where(html.tm-on) .promo-item { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .promo-item.active { border-color: rgb(var(--tm-accent-rgb)); box-shadow: 0 0 0 2px rgba(var(--tm-accent-rgb), .18); background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .promo-item img { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .promo-item .pi-meta span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .promo-item .pi-tag { background: linear-gradient(180deg,var(--t-primary,rgb(var(--tm-accent-rgb))),rgba(0,0,0,.42)); }
:where(html.tm-on) .promo-preview h2 i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .promo-preview-meta { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .promo-preview-meta i { color: var(--t-primary,rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .promo-preview-img { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .promo-preview-img i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .promo-detail-card { background: linear-gradient(180deg,rgb(var(--tm-surface-rgb)),rgb(var(--tm-surface-rgb))); border: 1px solid rgba(var(--tm-accent-rgb), .38); }
:where(html.tm-on) .promo-detail-head { color: var(--t-primary,rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .promo-detail-head i { color: var(--t-primary,rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .promo-swipe-wrap { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .promo-swipe-slide { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .drawer { background: rgb(var(--tm-deep-rgb)); border-right: 1px solid rgba(var(--tm-accent-rgb), .25); }
:where(html.tm-on) .guest-box, :where(html.tm-on) .profile-box { background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); border: 1px solid rgba(var(--tm-accent-rgb), .38); }
:where(html.tm-on) .guest-box i, :where(html.tm-on) .profile-avatar { background: linear-gradient(180deg,#e9f3ff,rgb(var(--tm-muted-rgb))); color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .profile-phone { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .balance-box { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .balance-box span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .qbtn.gold { background: linear-gradient(180deg,rgb(var(--tm-accent2-rgb)),rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .drawer-nav-item { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .drawer-nav-item i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .drawer-nav-item:hover { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .bottom-nav { background: linear-gradient(180deg,rgba(var(--tm-surface-rgb), .6),rgb(var(--tm-deep-rgb))); border-top: 1px solid rgba(var(--tm-accent-rgb), .2); }
:where(html.tm-on) .nav-icon { box-shadow: 0 -2px 12px rgba(var(--tm-accent2-rgb), .18) inset; }
:where(html.tm-on) .nav-icon i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .nav-item.active .nav-icon { background: linear-gradient(180deg,rgb(var(--tm-accent2-rgb)),rgb(var(--tm-accent2-deep-rgb))); box-shadow: 0 0 18px rgba(var(--tm-accent2-rgb), .38); }
:where(html.tm-on) .nav-item.active .nav-icon i { color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .section-head h2 i { color: var(--t-primary,rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .section-head small { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .deposit-method { border: 1px solid rgba(var(--tm-accent-rgb), .42); background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .deposit-method i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .deposit-method small { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .deposit-method.active { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-deep-rgb))); border-color: rgb(var(--tm-accent-rgb)); box-shadow: 0 0 18px rgba(var(--tm-accent-rgb), .34); }
:where(html.tm-on) .deposit-title span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .deposit-account { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .deposit-account img, :where(html.tm-on) .deposit-account .wallet-round { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .deposit-account .wallet-round { background: linear-gradient(180deg,#fff4e2,rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .deposit-account span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .copy-btn { background: rgb(var(--tm-raised-rgb)); }
:where(html.tm-on) .deposit-upload { border: 1px dashed rgba(var(--tm-accent-rgb), .45); background: rgba(var(--tm-surface-rgb), .55); }
:where(html.tm-on) .deposit-upload i { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .deposit-upload small { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .deposit-action { background: linear-gradient(180deg,var(--t-primary,rgb(var(--tm-accent-rgb))),rgba(0,0,0,.42)); }
:where(html.tm-on) .deposit-note { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .deposit-account-option.is-dimmed { background: rgb(var(--tm-deep-rgb))!important; }
:where(html.tm-on) .deposit-account-option.is-dimmed b { color: rgb(var(--tm-muted-rgb))!important; }
:where(html.tm-on) .deposit-account-option.is-selected { border-color: rgb(var(--tm-accent-rgb))!important; background: linear-gradient(135deg,rgba(var(--tm-accent-rgb), .2),rgba(var(--tm-surface-rgb), .98))!important; box-shadow: 0 0 0 2px rgba(var(--tm-accent-rgb), .4),0 12px 28px rgba(var(--tm-accent-rgb), .22)!important; }
:where(html.tm-on) .deposit-account-option.is-selected::before { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-deep-rgb))); box-shadow: 0 0 10px rgba(var(--tm-accent-rgb), .75); }
:where(html.tm-on) .bank-auto-customer-account { background: linear-gradient(135deg,rgba(255,155,170,.13),rgba(var(--tm-surface-rgb), .9))!important; }
:where(html.tm-on) .history-item { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .history-item span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .empty { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .game-count-note { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .game-count-note:before { background: rgb(var(--tm-accent-rgb)); box-shadow: 0 0 10px rgb(var(--tm-accent-rgb)); }
:where(html.tm-on) .games-back { border: 1px solid rgba(var(--tm-accent-rgb), .48); background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .ap-pay-summary { border: 1px solid rgba(var(--tm-accent-rgb), .35); background: linear-gradient(135deg,rgba(var(--tm-accent-rgb), .14),rgba(var(--tm-surface-rgb), .96)); }
:where(html.tm-on) .ap-pay-summary span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ap-pay-timer { color: var(--t-primary,rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .ap-pay-card { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .ap-pay-head { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ap-pay-status.is-pending { background: rgba(var(--tm-accent2-deep-rgb), .16); color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .ap-pay-status.is-review { background: rgba(var(--tm-accent-rgb), .16); color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .ap-pay-status.is-ended { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ap-pay-row span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ap-pay-upload:hover { border-color: var(--t-primary,rgb(var(--tm-accent-rgb))); }
:where(html.tm-on) .ap-note-warn { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .ap-pay-done { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .ap-pay-done span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .crypto-net-chip { border: 1px solid rgba(var(--tm-accent-rgb), .18); background: rgb(var(--tm-surface-rgb)); color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .crypto-net-chip.is-selected { border: 2px solid rgb(var(--tm-accent-rgb)); background: rgba(var(--tm-accent-rgb), .12); }
:where(html.tm-on) .crypto-convert { border: 1px solid rgba(var(--tm-accent-rgb), .18); background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .crypto-convert span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .crypto-convert b small { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .crypto-convert em { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .crypto-pay-hero { border: 2px solid rgb(var(--tm-accent2-rgb)); background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .crypto-pay-amount .dot { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .crypto-pay-amount .frac { color: rgb(var(--tm-accent-ink-rgb)); background: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .crypto-pay-amount small { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .crypto-pay-tagnote { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .crypto-pay-copy { background: rgb(var(--tm-accent2-rgb)); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .crypto-pay-copy i { color: rgb(var(--tm-accent2-ink-rgb))!important; }
:where(html.tm-on) .crypto-pay-meta { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .crypto-pay-address { border: 1px solid rgba(var(--tm-accent-rgb), .18); background: rgb(var(--tm-surface-rgb)); }

/* ---- wallet/base.css (26) ---- */
:where(html.tm-on) .feature-modal .modal-card { background: linear-gradient(180deg, rgb(var(--tm-raised-rgb)), rgb(var(--tm-deep-rgb))); }
:where(html.tm-on) .feature-modal .modal-head { background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .98), rgba(var(--tm-surface-rgb), .96)); border-bottom: 1px solid rgba(var(--tm-accent-rgb), .32); }
:where(html.tm-on) .history-counts { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .history-refresh { background: linear-gradient(180deg, rgb(var(--tm-raised-rgb)), rgb(var(--tm-raised-rgb))); border: 1px solid rgb(var(--tm-raised-rgb)); }
:where(html.tm-on) .history-refresh:hover { background: linear-gradient(180deg, #2c4163, rgb(var(--tm-raised-rgb))); }
:where(html.tm-on) .history-tab { background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .7), rgba(var(--tm-surface-rgb), .85)); color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .history-tab:hover { border-color: rgba(var(--tm-accent2-rgb), .45); }
:where(html.tm-on) .history-tab.active { background: linear-gradient(180deg, rgb(var(--tm-accent2-rgb)), rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); border-color: rgb(var(--tm-accent2-rgb)); box-shadow: 0 4px 14px rgba(var(--tm-accent2-rgb), .25); }
:where(html.tm-on) .referral-hist-summary span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .referral-hist-summary b { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .history-table { background: rgba(var(--tm-surface-rgb), .55); }
:where(html.tm-on) .history-table thead { background: linear-gradient(180deg, rgb(var(--tm-raised-rgb)), rgb(var(--tm-surface-rgb))); color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .status-badge.badge-pending { background: rgba(var(--tm-accent2-rgb), .12); color: rgb(var(--tm-accent2-rgb)); border-color: rgba(var(--tm-accent2-rgb), .4); }
:where(html.tm-on) .status-badge.badge-approve { background: rgba(var(--tm-accent-rgb), .14); color: rgb(var(--tm-accent-text-rgb)); border-color: rgba(var(--tm-accent-rgb), .45); }
:where(html.tm-on) .status-badge.badge-info { background: rgba(var(--tm-muted-rgb), .14); color: rgb(var(--tm-muted-rgb)); border-color: rgba(var(--tm-muted-rgb), .4); }
:where(html.tm-on) .checkin-loading { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ci-desc { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .checkin-day.done { background: rgba(var(--tm-accent2-rgb), .10); border-color: rgba(var(--tm-accent2-rgb), .25); }
:where(html.tm-on) .checkin-day.today { background: linear-gradient(180deg, rgba(var(--tm-accent-rgb), .12), rgba(var(--tm-accent-rgb), .04)); border-color: rgba(var(--tm-accent-rgb), .55); box-shadow: 0 0 14px rgba(var(--tm-accent-rgb), .15); }
:where(html.tm-on) .ci-day-label { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ci-done { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .ci-today { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .checkin-day.today .ci-reward { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .checkin-day.done  .ci-reward { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .ci-claim-btn { color: rgb(var(--tm-accent-ink-rgb)); background: linear-gradient(135deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-deep-rgb))); box-shadow: 0 8px 24px rgba(var(--tm-accent-rgb), .30); }
:where(html.tm-on) .ci-msg { color: rgb(var(--tm-muted-rgb)); }

/* ---- wallet/deposit-withdraw.css (64) ---- */
@media (min-width: 768px) and (max-width: 1023px) {
:where(html.tm-on) .bottom-nav { background: linear-gradient(180deg, rgba(var(--tm-deep-rgb), 0) 0%, rgba(var(--tm-deep-rgb), .72) 34%, rgba(var(--tm-deep-rgb), .96) 100%) !important; }
:where(html.tm-on) .bottom-nav-inner { background: radial-gradient(circle at 50% -45%, rgba(var(--tm-accent-rgb), .18), transparent 44%),
      linear-gradient(180deg, rgba(var(--tm-raised-rgb), .98), rgba(var(--tm-deep-rgb), .99)) !important; border: 1px solid rgba(var(--tm-accent-rgb), .42) !important; box-shadow: 0 18px 44px rgba(0,0,0,.62),
      0 0 0 1px rgba(var(--tm-accent-rgb), .08),
      inset 0 1px 0 rgba(255,255,255,.1) !important; }
}
@media (max-width: 767px) {
:where(html.tm-on) .bottom-nav { background: linear-gradient(180deg, rgba(var(--tm-deep-rgb), 0) 0%, rgba(var(--tm-deep-rgb), .72) 34%, rgba(var(--tm-deep-rgb), .96) 100%) !important; }
:where(html.tm-on) .bottom-nav-inner { background: radial-gradient(circle at 50% -45%, rgba(var(--tm-accent-rgb), .18), transparent 44%),
      linear-gradient(180deg, rgba(var(--tm-raised-rgb), .98), rgba(var(--tm-deep-rgb), .99)) !important; border: 1px solid rgba(var(--tm-accent-rgb), .42) !important; box-shadow: 0 18px 44px rgba(0,0,0,.62),
      0 0 0 1px rgba(var(--tm-accent-rgb), .08),
      inset 0 1px 0 rgba(255,255,255,.1) !important; }
:where(html.tm-on) .nav-item, :where(html.tm-on) .nav-games-center { color: rgb(var(--tm-muted-rgb)) !important; }
:where(html.tm-on) .nav-icon, :where(html.tm-on) .nav-icon-center { border: 1px solid rgba(var(--tm-accent-rgb), .17) !important; }
:where(html.tm-on) .nav-deposit .nav-icon { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-deep-rgb))) !important; box-shadow: 0 9px 19px rgba(var(--tm-accent-rgb), .32), inset 0 1px 0 rgba(255,255,255,.28) !important; }
:where(html.tm-on) .nav-withdraw .nav-icon { background: linear-gradient(180deg, rgb(var(--tm-accent2-rgb)), rgb(var(--tm-accent2-deep-rgb))) !important; color: rgb(var(--tm-accent2-ink-rgb)) !important; box-shadow: 0 9px 19px rgba(var(--tm-accent2-rgb), .28), inset 0 1px 0 rgba(255,255,255,.34) !important; }
:where(html.tm-on) .nav-games-center .nav-icon-center { background: radial-gradient(circle at 38% 24%, rgba(255,255,255,.42), transparent 26%),
      linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-deep-rgb))) !important; border: 4px solid rgba(var(--tm-deep-rgb), .99) !important; box-shadow: 0 0 0 1px rgba(var(--tm-accent-rgb), .45),
      0 13px 26px rgba(var(--tm-accent-rgb), .42),
      inset 0 1px 0 rgba(255,255,255,.3) !important; }
:where(html.tm-on) .nav-item.active { background: radial-gradient(circle at 50% 0, rgba(var(--tm-accent-rgb), .2), transparent 48%),
      linear-gradient(180deg, rgba(var(--tm-accent-deep-rgb), .44), rgba(var(--tm-surface-rgb), .74)) !important; box-shadow: inset 0 0 0 1px rgba(var(--tm-accent-rgb), .14) !important; }
:where(html.tm-on) .nav-item.active::after { background: linear-gradient(90deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent2-rgb))) !important; box-shadow: 0 0 12px rgba(var(--tm-accent-rgb), .58) !important; }
:where(html.tm-on) .nav-item.active .nav-icon { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-deep-rgb))) !important; box-shadow: 0 9px 20px rgba(var(--tm-accent-rgb), .38), inset 0 1px 0 rgba(255,255,255,.28) !important; }
:where(html.tm-on) .nav-games-center.active .nav-icon-center { box-shadow: 0 0 0 1px rgba(var(--tm-accent-rgb), .5),
      0 15px 30px rgba(var(--tm-accent-rgb), .5),
      inset 0 1px 0 rgba(255,255,255,.32) !important; }
:where(html.tm-on) .bnav-credit-bar { background: radial-gradient(circle at 50% 0, rgba(var(--tm-accent-rgb), .16), transparent 56%),
      linear-gradient(180deg, rgba(var(--tm-raised-rgb), .99), rgba(var(--tm-deep-rgb), .99)) !important; border: 1px solid rgba(var(--tm-accent-rgb), .4) !important; box-shadow: 0 12px 26px rgba(0,0,0,.46),
      0 0 0 1px rgba(var(--tm-accent-rgb), .08),
      inset 0 1px 0 rgba(255,255,255,.1) !important; }
:where(html.tm-on) .bnav-credit-bar i { color: rgb(var(--tm-accent2-rgb)) !important; filter: drop-shadow(0 0 8px rgba(var(--tm-accent2-rgb), .45)) !important; }
}
:where(html.tm-on) .auth-modal.has-side .modal-card { background: radial-gradient(circle at 84% 0, rgba(var(--runtime-primary-rgb,40,242,255),.18), transparent 36%),
    linear-gradient(180deg, rgba(var(--tm-surface-rgb), .98), rgba(var(--tm-deep-rgb), .99)) !important; }
:where(html.tm-on) .auth-modal.has-side .auth-side { background: radial-gradient(circle at 30% 18%, rgba(var(--runtime-accent-rgb,255,214,107),.28), transparent 28%),
    radial-gradient(circle at 78% 58%, rgba(var(--runtime-primary-rgb,0,231,255),.25), transparent 34%),
    linear-gradient(145deg, rgb(var(--tm-surface-rgb)) 0%, rgb(var(--tm-deep-rgb)) 62%, rgb(var(--tm-surface-rgb)) 100%) !important; }
:where(html.tm-on) .auth-modal.has-side .auth-side .auth-illustration { background: linear-gradient(180deg, rgba(var(--tm-deep-rgb), .08), rgba(var(--tm-deep-rgb), .78)),
    radial-gradient(circle at 50% 34%, rgba(var(--runtime-primary-rgb,0,231,255),.18), transparent 32%) !important; }
:where(html.tm-on) .auth-feat { background: rgba(var(--tm-deep-rgb), .52) !important; border: 1px solid rgba(var(--tm-accent-rgb), .2) !important; }
:where(html.tm-on) .auth-feat i { background: linear-gradient(180deg, var(--t-primary,rgb(var(--tm-accent-rgb))), rgb(var(--tm-accent-deep-rgb))) !important; }
:where(html.tm-on) .auth-modal.has-side .modal-card-inner { background: radial-gradient(circle at 50% 0, rgba(var(--runtime-primary-rgb,0,231,255),.1), transparent 38%),
    linear-gradient(180deg, rgba(var(--tm-surface-rgb), .98), rgba(var(--tm-deep-rgb), .98)) !important; }
:where(html.tm-on) .auth-modal.has-side .modal-head { background: rgba(var(--tm-deep-rgb), .5) !important; }
:where(html.tm-on) .auth-modal.has-side .auth-tabs { background: rgba(var(--tm-deep-rgb), .72) !important; border-bottom: 1px solid rgba(var(--tm-accent-rgb), .14) !important; }
:where(html.tm-on) .auth-modal.has-side .auth-tab { border: 1px solid rgba(var(--tm-accent-rgb), .16) !important; color: rgb(var(--tm-accent-text-rgb)) !important; }
:where(html.tm-on) .auth-subtitle { color: rgb(var(--tm-accent-text-rgb)) !important; }
:where(html.tm-on) .auth-modal.has-side label:not(.radio):not(.terms-row) { color: rgb(var(--tm-muted-rgb)) !important; }
:where(html.tm-on) .auth-input-row .auth-input-icon { color: var(--t-primary,rgb(var(--tm-accent-text-rgb))) !important; }
:where(html.tm-on) .auth-modal.has-side .input, :where(html.tm-on) .auth-modal.has-side #bankPickBtn { background: rgba(var(--tm-deep-rgb), .7) !important; border: 1px solid rgba(var(--tm-accent-rgb), .24) !important; }
:where(html.tm-on) .auth-modal.has-side .input:focus { background: rgba(var(--tm-surface-rgb), .86) !important; }
:where(html.tm-on) .auth-modal.has-side .input-eye { color: rgb(var(--tm-muted-rgb)) !important; }
:where(html.tm-on) .auth-modal.has-side .forgot-link, :where(html.tm-on) .auth-switch-note a, :where(html.tm-on) .auth-modal.has-side .help-text a { color: var(--t-primary,rgb(var(--tm-accent-text-rgb))) !important; }
:where(html.tm-on) .auth-modal[data-auth-mode="register"] .btn-submit { color: rgb(var(--tm-accent2-ink-rgb)) !important; }
:where(html.tm-on) .auth-switch-note { color: rgb(var(--tm-muted-rgb)) !important; }
:where(html.tm-on) .auth-modal.has-side .step-line span { background: linear-gradient(90deg, var(--t-primary,rgb(var(--tm-accent-rgb))), var(--t-accent,rgb(var(--tm-accent2-rgb)))) !important; }
:where(html.tm-on) .auth-modal.has-side .step-section { background: rgba(var(--tm-deep-rgb), .46) !important; border: 1px solid rgba(var(--tm-accent-rgb), .16) !important; }
:where(html.tm-on) .auth-modal.has-side .step-section .stepno { background: linear-gradient(180deg, var(--t-primary,rgb(var(--tm-accent-rgb))), rgb(var(--tm-accent-deep-rgb))) !important; }
:where(html.tm-on) .game-loader { background: radial-gradient(circle at 50% 18%, rgba(var(--tm-accent2-rgb), .2), transparent 30%),
    radial-gradient(circle at 28% 68%, rgba(var(--tm-accent-rgb), .16), transparent 34%),
    linear-gradient(180deg, rgb(var(--tm-surface-rgb)) 0%, rgb(var(--tm-deep-rgb)) 100%); }
:where(html.tm-on) .loader-stage { border: 1px solid rgba(var(--tm-accent-rgb), .34); background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .9), rgba(var(--tm-deep-rgb), .96)); }
:where(html.tm-on) .loader-stage:before { border: 1px dashed rgba(var(--tm-accent2-rgb), .36); }
:where(html.tm-on) .loader-reels { background: rgba(var(--tm-deep-rgb), .78); }
:where(html.tm-on) .loader-reels span { color: rgb(var(--tm-accent2-ink-rgb)); background: linear-gradient(180deg, #fff6b8, rgb(var(--tm-accent2-deep-rgb))); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 24px rgba(var(--tm-accent2-rgb), .2); }
:where(html.tm-on) .loader-orbit i { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-deep-rgb))); box-shadow: 0 0 18px rgba(var(--tm-accent-rgb), .5); }
:where(html.tm-on) .loader-copy b { color: rgb(var(--tm-accent2-rgb)); text-shadow: 0 0 22px rgba(var(--tm-accent2-rgb), .42); }
:where(html.tm-on) .loader-copy span { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .loader-progress span { background: linear-gradient(90deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent2-rgb)), #41f098); }
:where(html.tm-on) }


.withdraw-turnover-card { border: 1px solid rgba(var(--tm-accent2-rgb), .34); background: radial-gradient(circle at 14% 0, rgba(var(--tm-accent2-rgb), .18), transparent 36%),
    linear-gradient(180deg, rgba(30,29,55,.92), rgba(var(--tm-surface-rgb), .96)); }
:where(html.tm-on) .withdraw-turnover-head span { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .withdraw-turnover-track span { background: linear-gradient(90deg, #ff6a88, rgb(var(--tm-accent2-rgb)), rgb(var(--tm-accent-rgb))); box-shadow: 0 0 18px rgba(var(--tm-accent2-rgb), .38); }
:where(html.tm-on) .withdraw-turnover-stats div { background: rgba(var(--tm-deep-rgb), .46); }
:where(html.tm-on) .withdraw-turnover-stats small { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .withdraw-turnover-note { color: rgb(var(--tm-accent-text-rgb)); }
html.runtime-themed:where(.tm-on) .topbar .logo .brand-logo, html.runtime-themed:where(.tm-on) .brand-logo, :where(html.tm-on) .topbar .logo .brand-logo, :where(html.tm-on) .brand-logo { text-shadow: 0 2px 0 rgba(0,0,0,.42), 0 0 16px rgba(var(--tm-accent-rgb), .42) !important; }
:where(html.tm-on) .quick-amount-btn { background: linear-gradient(135deg, #2d3748 0%, rgb(var(--tm-surface-rgb)) 100%); }
:where(html.tm-on) .quick-amount-btn:hover { border-color: rgb(var(--tm-accent-rgb)); box-shadow: 0 4px 12px rgba(var(--tm-accent-rgb), 0.3); }
:where(html.tm-on) .quick-amount-btn:active { box-shadow: 0 2px 6px rgba(var(--tm-accent-rgb), 0.2); }
:where(html.tm-on) .quick-amount-btn.selected { background: linear-gradient(135deg, rgb(var(--tm-accent-rgb)) 0%, #764ba2 100%); border-color: rgb(var(--tm-accent-rgb)); box-shadow: 0 4px 12px rgba(var(--tm-accent-rgb), 0.4); }
:where(html.tm-on) .sms-step-indicator { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .sms-step-indicator.active { background: linear-gradient(135deg, rgb(var(--tm-accent-rgb)) 0%, #764ba2 100%); border-color: rgb(var(--tm-accent-rgb)); box-shadow: 0 4px 12px rgba(var(--tm-accent-rgb), 0.4); }
:where(html.tm-on) .sms-bank-account-name { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .sms-amount-label { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .sms-loading-box { background: linear-gradient(135deg, rgba(var(--tm-accent-rgb), 0.08) 0%, rgba(118,75,162,0.04) 100%); border: 2px solid rgba(var(--tm-accent-rgb), 0.3); }
:where(html.tm-on) .sms-loading-spinner { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .sms-loading-subtext { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .sms-warning { background: rgba(var(--tm-accent2-rgb), 0.15); border: 2px solid rgba(var(--tm-accent2-rgb), 0.4); color: rgb(var(--tm-accent2-rgb)); }

/* ---- wallet/wallet-pages.css (21) ---- */
:where(html.tm-on) .cat-count { color: rgb(var(--tm-muted-rgb)) !important; }
:where(html.tm-on) .bottom-nav-inner { background: linear-gradient(180deg, rgba(var(--tm-surface-rgb), .97) 0%, rgba(var(--tm-deep-rgb), .99) 100%) !important; border: 1px solid rgba(var(--tm-accent-rgb), .22) !important; box-shadow: 0 -2px 0 rgba(0,0,0,.3), 0 20px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(var(--tm-accent-rgb), .06) !important; }
:where(html.tm-on) .nav-item { color: rgb(var(--tm-muted-rgb)) !important; }
:where(html.tm-on) .nav-item.active .nav-icon { background: linear-gradient(145deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-deep-rgb))) !important; box-shadow: 0 4px 16px rgba(var(--tm-accent-rgb), .38), inset 0 1px 0 rgba(255,255,255,.28) !important; }
:where(html.tm-on) .nav-icon-center { border: 4px solid rgba(var(--tm-deep-rgb), .99) !important; }
:where(html.tm-on) .nav-games-center:hover .nav-icon-center, :where(html.tm-on) .nav-games-center.active .nav-icon-center, :where(html.tm-on) .nav-item.active .nav-icon-center { border-color: rgba(var(--tm-deep-rgb), .99) !important; }
:where(html.tm-on) .nav-games-center .nav-label { color: rgb(var(--tm-muted-rgb)) !important; }
@media (min-width: 768px) and (max-width: 1023px) {
:where(html.tm-on) .bottom-nav { background: linear-gradient(180deg, rgba(var(--tm-deep-rgb), 0) 0%, rgba(var(--tm-deep-rgb), .78) 32%, rgba(var(--tm-deep-rgb), .98) 100%) !important; }
:where(html.tm-on) .bottom-nav-inner { background: linear-gradient(180deg, rgba(var(--tm-surface-rgb), .98), rgba(var(--tm-deep-rgb), .98)) !important; border: 1px solid rgba(var(--tm-accent-rgb), .28) !important; }
}
@media (max-width: 767px) {
:where(html.tm-on) .bottom-nav { background: linear-gradient(180deg, rgba(var(--tm-deep-rgb), 0) 0%, rgba(var(--tm-deep-rgb), .78) 32%, rgba(var(--tm-deep-rgb), .98) 100%) !important; }
:where(html.tm-on) .bottom-nav-inner { background: linear-gradient(180deg, rgba(var(--tm-surface-rgb), .98), rgba(var(--tm-deep-rgb), .98)) !important; border: 1px solid rgba(var(--tm-accent-rgb), .28) !important; }
:where(html.tm-on) .nav-item, :where(html.tm-on) .nav-games-center { color: rgb(var(--tm-accent-text-rgb)) !important; }
:where(html.tm-on) .nav-icon, :where(html.tm-on) .nav-icon-center { border: 1px solid rgba(var(--tm-accent-rgb), .16) !important; color: rgb(var(--tm-muted-rgb)) !important; }
:where(html.tm-on) .nav-deposit .nav-icon { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-deep-rgb))) !important; box-shadow: 0 8px 18px rgba(var(--tm-accent-rgb), .26) !important; }
:where(html.tm-on) .nav-withdraw .nav-icon { background: linear-gradient(180deg, rgb(var(--tm-accent2-rgb)), rgb(var(--tm-accent2-deep-rgb))) !important; color: rgb(var(--tm-accent2-ink-rgb)) !important; box-shadow: 0 8px 18px rgba(var(--tm-accent2-rgb), .22) !important; }
:where(html.tm-on) .nav-games-center .nav-icon-center { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-deep-rgb))) !important; box-shadow: 0 8px 20px rgba(var(--tm-accent-rgb), .32) !important; }
:where(html.tm-on) .nav-item.active { background: linear-gradient(180deg, rgba(var(--tm-accent-rgb), .16), rgba(var(--tm-accent-rgb), .08)) !important; }
:where(html.tm-on) .nav-item.active::after { background: linear-gradient(90deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent2-rgb))) !important; box-shadow: 0 0 12px rgba(var(--tm-accent-rgb), .5) !important; }
:where(html.tm-on) .nav-item.active .nav-icon, :where(html.tm-on) .nav-item.active .nav-icon-center { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-rgb))) !important; box-shadow: 0 8px 20px rgba(var(--tm-accent-rgb), .36), inset 0 1px 0 rgba(255,255,255,.26) !important; }
:where(html.tm-on) .bnav-credit-bar { background: linear-gradient(180deg, rgba(var(--tm-surface-rgb), .98), rgba(var(--tm-surface-rgb), .98)) !important; border: 1px solid rgba(var(--tm-accent-rgb), .28) !important; }
:where(html.tm-on) .bnav-credit-bar i { color: rgb(var(--tm-accent2-rgb)) !important; }
}

/* ---- wallet/cashback.css (30) ---- */
:where(html.tm-on) .wheel-card, :where(html.tm-on) .wheel-stage, :where(html.tm-on) .wheel-prizes { background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .86), rgba(var(--tm-surface-rgb), .96)); }
:where(html.tm-on) .wheel-hero-text p { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .wheel-balance-grid span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .wheel-balance-grid b { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .wheel-stage { background: radial-gradient(ellipse at 50% 32%, rgba(var(--tm-accent2-deep-rgb), .10) 0%, transparent 58%),
    linear-gradient(180deg, rgba(var(--tm-raised-rgb), .92), rgba(var(--tm-deep-rgb), .98)); }
:where(html.tm-on) .wheel-pin-top { background: radial-gradient(circle at 38% 35%, #fff8d6, rgb(var(--tm-accent2-rgb)) 45%, rgb(var(--tm-accent2-deep-rgb))); box-shadow: 0 2px 10px rgba(0,0,0,.5), 0 0 8px rgba(var(--tm-accent2-rgb), .5); }
:where(html.tm-on) .wheel-pointer { color: rgb(var(--tm-accent2-rgb)); filter: drop-shadow(0 0 8px rgba(var(--tm-accent2-rgb), .9)); }
:where(html.tm-on) .wheel-canvas { box-shadow: 0 8px 40px rgba(0,0,0,.65), 0 0 0 5px rgba(var(--tm-accent2-deep-rgb), .35), 0 0 28px rgba(var(--tm-accent2-deep-rgb), .15); }
:where(html.tm-on) .wheel-spin-btn { color: rgb(var(--tm-accent-ink-rgb)); background: linear-gradient(180deg, rgb(var(--tm-accent2-rgb)), rgb(var(--tm-accent2-deep-rgb))); box-shadow: 0 8px 18px rgba(var(--tm-accent2-rgb), .24); }
:where(html.tm-on) .wheel-segment.active { border-color: rgba(var(--tm-accent2-rgb), .65); background: rgba(var(--tm-accent2-rgb), .14); }
:where(html.tm-on) .wheel-segment b { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .cashback-hero { background: radial-gradient(120% 120% at 100% 0%, rgba(var(--tm-accent2-rgb), .18), transparent 55%),
    linear-gradient(180deg, rgb(var(--tm-raised-rgb)), rgb(var(--tm-surface-rgb))); border: 1px solid rgba(var(--tm-accent2-rgb), .18); }
:where(html.tm-on) .cb-range { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .cb-pct { color: rgb(var(--tm-accent2-rgb)); text-shadow: 0 4px 18px rgba(var(--tm-accent2-rgb), .35); }
:where(html.tm-on) .cb-pct-sub { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .cb-stat { background: rgba(var(--tm-surface-rgb), .65); }
:where(html.tm-on) .cb-stat span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .cashback-rules { background: rgba(var(--tm-surface-rgb), .55); color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .cashback-rules b { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .cashback-claim-btn { background: linear-gradient(180deg, rgb(var(--tm-accent2-rgb)), rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); box-shadow: 0 6px 18px rgba(var(--tm-accent2-rgb), .25); }
:where(html.tm-on) .btn-calc-cashback { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .cashback-teaser { background: linear-gradient(135deg, rgba(var(--tm-accent2-rgb), .18), rgba(var(--tm-accent2-deep-rgb), .06)); border: 1px solid rgba(var(--tm-accent2-rgb), .3); }
:where(html.tm-on) .cb-teaser-icon { background: linear-gradient(180deg, rgb(var(--tm-accent2-rgb)), rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .cb-teaser-text small { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .cb-teaser-arrow { color: rgb(var(--tm-accent2-rgb)); }
html.runtime-themed:where(.tm-on) .feature-modal .modal-head h3 { color: var(--runtime-accent, rgb(var(--tm-accent2-rgb))) !important; }
:where(html.tm-on) .cb-cap-note { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .cashback-cats { background: rgba(var(--tm-surface-rgb), .65); }
:where(html.tm-on) .cb-cat-row { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .cb-cat-head { color: rgb(var(--tm-muted-rgb)); }

/* ---- wallet/prediction.css (23) ---- */
:where(html.tm-on) .pred-loading { color: var(--text-muted, rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .pred-card-meta { color: var(--text-muted, rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .pred-card-status.pending { color: var(--gold, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .pred-reward-badge { color: var(--gold, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .pred-back { color: var(--text-muted, rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .pred-eligibility-warn { background: rgba(var(--tm-accent2-deep-rgb), .12); border: 1px solid rgba(var(--tm-accent2-deep-rgb), .3); color: var(--gold, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .pred-text-input:focus { border-color: var(--sky, rgb(var(--tm-accent-rgb))); }
:where(html.tm-on) .pred-choice.selected { border-color: var(--sky, rgb(var(--tm-accent-rgb))); }
:where(html.tm-on) .pred-choice.selected .pred-choice-num { background: var(--sky, rgb(var(--tm-accent-rgb))); }
:where(html.tm-on) .pred-result.pending { color: var(--gold, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .pred-result.info { color: var(--sky, rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .pred-result.reward { color: var(--gold, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .pred-submit-btn { background: linear-gradient(135deg, var(--sky, rgb(var(--tm-accent-rgb))), rgba(var(--runtime-primary-rgb, 0,136,204), .8)); }
:where(html.tm-on) .pred-popup-desc { color: var(--text-muted, rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .pred-popup-btn { background: linear-gradient(135deg, var(--gold, rgb(var(--tm-accent2-rgb))), rgba(var(--runtime-accent-rgb, 244,149,0), .9)); color: rgb(var(--tm-accent-ink-rgb)); }
:where(html.tm-on) .pred-tab { color: var(--text-muted, rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .pred-tab.active { background: linear-gradient(135deg, var(--sky, rgb(var(--tm-accent-rgb))), rgba(var(--runtime-primary-rgb, 0,136,204), .8)); }
:where(html.tm-on) .pred-history-label { color: var(--text-muted, rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .pred-hist-table th { color: var(--text-muted, rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .pred-hist-img-placeholder { color: var(--text-muted, rgb(var(--tm-accent-text-rgb))); }
:where(html.tm-on) .pred-hist-wait { color: var(--gold, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .pred-hist-reward { color: var(--gold, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .pred-hist-time { color: var(--text-muted, rgb(var(--tm-accent-text-rgb))); }

/* ---- promo-fit-override.css (4) ---- */
:where(html.tm-on) .t2-banner-img-wrap { background: rgb(var(--tm-surface-rgb)) !important; }
:where(html.tm-on) .games-pager { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .games-per select { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .games-page-btn.active { background: linear-gradient(135deg,rgb(var(--tm-accent-deep-rgb)),rgb(var(--tm-accent-deep-rgb))); border-color: rgba(var(--tm-accent-rgb), .45); }

/* ---- casino-blue-v21.css (108) ---- */
:where(html.tm-on) :root { /* สีหลัก — กำหนดที่หลังบ้าน field: theme_primary_color */
  --t-primary:  var(--runtime-primary, rgb(var(--tm-accent-rgb))); /* สี accent — กำหนดที่หลังบ้าน field: theme_accent_color */
  --t-accent:   var(--runtime-accent,  rgb(var(--tm-accent2-rgb))); /* สีพื้นหลัง — กำหนดที่หลังบ้าน field: theme_background_color */
  --t-bg:       var(--runtime-bg,      rgb(var(--tm-deep-rgb))); /* Theme tokens (ไม่เปลี่ยนตาม backend) */
  --t-panel: rgba(var(--tm-surface-rgb), .86); }
:where(html.tm-on) .gl-particles span:nth-child(5) { background: var(--runtime-accent, rgb(var(--tm-accent2-rgb))); box-shadow: 0 0 8px var(--runtime-accent, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .gl-particles span:nth-child(9) { background: var(--runtime-accent, rgb(var(--tm-accent2-rgb))); box-shadow: 0 0 8px var(--runtime-accent, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .gl-pulse span:nth-child(2) { border-color: var(--runtime-accent, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .gl-hex-l2 { background: linear-gradient(45deg,
    transparent 0%,
    var(--runtime-accent, rgb(var(--tm-accent2-rgb))) 25%,
    transparent 26%,
    transparent 74%,
    var(--runtime-accent, rgb(var(--tm-accent2-rgb))) 75%,
    transparent 100%); }
:where(html.tm-on) .gl-orbit-dot-2 { background: var(--runtime-accent, rgb(var(--tm-accent2-rgb))); box-shadow: 0 0 14px var(--runtime-accent, rgb(var(--tm-accent2-rgb))), 0 0 28px var(--runtime-accent, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) }
.gl-logo-area { background: linear-gradient(180deg, #fff 0%, var(--runtime-primary, #ff3a8c) 65%, var(--runtime-accent, rgb(var(--tm-accent2-rgb))) 100%); }
:where(html.tm-on) .gl-step.is-done .gl-step-icon { background: var(--runtime-accent, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .gl-step.is-done .gl-step-status { background: var(--runtime-accent, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .gl-energy-fill { background: linear-gradient(90deg,
    var(--runtime-primary, #ff3a8c) 0%,
    var(--runtime-accent, rgb(var(--tm-accent2-rgb))) 100%); }
:where(html.tm-on) body::before { background: radial-gradient(circle at 12% -8%,  rgba(var(--runtime-primary-rgb,0,231,255),.22),  transparent 28%),
    radial-gradient(circle at 92% 12%,  rgba(var(--runtime-primary-rgb,20,113,255),.18), transparent 26%),
    radial-gradient(circle at 50% 120%, rgba(var(--runtime-primary-rgb,0,76,180),.24),   transparent 34%),
    linear-gradient(180deg, var(--t-bg,rgb(var(--tm-deep-rgb))) 0%, rgba(var(--runtime-primary-rgb,2,26,67),.4) 36%, var(--t-bg,rgb(var(--tm-deep-rgb))) 74%, rgba(var(--runtime-primary-rgb,3,29,72),.3) 100%) !important; }
:where(html.tm-on) .brand-logo { text-shadow: 0 0 10px rgba(var(--tm-accent-rgb), .9), 0 2px 0 rgba(0,0,0,.56); background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 38%),
    linear-gradient(135deg, rgb(var(--tm-raised-rgb)), rgb(var(--tm-accent-deep-rgb)) 46%, rgb(var(--tm-accent-rgb))); border: 1px solid rgba(var(--tm-accent-rgb), .68); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 26px rgba(var(--tm-accent-rgb), .34), 0 12px 26px rgba(0,0,0,.34); }
:where(html.tm-on) .brand-logo.brand-logo-image { border: 1px solid rgba(var(--tm-accent-rgb), .28); }
:where(html.tm-on) .desktop-auth .btn-login, :where(html.tm-on) .btn-login { background: linear-gradient(180deg, rgb(var(--tm-accent2-rgb)), rgb(var(--tm-accent2-rgb)) 58%, rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .desktop-auth .btn-register, :where(html.tm-on) .btn-register { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)) 0%, rgb(var(--tm-accent-rgb)) 52%, rgb(var(--tm-accent-deep-rgb)) 100%); }
:where(html.tm-on) .desktop-search-btn { border: 1px solid rgba(var(--tm-accent-rgb), .38); background: linear-gradient(180deg, rgba(var(--tm-accent-deep-rgb), .92), rgba(var(--tm-surface-rgb), .96)); }
:where(html.tm-on) .desktop-auth.is-user .top-user-card, :where(html.tm-on) .desktop-auth.is-user .top-balance-card { border: 1px solid rgba(var(--tm-accent-rgb), .45); background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .96), rgba(var(--tm-surface-rgb), .96)); }
:where(html.tm-on) .top-avatar { background: linear-gradient(180deg,var(--t-accent),rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .top-action.deposit { background: linear-gradient(180deg, var(--t-primary), rgb(var(--tm-accent-deep-rgb))); }
:where(html.tm-on) .top-action.withdraw { background: linear-gradient(180deg, var(--t-accent), rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .top-logout { background: rgba(var(--tm-deep-rgb), .72); color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .cat-tabs { background: linear-gradient(180deg, rgba(var(--tm-deep-rgb), .9), rgba(var(--tm-deep-rgb), .92)); border-bottom: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .cat-tab { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .cat-tab:hover { background: rgba(var(--tm-accent-rgb), .08); border-color: rgba(var(--tm-accent-rgb), .2); }
:where(html.tm-on) .cat-tab.active { background: linear-gradient(180deg, rgba(var(--tm-accent-rgb), .18), rgba(var(--tm-accent-rgb), .08)); border: 1px solid rgba(var(--tm-accent-rgb), .38); }
:where(html.tm-on) .panel, :where(html.tm-on) .notice, :where(html.tm-on) .bar-title, :where(html.tm-on) .jackpot-card, :where(html.tm-on) .lb-card, :where(html.tm-on) .shortcut-card, :where(html.tm-on) .rail-account, :where(html.tm-on) .rail-link, :where(html.tm-on) .online-box, :where(html.tm-on) .live-card, :where(html.tm-on) .guide-row, :where(html.tm-on) .modal-card { background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .82), rgba(var(--tm-deep-rgb), .92)); }
:where(html.tm-on) .notice { background: linear-gradient(90deg, rgba(var(--tm-surface-rgb), .86), rgba(var(--tm-raised-rgb), .66), rgba(var(--tm-surface-rgb), .86)); }
:where(html.tm-on) .notice i { filter: drop-shadow(0 0 8px rgba(var(--tm-accent-rgb), .55)); }
:where(html.tm-on) .bar-title { background: linear-gradient(90deg, rgba(var(--tm-accent-rgb), .16), rgba(var(--tm-accent-deep-rgb), .14), rgba(var(--tm-accent2-rgb), .1)); }
:where(html.tm-on) .bar-title i { filter: drop-shadow(0 0 10px rgba(var(--tm-accent-rgb), .42)); }
:where(html.tm-on) .section-head h2 i { filter: drop-shadow(0 0 10px rgba(var(--tm-accent-rgb), .42)); }
:where(html.tm-on) .tab-row { background: linear-gradient(180deg, rgba(var(--tm-surface-rgb), .82), rgba(var(--tm-deep-rgb), .86)); border: 1px solid rgba(var(--tm-accent-rgb), .16); }
:where(html.tm-on) .tab-pill { border: 1px solid rgba(var(--tm-accent-rgb), .26); background: rgba(var(--tm-surface-rgb), .66); }
:where(html.tm-on) .tab-pill.active { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-rgb))); box-shadow: 0 12px 26px rgba(var(--tm-accent-rgb), .22); }
:where(html.tm-on) .rail-avatar { background: linear-gradient(180deg, var(--t-accent), rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .rail-balance { background: rgba(var(--tm-deep-rgb), .54); border: 1px solid rgba(var(--tm-accent-rgb), .22); }
:where(html.tm-on) .rail-refresh-btn { border: 1px solid rgba(var(--tm-accent-rgb), .25); background: rgba(var(--tm-accent-rgb), .1); color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .rail-quick button, :where(html.tm-on) .rail-account.guest button { background: linear-gradient(180deg, var(--t-primary), rgb(var(--tm-accent-deep-rgb))); }
:where(html.tm-on) .rail-quick button:nth-child(2) { background: linear-gradient(180deg, var(--t-accent), rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .rail-account.guest { background: radial-gradient(circle at 50% 0, rgba(var(--tm-accent-rgb), .14), transparent 38%), linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .rail-link { background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .82), rgba(var(--tm-surface-rgb), .94)); }
:where(html.tm-on) .rail-link .ricon { background: rgba(var(--tm-accent-rgb), .1); border: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .rail-link.active { background: linear-gradient(180deg, #ecfbff, rgb(var(--tm-accent-rgb))); color: rgb(var(--tm-accent-ink-rgb)); box-shadow: 0 16px 34px rgba(var(--tm-accent-rgb), .24); }
:where(html.tm-on) .rail-link.active .ricon { background: rgba(var(--tm-accent-deep-rgb), .14); color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .rail-sub-link { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .hero-fallback { background: radial-gradient(circle at 78% 36%, rgba(var(--tm-accent-rgb), .24), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(var(--tm-accent2-rgb), .22), transparent 22%),
    linear-gradient(135deg, rgb(var(--tm-surface-rgb)), rgb(var(--tm-accent-deep-rgb)) 70%, rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .hero-fallback h1 { text-shadow: 0 0 18px rgba(var(--tm-accent-rgb), .58), 0 2px 0 rgba(0,0,0,.52); }
:where(html.tm-on) .hero-arrow { background: rgba(var(--tm-surface-rgb), .68); border: 1px solid rgba(var(--tm-accent-rgb), .38); }
:where(html.tm-on) .hero-dot.active { background: linear-gradient(90deg, var(--t-primary), rgb(var(--tm-accent-rgb))); box-shadow: 0 0 14px rgba(var(--tm-accent-rgb), .55); }
:where(html.tm-on) .auth-row .login { background: linear-gradient(180deg, var(--t-accent), rgb(var(--tm-accent2-rgb)) 58%, rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .auth-row .register { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)) 0%, rgb(var(--tm-accent-rgb)) 52%, rgb(var(--tm-accent-deep-rgb)) 100%); }
:where(html.tm-on) .btn-main { background: linear-gradient(180deg, var(--t-primary), rgb(var(--tm-accent-deep-rgb))); }
:where(html.tm-on) .btn-gold { background: linear-gradient(180deg, var(--t-accent), rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .install-btn, :where(html.tm-on) .deposit-action { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)) 0%, rgb(var(--tm-accent-rgb)) 52%, rgb(var(--tm-accent-deep-rgb)) 100%); }
:where(html.tm-on) .game-card { background: rgb(var(--tm-surface-rgb)); border: 1px solid rgba(var(--tm-accent-rgb), .22); }
:where(html.tm-on) .game-card:hover { border-color: rgba(var(--tm-accent2-rgb), .5); }
:where(html.tm-on) .game-thumb i { text-shadow: 0 0 20px rgba(var(--tm-accent-rgb), .6); }
:where(html.tm-on) .game-card.launching::after { background: rgba(var(--tm-deep-rgb), .76); border: 1px solid rgba(var(--tm-accent-rgb), .35); }
:where(html.tm-on) .provider-card { background: rgb(var(--tm-deep-rgb)); }
:where(html.tm-on) .provider-card:hover { box-shadow: 0 23px 55px rgba(0,0,0,.38), 0 0 28px rgba(var(--tm-accent-rgb), .12); }
:where(html.tm-on) .provider-logo { background: rgb(var(--tm-deep-rgb)); }
:where(html.tm-on) .provider-logo img { background: rgb(var(--tm-deep-rgb)); }
:where(html.tm-on) .provider-logo i { text-shadow: 0 0 16px rgba(var(--tm-accent-rgb), .5); }
:where(html.tm-on) .jp-img.jackpot-gif { background-color: rgb(var(--tm-deep-rgb)); border: 1px solid rgba(var(--tm-accent2-rgb), .32); }
:where(html.tm-on) .lb-subname { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .footer { border-top: 1px solid rgba(var(--tm-accent-rgb), .2); background: rgb(var(--tm-deep-rgb)); }
:where(html.tm-on) .bottom-nav { background: linear-gradient(180deg, rgba(var(--tm-surface-rgb), .84), rgba(var(--tm-deep-rgb), .96)); border-top: 1px solid rgba(var(--tm-accent-rgb), .22); }
:where(html.tm-on) .bottom-nav-inner { background: rgba(var(--tm-deep-rgb), .92); border: 1px solid rgba(var(--tm-accent-rgb), .22); }
:where(html.tm-on) .nav-item { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .nav-icon { background: rgba(var(--tm-accent-rgb), .1); border: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .nav-item.active .nav-icon { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-rgb))); box-shadow: 0 0 18px rgba(var(--tm-accent-rgb), .34); }
:where(html.tm-on) .cs-float { background: radial-gradient(circle at 50% 30%, var(--t-primary, rgb(var(--tm-accent-rgb))), rgb(var(--tm-accent-deep-rgb))); }
:where(html.tm-on) .drawer-nav-item i { color: var(--t-accent, rgb(var(--tm-accent2-rgb))); }
:where(html.tm-on) .guest-box > i { background: linear-gradient(180deg, var(--t-primary,rgb(var(--tm-accent-rgb))), rgba(var(--runtime-primary-rgb,0,80,180),.7)) !important; }
:where(html.tm-on) .guest-box i, :where(html.tm-on) .profile-avatar { background: linear-gradient(180deg, var(--t-primary,rgb(var(--tm-accent-rgb))), rgba(var(--runtime-primary-rgb,0,80,180),.7)) !important; }
:where(html.tm-on) .modal { background: rgba(var(--tm-deep-rgb), .78); }
:where(html.tm-on) }

.modal-card { background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .96), rgba(var(--tm-deep-rgb), .98)); border-color: rgba(var(--tm-accent-rgb), .38); box-shadow: 0 34px 105px rgba(0,0,0,.72), 0 0 42px rgba(var(--tm-accent-rgb), .12); }
:where(html.tm-on) .modal-head { border-bottom: 1px solid rgba(var(--tm-accent-rgb), .18); background: linear-gradient(90deg, rgba(var(--tm-surface-rgb), .98), rgba(var(--tm-deep-rgb), .98)); }
:where(html.tm-on) .auth-tabs { background: rgba(var(--tm-deep-rgb), .72); }
:where(html.tm-on) .auth-tab { border: 1px solid rgba(var(--tm-accent-rgb), .18); background: rgba(var(--tm-surface-rgb), .8); }
:where(html.tm-on) .auth-tab.active { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-deep-rgb))); box-shadow: 0 8px 24px rgba(var(--tm-accent-rgb), .34); }
:where(html.tm-on) .auth-modal.has-side .modal-card-inner { background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .98), rgba(var(--tm-deep-rgb), .98)); }
:where(html.tm-on) .auth-modal.has-side .modal-head { border-bottom: 1px solid rgba(var(--tm-accent-rgb), .22); }
:where(html.tm-on) .promo-item { background: rgba(var(--tm-surface-rgb), .68); border: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .promo-item.active { border-color: rgba(var(--tm-accent-rgb), .7); background: linear-gradient(180deg, rgba(var(--tm-accent-rgb), .16), rgba(var(--tm-surface-rgb), .76)); }
:where(html.tm-on) .promo-preview h2 { text-shadow: 0 0 14px rgba(var(--tm-accent-rgb), .36); }
:where(html.tm-on) .step-section .stepno, :where(html.tm-on) .step-section .stepno.empty { color: rgb(var(--tm-accent-ink-rgb)); }
:where(html.tm-on) .wallet-modal-section { background: rgba(var(--tm-deep-rgb), .86); }
:where(html.tm-on) .wallet-modal-section > .section-head { border: 1px solid rgba(var(--tm-accent-rgb), .28); background: linear-gradient(90deg, rgba(var(--tm-accent-rgb), .18), rgba(var(--tm-surface-rgb), .94)); }
:where(html.tm-on) .wallet-modal-section > .deposit-wrap, :where(html.tm-on) .wallet-modal-section > .panel { border: 1px solid rgba(var(--tm-accent-rgb), .28); background: linear-gradient(180deg, rgba(var(--tm-surface-rgb), .96), rgba(var(--tm-deep-rgb), .98)); }
:where(html.tm-on) .modal-close-page { background: linear-gradient(180deg, rgb(var(--tm-raised-rgb)), rgb(var(--tm-surface-rgb))); border: 1px solid rgba(var(--tm-accent-rgb), .45); }
:where(html.tm-on) .deposit-method { background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .82), rgba(var(--tm-surface-rgb), .94)); border: 1px solid rgba(var(--tm-accent-rgb), .26); }
:where(html.tm-on) .deposit-method.active { background: linear-gradient(180deg, rgba(var(--tm-accent-rgb), .2), rgba(var(--tm-accent-rgb), .12)); border-color: rgba(var(--tm-accent-rgb), .74); }
:where(html.tm-on) .deposit-account { background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .78), rgba(var(--tm-deep-rgb), .9)); border: 1px solid rgba(var(--tm-accent-rgb), .24); }
:where(html.tm-on) .history-item { background: rgba(var(--tm-deep-rgb), .55); border: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .input, :where(html.tm-on) input, :where(html.tm-on) select, :where(html.tm-on) textarea { background: rgba(var(--tm-deep-rgb), .68); border: 1px solid rgba(var(--tm-accent-rgb), .34); }
:where(html.tm-on) .input:focus, :where(html.tm-on) input:focus, :where(html.tm-on) select:focus, :where(html.tm-on) textarea:focus { border-color: rgba(var(--tm-accent-rgb), .82); box-shadow: 0 0 0 3px rgba(var(--tm-accent-rgb), .12); }
:where(html.tm-on) label { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .copy-btn { background: rgba(var(--tm-accent-rgb), .12); border: 1px solid rgba(var(--tm-accent-rgb), .32); }
:where(html.tm-on) .casino-stats > div { border: 1px solid rgba(var(--tm-accent-rgb), .26); background: linear-gradient(180deg, rgba(var(--tm-raised-rgb), .78), rgba(var(--tm-deep-rgb), .92)); }
:where(html.tm-on) .casino-stats > div::before { background: rgba(var(--tm-accent-rgb), .08); }
:where(html.tm-on) .casino-stats i { background: linear-gradient(180deg, rgb(var(--tm-accent-rgb)), rgb(var(--tm-accent-rgb))); box-shadow: 0 0 20px rgba(var(--tm-accent-rgb), .26); }
:where(html.tm-on) .swal2-popup .swal2-loader { border-color: var(--runtime-primary, rgb(var(--tm-accent-rgb))) transparent var(--runtime-primary, rgb(var(--tm-accent-rgb))) transparent !important; }
:where(html.tm-on) .swal2-popup .swal2-confirm { background: linear-gradient(180deg, var(--runtime-primary, rgb(var(--tm-accent-rgb))), var(--runtime-accent, rgb(var(--tm-accent-deep-rgb)))) !important; }
:where(html.tm-on) .site-popup-image-frame { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .game-badge.hot { background: linear-gradient(135deg, rgb(var(--tm-accent2-rgb)) 0%, rgb(var(--tm-accent2-rgb)) 40%, #ff2d55 100%); }
:where(html.tm-on) .game-badge.hot > i { filter: drop-shadow(0 0 4px rgba(var(--tm-accent2-rgb), .95)); }
:where(html.tm-on) .game-badge.new { background: linear-gradient(135deg, #7dffc4 0%, rgb(var(--tm-accent-rgb)) 45%, #7c5cff 100%); box-shadow: 0 4px 14px rgba(var(--tm-accent-rgb), .45),
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 0 0 1px rgba(255, 255, 255, .2); text-shadow: 0 1px 2px rgba(var(--tm-raised-rgb), .5); }

/* ---- main.css (180) ---- */
html:where(.tm-on), :where(html.tm-on) body { background: rgb(var(--tm-deep-rgb)); }
:where(html.tm-on) .input { background: rgba(var(--tm-deep-rgb), .75); border: 1.5px solid rgba(var(--tm-accent-rgb), .22); }
:where(html.tm-on) .input::placeholder { color: rgba(var(--tm-muted-rgb), .55); }
:where(html.tm-on) .input:hover:not(:disabled) { border-color: rgba(var(--tm-accent-rgb), .38); }
:where(html.tm-on) .input:focus { border-color: rgba(var(--tm-accent-rgb), .7); background: rgba(var(--tm-surface-rgb), .85); box-shadow: 0 0 0 3px rgba(var(--tm-accent-rgb), .1),inset 0 1px 3px rgba(0,0,0,.25); }
:where(html.tm-on) .input:disabled { background: rgba(var(--tm-deep-rgb), .5); border-color: rgba(var(--tm-accent-rgb), .1); }
:where(html.tm-on) select.input option { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .input-eye { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .input-eye:hover { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) label:not(.deposit-upload):not(.toggle-row):not([class]) { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) body:before { background: linear-gradient(180deg,rgb(var(--tm-deep-rgb)) 0%,rgb(var(--tm-surface-rgb)) 24%,rgb(var(--tm-deep-rgb)) 80%,rgb(var(--tm-surface-rgb)) 100%); }
:where(html.tm-on) body:after { background: radial-gradient(circle at 8% 22%,rgba(var(--tm-accent-rgb), .16),transparent 22%),
    radial-gradient(circle at 92% 8%,rgba(var(--tm-accent2-rgb), .14),transparent 25%),
    linear-gradient(90deg,rgba(var(--tm-accent-rgb), .03) 1px,transparent 1px),
    linear-gradient(rgba(var(--tm-accent-rgb), .025) 1px,transparent 1px); }
:where(html.tm-on) .brand-logo { color: rgb(var(--tm-accent2-rgb)); text-shadow: 0 2px #432306,0 0 10px rgba(var(--tm-accent2-rgb), .8); border: 2px solid rgb(var(--tm-accent2-deep-rgb)); }
:where(html.tm-on) .brand-logo:before, :where(html.tm-on) .brand-logo:after { border: 2px solid rgb(var(--tm-accent2-deep-rgb)); }
:where(html.tm-on) .brand-logo.brand-logo-image { background: rgba(var(--tm-deep-rgb), .72); }
:where(html.tm-on) .install-btn { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-deep-rgb))); box-shadow: 0 4px 12px rgba(var(--tm-accent-rgb), .35); }
:where(html.tm-on) .topbar { background: linear-gradient(180deg,rgb(var(--tm-surface-rgb)),rgb(var(--tm-surface-rgb))); border-bottom: 1px solid rgba(var(--tm-accent-deep-rgb), .45); }
:where(html.tm-on) .desktop-promo-btn { border: 1px solid rgba(var(--tm-accent2-rgb), .4); background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .desktop-promo-btn .gicon { background: linear-gradient(180deg,rgb(var(--tm-accent2-rgb)),rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .desktop-auth .btn-login { background: linear-gradient(180deg,rgb(var(--tm-accent2-rgb)),rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .desktop-auth .btn-register { background: rgb(var(--tm-surface-rgb)); color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .cat-tabs { background: linear-gradient(180deg,rgb(var(--tm-surface-rgb)),rgb(var(--tm-deep-rgb))); border-bottom: 1px solid rgba(var(--tm-accent-deep-rgb), .4); }
:where(html.tm-on) .cat-tab { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .cat-tab i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .cat-tab.active { border-bottom-color: rgb(var(--tm-accent-rgb)); }
:where(html.tm-on) .cat-tab.active i { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .rail-link { background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); border: 1px solid rgba(var(--tm-accent-rgb), .34); }
:where(html.tm-on) .rail-link .ricon { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .rail-link.active { color: rgb(var(--tm-accent-ink-rgb)); }
:where(html.tm-on) .rail-link.active .ricon { background: rgba(var(--tm-surface-rgb), .08); color: rgb(var(--tm-accent-ink-rgb)); }
:where(html.tm-on) .notice { background: rgb(var(--tm-deep-rgb)); }
:where(html.tm-on) .notice i { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .hero-slider { background: linear-gradient(135deg,rgb(var(--tm-surface-rgb)),rgb(var(--tm-raised-rgb))); border: 1px solid rgba(var(--tm-accent-rgb), .35); }
:where(html.tm-on) .hero-slide { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .hero-fallback { background: linear-gradient(100deg,rgb(var(--tm-surface-rgb)) 0%,rgba(var(--tm-surface-rgb), .82) 40%,rgba(0,0,0,.2)),
  radial-gradient(circle at 72% 44%,rgba(var(--tm-accent2-rgb), .38),transparent 30%),
  linear-gradient(135deg,rgb(var(--tm-surface-rgb)),rgb(var(--tm-raised-rgb))); }
:where(html.tm-on) .hero-fallback h1 { color: rgb(var(--tm-accent2-rgb)); text-shadow: 0 0 18px rgba(var(--tm-accent2-rgb), .3); }
:where(html.tm-on) .hero-arrow:hover { background: rgba(var(--tm-accent-deep-rgb), .7); }
:where(html.tm-on) .hero-dot.active { background: rgb(var(--tm-accent-rgb)); box-shadow: 0 0 8px rgba(var(--tm-accent-rgb), .6); }
:where(html.tm-on) .welcome-hero-panel { border: 1px solid rgba(var(--tm-accent-rgb), .45); background: linear-gradient(120deg,rgba(var(--tm-raised-rgb), .94),rgba(var(--tm-surface-rgb), .92),rgba(var(--tm-raised-rgb), .72)); }
:where(html.tm-on) .welcome-copy h2 { text-shadow: 0 0 12px rgba(var(--tm-accent-rgb), .28); }
:where(html.tm-on) .welcome-copy h2 i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .welcome-copy p { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .welcome-actions .ghost-welcome { border: 2px solid rgba(var(--tm-accent-rgb), .55); }
:where(html.tm-on) .welcome-actions .ghost-welcome:hover { background: rgba(var(--tm-accent-rgb), .1); }
:where(html.tm-on) .welcome-member-strip { border: 1px solid rgba(var(--tm-accent2-rgb), .42); background: linear-gradient(100deg,rgba(var(--tm-raised-rgb), .92),rgba(var(--tm-surface-rgb), .94)); }
:where(html.tm-on) .welcome-member-strip b { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .game-lobby-title i { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .game-lobby-sub { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .btn-main { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-deep-rgb))); box-shadow: 0 0 16px rgba(var(--tm-accent-rgb), .32),inset 0 1px 0 rgba(255,255,255,.35); }
:where(html.tm-on) .btn-dark { border: 1px solid rgba(var(--tm-accent-rgb), .46); background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .btn-gold { background: linear-gradient(180deg,rgb(var(--tm-accent2-rgb)),rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); box-shadow: 0 6px 18px rgba(var(--tm-accent2-rgb), .25); }
:where(html.tm-on) .auth-row .register { background: rgb(var(--tm-surface-rgb)); color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .auth-row .login { background: linear-gradient(180deg,rgb(var(--tm-accent2-rgb)),rgb(var(--tm-accent2-deep-rgb))); }
:where(html.tm-on) .tab-pill { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .tab-pill.active { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-deep-rgb))); box-shadow: 0 0 18px rgba(var(--tm-accent-rgb), .4); }
:where(html.tm-on) .bar-title { background: linear-gradient(90deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); border: 1px solid rgba(var(--tm-accent-rgb), .28); }
:where(html.tm-on) .bar-title i { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .bar-title .extra { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .panel { border: 1px solid rgba(var(--tm-accent-rgb), .46); background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .provider-card { border: 1px solid rgba(var(--tm-accent-rgb), .38); background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .provider-card:after { background: rgba(var(--tm-accent-rgb), .1); }
:where(html.tm-on) .provider-logo i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .provider-meta span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .online-box { border: 1px solid rgba(var(--tm-accent-rgb), .38); background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .online-img { background: linear-gradient(135deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .online-box .count { background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); border: 1px solid rgba(var(--tm-accent-rgb), .4); }
:where(html.tm-on) .online-box .count i { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .live-card { border: 1px solid rgba(var(--tm-accent-rgb), .4); background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .live-card .lc-top { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .live-card .lc-team .lc-logo { color: rgb(var(--tm-accent-ink-rgb)); }
:where(html.tm-on) .live-card .lc-vs { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .lc-actions .lc-bet { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-deep-rgb))); }
:where(html.tm-on) .lb-table th { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .lb-table td { background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); border-top: 1px solid rgba(var(--tm-accent-rgb), .3); border-bottom: 1px solid rgba(var(--tm-accent-rgb), .3); }
:where(html.tm-on) .lb-table td:first-child { border-left: 1px solid rgba(var(--tm-accent-rgb), .3); }
:where(html.tm-on) .lb-table td:last-child { border-right: 1px solid rgba(var(--tm-accent-rgb), .3); color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .leaderboard-panel { border-color: rgba(var(--tm-accent2-rgb), .28); }
:where(html.tm-on) .lb-head { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .lb-head i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .lb-game-thumb { background: rgba(var(--tm-accent2-rgb), .12); border: 1px solid rgba(var(--tm-accent2-rgb), .22); color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .lb-subname { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .lb-empty-state { color: rgb(var(--tm-muted-rgb)); border: 1px dashed rgba(var(--tm-accent2-rgb), .22); }
:where(html.tm-on) .lb-empty-state i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .lb-rank.r1 { background: linear-gradient(180deg,rgb(var(--tm-accent2-rgb)),rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .lb-rank.rN { background: rgb(var(--tm-surface-rgb)); color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .lb-game-icon i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .lb-game-meta span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .guide-row { border: 1px solid rgba(var(--tm-accent-rgb), .38); background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .guide-row summary .gr-icon { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .guide-row p { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .shortcut-card { background: radial-gradient(circle at 80% 50%,rgba(var(--tm-accent2-rgb), .18),transparent 50%),
  linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); border: 1px solid rgba(var(--tm-accent-rgb), .4); }
:where(html.tm-on) .shortcut-left p { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .shortcut-os button.active { border-color: rgb(var(--tm-accent-rgb)); color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .footer { background: linear-gradient(180deg,rgb(var(--tm-surface-rgb)),rgb(var(--tm-deep-rgb))); border-top: 1px solid rgba(var(--tm-accent-rgb), .28); }
:where(html.tm-on) .footer-grid ul a { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .footer-grid ul a:hover { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .footer-cert .cert { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .footer-contact a { background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) .footer-contact a.tg { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-deep-rgb))); }
:where(html.tm-on) .partner-pill { background: rgb(var(--tm-surface-rgb)); color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .copyright { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .jackpot-card, :where(html.tm-on) .lb-card, :where(html.tm-on) .minigame-card { border: 1px solid rgba(var(--tm-accent-rgb), .4); background: linear-gradient(180deg,rgb(var(--tm-raised-rgb)),rgb(var(--tm-surface-rgb))); }
:where(html.tm-on) .jackpot-card .jp-title i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .lb-card .lb-title i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .jp-img b { text-shadow: 0 0 10px rgba(var(--tm-accent2-rgb), .6),0 2px 0 #5e3712; }
:where(html.tm-on) .jp-img small { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .jp-img:before { color: rgb(var(--tm-accent2-rgb)); text-shadow: 0 0 8px rgba(var(--tm-accent2-rgb), .6); }
:where(html.tm-on) .minigame-btn { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-deep-rgb))); box-shadow: 0 0 16px rgba(var(--tm-accent-rgb), .32); }
:where(html.tm-on) .minigame-btn.gold { background: linear-gradient(180deg,rgb(var(--tm-accent2-rgb)),rgb(var(--tm-accent2-deep-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .cs-float { background: radial-gradient(circle at 50% 30%,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-deep-rgb))); box-shadow: 0 0 0 6px rgba(var(--tm-accent-rgb), .18),0 12px 28px rgba(var(--tm-raised-rgb), .5); }
:where(html.tm-on) .pred-float { background: radial-gradient(circle at 50% 30%,rgb(var(--tm-accent2-rgb)),rgb(var(--tm-accent2-deep-rgb))); box-shadow: 0 0 0 8px rgba(var(--tm-accent2-deep-rgb), .18),0 14px 32px rgba(180,80,0,.4); }
:where(html.tm-on) .ref-loading { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ref-hero-icon { background: linear-gradient(135deg,#00e682,rgb(var(--tm-accent-deep-rgb))); }
:where(html.tm-on) .ref-stat-card { background: rgba(var(--tm-surface-rgb), .7); border: 1px solid rgba(var(--tm-accent-rgb), .22); }
:where(html.tm-on) .ref-stat-card.gold { border-color: rgba(var(--tm-accent2-rgb), .28); }
:where(html.tm-on) .ref-stat-icon { background: rgba(var(--tm-accent-rgb), .12); color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .ref-stat-card.gold .ref-stat-icon { background: rgba(var(--tm-accent2-rgb), .1); color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .ref-stat-card small { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ref-stat-card.gold .ref-stat-num { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .ref-code-box, :where(html.tm-on) .ref-link-box { background: rgba(var(--tm-surface-rgb), .7); border: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .ref-code-box label, :where(html.tm-on) .ref-link-box label { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ref-code { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .ref-link-text { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ref-copy-btn { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-deep-rgb))); }
:where(html.tm-on) .ref-copy-btn.cyan { background: linear-gradient(180deg,#1affb2,rgb(var(--tm-accent-deep-rgb))); }
:where(html.tm-on) .ref-history-box { background: rgba(var(--tm-surface-rgb), .7); border: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .ref-history-box h4 { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ref-history-box h4 i { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .ref-table th { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .ref-date { color: rgb(var(--tm-muted-rgb))!important; }
:where(html.tm-on) .rail-bank-card { background: rgba(var(--tm-deep-rgb), .55); border: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .rail-bank-name { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .rail-bank-holder { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .withdraw-balance-row { background: rgba(var(--tm-deep-rgb), .55); border: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .withdraw-balance-row span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .withdraw-balance-row span i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .withdraw-balance-row b { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .withdraw-section-label { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .withdraw-section-label i { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .payout-acc-item { background: rgba(var(--tm-deep-rgb), .55); border: 1px solid rgba(var(--tm-accent-rgb), .28); }
:where(html.tm-on) .payout-acc-item:has(input:checked) { border-color: rgb(var(--tm-accent-rgb)); background: rgba(var(--tm-accent-rgb), .07); }
:where(html.tm-on) .payout-acc-item input { accent-color: rgb(var(--tm-accent-rgb)); }
:where(html.tm-on) .payout-acc-info small { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .withdraw-bank-card { background: rgba(var(--tm-deep-rgb), .6); border: 1px solid rgba(var(--tm-accent-rgb), .22); }
:where(html.tm-on) .wb-logo-fallback { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .wb-bank-name { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .wb-acc-name { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .drawer-profile { border-bottom: 1px solid rgba(var(--tm-accent-rgb), .14); }
:where(html.tm-on) .drawer-avatar { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-rgb))); box-shadow: 0 0 16px rgba(var(--tm-accent-rgb), .3); }
:where(html.tm-on) .drawer-profile-info small { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .drawer-bank-card { background: rgba(var(--tm-deep-rgb), .55); border: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .drawer-balance-row { background: rgba(var(--tm-deep-rgb), .5); border: 1px solid rgba(var(--tm-accent-rgb), .15); }
:where(html.tm-on) .drawer-balance-row span { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .drawer-balance-row span i { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .drawer-balance-row b { color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .drawer-refresh-btn { border: 1px solid rgba(var(--tm-accent-rgb), .25); background: rgba(var(--tm-accent-rgb), .1); color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .drawer-quick button:first-child { background: linear-gradient(180deg,rgb(var(--tm-accent-rgb)),rgb(var(--tm-accent-rgb))); }
:where(html.tm-on) .drawer-quick button:last-child { background: linear-gradient(180deg,rgb(var(--tm-accent2-rgb)),rgb(var(--tm-accent2-rgb))); color: rgb(var(--tm-accent2-ink-rgb)); }
:where(html.tm-on) .toggle-row input[type=checkbox] { accent-color: rgb(var(--tm-accent-rgb)); }
:where(html.tm-on) .aff-balance-card { background: linear-gradient(135deg,rgba(var(--tm-raised-rgb), .7),rgba(var(--tm-surface-rgb), .8)); border: 1px solid rgba(var(--tm-accent-rgb), .3); }
:where(html.tm-on) .aff-balance-label { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .aff-balance-amount span { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .aff-rates-card { background: rgba(var(--tm-surface-rgb), .7); border: 1px solid rgba(var(--tm-accent-rgb), .18); }
:where(html.tm-on) .aff-rate-row { background: rgba(var(--tm-accent-rgb), .06); border: 1px solid rgba(var(--tm-accent-rgb), .1); }
:where(html.tm-on) .aff-modal-box { background: rgb(var(--tm-surface-rgb)); border: 1px solid rgba(var(--tm-accent-rgb), .2); }
:where(html.tm-on) .aff-modal-head { border-bottom: 1px solid rgba(var(--tm-accent-rgb), .15); }
:where(html.tm-on) .aff-modal-head button { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .aff-tree-level { border-bottom: 1px solid rgba(var(--tm-accent-rgb), .08); }
:where(html.tm-on) .aff-tree-count { color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .aff-tree-member { background: rgba(var(--tm-accent-rgb), .05); }
:where(html.tm-on) .aff-hist-row { border-bottom: 1px solid rgba(var(--tm-accent-rgb), .07); }
:where(html.tm-on) .withdraw-amount-label { color: rgb(var(--tm-muted-rgb)); }
:where(html.tm-on) .withdraw-amount-input { background: rgba(var(--tm-deep-rgb), .55); border: 1px solid rgba(var(--tm-accent-rgb), .28); color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .withdraw-amount-input:focus { border-color: rgb(var(--tm-accent-rgb)); box-shadow: 0 0 0 3px rgba(var(--tm-accent-rgb), .12); }
:where(html.tm-on) .wdq-btn { border: 1px solid rgba(var(--tm-accent-rgb), .22); background: rgba(var(--tm-accent-rgb), .06); color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .wdq-btn:hover { background: rgba(var(--tm-accent-rgb), .12); border-color: rgba(var(--tm-accent-rgb), .4); }
:where(html.tm-on) .wdq-btn.wdq-all { background: rgba(var(--tm-accent2-rgb), .1); border-color: rgba(var(--tm-accent2-rgb), .35); color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .wdq-btn.wdq-all:hover { background: rgba(var(--tm-accent2-rgb), .18); border-color: rgb(var(--tm-accent2-rgb)); }
:where(html.tm-on) .wd-badge-fast { background: rgba(var(--tm-accent2-rgb), .14); color: rgb(var(--tm-accent2-rgb)); border: 1px solid rgba(var(--tm-accent2-rgb), .32); }
:where(html.tm-on) .wd-badge-wallet { background: rgba(var(--tm-accent-rgb), .14); color: rgb(var(--tm-accent-text-rgb)); border: 1px solid rgba(var(--tm-accent-rgb), .3); }

/* ---- wallet/mobile-nav.css (8) ---- */
html.runtime-themed:where(.tm-on) .btn-main, html.runtime-themed:where(.tm-on) .top-action.deposit, html.runtime-themed:where(.tm-on) .install-btn, html.runtime-themed:where(.tm-on) .rail-quick button:first-child, html.runtime-themed:where(.tm-on) .rail-account.guest button, html.runtime-themed:where(.tm-on) .drawer-quick button:first-child, html.runtime-themed:where(.tm-on) .desktop-auth .btn-login, html.runtime-themed:where(.tm-on) .cashback-claim-btn, html.runtime-themed:where(.tm-on) .wheel-spin-btn { background: linear-gradient(180deg, var(--runtime-primary), color-mix(in srgb, var(--runtime-primary), rgb(var(--tm-surface-rgb)) 42%)) !important; }
html.runtime-themed:where(.tm-on) .top-action.withdraw, html.runtime-themed:where(.tm-on) .rail-quick button:nth-child(2), html.runtime-themed:where(.tm-on) .drawer-quick button:last-child, html.runtime-themed:where(.tm-on) .desktop-auth .btn-register, html.runtime-themed:where(.tm-on) .wheel-segment.active, html.runtime-themed:where(.tm-on) .cashback-teaser { color: rgb(var(--tm-accent2-ink-rgb)) !important; }
@supports not (background: color-mix(in srgb, #fff, #000)) {
html.runtime-themed:where(.tm-on) .btn-main, html.runtime-themed:where(.tm-on) .top-action.deposit, html.runtime-themed:where(.tm-on) .install-btn, html.runtime-themed:where(.tm-on) .rail-quick button:first-child, html.runtime-themed:where(.tm-on) .rail-account.guest button, html.runtime-themed:where(.tm-on) .drawer-quick button:first-child, html.runtime-themed:where(.tm-on) .desktop-auth .btn-login, html.runtime-themed:where(.tm-on) .cashback-claim-btn, html.runtime-themed:where(.tm-on) .wheel-spin-btn { background: linear-gradient(180deg, var(--runtime-primary), rgb(var(--tm-accent-deep-rgb))) !important; }
html.runtime-themed:where(.tm-on) .top-action.withdraw, html.runtime-themed:where(.tm-on) .rail-quick button:nth-child(2), html.runtime-themed:where(.tm-on) .drawer-quick button:last-child, html.runtime-themed:where(.tm-on) .desktop-auth .btn-register, html.runtime-themed:where(.tm-on) .wheel-segment.active, html.runtime-themed:where(.tm-on) .cashback-teaser { background: linear-gradient(180deg, var(--runtime-accent), rgb(var(--tm-accent2-deep-rgb))) !important; }
}
:where(html.tm-on) .bnav-credit-bar { background: linear-gradient(90deg, rgba(var(--tm-accent-rgb), .14), rgba(var(--tm-accent-rgb), .12), rgba(var(--tm-accent-rgb), .14)); border-bottom: 1px solid rgba(var(--tm-accent-rgb), .22); color: rgb(var(--tm-accent-text-rgb)); }
:where(html.tm-on) .bnav-credit-bar:active { background: rgba(var(--tm-accent-rgb), .22); }
:where(html.tm-on) .bnav-credit-bar i { color: rgb(var(--tm-accent2-rgb)); filter: drop-shadow(0 0 6px rgba(var(--tm-accent2-rgb), .5)); }
:where(html.tm-on) body:not(.tpl2-active) .game-count-note { color: rgb(var(--tm-muted-rgb)) !important; }

/* ---- game-cards-t1.css (4) ---- */
:where(html.tm-on) body:not(.tpl2-active) .game-card { border: 1px solid rgba(var(--tm-accent-rgb), .28); background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) body:not(.tpl2-active) .provider-card { border: 1px solid rgba(var(--tm-accent-rgb), .28); background: rgb(var(--tm-surface-rgb)); }
:where(html.tm-on) body:not(.tpl2-active) .game-card:hover, :where(html.tm-on) body:not(.tpl2-active) .provider-card:hover { border-color: rgba(var(--tm-accent2-rgb), .5); }
:where(html.tm-on) body:not(.tpl2-active) .game-thumb, :where(html.tm-on) body:not(.tpl2-active) .provider-cover { background: rgb(var(--tm-surface-rgb)) !important; }

/* ---- ปรับมือ: ตัวหนังสือบนพื้นสีรอง ---- */
:where(html.tm-on) .pred-float, :where(html.tm-on) .pred-float small, :where(html.tm-on) .pred-float i { color: rgb(var(--tm-accent2-ink-rgb)) !important; }
html.tm-on.tm-on.tm-on body .btn-main, html.tm-on.tm-on.tm-on body .btn-main span, html.tm-on.tm-on.tm-on body .btn-main i,
html.tm-on.tm-on.tm-on body .drawer-quick button:first-child, html.tm-on.tm-on.tm-on body .drawer-quick button:first-child i, html.tm-on.tm-on.tm-on body .rail-quick button:first-child, html.tm-on.tm-on.tm-on body .rail-quick button:first-child i,
html.tm-on.tm-on.tm-on body .cs-float, html.tm-on.tm-on.tm-on body .cs-float small, html.tm-on.tm-on.tm-on body .cs-float i,
html.tm-on.tm-on.tm-on body .deposit-action, html.tm-on.tm-on.tm-on body .deposit-action i { color: rgb(var(--tm-accent-ink-rgb)) !important; }
html.tm-on.tm-on.tm-on body .drawer-quick button:nth-child(2), html.tm-on.tm-on.tm-on body .drawer-quick button:nth-child(2) i, html.tm-on.tm-on.tm-on body .rail-quick button:nth-child(2), html.tm-on.tm-on.tm-on body .rail-quick button:nth-child(2) i { color: rgb(var(--tm-accent2-ink-rgb)) !important; }
