/* ============ CX 德州 · 按规格稿 v1 ============ */
/* 设计宽 480px；牌桌按 1356×2107 设计坐标换算百分比 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
:root {
  --green: #5bee1d;            /* 强调亮绿 rgb(91,238,29) */
  --gold: #f8e648;             /* 余额金 rgb(248,230,72) */
  --card: #1c1c1c;             /* 卡片底 rgb(28,28,28) */
  --bg: #080808;               /* 页面底 rgb(8,8,8) */
  --bblue: #151f5e;            /* 牌型徽章深蓝 rgb(21,31,94) */
  --insure: rgba(174,240,19,.1);/* 保险小标 */
  --txt: rgb(244,247,251);
  --dim: rgb(122,122,122);
  --dim2: rgb(163,163,163);
}
body {
  font-family: "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;
  background: #050506; color: var(--txt);
  display: flex; justify-content: center;
  user-select: none;
}
.gold { color: var(--gold); }
.phone {
  position: relative; width: 100%; max-width: 480px; height: var(--app-h, 100dvh);
  overflow: hidden; background: var(--bg) url("assets/lobby-bg-a.jpg") center top / cover no-repeat;
}
.lobby-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

@media (min-width: 500px) { .phone { border-radius: 22px; box-shadow: 0 0 60px rgba(0,0,0,.9); } }

/* ---------- 屏幕切换 ---------- */
.screen { position: absolute; top: var(--safe-top, 0px); right: 0; bottom: var(--safe-bottom, 0px); left: 0; display: none; overflow: hidden; }
.screen.active { display: flex; flex-direction: column; }
/* 大厅页整体下移：避开 TG 全屏时的关闭与菜单按钮；底部导航贴近底边 */
.screen.page { top: calc(var(--safe-top, 0px) + var(--lobby-top, 0px)); }
.screen.page .dock { bottom: 4px; }
#s-table.active { display: block; }
#s-table { top: 0; }

/* ---------- 顶栏（48 高） ---------- */
.topbar {
  flex: none; height: 48px; display: flex; align-items: center; justify-content: center;
  position: relative; border-bottom: 1px solid #1c1c20;
}
.tb-title { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.set-gear, .m-set {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #cacace; font-size: 22px;
}

/* ---------- 俱乐部 ---------- */
.club-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px; }
.c-ava {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #1f8f52, #0a3a20);
  border: 2px solid #1f9e5c; color: #b7f4d0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px;
}
.c-info { flex: 1; }
.c-ava img, .m-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.c-name { font-size: 16px; font-weight: 800; }
.crown { font-size: 12px; margin-right: 4px; }
.c-id { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.wallet-pill {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 7px 8px;
}
.wallet-pill b { font-size: 15px; }
.wp-ic {
  width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer;
  background: #2b2b30; color: #e9e9ee; font-size: 13px; font-weight: 800;
}
.stat-row { display: flex; gap: 10px; padding: 0 16px 14px; }
.stat-chip {
  flex: 1; height: 34px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); cursor: pointer;
  background: rgba(255,255,255,.04); color: #d7d7dc; font-size: 13px;
}
.cat-row { display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid #1c1c20; }
.cat {
  flex: 1; height: 38px; padding: 0; margin: 0; border: none; cursor: pointer;
  background: none; color: var(--dim); font-size: 15px; position: relative;
  font-weight: 700;
}
.cat.on { color: var(--green); }
.cat.on::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 36px; height: 3px; border-radius: 3px; background: var(--green);
  transform: translateX(-50%);
}
.funnel { flex: none; height: 35px; margin-left: 6px; }

/* 桌卡 */
.table-list { flex: 1; overflow-y: auto; padding: 12px 16px 100px; }
.tcard {
  position: relative; width: 100%; max-width: 390px; height: 88px; margin: 0 auto 11px;
  background: rgba(28,28,28,.72); border-radius: 13px; padding: 12px 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.tcard:active { background: #2b2b30; }
.seat-ring {
  width: 55px; height: 55px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at center, #1a1a1a 0 40%, transparent 60%),
    conic-gradient(rgb(2,203,126) 0%, rgb(182,242,14) var(--fill, 0%), rgba(255,255,255,.14) var(--fill, 0%) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 17.56px; font-weight: 700;
}
.tc-mid { flex: 1; min-width: 0; }
.tc-name { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-bl { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
.tc-bl b { font-size: 19.75px; font-weight: 800; }
.badge {
  font-size: 8.78px; font-weight: 700; color: #fff;
  background: var(--bblue); border-radius: 2.19px; padding: 2.19px 8.78px;
}
.insure {
  font-size: 10px; color: #d8f7a5;
  background: rgba(190,240,110,.22); border-radius: 4px; padding: 1px 5px;
}
.tc-sub { font-size: 11px; color: var(--dim); display: flex; gap: 11px; }
.tc-right { text-align: right; }
.tc-lab { font-size: 11px; color: var(--dim); }
.tc-val { font-size: 19.75px; font-weight: 800; margin-top: 3px; }
.coin { font-size: 13px; margin-left: 2px; }
.vpip {
  position: absolute; right: 12px; top: 8px;
  font-size: 10px; color: var(--gold); background: rgba(245,197,66,.12);
  border-radius: 4px; padding: 1px 6px;
}
.sbadge {
  position: absolute; left: 0; top: 0; width: 48px; height: 20px;
  border-radius: 13px 0 13px 0; font-size: 10.5px; font-weight: 700;
  background: #e85742; color: #fff; display: flex; align-items: center; justify-content: center;
}

/* ---------- 浏浮胶囊底部导航 ---------- */
.dock {
  position: absolute; bottom: calc(14px + var(--safe-bottom, 0px)); left: 50%; transform: translateX(-50%);
  width: 353px; height: 70px; border-radius: 999px; z-index: 40;
  background: rgba(14,14,14,.1); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 30px rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: space-around; padding: 0 4px;
}
.dock a {
  width: 83px; height: 55px; border-radius: 999px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 21px; color: rgb(163,163,163); cursor: pointer;
}
.dock a span { font-size: 13.17px; }
.dock a.on {
  color: var(--green);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
}
.dock a img.ni { width: 36px; height: 36px; display: block; opacity: .6; }
.dock a.on img.ni { opacity: 1; }

/* ---------- 公告 ---------- */
.ann-head {
  text-align: center; padding: 22px 0 16px; font-size: 17.56px;
  color: var(--green); font-weight: 800; letter-spacing: 2px;
}
.ann-head span { margin: 0 10px; }
.ann-list { flex: 1; overflow-y: auto; padding: 0 16px 100px; }
.ann-card { margin-bottom: 11px; border-radius: 17.56px; overflow: hidden; cursor: pointer; }
.ann-bg {
  height: 78px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; letter-spacing: 6px; color: rgba(255,255,255,.85);
  background: linear-gradient(135deg, #0e5c34 0%, #143620 55%, #0b1c12 100%);
}
.ann-card p { background: var(--card); padding: 12px 14px; font-size: 14px; }
.ann-card:nth-child(1) .ann-bg { background: linear-gradient(135deg, #b8860b 0%, #7a5406 60%, #241a02 100%); }

/* ---------- 分享 ---------- */
.share-banner { position: relative; margin: 16px; height: 263px; border-radius: 14px; overflow: hidden; }
.share-banner img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.share-tit {
  position: absolute; left: 0; right: 0; bottom: 26%; text-align: center;
  font-size: 22px; font-weight: 900; letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.empty-tip { flex: 1; text-align: center; color: var(--dim); font-size: 14px; padding-top: 40px; }

/* ---------- 我的 ---------- */
.m-head { display: flex; align-items: center; gap: 13px; padding: 16px; }
.m-ava {
  width: 70px; height: 70px; border-radius: 50%;
  background:
    linear-gradient(#181818, #181818) padding-box,
    linear-gradient(135deg, rgb(13,119,234), rgb(1,200,129)) border-box;
  border: 2px solid transparent; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.m-who { flex: 1; }
.m-name { font-size: 17.56px; font-weight: 800; }
.m-name i { font-style: normal; font-size: 13px; margin-left: 5px; opacity: .8; }
.m-id { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.copy {
  border: 1px solid #3a3a40; background: none; color: #cfcfd6;
  font-size: 10.5px; border-radius: 4px; padding: 2px 7px;
}
.m-set { position: static; transform: none; margin-left: 6px; }
.m-quick { display: flex; gap: 13.17px; padding: 4px 16px 10px; }
.q.big { width: 121px; height: 75px; font-size: 14.26px; }
.q { border: none; border-radius: 6.58px; cursor: pointer; color: var(--txt); font-weight: 600; }
.lime { background: rgba(185,255,79,.2); }
.teal { background: rgba(1,200,129,.2); }
.blue { background: rgba(13,119,234,.2); }
.m-quick2 { display: flex; gap: 9px; padding: 0 16px 14px; }
.m-quick2 { background: rgba(106,139,29,.1); border-radius: 13.17px; margin: 0 16px 14px; padding: 10px 7px; }
.q.big2 {
  width: 195px; height: 88px; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end; gap: 4px;
  background: none; color: var(--txt); font-size: 14.26px; font-weight: 600; padding: 8px 12px;
}
.q.big2 i {
  font-style: normal; width: 39px; height: 39px; border-radius: 50%;
  background: rgb(42,58,3); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.q.big2 span { font-weight: 700; }
.m-tabs { display: flex; gap: 24px; padding: 0 16px; border-bottom: 1px solid #1c1c20; }
.m-tabs span {
  height: 35px; color: var(--dim); font-size: 15.5px; font-weight: 700;
  display: flex; align-items: center; position: relative; cursor: pointer;
}
.m-tabs span.on { color: var(--green); }
.m-tabs span.on::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 3px; background: var(--green);
}
.asset-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.asset-row i { font-style: normal; font-size: 20px; }
.asset-row b { margin-left: auto; font-size: 17px; }
.asset-row b.gold { color: var(--gold); }
.m-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 9px; padding: 10px 16px 100px;
}
.m-grid div { background: var(--card); border-radius: 11px; padding: 12px 4px; text-align: center; }
.m-grid u { display: block; text-decoration: none; font-size: 16px; font-weight: 800; }
.m-grid span { display: block; font-size: 10.5px; color: var(--dim); margin-top: 5px; }

/* ---------- 牌桌 ---------- */
.table { background: #050505; }
.felt { position: absolute; inset: 0; }
.felt::before {
  content: ""; position: absolute; left: -26%; right: -26%; top: -34%; bottom: -36%;
  border-radius: 46% 46% 48% 48% / 42% 42% 60% 60%;
  background: radial-gradient(ellipse 40% 26% at 50% 42%, rgba(212,175,55,.20), transparent 72%),
              radial-gradient(ellipse at 50% 40%, #1d1d22 0%, #121216 60%, #08080a 100%);
  box-shadow: inset 0 0 0 12px rgba(4,10,6,.92), inset 0 0 90px rgba(0,0,0,.5);
}
.felt::after {
  content: ""; position: absolute; left: -14%; right: -14%; bottom: -10%; height: 14%;
  border-radius: 50% 50% 0 0; background: linear-gradient(180deg, #0d0d10, #050506);
}
.wmark {
  position: absolute; left: 50%; top: 6%; transform: translateX(-50%);
  width: 130px; height: auto; opacity: .24; pointer-events: none;
}
.t-center {
  position: absolute; left: 0; right: 0; top: 47.9%;
  display: flex; flex-direction: column; align-items: center;
}
.t-table-name { font-size: 17px; font-weight: 600; color: #f1ead2; letter-spacing: .5px; }
.t-meta { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.6); }
.t-blinds { color: #f5d276; font-weight: 600; }
.t-tid::before {
  content: ""; display: inline-block; width: 1px; height: 10px;
  background: rgba(255,255,255,.25); margin: 0 8px; vertical-align: -1px;
}
.t-insure {
  margin-top: 10px; font-size: 11px; color: #d8f7a5; background: rgba(170,220,90,.14);
  border-radius: 999px; padding: 2px 10px;
}
.t-pot {
  position: absolute; left: 49.9%; top: 30.5%; transform: translateX(-50%);
  font-size: 15px; font-weight: 800; color: #efe9d5;
  background: rgba(4,14,8,.5); border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 5px 15px;
}
.t-pot b { color: var(--gold); margin-left: 5px; }
.board { position: absolute; left: 49.9%; top: 38.2%; transform: translate(-50%, -50%); display: flex; gap: 7px; }
.gcard {
  position: relative;
  width: 44px; height: 61px; border-radius: 8px;
  background: linear-gradient(150deg, #ffffff 0%, #f6f3ea 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,.4), inset 0 0 0 1px rgba(214,207,190,.55);
  color: #171a20;
  overflow: hidden;
}
.gcard b {
  position: absolute; top: 4px; left: 6px;
  font-size: 13px; line-height: 1; font-weight: 900; color: #171a20;
}
.gcard i {
  position: absolute; top: 17px; left: 6.5px;
  font-style: normal; font-size: 11px; line-height: 1; color: #171a20;
}
/* 中心大花色（带小阴影增强立体） */
.gcard::after {
  content: attr(data-s);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; color: #171a20;
  text-shadow: 0 1px 1px rgba(0,0,0,.22), 0 0 4px rgba(255,255,255,.8);
}
/* 右下角倒序双角标 */
.gcard::before {
  content: attr(data-c);
  position: absolute; bottom: 4px; right: 6px;
  transform: rotate(180deg);
  font-size: 10px; line-height: 1.05; font-weight: 800; color: #171a20;
  white-space: pre; text-align: center;
}
.gcard.red b, .gcard.red i, .gcard.red::after, .gcard.red::before { color: #dc2626; }
.gcard.back { overflow: visible; }
.gcard.back::before, .gcard.back::after { color: #fef3e2; }
/* 牌背：双色织纹 + 内框 + 光泽 + 中央徽章 */
.gcard.back {
  background:
    linear-gradient(135deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 45%),
    repeating-linear-gradient(-45deg, #b91c1c 0 5px, #8c151c 5px 10px);
  box-shadow: 0 3px 6px rgba(0,0,0,.4),
    inset 0 0 0 2px #f6eddc,
    inset 0 0 0 5px #8c151c,
    inset 0 0 0 6px rgba(246,237,220,.55);
  overflow: hidden;
}
.gcard.back::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle, #8c151c 0 60%, transparent 62%);
  border: 1.5px solid rgba(246,237,220,.9);
}
.gcard.back::after {
  content: "♠"; color: #f6eddc; font-size: 12px;
  inset: 0; display: flex; align-items: center; justify-content: center;
  text-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.t-center-tip {
  position: absolute; left: 0; right: 0; top: 66%; text-align: center;
  font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: .5px;
}

/* 座位 */
.seat {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%); text-align: center; width: 110px;
}
.p0 { --x: 49.9%; --y: 95.0%; left: 49.9%; top: 80%; }
.p1 { --x: 17.8%; --y: 69.2%; }
.p2 { --x: 17.8%; --y: 52.4%; }
.p3 { --x: 17.8%; --y: 35.8%; }
.p4 { --x: 27.4%; --y: 21.0%; }
.p5 { --x: 50.0%; --y: 19.6%; }
.p6 { --x: 72.3%; --y: 21.0%; }
.p7 { --x: 82.1%; --y: 35.8%; }
.p8 { --x: 82.1%; --y: 52.4%; }
.p9 { --x: 82.1%; --y: 69.2%; }
.s-cards { display: flex; justify-content: center; gap: 0; margin-bottom: -14px; }
.mini {
  position: relative;
  width: 34px; height: 47px; border-radius: 6px;
  background: linear-gradient(150deg, #ffffff 0%, #f6f3ea 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,.4), inset 0 0 0 1px rgba(214,207,190,.55);
  color: #171a20;
}
.mini b {
  position: absolute; top: 2.5px; left: 4px;
  font-size: 10.5px; line-height: 1; font-weight: 900; color: #171a20;
}
.mini i {
  position: absolute; top: 13px; left: 4.5px;
  font-style: normal; font-size: 8.5px; line-height: 1; color: #171a20;
}
.mini::after {
  content: attr(data-s);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #171a20;
}
.mini.red b, .mini.red i, .mini.red::after { color: #dc2626; }
.mini + .mini { margin-left: -12px; transform: rotate(5deg); }
.mini:first-child { transform: rotate(-4deg); }
.s-ava {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto;
  font-size: 26px; line-height: 46px;
  background: #1b1b1f; border: 3px solid #f0f0f0;
}
.seat.cur .s-ava { border-color: var(--green); box-shadow: 0 0 14px rgba(20,209,103,.6); }
.seat.act .s-ava { border-color: var(--gold); }
.seat.act .s-ava::before {
  content: ""; position: absolute; margin-left: -27px; margin-top: -27px;
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid transparent; border-top-color: #ffe08a;
  animation: spin 1.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.s-plate {
  margin-top: 5px; min-width: 84px; background: rgba(8,8,10,.82);
  border-radius: 6px; padding: 3px 8px 4px;
}
.s-plate span { display: block; font-size: 11.5px; color: #ececec; white-space: nowrap; }
.s-plate u { display: block; text-decoration: none; font-size: 12.5px; font-weight: 800; color: var(--gold); }
.seat.empty {
  width: 62px; height: 62px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.4); color: rgba(255,255,255,.6);
  background: rgba(0,0,0,.16);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
/* 入座前只显示空座位；入座后才显示牌局内容（引擎座位、公共牌、底池、操作条、庄家） */
.table:not(.live) .engine,
.table:not(.live) .felt .board,
.table:not(.live) .felt .t-pot,
.table:not(.live) #win-banner,
.table:not(.live) .act-bar,
.table:not(.live) .d-dealer { display: none !important; }
.seat.empty.taken { display: none; }
.table .seat.empty { border-color: rgba(212,175,55,.6); color: rgba(245,210,118,.85); }
.bubble {
  position: relative; margin: 0 auto -6px; width: max-content;
  background: rgba(242,242,240,.94); color: #222; font-size: 12.5px; font-weight: 700;
  border-radius: 10px; padding: 4px 10px; box-shadow: 0 3px 6px rgba(0,0,0,.3);
}
.bubble::after {
  content: ""; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: rgba(242,242,240,.94);
}
.d-dealer {
  position: absolute; left: 39%; bottom: 22.5%; width: 22px; height: 22px;
  border-radius: 50%; background: linear-gradient(#fff, #ddd); color: #111;
  font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.45);
}

/* 角标按钮 */
.tbtn {
  border: none; background: rgba(18,18,22,.85); color: #e8e8ee; cursor: pointer;
  border-radius: 10px; font-size: 15px; padding: 8px 10px;
}
.corner-menu { position: absolute; left: 3.1%; top: calc(1.9% + var(--top-clear, 0px)); z-index: 30; }
.corner-proof { position: absolute; right: 3.1%; top: calc(1.9% + var(--top-clear, 0px)); z-index: 30; }
.corner-rank { position: absolute; right: 3.1%; bottom: 14.5%; z-index: 30; }
.corner-replay { position: absolute; left: 3.2%; bottom: 14.5%; z-index: 30; }
.corner-chat { position: absolute; right: 12%; bottom: 14.5%; z-index: 30; }
.corner-voice { position: absolute; right: 20%; bottom: 14.5%; z-index: 30; }
.t-countdown {
  position: absolute; left: 50%; top: calc(2.4% + var(--top-clear, 0px)); transform: translateX(-50%); z-index: 20;
  font-size: 15px; font-weight: 800; letter-spacing: 1px;
  background: rgba(14,14,18,.8); border-radius: 999px; padding: 5px 14px;
}
.t-guard {
  position: absolute; right: 3.1%; top: calc(8.4% + var(--top-clear, 0px)); z-index: 20;
  font-size: 10.5px; color: #bfe9b2; background: rgba(0,0,0,.45);
  border-radius: 999px; padding: 3px 9px;
}
.t-fps {
  position: absolute; left: 3.1%; top: calc(8.4% + var(--top-clear, 0px)); z-index: 20;
  font-size: 9.5px; color: #7d7d84; line-height: 1.5; text-align: left;
}
.t-fps u { color: #8fd4ff; text-decoration: none; }

/* 操作条 */
.act-bar {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 30;
  background: rgba(12,12,15,.88); border-radius: 16px; padding: 9px 12px;
  display: flex; flex-direction: column; gap: 8px; backdrop-filter: blur(6px);
}
.act-timer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #bfe9b2; }
.act-timer b { font-size: 15px; color: #fff; }
.plus15 {
  font-size: 10.5px; color: #ffd76a; border: 1px solid rgba(255,215,106,.5);
  border-radius: 6px; padding: 1px 7px;
}
.act-quick { display: flex; gap: 7px; }
.act-quick button {
  flex: none; width: 54px; padding: 5px 0; border-radius: 8px; border: none; cursor: pointer;
  background: #23232a; color: #ffd76a; font-size: 12px; font-weight: 800;
}
.act-main { display: flex; gap: 7px; }
.act-main button {
  flex: 1; padding: 11px 0; border-radius: 10px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 900; color: #05230f;
  background: linear-gradient(180deg, #2ee078, #0f9e48);
}
.act-main .gray { background: #31313a; color: #c8c8d0; }
.act-main .red { background: linear-gradient(180deg, #ff7a4d, #d5281b); color: #fff; }

/* 菜单抽屉 */
.drawer-mask { display: none; position: absolute; inset: 0; z-index: 48; background: rgba(0,0,0,.5); }
.drawer-mask.on { display: block; }
.drawer {
  position: absolute; left: -340px; top: 0; bottom: 0; width: 300px; z-index: 50;
  background: #101014; transition: left .28s ease; overflow-y: auto;
  border-right: 1px solid #23232a; padding-bottom: 30px;
}
.drawer.on { left: 0; }
.dr-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px; border-bottom: 1px solid #1f1f24; }
.dr-head b { font-size: 15px; }
.dr-head div:last-child { font-size: 12px; color: var(--dim); line-height: 1.7; }
.dr-head .plus {
  font-style: normal; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #04240f; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center; margin-left: 6px;
}
.dr-list a {
  display: block; padding: 12px 18px; font-size: 14.5px; color: #d9d9de; cursor: pointer;
}
.dr-list a:active { background: #1b1b20; }
.dr-list hr { border: none; border-top: 1px solid #202025; margin: 6px 0; }
.dr-list .quit { color: #ff8f7a; }

/* toast */
.toast {
  display: none; position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%);
  background: rgba(0,0,0,.85); color: #fff; font-size: 13px;
  border-radius: 999px; padding: 9px 18px; z-index: 99; white-space: nowrap;
}

/* ============ 第二轮：规格实测值 ============ */
/* 表态预选行 */
.act-row1 { display: flex; align-items: center; gap: 8px; }
.act-timer b { font-size: 15px; color: #fff; }
.plus15 { font-size: 10.5px; color: #ffd76a; border: 1px solid rgba(255,215,106,.5); border-radius: 6px; padding: 1px 7px; }
.plus15 u { color: #fff; font-weight: 800; }
.winrate {
  display: flex; align-items: center; gap: 5px; font-size: 11px; color: #bfe9b2;
  background: rgba(20,120,60,.25); border-radius: 8px; padding: 3px 8px;
}
.winrate b { color: #fff; }
.outs { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: #1449d8; border-radius: 4px; padding: 1px 5px; }
.peek { border: 1px solid #2c2c32; background: #1a1a1e; color: #cfcfd6; font-size: 10.5px; border-radius: 8px; padding: 4px 8px; cursor: pointer; }
.act-pre { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.pre-tip { font-size: 10.5px; color: var(--dim); }
.act-pre button {
  border: 1px solid #2c2c32; background: #1a1a1e; color: #b9b9c2;
  font-size: 10.5px; border-radius: 999px; padding: 3px 9px; cursor: pointer;
}
.act-pre button.on { border-color: var(--green); color: var(--green); background: rgba(91,238,29,.1); }
.act-quick button b { display: block; font-size: 12px; line-height: 1.1; font-weight: 900; color: #ffd76a; }
.act-quick button i { font-style: normal; font-size: 9.5px; opacity: .8; }
.act-quick button { width: auto; min-width: 52px; padding: 4px 10px; }
.act-quick button.on { box-shadow: inset 0 0 0 1.5px #ffd76a; }

/* 买入对话框 */
.pop-mask { display: none; position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.6); }
.pop-mask.on { display: block; }
.pop {
  display: none; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 440px; max-width: calc(100% - 20px); z-index: 61;
  background: #141418; border-radius: 22px 22px 0 0; padding: 18px 20px 20px;
}
.pop.on { display: block; animation: up .25s ease; }
@keyframes up { from { transform: translateX(-50%) translateY(40px); opacity: 0; } }
.bp-title { font-size: 16px; font-weight: 800; text-align: center; }
.bp-timer { position: relative; height: 18px; margin: 12px 0 4px; background: #1e1e22; border-radius: 999px; overflow: hidden; font-size: 10px; color: #9d9da5; text-align: center; line-height: 18px; }
.bp-line { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #3fae1e, #5bee1d); opacity: .35; animation: shrink 41s linear forwards; }
@keyframes shrink { to { width: 0; } }
.bp-value { display: flex; align-items: baseline; gap: 8px; justify-content: center; margin: 10px 0 6px; }
.bp-value span { font-size: 12px; color: var(--dim); }
.bp-value b { font-size: 34px; font-weight: 900; color: var(--gold); }
.bp-value u { text-decoration: none; font-size: 13px; color: var(--dim); }
.bp-slider { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.bp-slider input[type=range] { flex: 1; accent-color: var(--green); height: 26px; }
.sbtn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #2c2c32; background: #1a1a1e; color: #fff; font-size: 18px; cursor: pointer; }
.bp-bb { text-align: center; font-size: 11px; color: var(--dim); min-height: 14px; }
.bp-quick { display: flex; gap: 9px; margin: 12px 0; }
.bp-quick button { flex: 1; height: 40px; border-radius: 10px; border: 1px solid #2c2c32; background: #1a1a1e; color: #e6e6ec; font-size: 13.5px; cursor: pointer; }
.bp-quick button.on { border-color: var(--green); color: var(--green); background: rgba(91,238,29,.08); }
.bp-check { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #cfcfd6; margin: 6px 0 4px; }
.bp-check input { accent-color: var(--green); }
.bp-save { font-size: 11.5px; color: var(--dim); margin-bottom: 10px; }
.bp-confirm { display: flex; gap: 10px; }
.bp-ok { flex: 2; height: 46px; border: none; border-radius: 12px; background: linear-gradient(180deg, #6fe334, #3fae1e); color: #04240f; font-size: 16px; font-weight: 900; cursor: pointer; }
.bp-cancel { flex: 1; height: 46px; border-radius: 12px; border: 1px solid #2c2c32; background: none; color: #cfcfd6; font-size: 15px; cursor: pointer; }

/* 手牌回顾 */
.retro-page { background: #0d0d0f; }
.rt-head { position: relative; padding: 46px 16px 8px; border-bottom: 1px solid #1c1c20; }
.rt-title { font-size: 17.56px; font-weight: 700; display: block; text-align: center; }
.rt-close { position: absolute; left: 14px; top: 40px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #2c2c32; background: none; color: #cfcfd6; }
.rt-meta { display: block; text-align: center; font-size: 10.5px; color: var(--dim); margin-top: 6px; }
.rt-meta b { color: var(--gold); }
.rt-tabs { display: flex; gap: 54.86px; justify-content: center; padding: 10px 0 0; }
.rt-tabs span, .rt-ftabs span {
  height: 35px; display: flex; align-items: center; position: relative; cursor: pointer;
  color: rgb(134,134,134); font-size: 17.56px; font-weight: 700;
}
.rt-tabs span.on, .rt-ftabs span.on { color: var(--green); }
.rt-tabs span.on::after, .rt-ftabs span.on::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 4px;
  width: 36px; height: 3px; border-radius: 3px; background: var(--green);
}
.rt-nav { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.rt-nav button { border: 1px solid #2c2c32; background: #1a1a1e; color: #cfcfd6; border-radius: 8px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.rt-nav #rt-idx { margin-left: auto; font-size: 12px; color: var(--dim); }
.rt-nav .rt-fair { margin-left: 6px; }
.rt-rows { padding: 4px 16px; overflow-y: auto; flex: 1; }
.rt-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  font-size: 13px;
}
.pos-badge {
  flex: none; width: 30px; height: 30px; border-radius: 8px; background: #26314e; color: #cfe0ff;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
}
.r-cards { flex: 1; font-weight: 800; letter-spacing: 1px; }
.r-cards.dark { color: #6a6a70; }
.r-who { width: 52px; color: #d9d9de; }
.r-win { width: 92px; text-align: right; font-weight: 800; }
.r-win.win { color: var(--green); }
.r-win.lose { color: #ff7a5e; }
.r-type { width: 40px; text-align: right; color: var(--dim); font-size: 12px; }
.rt-public { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: var(--dim); font-size: 12px; }
.pub-mini { display: flex; gap: 5px; }
.pmini {
  width: 24px; height: 32px; border-radius: 4px; background: #f5eddb; color: #222;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900;
}
.pmini.blue { color: #1d3fbf; }
.pmini.red { color: #d5281b; }
.pmini { color: #222; }
.pmini.dim { opacity: .35; }
.hi { color: var(--gold); font-weight: 900; }
.rt-detail { padding: 8px 16px 100px; overflow-y: auto; flex: 1; }
.rd-street { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 13.5px; font-weight: 800; }
.rd-pot { margin-left: auto; font-size: 11px; color: var(--gold); font-weight: 700; }
.rd-op {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; font-size: 13px;
}
.rd-op span { flex: none; width: 34px; font-size: 10px; color: #9fb8d8; font-weight: 700; }
.rd-op i { font-style: normal; color: #d9d9de; flex: 1; }
.rd-op u { text-decoration: none; color: var(--gold); font-weight: 700; font-size: 12px; }
.pub-mini.inline { display: inline-flex; }
.pub-mini.inline b { width: 22px; height: 28px; font-size: 11px; }

/* ============ 牌局横幅 + 我的胜率徽标 ============ */
.banner {
  position: absolute; left: 50%; top: 28%; transform: translateX(-50%); z-index: 25;
  background: rgba(6,18,10,.85); border: 1.5px solid #f3d276; border-radius: 12px;
  padding: 10px 18px; font-size: 14.5px; font-weight: 800; color: #ffe9a8;
  box-shadow: 0 8px 26px rgba(0,0,0,.5); animation: pop .4s ease;
}
@keyframes pop { 0% { transform: translateX(-50%) scale(.85); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
.equity-tag {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  background: #d5281b; color: #fff; font-size: 10.5px; font-weight: 900;
  border-radius: 4px; padding: 2px 6px; z-index: 15;
}

/* ============ 真实引擎接入补齐样式 ============ */
.rt-pot {
  position: absolute; left: 50%; top: 30.5%; transform: translateX(-50%);
  font-size: 15px; font-weight: 800; color: #efe9d5;
  background: rgba(4,14,8,.5); border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 5px 15px;
  z-index: 8;
}
.rt-pot b { color: #f8e648; margin-left: 4px; font-size: 17px; }

/* 行动中座位 */
.seat.act .s-ava { border-color: #f8e648; box-shadow: 0 0 16px rgba(248,230,72,.7), 0 4px 10px rgba(0,0,0,.45); }
.seat.won .s-ava, .seat.won .s-cards { filter: drop-shadow(0 0 10px rgba(80,255,130,.8)); }
.seat.folded { opacity: .5; }

/* 亮圈:行动中 */
.seat.act .s-ava::before {
  content: ""; position: absolute; width: 56px; height: 56px;
  margin-left: -30px; margin-top: -30px; border-radius: 50%;
  border: 3px solid transparent; border-top-color: #ffe08a;
  animation: spin 1.2s linear infinite;
}
.p0 .s-ava, .p2 .s-ava, .p5 .s-ava, .p8 .s-ava { position: relative; }

/* 手牌牌样式（中心花色 + 双角标） */
.gcard.hole.small, .gcard.hole.tiny { position: relative; }
.mini.hole, .gcard.hole { display: block; }
.gcard.hole .b, .gcard.hole b { display: block; position: absolute; top: 2px; left: 4px; }
.s-cards .gcard.mini.back::after { font-size: 11px; }

/* 我的牌大一号 */
.p0 { }
.p0 .s-cards .gcard { width: 44px; height: 61px; }
.p0 .s-cards .gcard b { font-size: 15px; }
.p0 .s-cards .gcard i { font-size: 12px; }
.p0 .s-cards .gcard::after { font-size: 19px; }

/* 按钮禁用态 */
.act-main button.off { filter: grayscale(.7) brightness(.65); }
.act-main button:disabled { filter: grayscale(.7) brightness(.65); }

/* 给牌桌留出压边底部位置 */
.p0.s-cards { position: relative; }

/* ============ 开场动画（A/B/C 共用结构） ============ */
.ld-screen { background: #000; overflow: hidden; }
#s-loader { position: fixed; top: 0; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; }
@media (min-width: 500px) { #s-loader { border-radius: 22px; } }
.ld-bar {
  position: absolute; bottom: 11%; left: 50%; transform: translateX(-50%);
  width: 180px; height: 2px; border-radius: 999px; background: rgba(255,255,255,.07);
  z-index: 5;
}
.ld-bar i {
  display: block; height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #8f6d26, #f5d276 60%, #fff1c2);
  box-shadow: 0 0 8px rgba(245,210,118,.6);
  transition: width .18s linear;
}
.ld-screen.ld-out { opacity: 0; transition: opacity .6s ease; }

.ist-stage { position: absolute; inset: 0; background: #000; overflow: hidden; }
.ist-lock {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -54%);
  width: min(74%, 300px);
  display: flex; flex-direction: column; align-items: center;
  will-change: transform, filter, opacity;
}
.ist-mono-wrap { position: relative; width: 100%; overflow: hidden; }
.ist-mono { display: block; width: 100%; height: auto; }
.ist-rule { display: block; width: 100%; margin-top: 6px; }
.ist-title-wrap { position: relative; width: 92%; margin-top: 12px; overflow: hidden; }
.ist-title { display: block; width: 100%; height: auto; }
.ist-sub { display: block; width: 100%; margin-top: 12px; }
.ist-sheen {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255,236,176,.95) 50%, transparent 64%);
  transform: translateX(-115%);
}
.ist-scan {
  position: absolute; top: -6%; bottom: -6%; left: 0; width: 2px; opacity: 0;
  background: linear-gradient(transparent, #fff1c2 30%, #fff1c2 70%, transparent);
  box-shadow: 0 0 12px 3px rgba(255,220,130,.8);
}
.ist-streak {
  position: absolute; left: 6%; right: 6%; top: 42%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, #fff4d0 50%, transparent);
  box-shadow: 0 0 24px 6px rgba(255,220,130,.55);
  transform: scaleX(0); opacity: 0;
}
.ist-flare {
  position: absolute; left: 50%; top: 42%; width: 80%; height: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,214,120,.45), transparent 70%);
  opacity: 0;
}
.ist-bloom {
  position: absolute; left: 50%; top: 46%; width: 120%; height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(245,200,100,.28), transparent 70%);
  opacity: 0;
}
.ist-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.ist-halo {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  filter: blur(14px) brightness(1.2);
}
.ist-glint {
  background: linear-gradient(105deg, transparent 42%, rgba(255,240,190,.9) 50%, transparent 58%);
  mix-blend-mode: screen;
}
.ist-spark {
  position: absolute; width: 2px; height: 2px; margin: -1px 0 0 -1px;
  border-radius: 50%; background: #fff6d8; opacity: 0; pointer-events: none;
  box-shadow: 0 0 6px 2px rgba(255,214,120,.85);
}
.ist-spark::before, .ist-spark::after { content: ""; position: absolute; }
.ist-spark::before {
  left: -8px; top: .5px; width: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, #fff6d8, transparent);
}
.ist-spark::after {
  left: .5px; top: -8px; width: 1px; height: 18px;
  background: linear-gradient(180deg, transparent, #fff6d8, transparent);
}

/* ---------- 我的（V2：资产卡 + 战绩牌局 + 账单明细） ---------- */
.m-mico { display: inline-block; width: var(--s); height: var(--s); flex: none; background-image: url("assets/icons-mine.png"); background-repeat: no-repeat; background-size: calc(var(--s) * 5) auto; background-position: calc(var(--s) * var(--i) * -1) calc(var(--s) * -0.3335); mix-blend-mode: screen; }
.m-acard { margin: 14px 16px 0; padding: 16px; border-radius: 16px; background: rgba(12,12,12,.45); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.m-atop { display: flex; justify-content: space-between; font-size: 13px; color: #9a9a9a; }
.m-link { color: var(--green); }
.m-abal { font-size: 30px; font-weight: 900; color: var(--gold); margin: 8px 0 12px; }
.m-abtns { display: flex; gap: 10px; }
.m-pill { flex: 1; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.m-pill.gold { background: linear-gradient(180deg, #ffe98a, #e0ae4a); color: #3d2b05; border: none; font-weight: 800; }
.m-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 16px 0; }
.m-chip { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 14px; border-radius: 14px; background: rgba(12,12,12,.45); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.m-chip em { margin-left: auto; font-style: normal; font-weight: 800; }
.m-bill { display: flex; align-items: center; gap: 12px; height: 56px; margin: 10px 16px 0; padding: 0 14px; font-size: 14px; border-radius: 16px; background: rgba(12,12,12,.45); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.m-bill em { margin-left: auto; font-style: normal; color: #9a9a9a; }
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 16px; }
.m-stats div { height: 58px; border-radius: 12px; background: rgba(12,12,12,.45); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: #9a9a9a; }
.m-stats u { text-decoration: none; font-size: 16px; color: #f4f7fb; font-weight: 800; margin-bottom: 2px; }

/* 我的：CX积分资产镶边面板（Didot 数字） */
.m-plaque { margin: 16px 0 0; padding: 16px 0 14px; border: 1px solid rgba(248, 230, 72, .35); border-radius: 14px; text-align: center; background: linear-gradient(180deg, rgba(248, 230, 72, .12), rgba(248, 230, 72, 0)); box-shadow: inset 0 0 18px rgba(248, 230, 72, .08); }
.m-plaque b { display: block; font-family: Didot, "Bodoni 72", Baskerville, serif; font-size: 46px; font-weight: 700; color: #f8e648; text-shadow: 0 0 18px rgba(248, 230, 72, .35); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.m-plaque span { display: block; font-size: 11px; color: #9a9a9a; letter-spacing: 6px; margin-top: 4px; }

/* 公告、分享：去掉标题栏下面的横线，内容上提 */
#s-ann .topbar, #s-share .topbar { border-bottom: none; }
#s-ann.page, #s-share.page { top: var(--safe-top, 0px); }
