
.reference-table-tools{display:none}
body.game-mode #jadeStage :is(#baiCaoTable,#classicTable).reference-card-ui{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden;container-type:size}
body.game-mode #jadeStage :is(#baiCaoTable,#classicTable).reference-card-ui :is(.classic-table-surface,.bai-cao-table-surface){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important}
body.game-mode #jadeStage .reference-card-ui .card-table-toolbar{position:absolute!important;inset:0 0 auto 0;z-index:16;width:100%!important;height:8.7%!important;min-height:0!important;padding:1% 1.4%!important;background:#080b15f5!important;border:0!important;border-radius:0!important;box-shadow:none!important;display:flex;gap:12px}
body.game-mode #jadeStage .reference-card-ui .card-table-toolbar :is(.compact-stake,.card-room-timer,#tlmnAudioButton){display:none!important}
body.game-mode #jadeStage .reference-card-ui .card-table-toolbar button{height:100%;font:clamp(12px,1.2cqw,24px) Arial;border-radius:14px;background:#10131b;color:#fff6dc;border:1px solid #ad965c;padding:3px 12px!important}
body.game-mode #jadeStage .reference-card-ui .card-room-status{font:clamp(12px,1.2cqw,24px) Arial;background:none;border:0;color:#fff6dc;padding:0;min-width:0}
body.game-mode #jadeStage .reference-card-ui .reference-table-tools{position:absolute;right:1.4%;top:1.5%;height:5.7%;display:flex;gap:12px;z-index:18}
.reference-table-tools button{font:clamp(12px,1.2cqw,24px) Arial;border:1px solid #ad965c;border-radius:14px;background:#10131b;color:#fff6dc;padding:5px 15px}
body.game-mode #jadeStage .reference-card-ui .classic-actions{top:auto!important;bottom:16%!important;left:auto!important;right:13%!important;transform:none!important;height:auto!important;max-width:40%;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;gap:12px}
body.game-mode #jadeStage .reference-card-ui .classic-actions .compact-action{font-size:clamp(12px,1.1cqw,22px)!important;height:clamp(30px,6cqh,64px)!important;min-width:0!important;padding:0 10px!important}
body.game-mode #jadeStage #classicTable.reference-card-ui[data-reference-game="xi_dach"] .classic-actions :is([data-classic-action="hit"],[data-classic-action="stand"]),body.game-mode #jadeStage #baiCaoTable.reference-card-ui[data-reference-game="bai_cao"] #revealBaiCao{font-size:0!important;min-width:0!important;width:clamp(110px,12cqw,240px)!important;height:clamp(38px,7cqh,84px)!important;border:0!important;box-shadow:none!important;background-color:transparent!important;background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important}
body.game-mode #jadeStage #classicTable.reference-card-ui[data-reference-game="xi_dach"] [data-classic-action="hit"]{background-image:url('/assets/reference/xi-dach/hit.png')!important}
body.game-mode #jadeStage #classicTable.reference-card-ui[data-reference-game="xi_dach"] [data-classic-action="stand"]{background-image:url('/assets/reference/xi-dach/stand.png')!important}
body.game-mode #jadeStage #classicTable.reference-card-ui[data-reference-game="xi_dach"] [data-reference-dealer="true"]{background-image:url('/assets/reference/xi-dach/stand-dealer.png')!important}
body.game-mode #jadeStage #baiCaoTable.reference-card-ui[data-reference-game="bai_cao"] #revealBaiCao{background-image:url('/assets/reference/bai-cao/controls/btn_liang.png')!important}
body.game-mode #jadeStage .reference-card-ui .classic-actions .compact-action:disabled{filter:grayscale(.7);opacity:.45}
body.game-mode #jadeStage .reference-card-ui [hidden]{display:none!important}
body.game-mode #jadeStage .reference-card-ui #chatToggle{position:absolute!important;right:3%!important;bottom:6%!important;top:auto!important;width:clamp(30px,3.2cqw,64px)!important;height:clamp(30px,3.2cqw,64px)!important;border:0!important;box-shadow:none!important;background:transparent url('/assets/reference/xi-dach/chat.png') center/contain no-repeat!important}
body.game-mode #jadeStage #baiCaoTable.reference-card-ui[data-reference-game="bai_cao"] #chatToggle{background-image:url('/assets/reference/bai-cao/chat.png')!important}
.reference-card-ui #chatToggle span{visibility:hidden}
body.game-mode #jadeStage .reference-card-ui #chatPanel{position:absolute!important;right:3%!important;bottom:14%!important;top:auto!important;width:min(360px,38%)!important;height:65%!important;max-height:65%!important;z-index:40}
body.game-mode #jadeStage #baiCaoPanel:not([hidden]){position:absolute!important;inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;max-height:none!important;transform:none!important;margin:0!important;border:0!important;padding:0!important;border-radius:0!important}
body.game-mode #classicGamePanel:has(#classicTable.reference-card-ui:not([hidden]))>.exit-game,body.game-mode #baiCaoPanel:has(#baiCaoTable.reference-card-ui:not([hidden]))>.exit-game{display:none!important}
@container (max-height:500px){body.game-mode #jadeStage .reference-card-ui .card-table-toolbar{gap:5px;padding:.5% 1%!important}.reference-table-tools{gap:5px!important}.reference-table-tools button{padding:3px 8px}}

body.game-mode #jadeStage #baiCaoTable.reference-card-ui #leaveBaiCao{position:static;flex:0 0 44px;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent url('/assets/reference/bai-cao/controls/quit.png') center/contain no-repeat!important;color:transparent!important;text-shadow:none!important}
body.game-mode #jadeStage #baiCaoTable.reference-card-ui #baiCaoTimer{display:block!important;position:absolute;top:110%;left:50%;transform:translateX(-50%);margin:0;padding:0;min-width:0;color:#fff1bd;font-size:clamp(12px,1.5cqw,20px)!important}
