/* Presentation previews only. Shared native card/ball/buttons live in ui.css. */
.stack-game-theme .modal-shell:has(.sb-finance-dialog) { align-items: safe center; padding-top: max(78px, calc(env(safe-area-inset-top) + 72px)); }
.stack-game-theme .modal-card.sb-finance-dialog { width: min(420px, calc(100vw - 32px)); }
.stack-game-theme .sb-finance-dialog .sb-form { gap: 14px; }
.stack-game-theme .sb-finance-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stack-game-theme .sb-finance-amounts .quick-amount-button { min-width: 0; min-height: 48px; padding: 12px 8px; border: 2px solid transparent; border-radius: 16px; background: var(--sb-stat); color: var(--sb-ink); font: 750 16px/1.3 var(--sb-font); box-shadow: none; }
.stack-game-theme .sb-finance-amounts .quick-amount-button.is-active { border-color: var(--sb-green-edge); background: #e5f8eb; color: var(--sb-green-edge); }
.stack-game-theme .sb-finance-field { display: grid; gap: 6px; text-align: left; }
.stack-game-theme .sb-finance-field > span { color: var(--sb-label); font: 750 11px/1.5 var(--sb-font); }
.stack-game-theme .sb-finance-field input:not([type=hidden]) { width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--sb-stat); color: var(--sb-ink); font: 600 16px/1.5 var(--sb-font); box-shadow: none; }
.stack-game-theme .sb-finance-field input::placeholder { color: var(--sb-label); opacity: 1; }
.stack-game-theme .sb-finance-field input:focus { outline: 2px solid #2f7ae5; outline-offset: 2px; }
.stack-game-theme .sb-withdraw-dialog .sb-finance-hint { color: var(--sb-muted); font: 500 11px/1.5 var(--sb-font); overflow-wrap: anywhere; }
.stack-game-theme .sb-withdraw-dialog .sb-finance-hint.is-error { color: #b92340; }
.stack-game-theme .sb-withdraw-dialog .sb-finance-hint[hidden] { display: none; }
.stack-game-theme .sb-withdraw-dialog .sb-finance-field select {
    width: 100%; min-width: 0; min-height: 52px; padding: 12px 40px 12px 14px;
    border: 0; border-radius: 16px; appearance: none;
    background: var(--sb-stat) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236a7589' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: var(--sb-ink); font: 600 16px/1.5 var(--sb-font);
    box-shadow: inset 0 0 0 1px rgba(170,187,211,.3), inset 0 1px 2px rgba(16,38,79,.025), 0 1px 0 rgba(255,255,255,.9);
    cursor: pointer;
}
.stack-game-theme .sb-withdraw-dialog .sb-finance-field select:invalid { color: var(--sb-label); }
.stack-game-theme .sb-withdraw-dialog .sb-finance-field select:focus { outline: 2px solid #2f7ae5; outline-offset: 2px; }
.stack-game-theme .sb-withdraw-dialog #stackWithdrawPixKey:disabled { cursor: not-allowed; }
.stack-game-theme .sb-pix-type-picker { position: relative; min-width: 0; }
.stack-game-theme .sb-pix-type-picker [hidden] { display: none !important; }
.stack-game-theme .sb-pix-type-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-width: 0; min-height: 52px; margin: 0; padding: 12px 14px;
    border: 0; border-radius: 16px; background: var(--sb-stat); color: var(--sb-ink);
    font: 600 16px/1.5 var(--sb-font); text-align: left; cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(170,187,211,.3), inset 0 1px 2px rgba(16,38,79,.025), 0 1px 0 rgba(255,255,255,.9);
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.stack-game-theme .sb-pix-type-trigger.is-placeholder { color: var(--sb-label); }
.stack-game-theme .sb-pix-type-trigger > span { min-width: 0; }
.stack-game-theme .sb-pix-type-trigger > svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--sb-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stack-game-theme .sb-pix-type-trigger[aria-expanded=true] > svg { transform: rotate(180deg); }
.stack-game-theme .sb-pix-type-trigger:focus-visible,
.stack-game-theme .sb-pix-type-trigger[aria-expanded=true] { outline: 2px solid #2f7ae5; outline-offset: 2px; }
.stack-game-theme .sb-pix-type-trigger[aria-invalid=true] { outline: 2px solid #c52a47; outline-offset: 2px; }
.stack-game-theme .sb-pix-type-menu {
    position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; left: 0;
    display: grid; gap: 4px; margin: 0; padding: 8px; list-style: none;
    overflow-y: auto; overscroll-behavior: contain; border: 1px solid #d9e3f2; border-radius: 18px;
    background: var(--sb-surface); color: var(--sb-ink);
    box-shadow: 0 12px 28px rgba(16,38,79,.18), inset 0 1px 0 #fff;
}
.stack-game-theme .sb-pix-type-menu.is-above { top: auto; bottom: calc(100% + 8px); }
.stack-game-theme .sb-pix-type-menu [role=option] {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-width: 0; min-height: 44px; margin: 0; padding: 9px 12px;
    border: 1px solid transparent; border-radius: 11px; color: #253c64;
    font: 600 16px/1.5 var(--sb-font); cursor: pointer; touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.stack-game-theme .sb-pix-type-menu [role=option].is-active { background: #e8eef8; border-color: #c5d3e8; }
.stack-game-theme .sb-pix-type-menu [role=option][aria-selected=true] { border-color: #a5dd7f; background: #e5f8eb; color: var(--sb-green-edge); }
.stack-game-theme .sb-pix-type-check { display: grid; flex: 0 0 20px; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sb-green-edge); color: #fff; font-size: 14px; font-weight: 800; visibility: hidden; }
.stack-game-theme [aria-selected=true] > .sb-pix-type-check { visibility: visible; }
@media (hover: hover) and (pointer: fine) {
    .stack-game-theme .sb-pix-type-menu [role=option]:hover { background: #e8eef8; }
    .stack-game-theme .sb-pix-type-menu [aria-selected=true]:hover { background: #d9f4d5; }
}
.stack-game-theme .sb-finance-limits { margin: -4px 0 4px; color: var(--sb-muted); font: 500 11px/1.5 var(--sb-font); }
.stack-game-theme .sb-finance-balance { display: grid; gap: 3px; margin-top: 18px; padding: 12px; border-radius: 16px; background: var(--sb-stat); }
.stack-game-theme .sb-finance-balance span { color: var(--sb-label); font: 750 10px/1.5 var(--sb-font); letter-spacing: 1px; text-transform: uppercase; }
.stack-game-theme .sb-finance-balance strong { color: var(--sb-ink); font: 850 24px/1.3 var(--sb-font); }
.stack-game-theme .sb-finance-form .sb-note { margin: 2px 0 0; }
.stack-game-theme .sb-finance-feedback { margin: 0; padding: 12px; border-radius: 12px; background: var(--sb-stat); color: #334159; font: 600 13px/1.5 var(--sb-font); }
.stack-game-theme .sb-finance-feedback.is-error { background: #ffeaf0; color: #b92340; }
.stack-game-theme .sb-wallet-finance-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.stack-game-theme .sb-wallet-finance-actions :is(.modal-primary,.modal-secondary) { margin: 0; padding: 12px 8px; font-size: 12px; letter-spacing: .7px; }
.stack-game-theme .modal-shell[data-modal="deposit-qr"]:has(.sb-pix-dialog) {
    height: 100dvh;
    min-height: 0;
    padding: max(78px, calc(env(safe-area-inset-top) + 72px)) 16px max(16px, calc(env(safe-area-inset-bottom) + 12px));
}
.stack-game-theme .modal-card.sb-pix-dialog { padding: 24px 20px 20px; }
.stack-game-theme .sb-pix-dialog .modal-copy h3 {
    margin-top: 10px;
    font-size: clamp(23px, 7vw, 30px);
    line-height: 1.1;
    letter-spacing: -.025em;
    white-space: nowrap;
    text-wrap: nowrap;
}
.stack-game-theme .sb-pix-dialog .modal-copy p { margin-top: 8px; line-height: 1.45; }
.stack-game-theme .sb-pix-dialog .home-payment-state { display: inline-flex; margin-top: 0; padding: 6px 12px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #fff9df, #ffe7a3); color: #8d5b00; font: 750 11px/1.5 var(--sb-font); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #f3d08a, 0 3px 0 #d9b35f, 0 6px 10px rgba(124, 82, 13, .1); }
.stack-game-theme .sb-pix-dialog .home-payment-state[data-state=success] { background: linear-gradient(180deg, #efffe1, #c8f8a5); color: var(--sb-green-edge); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #a5dd7f, 0 3px 0 #64ac41, 0 6px 10px rgba(57, 122, 23, .1); }
.stack-game-theme .sb-pix-dialog .home-payment-meta { display: block; margin: 14px 0; }
.stack-game-theme .sb-pix-dialog .home-payment-meta-item { display: grid; gap: 3px; padding: 10px; border: 0; border-radius: 19px; background: linear-gradient(180deg, #ffffff, #eaf0fa); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #d9e3f2, 0 4px 0 #c5d3e8, 0 7px 12px rgba(16, 38, 79, .08); }
.stack-game-theme .sb-pix-dialog .home-payment-meta-item span { color: var(--sb-label); font: 750 10px/1.5 var(--sb-font); text-transform: uppercase; letter-spacing: 1px; }
.stack-game-theme .sb-pix-dialog .home-payment-meta-item strong { color: #253c64; font: 850 26px/1.3 var(--sb-font); }
.stack-game-theme .sb-pix-dialog .home-qr-box { display: grid; place-items: center; width: min(224px, 100%); height: auto; aspect-ratio: 1; margin: 12px auto; padding: 12px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px #c5d3e8, 0 4px 0 #b5c6e2, 0 8px 14px rgba(16, 38, 79, .1); }
.stack-game-theme .sb-pix-dialog .home-qr-mount { width: 100% !important; height: 100% !important; min-width: 0; min-height: 0; }
.stack-game-theme .sb-pix-dialog .home-qr-mount :is(canvas, img, table) { width: 100% !important; height: 100% !important; object-fit: contain; }
.stack-game-theme .sb-pix-dialog .sb-pix-code { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; }
.stack-game-theme .sb-pix-code span { color: #526480; font: 800 11px/1.5 var(--sb-font); letter-spacing: .8px; text-transform: uppercase; }
.stack-game-theme .sb-pix-code textarea { width: 100%; min-width: 0; min-height: 48px; max-height: 48px; padding: 15px 14px; border: 0; border-radius: 16px; background: #e8eef8; color: #253c64; font: 500 11px/1.6 ui-monospace, monospace; overflow-x: auto; overflow-y: hidden; resize: none; box-shadow: inset 0 2px 4px rgba(16, 38, 79, .1), 0 1px 0 #fff; }
.stack-game-theme .sb-pix-dialog .sb-pix-code textarea:focus-visible { outline: 2px solid #2f7ae5; outline-offset: 3px; }
.stack-game-theme .sb-pix-dialog .modal-actions { margin: 12px 0 0; }
.stack-game-theme .sb-pix-dialog .modal-primary { font-size: 14px; letter-spacing: 1px; }
.stack-game-theme .sb-pix-dialog #homeCopyPixButton.is-copied { background: linear-gradient(180deg, #2874d8, #1756b4); color: #fff; box-shadow: 0 5px 0 #0d3b80, 0 12px 22px rgba(23, 86, 180, .24); }
/* Use the WebView's available height, keeping a readable QR and a scroll fallback. */
@media (max-height: 740px) {
    .stack-game-theme .modal-shell[data-modal="deposit-qr"]:has(.sb-pix-dialog) {
        padding-top: max(56px, calc(env(safe-area-inset-top) + 50px));
        padding-bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px));
    }
    .stack-game-theme .modal-card.sb-pix-dialog { padding: 20px 18px 16px; }
    .stack-game-theme .sb-pix-dialog .sb-ball-badge { height: 56px; margin: -50px auto 0; }
    .stack-game-theme .sb-pix-dialog .sb-ball-badge canvas { top: -44px; width: 84px; height: 101.5px; }
    .stack-game-theme .sb-pix-dialog .home-payment-state { min-height: 26px; margin: 0; padding: 4px 10px; font-size: 10px; }
    .stack-game-theme .sb-pix-dialog .modal-copy h3 { margin-top: 8px; font-size: clamp(23px, 7vw, 28px); }
    .stack-game-theme .sb-pix-dialog .modal-copy p { margin-top: 6px; font-size: 12px; line-height: 1.4; }
    .stack-game-theme .sb-pix-dialog .home-qr-box { width: min(100%, clamp(176px, calc(100dvh - 390px), 208px)); margin: 10px auto; }
    .stack-game-theme .sb-pix-dialog .sb-pix-code { gap: 4px; margin-top: 8px; }
    .stack-game-theme .sb-pix-dialog .sb-pix-code textarea { min-height: 42px; max-height: 42px; padding: 12px 14px; border-radius: 14px; }
    .stack-game-theme .sb-pix-dialog .modal-actions { margin-top: 10px; }
    .stack-game-theme .sb-pix-dialog #homeCopyPixButton { min-height: 46px; padding: 12px; font-size: 13px; }
}
@media (max-height: 560px) {
    .stack-game-theme .modal-card.sb-pix-dialog { padding: 20px 16px 10px; }
    .stack-game-theme .sb-pix-dialog .sb-ball-badge { height: 38px; }
    .stack-game-theme .sb-pix-dialog .sb-ball-badge canvas { top: -50px; width: 72px; height: 87px; }
    .stack-game-theme .sb-pix-dialog .home-payment-state { min-height: 24px; }
    .stack-game-theme .sb-pix-dialog .modal-copy h3 { margin-top: 6px; font-size: clamp(23px, 7vw, 26px); }
    .stack-game-theme .sb-pix-dialog .home-qr-box { margin: 6px auto; }
    .stack-game-theme .sb-pix-dialog .sb-pix-code { margin-top: 6px; }
    .stack-game-theme .sb-pix-dialog .sb-pix-code span { font-size: 10px; }
    .stack-game-theme .sb-pix-dialog .sb-pix-code textarea { min-height: 36px; max-height: 36px; padding: 9px 12px; }
    .stack-game-theme .sb-pix-dialog .modal-actions { margin-top: 8px; }
    .stack-game-theme .sb-pix-dialog #homeCopyPixButton { min-height: 44px; padding: 11px; }
}
@media (max-height: 500px) and (min-width: 600px) {
    .stack-game-theme .modal-card.sb-pix-dialog {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr);
        column-gap: 20px;
        width: min(640px, calc(100vw - 32px));
        padding: 20px;
    }
    .stack-game-theme .sb-pix-dialog .sb-ball-badge { position: absolute; top: -24px; left: 83px; margin: 0; }
    .stack-game-theme .sb-pix-dialog .modal-copy { grid-column: 2; grid-row: 1; }
    .stack-game-theme .sb-pix-dialog .home-qr-box { grid-column: 1; grid-row: 1 / 4; align-self: center; width: 200px; margin: 0; }
    .stack-game-theme .sb-pix-dialog .sb-pix-code { grid-column: 2; grid-row: 2; }
    .stack-game-theme .sb-pix-dialog .modal-actions { grid-column: 2; grid-row: 3; }
}
.stack-game-theme :is(.sb-pix-dialog, .sb-payment-success-dialog) .home-payment-success { padding: 12px 0 0; border: 0; background: none; }
.stack-game-theme :is(.sb-pix-dialog, .sb-payment-success-dialog) .home-payment-success-badge { color: var(--sb-green-edge); font: 750 12px var(--sb-font); }
.stack-game-theme :is(.sb-pix-dialog, .sb-payment-success-dialog) .home-payment-success h4 { color: var(--sb-ink); font: 800 30px/1.1 var(--sb-display); }
.stack-game-theme :is(.sb-pix-dialog, .sb-payment-success-dialog) .home-payment-success p { color: var(--sb-muted); font: 500 14px/1.5 var(--sb-font); }
.stack-game-theme :is(.sb-pix-dialog, .sb-payment-success-dialog) .home-payment-success strong { display: block; margin: 14px 0; color: var(--sb-green-edge); font: 850 38px/1.2 var(--sb-font); }

/* Deposit-only tactile tiles; no CTA overrides. */
.stack-game-theme .sb-deposit-dialog .sb-finance-amounts { gap: 14px 12px; padding-bottom: 4px; }
.stack-game-theme .sb-deposit-dialog .quick-amount-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 68px;
    padding: 9px 12px;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(180deg, #ffffff, #eaf0fa);
    color: #253c64;
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #d9e3f2, 0 4px 0 #c5d3e8, 0 7px 12px rgba(16, 38, 79, .08);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.stack-game-theme .sb-deposit-dialog .quick-amount-button.is-active {
    background: linear-gradient(180deg, #efffe1, #c8f8a5);
    color: #185525;
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #a5dd7f, 0 4px 0 #64ac41, 0 8px 16px rgba(57, 122, 23, .14);
    animation: sb-deposit-select .3s cubic-bezier(.2, .8, .3, 1);
}
.stack-game-theme .sb-deposit-dialog .quick-amount-button:focus-visible { outline: 3px solid #2f7ae5; outline-offset: 6px; }
.stack-game-theme .sb-deposit-dialog .quick-amount-button:active {
    transform: translateY(3px);
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #c9d7e9, 0 1px 0 #b7c8e2;
}
.stack-game-theme .sb-deposit-dialog .quick-amount-button.is-active:active { box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #a5dd7f, 0 1px 0 #64ac41; }
.stack-game-theme .sb-deposit-dialog .quick-amount-button span { position: static; inset: auto; display: block; min-width: 0; max-width: none; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; box-shadow: none; font: inherit; text-shadow: none; text-align: inherit; text-transform: none; letter-spacing: normal; transform: none; }
.stack-game-theme .sb-deposit-dialog .quick-amount-button .sb-amount-price { display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; white-space: nowrap; }
.stack-game-theme .sb-deposit-dialog .quick-amount-button .sb-amount-price > span { color: #647697; font: 800 18px/1.1 var(--sb-font); letter-spacing: .5px; }
.stack-game-theme .sb-amount-price > strong { font: 850 27px/1.1 var(--sb-font); letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.stack-game-theme .sb-deposit-dialog .quick-amount-button.is-active .sb-amount-price > span { color: #397d30; }
.stack-game-theme .sb-deposit-dialog .quick-amount-button .sb-amount-check { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #2b943e; color: #fff; box-shadow: 0 1px 0 #12632a; opacity: 0; transform: scale(.4); transition: opacity .16s ease, transform .2s ease; }
.stack-game-theme .sb-deposit-dialog .quick-amount-button.is-active .sb-amount-check { opacity: 1; transform: scale(1); }
.stack-game-theme .sb-amount-check svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
/* The existing amount controller owns selection. These two-sided tiles only display the offer. */
.stack-game-theme .sb-deposit-dialog .quick-amount-button.has-bonus {
    padding: 0;
    background: none;
    box-shadow: none;
    perspective: 700px;
}
.stack-game-theme .sb-deposit-dialog .quick-amount-button.has-bonus.is-active { animation: none; }
.stack-game-theme .sb-deposit-dialog .has-bonus .sb-amount-bonus {
    position: absolute;
    z-index: 2;
    top: -9px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: calc(100% - 8px);
    min-height: 21px;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff1a4, #ffca36);
    color: #775000;
    box-shadow: inset 0 1px 0 #fff8d7, inset 0 0 0 1px #efbb37, 0 2px 0 #c9931c;
    font: 850 9px/1.3 var(--sb-font);
    letter-spacing: .3px;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}
.stack-game-theme .sb-deposit-dialog .has-bonus .sb-amount-flipper {
    position: relative;
    display: block;
    width: 100%;
    height: 68px;
    border-radius: 19px;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.2, .7, .25, 1);
}
.stack-game-theme .sb-deposit-dialog .has-bonus.is-active .sb-amount-flipper { transform: rotateY(180deg); }
.stack-game-theme .sb-deposit-dialog .has-bonus .sb-amount-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 100%;
    padding: 12px 8px 4px;
    border-radius: inherit;
    background: linear-gradient(180deg, #ffffff, #eaf0fa);
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #d9e3f2, 0 4px 0 #c5d3e8, 0 7px 12px rgba(16, 38, 79, .08);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.stack-game-theme .sb-deposit-dialog .has-bonus .sb-amount-back {
    background: linear-gradient(180deg, #efffe1, #c8f8a5);
    color: #185525;
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #a5dd7f, 0 4px 0 #64ac41, 0 8px 16px rgba(57, 122, 23, .14);
    transform: rotateY(180deg);
}
.stack-game-theme .sb-deposit-dialog .has-bonus .sb-amount-conversion { color: #397d30; font: 700 12px/1.3 var(--sb-font); }
.stack-game-theme .sb-deposit-dialog .has-bonus .sb-amount-total { color: #0c7d34; font: 850 28px/1.1 var(--sb-font); letter-spacing: -.8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stack-game-theme .sb-deposit-field { gap: 8px; margin-top: 3px; }
.stack-game-theme .sb-deposit-field > .sb-deposit-field-label { color: #526480; font: 800 11px/1.5 var(--sb-font); letter-spacing: .8px; text-transform: uppercase; }
.stack-game-theme .sb-deposit-field > .sb-deposit-input-well { position: relative; display: block; border-radius: 18px; background: #e8eef8; box-shadow: inset 0 2px 4px rgba(16,38,79,.1), 0 1px 0 #fff; }
.stack-game-theme .sb-deposit-field input:not([type=hidden]) { position: relative; z-index: 1; min-height: 62px; padding: 13px 60px 13px 17px; border-radius: 18px; background: transparent; color: #253c64; font: 800 25px/1.4 var(--sb-font); letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.stack-game-theme .sb-deposit-field input:focus { outline-offset: 3px; }
.stack-game-theme .sb-deposit-edit { position: absolute; top: 50%; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: #fff; color: #2f7ae5; box-shadow: 0 2px 0 #c5d3e8; pointer-events: none; transform: translateY(-50%); }
.stack-game-theme .sb-deposit-edit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stack-game-theme .sb-deposit-input-well:focus-within .sb-deposit-edit { background: #2f7ae5; color: #fff; box-shadow: 0 2px 0 #1758b6; }
.stack-game-theme .sb-deposit-dialog .sb-generate-pix { position: relative; isolation: isolate; overflow: hidden; transform-origin: center; }
.stack-game-theme .sb-deposit-dialog .sb-generate-pix::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: translateX(-180%) skewX(-18deg);
    pointer-events: none;
}
.stack-game-theme [data-modal="deposit"]:not([hidden]) .sb-generate-pix:not(:disabled) { animation: sb-deposit-cta-pulse 2.4s ease-in-out infinite; }
.stack-game-theme [data-modal="deposit"]:not([hidden]) .sb-generate-pix:not(:disabled)::after { animation: sb-deposit-cta-shine 3.6s ease-in-out .7s infinite; }
.stack-game-theme [data-modal="deposit"]:not([hidden]) .sb-generate-pix:not(:disabled):active { animation: none; transform: translateY(3px) scale(.99); }
.stack-game-theme .sb-deposit-dialog .sb-generate-pix:disabled::after { display: none; }
@keyframes sb-deposit-cta-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes sb-deposit-cta-shine { 0%, 55% { transform: translateX(-180%) skewX(-18deg); } 88%, 100% { transform: translateX(430%) skewX(-18deg); } }
@keyframes sb-deposit-select { 0% { transform: translateY(2px); } 55% { transform: translateY(-2px); } 100% { transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
    .stack-game-theme .sb-deposit-dialog .quick-amount-button:hover { transform: translateY(-2px); }
    .stack-game-theme .sb-deposit-dialog .quick-amount-button:active { transform: translateY(3px); }
}
@media (max-width: 359px) {
    .stack-game-theme .sb-deposit-dialog .quick-amount-button { gap: 7px; padding-inline: 10px; min-height: 64px; }
    .stack-game-theme .sb-deposit-dialog .quick-amount-button.has-bonus { padding: 0; }
    .stack-game-theme .sb-deposit-dialog .has-bonus .sb-amount-flipper { height: 64px; }
    .stack-game-theme .sb-deposit-dialog .has-bonus .sb-amount-total { font-size: 26px; }
    .stack-game-theme .sb-deposit-dialog .sb-amount-price > strong { font-size: 24px; }
    .stack-game-theme .sb-deposit-field input:not([type=hidden]) { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .stack-game-theme .sb-deposit-dialog .quick-amount-button,
    .stack-game-theme .sb-deposit-dialog .quick-amount-button.is-active,
    .stack-game-theme .sb-deposit-dialog .quick-amount-button .sb-amount-check { transition: none; animation: none; }
    .stack-game-theme .sb-deposit-dialog .quick-amount-button:hover { transform: none; }
    .stack-game-theme .sb-deposit-dialog .has-bonus .sb-amount-flipper { transition: none; }
    .stack-game-theme [data-modal="deposit"]:not([hidden]) .sb-generate-pix:not(:disabled) { animation: none; }
    .stack-game-theme [data-modal="deposit"]:not([hidden]) .sb-generate-pix:not(:disabled)::after { display: none; animation: none; }
}

/* Deposit-goal presentation in the withdrawal modal; no financial authorization. */
.stack-game-theme .sb-withdraw-dialog.is-withdraw-locked .modal-copy h3 { font-size: clamp(26px, 8vw, 34px); letter-spacing: -.025em; }
.stack-game-theme .sb-withdraw-progress { margin-top: 18px; padding: 17px 16px 18px; border-radius: 22px; background: var(--sb-stat); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #e3e8f1; text-align: left; }
.stack-game-theme .sb-withdraw-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--sb-label); font: 800 10px/1.4 var(--sb-font); letter-spacing: 1px; text-transform: uppercase; }
.stack-game-theme .sb-withdraw-progress-heading .sb-withdraw-progress-percent { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #fff; color: #397d55; font-size: 11px; letter-spacing: 0; box-shadow: 0 1px 0 #dce3ec; font-variant-numeric: tabular-nums; }
.stack-game-theme .sb-withdraw-progress-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; margin-top: 5px; }
.stack-game-theme .sb-withdraw-progress-total strong { color: var(--sb-ink); font: 850 26px/1.2 var(--sb-font); letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.stack-game-theme .sb-withdraw-progress-total > span { color: var(--sb-muted); font: 500 12px/1.4 var(--sb-font); }
.stack-game-theme .sb-withdraw-water-track { position: relative; height: 48px; margin-top: 13px; overflow: hidden; isolation: isolate; border-radius: 16px; background: #e0e7f1; box-shadow: inset 0 2px 5px rgba(16, 38, 79, .12), 0 1px 0 #fff; }
.stack-game-theme .sb-withdraw-water-track::after { content: ""; position: absolute; z-index: 4; inset: 2px; border: 1px solid rgba(255, 255, 255, .35); border-radius: inherit; pointer-events: none; }
.stack-game-theme .sb-withdraw-water-level { position: absolute; inset: 0 auto 0 0; width: calc(var(--withdraw-progress) * 1%); height: 100%; overflow: hidden; }
.stack-game-theme .sb-withdraw-water-level::after { content: ""; position: absolute; z-index: 2; inset: 13px 0 0; background: linear-gradient(180deg, transparent, rgba(7, 133, 58, .24)); pointer-events: none; }
.stack-game-theme .sb-withdraw-water-wave { position: absolute; z-index: 1; top: 0; left: 0; width: 200%; max-width: none; height: 100%; fill: #7cf09b; animation: sb-withdraw-water-drift 4.2s linear infinite; animation-play-state: paused; }
.stack-game-theme .sb-withdraw-water-wave--front { top: 5px; fill: #24cf60; animation-duration: 2.8s; animation-delay: -1.1s; }
.stack-game-theme .sb-withdraw-water-bubble { position: absolute; z-index: 3; bottom: -5px; left: 22%; display: block; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: sb-withdraw-water-bubble 2.9s ease-in infinite; animation-play-state: paused; }
.stack-game-theme .sb-withdraw-water-bubble:nth-of-type(2) { left: 57%; width: 3px; height: 3px; animation-delay: -1.7s; }
.stack-game-theme .sb-withdraw-water-bubble:nth-of-type(3) { left: 82%; animation-delay: -.8s; }
.stack-game-theme .is-water-active :is(.sb-withdraw-water-wave, .sb-withdraw-water-bubble) { animation-play-state: running; }
.stack-game-theme .sb-withdraw-remaining { display: grid; gap: 3px; margin: 15px 0 0; text-align: center; color: var(--sb-muted); font: 500 12px/1.4 var(--sb-font); }
.stack-game-theme .sb-withdraw-remaining > span:first-child { color: var(--sb-label); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.stack-game-theme .sb-withdraw-remaining > strong { color: var(--sb-ink); font: 850 34px/1.15 var(--sb-font); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stack-game-theme .sb-withdraw-dialog .sb-withdraw-progress-actions { margin-top: 20px; }
.stack-game-theme .sb-withdraw-progress-actions .modal-primary { font-size: 13px; letter-spacing: .8px; }
.stack-game-theme .sb-withdraw-progress-note { margin: 14px 0 0; color: var(--sb-muted); font: 500 10px/1.5 var(--sb-font); }
.stack-game-theme .sb-withdraw-dialog.has-withdraw-progress:not(.is-withdraw-locked) { padding-top: 24px; }
.stack-game-theme .has-withdraw-progress:not(.is-withdraw-locked) .sb-ball-badge { height: 64px; margin: -58px auto 8px; }
.stack-game-theme .has-withdraw-progress:not(.is-withdraw-locked) .sb-ball-badge canvas { top: -46px; }
.stack-game-theme .sb-withdraw-progress.is-complete { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; margin-top: 14px; padding: 10px 14px; }
.stack-game-theme .sb-withdraw-progress.is-complete .sb-withdraw-progress-heading { color: #397d55; font-size: 9px; letter-spacing: .4px; }
.stack-game-theme .sb-withdraw-progress.is-complete .sb-withdraw-progress-percent,
.stack-game-theme .sb-withdraw-progress.is-complete .sb-withdraw-progress-total > span { display: none; }
.stack-game-theme .sb-withdraw-progress.is-complete .sb-withdraw-progress-total { margin-top: 0; }
.stack-game-theme .sb-withdraw-progress.is-complete .sb-withdraw-progress-total strong { font-size: 16px; letter-spacing: -.4px; }
.stack-game-theme .sb-withdraw-progress.is-complete .sb-withdraw-water-track { grid-column: 1 / -1; height: 14px; margin-top: 0; border-radius: 8px; }
@keyframes sb-withdraw-water-drift { to { transform: translateX(-50%); } }
@keyframes sb-withdraw-water-bubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 22% { opacity: .8; } 100% { transform: translateY(-48px) scale(1); opacity: 0; } }
@media (max-height: 620px) {
    .stack-game-theme .modal-shell[data-modal="withdraw"]:has(.is-withdraw-locked) { padding-top: max(56px, calc(env(safe-area-inset-top) + 50px)); padding-bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px)); }
    .stack-game-theme .sb-withdraw-dialog.is-withdraw-locked { padding: 20px 18px 16px; }
    .stack-game-theme .is-withdraw-locked .sb-ball-badge { height: 56px; margin: -50px auto 0; }
    .stack-game-theme .is-withdraw-locked .sb-ball-badge canvas { top: -44px; width: 84px; height: 101.5px; }
    .stack-game-theme .sb-withdraw-dialog.is-withdraw-locked .modal-copy h3 { font-size: clamp(22px, 6.5vw, 27px); }
    .stack-game-theme .sb-withdraw-dialog.is-withdraw-locked .modal-copy p { margin-top: 6px; font-size: 12px; line-height: 1.4; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-progress { margin-top: 12px; padding: 12px 14px 14px; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-progress-heading { font-size: 9px; letter-spacing: .8px; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-progress-percent { padding: 3px 6px; font-size: 10px; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-progress-total strong { font-size: 24px; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-water-track { height: 36px; margin-top: 10px; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-remaining { gap: 2px; margin-top: 10px; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-remaining > span:first-child { font-size: 9px; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-remaining > strong { font-size: 28px; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-progress-actions { margin-top: 14px; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-progress-actions .modal-primary { min-height: 46px; padding: 12px; font-size: 12px; }
    .stack-game-theme .is-withdraw-locked .sb-withdraw-progress-note { margin-top: 12px; font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .stack-game-theme :is(.sb-withdraw-water-wave, .sb-withdraw-water-bubble),
    .stack-game-theme .is-water-active :is(.sb-withdraw-water-wave, .sb-withdraw-water-bubble) { animation: none; }
    .stack-game-theme .sb-withdraw-water-bubble { display: none; }
}
