/* Shared player theme. Keep selectors scoped so standalone/admin pages remain isolated. */
@import url('./fonts/noto-sans-sc-5.3.1/index.css');
:root.bh-refined-theme {
  --font:'Noto Sans SC Variable',-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  --bg:#14171c;--panel:#20242b;--text:#f2f0eb;--muted:#969da7;
  --gold:#dfb469;--gold-light:#f2d49f;--border:#ffffff14;--border-soft:#ffffff0e;
  background:var(--bg);
}
.bh-refined-theme .bh-surface {font-family:var(--font);font-size:14px;line-height:1.6;font-weight:400;color:var(--text);text-rendering:optimizeLegibility;}
.bh-refined-theme .bh-surface,.bh-refined-theme .bh-surface[data-variant="mobile"],.bh-refined-theme [data-variant="mobile"] .mobile-shell {
  background:#14171c; background-image:radial-gradient(ellipse at 10% 0,#a5752510,transparent 65%);background-repeat:no-repeat;background-size:100% 700px;
}
.bh-refined-theme :is(button,input,select,textarea) {font-family:var(--font);letter-spacing:0;}
.bh-refined-theme :is(h1,h2,h3,h4) {font-family:var(--font);font-weight:600;letter-spacing:0;text-shadow:none;}
.bh-refined-theme .site-header {background:#191c21;border-bottom:1px solid #ffffff0b;box-shadow:none;}
.bh-refined-theme .brand {gap:10px;min-width:0;}
.bh-refined-theme .brand-crown {width:38px;height:40px;filter:none;}
.bh-refined-theme .brand-crown img {object-fit:contain;}
.bh-refined-theme .brand strong {font-family:var(--font);font-size:28px;font-weight:650;letter-spacing:-.8px;line-height:1.15;color:#f2d49f;}
.bh-refined-theme .brand small {font-family:var(--font);font-size:11px;letter-spacing:1.5px;line-height:1.5;color:#c4b99f;white-space:nowrap;}
.bh-refined-theme :is(.main-nav a,.main-nav button) {font-size:14px;font-weight:500;color:#a9aeb6;gap:7px;}
.bh-refined-theme .main-nav .is-active {color:var(--gold-light);}
.bh-refined-theme .main-nav a.is-active::after {height:2px;background:var(--gold);box-shadow:none;}
.bh-refined-theme :is(.panel,.surface,.profile-banner,.wallet-panel,.account-shortcuts,.game-card,.lobby-card,.offer-card,.account-wallet,.app-download) {
  background:#20242b;background-image:none;border:1px solid #ffffff10;box-shadow:none;border-radius:14px;
}
.bh-refined-theme :is(.offer-card.theme-green,.offer-card.theme-purple) {background:#20242b!important;}
.bh-refined-theme :is(.gold-button,.portal-main .gold-button,.search-bar .gold-button,.bh-profile .gold-button) {
  min-height:44px;padding:10px 18px;border-radius:10px;border:1px solid transparent;
  background:#dfb469;color:#241c0f;box-shadow:none;text-shadow:none;font-size:14px;font-weight:600;letter-spacing:0;line-height:1.4;
}
.bh-refined-theme :is(.quiet-button,.outline-button,.header-login,.quick-actions button,.quick-actions a,.offer-card-footer button) {
  min-height:44px;padding:10px 16px;border-radius:10px;border:1px solid #ffffff20;
  background:#ffffff04;color:#e1e2e5;box-shadow:none;text-shadow:none;font-size:14px;font-weight:500;letter-spacing:0;line-height:1.4;
}
.bh-refined-theme :is(button,a,input,select):focus-visible {outline:2px solid #dfb469;outline-offset:3px;}
.bh-refined-theme :is(button:disabled,.unavailable) {opacity:.45;cursor:not-allowed;}
.bh-refined-theme :is(.hero,.carousel-slide) {border-color:#ffffff12;border-radius:14px;box-shadow:none;background:#1b222b;}
.bh-refined-theme .hero :is(h1,.hero-title) {font-family:var(--font);font-weight:650;text-shadow:none;letter-spacing:0;}
.bh-refined-theme :is(.section-eyebrow,.dialog-eyebrow,.english-label) {font-family:var(--font);font-style:normal;font-size:10px;font-weight:500;letter-spacing:1.2px;text-transform:uppercase;color:#8f98a5;}
.bh-refined-theme :is(.section-heading,.portal-heading),.bh-refined-theme [data-variant="mobile"] :is(.section-heading,.portal-heading) {border-bottom:0;background:none;padding-bottom:12px;}
.bh-refined-theme :is(.section-heading,.portal-heading)::after,.bh-refined-theme [data-variant="mobile"] :is(.section-heading,.portal-heading)::after {display:none;}
.bh-refined-theme .section-heading h2 {font-size:20px;font-weight:600;color:#f1efea;letter-spacing:0;gap:8px;}
.bh-refined-theme :is(.portal-heading h1,.page-title h1) {font-size:28px;font-weight:600;color:#f1efea;line-height:1.4;letter-spacing:-.4px;}
.bh-refined-theme :is(.text-button,.portal-heading>a) {font-family:var(--font);font-size:12px;color:#b9a989;letter-spacing:0;font-weight:400;}
.bh-refined-theme .welcome-bar :is(strong,span),.bh-refined-theme .announcement {font-size:12px;letter-spacing:0;}
.bh-refined-theme .balance-caption {font-size:12px;color:#b2b7bf;font-weight:400;}
.bh-refined-theme .sample-tag {border:0;background:#ffffff07;color:#9ba2ad;font-size:10px;border-radius:4px;padding:2px 5px;}
.bh-refined-theme #balance-value {font-family:var(--font);font-weight:550;letter-spacing:1px;color:#f0eee9;}
.bh-refined-theme #balance-value:not([data-balance-hidden="true"]) {font-size:28px;}
.bh-refined-theme .bh-home-shortcuts,.bh-refined-theme .bh-surface[data-variant="mobile"] #home-shortcuts {gap:10px;margin-block:16px 24px;}
.bh-refined-theme .bh-home-shortcuts button,.bh-refined-theme .bh-surface[data-variant="mobile"] #home-shortcuts > button {
  height:74px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
  background:#20242b;border:1px solid #ffffff0c;border-radius:12px;padding:10px 2px;box-shadow:none;font-size:12px;
}
.bh-refined-theme .bh-home-shortcuts .bh-shortcut-icon {position:static;inset:auto;display:flex;align-items:center;justify-content:center;width:26px;height:26px;}
.bh-refined-theme .bh-home-shortcuts .bh-shortcut-icon > [data-icon],.bh-refined-theme .bh-surface[data-variant="mobile"] #home-shortcuts .bh-shortcut-icon > [data-icon] {width:26px;height:26px;display:block;padding:0;}
.bh-refined-theme .bh-home-shortcuts .bh-shortcut-icon img {width:100%;height:100%;object-fit:contain;}
.bh-refined-theme .bh-home-shortcuts button > span:last-child {padding:0;background:none;text-shadow:none;color:#d9dce1;font-weight:500;line-height:1.4;}
.bh-refined-theme .categories {border:0;background:transparent;padding-inline:0;box-shadow:none;}
.bh-refined-theme .category-art {border:1px solid #ffffff0d;border-radius:10px;background:#20242b;}
.bh-refined-theme .category-all .category-art {background:#28271f;color:#dfb469;}
.bh-refined-theme .category-label {font-family:var(--font);color:#a5aab3;font-size:12px;letter-spacing:0;font-weight:400;}
.bh-refined-theme .game-card,.bh-refined-theme .bh-surface .game-card,.bh-refined-theme .bh-surface #game-grid .game-card {background:#20242b;border-color:#ffffff0c;border-radius:14px;box-shadow:none;}
.bh-refined-theme .bh-surface .game-card .game-art {border-radius:13px 13px 0 0;box-shadow:none;}
.bh-refined-theme .bh-surface .game-card .game-meta h3 {font-family:var(--font);font-weight:500;color:#e6e8ec;font-size:13px;letter-spacing:0;line-height:1.6;}
.bh-refined-theme .favorite-button {background:#111722bb;border:1px solid #ffffff19;color:#d6c29f;box-shadow:none;}
.bh-refined-theme .favorite-button.is-saved {background:#514225;color:#f2cd8b;}
.bh-refined-theme .lobby-sidebar {border:0;background:#1c2027;border-radius:12px;padding:6px;}
.bh-refined-theme .lobby-sidebar > button {min-height:44px;border-radius:8px;border:0;background:transparent;color:#9fa7b3;font-size:13px;font-weight:500;}
.bh-refined-theme .lobby-sidebar > button.is-active {color:#edd3a4;background:#dfb46914;border:0;}
.bh-refined-theme .pill-tabs {border:0;gap:8px;}
.bh-refined-theme .pill-tabs button {min-height:44px;padding:9px 14px;border:1px solid #ffffff12;background:#20242b;color:#9fa7b3;border-radius:9px;font-size:13px;font-weight:500;box-shadow:none;}
.bh-refined-theme .pill-tabs button.is-active {color:#f0d4a1;border-color:#dfb46944;background:#dfb46910;box-shadow:none;}
.bh-refined-theme .search-field {min-height:46px;border:1px solid #ffffff14;border-radius:10px;background:#20242b;box-shadow:none;}
.bh-refined-theme .search-field [data-icon] {color:#8e97a4;}
.bh-refined-theme .portal-main .search-field input {background:transparent;border:0;box-shadow:none;padding-block:10px;font-size:14px;color:#e6e8ec;}
.bh-refined-theme .search-field:focus-within {border-color:#c9a363;box-shadow:0 0 0 3px #dfb46914;}
.bh-refined-theme :is(.account-form input,.account-form select,.bh-dialog input:not([type="checkbox"])) {min-height:46px;border:1px solid #ffffff20;border-radius:10px;background:#171b22;color:#e6e8ec;font-size:16px;}
.bh-refined-theme .account-form .has-error input {border-color:#e88d83;}
.bh-refined-theme :is(#site-dialog,.bh-dialog) {border:1px solid #ffffff18;border-radius:18px;background:#20242b;color:#eceef1;box-shadow:0 30px 90px #0007;}
.bh-refined-theme :is(.bh-dialog h2,#dialog-title) {color:#f2f0eb;font-weight:600;font-size:23px;}
.bh-refined-theme #site-dialog .dialog-header {background:#20242b;border-color:#ffffff12;box-shadow:0 -28px 0 #20242b;}
.bh-refined-theme .auth-tabs {border-color:#ffffff14;}
.bh-refined-theme .auth-tabs button {min-height:44px;font-size:14px;color:#9fa7b3;}
.bh-refined-theme .auth-tabs button.is-active {color:#e8c58d;border-color:#dfb469;}
.bh-refined-theme .bh-dialog .dialog-close {width:44px;height:44px;font-size:24px;color:#9fa7b3;}
.bh-refined-theme .bh-dialog .auth-note {color:#969da7;font-size:12px;}
.bh-refined-theme #authModal .platform-captcha-row {grid-template-columns:minmax(0,1fr) 122px 44px;}
.bh-refined-theme #authModal .platform-captcha-refresh {width:44px;min-height:44px;border:1px solid #ffffff20;background:#ffffff04;color:#e4bd7b;border-radius:10px;}
.bh-refined-theme #authModal .platform-captcha-image {border-color:#ffffff20;}
.bh-refined-theme .account-menu {padding:8px;border-radius:12px;}
.bh-refined-theme .account-menu>button {min-height:46px;font-size:13px;font-weight:500;border:0;color:#aab0bb;border-radius:8px;background:transparent;}
.bh-refined-theme .account-menu>button.is-active {background:#dfb46912;color:#ebc68c;border:0;}
.bh-refined-theme .account-menu [data-icon],.bh-refined-theme .profile-avatar [data-icon] {width:21px;height:21px;}
.bh-refined-theme .profile-avatar {background:#dfb46910;border:0;border-radius:14px;}
.bh-refined-theme .profile-info h2 {font-size:19px;line-height:1.6;}
.bh-refined-theme .profile-info p {font-size:12px;color:#969da7;}
.bh-refined-theme .account-content p {color:#aab0bb;font-size:14px;line-height:1.9;}
.bh-refined-theme .account-content h2 {font-size:18px;color:#efede8;}
.bh-refined-theme .activity-card {border:1px solid #ffffff13;border-radius:14px;background:#20242b;}
.bh-refined-theme .activity-copy {min-width:0;}
.bh-refined-theme [data-variant="desktop"] .activity-copy :is(h3,p) {overflow:hidden;text-overflow:ellipsis;}
.bh-refined-theme .activity-copy h3 {font-family:var(--font);font-size:18px;font-weight:600;letter-spacing:0;}
.bh-refined-theme .activity-copy :is(p,span) {font-size:12px;letter-spacing:0;color:#aeb5c0;}
.bh-refined-theme .bottom-nav {background:#191d25fa;border-top:1px solid #ffffff0f;box-shadow:0 -6px 28px #0002;}
.bh-refined-theme .bottom-nav :is(a,button) {font-family:var(--font);font-size:11px;font-weight:500;min-height:50px;gap:5px;color:#929aa7;}
.bh-refined-theme [data-variant="mobile"] .bottom-nav .is-active {background:transparent;color:#edc787;}
.bh-refined-theme .bottom-nav .is-active::before {display:none;}
.bh-refined-theme .bottom-nav [data-icon] {width:21px;height:21px;}
.bh-refined-theme .bottom-nav .is-active .custom-icon {opacity:1;}
.bh-refined-theme .site-footer {background:transparent;border-color:#ffffff0a;color:#737d8c;font-size:11px;}
/* Match the actual account panel specificity while preserving inline mounting rules. */
.bh-refined-theme body.bh-surface #platformModal {--dialog-text:#eceef1;--dialog-muted:#a4abb6;--dialog-gold:#e4bd7b;--dialog-line:#ffffff16;--dialog-field:#171b22;}
.bh-refined-theme body.bh-surface #platformModal:not(.bh-account-inline) :is(.platform-box,.platform-head,.platform-tabs) {background:#20242b;border-color:#ffffff14;box-shadow:none;}
.bh-refined-theme body.bh-surface #platformModal .platform-head>strong {font-size:18px;font-weight:600;color:#eceef1;letter-spacing:0;}
.bh-refined-theme body.bh-surface #platformModal .platform-submit {min-height:46px;background:#dfb469;color:#241c0f;border:1px solid transparent;border-radius:10px;box-shadow:none;font-size:14px;font-weight:600;}
.bh-refined-theme body.bh-surface #platformModal :is(.platform-tab,.platform-recipient-mode,.platform-order-check,.platform-correction-button,.platform-message-read) {min-height:44px;border:1px solid #ffffff1c;border-radius:9px;background:#ffffff04;color:#c2c7ce;box-shadow:none;font-size:13px;font-weight:500;}
.bh-refined-theme body.bh-surface #platformModal :is(.platform-tab.active,.platform-recipient-mode.active) {background:#dfb46916;border-color:#dfb46950;color:#e9c68e;}
.bh-refined-theme body.bh-surface #platformModal .platform-method {border-width:1px;border-radius:12px;}
.bh-refined-theme body.bh-surface #platformModal .platform-close {width:44px;height:44px;flex-basis:44px;border-color:#ffffff14;background:transparent;color:#b4bcc9;}
@media(hover:hover) and (pointer:fine){
 .bh-refined-theme :is(.gold-button,.portal-main .gold-button):hover{background:#ecc584;border-color:transparent;box-shadow:none;}
 .bh-refined-theme :is(.quiet-button,.outline-button,.quick-actions button,.quick-actions a,.header-login,.offer-card-footer button):hover{border-color:#c4a16470;background:#ffffff08;box-shadow:none;}
 .bh-refined-theme :is(.game-card,.lobby-card,.offer-card):hover{border-color:#dfb46955;box-shadow:0 8px 20px #0002;}
}
@media(max-width:600px){
 .bh-refined-theme [data-variant="mobile"] .site-header {min-height:82px;padding:14px 16px;padding-top:calc(14px + env(safe-area-inset-top));gap:10px;}
 .bh-refined-theme [data-variant="mobile"] .brand {gap:8px;}
 .bh-refined-theme [data-variant="mobile"] .brand-crown {width:30px;height:34px;}
 .bh-refined-theme [data-variant="mobile"] .brand strong {font-size:23px;letter-spacing:-.65px;}
 .bh-refined-theme [data-variant="mobile"] .brand small {font-size:10px;letter-spacing:.5px;}
 .bh-refined-theme .bh-surface .header-actions :is(.gold-button,.quiet-button) {min-height:44px;padding:9px 11px;font-size:12px;border-radius:9px;}
 .bh-refined-theme [data-variant="mobile"] .wallet-panel {padding:0;border-radius:14px;}
 .bh-refined-theme [data-variant="mobile"] .wallet-actions {gap:8px;}
 .bh-refined-theme [data-variant="mobile"] .wallet-actions button {min-height:44px;min-width:76px;padding:10px;font-size:13px;white-space:nowrap;flex-shrink:0;}
 .bh-refined-theme [data-variant="mobile"] .wallet-actions [data-icon] {width:16px;height:16px;}
 .bh-refined-theme [data-variant="mobile"] .section-heading h2 {font-size:19px;font-weight:600;letter-spacing:0;}
 .bh-refined-theme [data-variant="mobile"] .portal-heading h1 {font-size:24px;}
 .bh-refined-theme [data-variant="mobile"] .portal-main {padding-top:24px;}
 .bh-refined-theme [data-variant="mobile"] .portal-main .search-field input {font-size:16px;}
 .bh-refined-theme .bh-surface[data-variant="mobile"] #game-grid .game-meta h3,.bh-refined-theme .bh-surface[data-variant="mobile"] #bh-game-list .game-meta h3 {font-size:12px;font-weight:500;line-height:1.6;letter-spacing:0;}
 .bh-refined-theme [data-variant="mobile"] .game-meta {padding:9px 9px 11px;}
 .bh-refined-theme [data-variant="mobile"] .profile-banner {padding:16px;gap:10px;}
 .bh-refined-theme [data-variant="mobile"] .profile-banner>.gold-button {font-size:12px;padding:9px 10px;}
 .bh-refined-theme [data-variant="mobile"] .profile-info h2 {font-size:17px;}
 .bh-refined-theme [data-variant="mobile"] .activity-grid {grid-template-columns:minmax(0,1fr);}
 .bh-refined-theme [data-variant="mobile"] .activity-card {grid-column:1/-1;min-height:118px;align-items:center;padding:16px 12px 16px 43%;background:#20242b;border-color:#ffffff13;}
 .bh-refined-theme [data-variant="mobile"] .activity-art {left:0;top:0;bottom:auto;right:auto;width:40%;height:100%;opacity:1;mask-image:linear-gradient(to right,#000 80%,transparent);}
 .bh-refined-theme [data-variant="mobile"] .activity-copy h3 {font-size:17px;}
 .bh-refined-theme [data-variant="mobile"] .activity-copy>span {margin-top:10px;border:0;padding:0;color:#dfb469;}
}
@media(prefers-reduced-motion:reduce){.bh-refined-theme *{scroll-behavior:auto!important;}}
@media(max-width:360px){.bh-refined-theme #authModal .platform-captcha-row {grid-template-columns:minmax(0,1fr) 44px;}}
