/* Compact native controls; confined to these three existing bottom docks. */
.niu-stage.niu-reference .nr-stakebar{left:0;top:638px;width:1280px;height:68px;display:flex;align-items:center;justify-content:center;gap:8px!important;padding:0 14px;box-sizing:border-box;background:linear-gradient(#14251e,#060e0c)!important;border-top:1px solid #987640;border-radius:0}
.niu-stage.niu-reference .nr-stakebar>button{position:relative;left:auto;right:auto;top:auto;height:54px;flex:0 0 auto;padding:0 12px;border:1px solid #c2a468!important;border-radius:8px;background:linear-gradient(#29483f,#10231e)!important;box-shadow:inset 0 1px #fff3,0 2px 3px #0008!important;color:#f8e4b4!important;font-size:19px!important;white-space:nowrap;cursor:pointer}
.niu-stage.niu-reference .nr-stakebar>.nr-repeat,.niu-stage.niu-reference .nr-stakebar>.nr-clear,.niu-stage.niu-reference .nr-stakebar>.nr-cancel{width:126px}
.niu-stage.niu-reference .nr-stakebar>.nr-chip-prev,.niu-stage.niu-reference .nr-stakebar>.nr-chip-next{width:34px;padding:0;font-size:34px!important;background:#0a1713!important;border-color:#806b45!important}
.niu-stage.niu-reference .nr-stakebar>button:disabled{opacity:.55!important;cursor:default}
.niu-stage.niu-reference .nr-chips{position:relative;left:auto;top:auto;width:auto;height:62px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 3px;background:none!important;overflow:visible;pointer-events:auto;flex:0 0 auto}
.niu-stage.niu-reference .nr-chips>.nr-chip{--dock-chip:#0d7d3a;position:relative;left:auto!important;top:auto!important;flex:0 0 58px;min-width:58px;width:58px;height:58px;padding:6px;box-sizing:border-box;border:2px solid #e7d4a1!important;border-radius:50%;background:repeating-conic-gradient(var(--dock-chip) 0deg 23deg,#fff5d9 24deg 33deg,var(--dock-chip) 34deg 45deg)!important;box-shadow:inset 0 1px 0 #fff5,0 3px 0 #070b08!important;outline:0;cursor:pointer}
.niu-stage.niu-reference .nr-chips>.nr-chip span{display:grid;place-items:center;width:100%;height:100%;border:1px solid #f2ddaa!important;border-radius:50%;background:linear-gradient(135deg,#fff3,#0003),var(--dock-chip)!important;box-shadow:inset 0 0 0 1px #fff3!important;color:#fff!important;font-size:13px!important;font-weight:800;overflow:visible;text-shadow:0 1px 2px #0009}
.niu-stage.niu-reference .nr-chip.d1000{--dock-chip:#0d7d3a}.niu-stage.niu-reference .nr-chip.d10000{--dock-chip:#b51e2c}.niu-stage.niu-reference .nr-chip.d50000{--dock-chip:#1857bd}.niu-stage.niu-reference .nr-chip.d100000{--dock-chip:#7422a7}.niu-stage.niu-reference .nr-chip.d500000{--dock-chip:#bd6d1b}.niu-stage.niu-reference .nr-chip.d1000000{--dock-chip:#292a29}.niu-stage.niu-reference .nr-chip.d10000000{--dock-chip:#0d663b}
.niu-stage.niu-reference .nr-chips>.nr-chip.on{box-shadow:0 0 0 3px #ffe09a,0 0 12px #f5c66066!important}
.niu-stage.niu-reference .nr-direct-status{position:relative;left:auto;right:auto;top:auto;order:7;flex:0 0 auto;width:auto;min-width:144px;height:54px;padding:0 10px;border:1px solid #9e8145;border-radius:5px;background:#0b211b;font-size:15px;pointer-events:auto}
.niu-stage.niu-reference .nr-direct-status:empty{display:none}
.niu-stage.niu-reference .nr-direct-status>button{width:auto;min-width:144px;height:46px;padding:0 12px;font-size:16px}

.bacc-stage .bacc-dock{left:0;top:960px;width:2340px;height:120px;padding:10px 24px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:14px;border-top:2px solid #a88b4f;background:linear-gradient(#15291d,#08170f);pointer-events:none}
.bacc-stage .bacc-dock::after{display:none}
.bacc-stage .bacc-dock>*{position:relative;left:auto!important;top:auto!important;flex:0 0 auto;pointer-events:auto}
.bacc-stage .bacc-dock .bacc-visible-balance{width:280px;height:84px;box-sizing:border-box}
.bacc-stage .bacc-dock .bacc-sum{width:210px;height:84px;box-sizing:border-box}
.bacc-stage .bacc-dock .bacc-visible-balance i,.bacc-stage .bacc-dock .bacc-sum i{width:34px;height:34px}
.bacc-stage .bacc-dock .bacc-chip.casino-chip{width:92px;height:92px;margin:0}
.bacc-stage .bacc-dock .bacc-ghost{width:210px;height:84px;box-sizing:border-box;font-size:29px;border-radius:12px;letter-spacing:0}
.bacc-stage .bacc-dock .bacc-reconcile{width:230px;height:84px;box-sizing:border-box;font-size:27px;border-radius:12px}

.s13v3-table .s13v3-dock{display:flex;justify-content:center;align-items:flex-start;gap:0}
.s13v3-table .s13v3-dock>.s13v3-me{position:relative;left:auto;top:742px;flex:0 0 220px;width:220px;height:76px;padding:8px 12px}
.s13v3-table .s13v3-dock>.s13v3-actions{position:relative;left:auto;top:742px;flex:0 0 auto;width:max-content;max-width:1000px;height:76px;padding:7px 10px;gap:8px;overflow:visible;justify-content:flex-start}
.s13v3-table .s13v3-actions>.s13v3-stakes{flex:0 0 auto;width:auto;min-width:0;height:60px;padding:0 8px 0 0;gap:8px;border:0;border-radius:0;border-right:1px solid #8a7040;background:none;overflow:visible}
.s13v3-table .s13v3-stake-label{font-size:14px;line-height:18px;white-space:nowrap}
.s13v3-table .s13v3-actions>.s13v3-arrange,.s13v3-table .s13v3-actions>.s13v3-play{display:contents}
.s13v3-table .s13v3-actions .s13v3-arrange>button,.s13v3-table .s13v3-actions .s13v3-play>button{flex:0 0 104px;width:104px;min-width:104px;height:52px;min-height:52px;padding:0 8px;font-size:18px;white-space:nowrap;overflow:visible;box-sizing:border-box}
.s13v3-table .s13v3-actions .s13v3-stakes .s13v3-chip.on:disabled{flex:0 0 54px;width:54px;min-width:54px;max-width:54px;height:54px;min-height:54px;max-height:54px;margin:0;font-size:14px}

/* r19: chips followed immediately by grouped amounts and action buttons. */
.bacc-stage .bacc-dock{gap:8px;padding:10px 24px;justify-content:center}
.bacc-stage .bacc-dock .bacc-chip{order:1}
.bacc-stage .bacc-dock .bacc-visible-balance{order:2;width:264px;margin-left:8px}
.bacc-stage .bacc-dock .bacc-sum{order:3;width:196px}
.bacc-stage .bacc-dock .bacc-ghost{order:4;width:196px}
.bacc-stage .bacc-dock .bacc-ghost.cancel{order:5}
.bacc-stage .bacc-dock .bacc-reconcile{order:6}
.niu-stage.niu-reference .nr-stakebar{gap:6px!important}
.niu-stage.niu-reference .nr-stakebar>.nr-chip-prev{order:1}
.niu-stage.niu-reference .nr-stakebar>.nr-chips{order:2;gap:6px}
.niu-stage.niu-reference .nr-stakebar>.nr-chip-next{order:3}
.niu-stage.niu-reference .nr-stakebar>.nr-repeat{order:4}
.niu-stage.niu-reference .nr-stakebar>.nr-clear{order:5}
.niu-stage.niu-reference .nr-stakebar>.nr-cancel{order:6}
.s13v3-table .s13v3-dock>.s13v3-actions{order:1}
.s13v3-table .s13v3-dock>.s13v3-me{order:2}

/* r20: one fitted decorative frame around the existing Baccarat controls. */
.bacc-stage .bacc-dock{left:50%;transform:translateX(-50%);width:max-content;max-width:2300px;height:120px;padding:10px 18px;gap:8px;border:2px solid #b69958;border-radius:20px;background:linear-gradient(180deg,#294638 0%,#10291d 22%,#081b13 80%,#152c20 100%);box-shadow:inset 0 0 0 3px #07170f,inset 0 0 0 5px #8d733e,inset 0 9px 14px #d4b56920,0 5px 12px #0009;isolation:isolate}
.bacc-stage .bacc-dock::before{content:"";position:absolute;inset:7px;border:1px solid #d0b47555;border-radius:12px;pointer-events:none;z-index:-1}

/* Same frame treatment for all other bottom bars adjusted in this round. */
.niu-stage.niu-reference .nr-stakebar{left:50%;transform:translateX(-50%);width:max-content;max-width:1256px;height:70px;padding:3px 12px;border:2px solid #b69958;border-radius:13px;background:linear-gradient(#294638,#10291d 25%,#081b13 80%,#152c20)!important;box-shadow:inset 0 0 0 2px #07170f,inset 0 0 0 3px #8d733e,0 4px 9px #0009}
.s13v3-table .s13v3-dock>.s13v3-actions{border:2px solid #b69958;border-right:0;border-radius:13px 0 0 13px;background:linear-gradient(#294638,#10291d 25%,#081b13 80%,#152c20);box-shadow:inset 0 0 0 2px #07170f,inset 0 0 0 3px #8d733e,0 4px 9px #0009}
.s13v3-table .s13v3-dock>.s13v3-me{border:2px solid #b69958;border-left:1px solid #8d733e;border-radius:0 13px 13px 0;background:linear-gradient(#294638,#10291d 25%,#081b13 80%,#152c20);box-shadow:inset 0 0 0 2px #07170f,inset 0 0 0 3px #8d733e,0 4px 9px #0009}
.dt-stage::after{content:"";position:absolute;left:7px;top:700px;width:1266px;height:81px;box-sizing:border-box;border:2px solid #b69958;border-radius:13px;background:linear-gradient(#294638,#10291d 25%,#081b13 80%,#152c20);box-shadow:inset 0 0 0 2px #07170f,inset 0 0 0 3px #8d733e,0 4px 9px #0009;pointer-events:none;z-index:1}

/* Cover the artwork's obsolete painted controls outside the fitted frames. */
.niu-stage.niu-reference::after{content:"";position:absolute;left:0;top:638px;width:1280px;height:70px;background:#07170f;pointer-events:none;z-index:1}
.niu-stage.niu-reference .nr-stakebar{z-index:3}
.bacc-stage::after{content:"";position:absolute;left:0;top:960px;width:2340px;height:120px;background:#07170f;pointer-events:none;z-index:1}
.bacc-stage .bacc-dock{z-index:3}

/* r21: pin the clean artwork, with solid live UI surfaces and a single dock outline. */
.s13-stage.s13v3-table{background-image:url('/assets/s13-clean-felt-20261019-r21.webp?v=r21-final')!important}
.s13v3-table .s13v3-pot{background:#073c29;box-shadow:inset 0 0 0 1px #d2ad5f55,0 3px 9px #0006}
.s13v3-table .s13v3-phase{top:282px;left:490px;width:300px;height:29px;line-height:27px;border:1px solid #9a8048;border-radius:15px;background:#092c20;color:#ffe4a3;white-space:nowrap}
.s13v3-table .s13v3-corner .s13v3-chatdock{background:#091b14;border:1px solid #9a8048;box-shadow:none}
.s13v3-table .s13v3-corner .s13v3-chatdock input{background:#06120d}
.s13v3-table .s13v3-stake-label{writing-mode:horizontal-tb;letter-spacing:0;font-size:13px;line-height:18px}
.s13v3-table .s13v3-dock>.s13v3-actions{padding:7px 12px;border:1px solid #c1a266;border-right:0;border-radius:10px 0 0 10px;background:linear-gradient(#18372a,#0b2017);box-shadow:inset 0 1px #f6db9e22,0 3px 7px #0008}
.s13v3-table .s13v3-dock>.s13v3-me{border:1px solid #c1a266;border-left:1px solid #6f653e;border-radius:0 10px 10px 0;background:linear-gradient(#18372a,#0b2017);box-shadow:inset 0 1px #f6db9e22,0 3px 7px #0008}

.s13v3-table .s13v3-pot{border:1px solid #b99c5e;border-radius:12px;background:linear-gradient(#0a3928,#062b1e);box-shadow:inset 0 1px #f5d99522,0 3px 9px #0006}
.s13v3-table .s13v3-pot-head>span{display:none}

/* r22: separate denominations; only equal denominations stack vertically. */
.bacc-stage .bacc-spot .chip-stacks{display:flex;position:absolute;left:50%;top:50%;width:calc(100% - 18px);max-width:420px;height:auto;transform:translate(-50%,-35%);align-items:flex-end;justify-content:center;flex-wrap:wrap;gap:8px;pointer-events:none}
.bacc-stage .bacc-spot .chip-stacks>.chip-pile{position:relative;left:auto!important;top:auto!important;width:46px;min-width:46px;max-width:46px;flex:0 0 46px;margin:0}
.bacc-stage .bacc-spot .chip-stacks .chip-pile .casino-chip{width:46px;height:46px;padding:4px}
.bacc-stage .bacc-spot:not(.main) .chip-stacks{gap:4px;max-width:180px}
.bacc-stage .bacc-spot:not(.main) .chip-stacks>.chip-pile{width:30px;min-width:30px;max-width:30px;flex-basis:30px}
.bacc-stage .bacc-spot:not(.main) .chip-stacks .chip-pile .casino-chip{width:30px;height:30px;padding:2px;border-width:2px}
.bacc-stage .bacc-spot:not(.main) .chip-stacks .casino-chip span{font-size:8px;border-width:1px}
.bacc-stage .bacc-spot .chip-total{top:calc(100% + 8px);left:50%;transform:translateX(-50%)}
