/* Shared application surfaces; original dimensions, control IDs and status meanings retained. */
html.tb-premium{--tb-bg:#082d2d;--tb-panel:#154238;--tb-text:#f0f4df;--tb-muted:#bdd0c0;--tb-line:#d9d7a92e;--tb-gold:#ebd599;--tb-field:#eff4e7;color-scheme:normal}
.tbh-home body{background:radial-gradient(ellipse at 5% 0,#23573c,transparent 55%),linear-gradient(140deg,#082f29,#092630);color:var(--tb-text)}
.tbh-home #topbet-root :is(.cash-card,.cash-balance,.cash-method,.profile-card,.aff-card,.aff-stats>div,.aff-stats>article,.ap-card,.ap-stats>div,.ap-stats>article,.pg-card,.pg-empty,.pm-card,.pm-stats>div,.fb-card,.auth-card,.auth-panel,.login-card,.register-card){background:linear-gradient(135deg,#19473b,#10343a);color:var(--tb-text);border-color:var(--tb-line);box-shadow:0 10px 28px #001f2524,inset 0 1px 0 #fff1}
.tbh-home #topbet-root :is(.profile-page,.cash-page,.affiliate-page,.aff-rs,.agent-pro,.promo-manager,.promotions-gallery){color:var(--tb-text)}
.tbh-home #topbet-root :is(.cash-card,.cash-balance,.profile-card,.aff-card,.aff-stats,.ap-card,.ap-stats,.pg-card,.pm-card) :is(h1,h2,h3,h4,strong){color:var(--tb-text)}
.tbh-home #topbet-root :is(.cash-card,.profile-card,.aff-card,.ap-card,.pg-card,.pm-card) :is(p,small,.muted,.small,.profile-hint,.ap-muted,.pg-text,.pm-muted){color:var(--tb-muted)}
.tbh-home #topbet-root :is(.ap-pagebar,.profile-intro,.page-heading,.pg-heading,.pm-heading,.rs-period-head) :is(h1,h2,h3){color:#fff0ce;font-weight:800}
.tbh-home #topbet-root :is(.aff-card,.ap-card,.profile-card,.cash-card,.pm-card,.pg-card) a:not(.button):not(.fb-action):not(.ap-primary-link):not(.pg-cta){color:#e1d99e}
.tbh-home #topbet-root :is(.aff-hero,.ap-hero,.ap-welcome){background:radial-gradient(circle at 90% 10%,#77a04a3b,transparent 65%),linear-gradient(130deg,#143f2e,#12343c);border-color:#d4ce8945;color:#f2efcb}
.tbh-home #topbet-root :is(.aff-hero,.ap-hero,.ap-welcome) :is(h1,h2,h3){color:#fff0d2!important}
.tbh-home #topbet-root :is(.aff-hero,.ap-hero,.ap-welcome) p{color:#d1e0c5!important}
.tbh-home #topbet-root :is(.rs-financial,.rs-highlight,.rs-formula,.rs-cost,.rs-hero-rate){background:#c9e59a0b;border-color:#d1d59a40;color:#e7edc9}
.tbh-home #topbet-root :is(.aff-copy,.link-box){background:#cce6a30c;border-color:#cedca246;color:#e8edcc}
.tbh-home #topbet-root :is(.ap-sidebar,.site-drawer){background:linear-gradient(160deg,#123e32,#0c2a31);color:#e7edcf;border-color:#d4d19a40}
.tbh-home #topbet-root .site-drawer :is(.brand,.drawer-title,.drawer-section,.drawer-link,.drawer-account,.drawer-foot){color:#e5ebd5}
.tbh-home #topbet-root .site-drawer .brand span{color:#b7de51}
.tbh-home #topbet-root .site-drawer :is(.drawer-account,.drawer-logout button){background:#e0ecc812;color:#eff2da;border-color:#d3ddab35}
.tbh-home #topbet-root .site-drawer .drawer-link.active{background:#d6e3ad16;color:#f0dc9d}
.tbh-home #topbet-root :is(.tabs,.profile-tabs,.ap-nav,.aff-admin-tabs,.tslots-tabs){border-color:#ced8a93a}
.tbh-home #topbet-root :is(.tabs a,.tab,.profile-tabs a,.ap-nav a,.tslots-tabs button,.rs-toolbar a){background:#dbe8be0b;color:#d7e4cb;border-color:#c8d89b40}
.tbh-home #topbet-root :is(.tabs a.active,.tab.active,.profile-tabs a.active,.ap-nav a.active,.tslots-tabs button.active){background:linear-gradient(130deg,#ede7ba,#bdcf7d);color:#1b3c29;border-color:#dfd495}
.tbh-home #topbet-root :is(.tslots-section-head h2,.tslots-section-head h3,.pg-body h2,.pm-item h3){color:#fff0d3}
.tbh-home #topbet-root :is(.tslots-meta,.tslots-description,.pg-expiry,.pm-kicker,.pg-label,.ap-eyebrow,.aff-kicker,.eyebrow){color:#c9d8aa}
.tbh-home #topbet-root :is(.tslots-card,.tslots-section,.pm-item){border-color:#d2d7ad38}
.tbh-home #topbet-root :is(.ap-main,.cash-page,.aff-rs,.profile-page,.promo-manager,.main) :is(label,.field,.pm-field){color:#d6e4ce}
.tbh-home #topbet-root :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=submit]),textarea,select){background:var(--tb-field);color:#173b2c;border:1px solid #c5d6b5;caret-color:#235a31}
.tbh-home #topbet-root :is(input,textarea)::placeholder{color:#647b63;opacity:1}
.tbh-home #topbet-root :is(input[type=checkbox],input[type=radio]){accent-color:#a5cc41}
.tbh-home #topbet-root :is(th,td,.ap-list>div,.profile-activity>div,.cash-history>div){border-color:#c6d7ac30}
.tbh-home #topbet-root th{color:#c8d9b4;background:#cfe5b309}
.tbh-home #topbet-root td{color:#e4ead6}
.tbh-home #topbet-root :is(.ap-ref,.ap-pre,code,pre){background:#041f2440;color:#dbdfb9;border-color:#b7c9893b}
.tbh-home #topbet-root :is(.button:not(.danger):not(.ghost),.ap-primary-link,.pm-button,.pg-cta){background:linear-gradient(135deg,#e1edac,#a0c646);color:#193b26;border-color:#d5df9f}
.tbh-home #topbet-root :is(.ghost,.ap-menu-toggle,.ap-filter button,.pm-filter button){background:#cbe0a315;color:#ece6b8;border-color:#d5db9d44}
.tbh-home #topbet-root :is(.form-error,.error,.ap-error){background:#ffe9dd;color:#913820;border-color:#ecb391}
.tbh-home #topbet-root :is(.notice,.ap-notice,.rs-alert){background:#dbe8b5;color:#2a4c2b;border-color:#adc987}
.tbh-home .tbh-relief-icon,.tbh-admin .tbh-relief-icon{display:inline-block;object-fit:contain;flex:none;vertical-align:middle;width:30px;height:30px}
/* Administration: same palette, fully independent of the public drawer. */
.tbh-admin body#topbet-admin{background:radial-gradient(ellipse at 10% 0,#24573b3b,transparent 60%),linear-gradient(140deg,#072e2a,#0b2632)!important;color:#eaf0d8}
.tbh-admin #topbet-admin .admin-topbar{background:linear-gradient(110deg,#143c32,#0b3036);border-color:#dbd4a13b;box-shadow:0 5px 25px #001b252b;color:#f7edce}
.tbh-admin #topbet-admin .admin-topbar :is(strong,span,button,a){color:#eee2b6}
.tbh-admin #topbet-admin .admin-navigation{background:linear-gradient(170deg,#12392e,#092832);border-color:#dbd4a13b;color:#dbe7cd}
.tbh-admin #topbet-admin :is(.admin-nav-brand,.admin-nav-account){border-color:#d6d3a53b}
.tbh-admin #topbet-admin .admin-nav-brand .brand{color:#fff1d1}.tbh-admin #topbet-admin .admin-nav-brand .brand span{color:#b8dc49}
.tbh-admin #topbet-admin :is(.admin-nav-section,.admin-nav-brand small,.admin-nav-account small){color:#c1d2ad}
.tbh-admin #topbet-admin .admin-nav-link{color:#dce6cf}.tbh-admin #topbet-admin .admin-nav-link:is(.active,:hover){background:#d6e2af15;color:#f6e4ab}
.tbh-admin #topbet-admin .admin-nav-account button{background:#b3cd8a13;color:#e9e5b9;border:1px solid #d1d7a234}
.tbh-admin #topbet-admin .admin-nav-avatar{background:linear-gradient(130deg,#eef0b7,#b4d35f);color:#25442b}
.tbh-admin #topbet-admin #admin-content{color:#edf0d9}
.tbh-admin #topbet-admin #admin-content :is(.content-card,.cash-card,.ap-card,.aff-card,.pm-card,.pm-stats>div,.fb-card,.fb-counters>article,.account-card,.profile-card,.admin-card,.stat-card,.stats>div,.stat,.summary-card){background:linear-gradient(135deg,#18463a,#10333a);color:#edf0d9;border:1px solid #d6d6a72e;box-shadow:0 9px 26px #001c2525}
.tbh-admin #topbet-admin #admin-content :is(h1,h2,h3,h4){color:#fff0ce;font-weight:800}
.tbh-admin #topbet-admin #admin-content :is(p,.small,.muted,.pm-muted,.ap-muted,.fb-muted,.fb-limit){color:#bed0bb}
.tbh-admin #topbet-admin #admin-content :is(.tab,.tabs a,.fb-tabs a,.ap-nav a,.pm-filter button){background:#dce6be0b;color:#dfe8cb;border-color:#cad59e40}
.tbh-admin #topbet-admin #admin-content :is(.tab.active,.tabs a.active,.fb-tabs a.active){background:linear-gradient(130deg,#e9e3b2,#bfcf7a);color:#193b28;border-color:#e4d99f}
.tbh-admin #topbet-admin #admin-content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=submit]),textarea,select){background:#eff3e5;color:#19392a;border:1px solid #ccdab8;caret-color:#264f2a}
.tbh-admin #topbet-admin #admin-content :is(input,textarea)::placeholder{color:#5d735e;opacity:1}
.tbh-admin #topbet-admin #admin-content :is(label,.field,.pm-field,.fb-form>label){color:#dce6cb}
.tbh-admin #topbet-admin #admin-content :is(th,td){border-color:#c6d7ac30;color:#e6ecd7}
.tbh-admin #topbet-admin #admin-content th{background:#d0e4b00b;color:#c8d7ae}
.tbh-admin #topbet-admin #admin-content :is(a:not(.button),summary){color:#e9d89e}
.tbh-admin #topbet-admin #admin-content :is(.button:not(.danger):not(.ghost),button[type=submit]:not(.danger),.fb-action,.pm-button){background:linear-gradient(130deg,#e1ecab,#a2c84a);color:#193b26;border-color:#d6df9e;font-weight:800}
.tbh-admin #topbet-admin #admin-content :is(pre,code,.ap-pre){background:#041d244d;color:#d7e4c2;border-color:#c7d09a30}
.tbh-admin #topbet-admin #admin-content :is(.notice,.fb-notice){background:#dbe7b2;color:#254a2b;border-color:#b6ce86}
.tbh-admin #topbet-admin #admin-content :is(.form-error,.error,.fb-error){background:#ffe5d7;color:#8a321e;border-color:#e4b298}
.tbh-admin #topbet-admin .admin-shell-footer{color:#acbfab}
/* Standalone game chrome: keep each game's scene, reels, animation and bet panels. */
.tbh-game-theme body{background:radial-gradient(ellipse at 8% 0,#194b3344,transparent 60%),linear-gradient(150deg,#062b27,#092330);color:#eff1da}
.tbh-game-theme :is(.tf-header,.rr-header,.jt-header,.tr-header,.mr-header,.od-header,.av-header,.fruit-app>.topbar,.dg-app>.topbar,.rf-app>.topbar,.at-app>.topbar){background:linear-gradient(110deg,#123f31,#0a2d35);border-color:#dccd8e52;box-shadow:0 5px 20px #001b242b}
.tbh-game-theme :is(.tf-brand,.rr-brand,.jt-brand,.tr-brand,.mr-brand,.od-brand,.av-brand){color:#fff1cb}
.tbh-game-theme :is(.tf-brand,.rr-brand,.jt-brand,.tr-brand,.mr-brand,.od-brand,.av-brand) span{color:#c2dd6a}
.tbh-game-theme :is(.tf-back,.rr-back,.jt-back,.tr-back,.mr-back,.od-back,.av-back){color:#e5d9ac}
.tbh-game-theme :is(.tf-wallet,.rr-wallet,.jt-wallet,.tr-wallet,.mr-wallet,.od-wallet,.av-wallet){border-color:#dbd49a4d;background:#cce5a310;color:#e8edce}
.tbh-game-theme :is(.fruit-app,.dg-app,.rf-app,.at-app) .topbar>a{color:#f5e3b3}
.tbh-game-theme :is(.fruit-app,.dg-app,.rf-app,.at-app) .wallet :is(strong,small){color:#eee6ba}
.tbh-game-theme :is(.fruit-app,.dg-app,.rf-app,.at-app) .icon-btn{background:#cfe3a80e;color:#e8dfa9;border-color:#d3d49a42}
/* Printable receipts remain high contrast when printed or exported. */
.tbh-receipt body{background:#edf1e4;color:#1c3b2a}.tbh-receipt header{border-color:#b6c683}
@media print{html.tb-premium body,html.tb-premium #topbet-root,html.tb-premium #topbet-admin{background:#fff!important;color:#111!important}html.tb-premium :is(.content-card,.cash-card,.ap-card,.aff-card,.pm-card,.profile-card,table,th,td,input,textarea,select){background:white!important;color:#111!important;box-shadow:none!important}html.tb-premium :is(h1,h2,h3,h4,p,small,a,label,strong){color:#111!important}html.tb-premium :is(.mobile-nav,.sidebar,.admin-navigation,.site-drawer){display:none!important}}
.tbh-home #topbet-root :is(.form-card,.profile-summary,.ap-stats>section,.aff-stats>section){background:linear-gradient(135deg,#19473b,#10343a);color:#edf0da;border:1px solid #d6d6a72e;box-shadow:0 9px 26px #001c2525}
.tbh-home #topbet-root .form-card :is(h1,h2,h3){color:#fff0ce}.tbh-home #topbet-root .form-card :is(p,.muted,.small){color:#c4d4bd}
.tbh-home #topbet-root .profile-summary :is(strong,span,p){color:#d7e3c9}
.tbh-home #topbet-root .fb-slip :is(label,p,small,.fb-limit){color:#36563b}
.tbh-admin #topbet-admin #admin-content :is(.metric,.admin-account-item,.admin-filter-card,.admin-confirm-card){background:linear-gradient(135deg,#19473b,#10343a);color:#edf0da;border-color:#d6d6a72e}
.tbh-admin #topbet-admin #admin-content .metric :is(strong,span){color:#e8eac6}

.tbh-home body.tb-standalone :is(h1,h2,h3,h4){color:#fff0ce}.tbh-home body.tb-standalone main{background:linear-gradient(135deg,#19473b,#10343a);border-color:#d6d6a72e;color:#edf0d9}.tbh-home body.tb-standalone a{color:#e7d699}.tbh-home body.tb-standalone :is(input,textarea,select){background:#eff4e7;color:#173b2c;border-color:#c5d6b5}
