/* BBR / GOGO only. Shared modern fronts retain their own cashier palette. */
body.legacy-player:is([data-legacy-brand="bbr"],[data-legacy-brand="gogo"]):is([data-legacy-page="deposit"],[data-legacy-page="giftcard-deposit"],[data-legacy-page="jeju-deposit"],[data-legacy-page="usdt-deposit"],[data-legacy-page="withdraw"],[data-legacy-page="usdt-withdraw"],[data-legacy-page="bets"],[data-legacy-page="payback"],[data-legacy-page="points"]) #legacy-main{
  width:100%;max-width:1200px;margin-inline:auto;
}
body.legacy-player:is([data-legacy-brand="bbr"],[data-legacy-brand="gogo"]) #portal .bet-card-amounts:has(>div:nth-child(2):last-child){background:transparent}
body.legacy-player #portal .account-tabs.legacy-cashier-tabs{display:flex;flex-wrap:wrap;gap:8px;width:100%;max-width:none;box-sizing:border-box;padding:0;margin:14px 0 18px}
body.legacy-player #portal .account-tabs.legacy-cashier-tabs a{display:flex;flex:1 1 125px;align-items:center;justify-content:center;min-width:0;max-width:none;height:auto;min-height:44px;padding:10px 14px;box-sizing:border-box;white-space:nowrap;line-height:1.35;border:1px solid #66717f!important;border-radius:7px!important;background:#252b34!important;color:#f7f9fd!important;box-shadow:none!important;text-shadow:none!important;font-family:inherit;font-size:14px;font-weight:700;text-decoration:none}
body.legacy-player #portal .account-tabs.legacy-cashier-tabs a:is(:hover,:focus-visible){background:#35414f!important;border-color:var(--legacy-accent)!important;color:#fff!important;outline:2px solid transparent}
body.legacy-player #portal .account-tabs.legacy-cashier-tabs a:is(.on,.on:hover,.on:focus-visible,.on:active){background:var(--legacy-accent)!important;border-color:var(--legacy-border)!important;color:#fff!important}
body.legacy-player .legacy-user-actions:has([data-money-modal]) [data-refresh-money]{flex:1;min-width:0}
body.legacy-player[data-money-transfer=off] .legacy-user-actions{grid-template-columns:1fr}
body.legacy-player .gc-guide-backdrop{--gc-guide-soft:#1b2028;--gc-guide-scrim:rgba(0,0,0,.78);--gc-guide-button:var(--legacy-accent);--gc-guide-button-text:#fff;--gc-guide-tip-bg:#342b1b;--gc-guide-tip-text:#ffe0a0;--card:#242c36;--line:#505e70;--text:#f1f4fa;--deep:var(--legacy-border);--accent:var(--legacy-accent);--accent-text:#fff}
body.legacy-player .gc-guide{width:min(700px,100%);border:1px solid var(--legacy-border);border-radius:12px;background:#1b2028;color:#f1f4fa}
body.legacy-player .gc-guide-top{background:#252c36;border-bottom:1px solid #505e70;padding:16px}
body.legacy-player .gc-guide-top h3{color:#fff;font-size:17px;line-height:1.4}
body.legacy-player .gc-guide-body{background:#171c23;padding:18px}
body.legacy-player .gc-guide :is(.gc-guide-intro,.gc-guide-step){background:#242c36;border-color:#505e70;color:#eef3fa}
body.legacy-player .gc-guide :is(p,h4){color:#eef3fa}
body.legacy-player .gc-guide :is(.gc-guide-to,.gc-guide-step p b,.gc-guide-part){color:var(--legacy-border)}
body.legacy-player .gc-guide .gc-guide-flow a{background:#303c4b;border-color:#667a91;color:#fff}
body.legacy-player .gc-guide .gc-guide-flow a:is(:hover,:focus-visible){background:#3d5067;color:#fff}
body.legacy-player .gc-guide .gc-guide-flow small{color:#d8e2f0}
body.legacy-player .gc-guide :is(.gc-guide-num,.gc-guide-part span){background:var(--legacy-accent);color:#fff}
body.legacy-player .gc-guide :is(.gc-guide-top button,.gc-guide-close){background:var(--legacy-accent);color:#fff;border:1px solid var(--legacy-border);box-shadow:none}
body.legacy-player .gc-guide .gc-guide-tip{background:#342b1b;color:#ffe0a0}
body.legacy-player .gc-guide .gc-guide-tip b{color:#fff0b8}
body.legacy-player .gc-guide .gc-guide-done{background:#243c34;border:1px solid #729f8b;color:#e8fff1}
body.legacy-player .lsp-bonus-reasons{margin-top:8px;padding:9px 10px;border:1px solid #8c6543;border-radius:5px;background:#30261e;color:#ffdfb4;font-size:12px;line-height:1.55}
body.legacy-player .lsp-bonus-reasons p{margin:0 0 5px}
body.legacy-player .lsp-bonus-reasons ul{margin:0;padding-left:16px}
body.legacy-player .lsp-bonus-reasons li{overflow-wrap:anywhere}
body.legacy-player .lsp-bonus-reasons b{color:#fff1bc;white-space:nowrap}
@media(max-width:620px){body.legacy-player #portal .account-tabs.legacy-cashier-tabs a{flex-basis:calc(50% - 8px);font-size:13px;padding:10px 7px}body.legacy-player .gc-guide-body{padding:12px}body.legacy-player .gc-guide-top{padding:12px}body.legacy-player .gc-guide-top h3{font-size:15px}}

/* Notices remain above guide dialogs and never capture game taps. */
body.legacy-player .legacy-toasts{z-index:20000}

/* Keep the cash amount presets across the full form on both copied fronts. */
body.legacy-player:is([data-legacy-brand=bbr],[data-legacy-brand=gogo]) #portal .deposit-card .amount-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;box-sizing:border-box;width:100%;max-width:none;margin:12px 0 0;padding:0}
body.legacy-player:is([data-legacy-brand=bbr],[data-legacy-brand=gogo]) #portal .deposit-card .amount-buttons button{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 6px;text-align:center}
@media(max-width:760px){
  body.legacy-player:is([data-legacy-brand=bbr],[data-legacy-brand=gogo]) #portal .deposit-card .deposit-info dl{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch;align-items:stretch;gap:8px;min-width:0;margin:0;padding:14px 0;text-align:left}
  body.legacy-player:is([data-legacy-brand=bbr],[data-legacy-brand=gogo]) #portal .deposit-card .deposit-info :is(dt,dd){box-sizing:border-box;width:100%;min-width:0;margin:0;text-align:left}
  body.legacy-player:is([data-legacy-brand=bbr],[data-legacy-brand=gogo]) #portal .deposit-card :is(.password-box,.password-box input,.amount-input){box-sizing:border-box;width:100%;max-width:none;min-width:0;margin-left:0;margin-right:0}
  body.legacy-player:is([data-legacy-brand=bbr],[data-legacy-brand=gogo]) #portal .deposit-card .password-box input{min-height:44px}
  body.legacy-player:is([data-legacy-brand=bbr],[data-legacy-brand=gogo]) #portal .deposit-card .gc-hint{display:block;margin-top:6px;text-align:left;line-height:1.5}
  body.legacy-player:is([data-legacy-brand=bbr],[data-legacy-brand=gogo]) #portal .deposit-card .deposit-label{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:stretch;text-align:left}
  body.legacy-player:is([data-legacy-brand=bbr],[data-legacy-brand=gogo]) #portal .deposit-card .gc-fields{min-width:0}
}
@media(max-width:620px){body.legacy-player:is([data-legacy-brand=bbr],[data-legacy-brand=gogo]) #portal .deposit-card .amount-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}
