/* ================= 手机 · 三卡 / 小德州（多桌） =================
   归属：后续三卡 / 小德州线（现在是兜底）（方案 / 分工见 docs/mobile-a.md）。
   每条规则都挂在 html.m 下（js/core/mobile.js 判断是手机才加），电脑版一条都不命中；tests/mobile.test.js 逐条查。 */

/* ---------- T-cv. 三卡 / 小德州：不再整块 zoom .52（注圈只剩 27 px）。荷官牌在倒计时下面；你的牌在左、注圈横着一排在右（金额写在圈下）；
   别人的位置按 --cv-k 压低、缩到 0.62（空位「坐下」用透明伪元素倒推回 44 见方的点击区） ---------- */
html.m .th.cv-th .cv-cloth{zoom:1;--cv-k:calc(.5 * var(--m-k, 1));}
html.m .cv-th .cv-tbl{bottom:-30px;padding:8px 8px 0;}
html.m .cv-th .cv-cloth{inset:8px 8px 18px;}
html.m .cv-th .cv-dealer{top:54px;gap:12px;}
html.m .cv-th .cvx-cards.dealer,html.m .cv-th .cvx-cards.board{--card-w:38px;--card-h:53px;min-height:53px;gap:4px;}
html.m .cv-th .cvx-cards.board{min-width:0;padding-left:12px;}
html.m .cv-th .cv-dname{top:110px;font-size:12px;}
html.m .cv-th .cv-print{display:none;}
html.m .cv-th .cv-result{top:4px;padding:4px 12px 5px;max-width:min(460px,70%);}
html.m .cv-th .cv-result .h{font-size:18px;}
html.m .cv-th .cv-result .s{font-size:11px;margin-top:1px;}
html.m .cv-th .cv-hero{bottom:40px;display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:12px;row-gap:2px;align-items:end;}
html.m .cv-th .cv-hname{grid-column:1;grid-row:1;justify-self:center;height:14px;line-height:14px;font-size:11px;}
html.m .cv-th .cv-hcards{grid-column:1;grid-row:2;min-height:53px;}
html.m .cv-th .cvx-cards.hero{--card-w:38px;--card-h:53px;min-height:53px;gap:4px;}
html.m .cv-th .cv-hcirc{grid-column:2;grid-row:1 / 3;flex-direction:row;align-items:flex-start;gap:10px;padding-bottom:15px;}
html.m .cv-th .cv-row{gap:10px;}
html.m .cv-th .cvx-ring.main{width:46px;height:46px;}
html.m .cv-th .cvx-ring.side{width:44px;height:44px;}
html.m .cv-th .cvx-ring.play,html.m .cv-th .cvx-ring.fixed{width:40px;height:40px;}
html.m .cv-th .cvx-ring label{font-size:10px;}
html.m .cv-th .cvx-ring em,html.m .cv-th .cv-row.two .cvx-ring:first-child em{left:50%;right:auto;top:100%;transform:translateX(-50%);margin:2px 0 0;font-size:12px;}
html.m .cv-th .cvx-slot{transform:scale(.62);}
html.m .cv-th .cvx-slot .bx-btn{position:relative;}
html.m .cv-th .cvx-slot .bx-btn::before{content:"";position:absolute;left:-12px;right:-12px;top:50%;height:72px;margin-top:-36px;}
html.m .cv-th .cv-cloth .th-you{bottom:4px;}
html.m .cv-th .cv-cloth .th-you::before{content:"";position:absolute;left:0;right:0;top:50%;height:44px;margin-top:-22px;}
html.m .cv-th .cv-cloth .th-menu{bottom:44px;}
html.m .cv-th .th-menu button{height:44px;}
html.m .cv-th .cvx-slot .sl-nm,html.m .cv-th .cvx-slot .sl-lbl,html.m .cv-th .cvx-slot .sl-hand,html.m .cv-th .cvx-slot .bx-btn{font-size:17px;}
@media (max-width:740px){
  html.m .cv-th .cvx-cards.dealer,html.m .cv-th .cvx-cards.board{--card-w:34px;--card-h:48px;min-height:48px;}
  html.m .cv-th .cv-dname{top:104px;}
}
html.m .cv-th .cvx-slot.empty .sl-spot{display:none;}

/* ======================================================================================================
   方向 A · 竖屏（js/m/carnival.js：MobileA.table("tcpxScreen" / "uthxScreen", {mode:"a"})，只在竖屏；横屏照旧上面的横屏手机版）
   台布铺满看区、不缩放，竖着排：荷官的牌 + 牌型（上）→ 结果条 → 你的牌（放大）→ 注圈一排（离拇指最近）；右上倒计时、左上你的位置牌。
   别人的位置在竖屏收起；没坐下时点注圈会先替你坐下（js/m/carnival.js）。
   ====================================================================================================== */
html.m.m-port.m-ta .cv-root > .th{font-variant-numeric:tabular-nums lining-nums;}
html.m.m-port.m-ta .cv-root .cv-th .cv-tbl{inset:0;bottom:0;padding:0;border-radius:0;background:none;box-shadow:none;}
html.m.m-port.m-ta .cv-root .cv-th .cv-cloth{inset:0;border-radius:0;display:flex;flex-direction:column;align-items:center;padding:16px 12px 12px;gap:6px;
  box-shadow:0 0 0 1px rgba(0,0,0,.5) inset,0 10px 26px rgba(0,0,0,.35) inset;}
html.m.m-port.m-ta .cv-root .cv-th .cv-print,html.m.m-port.m-ta .cv-root .cv-th .cv-seats{display:none;}
html.m.m-port.m-ta .cv-root .cv-th .cv-cloth > .th-ring{left:auto;right:12px;top:12px;margin:0;width:60px;height:60px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-cloth > .th-ring .lt-ring{width:60px;height:60px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-cloth .th-you{left:12px;top:12px;bottom:auto;transform:none;height:40px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-cloth .th-you::before{content:"";position:absolute;left:0;right:0;top:50%;height:44px;margin-top:-22px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-cloth .th-menu{left:12px;top:56px;bottom:auto;transform:none;}
/* 荷官 */
html.m.m-port.m-ta .cv-root .cv-th .cv-dealer{position:static;transform:none;display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:6px;}
html.m.m-port.m-ta .cv-root .cv-th .cvx-cards.dealer{--card-w:48px;--card-h:67px;min-height:67px;gap:5px;}
html.m.m-port.m-ta .cv-root .cv-th .cvx-cards.board{--card-w:44px;--card-h:62px;min-height:62px;gap:4px;min-width:0;padding:0;border-left:0;}
html.m.m-port.m-ta .cv-root .cv-th .cv-dname{position:static;transform:none;font-size:14px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-result{top:44%;bottom:auto;transform:translate(-50%,-50%);max-width:calc(100% - 24px);}
html.m.m-port.m-ta .cv-root .cv-th .cv-result .h{font-size:20px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-result .s{font-size:13px;}
/* 你：牌放大，注圈一排，金额写在圈下 */
html.m.m-port.m-ta .cv-root .cv-th .cv-hero{position:static;transform:none;margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:8px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-hname{height:18px;line-height:18px;font-size:14px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-hcards{min-height:84px;}
html.m.m-port.m-ta .cv-root .cv-th .cvx-cards.hero{--card-w:60px;--card-h:84px;min-height:84px;gap:6px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-hcirc{flex-direction:row;align-items:flex-start;gap:18px;padding:0 0 20px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-row{gap:18px;}
html.m.m-port.m-ta .cv-root .cv-th .cvx-ring.main{width:64px;height:64px;}
html.m.m-port.m-ta .cv-root .cv-th .cvx-ring.side,html.m.m-port.m-ta .cv-root .cv-th .cvx-ring.play,html.m.m-port.m-ta .cv-root .cv-th .cvx-ring.fixed{width:58px;height:58px;}
html.m.m-port.m-ta .cv-root .cv-th .cvx-ring label{font-size:13px;letter-spacing:.02em;}
html.m.m-port.m-ta .cv-root .cv-th .cvx-ring em,html.m.m-port.m-ta .cv-root .cv-th .cv-row.two .cvx-ring:first-child em{left:50%;right:auto;top:100%;transform:translateX(-50%);margin:3px 0 0;font-size:14px;}
html.m.m-port.m-ta .cv-root .cv-th .cv-cloth:not(.seated) .cv-hcirc{opacity:.85;}
/* 小德州四个圈：一排放不下大的，压一号 */
html.m.m-port.m-ta #uthxScreen .cv-th .cv-hcirc,html.m.m-port.m-ta #uthxScreen .cv-th .cv-row{gap:12px;}
html.m.m-port.m-ta #uthxScreen .cv-th .cvx-ring.main{width:58px;height:58px;}
html.m.m-port.m-ta #uthxScreen .cv-th .cvx-ring.side,html.m.m-port.m-ta #uthxScreen .cv-th .cvx-ring.play,html.m.m-port.m-ta #uthxScreen .cv-th .cvx-ring.fixed{width:54px;height:54px;}
@media (max-height:720px){
  html.m.m-port.m-ta .cv-root .cv-th .cv-cloth{padding-top:10px;gap:4px;}
  html.m.m-port.m-ta .cv-root .cv-th .cvx-cards.dealer{--card-w:40px;--card-h:56px;min-height:56px;}
  html.m.m-port.m-ta .cv-root .cv-th .cvx-cards.board{--card-w:38px;--card-h:53px;min-height:53px;}
  html.m.m-port.m-ta .cv-root .cv-th .cvx-cards.hero{--card-w:52px;--card-h:73px;min-height:73px;}
  html.m.m-port.m-ta .cv-root .cv-th .cv-hcards{min-height:73px;}
}
/* 横屏（横屏手机版）注圈里的字 10 px → 12，圈不小于 44 */
html.m.m-land .cv-th .cvx-ring label{font-size:12px;letter-spacing:0;}
html.m.m-land .cv-th .cvx-ring.play,html.m.m-land .cv-th .cvx-ring.fixed{width:44px;height:44px;}
