/* ================= 手机 · 牌桌公共框架（所有统一 HUD 牌桌共用） =================
   归属：骨架线（fmobile）（方案 / 分工见 docs/mobile-a.md）。
   每条规则都挂在 html.m 下（js/core/mobile.js 判断是手机才加），电脑版一条都不命中；tests/mobile.test.js 逐条查。
   下面「旧规则」是原 css/mobile.css 的牌桌通用段（第一遍 §8 / §13 / §18、统一 HUD 过渡段、mtables 通用段、mpoker 的 P2 / T 通用段），多桌一起写的选择器留在这里；
   只管一张桌的规则在 css/m/<游戏>.css。A 方向的竖屏 / 横屏牌桌框架写在文件末尾「A 牌桌框架」一节。 */

/* ============ 8. 牌桌通用（横屏）：顶栏缩到右边，牌桌 HUD 顶上来并成一行；侧面板 → 右抽屉；rail 贴底 ============ */
html.m.m-land.m-hud #topbar{left:auto;width:auto;padding-left:10px;border-left:1px solid var(--brass-900);gap:6px;}
html.m.m-land.m-hud #topbar .hitem{display:none;}
html.m.m-land.m-hud #topbar .grow{flex:0 0 0;width:0;overflow:visible;}
/* 牌桌上现金 rail 里就有、会员卡回大厅看：顶栏右边只留 ATM · 路单 · 桌台，给牌桌 HUD 腾地方 */
html.m.m-land.m-hud #topbar .kv,html.m.m-land.m-hud #topbar #hTier,html.m.m-land.m-hud #topbar .mu-hud{display:none;}
html.m.m-land.m-hud #topbar .btn:not(.m-x){font-size:0;gap:0;padding:0 9px;}
html.m.m-land.m-hud #topbar .btn:not(.m-x) .ic{width:17px;height:17px;}
html.m.m-hud .screen.active > .content{margin-top:var(--m-safe-t);}
html.m.m-game #tblHead{height:var(--m-top);min-height:var(--m-top);padding:0 calc(var(--m-topw,320px) + 6px) 0 12px;gap:8px;}
html.m.m-game #tblHead .badge,html.m.m-game #tblHead .hud-sub,html.m.m-game #tblHead .sep{display:none;}
html.m.m-game #tblHead .hud-title{font-size:15px;flex:none;}
html.m.m-game #tblHead .kv{flex:none;}
html.m.m-game #tblHead .kv b{font-size:14px;}
html.m.m-game #tblHead .kv small{font-size:10px;}
html.m.m-game #tblHead .kv:first-of-type{margin-left:auto;}
html.m.m-game #tblHead .btn{position:relative;height:32px;padding:0 10px;flex:none;}
html.m.m-game #tblHead .btn::before{content:"";position:absolute;left:-2px;right:-2px;top:50%;height:44px;margin-top:-22px;}
html.m.m-game #tblHead .btn.ghost:not(.danger){font-size:0;gap:0;padding:0 9px;}    /* 规则 / 声音：只留图标 */
html.m.m-game #tblHead .btn.ghost:not(.danger) .ic{width:17px;height:17px;}
html.m.m-game #tblHead .btn.ghost:not(.danger):not(:has(.ic)){font-size:11px;padding:0 8px;}   /* 没图标的（环境音）照样写字 */
html.m .screen .lt-layout{grid-template-columns:minmax(0,1fr) !important;}
html.m .lt-main{min-width:0;}
/* rail：托盘筹码大一号、不要行标签和面额小字（筹码面上就有）；按钮 44 高 */
html.m .rail{padding-bottom:var(--m-safe-b);}
html.m .rail .tray{padding:2px 8px 4px;border-radius:8px;}
html.m .rail .tray .tlbl,html.m .rail .chipslot small{display:none;}
html.m .rail .tray .trow{gap:6px;}
html.m .rail .tray .grp{gap:6px;flex-wrap:nowrap;}
html.m .rail .tray .chip{width:48px;height:48px;}
html.m .rail .tray .chip::before{inset:9px;}
html.m .rail .tray .chip::after{font-size:12px;}
html.m .rail .tray .plq{width:66px;height:46px;}
html.m .rail .chipslot{padding-top:7px;gap:0;}
html.m .rail .chipslot.sel .chip,html.m .rail .chipslot.sel .plq{transform:translateY(-6px);}
html.m .rail .chipslot.sel::after{bottom:-2px;}
html.m .rail .chipslot:hover .chip,html.m .rail .chipslot:hover .plq{transform:none;}
html.m .rail .chipslot.sel:hover .chip,html.m .rail .chipslot.sel:hover .plq{transform:translateY(-6px);}
html.m .rail .ru-btns{gap:6px;}
html.m .rail .ru-btns .btn{height:44px;padding:0 12px;font-size:13px;}
html.m .rail .sl-info{font-size:11px;}
html.m .rail .sl-info b{font-size:15px;}
/* 倒计时环：手机上 60 */
html.m .screen .lt-ring{width:60px;height:60px;}
html.m .screen .lt-ring .v b{font-size:21px;}
html.m .screen .lt-ring .v small{font-size:10px;letter-spacing:.1em;margin-top:2px;}
/* 路单屏 → 左抽屉 */
html.m.m-game .m-roadbox{position:fixed !important;left:0;top:0;bottom:0;right:auto;z-index:50;margin:0 !important;width:min(300px,82vw);height:auto !important;
  padding:calc(8px + var(--m-safe-t)) 8px calc(8px + var(--m-safe-b)) calc(8px + var(--m-safe-l));border-radius:0;
  transform:translateX(-104%);transition:transform .22s ease;visibility:hidden;box-shadow:18px 0 40px rgba(0,0,0,.7);}
html.m.m-road .screen.active .m-roadbox{transform:none;visibility:visible;}
/* ============ 13. 三卡 / 小德州 / 21 点 / 德州牌桌：已迁到统一牌桌 HUD（css/table-hud.css）。手机横屏第二遍适配前的过渡：台面整体缩小（同百家乐） ============ */
html.m .bj-th,html.m .cv-th,html.m .pk-th{--th-board:44px;}   /* 细屏在手机上不用 118 高（那是百家乐路单的） */
html.m .bj-cloth,html.m .cv-cloth{zoom:.52;}   /* 半月台两端的座位要整个放得下 */
html.m .cv-root .th-acts .btn small{display:none;}
/* ---- 从原 §17 搬来 ---- */
html.m .rail .sl-info{white-space:nowrap;}
/* ============ 18. 矮屏（Safari 横屏带工具栏、iPhone SE 这类 ≤ 350 高）：再挤一点；万一还放不下，台面区自己能上下滑，不会被 rail 盖住 ============ */
html.m .ru-stage,html.m .sb-stage,html.m .cr-stage,html.m .pg-stage{overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
html.m .sb-stage{align-items:flex-start;}
html.m .sb-table,html.m .sb-left{align-self:auto;margin-top:auto;margin-bottom:auto;}
@media (max-height:350px){
  html.m.m-land{--m-top:36px;--m-rail:60px;}
  html.m .rail .tray .chip{width:44px;height:44px;}
  html.m .rail .tray .chip::before{inset:8px;}
  html.m .rail .ru-btns .btn,html.m .cr-rail .ru-btns .btn{height:40px;}
  html.m.m-game #tblHead .btn{height:30px;}
  html.m #topbar .btn{height:30px;}
  html.m .cr-top{display:none;}                                   /* 台边玩家条让给台面（掷骰人在台面报点里） */
  html.m .cr-stage{padding-left:60px;}
  html.m #crRing{top:6px;}
  html.m .pg-house .pg-tile svg{width:20px;height:39px;}
  html.m .pg-box .pg-tile svg{width:15px;height:29px;}
  html.m .pg-tiles{min-height:38px;}
  html.m .pg-bet{height:20px;}
}
/* 窄横屏（iPhone SE 667 宽）：HUD 里的局数、Craps 分厅切换让位；顶栏抽屉键只留图标 */
@media (max-width:740px){
  html.m.m-game #tblHead .kv:first-of-type:not(:last-of-type){display:none;}
  html.m.m-game #tblHead .cr-halls{display:none;}
  html.m.m-game #tblHead .kv:has(#crOnTable){display:none;}
  html.m.m-land #topbar .m-x.btn{font-size:0;gap:0;padding:0 10px;}
  /* rail 挤不下时托盘自己横着滑，别把按钮 / 现金挤出去 */
  html.m .rail .ru-chiprow{flex:0 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;}
  html.m .rail .ru-chiprow::-webkit-scrollbar{display:none;}
  html.m .rail .tray .chip{width:44px;height:44px;}
  html.m .rail .tray .chip::before{inset:8px;}
  html.m .cr-railinfo{flex:0 0 auto;}
  html.m .cr-mode button{padding:0 6px;}
  html.m .cr-on span{font-size:0;}
  html.m .cr-on span::after{content:"come-out ON";font-size:12px;}
  html.m .cr-rail .ru-btns .btn.primary{padding:0 10px;}
}
/* ============ 统一牌桌 HUD（css/table-hud.css）在手机横屏上：整体不缩放，只把几块压扁（百家乐第二遍适配前的过渡） ============ */
html.m .th{--th-board:118px;grid-template-rows:36px var(--th-board) 4px minmax(0,1fr) 66px;grid-template-columns:6px minmax(0,1fr) 6px;}
html.m .th-strip{height:36px;padding:0 calc(8px + var(--m-safe-r)) 0 calc(10px + var(--m-safe-l));gap:8px;}
html.m .th-lim{font-size:13px;gap:6px;}
html.m .th-rail{padding:0 calc(8px + var(--m-safe-r)) var(--m-safe-b) calc(8px + var(--m-safe-l));gap:8px;}
html.m .th-bal{min-width:0;padding:5px 10px;}
html.m .th-bal .v{font-size:18px;}
html.m .th-tray{padding:6px 10px;gap:6px;}
html.m .th-tray .cs .chip{width:40px;height:40px;} html.m .th-tray .cs .chip::before{inset:8px;} html.m .th-tray .cs .chip::after{font-size:11px;}
html.m .th-tray .cs .plq{width:54px;height:36px;}
html.m .th-acts .btn{height:44px;min-width:0;padding:0 12px;font-size:13px;letter-spacing:.04em;}
html.m .th-drawer{top:36px;bottom:66px;width:min(300px,80%);}
/* ============ 第二遍 · mtables：百家乐 / 21 点 / Arena / 锦标赛桌（统一牌桌 HUD）在手机横屏上 ============
   不再整块缩放台面（缩到 0.5 字就小过下限、格子点不准），按手机尺寸重排：
   · Z0 顶栏 36（矮屏 34）：时钟 / 荷官头像收起；按钮看着 30、点击范围 44；多一颗「路单」键（mobile.js installHudRoad）
   · Z1 顶部屏（路单 / 走势 / 巨幕）→ 左抽屉（html.m-road）；台面拿到顶栏以下、rail 以上的整块
   · Z3 rail 64（矮屏 58）：余额 · 筹码 44（放不下自己横滑）· 操作键 44 高（窄屏 ghost 键只留图标）
   · Z4 其它桌抽屉照旧（顶栏「其它桌」键开合），右边那条把手收起（手机上压着台面）
   各游戏台面怎么排写在各自 css 末尾的 html.m 段（css/baccarat.css · blackjack.css · stadium.css · tourney.css）。 */
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen){--mt-strip:36px;--mt-rail:64px;}
html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th{grid-template-rows:var(--mt-strip) 0 0 minmax(0,1fr) calc(var(--mt-rail) + var(--m-safe-b));grid-template-columns:4px minmax(0,1fr) 4px;}
/* Z0 顶栏 */
html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-strip{height:var(--mt-strip);min-height:var(--mt-strip);padding:0 6px 0 10px;gap:6px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-lim{font-size:13px;gap:5px;letter-spacing:.04em;min-width:0;overflow:hidden;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-clock,
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-dealer{display:none;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-i{position:relative;width:26px;height:26px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-sq{position:relative;height:30px;min-width:34px;padding:0 6px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-sq::before{content:"";position:absolute;left:-5px;right:-5px;top:50%;height:44px;margin-top:-22px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-i::before{content:"";position:absolute;left:-9px;right:-9px;top:50%;height:44px;margin-top:-22px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-leave{padding:0 10px;font-size:13px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-strip .m-throad{display:inline-flex;}
html.m.m-road :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-strip .m-throad{border-color:var(--brass-700);color:var(--brass-300);}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tl .tl{height:24px;padding:0 7px;gap:5px;font-size:12px;}
/* Z5 (i) 弹层：顶栏下沿起，放不下就自己滑 */
html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-pop{left:8px;top:calc(var(--mt-strip) + 4px);width:min(420px,calc(100% - 16px));max-height:calc(100% - var(--mt-strip) - 10px);overflow-y:auto;overscroll-behavior:contain;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-pop .th-pop-f .btn{height:40px;}
/* Z1 顶部屏 → 左抽屉 */
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th > .th-board{position:fixed;left:0;top:0;bottom:0;right:auto;z-index:50;width:min(340px,86vw);height:auto;margin:0;
  padding:calc(8px + var(--m-safe-t)) 8px calc(8px + var(--m-safe-b)) calc(8px + var(--m-safe-l));
  background:linear-gradient(180deg,#140e0a,#0c0806);border-right:1px solid var(--brass-900);box-shadow:18px 0 40px rgba(0,0,0,.7);
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  transform:translateX(-104%);visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s;}
html.m.m-road :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen).active .th > .th-board{transform:none;visibility:visible;transition:transform .22s ease;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th > .th-board > .th-bezel{height:auto;min-height:100%;}
/* Z4 其它桌抽屉：把手收起，顶栏「其它桌」键开合 */
html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-drawer{top:var(--mt-strip);bottom:calc(var(--mt-rail) + var(--m-safe-b));width:min(320px,82%);}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tab{display:none;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-drawer .tcard{min-height:56px;}
/* Z2d 你的位置：点击范围 44 */
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-you{height:32px;padding:0 12px 0 5px;gap:8px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-you::before{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:46px;margin-top:-23px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-menu{gap:4px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-menu button{height:44px;padding:0 12px;font-size:13px;}   /* 座位菜单（坐下 / 换座…）：点击 44 */
/* Z3 rail：余额 · 筹码（中间，放不下横滑）· 操作键 */
html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-rail{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding:0 8px var(--m-safe-b);}
html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-bal{grid-column:1;min-width:0;padding:5px 10px;gap:3px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-bal .v{font-size:18px;gap:6px;}
html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-bal .v .ic{width:14px;height:14px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-bal .s{font-size:11px;gap:8px;}
html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray{grid-column:2;justify-self:center;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;
  padding:8px 8px 3px;gap:6px;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray::-webkit-scrollbar{display:none;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray .cs .chip{width:44px;height:44px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray .cs .chip::before{inset:8px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray .cs .chip::after{font-size:11px;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray .cs:hover .chip,
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray .cs:hover .plq{transform:none;}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray .cs.sel .chip,
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray .cs.sel .plq{transform:translateY(-5px);}
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray .cs.sel::after{bottom:-5px;}
html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-acts{grid-column:3;gap:6px;}
html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-acts .btn{height:44px;min-width:0;padding:0 12px;font-size:14px;letter-spacing:.04em;}
@media (max-height:350px){
  html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen){--mt-strip:34px;--mt-rail:58px;}
  html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray{padding-top:6px;padding-bottom:2px;}
  html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-bal{padding:3px 8px;}
  html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-bal .v{font-size:16px;}
}
/* 窄横屏（iPhone SE 667 / 刘海机让出安全区后）：撤销 / 重复这类带图标的次要键只留图标，余额前的图标收起 */
@media (max-width:760px){
  html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-acts .btn:has(.ic):not(.primary):not(.th-unconf){font-size:0;gap:0;width:44px;padding:0;justify-content:center;}
  html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-acts .btn .ic{width:18px;height:18px;}
  html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-bal .v .ic{display:none;}
  html.m.m-land:not(.m-ta) :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tl{display:none;}
}
/* 牌面角标：手机上牌只有 38–44 宽，角标按牌宽算会小过 10，托住下限 */
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .card.face .idx{font-size:max(19cqw,10px);}
/* 托盘里的大额长方筹码（plaque）：44 高 */
html.m :is(#bacScreen,#bjScreen,#stdScreen,#tnScreen) .th-tray .cs .plq{width:64px;height:44px;}
/* —— mtables 通用段完（各游戏台面见各自 css 末尾） —— */
/* ---- 原 mpoker 线的通用段（P2 / T） ---- */
/* ---------- P2. 我这几张 HUD 牌桌（德州 / 轮盘 / 骰宝 / Craps / 牌九 / 三卡 · 小德州 / 老虎机）的顶栏：图标键看着 32，点得到 44；(i) 弹层能滑；抽屉把手收起 ---------- */
html.m .pk-th .th-strip,html.m .ru-th .th-strip,html.m .sb-th .th-strip,html.m .cr-th .th-strip,html.m .pg-th .th-strip,html.m .cv-th .th-strip,html.m .sl-th .th-strip{padding:0 calc(6px + var(--m-safe-r)) 0 calc(10px + var(--m-safe-l));gap:4px;}
html.m .pk-th .th-lim,html.m .ru-th .th-lim,html.m .sb-th .th-lim,html.m .cr-th .th-lim,html.m .pg-th .th-lim,html.m .cv-th .th-lim,html.m .sl-th .th-lim{font-size:13px;gap:5px;min-width:0;overflow:hidden;}
html.m .pk-th .th-sq,html.m .ru-th .th-sq,html.m .sb-th .th-sq,html.m .cr-th .th-sq,html.m .pg-th .th-sq,html.m .cv-th .th-sq,html.m .sl-th .th-sq{position:relative;min-width:36px;padding:0 6px;}
html.m .pk-th .th-i,html.m .ru-th .th-i,html.m .sb-th .th-i,html.m .cr-th .th-i,html.m .pg-th .th-i,html.m .cv-th .th-i,html.m .sl-th .th-i{position:relative;margin:0 4px;}
html.m .pk-th .th-sq::before,html.m .ru-th .th-sq::before,html.m .sb-th .th-sq::before,html.m .cr-th .th-sq::before,html.m .pg-th .th-sq::before,html.m .cv-th .th-sq::before,html.m .sl-th .th-sq::before{content:"";position:absolute;left:-2px;right:-2px;top:50%;height:44px;margin-top:-22px;}
html.m .pk-th .th-i::before,html.m .ru-th .th-i::before,html.m .sb-th .th-i::before,html.m .cr-th .th-i::before,html.m .pg-th .th-i::before,html.m .cv-th .th-i::before,html.m .sl-th .th-i::before{content:"";position:absolute;left:-10px;right:-10px;top:50%;height:44px;margin-top:-22px;}
html.m .pk-th .th-pop,html.m .ru-th .th-pop,html.m .sb-th .th-pop,html.m .cr-th .th-pop,html.m .pg-th .th-pop,html.m .cv-th .th-pop,html.m .sl-th .th-pop{left:calc(8px + var(--m-safe-l));top:calc(var(--m-top) + 4px);max-height:calc(100% - var(--m-top) - 12px);overflow-y:auto;overscroll-behavior:contain;}
/* 抽屉把手（台布右边那条 28 宽的竖条）在手机上压着台面：收起，用顶栏的「其它桌」键开 */
html.m .pk-th .th-tab,html.m .ru-th .th-tab,html.m .sb-th .th-tab,html.m .cr-th .th-tab,html.m .pg-th .th-tab,html.m .cv-th .th-tab,html.m .sl-th .th-tab{display:none;}
html.m .pk-th .th-drawer,html.m .ru-th .th-drawer,html.m .sb-th .th-drawer,html.m .cr-th .th-drawer,html.m .pg-th .th-drawer,html.m .cv-th .th-drawer,html.m .sl-th .th-drawer{top:var(--m-top);bottom:0;width:min(300px,82vw);z-index:40;padding-right:var(--m-safe-r);}
/* ---------- T. 轮盘 / 骰宝 / Craps / 牌九 / 三卡 · 小德州（统一牌桌 HUD 版）横屏：顶栏 40 · 细屏 · 台面 · rail 64
   （通用那条 html.m .th 把细屏写成了 118——百家乐的路单高；这几张桌是 .th.slim，在这里按桌改） ---------- */
/* 顶部细屏（轮盘统计 / 骰宝路单 / Craps 掷骰记录 / 牌九开牌 / 荷官最近几手 / 德州最近几手）收起来给台面，顶栏多一颗「路单」键（mobile.js installMpoker），点了从顶栏下面落下来 */
html.m .th.ru-th,html.m .th.sb-th,html.m .th.cr-th,html.m .th.pg-th,html.m .th.cv-th{--th-board:0px;grid-template-rows:var(--m-top) 0 2px minmax(0,1fr) 64px;}
html.m .ru-th .th-board,html.m .sb-th .th-board,html.m .cr-th .th-board,html.m .pg-th .th-board,html.m .cv-th .th-board,html.m .pk-th .th-board{display:none;}
html.m.m-road .ru-th .th-board,html.m.m-road .sb-th .th-board,html.m.m-road .cr-th .th-board,html.m.m-road .pg-th .th-board,html.m.m-road .cv-th .th-board,html.m.m-road .pk-th .th-board{display:block;position:absolute;left:0;right:0;top:4px;height:clamp(92px,32vh,132px);z-index:49;box-shadow:0 14px 30px rgba(0,0,0,.7);}
html.m .th-strip .m-x.m-throad{display:inline-flex;}
html.m.m-road .th-strip .m-throad{border-color:var(--brass-700);color:var(--brass-300);}
/* rail：余额 · 托盘（中间那格自己能缩、放不下就横着滑）· 键（按自己的宽）；托盘筹码 44 */
html.m .ru-th .th-rail,html.m .sb-th .th-rail,html.m .cr-th .th-rail,html.m .pg-th .th-rail,html.m .cv-th .th-rail{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;}
html.m .ru-th .th-tray,html.m .sb-th .th-tray,html.m .cr-th .th-tray,html.m .pg-th .th-tray,html.m .cv-th .th-tray{max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:4px 10px;}
html.m .ru-th .th-tray::-webkit-scrollbar,html.m .sb-th .th-tray::-webkit-scrollbar,html.m .cr-th .th-tray::-webkit-scrollbar,html.m .pg-th .th-tray::-webkit-scrollbar,html.m .cv-th .th-tray::-webkit-scrollbar{display:none;}
html.m .ru-th .th-tray .cs .chip,html.m .sb-th .th-tray .cs .chip,html.m .cr-th .th-tray .cs .chip,html.m .pg-th .th-tray .cs .chip,html.m .cv-th .th-tray .cs .chip{width:44px;height:44px;}
html.m .ru-th .th-tray .cs .chip::before,html.m .sb-th .th-tray .cs .chip::before,html.m .cr-th .th-tray .cs .chip::before,html.m .pg-th .th-tray .cs .chip::before,html.m .cv-th .th-tray .cs .chip::before{inset:8px;}
html.m .ru-th .th-bal .s,html.m .sb-th .th-bal .s,html.m .cr-th .th-bal .s,html.m .pg-th .th-bal .s,html.m .cv-th .th-bal .s{font-size:11px;gap:8px;}
@media (max-width:740px){
  html.m .ru-th .th-acts .btn:not(.primary):not(.th-unconf):has(.ic),html.m .sb-th .th-acts .btn:not(.primary):not(.th-unconf):has(.ic),html.m .cr-th .th-acts .btn:not(.primary):not(.th-unconf):has(.ic),html.m .pg-th .th-acts .btn:not(.primary):not(.th-unconf):has(.ic),html.m .cv-th .th-acts .btn:not(.primary):not(.th-unconf):has(.ic){font-size:0;gap:0;width:44px;padding:0;}
  html.m .ru-th .th-acts .btn:not(.primary) .ic,html.m .sb-th .th-acts .btn:not(.primary) .ic,html.m .cr-th .th-acts .btn:not(.primary) .ic,html.m .pg-th .th-acts .btn:not(.primary) .ic,html.m .cv-th .th-acts .btn:not(.primary) .ic{width:18px;height:18px;}
  html.m .ru-th .th-bal .s,html.m .sb-th .th-bal .s,html.m .cr-th .th-bal .s,html.m .pg-th .th-bal .s,html.m .cv-th .th-bal .s{display:none;}
  html.m .ru-th .th-bal .v,html.m .sb-th .th-bal .v,html.m .cr-th .th-bal .v,html.m .pg-th .th-bal .v,html.m .cv-th .th-bal .v{font-size:16px;}
}
/* 倒计时环：台布顶边正中，手机上 50 */
html.m .ru-th .th-ring,html.m .sb-th .th-ring,html.m .cr-th .th-ring,html.m .pg-th .th-ring,html.m .cv-th .th-ring{top:4px;width:50px;height:50px;margin-left:-25px;}
html.m .ru-th .th-ring .lt-ring,html.m .sb-th .th-ring .lt-ring,html.m .cr-th .th-ring .lt-ring,html.m .pg-th .th-ring .lt-ring,html.m .cv-th .th-ring .lt-ring{width:50px;height:50px;}
html.m .ru-th .th-ring .lt-ring .v b,html.m .sb-th .th-ring .lt-ring .v b,html.m .cr-th .th-ring .lt-ring .v b,html.m .pg-th .th-ring .lt-ring .v b,html.m .cv-th .th-ring .lt-ring .v b{font-size:19px;}
html.m .ru-th .th-tbl,html.m .sb-th .th-tbl,html.m .cr-th .th-tbl,html.m .pg-th .th-tbl{padding:8px 8px 0;border-radius:18px 18px 0 0;}
html.m .ru-th .th-cloth,html.m .sb-th .th-cloth,html.m .cr-th .th-cloth,html.m .pg-th .th-cloth{inset:8px 8px 0;border-radius:10px 10px 0 0;}
/* 顶栏里的桌牌小牌（CLOSING / MIN $100 20:00 / 旧注码 + YOU）：最多一起挂三四块，窄屏会把离桌键挤出去——窄屏只留一块（有旧注码时是你那块 YOU，否则第一块、CLOSING 排在最前），挤不下时先截左边的限红行 */
html.m .ru-th .th-strip > *,html.m .sb-th .th-strip > *,html.m .cr-th .th-strip > *,html.m .pg-th .th-strip > *,html.m .cv-th .th-strip > *,html.m .pk-th .th-strip > *,html.m .sl-th .th-strip > *{flex-shrink:0;}
html.m .ru-th .th-strip > .th-lim,html.m .sb-th .th-strip > .th-lim,html.m .cr-th .th-strip > .th-lim,html.m .pg-th .th-strip > .th-lim,html.m .cv-th .th-strip > .th-lim,html.m .pk-th .th-strip > .th-lim,html.m .sl-th .th-strip > .th-lim{flex-shrink:1;}
html.m .ru-th .th-strip > .sp,html.m .sb-th .th-strip > .sp,html.m .cr-th .th-strip > .sp,html.m .pg-th .th-strip > .sp,html.m .cv-th .th-strip > .sp,html.m .pk-th .th-strip > .sp,html.m .sl-th .th-strip > .sp{flex-shrink:1;min-width:0;}
@media (max-width:900px){
  html.m .ru-th .th-tl .tl + .tl,html.m .sb-th .th-tl .tl + .tl,html.m .cr-th .th-tl .tl + .tl,html.m .pg-th .th-tl .tl + .tl,html.m .cv-th .th-tl .tl + .tl,html.m .pk-th .th-tl .tl + .tl{display:none;}
  /* 有旧注码（.me）时留你自己那块「$50 YOU」（它比 CLOSING / 新限红更要紧：你照旧能按这个数下）*/
  html.m .ru-th .th-tl:has(.tl.me) .tl:not(.me),html.m .sb-th .th-tl:has(.tl.me) .tl:not(.me),html.m .cr-th .th-tl:has(.tl.me) .tl:not(.me),html.m .pg-th .th-tl:has(.tl.me) .tl:not(.me),html.m .cv-th .th-tl:has(.tl.me) .tl:not(.me),html.m .pk-th .th-tl:has(.tl.me) .tl:not(.me){display:none;}
  html.m .ru-th .th-tl .tl.me,html.m .sb-th .th-tl .tl.me,html.m .cr-th .th-tl .tl.me,html.m .pg-th .th-tl .tl.me,html.m .cv-th .th-tl .tl.me,html.m .pk-th .th-tl .tl.me{display:inline-flex;}
}
@media (max-width:740px){
  html.m .ru-th .th-clock,html.m .sb-th .th-clock,html.m .cr-th .th-clock,html.m .pg-th .th-clock,html.m .cv-th .th-clock,html.m .pk-th .th-clock,html.m .sl-th .th-clock{display:none;}
}
/* 更宽（915）最多两块。旧注码那两块（MIN $新 + $旧 YOU）在手机上只留 YOU（顶栏限红行写着新的最低注），排在它后面的下一档调高收起 */
html.m .ru-th .th-tl .tl:nth-child(n+3):not(.me),html.m .sb-th .th-tl .tl:nth-child(n+3):not(.me),html.m .cr-th .th-tl .tl:nth-child(n+3):not(.me),html.m .pg-th .th-tl .tl:nth-child(n+3):not(.me),html.m .cv-th .th-tl .tl:nth-child(n+3):not(.me),html.m .pk-th .th-tl .tl:nth-child(n+3):not(.me){display:none;}
html.m .ru-th .th-tl .tl:has(+ .tl.me),html.m .sb-th .th-tl .tl:has(+ .tl.me),html.m .cr-th .th-tl .tl:has(+ .tl.me),html.m .pg-th .th-tl .tl:has(+ .tl.me),html.m .cv-th .th-tl .tl:has(+ .tl.me),html.m .pk-th .th-tl .tl:has(+ .tl.me),html.m .ru-th .th-tl .tl.me ~ .tl,html.m .sb-th .th-tl .tl.me ~ .tl,html.m .cr-th .th-tl .tl.me ~ .tl,html.m .pg-th .th-tl .tl.me ~ .tl,html.m .cv-th .th-tl .tl.me ~ .tl,html.m .pk-th .th-tl .tl.me ~ .tl{display:none;}
/* 荷官换班小牌：手机上压成一行矮的（停那几秒挂在顶栏荷官下面，别盖住台上的骰盅 / 荷官的牌） */
html.m .ru-th .tl-swap,html.m .sb-th .tl-swap,html.m .cr-th .tl-swap,html.m .pg-th .tl-swap,html.m .cv-th .tl-swap,html.m .pk-th .tl-swap{padding:4px 10px 4px 6px;gap:8px;}
html.m .th .tl-swap .p,html.m .th .tl-swap .p .pk-face{width:26px;height:26px;}
html.m .th .tl-swap .ar{width:13px;height:13px;}
html.m .th .tl-swap .tx{flex-direction:row;align-items:baseline;gap:8px;}
html.m .th .tl-swap b{font-size:13px;letter-spacing:.12em;}
html.m .th .tl-swap small{font-size:11px;letter-spacing:.1em;}

/* ======================================================================================================
   A 牌桌框架（docs/mobile-a.md · 样稿 design-options/mobile/A，js/m/table.js）
   竖屏「上面看、下面点」：顶栏 48（‹ 离桌 · 桌名 / 限红 · 筹码 · ⋯）→ 台面（看区）→ 路单条 44（点 / 上拉：路单屏盖住台面下半截）
                          → 注区格子 .m-tslot.bets（重画过的桌用）→ 筹码坞 72（横滑，右边渐隐）+ 操作行 52（主按钮最右，拇指区）
   html.m-tf = 这张桌还没重画：台面按横屏手机版排好、整块等比缩小放进看区（js/m/table.js 算 --m-fz）；html.m-ta = 重画过（各线自己排台面）
   横屏：m-tf 照旧横屏版（上面那些旧规则）；m-ta 左边看（台面 + 路单条）、右边点（注区 + 筹码 + 操作）。不弹任何转屏提示。
   上面旧规则里 mtables 段的框架级规则只在「横屏 · 没重画的桌」（.m-land:not(.m-ta)）生效；这里的选择器都带 .screen .th，压得过旧的 .ru-th / .pk-th 那些。
   路单屏那几条带 :not(#m_)（永远成立，只为抬到 id 级优先级）：旧的 .th > .th-board 规则有 id 级的（mtables、css/stadium.css），竖屏 / A 横屏都要压过它们。
   ====================================================================================================== */
html.m.m-game{--mt-top:48px;}

/* ---------- 竖屏骨架 ---------- */
html.m.m-port.m-hud .screen.active > .content{margin-top:0;}
html.m.m-port.m-game .screen.active .th{
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:calc(var(--mt-top) + var(--m-safe-t)) minmax(0,1fr) auto auto auto;
  grid-template-areas:"strip" "felt" "road" "bets" "rail";}
/* 顶栏：‹ 离桌（拇指够得到的左上）· 桌名 + 限红（一行，放不下省略）· 筹码 · ⋯（规则 / 换桌 / 饮料 / 声音 / 离桌都在里面） */
html.m.m-port.m-game .screen.active .th > #tblHead.th-strip{grid-area:strip;height:calc(var(--mt-top) + var(--m-safe-t));min-height:0;
  padding:var(--m-safe-t) calc(2px + var(--m-safe-r)) 0 calc(2px + var(--m-safe-l));gap:2px;align-items:center;
  background:linear-gradient(180deg,#120c09,#0d0907);border-bottom:1px solid rgba(0,0,0,.6);}
html.m.m-port.m-game .screen.active .th > #tblHead > .th-i,html.m.m-port.m-game .screen.active .th > #tblHead > .th-dealer,html.m.m-port.m-game .screen.active .th > #tblHead > .th-clock,html.m.m-port.m-game .screen.active .th > #tblHead > .th-drink,html.m.m-port.m-game .screen.active .th > #tblHead > [data-snd],html.m.m-port.m-game .screen.active .th > #tblHead > .th-sq.tables,html.m.m-port.m-game .screen.active .th > #tblHead > .m-throad,html.m.m-port.m-game .screen.active .th > #tblHead > .sp,html.m.m-port.m-game .screen.active .th > #tblHead > .tn-pill{display:none;}
html.m.m-port.m-game .screen.active .th > #tblHead > .th-leave{order:-1;width:44px;min-width:44px;height:44px;padding:0;justify-content:center;font-size:0;gap:0;
  border:0;background:transparent;color:var(--brass-300);border-radius:10px;}
html.m.m-port.m-game .screen.active .th > #tblHead > .th-leave .ic{display:none;}
html.m.m-port.m-game .screen.active .th > #tblHead > .th-leave::after{content:"";width:12px;height:12px;margin-left:5px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);}
html.m.m-port.m-game .screen.active .th > #tblHead > .th-lim{flex:1 1 auto;min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:14px;letter-spacing:.04em;line-height:19px;padding-left:2px;}
html.m.m-port.m-game .screen.active .th > #tblHead > .th-lim .dot{margin:0 3px;}
/* 桌名一行、限红一行（复核：一行放不下时上限被省略号吃掉）：最后一个「·」变成换行 */
html.m.m-port.m-game .screen.active .th > #tblHead > .th-lim .dot:last-of-type{display:block;width:0;height:0;overflow:hidden;margin:0;}
html.m.m-port.m-game .screen.active .th > #tblHead > .th-tl{flex:none;}
html.m.m-port.m-game .screen.active .th > #tblHead > .th-tl .tl{height:24px;padding:0 7px;font-size:12px;}
html.m.m-port.m-game .screen.active .th > #tblHead > .th-tl .tl + .tl{display:none;}
html.m.m-port.m-game .screen.active .th > #tblHead > .m-thbal{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;flex:none;line-height:1.15;padding:0 2px 0 6px;}
html.m.m-port.m-game .screen.active .th > #tblHead > .m-thbal small{font-size:12px;color:var(--ma-tx3);opacity:1;}
html.m.m-port.m-game .screen.active .th > #tblHead > .m-thbal b{font-family:var(--serif);font-weight:400;font-size:17px;color:var(--brass-100);white-space:nowrap;}
html.m.m-port.m-game .screen.active .th > #tblHead > .m-thmore{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:0;
  border-radius:10px;background:transparent;color:var(--brass-500);cursor:pointer;}
html.m.m-port.m-game .screen.active .th > #tblHead > .m-thmore .ic{width:22px;height:22px;}
/* (i) 弹层：顶栏下面整宽，放不下自己滑 */
html.m.m-port.m-game .screen.active .th > .th-pop{left:calc(8px + var(--m-safe-l));right:calc(8px + var(--m-safe-r));width:auto;top:calc(var(--mt-top) + var(--m-safe-t) + 4px);
  max-height:calc(100% - var(--mt-top) - var(--m-safe-t) - 16px);overflow-y:auto;overscroll-behavior:contain;z-index:30;}
/* 台面（看区） */
html.m.m-port.m-game .screen.active .th > .th-felt{grid-area:felt;min-height:0;}
/* 路单条：常驻一行（各线往 .m-roadsum 里放摘要，比如百家乐的珠盘路），点 / 上拉 = 路单屏 */
html.m.m-port.m-game .screen.active .th > .m-roadbar{grid-area:road;display:flex;align-items:center;gap:10px;height:44px;min-width:0;padding:0 6px 0 14px;position:relative;z-index:9;
  border:0;border-top:1px solid rgba(201,160,82,.3);background:linear-gradient(180deg,#0d1419,#060a0d);color:#d5dee4;font-family:var(--sans);font-size:13px;letter-spacing:.06em;
  text-align:left;cursor:pointer;touch-action:none;}
html.m.m-port.m-game .m-roadbar .m-roadsum{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;overflow:hidden;white-space:nowrap;}
html.m.m-port.m-game .m-roadbar .m-roadh{flex:none;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--brass-300);transition:transform .3s;}
html.m.m-port.m-game .m-roadbar .m-roadh .ic{width:20px;height:20px;}
html.m.m-port.m-roadup .m-roadbar .m-roadh{transform:rotate(180deg);}
/* 路单屏（原来的顶部屏 .th-board）：拉起来盖在台面下半截（不盖注区 / 筹码 / 操作），收起时藏在路单条下面 */
html.m.m-port.m-game .screen.active:not(#m_) .th > .th-board{display:block;position:absolute;left:0;right:0;top:auto;bottom:var(--m-road-b,180px);height:var(--m-road-oh,50%);width:auto;margin:0;
  z-index:8;padding:8px calc(8px + var(--m-safe-r)) 8px calc(8px + var(--m-safe-l));overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  border-radius:16px 16px 0 0;background:linear-gradient(180deg,#0d1419,#060a0d);box-shadow:0 -14px 30px rgba(0,0,0,.55);
  transform:translateY(calc(100% + 8px));visibility:hidden;transition:transform .3s cubic-bezier(.2,.8,.2,1),visibility 0s linear .3s;}
html.m.m-port.m-roadup.m-game .screen.active:not(#m_) .th > .th-board{transform:none;visibility:visible;transition:transform .3s cubic-bezier(.2,.8,.2,1);}
html.m.m-port.m-game .screen.active:not(#m_) .th > .th-board > .th-bezel{height:auto;min-height:100%;}
/* 注区格子（重画过的桌放注区；空着就不占地方） */
html.m.m-port.m-game .screen.active .th > .m-tslot.bets{grid-area:bets;}
html.m.m-game .screen.active .th > .m-tslot.bets:not(:empty){display:block;position:relative;z-index:9;}
/* 筹码坞 + 操作行（原来的 rail）：余额挪进顶栏；筹码一排 48 横滑、右边渐隐；操作键 52 高等分，主按钮宽 1.5 倍在最右 */
html.m.m-port.m-game .screen.active .th > .th-rail{grid-area:rail;display:flex;flex-direction:column;align-items:stretch;gap:0;height:auto;min-height:0;position:relative;z-index:10;
  padding:0 var(--m-safe-r) var(--m-safe-b) var(--m-safe-l);border-top:0;
  background:linear-gradient(180deg,#3a2414,#2a190d 6px,#1d120a 40%,#150d07);box-shadow:0 -1px 0 rgba(255,220,160,.12),0 -6px 14px rgba(0,0,0,.45);}
html.m.m-port.m-game .screen.active .th > .th-rail::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(180deg,var(--wood-300),var(--wood-700));opacity:.7;pointer-events:none;}
html.m.m-port.m-game .screen.active .th > .th-rail .th-bal{display:none;}   /* 余额在顶栏右边（.m-thbal）；Stadium 的余额包在 .std-left 里，所以不写 > */
html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray{order:1;align-self:stretch;justify-self:stretch;width:auto;max-width:none;min-width:0;height:72px;
  display:flex;align-items:center;gap:10px;padding:12px 14px 4px;margin:0;border-radius:0;background:none;box-shadow:none;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scroll-padding-left:14px;
  -webkit-mask-image:linear-gradient(90deg,#000 84%,transparent);mask-image:linear-gradient(90deg,#000 84%,transparent);}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray::-webkit-scrollbar{display:none;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray .cs{flex:none;scroll-snap-align:start;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray .cs .chip{width:48px;height:48px;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray .cs .chip::before{inset:9px;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray .cs .chip::after{font-size:12px;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray .cs .plq{width:66px;height:46px;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray .cs:hover .chip,html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray .cs:hover .plq{transform:none;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray .cs.sel .chip,html.m.m-port.m-game .screen.active .th > .th-rail > .th-tray .cs.sel .plq{transform:translateY(-6px);}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-acts{order:2;display:flex;gap:8px;justify-self:stretch;align-self:stretch;padding:8px 14px 10px;margin:0;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-acts .btn{flex:1 1 0;min-width:0;width:auto;height:52px;padding:0 6px;border-radius:12px;font-size:15px;letter-spacing:.06em;gap:6px;justify-content:center;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-acts .btn .ic{width:18px;height:18px;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-acts .btn.primary{flex:1.5 1 0;font-size:16px;}
html.m.m-port.m-game .screen.active .th > .th-rail > .th-acts .btn.th-unconf{flex:1.5 1 0;font-size:15px;}   /* 取消确认：占主按钮的位置，字照写（不再缩成只剩 ✕） */
html.m.m-port.m-game .screen.active .th > .th-rail > .th-acts .btn small{display:none;}
/* 其它桌：从底下拉上来的整宽一块（不是右边窄抽屉） */
html.m.m-port.m-game .screen.active .th > .th-drawer{top:calc(var(--mt-top) + var(--m-safe-t));bottom:0;left:0;right:0;width:auto;z-index:30;padding:0 var(--m-safe-r) var(--m-safe-b) var(--m-safe-l);
  border-left:0;border-top:1px solid var(--brass-900);border-radius:16px 16px 0 0;transform:translateY(105%);}
html.m.m-port.m-game .screen.active .th.drawer-on > .th-drawer{transform:none;}
html.m.m-port.m-game .screen.active .th > .th-drawer > .th-tab{display:none;}
/* 牌桌上的 toast：顶栏下面 */
html.m.m-port.m-game #toasts{top:calc(var(--mt-top) + var(--m-safe-t) + 8px);}

/* ---------- 竖屏兜底（没重画的桌，html.m-tf）：台面按 --m-fdw × --m-fdh 排好（横屏手机版的样子），整块 zoom 缩进看区、居中 ---------- */
html.m.m-port.m-tf .screen.active .th > .th-felt{justify-self:start;align-self:start;width:var(--m-fdw,667px);height:var(--m-fdh,300px);zoom:var(--m-fz,.58);
  margin:var(--m-fy,0px) 0 0 var(--m-fx,0px);}
html.m.m-port.m-tf .screen.active .th{background:radial-gradient(ellipse at 50% 35%,rgba(255,200,130,.06),transparent 60%),linear-gradient(180deg,#1b120c,#0e0906);}

/* ---------- 横屏 · 重画过的桌（html.m-ta）：左边看（台面 + 路单条），右边点（注区 + 筹码 + 操作）；顶栏缩成台面左上角一小条 ---------- */
/* .screen 横屏已经让开了左右安全区（css/m/base.css），桌里再用 --m-safe-l/r 会多一条黑边：这里归零（集成时从百家乐 / 21 点 / 骰宝三张桌里收上来的通病） */
html.m.m-land.m-ta .screen.active .th{--m-safe-l:0px;--m-safe-r:0px;
  grid-template-columns:minmax(0,1fr) minmax(330px,42%);
  grid-template-rows:minmax(0,1fr) auto auto;
  grid-template-areas:"felt bets" "felt rail" "road rail";}
html.m.m-land.m-ta .screen.active .th > #tblHead.th-strip{position:absolute;left:var(--m-safe-l);top:0;width:calc(100% - max(330px,42%) - var(--m-safe-l));height:48px;z-index:12;padding:2px 4px 0 4px;gap:4px;
  background:none;border:0;box-shadow:none;pointer-events:none;}
html.m.m-land.m-ta .screen.active .th > #tblHead > *{pointer-events:auto;}
html.m.m-land.m-ta .screen.active .th > #tblHead > .th-i,html.m.m-land.m-ta .screen.active .th > #tblHead > .th-dealer,html.m.m-land.m-ta .screen.active .th > #tblHead > .th-clock,html.m.m-land.m-ta .screen.active .th > #tblHead > .th-drink,html.m.m-land.m-ta .screen.active .th > #tblHead > [data-snd],html.m.m-land.m-ta .screen.active .th > #tblHead > .th-sq.tables,html.m.m-land.m-ta .screen.active .th > #tblHead > .m-throad,html.m.m-land.m-ta .screen.active .th > #tblHead > .sp,html.m.m-land.m-ta .screen.active .th > #tblHead > .th-tl,html.m.m-land.m-ta .screen.active .th > #tblHead > .tn-pill{display:none;}
html.m.m-land.m-ta .screen.active .th > #tblHead > .th-leave{order:-1;width:44px;min-width:44px;height:44px;padding:0;font-size:0;gap:0;justify-content:center;border:0;border-radius:10px;background:rgba(8,6,4,.55);color:var(--brass-300);}
html.m.m-land.m-ta .screen.active .th > #tblHead > .th-leave .ic{display:none;}
html.m.m-land.m-ta .screen.active .th > #tblHead > .th-leave::after{content:"";width:11px;height:11px;margin-left:5px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);}
html.m.m-land.m-ta .screen.active .th > #tblHead > .th-lim{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;font-size:13px;color:rgba(232,222,198,.8);}
/* 桌名一行、限红一行（852 宽时一行只剩一百来 px，原来桌名被省略号吃掉）：最后一个「·」变成换行，字 12、行高 15，SE 横屏（667 宽）桌名自己再折一行，最多三行（轮盘 / Craps；骰宝的桌名在台呢上，百家乐 / 21 点不显示） */
html.m.m-land.m-ta #ruScreen.screen.active .th > #tblHead > .th-lim,html.m.m-land.m-ta #crScreen.screen.active .th > #tblHead > .th-lim{white-space:normal;max-height:46px;font-size:12px;line-height:15px;letter-spacing:0;}
html.m.m-land.m-ta #ruScreen.screen.active .th > #tblHead > .th-lim .dot,html.m.m-land.m-ta #crScreen.screen.active .th > #tblHead > .th-lim .dot{margin:0 2px;}
html.m.m-land.m-ta #ruScreen.screen.active .th > #tblHead > .th-lim .dot:last-of-type,html.m.m-land.m-ta #crScreen.screen.active .th > #tblHead > .th-lim .dot:last-of-type{display:block;width:0;height:0;overflow:hidden;margin:0;}
html.m.m-land.m-ta .screen.active .th > #tblHead > .m-thbal{display:flex;flex-direction:column;align-items:flex-end;flex:none;padding:4px 10px;border-radius:10px;background:rgba(8,6,4,.55);line-height:1.15;}
html.m.m-land.m-ta .screen.active .th > #tblHead > .m-thbal small{font-size:12px;color:var(--ma-tx3);opacity:1;}
html.m.m-land.m-ta .screen.active .th > #tblHead > .m-thbal b{font-family:var(--serif);font-weight:400;font-size:15px;color:var(--brass-100);}
html.m.m-land.m-ta .screen.active .th > #tblHead > .m-thmore{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border:0;border-radius:10px;background:rgba(8,6,4,.55);color:var(--brass-300);}
html.m.m-land.m-ta .screen.active .th > .th-felt{grid-area:felt;min-height:0;padding-left:var(--m-safe-l);}
html.m.m-land.m-ta .screen.active .th > .m-roadbar{grid-area:road;display:flex;align-items:center;gap:10px;height:calc(44px + var(--m-safe-b));padding:0 6px var(--m-safe-b) calc(14px + var(--m-safe-l));
  border:0;border-top:1px solid rgba(201,160,82,.3);background:linear-gradient(180deg,#0d1419,#060a0d);color:#d5dee4;font-size:13px;text-align:left;}
html.m.m-land.m-ta .m-roadbar .m-roadsum{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;overflow:hidden;white-space:nowrap;}
html.m.m-land.m-ta .m-roadbar .m-roadh{width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--brass-300);}
html.m.m-land.m-ta .screen.active:not(#m_) .th > .th-board{display:block;position:absolute;left:0;width:calc(100% - max(330px,42%));top:0;bottom:calc(44px + var(--m-safe-b));height:auto;margin:0;z-index:11;
  padding:8px 8px 8px calc(8px + var(--m-safe-l));overflow-y:auto;background:linear-gradient(180deg,#0d1419,#060a0d);transform:translateY(calc(100% + 50px));visibility:hidden;
  transition:transform .3s,visibility 0s linear .3s;}
html.m.m-land.m-ta.m-roadup .screen.active:not(#m_) .th > .th-board{transform:none;visibility:visible;transition:transform .3s;}
html.m.m-land.m-ta .screen.active .th > .m-tslot.bets{grid-area:bets;min-height:0;overflow-y:auto;padding:8px calc(8px + var(--m-safe-r)) 0 16px;
  background:linear-gradient(90deg,#2a190d,#1d120a 30%,#150d07);}
html.m.m-land.m-ta .screen.active .th > .th-rail{grid-area:rail;display:flex;flex-direction:column;align-items:stretch;height:auto;padding:0 var(--m-safe-r) var(--m-safe-b) 0;gap:0;border-top:0;
  background:linear-gradient(90deg,#2a190d,#1d120a 30%,#150d07);box-shadow:-1px 0 0 rgba(255,220,160,.12),-6px 0 14px rgba(0,0,0,.45);}
html.m.m-land.m-ta .screen.active .th > .th-rail > .th-bal{display:none;}
html.m.m-land.m-ta .screen.active .th > .th-rail > .th-tray{order:1;width:auto;max-width:none;height:62px;padding:8px 10px 2px 16px;border-radius:0;background:none;box-shadow:none;overflow-x:auto;
  -webkit-mask-image:linear-gradient(90deg,#000 84%,transparent);mask-image:linear-gradient(90deg,#000 84%,transparent);}
html.m.m-land.m-ta .screen.active .th > .th-rail > .th-acts{order:2;display:flex;gap:8px;padding:4px 10px 8px 16px;}
html.m.m-land.m-ta .screen.active .th > .th-rail > .th-acts .btn{flex:1 1 0;min-width:0;width:auto;height:46px;padding:0 6px;font-size:14px;border-radius:12px;}
html.m.m-land.m-ta .screen.active .th > .th-rail > .th-acts .btn.primary,html.m.m-land.m-ta .screen.active .th > .th-rail > .th-acts .btn.th-unconf{flex:1.5 1 0;}
html.m.m-land.m-ta .screen.active .th > .th-drawer{top:0;bottom:0;width:min(340px,42%);}
/* 找经理加限红的弹层（js/core/limit-raise-ui.js 按顶栏那颗键定位；竖屏那颗键收在「⋯」里）：手机上一律是贴底的整宽一块 */
html.m .lr-pop{position:fixed;left:calc(8px + var(--m-safe-l)) !important;right:calc(8px + var(--m-safe-r));top:auto !important;bottom:calc(8px + var(--m-safe-b));min-width:0;z-index:60;}
html.m .lr-pop .lr-o{min-height:52px;}

/* ---------- 横屏（还按横屏手机版排的桌：轮盘 / Craps / 牌九 / 三卡 / 小德州 / Arena / 老虎机）：顶栏的小方键点击范围补到 44，rail 余额下面那行小字 12 ---------- */
html.m.m-land .th > .th-strip .th-i,html.m.m-land .th > .th-strip .th-sq{position:relative;}
html.m.m-land .th > .th-strip .th-i::before,html.m.m-land .th > .th-strip .th-sq::before{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:44px;transform:translate(-50%,-50%);}
html.m.m-land .th > .th-rail .th-bal .s{font-size:12px;}
/* 你的位置牌（.th-you，点开 坐下 / 起身 / 换终端…）：看着 27–36 高，点击范围一律 44（以前只有百家乐 / 21 点 / Arena / 锦标赛有） */
html.m .th .th-you::before{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:46px;margin-top:-23px;}   /* 46：台布有 zoom 时量出来 43.99，差一点不到 44 */
html.m.m-land .th .th-bal .s{font-size:12px;}   /* Arena 的余额包在 .std-left 里，上面那条 > 选不到 */

/* ---------- v74「+2 分」：A 框架里余额在顶栏右边（.m-thbal），js/m/table.js 把锚点挂在它里面，分数飘在余额左边 ---------- */
html.m .th > .th-strip > .m-thbal{position:relative;}
html.m .th > .th-strip > .m-thbal > .ng-mp{position:absolute;right:100%;bottom:4px;width:0;height:0;}
html.m .th > .th-strip > .m-thbal > .ng-mp .ng-plus{left:auto;right:6px;top:auto;bottom:0;font-size:15px;}

/* ---------- 合 v79：私人桌（包厢 / salon，v78）等你下注的环 · 大额方片 ----------
   环里只写「请下注」/「确认就发」（css/table-hud.css 给手机的是 10 px，Craps 自己那条也是 10）：手机 12 px。百家乐 / 21 点竖屏的环只有 44 / 48，「确认就发」一行 48 宽放不下 →
   最宽 3 个字、两行对半（确认 / 就发），环的位置不动（百家乐等你时环放大到 52，见 css/m/bac.css） */
html.m .th-ring .lt-ring.wait .v small,html.m #crRing .lt-ring.wait .v small{font-size:12px;line-height:13px;letter-spacing:0;margin:0;white-space:normal;max-width:3em;text-wrap:balance;text-align:center;}
/* 托盘里的大额长方筹码（plaque）：轮盘 / 骰宝 / Craps / 牌九 / 三卡 · 小德州横屏原来 54×36，点击不到 44 → 和百家乐 / 21 点一样 64×44（包厢限红高，托盘里常有 $50K–$10M） */
html.m .ru-th .th-tray .cs .plq,html.m .sb-th .th-tray .cs .plq,html.m .cr-th .th-tray .cs .plq,html.m .pg-th .th-tray .cs .plq,html.m .cv-th .th-tray .cs .plq{width:64px;height:44px;}
