/* ─────────────────────────────────────────────────────────────
   竞技风主题（tg-style 分支）：石墨灰底 + 荧光绿强调，平面绿色台呢
   · 放在 app.css / table.css 之后加载；那两个文件里写死的金色 / 棕色也已换成绿色 / 石墨灰
   · 原来的"金色"变量统一换成绿色：主按钮、选中态、倒计时圈、筹码图标都跟着变
   ───────────────────────────────────────────────────────────── */
:root {
  --night: #0b0d11;
  --deck: #15181e;
  --deck-2: #1d2129;
  --hair: rgba(255, 255, 255, .06);
  --hair-2: rgba(255, 255, 255, .10);
  --ivory: #f2efe8;
  --mute: #a3a7af;
  --dim: #80858e;
  --gold: #d4b26a;
  --gold-hi: #e6c887;
  --gold-lo: #9c7f43;
  --jade: #3dd68c;
  --seal-hi: #f0645a;
  --serif: var(--ui);
  --tg-yellow: #ffd648;
  --tg-on: #1a1408;
}
body { background: #0b0d11; }
.device { background: var(--night); }
h1, h2, h3, .head h1 { letter-spacing: .02em; }

/* 按钮：绿底深字 */
button.primary, .btn.primary { color: var(--tg-on); }
button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
button.on, button[aria-pressed=true] { background: rgba(212,178,106,.1); }
.quickstart { width: auto; margin: 0 auto 14px; padding: 0 36px; height: 46px; display: block; border-radius: 23px; font-size: 16px; letter-spacing: .08em; box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 2px 12px rgba(212,178,106,.3); }
.vip-tag { color: var(--tg-on); }

/* 筹码图标：绿色硬币，金额本身白色 */
.chip { color: var(--ivory); }
.chip::before, .tg-coin { background: radial-gradient(circle, #3a2c10 0 30%, transparent 31%), radial-gradient(circle, var(--gold) 0 46%, #8a6d34 47% 56%, var(--gold) 57%); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.tg-coin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none; vertical-align: -3px; }

/* 页面背景贴图（金色主题的大图）不再使用 */
.page-hero { display: none; }
.page-hero + .head, .head { background: var(--night); }

/* ───────── 底部标签栏：5 个，选中是绿色图标 + 文字 ───────── */
.tabbar { grid-template-columns: repeat(5, 1fr); background: #1c2229; box-shadow: 0 -1px 0 rgba(255,255,255,.05); }
.tabbar a { color: #7c8692; letter-spacing: .02em; font-size: 11px; padding: 8px 0 6px; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--gold); }
.tabbar a.on svg { fill: var(--gold); stroke: var(--gold); }
.tabbar a.on::before { display: none; }

/* ───────── 通用页面顶栏 ───────── */
.tg-title { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: center; height: 52px; background: var(--night); font: 600 17px var(--ui); letter-spacing: .04em; box-shadow: 0 1px 0 var(--hair); }
.tg-bell, .tg-acts { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; gap: 14px; }
.tg-bell { color: var(--ivory); }
.tg-acts a { position: relative; color: var(--ivory); display: grid; place-items: center; }
.tg-bell svg, .tg-acts svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tg-bell svg { display: block; }
.tg-bell i, .tg-acts i { position: absolute; top: -2px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: #ff4d4f; }

/* ───────── 大厅 ───────── */
#screen.tg-lobby { background: var(--night); }
.tg-club { padding: 16px 16px 12px; background: linear-gradient(180deg, #1d232a, var(--night)); }
.tg-club-row { display: flex; align-items: center; gap: 12px; }
.tg-club-row .grow { flex: 1; min-width: 0; }
.tg-logo { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px var(--hair-2); }
.tg-name { display: block; font: 600 18px/1.3 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-id { background: none; border: 0; padding: 0; color: var(--dim); font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.tg-id::after { content: ""; width: 10px; height: 10px; border: 1.4px solid currentColor; border-radius: 2px; box-shadow: -3px 3px 0 -1.4px var(--night), -3px 3px 0 0 currentColor; }
.tg-ent { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--mute); font-size: 12px; text-decoration: none; min-width: 56px; }
.tg-ent:hover { text-decoration: none; }
.tg-ent svg { width: 24px; height: 24px; fill: none; stroke: var(--ivory); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tg-ent i { position: absolute; top: -2px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: #ff4d4f; }
.tg-bal-row { display: flex; align-items: center; gap: 7px; margin-top: 14px; }
.tg-bal-row .grow { flex: 1; }
.tg-bal-row > b { font-size: 17px; color: var(--gold); }
.tg-eye { background: none; border: 0; padding: 2px; color: var(--dim); display: grid; }
.tg-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tg-pill { padding: 5px 13px; border-radius: 8px; background: #2b333d; color: var(--ivory); font-size: 13px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--hair-2); }
.tg-pill:hover { text-decoration: none; background: #333c47; }
#notices { padding: 0 16px; }
#notices:empty { display: none; }

/* 分类标签：下划线式，右侧筛选按钮 */
.tg-tabs { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 26px; padding: 0 16px; background: var(--night); box-shadow: inset 0 -1px 0 var(--hair); }
.tg-title + .tg-tabs { top: 52px; }
.tg-tabs button { flex: none; background: none; border: 0; border-radius: 0; padding: 13px 0 11px; font-size: 15px; color: var(--mute); }
.tg-tabs button[aria-selected=true] { color: var(--gold); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); background: none; }
.tg-tabs .tg-sort { margin-left: auto; padding: 8px 0; color: var(--mute); display: grid; }
.tg-tabs .tg-sort.on { color: var(--gold); box-shadow: none; }
.tg-tabs .tg-sort svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tg-level { display: flex; padding: 10px 16px 0; }
.tg-level span { font-size: 12px; color: var(--gold); background: rgba(212,178,106,.1); padding: 3px 4px 3px 10px; border-radius: 6px 0 0 6px; }
.tg-level button { padding: 0 8px; border: 0; border-radius: 0 6px 6px 0; background: rgba(212,178,106,.1); color: var(--gold); font-size: 14px; }
.tg-lvls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 6px; }
.tg-lvls button { padding: 12px 0; border-radius: 10px; }

/* 牌桌列表：一行一桌，左边座位环，右边最小买入 */
.tg-list { padding-bottom: 10px; }
.tg-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; color: inherit; text-decoration: none; box-shadow: inset 0 -1px 0 rgba(0,0,0,.35), inset 0 -2px 0 rgba(255,255,255,.03); overflow: hidden; }
.tg-row:hover { text-decoration: none; }
.tg-row:active { background: var(--deck); }
.tg-row::after { content: ""; position: absolute; right: -36px; top: 50%; width: 120px; height: 120px; transform: translateY(-50%); border-radius: 50%; border: 14px solid rgba(255,255,255,.025); pointer-events: none; }
.tg-row.closed { opacity: .45; }
.tg-row.prem { background: linear-gradient(90deg, rgba(255,214,72,.06), transparent 60%); }
.tg-ring { position: relative; flex: none; width: 50px; height: 50px; display: grid; place-items: center; }
.tg-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tg-ring circle { fill: none; stroke-width: 4; }
.tg-ring .bg { stroke: #343d48; }
.tg-ring .fg { stroke: var(--gold); stroke-linecap: round; }
.tg-ring.zero .fg { display: none; }
.tg-ring b { position: relative; font-size: 14px; font-weight: 600; }
.tg-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tg-tn { font-size: 14px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-tn span { margin-left: 8px; color: var(--dim); font-size: 13px; }
.tg-bl { font-size: 15px; font-weight: 600; color: var(--ivory); }
.tg-bl .here { margin-left: 8px; font: 500 11px var(--ui); color: var(--tg-on); background: var(--gold); padding: 1px 6px; border-radius: 4px; vertical-align: 1px; }
.tg-bl .tg-up { margin-left: 10px; font: 500 13px var(--num, inherit); color: var(--mute, #8a94a0); }
.tg-tag.ins::before { content: ''; display: inline-block; width: 9px; height: 10px; margin-right: 3px; vertical-align: -1px; background: currentColor; clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%); }
.tg-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tg-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--dim); }
.tg-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.tg-tag.on { color: var(--gold); }
.tg-tag.live { color: #ff6b5e; }
.tg-tag.live::before { animation: breathe 1.6s ease-in-out infinite; opacity: 1; }
.tg-tag.prem { color: var(--tg-yellow); }
.tg-buy { position: relative; z-index: 1; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tg-buy small { color: var(--mute); font-size: 12px; }
.tg-buy b { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; }

/* 在班荷官条：小一点、绿色描边 */
.tg-lobby .duty { padding: 12px 16px 4px; }
.duty .dz { width: 96px; padding: 10px 6px 8px; border-radius: 12px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair-2); }
.duty .dz img, .duty .dz .avatar-c { width: 48px; height: 48px; box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px var(--gold); }
.duty .dz b { font: 600 13px var(--ui); letter-spacing: 0; }

/* ───────── 比赛 / 俱乐部 ───────── */
.alt { padding-top: 12px; }
.room-actions button { border-radius: 10px; }
.club-card { border-radius: 12px; }

/* ───────── 我的 ───────── */
.tg-prof { display: flex; align-items: center; gap: 14px; padding: 8px 0 18px; }
.tg-prof .grow { flex: 1; min-width: 0; }
.tg-prof .avatar-edit .avatar-c { width: 62px; height: 62px; }
.tg-pn { display: flex; align-items: baseline; gap: 10px; }
.tg-pn b { font: 600 19px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-link { background: none; border: 0; padding: 0; color: var(--mute); font-size: 13px; flex: none; }
.tg-pid { margin-top: 4px; color: var(--dim); font-size: 12px; }
.tg-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tg-tiles a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 13px 0 10px; border-radius: 12px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ivory); font-size: 12px; text-decoration: none; }
.tg-tiles svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tg-tiles i { position: absolute; top: 6px; right: 10px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #ff4d4f; color: #fff; font: 600 10px/16px var(--num); font-style: normal; }
.tg-wallet { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair-2); }
.tg-wallet .grow { flex: 1; min-width: 0; }
.tg-wallet small { display: block; color: var(--mute); font-size: 12px; }
.tg-wallet b { display: inline-flex; align-items: center; gap: 7px; font-size: 22px; margin-top: 2px; }
.tg-wallet .btn { padding: 7px 14px; border-radius: 8px; font-size: 13px; }
.tg-wallet .frozen { color: var(--dim); font-size: 11px; }
.tg-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; font-size: 15px; font-weight: 600; }
.tg-sec a { font-size: 12px; font-weight: 400; color: var(--mute); }
.tg-data { display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: auto auto; gap: 16px 8px; align-items: center; padding: 18px 10px; border-radius: 12px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair-2); text-align: center; }
.tg-data > div { display: flex; flex-direction: column; gap: 2px; }
.tg-data b { font-size: 17px; }
.tg-data span { color: var(--dim); font-size: 12px; }
.tg-data .tg-donut { grid-column: 2; grid-row: 1 / 3; justify-self: center; width: 96px; height: 96px; border-radius: 50%; justify-content: center; align-items: center;
  background: radial-gradient(closest-side, var(--deck) 74%, transparent 75%), conic-gradient(var(--gold) calc(var(--p) * 1%), #0f1317 0); }
.tg-data .tg-donut b { font-size: 18px; }
.tg-data > div:nth-child(1) { grid-column: 1; grid-row: 1; }
.tg-data > div:nth-child(3) { grid-column: 3; grid-row: 1; }
.tg-data > div:nth-child(4) { grid-column: 1; grid-row: 2; }
.tg-data > div:nth-child(5) { grid-column: 3; grid-row: 2; }
.list-group { border-radius: 12px; }
.list-item { padding: 15px 16px; font-size: 14px; }

/* 弹层 */
.sheet { background: #1f252d; border-radius: 16px 16px 0 0; }
.sheet h3 { font: 600 18px/1.3 var(--ui); letter-spacing: .02em; }

/* ═════════ 牌桌：平面绿色台呢，空位是虚线圆 + 号 ═════════ */
.tv { background: #0b0d10; }
.tv::before, .tv-wall { display: none; }
.tv-table { background: none; -webkit-mask-image: none; mask-image: none; }
/* 台呢：圆角长胶囊，墨绿径向渐变，外围一圈深色桌边 */
.tv-table::before { content: ""; position: absolute; left: 4%; right: 4%; top: 9%; bottom: 7%; border-radius: 46% / 30%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, #10a06a 0%, #0b7e52 45%, #075c3c 80%, #054a31 100%);
  box-shadow: 0 0 0 6px #0f1a16, 0 0 0 7px rgba(255,255,255,.06), inset 0 0 50px rgba(0,0,0,.35), 0 18px 50px rgba(0,0,0,.6); }
/* 台面中央的装饰线和平台字样 */
.tv-table::after { content: "大富德州"; position: absolute; left: 50%; top: 60%; transform: translateX(-50%); z-index: 0; pointer-events: none;
  font: 800 6.5cqw/1 var(--ui); letter-spacing: .1em; color: rgba(0,0,0,.18); }
.tv-table .felt-skin { left: 4%; top: 9%; width: 92%; height: 84%; border-radius: 46% / 30%; -webkit-mask: none; mask: none; }
.felt-top b { font: 600 12px var(--ui); color: rgba(255,255,255,.75); letter-spacing: .06em; }
.felt-top span { color: rgba(255,255,255,.6); }
.tv-center .pot { background: rgba(0,0,0,.28); }
.tv-center .status { color: rgba(255,255,255,.85); letter-spacing: .06em; }

/* 座位 */
.ps .plate { background: rgba(10,14,18,.82); border-radius: 6px; box-shadow: none; }
.ps .nm { color: rgba(255,255,255,.85); }
.ps .stk { color: var(--tg-yellow); }
.ps .ring circle { stroke: var(--gold); }
.ps.me .plate { box-shadow: inset 0 0 0 1px rgba(212,178,106,.7); }
.ps.me .av { box-shadow: inset 0 0 0 2px var(--av), 0 0 0 2.5px var(--gold), 0 0 16px rgba(212,178,106,.45); }
.ps.winner .av { box-shadow: inset 0 0 0 2px var(--av), 0 0 0 3px var(--tg-yellow), 0 0 22px rgba(255,214,72,.55); }
.ps .win { color: var(--tg-yellow); }
.ps .act.raise, .ps .act.allin, .ps .act.bet, .ps .hl { color: var(--tg-on); }
/* 空位：虚线圆，中间一个加号 */
.ps.empty .av { width: 46px; height: 46px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.4); background: rgba(0,0,0,.18); color: rgba(255,255,255,.8); filter: none; display: grid; place-items: center; }
.ps.empty .av svg { display: none; }
.ps.empty .av::before, .ps.empty .av::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.8px; margin: -.9px 0 0 -8px; background: currentColor; border-radius: 1px; }
.ps.empty .av::after { transform: rotate(90deg); }
.ps.empty .nm { font-size: 11px; color: rgba(255,255,255,.6); text-shadow: none; margin-top: 3px; }
.ps-btn { background: #fff; color: #3a2c10; box-shadow: 0 0 0 1.5px var(--gold), 0 2px 4px rgba(0,0,0,.5); }

/* 顶部和角落的悬浮按钮 */
.tv-head .back, .tv-head .bal, .tv-corner { background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.1); }
.tv-video { box-shadow: 0 0 0 1px rgba(212,178,106,.35), 0 10px 26px rgba(0,0,0,.6); }

/* 操作台：石墨灰 */
.tv-dock { background: rgba(22,27,33,.94); box-shadow: 0 -1px 0 rgba(255,255,255,.06); border-radius: 16px 16px 0 0; }
.tv-dock .hn b { font: 600 16px/1.3 var(--ui); letter-spacing: .02em; }
.tv-dock .presets button { background: rgba(255,255,255,.05); }
.tv-dock .presets button.on { background: rgba(212,178,106,.14); color: var(--gold-hi); }
.room-actions button.primary, button.primary.quickstart, .tv-dock button.primary { background: var(--gold); border-color: var(--gold); }

/* ═════════ 牌桌功能：顶部菜单 / 余额、底部工具栏、提示带、记录面板、规则 ═════════ */
.tv-head .bal, .tv-head .lat { display: none; }
.tv-head .back { width: 38px; height: 38px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.tv-head .back::before { display: none; }
.tv-head .back svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.tg-top { position: absolute; left: 50%; top: calc(var(--tvt, 0px) + 12px); transform: translateX(-50%); z-index: 8; }
.tg-bal { display: inline-flex; align-items: center; gap: 7px; padding: 3px 4px 3px 6px; border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); color: #fff; }
.tg-bal .tg-coin { width: 18px; height: 18px; }
.tg-bal b { min-width: 46px; text-align: center; font-size: 14px; }
.tg-bal i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--ui); font-style: normal; color: var(--gold); }
.tg-proof { position: absolute; right: 10px; top: calc(var(--tvt, 0px) + 10px); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; background: none; border: 0; color: var(--gold); font-size: 10px; }
.tg-proof span { width: 22px; height: 30px; border-radius: 4px; background: linear-gradient(160deg, #e36b7b, #a8394a); box-shadow: 0 0 0 1.5px #fff3, 0 0 10px rgba(212,178,106,.5); }
.tv:has(.tv-video:not([hidden])) .tg-proof { top: calc(var(--tvt, 0px) + 140px); }

/* 下拉菜单 */
.tg-drop { position: absolute; left: 10px; top: calc(var(--tvt, 0px) + 52px); z-index: 30; min-width: 170px; padding: 6px 0; border-radius: 10px; background: rgba(28,34,41,.97); box-shadow: 0 12px 30px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); animation: fade .15s; }
.tg-drop button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 0; padding: 11px 20px; font-size: 15px; color: #fff; }
.tg-drop button:active { background: rgba(255,255,255,.06); }
.tg-drop button:disabled { color: #6b7581; opacity: 1; }

/* 底部工具栏：记录、聊天 | 语音、牌型 */
.tg-bar { position: absolute; left: 8px; right: 8px; bottom: calc(var(--dock-h) + 8px); z-index: 6; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.tg-bar .grow { flex: 1; }
.tg-bar > button, .tg-bar .tv-corner { position: static; pointer-events: auto; width: 40px; height: 40px; padding: 0; border-radius: 10px; display: grid; place-items: center; color: #e9edf1; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.08); }
.tg-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 台面：规则行、离桌限制、保险盾、底池合计、下注路径 */
.tg-rule { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); z-index: 1; text-align: center; pointer-events: none; color: rgba(255,255,255,.6); white-space: nowrap; }
.tg-vb { font-size: 12px; letter-spacing: .04em; }
.tg-ll { margin-top: 8px; color: rgba(255,255,255,.8); }
.tg-ll b { display: block; font-size: 14px; margin-bottom: 4px; }
.tg-ll dl { display: grid; grid-template-columns: auto auto; gap: 1px 18px; margin: 0; font-size: 11px; text-align: left; }
.tg-ll dt { color: rgba(255,255,255,.65); } .tg-ll dd { margin: 0; text-align: right; }
.tv-table::after { top: 64%; }
.tg-shield { width: 26px; height: 30px; background: radial-gradient(circle at 50% 45%, #3a2c10 0 28%, transparent 30%), var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 2 5v8c0 7 5 12 10 14 5-2 10-7 10-14V5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 2 5v8c0 7 5 12 10 14 5-2 10-7 10-14V5z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(212,178,106,.6)); }
.tg-potsum { padding: 2px 16px; font-size: 13px; color: #fff; background: linear-gradient(90deg, transparent, rgba(0,0,0,.35) 20%, rgba(0,0,0,.35) 80%, transparent); }
.tg-path { padding: 4px 14px; border-radius: 6px; font-size: 12px; color: #fff; background: rgba(255,255,255,.14); border: 0; }

/* 提示带：横穿牌桌中部 */
.tg-ticker { position: absolute; left: 0; right: 0; top: 46%; z-index: 9; display: flex; flex-direction: column; align-items: stretch; gap: 2px; pointer-events: none; }
.tg-ticker .tk { padding: 7px 0; text-align: center; font-size: 15px; color: #fff; background: linear-gradient(90deg, transparent, rgba(0,0,0,.7) 15%, rgba(0,0,0,.7) 85%, transparent); animation: tkIn .25s ease-out, tkOut .4s ease-in 2.8s forwards; }
.tg-ticker .tk.ins { box-shadow: inset 0 1px 0 rgba(212,178,106,.6), inset 0 -1px 0 rgba(212,178,106,.6); }
@keyframes tkIn { from { opacity: 0; transform: scaleX(.6); } }
@keyframes tkOut { to { opacity: 0; } }
.pres-tick { display: none; }

/* 本桌记录面板：右侧滑出 */
.tg-panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(86%, 380px); z-index: 25; display: flex; flex-direction: column; background: #1a2027; box-shadow: -12px 0 30px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); padding-top: var(--tvt, 0px); }
.tg-panel.on { transform: none; }
.tg-pt { display: flex; gap: 22px; padding: 14px 18px 0; box-shadow: inset 0 -1px 0 rgba(255,255,255,.06); }
.tg-pt button { background: none; border: 0; border-radius: 0; padding: 0 0 10px; font-size: 16px; color: var(--mute); }
.tg-pt button[aria-selected=true] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.tg-pb { flex: 1; overflow-y: auto; padding: 14px 16px; }
.tg-pb .empty { padding-top: 40%; }
.tg-hh { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--mute); }
.tg-hh > b { color: #fff; font-size: 15px; }
.tg-hb { display: flex; gap: 4px; margin: 12px 0; min-height: 40px; }
.tg-hb .card, .tg-hp .card, .tg-rk .card { --w: 30px; margin: 0; }
.tg-hp > div { display: flex; align-items: center; gap: 8px; padding: 8px 0; box-shadow: inset 0 -1px 0 rgba(255,255,255,.05); font-size: 13px; }
.tg-hp > div.me .nm { color: var(--gold); }
.tg-hp .nm { width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-hp .cs { display: flex; gap: 2px; min-width: 64px; }
.tg-hp .hn { flex: 1; color: var(--mute); font-size: 12px; }
.tg-replay { display: block; margin: 16px auto 0; padding: 8px 22px; border-radius: 8px; font-size: 13px; }
.tg-step { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); }
.tg-step button { width: 30px; height: 30px; padding: 0; border-radius: 6px; font-size: 18px; }
.tg-step input { flex: 1; accent-color: var(--gold); }
.tg-step .num { min-width: 38px; text-align: center; font-size: 12px; color: var(--mute); }

/* 下注路径 */
.tg-pathlist section { margin-top: 12px; }
.tg-pathlist h4 { margin: 0 0 6px; font-size: 13px; color: var(--gold); }
.tg-pathlist div { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.05); }
.tg-pathlist .act { font-size: 12px; padding: 1px 8px; border-radius: 4px; background: rgba(255,255,255,.1); }
.tg-pathlist .act.raise, .tg-pathlist .act.bet, .tg-pathlist .act.allin { background: var(--tg-yellow); color: #3a2a00; }
.tg-pathlist .act.call { background: var(--gold); color: var(--tg-on); }
.tg-pathlist b { min-width: 60px; text-align: right; }

/* 规则说明 */
.tg-rt { display: flex; gap: 22px; margin: 10px 0 4px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.06); }
.tg-rt button { background: none; border: 0; border-radius: 0; padding: 4px 0 9px; font-size: 15px; color: var(--mute); }
.tg-rt button[aria-selected=true] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.tg-rb { min-height: 300px; }
.tg-rk-h { width: max-content; margin: 14px auto 8px; padding: 3px 22px; border-radius: 4px; color: var(--tg-yellow); background: linear-gradient(90deg, #0f6b45, #1aa36a, #0f6b45); font-size: 14px; }
.tg-rk { display: flex; align-items: center; gap: 10px; padding: 5px 4px; font-size: 14px; }
.tg-rk .cs { display: flex; gap: 3px; }
.tg-ins { margin: 14px 0 0; padding-left: 20px; color: var(--ivory); line-height: 1.8; font-size: 14px; }
.tg-ins li { margin-bottom: 8px; }
.tg-tn { margin: 12px 0 4px; font-weight: 600; }

/* 动作气泡：让牌 / 跟注绿色，加注 / 下注 / 强抓黄色，弃牌灰色 */
.ps .act { border-radius: 6px; padding: 2px 9px; font-size: 12px; background: #e9edf1; color: #1b2128; }
.ps .act.call, .ps .act.check { background: var(--gold); color: var(--tg-on); }
.ps .act.raise, .ps .act.bet, .ps .act.allin { background: var(--tg-yellow); color: #3a2a00; }
.ps .act.fold { background: rgba(240,240,240,.92); color: #333; box-shadow: none; }
.ps.folded .plate, .ps.folded .av { opacity: .55; }

/* 摊牌：赢家光芒、牌型横幅、黄色赢额 */
.ps.winner::before { content: ""; position: absolute; left: 50%; top: 20px; width: 160px; height: 160px; transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255,230,120,.38) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: rays 6s linear infinite; }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.ps .hl { top: -44px; bottom: auto; padding: 3px 14px; border-radius: 3px; font-size: 13px; background: linear-gradient(180deg, #24313a, #12181d); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.ps.winner .hl { color: #fff; background: linear-gradient(180deg, #2f3b45, #141a1f); }
.ps .fx .win, .ps .win { top: auto; bottom: -24px; padding: 1px 10px; border-radius: 4px; font-size: 14px; color: #3a2a00; background: var(--tg-yellow); text-shadow: none; }
.tv-center .board .card.dim { filter: brightness(.55) saturate(.6); }
.tv-table .steps { display: none; }
.tg-rule { top: 66%; }
.tv-table::after { top: 73%; font-size: 5.5cqw; }
.tg-rk .grow, .tg-pathlist .grow { flex: 1; }

/* ═════════ 牌桌尺寸：台呢铺满顶部栏和底部工具栏之间，座位、牌都放大 ═════════ */
.tv-table { left: 0; right: 0; width: auto; transform: none; top: calc(var(--tvt, 0px) + 50px); bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom)) + 128px); aspect-ratio: auto; } /* 尺寸固定：轮到你时操作台盖住台呢下沿，台面不缩放、座位不跳 */
.tv-table::before { left: 3%; right: 3%; top: 1%; bottom: 1%; border-radius: 48% / 24%; }
.tv-table .felt-skin { left: 3%; top: 1%; width: 94%; height: 98%; border-radius: 48% / 24%; }
.tv-table::after { top: 66%; font-size: 7cqw; }
.tg-rule { top: 60%; }
.tv-center { top: 40%; width: 76%; }
.tv-center .board .card { --w: min(58px, 13cqw); }
.tv-center .board { gap: 4px; min-height: 76px; }
.felt-top { display: none; }
.tv.ctx .felt-top { display: block; top: 24%; }
.tg-bar { bottom: calc(var(--dock-h) + 6px); }
/* 座位：头像 54px，名牌更宽，筹码更醒目 */
.ps { width: 86px; }
.ps .av { width: 54px; height: 54px; font-size: 19px; }
.ps.empty .av { width: 52px; height: 52px; }
.ps .plate { min-width: 76px; padding: 3px 8px 2px; margin-top: -6px; }
.ps .nm { font-size: 12px; max-width: 80px; }
.ps .stk { font-size: 14px; }
.ps .cards .card { --w: 22px; }
.ps .cards:not(.up) { top: 6px; left: auto; right: -6px; transform: none; }
.ps .cards:not(.up) .card:first-child { transform: rotate(6deg); } .ps .cards:not(.up) .card + .card { display: none; }
.ps .cards.up .card { --w: 36px; }
.ps .act { top: -18px; font-size: 13px; }
.ps .eq { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); white-space: nowrap; font: 600 12px var(--num); color: var(--tg-yellow); background: rgba(0,0,0,.6); border: 1px solid rgba(255,214,72,.5); padding: 0 6px; border-radius: 3px; z-index: 5; }
.ps .insuring { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--gold); background: rgba(0,0,0,.7); padding: 1px 10px; border-radius: 3px; z-index: 5; animation: breathe 1.4s ease-in-out infinite; }
/* 全下亮牌：牌边一圈火焰光 */
.ps .cards.fire .card { box-shadow: 0 0 0 1.5px #ffb347, 0 0 12px 3px rgba(255,140,40,.75), 0 0 26px 6px rgba(255,80,20,.35); animation: fire 0.9s ease-in-out infinite alternate; }
@keyframes fire { to { box-shadow: 0 0 0 1.5px #ffd27a, 0 0 16px 5px rgba(255,160,50,.85), 0 0 34px 10px rgba(255,90,20,.4); } }
/* 边池：编号小筹码 */
.tv-center .side { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tv-center .sp { position: relative; display: inline-flex; align-items: center; padding: 1px 12px 1px 10px; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,214,72,.45); color: var(--tg-yellow); font-size: 12px; }
.tv-center .sp i { position: absolute; right: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; background: #222; color: #fff; font-size: 9px; font-style: normal; }
/* 眯牌：牌背盖在自己的底牌上，往上搓开 */
.tv-dock .sqbox { position: relative; display: flex; }
.tv-dock .sq-cover { position: absolute; inset: -2px; z-index: 5; border-radius: 6px; touch-action: none; cursor: grab; display: grid; place-items: end center; padding-bottom: 4px; transition: transform .25s ease-out;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 4px, transparent 4px 8px), linear-gradient(160deg, #e36b7b, #a8394a); box-shadow: 0 0 0 1.5px #fff, 0 6px 14px rgba(0,0,0,.5); }
.tv-dock .sq-cover span { font-size: 11px; color: #fff; background: rgba(0,0,0,.35); padding: 0 8px; border-radius: 999px; }
.tv-dock .sq-cover::before { content: "↑"; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 16px; animation: breathe 1.4s ease-in-out infinite; }

/* 本桌账单：左侧滑出 */
.tg-book { position: absolute; top: 0; bottom: 0; left: 0; width: min(86%, 380px); z-index: 25; display: flex; flex-direction: column; background: rgba(24,29,35,.97); box-shadow: 12px 0 30px rgba(0,0,0,.5); transform: translateX(-100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); padding-top: var(--tvt, 0px); }
.tg-book.on { transform: none; }
.tb-head { padding: 14px 16px 10px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.06); }
.tb-head .r1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tb-head .r1 b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-head .r1 span { color: var(--mute); font-size: 12px; }
.tb-head .r2 { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--mute); font-size: 14px; }
.tb-head .r2 .grow { flex: 1; }
.tb-head .ins { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; }
.tb-head .ins::before { content: ""; width: 12px; height: 14px; background: var(--mute); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 2 5v8c0 7 5 12 10 14 5-2 10-7 10-14V5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 2 5v8c0 7 5 12 10 14 5-2 10-7 10-14V5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tb-body { flex: 1; overflow-y: auto; }
.tb-table { padding: 0 16px; }
.tb-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: center; gap: 4px; padding: 8px 0; font-size: 14px; }
.tb-row.five { grid-template-columns: 1.7fr 0.9fr 0.8fr 0.9fr 1fr; }
.tb-row > :not(:first-child) { text-align: right; }
.tb-row > :first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-row.th { color: var(--mute); font-size: 13px; padding-top: 12px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.06); margin-bottom: 4px; }
.tb-row.gone { opacity: .4; }
.tb-row b.up { color: var(--gold); } .tb-row b.down { color: #ff5e6c; }
.tb-watch { margin-top: 10px; background: rgba(0,0,0,.18); padding: 10px 16px 14px; }
.tb-wt { color: var(--mute); font-size: 13px; margin-bottom: 10px; }
.tb-wg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 6px; }
.tb-wg > div { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.tb-wg .avatar-c { width: 44px; height: 44px; font-size: 15px; }
.tb-wg span:last-child { font-size: 11px; color: var(--ivory); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-tabs { display: flex; gap: 26px; padding: 12px 16px calc(12px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.tb-tabs button { background: none; border: 0; border-radius: 0; padding: 0 0 6px; font-size: 16px; color: var(--mute); }
.tb-tabs button[aria-selected=true] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.tv-center .board .card { --w: min(52px, 11.6cqw); }
.tv.llshow .tv-table::after { display: none; }

/* 右上角：开局时"可存证"变成"随机洗牌" */
.tg-proof em { font-style: normal; }
.tg-proof .sh, .tg-proof.shuffle em:not(.sh) { display: none; }
.tg-proof.shuffle .sh { display: inline; }
.tg-proof.shuffle span { animation: shuffle .5s ease-in-out 3; }
@keyframes shuffle { 50% { transform: rotate(-12deg) translateY(-2px); } }
/* 蓝色台呢 */
.tv.felt-blue .tv-table::before { background: radial-gradient(ellipse 70% 55% at 50% 42%, #2f7fd0 0%, #1f5ea8 45%, #154480 80%, #0f3363 100%); }
/* 语音按钮：没入座时变灰 */
.tg-bar .mic.off { opacity: .55; }
/* 聊天面板：左侧滑出，记录 + 输入 + 快捷短语 */
.tg-chat { position: absolute; top: 0; bottom: 0; left: 0; width: min(86%, 380px); z-index: 26; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(24,29,35,.97); box-shadow: 12px 0 30px rgba(0,0,0,.5); transform: translateX(-100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); padding: var(--tvt, 0px) 0 calc(10px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); }
.tg-chat.on { transform: none; }
.tc-list { overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.tc-m { display: flex; gap: 10px; align-items: flex-start; }
.tc-m .avatar-c { width: 34px; height: 34px; font-size: 13px; flex: none; }
.tc-m small { display: block; color: var(--dim); font-size: 10px; }
.tc-m p { margin: 2px 0 0; font-size: 14px; color: #fff; word-break: break-all; }
.tc-phr { margin: 0 14px 8px; padding: 6px 0; border-radius: 10px; background: #1c2229; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); max-height: 50%; overflow-y: auto; }
.tc-phr button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 0; padding: 9px 16px; font-size: 14px; color: #fff; }
.tc-phr button:active { background: rgba(255,255,255,.06); }
.tc-in { display: flex; gap: 8px; padding: 0 14px; }
.tc-in input { flex: 1; min-width: 0; height: 40px; border-radius: 8px; background: #12161b; }
.tc-in button { width: 44px; height: 40px; padding: 0; border-radius: 8px; display: grid; place-items: center; font-size: 18px; }
.tc-in .tc-q svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tc-in .tc-send { background: var(--gold); border-color: var(--gold); color: var(--tg-on); font-weight: 700; }
/* 资料卡：右上角屏蔽语音 / 发红包；礼物带价格 */
.profile-sheet { display: flex; align-items: center; gap: 12px; }
.profile-sheet .grow { flex: 1; min-width: 0; }
.pf-acts { display: flex; gap: 8px; }
.pf-acts button { width: 38px; height: 38px; padding: 0; border-radius: 8px; font-size: 18px; display: grid; place-items: center; }
.props.gifts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 6px; padding: 12px 8px; border-radius: 12px; background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); margin: 12px 0; }
.props.gifts button { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 0; font-size: 26px; }
.props.gifts small { display: inline-flex; align-items: center; gap: 3px; font: 600 10px var(--num); color: #fff; background: rgba(0,0,0,.45); padding: 0 6px 0 2px; border-radius: 999px; }
.props.gifts .tg-coin { width: 11px; height: 11px; vertical-align: 0; }
/* 红包金额 */
.tg-pk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.tg-pk button { padding: 10px 0; border-radius: 8px; background: #b3333b; border-color: #d24b52; color: #ffe08a; font: 700 15px var(--num); }
.tg-ticker .tk.pkt { box-shadow: inset 0 1px 0 rgba(255,90,90,.7), inset 0 -1px 0 rgba(255,90,90,.7); }
/* 牌局设置 */
.tg-set-h { display: flex; align-items: center; justify-content: space-between; }
.tg-set-h .link { background: none; border: 0; color: var(--gold); font-size: 15px; font-weight: 600; }
.tg-set > b { display: block; margin: 16px 0 8px; font-size: 14px; color: var(--mute); font-weight: 500; }
.tg-set > b small { color: var(--dim); }
.tg-felts, .tg-decks { display: flex; gap: 14px; }
.tg-felts button { padding: 3px; border-radius: 8px; background: none; }
.tg-felts i { display: block; width: 44px; height: 62px; border-radius: 6px; }
.tg-felts i.g { background: radial-gradient(ellipse at 50% 40%, #10a06a, #054a31); }
.tg-felts i.b { background: radial-gradient(ellipse at 50% 40%, #2f7fd0, #0f3363); border-radius: 40% / 20%; }
.tg-felts button.on, .tg-decks button.on { box-shadow: 0 0 0 2px var(--gold); border-color: transparent; }
.tg-decks button { display: flex; gap: 2px; padding: 4px; border-radius: 6px; background: none; }
.tg-decks span { width: 22px; height: 30px; border-radius: 3px; background: #f3eee4; font: 700 10px var(--num); display: grid; place-items: center; color: #1b1f27; }
.tg-decks .h { color: #c8302a; } .tg-decks .c { color: #2b8a4e; } .tg-decks .d { color: #2a5bb8; }
.tg-fracs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.tg-fracs button { padding: 7px 0; border-radius: 5px; font: 600 13px var(--num); background: #3a434e; color: #cfd6dd; border: 0; }
.tg-fracs button.on { background: #e8b65a; color: #3a2a00; }
.tg-set .list-item { padding: 12px 0; }
.decide .ins-wallet{font-size:12px;color:rgba(255,255,255,.6);margin-top:6px}.decide .ins-wallet b{color:#f5d36b;font-weight:600}
/* ───── 资料卡 / 发红包：桌面中间的浮层卡片 ───── */
.sheet-mask.pop-mask { align-items: center; justify-content: center; background: rgba(0,0,0,.35); backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet.tg-pop { width: min(360px, calc(100% - 28px)); border-radius: 10px; padding: 14px 12px 12px; background: #1d2127; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 18px 50px rgba(0,0,0,.5); max-height: 90%; animation: pop-in .18s ease-out; transform: none !important; }
.sheet.tg-pop .grab { display: none; }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } }
.pf-head { display: flex; align-items: center; gap: 12px; padding: 0 4px 12px; }
.pf-head .avatar-c { width: 56px; height: 56px; font-size: 20px; flex: none; background-size: cover; background-position: center; }
.pf-head h3 { margin: 0 0 4px; font-size: 17px; font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-id { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 0; color: #7b8ba0; font-size: 13px; }
.pf-id svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pf-acts { display: flex; gap: 8px; align-self: flex-start; padding-top: 6px; }
.pf-ic { width: 34px; height: 34px; padding: 0; border-radius: 7px; background: #2b3139; border: 0; color: #e8ecf1; display: grid; place-items: center; }
.pf-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.pf-ic .x { display: none; }
.pf-ic.off { color: #8a939e; }
.pf-ic.off .x { display: inline; }
.pf-ic.off .w { display: none; }
.pf-ic.pk i { width: 16px; height: 20px; border-radius: 3px; background: linear-gradient(#ef4a4a, #c92a2a); position: relative; box-shadow: inset 0 6px 0 -3px #ff6b6b; }
.pf-ic.pk i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #f7c948; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; padding: 12px 0; border-radius: 8px; background: #23282f; border: 1px solid rgba(255,255,255,.1); color: inherit; }
.pf-stats div, .pf-more div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pf-stats b, .pf-more b { font: 600 14px var(--num); color: #fff; }
.pf-stats span, .pf-more span { font-size: 11px; color: #8a96a6; }
.pf-more { display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 0 2px; }
.pf-more[hidden] { display: none; }
.pf-note { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 50px; padding: 0 12px; border-radius: 8px; background: #0f1215; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pf-note.c { box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1px rgba(255,255,255,.08); }
.pf-note .t { flex: 1; min-width: 0; color: #dfe5ec; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-note .t em { font-style: normal; color: #8a96a6; }
.pf-note > button:not(.link) { background: none; border: 0; padding: 4px; color: #fff; }
.pf-note svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pf-note input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; color: #fff; font-size: 15px; padding: 0; user-select: text; -webkit-user-select: text; }
.pf-note .link { background: none; border: 0; color: var(--gold); font-weight: 600; }
.pf-colors { display: flex; gap: 10px; padding: 10px 4px 0; }
.pf-colors button { width: 22px; height: 22px; padding: 0; border-radius: 50%; background: var(--c); border: 1px dashed rgba(255,255,255,.3); }
.pf-colors button[data-c]:not([data-c=""]) { border-style: solid; border-color: transparent; }
.pf-colors button.on { box-shadow: 0 0 0 2px #1d2127, 0 0 0 4px var(--gold); }
.tg-pop .props.gifts { margin: 10px 0 0; background: #171b20; }
.pf-foot { display: flex; justify-content: flex-end; gap: 16px; padding: 10px 4px 0; }
.pf-foot button { background: none; border: 0; padding: 0; font-size: 12px; color: #6f7a88; }
/* 自己的头像：表情 */
.pf-faces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 10px 6px; border-radius: 8px; background: #171b20; }
.pf-faces button { background: none; border: 0; padding: 4px 0; font-size: 28px; line-height: 1; }
.pf-faces button:active { transform: scale(.9); }
.pf-says { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.pf-says button { padding: 8px 0; border-radius: 6px; background: #2b3139; border: 0; color: #dfe5ec; font-size: 13px; }
/* 头像表情：盖住头像弹出 */
.face-fx { position: absolute; left: 50%; top: 0; width: var(--fxs, 54px); height: var(--fxs, 54px); margin-left: calc(var(--fxs, 54px) / -2); display: grid; place-items: center; font-size: calc(var(--fxs, 54px) * .9); line-height: 1; z-index: 8; pointer-events: none; animation: face-fx 2.8s ease-out forwards; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
@keyframes face-fx { 0% { transform: scale(.2); opacity: 0; } 10% { transform: scale(1.25); opacity: 1; } 18% { transform: scale(1); } 30%, 50%, 70% { transform: scale(1) rotate(-6deg); } 40%, 60% { transform: scale(1.05) rotate(6deg); } 88% { transform: scale(1); opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }
/* 发红包 */
.pk-h { display: flex; align-items: center; justify-content: center; position: relative; padding: 2px 0 12px; }
.pk-h h3 { margin: 0; font-size: 18px; font-weight: 500; color: #fff; }
.pk-h .x { position: absolute; right: 0; top: -2px; background: none; border: 0; color: #8a96a6; font-size: 18px; }
.pk-route { display: flex; justify-content: center; align-items: center; gap: 18px; color: #fff; font-size: 15px; margin-bottom: 8px; }
.pk-route > span { display: inline-flex; align-items: center; gap: 8px; }
.pk-route b { color: var(--gold); font-size: 22px; font-weight: 400; }
.pk-route .avatar-c { width: 24px; height: 24px; font-size: 10px; background-size: cover; }
.pk-route .tg-coin { width: 22px; height: 22px; }
.pk-l { display: block; color: #7b8ba0; font-size: 14px; margin: 10px 4px 6px; }
.pk-id { padding: 10px 4px 14px; color: #fff; font-size: 15px; }
.pk-in { display: flex; align-items: center; height: 50px; padding: 0 12px; border-radius: 10px; background: #0f1215; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.pk-in input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font-size: 16px; padding: 0; height: 100%; }
.pk-in .link { background: none; border: 0; color: #3ee08f; font-size: 17px; font-weight: 600; }
.pk-bal { text-align: right; color: #dfe5ec; font-size: 14px; margin: 12px 4px 14px; }
.tg-pop #pkGo { height: 48px; border-radius: 8px; background: linear-gradient(#7ee2a8, #3fbf7d); border: 0; color: #12301f; font-size: 17px; }
.pf-head h3::after, .pk-h h3::after { display: none !important; }
.pf-note input, .pk-in input { border: 0 !important; outline: none; box-shadow: none !important; background: none !important; }
/* ───── 轮到你：快捷下注圆钮 + 三个大按钮；加注弹出右侧竖向滑块 ───── */
.tv-dock .qbet { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; }
.tv-dock .qbet .qb { flex: 0 0 auto; width: 58px; height: 58px; padding: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: radial-gradient(circle at 50% 35%, #2c343e, #181d23 70%); border: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1), 0 3px 8px rgba(0,0,0,.35); color: #e8ecf1; transition: transform .12s, box-shadow .15s; }
.tv-dock .qbet .qb b { font: 600 13px/1.1 var(--ui); }
.tv-dock .qbet .qb span { font: 600 11px/1.1 var(--num); color: #f5d36b; }
.tv-dock .qbet .qb.all { box-shadow: inset 0 0 0 2px rgba(255,110,90,.55), 0 3px 8px rgba(0,0,0,.35); }
.tv-dock .qbet .qb.all b { color: #ff8a78; }
.tv-dock .qbet .qb.on { box-shadow: inset 0 0 0 2px #d4b26a, 0 0 14px rgba(212,178,106,.45); transform: scale(1.06); }
.tv-dock .qbet .qb:active { transform: scale(.94); }
.tv-dock .main { gap: 8px; }
.tv-dock .main button { min-height: 56px; border-radius: 12px; border: 0; letter-spacing: 0; }
.tv-dock .main button.fold, .tv-dock .main button.cancel { background: var(--deck-2); color: var(--seal-hi); box-shadow: none; }
.tv-dock .main button.cancel { color: var(--ivory); }
.tv-dock .main button.go { background: var(--jade); color: #05210f; box-shadow: none; }
.tv-dock .main button.primary.raise, .tv-dock .main button.primary { background: var(--gold); color: var(--tg-on); box-shadow: none; }
.tv-dock .main.confirm { grid-template-columns: 1fr 2fr; }
.tv-dock .main.confirm button.raise .n { font-size: 22px; }
.tv-dock .rpop { position: absolute; right: 12px; bottom: calc(100% + 10px); width: 84px; padding: 10px 0 8px; border-radius: 16px; background: rgba(18,22,27,.96); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 12px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 20; animation: rpop-in .16s ease-out; }
.tv-dock .rpop[hidden] { display: none; }
@keyframes rpop-in { from { opacity: 0; transform: translateY(10px); } }
.tv-dock .rp-all { width: 64px; height: 32px; padding: 0; border-radius: 999px; border: 0; background: linear-gradient(#e2574a, #b8322a); color: #fff; font: 600 13px var(--ui); }
.tv-dock .rp-all.on { box-shadow: 0 0 0 2px #ffd0c9, 0 0 14px rgba(255,90,70,.6); }
.tv-dock .rp-amt { background: none; border: 0; padding: 2px 4px; color: #f5d36b; font-size: 16px; font-weight: 700; border-bottom: 1px dashed rgba(245,211,107,.5); border-radius: 0; }
.tv-dock .rp-track { position: relative; width: 44px; height: 220px; touch-action: none; cursor: ns-resize; outline: none; }
.tv-dock .rp-track::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 8px; margin-left: -4px; border-radius: 4px; background: rgba(255,255,255,.12); }
.tv-dock .rp-fill { position: absolute; left: 50%; bottom: 0; width: 8px; margin-left: -4px; border-radius: 4px; background: linear-gradient(to top, #e39a1d, #f7cd5e); }
.tv-dock .rp-thumb { position: absolute; left: 50%; width: 34px; height: 34px; transform: translate(-50%, 50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff3c4, #f2b93b 60%, #c98410); box-shadow: 0 0 0 3px rgba(247,205,94,.25), 0 3px 8px rgba(0,0,0,.5); pointer-events: none; }
.tv-dock .rp-track:focus-visible .rp-thumb { box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(0,0,0,.5); }
.tv-dock .rp-step { display: flex; gap: 6px; }
.tv-dock .rp-step button { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 0; background: #2a3038; color: #e8ecf1; font-size: 18px; line-height: 1; }
.tv-dock .turn-head { font-size: 13px; }
/* 按住说话：桌面中间的录音浮层 */
.vrec { position: absolute; left: 50%; top: 42%; z-index: 30; width: 168px; padding: 18px 0 14px; transform: translate(-50%, -50%); border-radius: 18px; background: rgba(14,18,22,.9); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 16px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; animation: pop-in .15s ease-out; transition: background-color .15s; }
.vrec[hidden] { display: none; }
.vrec .vr-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1fb57a; box-shadow: 0 0 0 6px rgba(31,181,122,.18); animation: vr-pulse 1.2s ease-in-out infinite; }
.vrec .vr-ic svg { grid-area: 1 / 1; width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vrec .vr-ic .x { display: none; }
@keyframes vr-pulse { 50% { box-shadow: 0 0 0 11px rgba(31,181,122,.08); } }
.vrec .vr-bars { display: flex; align-items: center; gap: 3px; height: 30px; }
.vrec .vr-bars i { width: 4px; height: 30px; border-radius: 2px; background: #d4b26a; transform: scaleY(.08); transition: transform .08s linear; }
.vrec .vr-t { color: #fff; font-size: 15px; font-weight: 600; }
.vrec .vr-h { color: rgba(255,255,255,.6); font-size: 12px; }
.vrec.cancel { background: rgba(120,24,24,.92); }
.vrec.cancel .vr-ic { background: #e2574a; box-shadow: 0 0 0 6px rgba(226,87,74,.2); animation: none; }
.vrec.cancel .vr-ic svg:not(.x) { display: none; }
.vrec.cancel .vr-ic .x { display: block; }
.vrec.cancel .vr-bars i { background: #ffb3a8; }
.vrec.cancel .vr-h { color: #fff; }
.tv-dock:has(.ctl.raising) { z-index: 12; }
/* ───── 台呢贴图：皮边 + 台呢一整张图；两头半圆不变形，只拉伸中间直的一段（九宫格） ───── */
.tv-table::before { left: 1%; right: 1%; top: 0; bottom: 0; border-radius: 0; background: none; box-shadow: none;
  border: 0 solid transparent; border-image: url(/app/img/felt-green.webp) 580 0 580 0 fill / calc(98cqw * .5106) 0 calc(98cqw * .5106) 0 stretch;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); }
.tv.felt-blue .tv-table::before { background: none; border-image-source: url(/app/img/felt-blue.webp); }
.tv-table .felt-skin { left: 4.5%; top: 2.2%; width: 91%; height: 95.6%; border-radius: 46% / 22%; }
.tg-felts i.g { background: url(/app/img/felt-green.webp) center / 100% 100% no-repeat; border-radius: 40% / 20%; }
.tg-felts i.b { background: url(/app/img/felt-blue.webp) center / 100% 100% no-repeat; }
/* ───── 台面中间：底池 / 公共牌 / 状态 / 规则 排成一列，不会互相压住 ───── */
.tv-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tv-center .tg-rule { position: static; transform: none; margin-top: 2px; }
.tv.busy .tv-table::after { display: none; }
/* ───── 自己的底牌：在桌上自己头像上方，略微扇开；扣着的时候可以就地搓 ───── */
.tg-hero { position: absolute; z-index: 6; transform: translate(-50%, calc(-100% - 6px)); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.tg-hero[hidden] { display: none; }
.tg-hero .hero { display: flex; pointer-events: auto; height: auto; overflow: visible; border-radius: 0; background: none; box-shadow: none; } /* 大厅主视觉卡也叫 .hero（v2.css），这里把它的底图、高度、渐变全部清掉 */
.tg-hero .hero::after { content: none; }
.tg-hero .hero .card { --w: 50px; margin: 0 -4px; box-shadow: 0 4px 10px rgba(0,0,0,.45); }
.tg-hero .hero > :first-child { transform: rotate(-7deg) translateY(2px); }
.tg-hero .hero > :last-child:not(:first-child) { transform: rotate(7deg) translateY(2px); }
.tg-hero .hn b { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font: 600 12px var(--ui); letter-spacing: .04em; }
.tg-hero .hn:empty { display: none; }
.tg-hero.folded { opacity: .4; }
.tg-hero.folded .hero { pointer-events: none; }
.ps.me .cards { display: none; }
/* 就地搓的牌 */
@property --d { syntax: '<length>'; inherits: true; initial-value: 0px; }
.tg-hero.sq .hero { gap: 0; }
.sqc { --w: 58px; --r: 5px; position: relative; width: var(--w); height: calc(var(--w) * 1.4); margin: 0 -3px; border-radius: var(--r); touch-action: none; cursor: grab; transition: --d .26s cubic-bezier(.2,.8,.3,1); filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.sqc.drag { transition: none; cursor: grabbing; }
.sqc .sf { position: absolute; inset: 0; border-radius: var(--r); background: linear-gradient(160deg, #fffdf7, #efe9dc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); color: #1b1f27; }
.sqc.red .sf { color: #d0262f; }
.sqc .ix { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .92; }
.sqc .ix b { font: 700 calc(var(--w) * .3) var(--num); letter-spacing: -.04em; }
.sqc .ix i { font-style: normal; font-size: calc(var(--w) * .24); }
.sqc .ix.tl { left: 7%; top: 5%; }
.sqc .ix.br { right: 7%; bottom: 5%; transform: rotate(180deg); }
.sqc .pip { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-size: calc(var(--w) * .5); line-height: 1; }
.sqc .sb { position: absolute; inset: 0; border-radius: var(--r); background: url(/app/img/card-back.webp) center / cover no-repeat, linear-gradient(135deg, #d9485a, #8e1b2c); box-shadow: inset 0 0 0 2px #fff; }
.sqc[data-side=bottom] .sb { clip-path: inset(0 0 var(--d) 0); }
.sqc[data-side=top] .sb { clip-path: inset(var(--d) 0 0 0); }
.sqc[data-side=right] .sb { clip-path: inset(0 var(--d) 0 0); }
.sqc[data-side=left] .sb { clip-path: inset(0 0 0 var(--d)); }
.sqc .fl, .sqc .cr { position: absolute; display: none; pointer-events: none; }
.sqc[data-side=bottom] .fl, .sqc[data-side=top] .fl, .sqc[data-side=left] .fl, .sqc[data-side=right] .fl,
.sqc[data-side=bottom] .cr, .sqc[data-side=top] .cr, .sqc[data-side=left] .cr, .sqc[data-side=right] .cr { display: block; }
.sqc[data-side=bottom] .fl { left: 0; right: 0; top: calc(100% - 2 * var(--d)); height: var(--d); border-radius: var(--r) var(--r) 0 0; background: linear-gradient(to bottom, #fbf8f1, #d8d1c2 85%, #b9b1a0); box-shadow: 0 -4px 8px rgba(0,0,0,.28); }
.sqc[data-side=top] .fl { left: 0; right: 0; top: var(--d); height: var(--d); border-radius: 0 0 var(--r) var(--r); background: linear-gradient(to top, #fbf8f1, #d8d1c2 85%, #b9b1a0); box-shadow: 0 4px 8px rgba(0,0,0,.28); }
.sqc[data-side=right] .fl { top: 0; bottom: 0; left: calc(100% - 2 * var(--d)); width: var(--d); border-radius: var(--r) 0 0 var(--r); background: linear-gradient(to right, #fbf8f1, #d8d1c2 85%, #b9b1a0); box-shadow: -4px 0 8px rgba(0,0,0,.28); }
.sqc[data-side=left] .fl { top: 0; bottom: 0; left: var(--d); width: var(--d); border-radius: 0 var(--r) var(--r) 0; background: linear-gradient(to left, #fbf8f1, #d8d1c2 85%, #b9b1a0); box-shadow: 4px 0 8px rgba(0,0,0,.28); }
.sqc[data-side=bottom] .cr { left: 0; right: 0; top: calc(100% - var(--d)); height: min(var(--d), 12px); background: linear-gradient(to bottom, rgba(0,0,0,.32), transparent); }
.sqc[data-side=top] .cr { left: 0; right: 0; top: calc(var(--d) - min(var(--d), 12px)); height: min(var(--d), 12px); background: linear-gradient(to top, rgba(0,0,0,.32), transparent); }
.sqc[data-side=right] .cr { top: 0; bottom: 0; left: calc(100% - var(--d)); width: min(var(--d), 12px); background: linear-gradient(to right, rgba(0,0,0,.32), transparent); }
.sqc[data-side=left] .cr { top: 0; bottom: 0; left: calc(var(--d) - min(var(--d), 12px)); width: min(var(--d), 12px); background: linear-gradient(to left, rgba(0,0,0,.32), transparent); }
.sqc .tip { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 0 7px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; pointer-events: none; }
.sqc[data-side]:not([data-side=""]) .tip, .sqc.open .tip { display: none; }
.sqc:not(.open):not(.drag) { animation: sqc-hint 2.4s ease-in-out 1s infinite; }
@keyframes sqc-hint { 0%, 80%, 100% { translate: 0 0; } 88% { translate: 0 -4px; } }
.sqc.open { cursor: default; animation: sqc-open .3s ease-out; }
.sqc.open .sb, .sqc.open .fl, .sqc.open .cr { display: none; }
@keyframes sqc-open { 40% { scale: 1.08; } }
.tv-center { top: 39%; }
.tg-hero .hero .card { --w: 46px; }
.sqc { --w: 50px; }
.tg-hero .hn { position: absolute; left: 100%; bottom: 6px; margin-left: 8px; white-space: nowrap; }
/* 轮到你：操作台只留快捷下注 + 三个按钮；倒计时在头像上，"+15 秒"浮在操作台右上角 */
.tv-dock .turn-head { display: none; }
.tv-dock.myturn .top { min-height: 0; }
.tv-dock .tools { position: absolute; right: 12px; bottom: calc(100% + 8px); }
.tv-dock .tools button { background: rgba(14,18,22,.85); border: 1px solid rgba(212,178,106,.5); color: #d4b26a; font-weight: 600; padding: 6px 12px; }
.tv-dock .qbet { margin-top: 2px; }
/* 发牌：桌心牌堆 + 飞出去的牌背 */
.tg-deck { position: absolute; left: 50%; top: 30%; width: 30px; height: 42px; transform: translate(-50%, -50%); z-index: 7; pointer-events: none; animation: fade .15s; transition: opacity .3s; }
.tg-deck.out { opacity: 0; }
.tg-deck i { position: absolute; inset: 0; border-radius: 3px; background: url(/app/img/card-back.webp) center / cover, #8e1b2c; box-shadow: inset 0 0 0 1px #fff, 0 2px 4px rgba(0,0,0,.4); }
.tg-deck i:nth-child(2) { transform: translate(-1.5px, -1.5px); } .tg-deck i:nth-child(3) { transform: translate(-3px, -3px); }
.deal-fly { position: absolute; width: 24px; height: 34px; z-index: 8; pointer-events: none; border-radius: 3px; background: url(/app/img/card-back.webp) center / cover, #8e1b2c; box-shadow: inset 0 0 0 1px #fff, 0 3px 6px rgba(0,0,0,.45); transform: translate(-50%, -50%); transition: transform .34s cubic-bezier(.2,.7,.3,1), opacity .12s linear .3s; }
/* 摊牌牌型：压在亮出来的牌下沿，不跑到别的座位上 */
.ps .hl { top: 34px; z-index: 6; padding: 2px 10px; font-size: 12px; }
.tv-dock .main button .odds { font: 500 10px var(--ui); opacity: .8; margin-top: 1px; }
.tg-tb { position: absolute; z-index: 7; transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 999px; background: rgba(14,18,22,.9); border: 1px solid rgba(212,178,106,.55); color: #d4b26a; font: 600 12px var(--ui); }
.tg-tb[hidden] { display: none; }
.tg-tb small { display: block; font: 500 9px var(--ui); color: rgba(236,230,218,.6); line-height: 1.1; }

/* 全下：头像一圈金色光环，慢慢呼吸 */
.ps.allin .av { box-shadow: 0 0 0 2px #ffd36a, 0 0 14px 3px rgba(255, 190, 60, .65); animation: allinGlow 1.6s ease-in-out infinite; }
@keyframes allinGlow { 50% { box-shadow: 0 0 0 2px #ffe39a, 0 0 22px 6px rgba(255, 190, 60, .85); } }
@media (prefers-reduced-motion: reduce) { .ps.allin .av { animation: none; } }

/* 摊牌净输赢：赢金底、输红底 */
.ps .stk.net-up, .ps .stk.net-dn { padding: 0 6px; border-radius: 4px; font-weight: 700; }
.ps .stk.net-up { background: linear-gradient(#ffd85a, #f2b52a); color: #3a2600; }
.ps .stk.net-dn { background: #d8443a; color: #fff; }
/* 公共牌放在两侧上排座位名牌的下方、中排头像之间：不被 9 人桌两侧座位压住 */
.tv-center { top: 44.5%; }
.tv-center .board .card { --w: min(38px, 10.2cqw); }
/* 别人扣着的牌：叠在头像右下角，不伸出座位（右侧座位原来会顶到桌边外） */
.ps .cards:not(.up) { top: 24px; right: 8px; z-index: 3; }
.ps .cards:not(.up) .card { --w: 20px; box-shadow: -1px 1px 3px rgba(0,0,0,.45); }

/* ───── 牌桌改版：细名牌、极简空位、庄家按钮贴头像、提示改胶囊、可存证徽章 ───── */
.ps .av { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 2px 5px rgba(0,0,0,.45); }
.ps .plate { min-width: 60px; margin-top: -8px; padding: 3px 10px 3px; border-radius: 999px; background: linear-gradient(180deg, rgba(27,35,43,.94), rgba(10,14,18,.94)); box-shadow: inset 0 0 0 .75px rgba(255,255,255,.09), 0 2px 4px rgba(0,0,0,.35); }
.ps .nm { font-size: 11px; max-width: 64px; color: rgba(236,230,218,.78); }
.ps .stk { font-weight: 600; }
.ps.acting .plate { box-shadow: inset 0 0 0 1.2px var(--gold), 0 0 8px rgba(212,178,106,.45); }
.ps.me .plate { box-shadow: inset 0 0 0 .75px rgba(212,178,106,.6), 0 2px 4px rgba(0,0,0,.35); }
.ps.empty .av { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.32); background: rgba(0,0,0,.22); color: rgba(255,255,255,.75); box-shadow: none; }
.ps.empty .av::before, .ps.empty .av::after { width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; }
.ps.empty .plate { display: none; }
.ps.empty.locked .av { display: grid; width: 34px; height: 34px; border-color: rgba(255,255,255,.10); background: rgba(0,0,0,.10); }
.ps.empty.locked .av::before, .ps.empty.locked .av::after { display: none; }
.ps-btn { width: 18px; height: 18px; font: 800 10px var(--num); color: #1a1d22; background: linear-gradient(180deg, #fff, #d9dde2); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 2.75px #9aa2ab, 0 1.5px 3px rgba(0,0,0,.55); }
.tg-ticker { top: 60%; align-items: center; gap: 5px; }
.tg-ticker .tk { padding: 5px 12px; font-size: 12px; border-radius: 999px; color: rgba(241,233,218,.9); background: rgba(10,14,18,.72); box-shadow: inset 0 0 0 .75px rgba(255,255,255,.08); white-space: nowrap; }
.tg-ticker .tk:nth-last-child(n+4) { display: none; }
.tg-ticker .tk.ins { color: var(--gold-hi); box-shadow: inset 0 0 0 .75px rgba(212,178,106,.55); }
.tg-ticker .tk.pkt { box-shadow: inset 0 0 0 .75px rgba(255,90,90,.6); }
.tg-proof { flex-direction: row; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 .75px rgba(212,178,106,.35); font-size: 11px; }
.tg-proof span { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: none; -webkit-mask: radial-gradient(circle, #000 55%, transparent 56%); }
.tv-center .board .card { --w: min(35px, 9.4cqw); }
.ps .sno { display: none; }
.ps.bot .av::after { box-shadow: none; top: -2px; bottom: auto; right: -4px; font-size: 8px; padding: 1px 3px; border-radius: 6px; z-index: 2; }
.pf-head h3 .pf-ai { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; font: 600 10px/16px var(--num, inherit); font-style: normal; color: #cfd3da; background: #3a3f4a; vertical-align: 2px; }

/* ═════════ 台面加大：台呢左右皮边伸出屏幕，绿色铺满整屏宽；上下贴着顶栏和工具栏；座位贴边 ═════════ */
.tv-table { top: calc(var(--tvt, 0px) + 44px); bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom)) + 112px); }
.tv-table::before { left: -9%; right: -9%; top: 0; bottom: 0;
  border-image-width: calc(118cqw * .5106) 0 calc(118cqw * .5106) 0; }
.tv-table .felt-skin { left: -6%; top: 1.5%; width: 112%; height: 97%; border-radius: 50% / 26%; }
.ps { width: 76px; }
.ps .av { width: 48px; height: 48px; font-size: 17px; }
.ps.empty .av { width: 40px; height: 40px; }
.ps .plate { min-width: 56px; padding: 2px 8px; }
.ps .nm { max-width: 58px; }
.tv-center { top: 43%; width: 64%; }
.tv-center .board .card { --w: min(40px, 10.6cqw); }
.tv-center .board { min-height: 58px; }

/* ═════════ 牌局信息 / 邀请站内玩家 / 本桌记录明细 ═════════ */
.tg-info { margin: 6px 0 10px; }
.tg-info > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.05); }
.tg-info span { color: var(--mute); }
.tg-info b { font-weight: 500; text-align: right; }
.sheet.tg-pop > .link { display: block; margin: 6px auto 0; color: var(--gold); }
.tg-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.06); margin: 8px 0 10px; }
.tg-seg button { height: 34px; border: 0; border-radius: 8px; background: none; color: var(--mute); font-size: 14px; }
.tg-seg button[aria-selected=true] { background: linear-gradient(180deg, #e6c887, #d4b26a); color: #1a1408; font-weight: 600; }
.tg-search { width: 100%; height: 40px; border-radius: 10px; padding: 0 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); color: inherit; }
.tg-ivl { min-height: 220px; max-height: 46vh; overflow-y: auto; margin: 8px 0 12px; }
.tg-ivr { display: flex; align-items: center; gap: 10px; padding: 8px 0; box-shadow: inset 0 -1px 0 rgba(255,255,255,.05); }
.tg-ivr .avatar-c { width: 36px; height: 36px; font-size: 14px; }
.tg-ivr .grow { display: flex; flex-direction: column; font-size: 14px; }
.tg-ivr small { color: var(--mute); font-size: 11px; }
.tg-ivr button { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(212,178,106,.6); background: none; color: var(--gold); font-size: 13px; }
.tg-ivr button:disabled { opacity: .5; }
#ivOut { width: 100%; height: 46px; border-radius: 12px; }
.tb-pol { width: 100%; border: 0; background: none; color: inherit; text-align: left; font: inherit; }
.tb-pol small { margin-left: 3px; font-size: 10px; color: var(--mute); }
.tg-hp .pos { flex: none; width: 34px; padding: 1px 0; border-radius: 4px; background: rgba(255,255,255,.08); color: var(--mute); font: 600 9px/14px var(--num); text-align: center; }
.tg-hp .nm { width: 60px; }
.tg-hp .hn .w { display: inline-block; margin-right: 4px; padding: 0 4px; border-radius: 3px; background: #f2b52a; color: #3a2600; font: 700 10px/14px var(--num); font-style: normal; }
.tg-hins { display: flex; justify-content: space-between; padding: 10px 0 4px; font-size: 13px; color: var(--gold-hi); }
.tg-hacts .st { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 0; font-size: 12px; color: var(--mute); box-shadow: inset 0 -1px 0 rgba(255,255,255,.05); }
.tg-hacts .st b { width: 100%; color: var(--ivory, #eef1f4); font-size: 12px; font-weight: 600; }
.tg-hacts i { font-style: normal; color: var(--chip, #ffd648); }

/* ───────── 活动卡片：大牌奖励 / 幸运骰子 / 每月抽奖 / 推荐好友 ───────── */
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 16px; }
.ev-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 14px 12px; min-height: 104px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); background: linear-gradient(150deg, #22303a, #182128); text-align: left; color: var(--ivory, #ece6da); }
.ev-card svg { width: 38px; height: 38px; margin-bottom: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ev-card b { font-size: 15px; }
.ev-card small { font-size: 11.5px; color: rgba(236,230,218,.55); line-height: 1.35; }
.ev-hh svg { color: #ffd648; } .ev-dice svg { color: #ff8a65; } .ev-lot svg { color: #4fc3f7; } .ev-inv svg { color: var(--gold); }
.ev-hh { background: linear-gradient(150deg, #3a3220, #1d1c17); }
.ev-dice { background: linear-gradient(150deg, #3a2520, #1e1917); }
.ev-lot { background: linear-gradient(150deg, #1d3140, #161d24); }
.ev-inv { background: linear-gradient(150deg, #1b3a2c, #151f1a); }
.ev-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; box-shadow: 0 0 0 3px rgba(255,77,79,.2); }
.ev-tbl { margin: 10px 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); }
.ev-th { padding: 9px 12px; font-weight: 600; background: rgba(212,178,106,.1); color: var(--gold); display: flex; justify-content: space-between; align-items: baseline; }
.ev-th small, .ev-tr small { font-weight: 400; font-size: 11px; color: rgba(236,230,218,.45); display: block; }
.ev-tr { display: flex; padding: 8px 12px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.05); }
.ev-tr > span { flex: 1; text-align: center; } .ev-tr > span:first-child { flex: 1.4; text-align: left; }
.ev-tr.hd { color: rgba(236,230,218,.5); font-size: 12px; background: rgba(255,255,255,.03); }
.ev-list > div { display: flex; gap: 10px; align-items: center; padding: 9px 2px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.05); }
.ev-list > div > span:not(.grow) { color: rgba(236,230,218,.55); }
.ev-list b { color: var(--gold); } .ev-list .me { color: var(--tg-yellow); }
.dice-box { margin: 12px 0; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.dice-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dice-row { display: flex; justify-content: center; gap: 14px; margin: 6px 0; }
.die { width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(160deg, #fff, #e6e1d8); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.35); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 7px; }
.die b { width: 8px; height: 8px; border-radius: 50%; background: #1a1a1a; place-self: center; }
.die.d1 b { grid-area: 2/2; background: #d4302b; width: 11px; height: 11px; }
.die.d2 b:nth-child(1) { grid-area: 1/1; } .die.d2 b:nth-child(2) { grid-area: 3/3; }
.die.d3 b:nth-child(1) { grid-area: 1/1; } .die.d3 b:nth-child(2) { grid-area: 2/2; } .die.d3 b:nth-child(3) { grid-area: 3/3; }
.die.d4 b:nth-child(1) { grid-area: 1/1; } .die.d4 b:nth-child(2) { grid-area: 1/3; } .die.d4 b:nth-child(3) { grid-area: 3/1; } .die.d4 b:nth-child(4) { grid-area: 3/3; }
.die.d5 b:nth-child(1) { grid-area: 1/1; } .die.d5 b:nth-child(2) { grid-area: 1/3; } .die.d5 b:nth-child(3) { grid-area: 2/2; } .die.d5 b:nth-child(4) { grid-area: 3/1; } .die.d5 b:nth-child(5) { grid-area: 3/3; }
.die.d6 b:nth-child(1) { grid-area: 1/1; } .die.d6 b:nth-child(2) { grid-area: 2/1; } .die.d6 b:nth-child(3) { grid-area: 3/1; } .die.d6 b:nth-child(4) { grid-area: 1/3; } .die.d6 b:nth-child(5) { grid-area: 2/3; } .die.d6 b:nth-child(6) { grid-area: 3/3; }
.die.d4 b { background: #d4302b; }
.dice-row.rolling .die { animation: die-shake .18s infinite alternate; }
@keyframes die-shake { from { transform: rotate(-12deg) translateY(-2px); } to { transform: rotate(12deg) translateY(2px); } }
.dice-res { text-align: center; margin: 6px 0 4px; } .dice-res b { color: var(--tg-yellow); font-size: 18px; }
.lot-me { display: flex; gap: 8px; margin: 12px 0 4px; } .lot-me > div { flex: 1; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.lot-me small { display: block; font-size: 11px; color: rgba(236,230,218,.5); } .lot-me b { font-size: 14px; }

/* 我的 → 数据：长牌 / 短牌 / 牛牛 */
.tg-dtabs { display: flex; gap: 22px; padding: 10px 16px 0; background: var(--deck); border-radius: 12px 12px 0 0; box-shadow: inset 0 0 0 1px var(--hair-2); clip-path: inset(0 0 0 0); }
.tg-dtabs button { background: none; border: 0; padding: 6px 0 8px; min-height: 0; font-size: 14px; color: rgba(236,230,218,.55); border-radius: 0; }
.tg-dtabs button[aria-selected=true] { color: var(--gold); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }
.tg-dtabs + .tg-data { border-radius: 0 0 12px 12px; border-top: 1px solid var(--hair-2); }
.me-set { padding: 2px 14px 16px; border-radius: 12px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair-2); }
.me-set > b:first-child { margin-top: 12px; }

/* 牌局记录：分类、日期范围 */
.hs-tabs { position: relative; z-index: 1; margin: 0 16px; }
.tg-tabs.hs-tabs { top: 0; } /* 公共 .tg-tabs 的吸顶偏移在这里会把标签行推到筛选行上面 */
.hs-sec { padding-top: 10px; }
.hs-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.hs-range button { min-height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: rgba(236,230,218,.7); }
.hs-range button.on { color: var(--tg-on); background: var(--gold); border-color: var(--gold); font-weight: 600; }
.hs-niu { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(236,230,218,.7); }
.hs-niu input { accent-color: var(--gold); width: 16px; height: 16px; }
.hs-custom { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hs-custom input { flex: 1; min-width: 0; height: 36px; border-radius: 8px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); color: inherit; padding: 0 8px; color-scheme: dark; }
.hs-custom span { color: rgba(236,230,218,.5); font-size: 13px; }

/* 全下时河牌慢慢搓开：牌背抖两下，再从左往右掀开 */
.board .card.squeeze { animation: sq-lift 1.9s ease-in-out both; z-index: 2; }
.board .card.squeeze::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3;
  background: url(/app/img/card-back.webp) center / cover no-repeat, #5a1420; box-shadow: inset 0 0 0 1.5px var(--stock), -3px 0 6px rgba(0,0,0,.35);
  animation: sq-peel 1.9s cubic-bezier(.55,0,.35,1) both; }
@keyframes sq-lift { 0% { transform: translateY(0) scale(1); } 15%, 85% { transform: translateY(-6px) scale(1.12); } 100% { transform: none; } }
@keyframes sq-peel {
  0%, 18% { clip-path: inset(0 0 0 0); transform: rotate(0); }
  24% { transform: rotate(-2deg); } 30% { transform: rotate(1.5deg); } 36% { transform: rotate(0); clip-path: inset(0 0 0 0); }
  55% { clip-path: inset(0 0 0 22%); } 70% { clip-path: inset(0 0 0 40%); }
  100% { clip-path: inset(0 0 0 100%); }
}
@media (prefers-reduced-motion: reduce) { .board .card.squeeze, .board .card.squeeze::after { animation: none; } .board .card.squeeze::after { display: none; } }

/* 大厅横幅：没有配置运营横幅时放牛牛 */
.tg-promo { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 10px 16px 2px; padding: 12px 14px; border-radius: 12px; text-align: left; color: #fff;
  background: radial-gradient(120% 140% at 100% 0, rgba(255,200,90,.35), transparent 55%), linear-gradient(110deg, #6b1020, #3a0a14 70%); border: 1px solid rgba(255,214,72,.25); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.tg-promo .pc { display: flex; }
.tg-promo .pc i { width: 26px; height: 36px; border-radius: 4px; display: grid; place-items: center; font: 700 14px var(--ui); font-style: normal; color: #b0182a; background: #f6f1e6; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.tg-promo .pc i:first-child { transform: rotate(-10deg); margin-right: -8px; } .tg-promo .pc i:last-child { transform: rotate(8deg); }
.tg-promo b { display: block; font-size: 16px; letter-spacing: .08em; color: #ffd648; }
.tg-promo small { font-size: 12px; color: rgba(255,255,255,.75); }
.tg-promo em { font-style: normal; font-size: 13px; font-weight: 600; color: #3a0a14; background: #ffd648; padding: 5px 12px; border-radius: 14px; }
.tg-promo .grow { min-width: 0; } .tg-promo small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tg-promo em { white-space: nowrap; flex: none; }
.lg-tabs { overflow-x: auto; scrollbar-width: none; margin: 0 8px; } .lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs button { flex: none; }
/* 公共牌放大一点（参考的公共牌更大） */
.tv-center .board .card { --w: min(46px, 12.2cqw); }
.tv-center .board { min-height: 66px; }
/* 大厅横幅轮播 */
.tg-promos { position: relative; overflow: hidden; margin: 10px 16px 2px; border-radius: 12px; }
.tg-promo-track { display: flex; transition: transform .5s ease; }
.tg-promos .tg-promo { flex: 0 0 100%; width: 100%; margin: 0; }
.tg-promo.z { background: radial-gradient(120% 140% at 100% 0, rgba(160,210,255,.35), transparent 55%), linear-gradient(110deg, #1d5292, #0d2446 70%); border-color: rgba(160,210,255,.3); }
.tg-promo.z .pc i { color: #1d5292; }
.tg-dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.tg-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); transition: width .3s; }
.tg-dots i.on { width: 12px; background: #fff; }

/* ───────── 红包 ───────── */
.tg-pill.rp { position: relative; color: #ffd3c4; border-color: rgba(255,120,90,.35); }
.tg-pill.rp i { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; }
.rp-env { flex: none; width: 34px; height: 44px; border-radius: 6px; background: linear-gradient(180deg, #ff4b5c, #d8213a); position: relative; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.rp-env::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; border-radius: 6px 6px 50% 50% / 6px 6px 40% 40%; background: linear-gradient(180deg, #ff6b78, #e83048); box-shadow: 0 2px 3px rgba(0,0,0,.25); }
.rp-env::after { content: ""; position: absolute; left: 50%; top: 32%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle, #ffe18a, #e0a530); }
.rp-env.big { width: 64px; height: 84px; border-radius: 10px; } .rp-env.big::after { width: 22px; height: 22px; margin-left: -11px; }
.rp-list { display: flex; flex-direction: column; }
.rp-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid rgba(255,255,255,.06); color: inherit; }
.rp-row .grow { min-width: 0; } .rp-row small { display: block; font-size: 12px; color: rgba(236,230,218,.5); }
.rp-t { display: flex; align-items: center; gap: 8px; } .rp-t b { font-size: 15px; }
.rp-st { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.08); color: rgba(236,230,218,.6); }
.rp-row.s-open .rp-st { background: rgba(255,77,79,.18); color: #ff8a8a; }
.rp-row:not(.s-open):not(.s-locked) .rp-env { filter: grayscale(.7) brightness(.7); }
.rp-go { flex: none; padding: 6px 14px; border-radius: 8px; font-size: 13px; background: rgba(255,255,255,.08); color: rgba(236,230,218,.75); }
.rp-go.on { background: linear-gradient(180deg, #ff5b6a, #d8213a); color: #fff; font-weight: 600; }
.rp-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 14px; text-align: center; }
.rp-hero b { font-size: 20px; margin-top: 6px; } .rp-hero small { color: rgba(236,230,218,.6); } .rp-hero em { font-style: normal; color: #ffd648; font-size: 20px; font-weight: 700; }
.rp-hero:not(.s-open):not(.s-claimed) .rp-env { filter: grayscale(.8) brightness(.7); }
.rp-badge { position: absolute; top: 12px; left: calc(50% + 14px); font-size: 11px; padding: 1px 8px; border-radius: 10px; background: #5a6170; color: #fff; }
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair-2); padding: 12px 0; text-align: center; }
.rp-grid > div + div { border-left: 1px solid var(--hair-2); } .rp-grid small { display: block; color: rgba(236,230,218,.55); font-size: 12px; }
.rp-grid b { font-size: 22px; } .rp-grid b i { font-style: normal; font-size: 12px; margin-left: 2px; color: rgba(236,230,218,.55); } .rp-grid .up { color: var(--gold); }
.rp-kv { margin-top: 10px; border-radius: 12px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair-2); padding: 4px 14px; }
.rp-kv > div { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; } .rp-kv > div + div { border-top: 1px solid var(--hair-2); } .rp-kv span { color: rgba(236,230,218,.55); }
.rp-cond { border-radius: 12px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair-2); padding: 10px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.rp-cond .up { color: var(--gold); } .rp-cond .warn { color: #ffb44f; }
.rp-who > div { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.rp-who small { color: rgba(236,230,218,.45); } .rp-who b { color: #ffd648; }
.link-back { display: block; text-align: center; margin: 18px 0 6px; color: rgba(236,230,218,.6); font-size: 14px; }
.rp-send { background: linear-gradient(180deg, #ff5b6a, #d8213a) !important; border-color: #d8213a !important; color: #fff !important; }
/* 语言选择 */
.lang-list .list-item { width: 100%; text-align: left; }
.lang-list .lang-on { color: var(--gold, #e8c36a); font-weight: 700; }
#lang, .lang-list .list-item { font: inherit; color: inherit; }
#lang .muted { margin-right: 6px; }

/* ───────── 视觉整理：大厅牌桌改成卡片、比赛卡片、空状态 ───────── */
.tg-list { padding: 10px 12px 84px; display: flex; flex-direction: column; gap: 10px; }
.tg-row { gap: 12px; padding: 14px 14px 14px 12px; border-radius: 16px; background: linear-gradient(180deg, #1e252d 0%, #191f26 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 6px 16px rgba(0,0,0,.22); }
.tg-row::after { display: none; }
.tg-row:active { transform: scale(.99); background: linear-gradient(180deg, #222a33, #1c232b); }
.tg-row.prem { background: linear-gradient(120deg, rgba(255,214,72,.10), transparent 55%), linear-gradient(180deg, #1e252d, #191f26); box-shadow: inset 0 0 0 1px rgba(255,214,72,.22), 0 6px 16px rgba(0,0,0,.22); }
.tg-row .tg-tn { font-size: 16px; font-weight: 600; color: #fff; }
.tg-row .tg-tn .num { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--dim); }
.tg-row .tg-bl { font-size: 13px; color: rgba(255,255,255,.78); }
.tg-row .tg-tags { flex-wrap: nowrap; overflow: hidden; gap: 8px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tg-row .tg-tag { flex: none; font-size: 11px; }
.tg-row .tg-buy { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.06); align-self: stretch; justify-content: center; }
.tg-row .tg-buy small { font-size: 11px; }
.tg-row .tg-buy b { font-size: 19px; color: #fff; }
.quickstart { position: sticky; bottom: 12px; }
.tg-list + .quickstart { margin-top: -72px; }
/* 比赛卡片 */
.tcard { border-radius: 16px; background: linear-gradient(180deg, #1e252d, #191f26); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 6px 16px rgba(0,0,0,.22); }
.tc-wait { color: var(--dim); font-size: 12px; margin-bottom: 2px; }
/* 空状态：插图 + 两行字，居中 */
.empty.empty-art { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 24px; line-height: 1.6; }
.empty.empty-art img { width: 120px; opacity: .9; }
.club-note { margin-top: 24px; }
.tg-promos { margin: 10px 0 2px; }
.tg-promo { border-radius: 16px; }
.tg-row .tg-buy { min-width: 92px; }
/* 二级页顶栏：返回在左、标题居中（和一级页一致），右侧按钮靠右 */
.head:has(> .back) { position: sticky; min-height: 52px; padding-top: calc(8px + var(--sat, 0px)); padding-bottom: 8px; }
.head:has(> .back) > h1 { position: absolute; left: 64px; right: 64px; bottom: 0; height: 52px; display: flex; align-items: center; justify-content: center; margin: 0; font: 600 17px/1 var(--ui); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.head:has(> .back) > .back { padding: 10px 14px 10px 2px; }
.head:has(> .back) > :not(.back):not(h1) { margin-left: auto; position: relative; z-index: 1; }
.head:has(> .back) { box-shadow: inset 0 -1px 0 var(--hair); }
/* 我的：VIP 标签看得清 */
.tg-pid .vip-tag { color: #f0d9a8; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(240,217,168,.28); font-size: 11px; line-height: 18px; }
/* 红包列表：卡片，按钮靠右 */
.rp-list { display: flex; flex-direction: column; gap: 10px; }
.rp-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, #1e252d, #191f26); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); color: inherit; text-decoration: none; }
.rp-row > .grow { flex: 1; min-width: 0; }
.rp-row .rp-go { flex: none; margin-left: auto; }
/* 二级页内容和顶栏之间留白 */
.head:has(> .back) + .section, .head:has(> .back) + .tg-tabs + .section { padding-top: 14px; }

/* ───────── 全下特效：座位上炸开 ALL IN，金光 + 火星，台面闪一下 ───────── */
.allin-burst { position: absolute; z-index: 30; width: 0; height: 0; pointer-events: none; }
.allin-burst b { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap;
  font: italic 900 30px/1 var(--num, var(--ui)); letter-spacing: .02em; color: #fff6d6;
  background: linear-gradient(180deg, #fff8dc 0%, #ffd34d 45%, #ff9a1f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(90,40,0,.55); filter: drop-shadow(0 2px 0 #7a3b00) drop-shadow(0 0 12px rgba(255,170,40,.9));
  animation: ab-pop 1.9s cubic-bezier(.2,1.4,.4,1) both; }
.allin-burst .ab-rays { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,210,90,.55) 0 6deg, transparent 6deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  animation: ab-rays 1.9s ease-out both; }
.allin-burst .ab-ring { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid rgba(255,214,100,.9); animation: ab-ring .8s ease-out both; }
.allin-burst .ab-spark { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 8px 2px rgba(255,170,40,.9);
  transform: rotate(var(--a)) translateX(0); animation: ab-spark .9s ease-out var(--d) both; }
@keyframes ab-pop { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-8deg); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1.35) rotate(-4deg); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(1) rotate(-4deg); } 36%, 48% { transform: translate(-52%, -50%) scale(1) rotate(-4deg); } 42% { transform: translate(-48%, -50%) scale(1) rotate(-4deg); }
  80% { transform: translate(-50%, -62%) scale(1) rotate(-4deg); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(.9) rotate(-4deg); opacity: 0; } }
@keyframes ab-rays { 0% { transform: scale(.3) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1.2) rotate(60deg); opacity: 0; } }
@keyframes ab-ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ab-spark { 0% { transform: rotate(var(--a)) translateX(0); opacity: 1; } 100% { transform: rotate(var(--a)) translateX(70px); opacity: 0; } }
.allin-flash { position: absolute; inset: 0; z-index: 29; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(255,170,40,.28) 100%); animation: ab-flash 1.1s ease-out both; }
@keyframes ab-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .allin-burst .ab-rays, .allin-burst .ab-spark, .allin-flash { display: none; } .allin-burst b { animation: ab-fade 1.9s both; } }
@keyframes ab-fade { 0%, 80% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -50%); } }
/* 台呢：两头半圆 + 中间直段分成三张图叠起来（两头的图下沿渐隐压在中间那张上），不再用九宫格拉伸，接缝处不会出横线 */
.tv-table::before { border: 0; border-image: none;
  background: url(/app/img/felt-green-top.webp) top / 100% auto no-repeat, url(/app/img/felt-green-bot.webp) bottom / 100% auto no-repeat,
    url(/app/img/felt-green-mid.webp) center / 100% calc(100% - 118cqw * .5106 * 2 + 118cqw * 80 / 1136) no-repeat; }
.tv.felt-blue .tv-table::before { border-image: none;
  background: url(/app/img/felt-blue-top.webp) top / 100% auto no-repeat, url(/app/img/felt-blue-bot.webp) bottom / 100% auto no-repeat,
    url(/app/img/felt-blue-mid.webp) center / 100% calc(100% - 118cqw * .5106 * 2 + 118cqw * 80 / 1136) no-repeat; }

/* ═════════ 搓牌：座位上扣着的小牌 + 点开后的大牌搓牌层 ═════════ */
.sqc { all: unset; box-sizing: border-box; position: relative; display: block; width: 50px; height: 70px; margin: 0 -4px; border-radius: 5px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.45); animation: none; }
.tg-hero .hero > .sqc:first-child { transform: rotate(-7deg) translateY(2px); }
.tg-hero .hero > .sqc:last-child:not(:first-child) { transform: rotate(7deg) translateY(2px); }
.sqc .sb { position: absolute; inset: 0; border-radius: inherit; background: url(/app/img/card-back.webp) center / cover no-repeat, linear-gradient(135deg, #d9485a, #8e1b2c); box-shadow: inset 0 0 0 2px #fff; clip-path: none; }
.sqc .tip { position: absolute; left: 50%; top: -24px; bottom: auto; height: auto; line-height: 16px; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: linear-gradient(180deg, #ffd96a, #f0a92a); color: #3a2600; font: 700 11px var(--ui); white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.4); animation: sqTip 1.6s ease-in-out infinite; }
@keyframes sqTip { 50% { transform: translate(-50%, -3px); } }
.sqc:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* 牌面（小牌和大牌共用，按 --cw 缩放） */
.sqc .sf, .sqz-card .sf { --cw: 50px; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, #fffdf7, #eee8da); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); color: #1b1f27; overflow: hidden; }
.sqz-card .sf { --cw: var(--W); }
.sf.red { color: #d0262f; }
.sf .ix { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .9; }
.sf .ix b { font: 800 calc(var(--cw) * .27) var(--num, var(--ui)); letter-spacing: -.04em; }
.sf .ix i { font-style: normal; font-size: calc(var(--cw) * .22); margin-top: 1px; }
.sf .ix.tl { left: 6%; top: 4%; }
.sf .ix.br { right: 6%; bottom: 4%; transform: rotate(180deg); }
.sf .pip { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-size: calc(var(--cw) * .56); line-height: 1; }
.sf .court { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font: 800 calc(var(--cw) * .5) var(--serif, serif); line-height: 1; opacity: .9; }
/* 搓牌层：盖住台面，不盖操作台 */
.sqz { position: absolute; left: 0; right: 0; top: 0; bottom: var(--dock-h, 0px); z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(ellipse at 50% 45%, rgba(6,40,24,.55), rgba(0,0,0,.82)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: sqzIn .22s ease-out both; }
.sqz.out { animation: sqzOut .2s ease-in both; }
@keyframes sqzIn { from { opacity: 0; } }
@keyframes sqzOut { to { opacity: 0; } }
.sqz-stage { position: relative; width: 100%; flex: 1; max-height: 520px; display: grid; place-items: center; }
.sqz-card { grid-area: 1 / 1; position: relative; width: var(--W); height: calc(var(--W) * 1.4); border-radius: calc(var(--W) * .07); touch-action: none; cursor: grab;
  transition: transform .32s cubic-bezier(.2,.8,.3,1); filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)); }
.sqz-card.drag { cursor: grabbing; }
.sqz-card:not(.top):not(.open) { pointer-events: none; }
.sqz-card .back { position: absolute; inset: 0; border-radius: inherit; background: url(/app/img/card-back.webp) center / cover no-repeat, linear-gradient(135deg, #d9485a, #8e1b2c); box-shadow: inset 0 0 0 3px #fff; }
.sqz-card .flapw { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.sqz-card .flap { position: absolute; inset: 0; border-radius: inherit; clip-path: polygon(0 0,0 0,0 0); background: linear-gradient(var(--ang, 0deg), #fffdf6 0%, #ece5d6 45%, #cfc6b3 100%); }
.sqz-card.open .back, .sqz-card.open .flapw { display: none; }
.sqz-card.flip { animation: sqzFlip .26s ease-out; }
@keyframes sqzFlip { 50% { scale: 1.06; } }
.sqz-card.top:not(.drag) .back { animation: sqzNudge 2.2s ease-in-out .8s infinite; }
@keyframes sqzNudge { 0%, 80%, 100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } 88% { clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%); } }
.sqz-tip { margin: 0; min-height: 18px; color: rgba(255,255,255,.7); font-size: 13px; }
.sqz-bar { display: flex; gap: 12px; padding-bottom: 16px; }
.sqz-bar button { min-width: 108px; height: 40px; border-radius: 20px; font-size: 15px; }
.sqz-bar .sqz-close { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
@media (prefers-reduced-motion: reduce) { .sqz, .sqz.out, .sqz-card.flip, .sqz-card.top .back, .sqc .tip { animation: none; } .sqz-card { transition: none; } }
/* 可存证：存证 / 种子可以复制，带查验链接 */
.pf-h { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: rgba(255,255,255,.04); }
.pf-h-t { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.pf-h-t b { font-size: 13px; } .pf-h-t .mono { color: var(--mute); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-h-v { display: flex; align-items: flex-start; gap: 8px; }
.pf-h-v code { flex: 1; min-width: 0; font: 11.5px/1.5 ui-monospace, Menlo, monospace; color: #e8f2ec; word-break: break-all; user-select: text; -webkit-user-select: text; }
.pf-cp { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: rgba(212,178,106,.12); border: 1px solid rgba(212,178,106,.35); color: #d4b26a; }
.pf-go { margin-left: auto; flex: none; font-size: 12.5px; color: #d4b26a; text-decoration: none; background: none; border: 0; padding: 6px 0 6px 10px; }
.nn-hash .pf-go { display: inline-block; margin-top: 6px; }
/* 可存证：多久后能查验、计算方法 */
.fair-wait { margin: 8px 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255,200,80,.1); color: #f3cf7a; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(255,200,80,.28); }
.fair-det { margin-top: 10px; border-radius: 12px; background: rgba(255,255,255,.04); padding: 10px 12px; }
.fair-det summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #d4b26a; list-style: none; }
.fair-det summary::-webkit-details-marker { display: none; }
.fair-det summary::after { content: " ›"; display: inline-block; transition: transform .2s; }
.fair-det[open] summary::after { transform: rotate(90deg); }
.fair-how { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.78); }
.fair-how b { display: block; color: #fff; font-size: 13px; }
.fair-why { margin: 10px 0 0; font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* ───────── 检查后的修正 ───────── */
/* 提示条：没有链接时不挡点击；牌桌 / 牛牛页挪到顶上，不盖住弃牌 / 跟注 / 加注 */
.toast:not(.link) { pointer-events: none; }
body.in-game .toast { top: calc(64px + var(--sat, 0px)); bottom: auto; }
/* 大厅分类标签：小屏放不下时横向滑动，筛选按钮固定在右边 */
.tg-tabs { overflow-x: auto; scrollbar-width: none; gap: 20px; }
.tg-tabs::-webkit-scrollbar { display: none; }
.tg-tabs .tg-sort { position: sticky; right: 0; padding-left: 10px; background: linear-gradient(90deg, transparent, var(--night) 35%); }
/* 一级页标题躲开刘海（添加到桌面 / App 里全屏时） */
.tg-title { padding-top: var(--sat, 0px); height: calc(52px + var(--sat, 0px)); box-sizing: border-box; }
.tg-title + .tg-tabs { top: calc(52px + var(--sat, 0px)); z-index: 5; }
/* 小按钮的点击区域至少 40px：加内边距、用负外边距抵消，外观不变 */
.tg-bell { padding: 9px; right: 5px; }
.tg-acts { gap: 0; right: 5px; }
.tg-acts a { padding: 9px 7px; }
.tg-eye { padding: 11px; margin: -9px; }
.tg-id { padding: 12px 0; margin: -12px 0; }
.pf-cp { min-height: 30px; padding: 4px 12px; }
.tg-tb { min-height: 34px; padding: 7px 12px; }
.tg-pill { min-height: 32px; }
.head .back { min-width: 40px; min-height: 40px; }

/* ═════════ 透视牌桌：整张桌子图（皮扶手、木沿、荷官筹码盘、桌边厚度、投影都在图里）按比例放进舞台，包间地毯 + 头顶暖光做背景 ═════════ */
.tv { background: #0b0d10 url(/app/img/room-bg.webp) center / cover no-repeat; }
.tv-table::before { inset: 0; left: 0; right: 0; top: 0; bottom: 0; border: 0; border-image: none; border-radius: 0; box-shadow: none;
  background: url(/app/img/table-green.webp) center / contain no-repeat; }
.tv.felt-blue .tv-table::before { border-image: none; background: url(/app/img/table-blue.webp) center / contain no-repeat; }
.tv-table .felt-skin, .tv-table.six .felt-skin { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0;
  -webkit-mask: url(/app/img/table-mask.webp) center / contain no-repeat; mask: url(/app/img/table-mask.webp) center / contain no-repeat; } /* 装备的台呢颜色只染台呢 */

/* 直播浮窗贴边收起：浮窗藏起来（声音照常），屏幕边上留一个竖条把手，直播中带红点 */
.tv-video.stashed { visibility: hidden; pointer-events: none; }
.pip-tab { position: absolute; right: 0; z-index: 21; width: 26px; height: 64px; padding: 0; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px 0 0 12px; background: rgba(28, 33, 40, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), 0 4px 14px rgba(0,0,0,.45); color: rgba(255,255,255,.9); cursor: pointer; touch-action: none; }
.pip-tab.left { right: auto; left: 0; border-radius: 0 12px 12px 0; }
.pip-tab.left svg { transform: scaleX(-1); }
.pip-tab svg { width: 10px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pip-tab .dot { display: none; width: 6px; height: 6px; border-radius: 50%; background: #ff4b4b; box-shadow: 0 0 6px rgba(255,75,75,.8); }
.pip-tab.on .dot { display: block; }
.pip-tab[hidden] { display: none; }
