.bj-page-content{width:100%;max-width:1180px;margin-inline:auto}.bj-heading{display:flex;align-items:center;gap:13px;margin-bottom:24px;color:#8ca58f}.bj-heading h1{margin:0;color:#f0f6e8}.bj-game{--bj-accent:#d4ef83;display:grid;grid-template-columns:380px minmax(0,1fr);min-height:660px;border:1px solid #2d4534;border-radius:14px;overflow:hidden;background:#0c2419}.bj-game [hidden]{display:none!important}.bj-game button,.bj-game input{font-family:inherit}.bj-controls{position:relative;display:flex;flex-direction:column;gap:12px;padding:24px;background:#182d21;min-width:0}.bj-mode{text-align:center;border-radius:8px;background:#2d4430;color:#eff4e6;padding:13px;font-weight:700;margin-bottom:12px}.bj-bet-label{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#a3b89c;font-size:13px;font-weight:600}.bj-bet-label span{font-size:12px;color:#91a68b}.bj-amount-field,.bj-side-field{display:flex;align-items:center;min-width:0;gap:6px;border:1px solid #344b37;border-radius:9px;background:#10251a;padding:6px 8px;height:50px;transition:border-color .18s}.bj-amount-field:focus-within,.bj-side-field:focus-within{border-color:#809868}.bj-amount-field img,.bj-side-field img{flex-shrink:0}.bj-game .bj-amount-field input,.bj-game .bj-side-field input{flex:1 1 0;width:0;min-width:0;background:none;border:0;padding:7px 0;font-size:16px;font-weight:600;color:#f2f6e9;outline:none!important;box-shadow:none!important}.bj-amount-field button{flex:0 0 36px;height:36px;min-width:36px;border:0;background:#29412e;color:#b7c9ad;font-size:12px;font-weight:700;border-radius:6px;padding:0 7px;cursor:pointer}.bj-amount-field button:hover{background:#3b5638;color:#e7f1d8}.bj-game button:disabled{cursor:default;opacity:.4}.bj-sides{margin:5px 0 0}.bj-sides summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;color:#b0c2a8;padding:12px 0;font-size:13px;font-weight:600}.bj-sides summary::-webkit-details-marker{display:none}.bj-sides summary span{transition:transform .2s}.bj-sides[open] summary span{transform:rotate(180deg)}.bj-side-fields{display:grid;gap:14px;padding:8px 0}.bj-side-fields label{font-size:12px;color:#a4b89c}.bj-side-field{margin-top:7px;height:44px}.bj-side-results{display:grid;gap:7px;font-size:11px;color:#95ad92}.bj-side-results>div{display:flex;justify-content:space-between;gap:8px}.bj-side-results .won{color:#d4ef83}#bj-status{font-size:13px;line-height:1.5;color:#e3bd9a;margin:0}#bj-status:empty{display:none}.bj-controls-bottom{margin-top:auto;display:grid;gap:10px;padding-top:22px}.bj-primary,.bj-actions button{border:0;border-radius:7px;padding:16px 10px;background:#d4ef83;color:#15321f;font-weight:750;font-size:15px;cursor:pointer;transition:background .18s,transform .18s;min-height:52px}.bj-primary:hover:not(:disabled){background:#e0f6a5;transform:translateY(-1px)}.bj-primary:focus-visible,.bj-actions button:focus-visible{outline:2px solid #e3f8ac;outline-offset:3px}.bj-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bj-actions:empty{display:none}.bj-actions .bj-stand{background:#3e4b36;color:#eaf3df}.bj-actions .bj-extra{background:#294734;color:#cce7ba}.bj-actions .bj-continue{grid-column:1/-1}.bj-surrender{background:transparent;border:0;color:#9eb494;font-size:12px;padding:10px;cursor:pointer}.bj-surrender:hover{color:#d6edb3}.bj-insurance{text-align:center;color:#d5e6bc;font-size:13px;font-weight:600}.bj-table{position:relative;min-width:0;min-height:660px;padding:80px 30px 60px;display:flex;flex-direction:column;justify-content:space-between;gap:100px;background:radial-gradient(ellipse at center,#173c28 0,#102e20 58%,#0c2419 100%);isolation:isolate}.bj-table:before{content:'';position:absolute;inset:58px 28px 38px;border:1px solid #7ba87116;border-radius:46%;pointer-events:none;z-index:-1}.bj-table-top{position:absolute;top:16px;left:20px;right:20px;display:flex;align-items:center;gap:14px;height:34px}.bj-table-top>button{background:transparent;border:0;color:#92ae8c;width:34px;height:34px;border-radius:6px;padding:7px;cursor:pointer}.bj-table-top>button:hover{background:#d4ef8312}.bj-table-top svg{display:block;width:20px;height:20px}.bj-table-top button[aria-pressed=true]{opacity:.4}.bj-history{display:flex;justify-content:flex-end;gap:4px;overflow:hidden;flex:1;min-width:0}.bj-history button{background:none;border:0;border-radius:5px;color:#95e2b2;font-weight:700;font-size:12px;padding:7px;white-space:nowrap;cursor:pointer}.bj-history button.loss{color:#829586}.bj-history button:hover{background:#c2e69912}.bj-seat{display:flex;flex-direction:column;align-items:center;gap:13px;min-width:0}.bj-seat-label{color:#9eb89d;font-size:13px;font-weight:600}.bj-card-row{--card-w:94px;display:flex;justify-content:center;align-items:center;position:relative;padding-right:20px;min-height:132px;min-width:0}.bj-card{position:relative;flex-shrink:0;width:var(--card-w);aspect-ratio:5/7;border-radius:9px;filter:drop-shadow(0 5px 5px #04190f50);overflow:hidden;transition:box-shadow .2s}.bj-card+.bj-card{margin-left:calc(var(--card-w) * -.35)}.bj-card img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}.bj-card img[src$=".png"]{object-fit:cover}.bj-seat.won .bj-card{box-shadow:0 0 0 2px #91dc8b}.bj-seat.lost .bj-card{box-shadow:0 0 0 2px #c98272}.bj-score{position:absolute;right:-11px;top:3px;padding:5px 9px;border-radius:8px;background:#2b4935;color:#e6f0df;font-size:15px;font-weight:750;line-height:20px;z-index:2;box-shadow:0 2px 5px #051a1350}.bj-seat.won .bj-score{background:#a9e5aa;color:#163625}.bj-seat.lost .bj-score{background:#b47b6d;color:#fff4df}.bj-seat.active .bj-score{color:#e7f9bd;box-shadow:0 0 0 1px #c2de77}.bj-stake{font-size:12px;color:#8eaa89;min-height:17px}.bj-player-hands{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:24px;width:100%;min-height:182px}.bj-player-hands.split{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bj-player-hands.split .bj-card-row{--card-w:76px}.bj-felt-mark{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;gap:12px;color:#8eac7a55;font-size:11px;font-weight:650;letter-spacing:.5px;pointer-events:none;white-space:nowrap}.bj-felt-mark img{width:76px;height:76px;opacity:.08}.bj-reference{position:absolute;bottom:14px;left:10px;right:10px;text-align:center;font-size:10px;color:#688b6d}.bj-payout{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(74%,340px);pointer-events:none;z-index:4;animation:bj-result .25s ease-out}.bj-payout img{display:block;width:100%;height:auto}.bj-table.idle .bj-card{opacity:.35}.bj-table.idle .bj-score{opacity:0}#bj-terms .bj-primary{width:100%}#bj-terms .bj-surrender{display:block;width:100%;margin-top:8px}.bj-game input:disabled{opacity:.55}
@keyframes bj-deal{from{opacity:0;transform:translate(85px,-65px) rotate(14deg) scale(.8)}to{opacity:1;transform:translate(0,0) rotate(0) scale(1)}}@keyframes bj-reveal{0%{transform:scaleX(.05)}100%{transform:scaleX(1)}}@keyframes bj-result{from{opacity:0;transform:translate(-50%,-44%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(min-width:1600px){.bj-game{min-height:720px}.bj-table{min-height:720px;padding-top:100px;padding-bottom:80px}.bj-card-row{--card-w:108px}}
@media(max-width:1100px){.bj-game{grid-template-columns:320px minmax(0,1fr)}.bj-controls{padding:20px 16px}.bj-table{padding-inline:20px}.bj-card-row{--card-w:82px}.bj-player-hands.split .bj-card-row{--card-w:62px}}
@media(max-width:760px){.public-site main:has(.bj-page-content){padding:20px 12px 24px!important}.bj-heading{margin-bottom:16px;gap:10px}.bj-heading h1{font-size:25px}.bj-game{grid-template-columns:minmax(0,1fr);min-height:0}.bj-table{grid-row:1;min-height:520px;padding:66px 20px 40px;gap:100px}.bj-controls{grid-row:2;padding:20px 18px;gap:12px}.bj-mode{display:none}.bj-card-row{--card-w:81px;min-height:114px}.bj-player-hands{min-height:160px;gap:12px}.bj-player-hands.split .bj-card-row{--card-w:64px;padding-right:14px}.bj-player-hands.split{gap:10px}.bj-score{font-size:13px;padding:3px 7px;right:-9px;line-height:19px}.bj-seat{gap:10px}.bj-seat-label{font-size:12px}.bj-stake{font-size:11px}.bj-controls-bottom{padding-top:8px}.bj-amount-field button{min-width:36px}.bj-side-fields{grid-template-columns:1fr 1fr;gap:12px}.bj-felt-mark img{width:60px;height:60px}.bj-payout{width:min(78%,320px)}.bj-actions button{min-height:52px}.bj-table:before{inset:54px 12px 30px}.bj-game input{font-size:16px!important}}
@media(max-width:360px){.bj-table{padding-inline:14px;min-height:480px}.bj-card-row{--card-w:72px}.bj-player-hands.split .bj-card-row{--card-w:55px}.bj-player-hands.split .bj-seat-label{font-size:11px}.bj-player-hands.split{gap:6px}}
@media(prefers-reduced-motion:reduce){.bj-game *{animation:none!important;transition:none!important}}

.bj-amount-field{height:50px;background:#13281d;border-color:#304536;gap:5px;padding:6px 8px}.bj-amount-field button{background:#243a2a;color:#adc1a3;font-weight:600}.bj-amount-field button[data-bj-adjust=max]{flex-basis:48px}.bj-controls{background:#182d21}.bj-table{background:#10251a}.bj-table:before{display:none}.bj-deck{position:absolute;right:27px;top:72px;width:62px;height:87px;transform:rotate(12deg);z-index:2;pointer-events:none}.bj-deck img{position:absolute;inset:0;width:100%;height:100%;border-radius:5px;box-shadow:0 2px 3px #0004}.bj-deck img:nth-child(1){transform:translate(5px,-5px)}.bj-deck img:nth-child(2){transform:translate(2px,-2px)}.bj-card-row{overflow:visible}.bj-card{will-change:transform}.bj-dealer{padding-inline:70px}
@media(max-width:760px){.bj-game{grid-template-columns:minmax(0,1fr)}.bj-deck{right:19px;top:68px;width:44px;height:62px}.bj-dealer{padding-inline:45px}.bj-controls{padding:24px}.bj-card-row{min-height:125px}}

.bj-card{overflow:visible;perspective:700px}.bj-card-skin{position:relative;width:100%;height:100%;border-radius:inherit;transform-style:preserve-3d}.bj-card .bj-card-skin img{position:absolute;inset:0;border-radius:inherit;backface-visibility:hidden;-webkit-backface-visibility:hidden}.bj-card-face{transform:rotateY(180deg)}.bj-card-back{transform:rotateY(0deg)}.bj-card.dealing{z-index:5}

.bj-table-top #bj-speed{border:1px solid #344c30;border-radius:5px;color:#91aa83;padding:6px;flex-shrink:0}.bj-table-top #bj-speed svg{width:19px;height:19px}.bj-table-top #bj-speed:hover{background:#243c29}.bj-table-top #bj-speed[aria-pressed=true]{opacity:1}.bj-table-top #bj-speed[data-speed=fast]{color:#b0f680;background:#2e4529;border-color:#739354}.bj-table-top #bj-speed[data-speed=instant]{color:#142811;background:#b0f680;border-color:#b0f680;box-shadow:0 0 10px #b0f68230}.bj-table.idle .bj-card{display:none}

/* Board first, then compact controls below it. */
.bj-game{display:flex;flex-direction:column;overflow:visible;border:0;background:transparent;gap:14px;min-height:0}.bj-table{flex:none;min-height:660px;border:1px solid #2d4534;border-radius:14px;overflow:hidden;order:0}.bj-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;order:1;min-height:38px;padding-inline:10px}.bj-tools{display:flex;gap:8px;align-items:center}.bj-tools button{display:grid;place-items:center;width:38px;height:38px;padding:9px;border:1px solid #344c30;border-radius:7px;background:transparent;color:#91aa83;cursor:pointer}.bj-tools svg{width:19px;height:19px}.bj-tools button:hover{background:#243c29}.bj-tools #bj-speed[data-speed=fast]{color:#b0f680;background:#2e4529;border-color:#739354}.bj-tools #bj-speed[data-speed=instant]{color:#142811;background:#b0f680;border-color:#b0f680}.bj-tools button:disabled{opacity:.5}.bj-controls{order:2;display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid #2d4534;border-radius:12px;background:#182d21}.bj-bet-entry{display:flex;align-items:flex-end;gap:18px}.bj-bet-input{flex:1;min-width:0;display:grid;gap:8px}.bj-bet-entry>.bj-primary{flex:0 0 184px;height:50px;min-height:50px}.bj-bet-label{font-size:13px}.bj-game.in-hand .bj-bet-entry{display:none}.bj-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.bj-actions button{min-height:62px;font-size:15px;background:#304831;color:#edf4e5}.bj-actions button:hover:not(:disabled){background:#415d3b}.bj-actions button:disabled{opacity:.35}.bj-actions .bj-continue{grid-column:auto}.bj-side-results:empty{display:none}.bj-side-results{display:flex;gap:22px}.bj-side-results>div{gap:12px}.bj-sides{position:relative;margin:0}.bj-sides summary{padding:8px 0;gap:12px}.bj-sides.locked{pointer-events:none;opacity:.5}.bj-side-fields{position:absolute;bottom:calc(100% + 10px);left:0;width:320px;max-width:calc(100vw - 68px);z-index:8;padding:18px;background:#182d21;border:1px solid #344b37;border-radius:10px;box-shadow:0 8px 28px #0005;grid-template-columns:1fr 1fr;box-sizing:border-box}.bj-stake{display:inline-flex;align-items:center;gap:7px;background:#1c3528;border-radius:24px;padding:7px 12px;color:#edf4e5;font-size:13px;min-height:0}.bj-stake img{width:20px;height:20px}.bj-stake strong{font-weight:650}.bj-table-top{justify-content:flex-end}.bj-fairness-surface{padding:24px}.bj-fairness-title{display:flex;justify-content:space-between;align-items:center;gap:16px}.bj-fairness-title h2{margin:0}.bj-fairness-title button{border:0;background:none;color:#9bb18e;font-size:28px;cursor:pointer}#bj-fairness{max-width:min(520px,calc(100vw - 32px))}#bj-fairness-note{font-size:13px;line-height:1.6;color:#9db194}#bj-fairness-fields{display:grid;gap:15px;margin:20px 0}#bj-fairness-fields label{display:grid;gap:7px;font-size:12px;color:#a8bc9e}#bj-fairness-fields input{width:100%;box-sizing:border-box;background:#10251a;border:1px solid #344b37;border-radius:7px;color:#e8f1e1;padding:12px;font:12px/1.4 monospace}#bj-verifier-link{display:block;text-align:center;text-decoration:none;box-sizing:border-box}#bj-verifier-link[hidden]{display:none}
@media(max-width:760px){.bj-table{order:0;min-height:520px}.bj-controls{order:2;padding:14px}.bj-toolbar{padding-inline:4px}.bj-bet-entry{gap:10px}.bj-bet-entry>.bj-primary{flex-basis:112px;font-size:13px}.bj-actions{gap:6px}.bj-actions button{padding:12px 3px;min-height:54px;font-size:12px}.bj-side-results{flex-wrap:wrap;gap:12px}.bj-amount-field{gap:3px;padding-inline:6px}.bj-amount-field button{flex-basis:30px;min-width:30px;padding-inline:3px;font-size:11px}.bj-amount-field button[data-bj-adjust=max]{flex-basis:36px}.bj-amount-field img{width:17px;height:17px}}
@media(max-width:440px){.bj-bet-entry{display:grid;grid-template-columns:minmax(0,1fr)}.bj-bet-entry>.bj-primary{width:100%}.bj-table{min-height:500px}}

.bj-felt-mark{top:44%}

/* Keep the full desktop table and action bar within a comfortable viewport. */
@media(min-width:761px){
 .public-site main:has(.bj-page-content){padding-top:20px!important}.bj-page-content{max-width:960px}.bj-heading{margin-bottom:16px}.bj-game{gap:10px}.bj-table{height:clamp(360px,calc(100dvh - 342px),520px);min-height:0;padding:38px 24px 28px;gap:16px;box-sizing:border-box}.bj-card-row{--card-w:clamp(60px,calc((100dvh - 342px)*.16),84px);min-height:calc(var(--card-w)*1.4)}.bj-player-hands{min-height:0}.bj-player-hands.split .bj-card-row{--card-w:clamp(52px,calc((100dvh - 342px)*.14),74px)}.bj-seat{gap:8px}.bj-seat-label{font-size:12px}.bj-score{font-size:13px;padding:3px 7px;line-height:19px}.bj-deck{width:48px;height:67px;top:30px;right:25px}.bj-felt-mark img{width:24px;height:24px}.bj-felt-mark{gap:3px;font-size:9px;top:44%}.bj-payout{width:min(60%,240px)}.bj-controls{padding:14px}.bj-toolbar{min-height:34px}.bj-tools button{width:34px;height:34px;padding:7px}.bj-stake{padding:5px 10px;font-size:12px}.bj-stake img{width:18px;height:18px}.bj-actions button{min-height:54px}.bj-reference{bottom:8px;font-size:9px}
}

.bj-game.insurance-offer .bj-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.bj-insurance{font-size:18px;font-weight:700;color:#edf4e5}.bj-actions .bj-insure{background:#d4ef83;color:#15321f}.bj-actions .bj-insure:hover:not(:disabled){background:#e0f6a5}#bj-reference{display:none}

/* Compact Blackjack frame and one consistent action-button surface. */
@media(min-width:761px){.bj-page-content{max-width:800px}}
.bj-actions .bj-play-action{display:flex;align-items:center;justify-content:center;gap:9px;background:#304831;color:#f0f5e8;border:1px solid transparent;border-radius:8px;font-weight:700;min-height:62px;transition:background .15s,border-color .15s,transform .15s}.bj-actions .bj-play-action:hover:not(:disabled){background:#3c573c;border-color:#58734c;transform:translateY(-1px)}.bj-actions .bj-play-action:active:not(:disabled){transform:translateY(0)}.bj-action-icon{display:block;width:19px;height:19px;flex:none}.bj-play-action[data-move=h] .bj-action-icon{color:#8ddfc0}.bj-play-action[data-move=s] .bj-action-icon{color:#ee738c}.bj-play-action[data-move=p] .bj-action-icon{color:#9baed5}.bj-play-action[data-move=d] .bj-action-icon{color:#f5b84e}.bj-play-action:disabled .bj-action-icon{color:#819481}.bj-actions .bj-play-action:disabled{opacity:.4;transform:none}
@media(max-width:760px){.bj-actions .bj-play-action{gap:5px;min-height:54px;font-size:12px;padding-inline:4px}.bj-action-icon{width:16px;height:16px}}
@media(max-width:440px){.bj-actions .bj-play-action{gap:4px;font-size:11px;padding-inline:2px}.bj-action-icon{width:14px;height:14px}}

.bj-sides{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#a8bba0;cursor:pointer;position:relative}.bj-sides input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.bj-side-switch{display:block;width:34px;height:20px;border-radius:20px;background:#344c36;position:relative;transition:background .18s}.bj-side-switch:before{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;background:#91a68d;border-radius:50%;transition:transform .18s,background .18s}.bj-sides input:checked+.bj-side-switch{background:#809e47}.bj-sides input:checked+.bj-side-switch:before{background:#e6f5ca;transform:translateX(14px)}.bj-sides input:focus-visible+.bj-side-switch{outline:2px solid #d2f26a;outline-offset:3px}.bj-controls .bj-side-fields{position:static;width:100%;max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:4px 0 0;border:0;border-radius:0;box-shadow:none;background:none}.bj-side-field{margin-top:8px;height:48px}.bj-side-field button{height:34px;flex:0 0 36px;border:0;border-radius:6px;background:#29412e;color:#b7c9ad;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;padding:0 6px}.bj-side-field button:hover:not(:disabled){background:#3b5638;color:#e7f1d8}.bj-wagers{display:flex;align-items:center;justify-content:center;gap:8px;max-width:100%;flex-wrap:nowrap}.bj-side-badge{display:flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid #416044;border-radius:24px;color:#8fa78e;background:#152c21;font-size:11px}.bj-side-badge strong{font-weight:600}.bj-side-chip{display:grid;place-items:center;min-width:22px;height:22px;box-sizing:border-box;border:2px dashed currentColor;border-radius:50%;font-size:8px;font-weight:700;padding:1px}.bj-side-badge.won{border-color:#80bb85;color:#b5e5ad}.bj-side-badge.lost{border-color:#7b4f4d;color:#8f8d85;opacity:.75}.bj-player-hands.split .bj-wagers{gap:4px}.bj-player-hands.split .bj-side-badge{padding:4px 5px;font-size:10px;gap:4px}.bj-player-hands.split .bj-side-chip{min-width:19px;height:19px;font-size:7px}
@media(max-width:440px){.bj-controls .bj-side-fields{gap:10px}.bj-side-field{gap:4px;padding-inline:6px}.bj-side-field button{flex-basis:27px;font-size:11px;padding-inline:2px}.bj-side-badge{font-size:10px;padding:4px 6px;gap:4px}.bj-player-hands.split .bj-wagers{flex-wrap:wrap}.bj-side-chip{min-width:20px;height:20px}.bj-side-input .bj-bet-label{font-size:11px}.bj-side-input .bj-bet-label>span{font-size:10px}}

@media(max-width:440px){.bj-controls .bj-side-fields{grid-template-columns:minmax(0,1fr);gap:12px}}

/* Surrender replaces Sidebets in the utility row while a hand is active. */
.bj-game.in-hand .bj-sides{display:none}
.bj-toolbar #bj-surrender{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 13px;border:0;border-radius:6px;background:#304831;color:#e0ead7;font-size:12px;font-weight:650;line-height:20px;white-space:nowrap;transition:background .15s,color .15s}
.bj-toolbar #bj-surrender:hover:not(:disabled){background:#3c573c;color:#f0f5e8}.bj-toolbar #bj-surrender:active:not(:disabled){background:#29412e}
.bj-toolbar #bj-surrender:disabled{opacity:.4;cursor:default}
.bj-toolbar #bj-surrender:focus-visible{outline:2px solid #a8c37b;outline-offset:3px;border-radius:4px}
@media(min-width:761px){.bj-bet-entry,.bj-game.in-hand:not(.insurance-offer) .bj-actions{min-height:78px}}

/* Keep the page heading anchored to the content edge, independent of the table. */
.public-site main:has(.bj-page-content){max-width:none}
.bj-table{background:#0c2419}
.bj-felt-mark{gap:8px;top:44%;font-size:8px;color:#a0b7a2;letter-spacing:.7px;opacity:.5}
.bj-felt-mark img{width:150px;height:auto;opacity:1}
@media(max-width:760px){
 .bj-table{min-height:390px;padding:42px 14px 24px;gap:44px}
 .bj-card-row{--card-w:64px;min-height:90px}
 .bj-player-hands{min-height:125px;gap:10px}
 .bj-player-hands.split{gap:14px}
 .bj-player-hands.split .bj-card-row{--card-w:49px;min-height:69px;padding-right:0}
 .bj-seat{gap:8px}
 .bj-score{font-size:11px;line-height:16px;padding:3px 6px;right:-5px}
 .bj-dealer{padding-inline:30px}
 .bj-deck{width:34px;height:48px;top:24px;right:16px}
 .bj-felt-mark{gap:7px;font-size:6px;letter-spacing:.35px}
 .bj-felt-mark img{width:118px;height:auto}
 .bj-payout{width:min(58%,210px)}
}
@media(max-width:360px){
 .bj-card-row{--card-w:58px}
 .bj-player-hands.split .bj-card-row{--card-w:43px}
 .bj-table{min-height:370px;padding-inline:12px}
 .bj-stake{font-size:11px;padding:5px 7px;gap:4px}
 .bj-stake img{width:16px;height:16px}
}

/* Keep mobile flips on composited layers; filtering the 3D parent can flatten
   its card faces in mobile WebKit. Only moving cards need promoted layers. */
@media(max-width:760px){
 .bj-card{filter:none;will-change:auto}
 .bj-card.dealing,.bj-card.revealing{will-change:transform}
 .bj-card-skin{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}
 .bj-card.dealing .bj-card-skin,.bj-card.revealing .bj-card-skin{will-change:transform}
 .bj-card-face{transform:rotateY(180deg) translateZ(.1px)}
 .bj-card-back{transform:translateZ(.1px)}
 .bj-payout{width:min(48%,170px)}
}

/* Animate the whole disclosure, including its spacing, without fixed heights. */
.bj-side-disclosure{display:grid;grid-template-rows:0fr;margin-top:-12px;opacity:0;transition:grid-template-rows .28s cubic-bezier(.22,1,.36,1),margin-top .28s cubic-bezier(.22,1,.36,1),opacity .2s ease;pointer-events:none}
.bj-side-disclosure.open{grid-template-rows:1fr;margin-top:0;opacity:1;pointer-events:auto}
.bj-side-clip{min-height:0;overflow:hidden}
@media(prefers-reduced-motion:reduce){.bj-side-disclosure{transition:none}}

/* Game surfaces are interactive, not selectable document text. */
.bj-game{-webkit-user-select:none;user-select:none}
.bj-game input,.bj-game textarea{-webkit-user-select:text;user-select:text}
.bj-game img{-webkit-user-drag:none;user-drag:none}
/* Let larger desktop viewports grow the table and cards together. */
@media(min-width:761px){
 .bj-page-content{max-width:clamp(800px,calc(100vw - 640px),1280px)}
 .bj-game{--bj-table-height:clamp(360px,calc(100dvh - 342px),clamp(520px,calc(50vw - 200px),760px))}
 .bj-table{height:var(--bj-table-height)}
 .bj-card-row{--card-w:clamp(60px,calc(var(--bj-table-height)*.16),118px)}
 .bj-player-hands.split .bj-card-row{--card-w:clamp(52px,calc(var(--bj-table-height)*.14),102px)}
 .bj-deck{width:clamp(48px,calc(5vw - 24px),72px);height:auto;aspect-ratio:5/7}
 .bj-payout{width:min(60%,clamp(240px,18vw,300px))}
}
