.player-dialog {
  width: min(calc(100% - 32px), 448px);
  max-height: min(78dvh, 760px);
  margin: auto;
  padding: 0;
  border: 1px solid #54443a;
  border-radius: 15px;
  background: #211b16;
  color: #f2e6d5;
}

.player-dialog::backdrop { background: #000a; }
.player-dialog > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #fff2;
  background: #29201a;
}

.player-dialog h2 { font-size: 18px; }
.player-dialog header button { width: 36px; height: 36px; font-size: 24px; }
.player-dialog-content { padding: 15px 18px 20px; }
.player-notice + .player-notice { margin-top: 16px; padding-top: 16px; border-top: 1px solid #fff2; }
.player-notice h3 { margin-bottom: 5px; font-size: 15px; }
.player-notice p { white-space: pre-wrap; overflow-wrap: anywhere; }
.player-notice time { display: inline-block; margin-top: 4px; font-size: 12px; color: #ab9480; }
.player-muted { padding: 8px 0; color: #bca892; }
.player-game { background: linear-gradient(135deg, #4b3a2b, #221b15); }
.player-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.player-game-grid > .player-muted { grid-column: 1 / -1; }
.player-game-grid .player-game { width: 100%; }
.announcement > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player-finance-form .deposit-trc-title { justify-content: flex-start; margin: 0 0 12px; }
.player-finance-form button:disabled { opacity: .52; cursor: not-allowed; }
.player-finance-form [role="status"] { overflow-wrap: anywhere; }
.player-finance-form [data-tone="error"] { color: #ffc1aa; }
.player-finance-note,
.player-finance-record-status { color: #d5c0a3; line-height: 1.5; }
.player-finance-record-status { padding: 12px; }
.player-finance-order-status { color: #e3c48c; }
.player-finance-order-status[data-status="1"] { color: #9ed4ae; }
.player-finance-order-status[data-status="2"] { color: #ffc1aa; }

.player-draw-entry {
  display: grid;
  grid-template-columns: 48px 1fr 10px;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 10px 0 0;
  padding: 9px 14px;
  border: 1px solid #604c38;
  border-radius: 12px;
  background: linear-gradient(130deg, #3d2d21, #261e17);
  color: #f2e6d5;
  text-align: left;
}

.player-draw-entry img { width: 48px; height: 42px; object-fit: contain; }
.player-draw-entry strong, .player-draw-entry small { display: block; }
.player-draw-entry small { margin-top: 3px; color: #c9ad8b; }
.player-draw-content { padding-bottom: 24px; }
.player-draw-content .withdraw-wallet { margin: 10px 0; }
#player-draw-balance { overflow-wrap: anywhere; }
.player-draw-round { display: flex; justify-content: space-between; margin-bottom: 10px; color: #d5c0a3; }
.player-draw-round strong { color: #f1d7a8; }
.player-draw-content fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.player-draw-content legend { margin-bottom: 8px; }
.player-draw-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.player-draw-picks label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 1px solid #61513e;
  border-radius: 9px;
  cursor: pointer;
}
.player-draw-picks input { accent-color: #d3a979; }
.player-draw-picks label:has(:checked) { border-color: #d3a979; background: #3d2d21; color: #f4d7af; }
.player-draw-content fieldset:disabled .player-draw-picks { opacity: .56; }
.player-draw-history { margin-top: 16px; }
.player-draw-history > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.player-draw-history h2 { font-size: 17px; }
.player-draw-history small { color: #cab39a; }
#player-draw-reload { padding: 6px 8px; border: 1px solid #604c38; border-radius: 8px; color: #e8c79e; }
#player-draw-history-status:empty { display: none; }
.player-draw-order {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #513e31;
  border-radius: 10px;
  background: #2b211a;
  overflow-wrap: anywhere;
}
.player-draw-order-heading, .player-draw-order-money, .player-draw-order-number { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.player-draw-order-status { color: #ecc591; }
.player-draw-order-status[data-order-status="won"] { color: #9ed4ae; }
.player-draw-order-status[data-order-status="lost"] { color: #f0b19c; }
.player-draw-order-number { color: #cab39a; font-size: 12px; }

.report-date-range { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: #ddc6a5; font-size: 12px; }
.report-date-range label { display: flex; flex: 1 1 120px; flex-wrap: wrap; align-items: center; gap: 6px; }
.report-date-range input {
  min-width: 0;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid #624d3b;
  border-radius: 8px;
  background: #251d17;
  color: #fff4e6;
  color-scheme: dark;
  font-size: 13px;
}
.report-timezone { color: #d5bea0; font-size: 12px; line-height: 1.5; }
.report-more {
  justify-self: center;
  min-height: 38px;
  padding: 6px 16px;
  border: 1px solid #604c38;
  border-radius: 8px;
  color: #e9cb9f;
}
.report-more:disabled { opacity: .6; }
#daily-profit-data h2 { color: #dfc89d; font-size: 14px; font-weight: 500; }
#daily-profit-data .report-timezone { margin: 4px 0 10px; }
#daily-profit-data dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#daily-profit-load-status { margin-top: 12px; }
.transaction-row .transaction-amount { overflow-wrap: anywhere; }
.bet-record-values .is-win { color: #9ed4ae; }
.bet-record-values .is-loss { color: #f0b19c; }

.player-income-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.player-income-toolbar > button { margin-inline-start: auto; }
.player-income-toolbar .income-note,
.player-income-toolbar .income-records-note { font-size: 12px; text-align: start; }
.player-income-status { color: #e3c9a6; font-size: 13px; overflow-wrap: anywhere; }
.player-income-toolbar .income-action:disabled,
#confirm-income-claim:disabled { opacity: .6; cursor: default; }
#income .income-amount,
#income .income-today dd,
#income-claim-amount,
#income-records-list .income-record-value { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

#promotion [data-invite-stat],
#promotion [data-promotion-stat],
#member-metrics dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#promotion-invite-code, #promotion-web-url, #promotion-share-link, #promotion-link-detail-url {
  overflow-wrap: anywhere;
  user-select: text;
}
#promotion-invitation .promotion-link-value span { white-space: normal; }
#promotion-create-code:disabled, #promotion :is([data-promotion-copy], #open-promotion-web, #open-promotion-share):disabled { opacity: .55; }
#promotion-member-status { margin: 14px 12px 0; }
#promotion-team-more { display: block; margin: 10px auto; }
#register-invite-note { margin-top: 4px; color: #ffc1aa; }

html:not([data-player-build="production"]) .production-only { display: none !important; }

html[data-player-build="production"] :is(
  #open-home-deposit, #open-home-withdraw, #open-deposit, #open-withdraw, #open-task-center, #open-player-draw,
  #open-account-management, #open-pay-pin, #open-vip, #open-bet-records, #open-daily-profit,
  .wallet-recycle, .wallet-actions, .profile-badge, .vip-watermark, .account-bar .avatar img,
  #income [data-income-kind="返水"], #income .income-agency, #home-history,
  [data-hall-deposit], [data-settings-action="bindings"],
  #transaction-records-page [data-transaction-type="deposit"], #transaction-records-page [data-transaction-type="withdraw"],
  #transaction-records-page [data-transaction-type="game"], #transaction-records-page [data-transaction-type="other"],
  [data-auth-destination="官方"], a[href="#/forgot-password"]
) { display: none !important; }

html[data-player-build="production"] :is(button.game-tile, button.game-hall-game),
html[data-player-build="production"] :is(.game-tile, .game-hall-game):disabled { cursor: default; }

.activity-status[data-status="preview"], .activity-detail-intro .activity-detail-status { background: #3b3124; color: #e5cc98; }
.activity-detail-intro .activity-detail-status { display: inline-block; padding: 3px 8px; border-radius: 6px; }
.activity-status[data-status="ended"] { background: #2d2c2c; color: #b4aaa0; }
.activity-detail-copy, .player-notice p, .preview-copy { white-space: pre-line; }
a.official-action { text-decoration: none; }
html[data-player-build="production"] :is(.home-footer-links a, a.crypto-guide-tile, .crypto-guide-row a, .profile-faq-hero a) {
  color: inherit;
  text-decoration: none;
}
html[data-player-build="production"] :is(.site-footer small, .profile-about-card p, .profile-faq-list details p) { white-space: pre-line; }
html[data-player-build="production"] .profile-favorite-history [data-favorite-item] { position: relative; }
