/* ─────────────────────────────────────────────────────────────
   玩家 App 视觉：夜场贵宾厅
   材质而不是渐变：藏青台呢、胡桃木桌边、象牙牌面、香槟金只给钱、朱砂印只给品牌和"直播"。
   字体全部用系统字体（国内无法稳定加载网络字体）：
     品牌和页面标题用宋体（Songti SC / 思源宋体），正文苹方 / 思源黑体，金额 DIN 等宽数字。
   ───────────────────────────────────────────────────────────── */
/* 色板、字体、牌面和筹码样式在共用的 ../style.css 里 */
:root { --mint: var(--ivory); }

/* ── 外壳 ── */
html, body { height: 100%; overscroll-behavior: none; }
body { background: #0b0e13; color: var(--ivory); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; letter-spacing: .01em; }
input, textarea { user-select: text; -webkit-user-select: text; }
a { color: var(--gold-hi); }
a:hover { text-decoration: none; }
.device { position: relative; max-width: 480px; height: 100dvh; margin: 0 auto; background: var(--night); display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 560px) {
  .device { height: min(100dvh, 940px); margin-top: max(0px, calc((100dvh - 940px) / 2)); border-radius: 28px; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px var(--hair); }
}
.screen { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-top: var(--safe-area-inset-top, env(safe-area-inset-top)); scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.flush { overflow: hidden; display: flex; flex-direction: column; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── 按钮（覆盖共用样式） ── */
button { font: 500 14px var(--ui); color: var(--ivory); background: var(--deck-2); border: 1px solid var(--hair-2); border-radius: 10px; padding: 9px 14px; transition: background .15s, border-color .15s, transform .08s; }
button:active:not(:disabled) { transform: scale(.98); }
button:hover:not(:disabled) { border-color: rgba(236,230,218,.28); }
button.primary { background: var(--gold); border-color: var(--gold); color: #1a1408; font-weight: 600; }
button.primary:hover:not(:disabled) { background: var(--gold-hi); border-color: var(--gold-hi); }
button.go { background: var(--ivory); border-color: var(--ivory); color: #181b22; font-weight: 600; }
button.danger { background: transparent; border-color: rgba(224,114,95,.5); color: var(--seal-hi); }
button.danger:hover:not(:disabled) { background: rgba(196,64,47,.1); }
button.ghost { background: transparent; border-color: transparent; color: var(--mute); }
button.on, button[aria-pressed=true] { border-color: var(--gold); color: var(--gold-hi); background: rgba(212,178,106,.08); }
input, select { font: 15px var(--ui); background: var(--deck); color: var(--ivory); border: 1px solid var(--hair-2); border-radius: 10px; padding: 10px 12px; }
input:focus { border-color: var(--gold); outline: none; }
input::placeholder { color: var(--dim); }
input[type=range] { accent-color: var(--gold); }

/* ── 底部标签栏 ── */
.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--night); box-shadow: 0 -1px 0 var(--hair); padding-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 7px; color: var(--dim); font-size: 11px; text-decoration: none; position: relative; letter-spacing: .06em; }
.tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tabbar a.on { color: var(--ivory); }
.tabbar a.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--gold); border-radius: 0 0 2px 2px; }
.tabbar a .dot { position: absolute; top: 7px; left: calc(50% + 8px); width: 7px; height: 7px; border-radius: 50%; background: var(--seal-hi); box-shadow: 0 0 0 2px var(--night); }

/* ── 页头 ── */
.head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 14px 18px 12px; background: var(--night); }
.head h1 { font: 700 22px/1.2 var(--serif); letter-spacing: .08em; }
.head .grow { flex: 1; min-width: 0; }
.head .back { background: none; border: 0; padding: 4px 10px 4px 0; color: var(--ivory); font-size: 0; }
.head .back::before { content: ""; display: block; width: 11px; height: 11px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 4px; }
.icon-btn { background: none; border: 0; padding: 6px; color: var(--ivory); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.section { padding: 0 18px 18px; }
.section-title { color: var(--mute); font-size: 13px; margin: 22px 2px 10px; letter-spacing: .06em; }
.hint { color: var(--dim); font-size: 12px; line-height: 1.75; }
.empty { text-align: center; color: var(--dim); padding: 44px 20px; font-size: 13px; line-height: 1.8; }
.up { color: var(--jade); } .down { color: var(--seal-hi); }

/* ── 登录注册 ── */
.auth { min-height: 100%; display: flex; flex-direction: column; padding: 0 26px 30px; position: relative; overflow: hidden; }
/* 招牌元素：页面顶部露出半张牌桌（胡桃木边 + 藏青台呢），像从包厢门口看进去 */
.auth::before { content: ""; position: absolute; left: -30%; right: -30%; top: -62vw; height: 110vw; max-height: 560px; border-radius: 50%;
  background: var(--weave), radial-gradient(ellipse at 50% 85%, #24507a, var(--baize) 55%, var(--baize-deep));
  box-shadow: 0 0 0 14px var(--walnut), 0 0 0 15px rgba(212,178,106,.35), 0 0 0 16px var(--walnut), 0 30px 60px rgba(0,0,0,.5); }
.auth .brand { position: relative; text-align: center; padding: 70px 0 52px; }
.auth .brand .seal { width: 96px; height: 96px; margin: 0 auto; box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(212,178,106,.3); }
.auth .brand h1 { font: 900 30px/1 var(--serif); letter-spacing: .3em; margin: 64px 0 0 .3em; }
.auth .brand p { color: rgba(236,230,218,.62); margin: 12px 0 0; font-size: 13px; letter-spacing: .12em; }
.seg { position: relative; display: flex; gap: 26px; margin: 4px 2px 22px; }
.seg button { border: 0; background: none; color: var(--dim); padding: 4px 0 8px; border-radius: 0; font: 600 17px var(--ui); letter-spacing: .08em; }
.seg button[aria-selected=true] { color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; color: var(--mute); font-size: 13px; margin-bottom: 7px; letter-spacing: .04em; }
.field input { width: 100%; padding: 14px 14px; font-size: 16px; border-radius: 12px; background: var(--deck); }
.field .help { color: var(--dim); font-size: 12px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--mute); font-size: 13px; line-height: 1.6; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.btn-block { width: 100%; padding: 15px; font-size: 16px; border-radius: 14px; letter-spacing: .12em; }
.form-error { color: var(--seal-hi); font-size: 13px; min-height: 1.2em; }

/* ── 大厅 ── */
.lobby-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px 4px; }
.lobby-top .grow { flex: 1; }
.purse { display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 12px; background: var(--deck); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); color: inherit; text-decoration: none; }
.purse .chip { font-size: 16px; }
.purse i { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1a1408; display: grid; place-items: center; font: 600 18px/1 var(--ui); font-style: normal; }
.greet { padding: 18px 18px 2px; display: flex; align-items: center; gap: 12px; }
.greet .avatar-c { width: 44px; height: 44px; font-size: 17px; }
.greet b { display: block; font: 700 20px/1.3 var(--serif); letter-spacing: .06em; }
.greet span { color: var(--dim); font: 12px var(--num); letter-spacing: .04em; }
.notice { margin: 12px 18px 0; padding: 12px 14px; border-radius: 12px; font-size: 13px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.notice.mint { background: rgba(212,178,106,.1); box-shadow: inset 3px 0 0 var(--gold); color: var(--ivory); }
.notice.mint b { color: var(--gold-hi); font-weight: 600; }
.notice.mint b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); }
.notice.warn { background: rgba(196,64,47,.1); box-shadow: inset 3px 0 0 var(--seal); color: #f0c2b8; }
.notice .grow { flex: 1; }
.filters { display: flex; gap: 22px; padding: 20px 18px 0; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--hair); }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 0; border-radius: 0; background: none; padding: 0 0 11px; font-size: 14px; color: var(--dim); letter-spacing: .04em; }
.filters button[aria-pressed=true] { color: var(--ivory); background: none; box-shadow: inset 0 -2px 0 var(--gold); font-weight: 600; }
.tlist { padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 16px; }

/* 大厅牌桌：每张桌是一张实时的俯视缩略图 */
.lt { display: block; color: inherit; text-decoration: none; border-radius: 18px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.lt:active { background: var(--deck-2); }
.lt.closed { opacity: .5; }
.lt-stage { position: relative; height: 172px; background: radial-gradient(ellipse 70% 90% at 50% 40%, rgba(236,230,218,.05), transparent 70%); }
.lt-info { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 2px 20px 18px; }
.lt-name { font: 700 17px/1.35 var(--serif); letter-spacing: .06em; }
.lt-sub { grid-column: 1 / -1; color: var(--dim); font: 12px var(--num); letter-spacing: .04em; }
.lt-blinds { text-align: right; font: 600 24px/1 var(--num); color: var(--gold-hi); }
.mt-dealer .rec { width: 5px; height: 5px; border-radius: 50%; background: var(--seal-hi); box-shadow: 0 0 6px var(--seal-hi); animation: breathe 1.6s ease-in-out infinite; }
.onair { display: inline-flex; align-items: center; gap: 5px; font: 600 11px var(--ui); letter-spacing: .08em; color: #fff; background: var(--seal); padding: 2px 7px 2px 6px; border-radius: 4px; }
.onair::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: breathe 1.6s ease-in-out infinite; }
.onair.off { background: rgba(236,230,218,.1); color: var(--mute); }
.onair.off::before { background: var(--dim); animation: none; }
@media (prefers-reduced-motion: reduce) { .onair::before, .mt-dealer .rec { animation: none; } }

/* ── 列表 / 卡片 ── */
.card-box { background: var(--deck); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--hair); }
.list-group { background: var(--deck); border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: inherit; text-decoration: none; border: 0; box-shadow: inset 0 -1px 0 var(--hair); background: none; width: 100%; text-align: left; border-radius: 0; font-size: 15px; }
.list-item:last-child { box-shadow: none; }
.list-item:active { background: var(--deck-2); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .sub { color: var(--dim); font-size: 12px; margin-top: 3px; }
.list-item .val { color: var(--mute); font-size: 13px; }
.list-item.chev::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--dim); border-top: 1.5px solid var(--dim); transform: rotate(45deg); margin-right: 3px; }
.list-item.danger { color: var(--seal-hi); justify-content: center; }
.profile-card { display: flex; align-items: center; gap: 16px; padding: 4px 2px 6px; }
.profile-card .avatar-c { width: 62px; height: 62px; font-size: 24px; }
.profile-card b { font: 700 21px/1.3 var(--serif); letter-spacing: .06em; }
.profile-card .hint { margin-top: 3px; }
.profile-card button.ghost { border: 1px solid var(--hair-2); border-radius: 999px; padding: 6px 14px; color: var(--ivory); font-size: 13px; }
.badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 3px; font-family: var(--ui); letter-spacing: .04em; }
.badge.ok { color: var(--jade); background: rgba(111,191,152,.12); }
.badge.wait { color: var(--gold-hi); background: rgba(212,178,106,.12); }
.badge.no { color: var(--mute); background: rgba(236,230,218,.07); }

/* 会员卡：钱包余额 */
.balance-card { position: relative; overflow: hidden; margin-top: 18px; padding: 20px 20px 18px; border-radius: 18px;
  background: var(--weave), linear-gradient(150deg, #20324a, #141c29 70%); box-shadow: inset 0 0 0 1px rgba(212,178,106,.28); }
.balance-card::after { content: ""; position: absolute; inset: 6px; border-radius: 13px; box-shadow: inset 0 0 0 1px rgba(212,178,106,.14); pointer-events: none; }
.balance-card .label { color: rgba(236,230,218,.6); font-size: 12px; letter-spacing: .14em; }
.balance-card .amt { font: 600 36px/1.25 var(--num); color: var(--gold-hi); font-variant-numeric: tabular-nums; margin-top: 4px; }
.balance-card .row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.balance-card .row button { padding: 12px; border-radius: 12px; }
.balance-card .row button:not(.primary) { background: rgba(236,230,218,.06); }

/* 战绩：大字统计，无框，细线分隔 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 20px; padding: 16px 4px 4px; }
.stats div { padding: 0 6px; }
.stats div + div:not(:nth-child(3n + 1)) { box-shadow: inset 1px 0 0 var(--hair); padding-left: 14px; }
.stats b { display: block; font: 600 24px/1.2 var(--num); font-variant-numeric: tabular-nums; }
.stats span { color: var(--dim); font-size: 12px; }
.ledger-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 14px 18px; box-shadow: inset 0 -1px 0 var(--hair); }
.ledger-row:last-child { box-shadow: none; }
.ledger-row .t { font-size: 14px; } .ledger-row .d { color: var(--dim); font-size: 12px; }
.ledger-row .a { font: 600 16px var(--num); text-align: right; } .ledger-row .b { color: var(--dim); font: 12px var(--num); text-align: right; }
.hrow { padding: 14px 18px; box-shadow: inset 0 -1px 0 var(--hair); }
.hrow:last-child { box-shadow: none; }
.hrow summary::-webkit-details-marker { display: none; }
.hrow .body { margin-top: 12px; padding: 12px 12px 6px; background: rgba(0,0,0,.2); border-radius: 12px; color: var(--mute); font-size: 13px; }
.hb-board { display: flex; justify-content: center; gap: 3px; padding-bottom: 10px; margin-bottom: 4px; box-shadow: inset 0 -1px 0 var(--hair); min-height: 44px; }
.hb-board .card { margin: 0; }
.hb-row { display: grid; grid-template-columns: 1fr 58px 60px 56px; align-items: center; gap: 8px; padding: 6px 0; }
.hb-name { color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-cards { display: flex; } .hb-cards .card { margin: 0 1px; }
.hb-hand { font-size: 12px; color: var(--dim); }
.hb-net { text-align: right; font: 600 14px var(--num); }
.hrow .mine { display: flex; }
.hrow .card { --w: 24px; } .hrow .card .ci b { font-size: 12px; } .hrow .card .ci i { font-size: 10px; }
.toggle { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: rgba(236,230,218,.14); position: relative; flex: none; padding: 0; border: 0; cursor: pointer; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ivory); transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.toggle:checked { background: var(--gold); }
.toggle:checked::after { transform: translateX(20px); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 底部弹层 ── */
.sheet-mask { position: absolute; inset: 0; background: rgba(5,7,10,.62); z-index: 40; display: flex; align-items: flex-end; animation: fade .18s; }
.sheet { width: 100%; background: var(--deck); border-radius: 22px 22px 0 0; padding: 8px 20px calc(20px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); max-height: 86%; overflow-y: auto; animation: rise .24s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -1px 0 var(--hair-2); }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: rgba(236,230,218,.18); margin: 4px auto 16px; }
.sheet h3 { margin: 0 0 6px; font: 700 20px/1.3 var(--serif); letter-spacing: .06em; }
.sheet .sub { color: var(--mute); font-size: 13px; margin-bottom: 16px; line-height: 1.7; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(60px); } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-mask { animation: none; } }
.buyin-amt { font: 600 40px var(--num); color: var(--gold-hi); text-align: center; margin: 10px 0 4px; }
.buyin-range { display: flex; justify-content: space-between; color: var(--dim); font: 12px var(--num); }
.sheet input[type=range] { width: 100%; margin: 12px 0; height: 28px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button { padding: 12px 4px; font-family: var(--num); font-size: 15px; }
.emote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.emote-grid button { padding: 13px 10px; font-size: 14px; border-radius: 12px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); transform: translateX(-50%); max-width: 84%; text-align: center; background: rgba(236,230,218,.95); color: #171b22; border: 0; border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 500; box-shadow: 0 12px 30px rgba(0,0,0,.5); z-index: 60; }

/* 四色牌 */
.four-color .card.s-d { color: #2f6db5; }
.four-color .card.s-c { color: #2e8a57; }

/* 滑块：细轨道 + 象牙圆钮 */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 28px; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(236,230,218,.14); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 3px var(--gold), 0 2px 6px rgba(0,0,0,.5); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(236,230,218,.14); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 3px var(--gold); }

/* 负责任博彩：用量条 */
.rg-meter { display: flex; align-items: baseline; gap: 8px; font: 600 26px var(--num); padding: 0 2px; }
.rg-meter .dim { font-size: 15px; font-weight: 500; }
.rg-bar { height: 4px; border-radius: 2px; background: rgba(236,230,218,.1); margin: 10px 2px 0; overflow: hidden; }
.rg-bar i { display: block; height: 100%; background: var(--gold); }
.list-item .fc b { font-size: 16px; }

/* ─────────────────────────────────────────────────────────────
   精修：去掉"卡片套卡片"。留白负责分组，细线负责分隔，
   只有两样东西保留实体容器：牌桌（它本来就是实物）和会员卡（钱包）。
   ───────────────────────────────────────────────────────────── */
.tlist { padding: 8px 0 28px; gap: 0; }
.lt { background: none; box-shadow: none; border-radius: 0; padding: 22px 0 26px; }
.lt + .lt { box-shadow: inset 0 1px 0 var(--hair); }
.lt:active { background: rgba(236,230,218,.02); }
.lt-stage { height: 196px; margin: 0 10px; background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(37,84,128,.18), transparent 70%); }
.lt-stage .mt { inset: 26px 22px 18px; }
.lt-info { padding: 14px 24px 0; }
.lt-name { font-size: 19px; }
.lt-blinds { font-size: 26px; }
.lt-sub { margin-top: 2px; }

.card-box, .list-group { background: none; box-shadow: none; border-radius: 0; }
.list-group { box-shadow: inset 0 1px 0 var(--hair), inset 0 -1px 0 var(--hair); }
.list-item { padding: 17px 2px; }
.list-item.danger { justify-content: flex-start; }
.hrow, .ledger-row { padding-left: 2px; padding-right: 2px; }
.stats { padding: 8px 2px 18px; }
.stats b { font-size: 28px; }
.head { padding: 18px 20px 14px; }
.head h1 { font-size: 26px; }
.section { padding: 0 20px 20px; }
.notice { margin: 14px 20px 0; }
.filters { padding: 22px 20px 0; }
.lobby-top { padding: 16px 20px 6px; }

/* 正在牌桌上：标签栏上方的常驻条 */
.nowbar { display: flex; align-items: center; gap: 10px; margin: 0 12px 8px; padding: 12px 16px; border-radius: 14px; text-decoration: none; color: var(--ivory); font-size: 14px;
  background: var(--weave), linear-gradient(100deg, #1d3d5f, #16283d); box-shadow: inset 0 0 0 1px rgba(212,178,106,.35), 0 10px 24px rgba(0,0,0,.35); }
.nowbar .grow { flex: 1; min-width: 0; font: 700 15px var(--serif); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowbar .num { color: var(--gold-hi); font-size: 14px; }
.nowbar b { color: #1a1408; background: var(--gold); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.nowbar .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--seal-hi); box-shadow: 0 0 8px var(--seal-hi); animation: breathe 1.6s ease-in-out infinite; }

.sheet-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.sheet-head .chip { font-size: 15px; }

/* ─────────────────────────────────────────────────────────────
   上线版补充：钱包、实名、帮助、协议、公告、密码框
   ───────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 500 14px var(--ui); color: var(--ivory); background: var(--deck-2); border: 1px solid var(--hair-2); border-radius: 10px; padding: 9px 14px; text-decoration: none; letter-spacing: .06em; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1a1408; font-weight: 600; }
a.btn:hover, a.btn:active { text-decoration: none; }
.btn.btn-block { display: flex; width: 100%; padding: 15px; font-size: 16px; border-radius: 14px; letter-spacing: .12em; }
button.link { background: none; border: 0; border-radius: 0; padding: 8px 0; color: var(--mute); font-size: 13px; letter-spacing: .06em; }
button.link:hover:not(:disabled) { color: var(--ivory); }
.form > .link { align-self: center; }
.link-in { background: none !important; border: 0 !important; padding: 0 !important; color: var(--gold-hi) !important; font: inherit !important; letter-spacing: inherit; vertical-align: baseline; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.pair button { padding: 14px; border-radius: 12px; font-size: 15px; letter-spacing: .08em; }
.lead { color: var(--mute); font-size: 14px; line-height: 1.85; margin: 2px 2px 20px; }
.center { text-align: center; }
.gold { color: var(--gold-hi); }
.list-group.gap { margin-top: 28px; }
.list-item .val { color: var(--dim); font-size: 13px; }
.list-item .val.ok { color: var(--jade); } .list-item .val.wait { color: var(--gold-hi); } .list-item .val.bad { color: var(--seal-hi); }
.list-item .fc { margin-left: 10px; letter-spacing: 4px; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* 密码框：右侧显示 / 隐藏 */
.field.pw { position: relative; }
.field.pw input { padding-right: 50px; }
.field.pw .eye, .field.pw .eye:active { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; padding: 0; background: none; border: 0; color: var(--dim); display: grid; place-items: center; }
.field.pw .eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.field.pw .eye[aria-pressed=true] { color: var(--gold-hi); background: none; }

/* 大厅公告：一行，点开看全文，可关闭（换了新公告会再出现） */
.ann { display: flex; align-items: center; margin: 12px 20px 0; border-radius: 12px; background: rgba(212,178,106,.07); box-shadow: inset 0 0 0 1px rgba(212,178,106,.2); }
.ann-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 12px 4px 12px 14px; text-align: left; color: var(--ivory); font-size: 13px; border-radius: 12px 0 0 12px; }
.ann-t i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.ann-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-x { flex: none; width: 42px; height: 42px; background: none; border: 0; padding: 0; position: relative; border-radius: 0 12px 12px 0; }
.ann-x::before, .ann-x::after { content: ""; position: absolute; left: 15px; top: 20px; width: 12px; height: 1.5px; background: var(--mute); transform: rotate(45deg); }
.ann-x::after { transform: rotate(-45deg); }
.lt-sub .here { margin-left: 12px; color: var(--gold-hi); font: 500 12px var(--ui); letter-spacing: .08em; }

/* 战绩、交易记录：按天分组 */
.hlist { padding: 0 20px 8px; }
.day { color: var(--dim); font-size: 12px; letter-spacing: .1em; padding: 20px 2px 8px; box-shadow: inset 0 -1px 0 var(--hair); }
.hrow summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; list-style: none; cursor: pointer; }
.hrow .mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hrow .mid b { font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.hrow .mid small { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hrow .end b { font: 600 17px var(--num); }
.hrow .end small { color: var(--dim); font-size: 12px; }
.hb-board .dim { font-size: 12px; padding: 12px 0; }
.hb-row.me .hb-name { color: var(--gold-hi); }
.more-wrap { text-align: center; padding: 6px 0 28px; }

/* 钱包 */
.balance-card .frozen { position: relative; z-index: 1; color: rgba(236,230,218,.55); font-size: 12px; margin-top: 2px; letter-spacing: .04em; }
.balance-card .row .btn { padding: 12px; border-radius: 12px; font-size: 15px; }
.balance-card .row .btn:not(.primary) { background: rgba(236,230,218,.06); }
.tabs { display: flex; gap: 28px; margin: 26px 2px 20px; box-shadow: inset 0 -1px 0 var(--hair); }
.tabs button { border: 0; border-radius: 0; background: none; padding: 0 0 11px; font-size: 15px; color: var(--dim); letter-spacing: .08em; }
.tabs button[aria-selected=true] { color: var(--ivory); box-shadow: inset 0 -2px 0 var(--gold); font-weight: 600; }
.amount-in { display: flex; align-items: center; gap: 12px; padding: 0 2px; margin-bottom: 16px; box-shadow: inset 0 -1px 0 var(--hair-2); transition: box-shadow .15s; }
.amount-in:focus-within { box-shadow: inset 0 -1px 0 var(--gold); }
.amount-in input { flex: 1; min-width: 0; background: none; border: 0; border-radius: 0; padding: 6px 0 10px; font: 600 32px var(--num); color: var(--gold-hi); }
.amount-in input::placeholder { font: 400 20px var(--num); color: var(--dim); }
.amount-in input:focus { outline: none; border: 0; }
.amount-in .link { color: var(--gold-hi); }
.olist { box-shadow: inset 0 1px 0 var(--hair); }
.orow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 2px; box-shadow: inset 0 -1px 0 var(--hair); align-items: center; }
.orow .t { font-size: 15px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.orow small { color: var(--dim); font-size: 12px; }
.orow .a { font: 600 16px var(--num); display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.orow .a small { font: 500 12px var(--ui); letter-spacing: .04em; }
.orow small.st-pending { color: var(--gold-hi); } .orow small.st-approved { color: var(--jade); } .orow small.st-rejected { color: var(--seal-hi); } .orow small.st-cancelled { color: var(--dim); }
.orow .why { grid-column: 1 / -1; color: var(--seal-hi); font-size: 12px; }
.orow .cancel { grid-column: 1 / -1; justify-self: start; padding: 2px 0 0; color: var(--gold-hi); }
.receipt { margin: 14px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--night); box-shadow: inset 0 0 0 1px var(--hair-2); display: grid; gap: 10px; }
.receipt div { display: flex; justify-content: space-between; align-items: baseline; }
.receipt span { color: var(--dim); font-size: 13px; }
.receipt b { font: 600 18px var(--num); letter-spacing: .04em; }
.support { white-space: pre-wrap; line-height: 1.9; font-size: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(212,178,106,.06); box-shadow: inset 0 0 0 1px rgba(212,178,106,.18); user-select: text; -webkit-user-select: text; }
.sheet .support { margin-top: 4px; }

/* 实名认证 */
.kyc-mark { font: 700 24px var(--serif); letter-spacing: .12em; margin: 10px 2px 22px; }
.kyc-verified .kyc-mark { color: var(--jade); } .kyc-pending .kyc-mark { color: var(--gold-hi); }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); margin: 0 0 16px; box-shadow: inset 0 1px 0 var(--hair); }
.kv dt, .kv dd { margin: 0; padding: 14px 2px; box-shadow: inset 0 -1px 0 var(--hair); }
.kv dt { color: var(--dim); font-size: 13px; } .kv dd { font-size: 15px; letter-spacing: .04em; }

/* 帮助、关于、协议 */
.faq { box-shadow: inset 0 1px 0 var(--hair); }
.faq details { box-shadow: inset 0 -1px 0 var(--hair); }
.faq summary { list-style: none; padding: 16px 30px 16px 2px; font-size: 15px; cursor: pointer; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq p { margin: -4px 2px 18px; color: var(--mute); font-size: 14px; line-height: 1.9; }
.about { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0 36px; }
.about .seal { width: 88px; height: 88px; box-shadow: 0 12px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(212,178,106,.3); }
.about .wordmark { font-size: 22px; letter-spacing: .18em; margin-left: .18em; }
.sheet.doc { max-height: 88%; }
.sheet.doc h4 { font: 700 15px var(--serif); letter-spacing: .06em; margin: 20px 0 6px; color: var(--ivory); }
.sheet.doc p, .doc-p { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.9; white-space: pre-wrap; }

/* 头像颜色选择 */
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.swatches .avatar-c, .swatches .avatar-c[aria-pressed] { width: 100%; height: auto; aspect-ratio: 1; padding: 0; font-size: 14px; border: 0; background: var(--av); color: #f1e9da; border-radius: 50%; }
.swatches .avatar-c[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--av), inset 0 0 0 3px rgba(241,233,218,.28), 0 0 0 2px var(--deck), 0 0 0 4px var(--gold); }

/* 快速开始：浮在大厅底部，单手拇指可达 */
.quickstart { position: sticky; bottom: 14px; display: block; width: calc(100% - 36px); margin: 0 18px 14px; height: 52px; border-radius: 26px; font-size: 17px; letter-spacing: .12em; box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 4px 14px rgba(212,178,106,.22); z-index: 5; }

/* 牌局回放 */
.replay-btn { float: right; margin: -4px 0 6px; padding: 5px 14px; border-radius: 999px; font-size: 13px; color: var(--gold-hi); border-color: rgba(212,178,106,.45); background: transparent; }
.sheet.replay .rp-board { display: flex; gap: 6px; justify-content: center; min-height: 52px; align-items: center; margin: 6px 0 10px; }
.rp-text { text-align: center; color: var(--ivory); font-size: 15px; min-height: 22px; margin-bottom: 10px; }
.rp-seats { display: flex; flex-direction: column; }
.rp-row { display: grid; grid-template-columns: 18px 1fr 62px 84px 64px; align-items: center; gap: 6px; padding: 7px 4px; border-radius: 8px; font-size: 13px; color: var(--mute); transition: background .2s; }
.rp-row .rp-pos { color: var(--gold); font-size: 11px; }
.rp-row .rp-name { color: var(--ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-row.me .rp-name { color: var(--gold-hi); }
.rp-row .rp-cards { display: flex; gap: 2px; }
.rp-row .rp-stk { text-align: right; color: var(--ivory); }
.rp-row.focus { background: rgba(212,178,106,.12); }
.rp-row.focus .rp-act { color: var(--gold-hi); }
.rp-row.folded { opacity: .45; }
.rp-row.won .rp-act { color: var(--jade); }
.rp-bar { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.rp-bar button.ghost { width: 44px; height: 44px; padding: 0; font-size: 20px; border-radius: 50%; border: 1px solid var(--hair-2); color: var(--ivory); }
.rp-bar button.primary { flex: 1; height: 44px; border-radius: 22px; }
.rp-bar .rp-step { min-width: 44px; text-align: right; color: var(--dim); font-size: 12px; }

/* 大厅：在班荷官 */
.duty { display: flex; gap: 10px; overflow-x: auto; padding: 4px 18px 14px; scrollbar-width: none; }
.duty::-webkit-scrollbar { display: none; }
.duty .dz { position: relative; flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(212,178,106,.1), rgba(236,230,218,.03)); box-shadow: inset 0 0 0 1px rgba(212,178,106,.22); text-decoration: none; color: var(--ivory); }
.duty .dz img, .duty .dz .avatar-c { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; font-size: 20px; margin-bottom: 6px; box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px var(--gold); }
.duty .dz .rec { position: absolute; top: 12px; right: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--seal-hi); box-shadow: 0 0 0 2px var(--night); }
.duty .dz b { font: 600 14px var(--serif); letter-spacing: .08em; }
.duty .dz small { color: var(--dim); font-size: 11px; white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
/* 回放：牌局录像 */
.rp-video { margin: 4px 0 10px; border-radius: 12px; overflow: hidden; background: #000; position: relative; }
.rp-video video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.rp-video .rp-vtab { position: absolute; left: 8px; top: 8px; padding: 2px 9px; font-size: 11px; border-radius: 10px; background: rgba(6,8,11,.6); border: 0; color: var(--ivory); pointer-events: none; }

/* ───────── 登录：验证码 ───────── */
.seg { gap: 20px; }
.seg button { font-size: 16px; }
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; }
.code-btn { flex: none; min-width: 108px; padding: 0 12px; border-radius: 12px; font-size: 14px; color: var(--gold-hi); border-color: rgba(212,178,106,.45); background: transparent; }
.code-btn:disabled { color: var(--dim); border-color: var(--hair-2); opacity: 1; }
details.more { margin: 2px 0 6px; color: var(--mute); font-size: 13px; }
details.more summary { cursor: pointer; list-style: none; padding: 4px 2px; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 8px; }
.hint.center { text-align: center; margin-top: 10px; }

/* ───────── 大厅：消息铃铛 ───────── */
.bell { position: relative; width: 36px; height: 36px; display: grid; place-items: center; color: var(--mute); }
.bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.bell i { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--seal-hi); box-shadow: 0 0 0 2px var(--night); }

/* ───────── 我的 ───────── */
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--seal); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
.vip-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 4px; font-size: 11px; line-height: 18px; vertical-align: 2px; color: #1a1408; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); }
.val.warn { color: var(--seal-hi); }
.link-in { background: none; border: 0; padding: 0; color: inherit; font: inherit; }

/* ───────── 活动：VIP ───────── */
.vip-card { border-radius: 20px; padding: 18px 18px 16px; background: radial-gradient(120% 140% at 100% 0%, rgba(230,200,135,.28), transparent 55%), linear-gradient(140deg, #2a2316, #16130d 70%); box-shadow: inset 0 0 0 1px rgba(212,178,106,.35); }
.vip-card.lv4, .vip-card.lv5 { background: radial-gradient(120% 140% at 100% 0%, rgba(200,214,236,.25), transparent 55%), linear-gradient(140deg, #222833, #12151b 70%); box-shadow: inset 0 0 0 1px rgba(200,214,236,.35); }
.vip-top { display: flex; align-items: center; gap: 10px; }
.vip-top b { font: 700 22px var(--serif); letter-spacing: .1em; color: var(--gold-hi); }
.vip-badge { font: 700 12px var(--num); letter-spacing: .06em; color: #1a1408; background: var(--gold); padding: 2px 7px; border-radius: 5px; }
.vip-rb { color: var(--gold-hi); font-size: 13px; }
.vip-bar { height: 5px; border-radius: 3px; background: rgba(236,230,218,.12); margin: 16px 0 8px; overflow: hidden; }
.vip-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); border-radius: 3px; }
.vip-sub { color: var(--mute); font-size: 12px; }
.vip-claim { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; box-shadow: inset 0 1px 0 rgba(236,230,218,.1); }
.vip-claim small { display: block; color: var(--mute); font-size: 12px; }
.vip-claim b { font: 700 26px var(--num); color: var(--ivory); }
.vip-claim button { padding: 10px 26px; border-radius: 20px; }
/* 签到 */
.ck-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.ck { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 12px; background: rgba(236,230,218,.04); box-shadow: inset 0 0 0 1px var(--hair); }
.ck span { font-size: 10px; color: var(--dim); }
.ck b { font-size: 15px; color: var(--ivory); }
.ck.done { background: rgba(212,178,106,.1); box-shadow: inset 0 0 0 1px rgba(212,178,106,.3); }
.ck.done b { color: var(--gold); }
.ck.done span::after { content: " ✓"; color: var(--gold); }
.ck.today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.ck.today b { color: var(--gold-hi); }
/* 任务 */
.list-item.task { align-items: center; }
.list-item.task b { font-weight: 500; font-size: 15px; }
.list-item.task small { color: var(--dim); font-size: 12px; }
.tbar { height: 4px; border-radius: 2px; background: rgba(236,230,218,.1); margin: 8px 0 6px; overflow: hidden; }
.tbar i { display: block; height: 100%; background: var(--gold); border-radius: 2px; }
.list-item.task button { flex: none; min-width: 76px; padding: 8px 12px; border-radius: 18px; font-size: 13px; }
/* 邀请 */
.invite-card { padding: 18px; border-radius: 18px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair); text-align: center; }
.invite-card small { color: var(--mute); font-size: 12px; }
.invite-card > b { display: block; font: 700 34px var(--num); letter-spacing: .3em; color: var(--gold-hi); margin: 6px 0 14px; padding-left: .3em; }
.invite-card .row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-bottom: 12px; }
.invite-card .row button { padding: 12px; border-radius: 12px; }
.inv-list { margin-top: 12px; text-align: left; font-size: 13px; }
.inv-list div { display: flex; padding: 8px 2px; box-shadow: inset 0 1px 0 var(--hair); }
.inv-list .grow { flex: 1; }
/* 排行榜 */
.rank .rk { display: flex; align-items: center; gap: 12px; padding: 12px 4px; box-shadow: inset 0 -1px 0 var(--hair); }
.rank .rk .grow { flex: 1; }
.rank .rk .avatar-c { width: 34px; height: 34px; font-size: 13px; }
.rank .rk .no { width: 26px; text-align: center; color: var(--dim); font-size: 15px; font-weight: 700; }
.rank .rk .no.top1 { color: #e6c887; } .rank .rk .no.top2 { color: #c8d0dc; } .rank .rk .no.top3 { color: #d39a6a; }
.rank .rk.me { background: rgba(212,178,106,.08); border-radius: 10px; }
.rank .rk b.up { color: var(--jade); }
/* 消息 */
.msgs .msg { display: flex; gap: 12px; padding: 14px 2px; box-shadow: inset 0 -1px 0 var(--hair); }
.msgs .msg .grow { flex: 1; min-width: 0; }
.msgs .msg b { font-weight: 600; font-size: 15px; }
.msgs .msg p { margin: 4px 0 6px; color: var(--mute); font-size: 13px; line-height: 1.6; }
.msgs .msg small { color: var(--dim); font-size: 11px; }
.msgs .msg.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--seal-hi); margin-left: 6px; vertical-align: 2px; }
.msgs .msg .row { display: flex; gap: 8px; margin-bottom: 6px; }
.msgs .msg .row button { padding: 6px 16px; border-radius: 16px; font-size: 13px; }
.msgs .k { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 11px; color: var(--mute); background: rgba(236,230,218,.06); }
.msgs .k-reward { color: var(--gold-hi); background: rgba(212,178,106,.12); }
.msgs .k-friend, .msgs .k-invite { color: var(--jade); background: rgba(111,191,152,.1); }
.msgs .k-warn { color: var(--seal-hi); background: rgba(196,64,47,.12); }
/* 好友 */
.add-friend { display: flex; gap: 10px; }
.add-friend input { flex: 1; min-width: 0; }
.add-friend button { padding: 0 22px; border-radius: 12px; }
.list-item.friend .avatar-c, .list-item .avatar-c { position: relative; width: 38px; height: 38px; font-size: 14px; flex: none; }
.list-item.friend .avatar-c i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 2px var(--night); }
.list-item.friend .avatar-c i.on { background: var(--jade); }
.list-item.friend small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.list-item.friend b { font-weight: 500; }
.btn.sm, button.sm { padding: 6px 12px; font-size: 13px; border-radius: 16px; }
.head + .tabs { margin: 6px 18px 0; }

/* 大厅分区：牌桌 / 比赛 / 私人房 */
.zone { display: flex; gap: 6px; margin: 10px 18px 4px; padding: 4px; border-radius: 14px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair); }
.zone button { flex: 1; padding: 9px 0; border: 0; border-radius: 10px; background: none; color: var(--mute); font: 600 14px var(--ui); letter-spacing: .1em; }
.zone button[aria-selected=true] { background: rgba(212,178,106,.16); color: var(--gold-hi); }
.alt { padding: 8px 0 24px; }
.vt { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 17px; vertical-align: 2px; color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(212,178,106,.45); }
/* 比赛卡片 */
.tcard { display: flex; align-items: center; gap: 12px; margin: 10px 18px 0; padding: 14px 16px; border-radius: 16px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair); color: inherit; text-decoration: none; }
.tcard.run { box-shadow: inset 0 0 0 1px rgba(111,191,152,.35); }
.tcard.done { opacity: .6; }
.tc-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tc-l b { font: 600 16px var(--serif); letter-spacing: .04em; }
.tc-l small, .tc-r small { color: var(--dim); font-size: 12px; }
.tc-type { align-self: flex-start; font: 700 10px var(--num); letter-spacing: .1em; color: var(--gold-hi); padding: 1px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(212,178,106,.45); }
.tc-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tc-pool { font: 700 20px var(--num); color: var(--gold-hi); }
.tc-buy, .tc-ok, .tc-go, .tc-st { margin-top: 4px; padding: 4px 12px; border-radius: 14px; font-size: 13px; }
.tc-buy { background: var(--gold); color: #1a1408; font-weight: 700; }
.tc-buy small { color: rgba(36,26,8,.7); font-size: 11px; margin-left: 2px; }
.tc-ok { color: var(--jade); box-shadow: inset 0 0 0 1px rgba(111,191,152,.45); }
.tc-go { background: var(--jade); color: #0d1a14; font-weight: 600; }
.tc-st { color: var(--mute); }
/* 比赛详情 */
.tag-st { font-size: 12px; padding: 2px 10px; border-radius: 10px; color: var(--mute); box-shadow: inset 0 0 0 1px var(--hair-2); }
.tag-st.reg { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(212,178,106,.5); }
.tag-st.run { color: var(--jade); box-shadow: inset 0 0 0 1px rgba(111,191,152,.5); }
.t-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; padding: 18px 8px; border-radius: 18px; text-align: center; background: radial-gradient(120% 140% at 50% 0%, rgba(212,178,106,.18), transparent 60%), var(--deck); box-shadow: inset 0 0 0 1px rgba(212,178,106,.28); }
.t-hero small { display: block; color: var(--mute); font-size: 12px; margin-bottom: 4px; }
.t-hero b { font: 700 22px var(--num); color: var(--ivory); }
.t-hero div:first-child b { color: var(--gold-hi); }
.t-result { text-align: center; padding: 14px; border-radius: 14px; background: var(--deck); font-size: 15px; }
.t-result b { font-size: 20px; }
.t-rules { margin-top: 14px; }
.tp { display: flex; align-items: center; gap: 10px; padding: 10px 2px; box-shadow: inset 0 -1px 0 var(--hair); font-size: 14px; }
.tp .grow { flex: 1; }
.tp .no { width: 24px; color: var(--dim); text-align: center; }
.tp .avatar-c { width: 28px; height: 28px; font-size: 11px; }
.tp.me { background: rgba(212,178,106,.08); border-radius: 8px; }
.tp.out { opacity: .5; }
.gold { color: var(--gold-hi); }
table.lv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.lv th { color: var(--dim); font-weight: 500; font-size: 12px; text-align: left; padding: 8px 4px; }
table.lv td { padding: 9px 4px; box-shadow: inset 0 -1px 0 var(--hair); }
table.lv tr.cur td { color: var(--gold-hi); background: rgba(212,178,106,.08); }
/* 私人房 */
.room-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin: 12px 18px 6px; }
.room-actions button { padding: 14px; border-radius: 14px; font-size: 15px; }
.room-form .opt-row { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 10px; }
.room-form .opt-row > span { flex: none; width: 64px; padding-top: 8px; color: var(--mute); font-size: 13px; }
.room-form .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.room-form .chips button { padding: 7px 14px; border-radius: 16px; font-size: 13px; background: rgba(236,230,218,.05); }
.room-form .chips button[aria-pressed=true] { background: rgba(212,178,106,.16); border-color: var(--gold); color: var(--gold-hi); }

/* 全局手感：去掉双击放大的延迟；页面转场时的快照层 */
html { touch-action: manipulation; }
.screen.ghost { will-change: transform; contain: layout paint; }
/* 转场快照里的动画全部停掉：快照只是一张"静态画"，循环动画会让滑动返回时每帧重绘 */
.screen.ghost * { animation: none !important; transition: none !important; }
.screen { will-change: auto; }
.list-item:active, .tcard:active, .lt:active, .dz:active { background: rgba(236,230,218,.04); }
/* 触屏没有悬停：点过的按钮不应该一直保持高亮 */
@media (hover: none) {
  button:hover:not(:disabled) { border-color: var(--hair-2); }
  button.primary:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); }
  button.ghost:hover:not(:disabled) { color: var(--mute); border-color: transparent; }
  button.danger:hover:not(:disabled) { background: transparent; }
}
/* 大厅牌桌：荷官状态（真人荷官是招牌，直播中最醒目） */
.lt-dealer { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 500 13px var(--ui); color: var(--mute); letter-spacing: .04em; }
.lt-dealer span { font-size: 11px; padding: 2px 7px; border-radius: 4px; letter-spacing: .08em; background: rgba(236,230,218,.08); color: var(--dim); }
.lt-dealer.on { color: var(--ivory); }
.lt-dealer.on span { display: inline-flex; align-items: center; gap: 5px; background: var(--seal); color: #fff; font-weight: 600; }
.lt-dealer.on span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: breathe 1.6s ease-in-out infinite; }
.lt-dealer.duty span { background: rgba(212,178,106,.14); color: var(--gold-hi); }
.lt-dealer.bot { color: var(--dim); font-size: 12px; }

/* ── 私人房：增值房、靓号、账单 ── */
.prem-card { display: grid; gap: 4px; width: 100%; text-align: left; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,178,106,.10), rgba(212,178,106,.02) 60%), var(--deck-2); border: 1px solid rgba(212,178,106,.28); }
.prem-card[aria-pressed=true] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(212,178,106,.12); }
.prem-card .pc-t { display: flex; justify-content: space-between; align-items: baseline; }
.prem-card .pc-t b { font: 700 16px var(--serif); letter-spacing: .12em; color: var(--gold-hi); }
.prem-card .pc-t span { color: var(--gold-hi); font-size: 15px; }
.prem-card .pc-d { color: var(--mute); font-size: 12px; letter-spacing: .04em; }
.prem-card .pc-n { color: var(--dim); font-size: 12px; }
.prem-card:disabled { opacity: .55; }
.room-form .vanity { margin: -2px 0 12px 76px; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; max-height: 196px; overflow-y: auto; scrollbar-width: none; }
.vgrid .vc { display: grid; gap: 2px; padding: 8px 4px; border-radius: 10px; text-align: center; background: rgba(236,230,218,.04); }
.vgrid .vc b { font-size: 16px; letter-spacing: .08em; }
.vgrid .vc small { color: var(--dim); font-size: 10px; white-space: nowrap; letter-spacing: 0; }
.vgrid .vc.leopard b, .vgrid .vc.straight b { color: var(--gold-hi); }
.vgrid .vc[aria-pressed=true] { border-color: var(--gold); background: rgba(212,178,106,.14); }
.vgrid .vc:disabled { opacity: .4; }
.vgrid .hint { grid-column: 1 / -1; }
.bill { margin: 8px 0 12px; padding: 10px 0 0; border-top: 1px solid var(--hair); font-size: 13px; color: var(--mute); }
.bill:empty { display: none; }
.bill > div { display: flex; justify-content: space-between; padding: 3px 0; }
.bill .tot { margin-top: 4px; color: var(--ivory); font-weight: 600; }
.rb { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; font: 600 10px/16px var(--ui); font-style: normal; letter-spacing: .06em; vertical-align: 2px; color: var(--dim); box-shadow: inset 0 0 0 1px var(--hair-2); }
.rb.prem { color: #1a1408; background: var(--gold); box-shadow: none; }
.rb.vn { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(212,178,106,.45); }
.tcard.prem { box-shadow: inset 0 0 0 1px rgba(212,178,106,.45); background: linear-gradient(135deg, rgba(212,178,106,.08), transparent 55%), var(--deck); }
.tc-type.vn { color: #1a1408; background: var(--gold); box-shadow: none; }

/* 大厅：增值房置顶、专属标记 */
.lt.prem .lt-stage { background: radial-gradient(ellipse 60% 70% at 50% 45%, rgba(212,178,106,.16), transparent 70%); }
.lt.prem .lt-name { color: var(--gold-hi); }
.lt-crown { position: absolute; left: 14px; top: 2px; z-index: 2; display: inline-flex; align-items: center; overflow: hidden; border-radius: 6px; font: 600 11px/22px var(--ui); letter-spacing: .1em; box-shadow: 0 0 0 1px var(--gold); }
.lt-crown i { font-style: normal; padding: 0 8px; background: var(--gold); color: #1a1408; }
.lt-crown b { padding: 0 8px; color: var(--gold-hi); background: rgba(6,8,11,.6); letter-spacing: .14em; }
.lt-lock { position: absolute; right: 14px; top: 2px; z-index: 2; font: 500 11px/22px var(--ui); padding: 0 8px; border-radius: 6px; color: var(--mute); background: rgba(6,8,11,.5); box-shadow: inset 0 0 0 1px var(--hair-2); }

/* 牌局录像：机位切换、跟随步骤 */
.rp-video .rp-cams { position: absolute; left: 8px; top: 8px; display: flex; gap: 2px; padding: 2px; border-radius: 13px; background: rgba(6,8,11,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rp-video .rp-cams button { height: 20px; padding: 0 9px; border: 0; border-radius: 10px; background: none; color: rgba(236,230,218,.75); font: 600 11px var(--ui); }
.rp-video .rp-cams button[aria-selected=true] { background: rgba(212,178,106,.24); color: var(--gold-hi); }
.rp-video .rp-sync { position: absolute; right: 8px; top: 8px; height: 22px; padding: 0 9px; border-radius: 11px; font: 600 11px var(--ui); background: rgba(6,8,11,.6); border: 1px solid rgba(236,230,218,.18); color: rgba(236,230,218,.75); }
.rp-video .rp-sync[aria-pressed=true] { color: var(--gold-hi); border-color: rgba(212,178,106,.5); }

/* ── 启动画面 ── */
.splash { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(ellipse 70% 45% at 50% 44%, rgba(120,82,38,.28), transparent 70%), radial-gradient(ellipse 120% 60% at 50% 120%, rgba(28,52,86,.35), transparent 70%), var(--night);
  transition: opacity .35s ease, visibility 0s linear .35s;
  animation: splashBail .35s 12s forwards; } /* 兜底：脚本出错没能收起时，12 秒后自己消失 */
@keyframes splashBail { to { opacity: 0; visibility: hidden; } }
.splash.out { opacity: 0; visibility: hidden; }
.splash-mark { width: 120px; height: 120px; object-fit: cover; border-radius: 22%; animation: splashIn .7s cubic-bezier(.2,.7,.2,1) both; filter: drop-shadow(0 6px 22px rgba(212,178,106,.28)); }
.splash-name { font: 700 22px var(--serif); letter-spacing: .5em; text-indent: .5em; color: var(--gold-hi); animation: splashIn .7s .12s cubic-bezier(.2,.7,.2,1) both; }
.splash-bar { width: 120px; height: 2px; margin-top: 18px; border-radius: 2px; background: rgba(236,230,218,.1); overflow: hidden; animation: splashIn .5s .25s both; }
.splash-bar i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--gold-lo, #9c7f43), var(--gold-hi)); transition: width .3s ease; }
@keyframes splashIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .splash-mark, .splash-name, .splash-bar { animation: none; } }

/* ── 大厅：包间走廊背景 + 玻璃质感卡片 + 写实牌桌 ── */
#screen.lobby-on { background: linear-gradient(180deg, rgba(6,8,10,.35) 0%, rgba(6,8,10,0) 26%, rgba(6,8,10,.35) 55%, rgba(10,13,16,.85) 86%), url(img/lobby.webp) center 30% / cover no-repeat, #0e0b08; }
.lobby-on .wordmark { color: var(--gold-hi); text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.lobby-on .lobby-top .seal { width: 34px; height: 34px; }
.lobby-on .purse { background: rgba(10,13,16,.55); box-shadow: inset 0 0 0 1px rgba(212,178,106,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lobby-on .zone { background: rgba(10,13,16,.5); box-shadow: inset 0 0 0 1px rgba(212,178,106,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lobby-on .filters { box-shadow: inset 0 -1px 0 rgba(212,178,106,.14); }
.lobby-on .filters button { text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.lobby-on .duty .dz { background: rgba(10,13,16,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lobby-on .tlist { gap: 14px; padding: 14px 14px 28px; }
.lobby-on .lt, .lobby-on .lt + .lt { padding: 14px 0 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(22,16,11,.5), rgba(12,9,6,.82));
  box-shadow: inset 0 0 0 1px rgba(212,178,106,.16), 0 14px 30px rgba(0,0,0,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lobby-on .lt:active { background: linear-gradient(180deg, rgba(30,22,14,.6), rgba(16,12,8,.86)); }
.lobby-on .lt.prem { box-shadow: inset 0 0 0 1px rgba(212,178,106,.45), 0 14px 30px rgba(0,0,0,.4); }
.lobby-on .lt-stage, .lobby-on .lt.prem .lt-stage { height: 178px; margin: 0 6px; background: radial-gradient(ellipse 55% 60% at 50% 55%, rgba(236,190,120,.10), transparent 70%); }
.lobby-on .lt-stage .mt { inset: auto; left: 50%; top: 54%; transform: translate(-50%, -50%); width: min(calc(100% - 24px), 330px); aspect-ratio: 1392 / 651; }
.lobby-on .lt .mt-rail { border-radius: 0; background: url(img/table-std.webp) center / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 14px 18px rgba(0,0,0,.6)); }
.lobby-on .lt.vip .mt-rail { background-image: url(img/table-vip.webp); }
.lobby-on .lt .mt-felt { display: none; }
.lobby-on .lt .mt-seat.vacant { background: rgba(10,13,16,.7); box-shadow: inset 0 0 0 1px rgba(212,178,106,.3); }
.lobby-on .lt-info { padding: 10px 20px 0; }
.lobby-on .quickstart { box-shadow: 0 10px 28px rgba(0,0,0,.5), 0 6px 18px rgba(212,178,106,.25); }
/* 比赛 / 私人房 顶部横幅 */
.zbanner { position: relative; display: flex; flex-direction: column; justify-content: center; height: 112px; margin: 12px 14px 4px; padding: 0 22px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(90deg, rgba(6,8,14,.65), transparent 60%), url(img/banner.webp) 70% center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(212,178,106,.22), 0 12px 26px rgba(0,0,0,.4); }
.zbanner b { font: 700 22px var(--serif); letter-spacing: .24em; color: var(--gold-hi); text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.zbanner small { margin-top: 6px; font-size: 12px; letter-spacing: .1em; color: rgba(236,230,218,.72); }
.lobby-on .tcard { margin: 10px 14px 0; background: linear-gradient(180deg, rgba(22,16,11,.5), rgba(12,9,6,.82)); box-shadow: inset 0 0 0 1px rgba(212,178,106,.16), 0 10px 24px rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lobby-on .tcard.run { box-shadow: inset 0 0 0 1px rgba(111,191,152,.4), 0 10px 24px rgba(0,0,0,.35); }
.lobby-on .tcard.prem { box-shadow: inset 0 0 0 1px rgba(212,178,106,.45), 0 10px 24px rgba(0,0,0,.35); }
.lobby-on .room-actions { margin: 12px 14px 6px; }
.lobby-on .room-actions button:not(.primary) { background: rgba(10,13,16,.55); border-color: rgba(212,178,106,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* 页面自带不透明底色：转场时新页面从右侧滑入，盖住下面的旧页面快照，不会透出来 */
.screen { background-color: var(--night); }

/* ── 页头贴图（活动 / 我的）：跟着内容滚动，底部渐隐到页面底色 ── */
#screen { position: relative; }
.page-hero { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 3 / 2; z-index: 0; pointer-events: none; background: center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); }
.page-hero ~ :not(.head) { position: relative; z-index: 1; }
/* 有页头贴图时标题栏透明，往下滚动后再变成半透明磨砂（#screen.scrolled 由 app.js 切换） */
.page-hero + .head { background: transparent; transition: background-color .2s; }
#screen.scrolled .page-hero + .head { background: rgba(14,12,10,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.page-hero.promo { background-image: url(img/promo-hero.webp); }
.page-hero.me { background-image: url(img/me-hero.webp); opacity: .9; }
.page-hero + .head h1 { text-shadow: 0 2px 10px rgba(0,0,0,.7); }

/* ── VIP 卡：拉丝金属底纹 + 等级徽章 ── */
.vip-card, .vip-card.lv4, .vip-card.lv5 { background: linear-gradient(180deg, rgba(10,13,16,0), rgba(10,13,16,.35)), url(img/vip-card.webp) center / cover no-repeat, #0f0d0b;
  box-shadow: inset 0 0 0 1px rgba(212,178,106,.35), 0 16px 36px rgba(0,0,0,.45); }
.vip-card.lv4, .vip-card.lv5 { box-shadow: inset 0 0 0 1px rgba(200,214,236,.35), 0 16px 36px rgba(0,0,0,.45); }
.vip-top { gap: 12px; }
.vip-medal { width: 54px; height: 54px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); margin: -4px 0 -4px -2px; }
.vip-id { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.vip-id b { line-height: 1.1; }
.vip-badge { font-size: 10px; padding: 1px 6px; }
.vip-tag { display: inline-flex; align-items: center; gap: 3px; padding: 0 8px 0 3px; color: var(--gold-hi); background: rgba(10,13,16,.55); box-shadow: inset 0 0 0 1px rgba(212,178,106,.35); border-radius: 999px; }
.vip-tag img { width: 15px; height: 15px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }

/* ── 签到：筹码 / 礼盒图标 ── */
.ck { gap: 3px; padding: 8px 0 9px; }
.ck-ico { width: 26px; height: 26px; background: url(img/ico-chips.webp) center / contain no-repeat; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
.ck-ico.gift { width: 30px; height: 30px; margin: -2px 0; background-image: url(img/ico-gift.webp); }
.ck:not(.done):not(.today) .ck-ico { opacity: .55; filter: grayscale(.4) drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
.ck b { font-size: 13px; }

/* ── 邀请好友：举杯横幅 ── */
.invite-card { padding-top: 92px; background: linear-gradient(180deg, transparent 34px, color-mix(in srgb, var(--deck) 60%, transparent) 72px, var(--deck) min(29vw, 104px)), url(img/invite.webp) center top / 100% auto no-repeat, var(--deck);
  box-shadow: inset 0 0 0 1px rgba(212,178,106,.18), 0 14px 32px rgba(0,0,0,.35); overflow: hidden; }

/* ── 余额卡：黑金卡（我的页、钱包页共用） ── */
.balance-card { background: url(img/wallet-card.webp) center / 100% 100% no-repeat, #0b0a09; box-shadow: 0 16px 36px rgba(0,0,0,.5); }
.balance-card::after { display: none; }
.balance-card .label { color: rgba(236,230,218,.55); }
.balance-card .amt { text-shadow: 0 2px 14px rgba(212,178,106,.18); }

/* ── 战绩：页头贴图 + 台呢数据卡 + 空状态插图 ── */
.page-hero.hist { background-image: url(img/hist-hero.webp); }
.stats { padding: 22px 16px 18px; border-radius: 18px; background: url(img/stats-card.webp) center / 100% 100% no-repeat, #0b1428; box-shadow: 0 16px 36px rgba(0,0,0,.45); }
.stats div + div:not(:nth-child(3n + 1)) { box-shadow: inset 1px 0 0 rgba(212,178,106,.16); }
.stats span { color: rgba(236,230,218,.55); letter-spacing: .06em; }
.empty.empty-art { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px 28px; }
.empty.empty-art img { width: 96px; height: 96px; object-fit: cover; border-radius: 22%; opacity: .9; filter: drop-shadow(0 12px 22px rgba(0,0,0,.55)); }
.empty.empty-art span { color: var(--mute); letter-spacing: .1em; }

/* ── 复盘：台面贴图、庄家按钮、结算分隔花纹 ── */
.sheet.replay { background: linear-gradient(180deg, rgba(22,18,14,.92), rgba(16,13,10,.96)), url(img/leather.webp) 0 0 / 512px repeat, #14110e; }
.sheet.replay .rp-board { min-height: 92px; margin: 6px -4px 12px; padding: 22px 12px 14px; border-radius: 14px; background: url(img/rp-felt.webp) center top / cover no-repeat, #0b1428; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.sheet.replay .rp-board .card { --w: 40px; }
.sheet.replay .rp-board:empty::after { content: "未发公共牌"; color: rgba(236,230,218,.4); font-size: 12px; letter-spacing: .2em; }
.rp-row .rp-pos.d { width: 16px; height: 16px; font-size: 0; background: url(img/dealer-btn.webp) center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.rp-text.end { padding-top: 22px; background: url(img/divider.webp) center top / min(260px, 80%) auto no-repeat; color: var(--gold-hi); font-weight: 600; letter-spacing: .1em; }

/* ── 私人房：我的房间卡片（房主金边 + 牌桌贴图 + 大号房间号） ── */
.my-rooms-title { display: flex; align-items: baseline; gap: 8px; margin: 22px 18px 10px !important; font: 700 16px var(--serif); color: var(--ivory); letter-spacing: .1em; }
.my-room { position: relative; margin: 0 14px 12px; padding: 16px 16px 14px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(90deg, rgba(14,11,8,.95) 40%, rgba(14,11,8,.55) 75%, rgba(14,11,8,.35)), url(img/table-std.webp) right -60px center / 72% auto no-repeat, #0e0b08;
  box-shadow: inset 0 0 0 1px rgba(212,178,106,.2), 0 14px 32px rgba(0,0,0,.45); }
.my-room.vip { background-image: linear-gradient(90deg, rgba(14,11,8,.95) 40%, rgba(14,11,8,.55) 75%, rgba(14,11,8,.35)), url(img/table-vip.webp); }
.my-room.owner { box-shadow: inset 0 0 0 1.5px rgba(222,184,108,.75), 0 0 24px rgba(212,178,106,.18), 0 14px 32px rgba(0,0,0,.45); }
.mr-top { display: flex; align-items: center; gap: 8px; }
.mr-code { font: 700 26px/1 var(--num); letter-spacing: .14em; color: var(--gold-hi); text-shadow: 0 2px 10px rgba(212,178,106,.25); }
.mr-own { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #1a1408; background: linear-gradient(180deg, #f0d495, var(--gold)); letter-spacing: .1em; }
.mr-time { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.mr-time b { font-size: 20px; color: var(--ivory); }
.mr-time small { font-size: 11px; color: var(--dim); }
.mr-name { margin-top: 10px; font: 700 17px var(--serif); letter-spacing: .06em; color: var(--ivory); }
.mr-sub { margin-top: 3px; color: var(--mute); font-size: 12px; }
.mr-acts { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.my-room:not(.owner) .mr-acts { grid-template-columns: 1.6fr 1fr; }
.mr-acts .btn, .mr-acts button { height: 40px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; font-size: 14px; }
.mr-acts button:not(.primary) { background: rgba(10,13,16,.6); border-color: rgba(212,178,106,.3); color: var(--gold-hi); }

/* ── 房间管理面板 ── */
.sheet.room-manage .rm-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 4px; padding: 14px 16px; border-radius: 14px; background: url(img/vip-card.webp) center / cover no-repeat, #0f0d0b; box-shadow: inset 0 0 0 1px rgba(212,178,106,.3); }
.rm-head small { display: block; color: var(--dim); font-size: 11px; letter-spacing: .1em; }
.rm-head b { font: 700 30px/1.1 var(--num); letter-spacing: .16em; color: var(--gold-hi); }
.rm-head .ghost { border: 1px solid rgba(212,178,106,.4); border-radius: 999px; padding: 8px 14px; color: var(--gold-hi); }
.rm-name { margin: 10px 2px 0; font: 600 15px var(--serif); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.room-manage .section-title { display: flex; align-items: baseline; gap: 8px; margin: 18px 2px 8px; }
.rm-left { margin-left: auto; font-size: 18px; color: var(--gold-hi); }
.rm-ext { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rm-ext button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; font-size: 13px; background: rgba(212,178,106,.08); border-color: rgba(212,178,106,.3); color: var(--ivory); }
.rm-ext button small { color: var(--gold-hi); font-size: 12px; }
.rm-p { gap: 10px; }
.rm-seat { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(212,178,106,.14); color: var(--gold-hi); flex: none; }
.rm-stk { color: var(--mute); font-size: 13px; }
.rm-p .ghost, .room-manage [data-unban] { padding: 6px 12px; border-radius: 999px; font-size: 12px; border: 1px solid rgba(224,114,95,.45); color: var(--seal-hi); background: none; }
.room-manage [data-unban] { border-color: var(--hair-2); color: var(--ivory); }
.rm-close { margin-top: 22px; }
.rm-entry .val { color: var(--dim); font-size: 12px; }

/* ═════════ 弹窗（底部面板）重做：暖黑皮革面板 + 金色顶边 + 统一的选项、输入框、按钮 ═════════ */
.sheet-mask { background: rgba(4,3,2,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet { position: relative; border-radius: 24px 24px 0 0; padding-left: 20px; padding-right: 20px;
  background: linear-gradient(180deg, rgba(36,28,20,.96) 0, rgba(20,16,12,.98) 140px), url(img/leather.webp) 0 0 / 512px repeat, #14110e;
  box-shadow: inset 0 1px 0 rgba(230,200,135,.35), 0 -18px 50px rgba(0,0,0,.55); }
.sheet::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(230,200,135,.85), transparent); pointer-events: none; }
.sheet .grab { width: 40px; background: rgba(212,178,106,.35); }
.sheet h3 { color: var(--ivory); padding-bottom: 12px; margin-bottom: 14px; position: relative; }
.sheet h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-hi), transparent); }
.sheet .sub { color: rgba(236,230,218,.62); }
.sheet .field input, .sheet input:not([type=checkbox]):not([type=range]), .sheet select, .sheet textarea { background: rgba(0,0,0,.32); border-color: rgba(212,178,106,.18); }
.sheet .field input:focus, .sheet input:not([type=checkbox]):not([type=range]):focus { border-color: rgba(212,178,106,.6); box-shadow: 0 0 0 3px rgba(212,178,106,.12); outline: none; }
.sheet .list-group { background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(212,178,106,.12); }
.sheet .pair .cancel { background: rgba(0,0,0,.25); border-color: rgba(212,178,106,.2); }
button.primary, .btn.primary { background: linear-gradient(180deg, #e8c983, var(--gold)); border-color: #c9a35e; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px rgba(212,178,106,.18); }
button.primary:disabled { box-shadow: none; }

/* 开房间：每个选项一行（左标签右选项，细金线分隔），选中的选项整块金色 */
.room-form { gap: 0 !important; }
.room-form > .field { margin-bottom: 6px; }
.room-form .opt-row { align-items: center; margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(212,178,106,.09); }
.room-form .opt-row > span { padding-top: 0; color: rgba(236,230,218,.7); }
.room-form .chips { gap: 6px; }
.room-form .chips button { padding: 8px 13px; border-radius: 10px; background: rgba(0,0,0,.28); border-color: rgba(212,178,106,.16); color: rgba(236,230,218,.85); }
.room-form .chips button[aria-pressed=true] { background: linear-gradient(180deg, #ecd08f, var(--gold)); border-color: #c9a35e; color: #1a1408; font-weight: 600; box-shadow: 0 4px 12px rgba(212,178,106,.22); }
.prem-card { padding: 16px 18px; background: linear-gradient(90deg, rgba(10,13,16,.2), rgba(10,13,16,.55)), url(img/vip-card.webp) center / cover no-repeat, #0f0d0b; border: 1px solid rgba(212,178,106,.4); }
.prem-card .pc-t b::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; background: url(img/vip-gold.webp) center / contain no-repeat; }
.prem-card[aria-pressed=true] { box-shadow: 0 0 0 1.5px var(--gold-hi), 0 0 24px rgba(212,178,106,.25); }
.bill { margin: 16px 0 14px; padding: 12px 14px; border: 0; border-radius: 12px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px rgba(212,178,106,.14); }
.bill .tot { margin-top: 6px; padding-top: 8px; border-top: 1px dashed rgba(212,178,106,.2); }
/* 私人房：房间号直接在页面上输入 */
.room-actions .rc-inline { position: relative; display: flex; margin: 0; }
.rc-inline input { width: 100%; height: 100%; min-height: 46px; padding: 0 46px 0 16px; border-radius: 14px; font: 600 16px var(--num); letter-spacing: .2em; color: var(--gold-hi); background: rgba(10,13,16,.55); border: 1px solid rgba(212,178,106,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rc-inline input::placeholder { font: 500 14px var(--ui); letter-spacing: .08em; color: rgba(236,230,218,.6); }
.rc-inline input:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(212,178,106,.15); }
.rc-inline button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; padding: 0; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(180deg, #e8c983, var(--gold)); border: 0; }
.rc-inline button svg { width: 18px; height: 18px; fill: none; stroke: #1a1408; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── 消息：卡片列表，整张可点 ── */
.msgs { display: flex; flex-direction: column; gap: 10px; }
.msgs .msg { position: relative; align-items: flex-start; gap: 12px; padding: 14px 32px 14px 14px; border-radius: 16px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(212,178,106,.12), 0 8px 20px rgba(0,0,0,.25);
  background: linear-gradient(180deg, rgba(255,236,200,.035), rgba(255,236,200,0)), var(--deck); transition: background .15s, transform .08s; }
.msgs .msg:active { transform: scale(.985); background: var(--deck-2); }
.msgs .msg.unread { box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px rgba(212,178,106,.28), 0 8px 20px rgba(0,0,0,.25); }
.msgs .msg.unread b::after { display: none; }
.msgs .msg .mhd { display: flex; align-items: baseline; gap: 8px; }
.msgs .msg .mhd b { flex: 1; min-width: 0; font: 600 15px var(--serif); letter-spacing: .04em; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs .msg .mhd small { flex: none; color: var(--dim); font-size: 11px; }
.msgs .msg.unread .mhd b { color: var(--gold-hi); }
.msgs .msg p { margin: 5px 0 0; color: rgba(236,230,218,.72); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msgs .msg .row { margin: 10px 0 0; }
.msgs .mk { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(212,178,106,.18); }
.msgs .mi { width: 26px; height: 26px; border-radius: 22%; background: url(img/logo.webp) center / cover no-repeat; }
.msgs .mi-reward, .msgs .mi-invite { border-radius: 0; background-size: contain; }
.msgs .mi-reward { background-image: url(img/ico-gift.webp); width: 30px; height: 30px; }
.msgs .mi-invite { background-image: url(img/ico-chips.webp); }
.msgs .mi-friend { background: none; -webkit-mask: none; position: relative; }
.msgs .mi-friend::before { content: ""; position: absolute; inset: 2px; background: var(--jade); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c.8-4.4 4-7 8-7s7.2 2.6 8 7z'/%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 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c.8-4.4 4-7 8-7s7.2 2.6 8 7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.msgs .k-warn .mk { background: rgba(196,64,47,.14); box-shadow: inset 0 0 0 1px rgba(224,114,95,.35); }
.msgs .mi-warn { background: none; position: relative; }
.msgs .mi-warn::before { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 20px var(--num); color: var(--seal-hi); }
.msgs .mchev { position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid rgba(212,178,106,.6); border-top: 1.6px solid rgba(212,178,106,.6); transform: translateY(-50%) rotate(45deg); }
.room-actions > * { min-width: 0; }
.rc-inline input { min-width: 0; }
.mr-top .grow { flex: 1; }
.sheet .list-group .list-item { padding-left: 14px; padding-right: 14px; }
/* 房间密码 */
.rb.lock { color: var(--gold-hi); background: rgba(212,178,106,.14); }
.room-form .pw-row { margin: 4px 0 2px 76px; }
.sheet .pw-big { text-align: center; font: 700 26px var(--num) !important; letter-spacing: .5em; text-indent: .5em; }
.room-manage .rm-pw, .room-manage .rm-pw-off { padding: 6px 14px; border-radius: 999px; font-size: 12px; border: 1px solid rgba(212,178,106,.45); color: var(--gold-hi); background: none; margin-left: 6px; }
.room-manage .rm-pw-off { border-color: var(--hair-2); color: var(--mute); }
.sheet .pw-big::placeholder { font: 500 15px var(--ui); letter-spacing: .12em; }

/* ── 头像编辑 ── */
.avatar-edit { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; }
.avatar-edit .avatar-c { width: 62px; height: 62px; font-size: 24px; }
.avatar-edit i { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #ecd08f, var(--gold)) ; box-shadow: 0 0 0 2px var(--night);
  -webkit-mask: none; }
.avatar-edit i::before { content: ""; position: absolute; inset: 5px; background: #1a1408; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z M12 10a3.5 3.5 0 1 0 0 7a3.5 3.5 0 1 0 0-7z' fill-rule='evenodd'/%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 24'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z M12 10a3.5 3.5 0 1 0 0 7a3.5 3.5 0 1 0 0-7z' fill-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat; }
.av-preview { display: grid; place-items: center; margin: 6px 0 18px; }
/* 头像审核状态：头像下沿的小签 + 换头像面板里的一行说明 */
.avatar-edit .av-st { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 600; line-height: 16px; font-style: normal; padding: 0 6px; border-radius: 8px; background: var(--night); box-shadow: inset 0 0 0 1px currentColor; }
.av-st.wait, .av-note.wait { color: var(--gold-hi); } .av-st.bad, .av-note.bad { color: var(--seal-hi); }
.av-note { text-align: center; font-size: 13px; margin: -8px 0 16px; }
.avatar-c.xl { width: 120px; height: 120px; font-size: 42px; box-shadow: 0 0 0 3px rgba(212,178,106,.6), 0 14px 34px rgba(0,0,0,.5); }
.ghost-line { background: none; border: 1px solid rgba(212,178,106,.3); color: var(--ivory); border-radius: 12px; padding: 13px; }

/* ── 好友 ── */
.head .my-id { display: flex; flex-direction: column; align-items: flex-end; padding: 4px 12px; border-radius: 12px; background: rgba(212,178,106,.08); border: 1px solid rgba(212,178,106,.28); line-height: 1.15; }
.head .my-id small { font-size: 10px; color: var(--dim); letter-spacing: .1em; }
.head .my-id b { font-size: 14px; color: var(--gold-hi); letter-spacing: .06em; }
.fr-search { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 40px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid rgba(212,178,106,.22); }
.fr-search:focus-within { border-color: rgba(212,178,106,.6); box-shadow: 0 0 0 3px rgba(212,178,106,.1); }
.fr-search svg { position: absolute; left: 13px; width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; }
.fr-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; font: 600 16px var(--num); letter-spacing: .08em; color: var(--ivory); }
.fr-search input::placeholder { font: 400 14px var(--ui); letter-spacing: .04em; }
.fr-search input:focus { outline: none; box-shadow: none; }
.fr-search button { padding: 9px 18px; border-radius: 12px; font-size: 14px; }
.fr-title { display: flex; align-items: center; gap: 8px; margin: 24px 2px 10px; }
.fr-count { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--seal-hi); }
.fr-list { display: flex; flex-direction: column; gap: 8px; }
.fr-card { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,236,200,.03), rgba(255,236,200,0)), var(--deck); box-shadow: inset 0 0 0 1px rgba(212,178,106,.12); }
.fr-card.req { box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px rgba(212,178,106,.3); }
.fr-card .avatar-c { width: 46px; height: 46px; font-size: 17px; }
.fr-card .grow { min-width: 0; }
.fr-card b { display: block; font: 600 15px var(--serif); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-card small { color: var(--dim); font-size: 12px; }
.fr-card.playing small { color: var(--gold-hi); }
.fr-card.online small { color: var(--jade); }
.fr-av { position: relative; flex: none; }
.fr-av i { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #4a4f57; box-shadow: 0 0 0 2px var(--deck); }
.fr-card.online .fr-av i { background: var(--jade); }
.fr-card.playing .fr-av i { background: var(--gold-hi); box-shadow: 0 0 0 2px var(--deck), 0 0 8px rgba(230,200,135,.8); }
.fr-card .sm { padding: 7px 14px; border-radius: 999px; font-size: 13px; }
.fr-more { flex: none; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: var(--dim); display: grid; place-items: center; border-radius: 50%; }
.fr-more svg { width: 18px; height: 18px; fill: currentColor; }
.msgs .msg .msg-state { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px; color: var(--jade); background: rgba(111,191,152,.1); }
.fr-card .grow, .msgs .msg .grow { flex: 1; }


/* ═════════ 标题栏延伸到状态栏后面（iOS 导航栏的标准做法）═════════
   页面本身不再留状态栏的空白；标题栏 / 大厅顶栏贴着屏幕最上沿吸顶，自己的上内边距包含状态栏高度，
   所以状态栏后面就是标题栏的底色，内容滚上去时从整条栏下面经过。栏是半透明毛玻璃，滚动后出现底部细线。 */
:root { --sat: var(--safe-area-inset-top, env(safe-area-inset-top)); }
.screen { padding-top: 0; }
.screen.flush { padding-top: var(--sat); }
.head { padding-top: calc(18px + var(--sat)); background: rgba(18,22,29,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); transition: background-color .2s, box-shadow .2s; }
#screen.scrolled .head { box-shadow: 0 1px 0 rgba(236,230,218,.08); }
.lobby-top { position: sticky; top: 0; z-index: 5; padding-top: calc(16px + var(--sat)); transition: background-color .2s, box-shadow .2s; }
#screen.scrolled .lobby-top { background: rgba(14,12,10,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(212,178,106,.12); }

/* 开房：荷官选择（机器人 / 真人）。真人不可选时变灰，点了给出原因 */
.room-form #dlr [aria-disabled=true] { opacity: .45; }
.room-form .dlr-hint { margin: -4px 0 12px; font-size: 12px; color: var(--mute); }
table.lv tr.brk td { color: var(--ink-3, #8a8f98); font-style: italic; text-align: center; }

/* 私人房：开房的"牌局管理"折叠区、带入审批、战绩表 */
.room-form details.adv { border: 1px solid rgba(236,230,218,.1); border-radius: 12px; padding: 0 12px; margin: 4px 0 12px; }
.room-form details.adv summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; font-size: 14px; }
.room-form details.adv summary::-webkit-details-marker { display: none; }
.room-form details.adv summary .hint { font-size: 12px; text-align: right; }
.room-form details.adv[open] summary { border-bottom: 1px solid rgba(236,230,218,.08); margin-bottom: 10px; }
.rm-req .primary, .rm-req .ghost { padding: 6px 14px; margin-left: 6px; }
.room-manage select { background: rgba(236,230,218,.06); color: inherit; border: 1px solid rgba(236,230,218,.14); border-radius: 8px; padding: 6px 8px; font: inherit; }
.bd-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.bd-head > div { background: rgba(236,230,218,.04); border-radius: 10px; padding: 10px; text-align: center; }
.bd-head small { display: block; font-size: 12px; opacity: .6; } .bd-head b { font-size: 16px; }
.bd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.bd-tags span { background: rgba(212,178,106,.1); border-radius: 999px; padding: 4px 12px; }
table.bd { width: 100%; border-collapse: collapse; font-size: 14px; }
table.bd th { font-weight: 500; font-size: 12px; opacity: .6; text-align: right; padding: 6px 4px; } table.bd th:first-child, table.bd td:first-child { text-align: left; }
table.bd td { padding: 9px 4px; text-align: right; border-top: 1px solid rgba(236,230,218,.06); }
table.bd tr.me td { background: rgba(212,178,106,.07); }
table.bd td.up { color: var(--jade, #4fbf8f); } table.bd td.down { color: var(--seal-hi, #e0645a); }
.bd-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; } .bd-title b { font-size: 18px; }

/* 俱乐部 */
.club-card { display: flex; align-items: center; gap: 12px; margin: 0 16px 10px; padding: 14px; border-radius: 14px; background: rgba(236,230,218,.04); border: 1px solid rgba(236,230,218,.08); color: inherit; text-decoration: none; }
.club-card b { display: block; font-size: 15px; } .club-card small { font-size: 12px; opacity: .65; } .club-card em { font-style: normal; color: var(--jade, #4fbf8f); opacity: 1; }
.club-badge { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #1a1408; background: linear-gradient(145deg, var(--gold-hi, #e6c887), var(--gold, #d4b26a)); }
.club-badge.lg { width: 56px; height: 56px; font-size: 24px; border-radius: 16px; }
.club-role { flex: none; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(236,230,218,.08); position: relative; }
.club-role.owner { background: rgba(212,178,106,.18); color: var(--gold-hi, #e6c887); } .club-role.admin { background: rgba(79,191,143,.14); color: var(--jade, #4fbf8f); }
.club-role .dot, .club-tabs .dot { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--seal-hi, #e0645a); color: #fff; font-size: 10px; font-style: normal; line-height: 16px; text-align: center; }
.club-tabs button { position: relative; }
.club-note { margin: 18px 24px; font-size: 12px; }
.club-page { padding: 0 16px 32px; }
.club-hero { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; } .club-hero b { display: block; font-size: 18px; } .club-hero small { font-size: 12px; opacity: .6; }
.club-notice { background: rgba(212,178,106,.08); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; white-space: pre-wrap; } .club-notice b { color: var(--gold-hi, #e6c887); margin-right: 8px; }
.club-intro { font-size: 13px; opacity: .75; margin: 0 0 12px; white-space: pre-wrap; }
.club-body { margin-top: 12px; } .club-body > .primary.btn-block { margin-bottom: 12px; }
.club-m .avatar-c { width: 34px; height: 34px; margin-right: 10px; font-size: 13px; }
.club-days { margin-bottom: 10px; }
.club-join { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; }
.danger-ghost { background: none; border: 1px solid rgba(224,100,90,.35); color: var(--seal-hi, #e0645a); }
.rb.club { background: rgba(79,191,143,.15); color: var(--jade, #4fbf8f); }
.field textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.5; border-radius: 12px; background: var(--deck); color: inherit; border: 1px solid rgba(236,230,218,.12); resize: vertical; }
.club-tabs .dot { right: -14px; top: -4px; }
/* 俱乐部比赛 */
.cl-new { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cl-new button { min-height: 44px; }
.cl-tours { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.cl-tour { display: flex; flex-direction: column; gap: 6px; }
.cl-tour .tcard { margin: 0; }
.cl-tour > small { padding-left: 4px; }
.cl-tour > button.danger { align-self: flex-end; padding: 6px 14px; font-size: 13px; }
/* 大厅：荷官筛选（真人 / 机器人） */
.dealer-seg { display: flex; gap: 4px; margin: 16px 18px 0; padding: 3px; border-radius: 999px; background: rgba(236,230,218,.05); box-shadow: inset 0 0 0 1px var(--hair); width: max-content; }
.dealer-seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--dim); min-height: 32px; }
.dealer-seg button[aria-pressed=true] { background: rgba(212,178,106,.16); color: var(--gold-hi, #e6c887); font-weight: 600; }
/* 分享 */
.sheet-head .rp-share { margin-left: 14px; padding: 0; color: var(--gold-hi); font-size: 13px; }
.hrow .body .replay-btn + .replay-btn { margin-right: 8px; }
.sh-out { min-height: 22px; margin: 10px 0 0; }
.sh-out button.link { padding: 0; color: var(--gold-hi); font-size: 12px; }
.sh-list .list-item { gap: 14px; }
.sh-list button.link { padding: 4px 0; color: var(--gold-hi); }
.sh-list button.link[data-del] { color: var(--mute); }
.sheet .list-group + .pair { margin-top: 14px; }

/* ── 商城 ── */
.head .shop-bal { font-size: 14px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-grid .empty { grid-column: 1 / -1; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 0 12px; overflow: hidden; border-radius: 16px; background: var(--deck); border: 0; box-shadow: inset 0 0 0 1px var(--hair); text-align: center; }
.shop-item.on { box-shadow: inset 0 0 0 1px rgba(212,178,106,.6), 0 0 0 1px rgba(212,178,106,.18); }
.shop-item .pv { width: 100%; height: 104px; margin-bottom: 6px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, rgba(212,178,106,.1), transparent 70%), #0e0c0a; }
.shop-item b { font: 600 15px var(--serif); letter-spacing: .08em; }
.shop-item .st { display: flex; align-items: baseline; gap: 6px; min-height: 20px; font-size: 12px; color: var(--mute); }
.shop-item .st em { font-style: normal; color: var(--gold-hi); letter-spacing: .1em; }
.shop-item .st small { font-size: 11px; color: var(--dim); }
.pv-av { position: relative; display: inline-block; border-radius: 50%; }
.pv-av .avatar-c { width: 58px; height: 58px; font-size: 22px; }
.pv-felt { position: relative; display: block; width: 78%; height: 62px; border-radius: 999px; overflow: hidden;
  background: url(img/room-9.webp) 50% 42% / 420% auto, #13203a; box-shadow: 0 0 0 5px #2a2521, 0 0 0 6px rgba(212,178,106,.45), 0 8px 18px rgba(0,0,0,.55); }
.pv-felt::after { content: ""; position: absolute; inset: 6px; border-radius: inherit; box-shadow: 0 0 0 1px rgba(212,178,106,.55); pointer-events: none; }
.pv-felt .felt-skin { left: 0; top: 0; width: 100%; height: 100%; }
.pv-felt .pv-cards { position: absolute; inset: 0; display: grid; grid-auto-flow: column; place-content: center; }
.pv-cards { display: inline-flex; }
.pv-cards .card { --w: 38px; margin: 0 -5px; }
.pv-cards .card:first-child { transform: rotate(-8deg); } .pv-cards .card:last-child { transform: rotate(8deg); }
.shop-sheet { text-align: center; }
.shop-sheet .pv.big { height: 170px; display: grid; place-items: center; margin: 8px -20px 14px; background: radial-gradient(ellipse at 50% 45%, rgba(212,178,106,.14), transparent 70%); }
.shop-sheet .pv.big .avatar-c { width: 96px; height: 96px; font-size: 36px; box-shadow: none; }
.shop-sheet .pv.big .pv-felt { width: 82%; height: 120px; }
.shop-sheet .pv.big .pv-felt .card { --w: 30px; }
.shop-sheet .pv.big > .pv-cards .card { --w: 56px; margin: 0 -8px; }
.shop-sheet .pv.big .frm { inset: -6px; padding: 5px; }
.shop-sheet h3::after { left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); }
.shop-sheet .renew { margin-top: 10px; }
.shop-sheet .renew .primary { background: transparent; color: var(--gold-hi); }
.shop-sheet .bal-after { margin-top: 10px; }
/* ── 私人房列表：公开房间；靓号房尊贵样式、排最前 ── */
.open-rooms { display: flex; flex-direction: column; gap: 10px; margin: 0 16px 24px; }
.or-card { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair); color: inherit; font: inherit; }
.or-top { display: flex; align-items: center; gap: 8px; }
.or-code { font-size: 15px; letter-spacing: .12em; color: var(--dim); }
.or-name { margin-top: 6px; font: 600 16px var(--serif); letter-spacing: .04em; }
.or-sub { margin-top: 4px; font-size: 12px; color: var(--mute); }
.or-meta { display: flex; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--dim); }
.or-meta .or-own { color: var(--mute); max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-lock { width: 14px; height: 14px; background: currentColor; color: var(--dim); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%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 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.or-card.prem { box-shadow: inset 0 0 0 1px rgba(111,191,152,.35); }
/* 靓号：黑金底、金色描边、房间号烫金；豹子号最尊贵（流光） */
.or-card.vn { position: relative; overflow: hidden; background: linear-gradient(135deg, #1d1710 0%, #0e0b08 55%, #1a140c 100%); box-shadow: inset 0 0 0 1px rgba(212,178,106,.55), 0 6px 22px rgba(0,0,0,.45); }
.or-card.vn .or-code { font: 700 22px/1 var(--serif); letter-spacing: .16em; background: linear-gradient(180deg, #fff2cc, #e2bd72 45%, #a57d3a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.or-tier { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #1a1408; background: linear-gradient(145deg, #f3dca6, #c9a35c); letter-spacing: .1em; }
.or-card.vn-leopard { box-shadow: inset 0 0 0 1.5px #e2bd72, 0 0 0 1px rgba(226,189,114,.25), 0 8px 28px rgba(212,178,106,.18); }
.or-card.vn-leopard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,236,190,.16) 50%, transparent 65%); transform: translateX(-100%); animation: orShine 4.5s ease-in-out infinite; pointer-events: none; }
.or-card.vn-leopard .or-tier { background: linear-gradient(145deg, #fff0c8, #e2bd72 50%, #b0853c); box-shadow: 0 0 10px rgba(226,189,114,.45); }
.or-card.vn-straight { box-shadow: inset 0 0 0 1.2px rgba(226,189,114,.8), 0 6px 22px rgba(0,0,0,.45); }
@keyframes orShine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .or-card.vn-leopard::after { animation: none; } }
/* 比赛：重购 / 加买标签、购买按钮、冠军 / 协商标记 */
.tc-tags { display: flex; gap: 4px; align-self: flex-start; }
.tc-x { color: var(--mute); box-shadow: inset 0 0 0 1px var(--hair); }
.t-buys { display: flex; gap: 8px; margin-top: 10px; }
.t-buys button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 14px; font-size: 15px; }
.t-buys small { color: var(--dim); font-size: 12px; }
.t-champ, .t-deal { margin-left: 6px; padding: 1px 6px; border-radius: 4px; font: 600 10px var(--num); font-style: normal; letter-spacing: .08em; vertical-align: 2px; }
.t-champ { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(212,178,106,.45); }
.t-deal { color: var(--mute); box-shadow: inset 0 0 0 1px var(--hair); }
/* 限时活动：横幅轮播、限时任务、活动排行 */
.cp-car { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; margin-bottom: 8px; scrollbar-width: none; }
.cp-car::-webkit-scrollbar { display: none; }
.cp-ban, .cp-strip { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 118px; padding: 18px 20px; box-sizing: border-box; color: var(--ivory); text-decoration: none;
  background: radial-gradient(120% 140% at 100% 0%, rgba(230,200,135,.22), transparent 55%), linear-gradient(140deg, #2a2316, #14110c 70%); background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(212,178,106,.28); border-radius: 18px; }
.cp-ban b { font: 700 21px/1.3 var(--serif); letter-spacing: .08em; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.cp-ban small, .cp-strip small { color: rgba(236,230,218,.72); font-size: 13px; letter-spacing: .04em; }
.cp-dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 14px; }
.cp-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(236,230,218,.22); transition: width .25s; }
.cp-dots i.on { width: 16px; background: var(--gold); }
.cp-strip { min-height: 0; margin: 12px 20px 0; padding: 12px 16px; border-radius: 12px; flex-direction: row; align-items: baseline; gap: 10px; }
.cp-strip b { font: 600 14px var(--ui); letter-spacing: .06em; color: var(--gold-hi); white-space: nowrap; }
.cp-strip small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cp-left { color: var(--gold-hi); }
.cp-board { padding: 16px 16px 12px; border-radius: 18px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair); margin-bottom: 12px; }
.cp-bh { display: flex; align-items: center; gap: 10px; }
.cp-bh b { font: 700 17px var(--serif); letter-spacing: .06em; }
.cp-bh .cp-left { font-size: 13px; padding: 2px 10px; border-radius: 10px; background: rgba(212,178,106,.1); }
.cp-board .hint { margin: 4px 0 6px; }
.cp-prize { display: block; color: var(--gold); font-size: 11px; margin-top: 2px; }
.cp-prize::before { content: "奖励 "; color: var(--dim); }
.cp-me { display: flex; align-items: center; gap: 12px; padding: 12px 4px 2px; font-size: 14px; }
.cp-me b { color: var(--gold-hi); }
/* 客服与反馈 */
.tk-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tk { display: block; padding: 14px 16px; border-radius: 14px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair); color: inherit; text-decoration: none; position: relative; }
.tk.unread::before { content: ""; position: absolute; left: 6px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--seal); }
.tk-top { display: flex; align-items: center; gap: 8px; }
.tk-top b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk p { margin: 6px 0 4px; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk small, .tk-meta { color: var(--dim); font-size: 12px; }
.tk-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.tk-cats button { padding: 8px 14px; border-radius: 18px; font-size: 13px; background: rgba(236,230,218,.05); border: 1px solid var(--hair-2); color: var(--mute); }
.tk-cats button[aria-checked=true] { color: var(--gold-hi); border-color: var(--gold-lo); background: rgba(212,178,106,.1); }
.tk-ref { font-size: 13px; color: var(--mute); margin: -4px 0 12px; } .tk-ref b { color: var(--gold-hi); }
.tk-pics { display: flex; gap: 8px; margin: 2px 0 10px; }
.tk-pic, .tk-add { width: 60px; height: 60px; border-radius: 10px; background: center / cover no-repeat rgba(236,230,218,.05); position: relative; flex: none; }
.tk-add { border: 1px dashed var(--hair-2); padding: 0; }
.tk-add::before, .tk-add::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: var(--dim); transform: translate(-50%, -50%); }
.tk-add::after { transform: translate(-50%, -50%) rotate(90deg); }
.tk-pic button { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; padding: 0; border-radius: 50%; background: var(--deck-2); border: 1px solid var(--hair-2); }
.tk-pic button::before { content: "×"; color: var(--mute); font-size: 14px; line-height: 18px; }
.tk-meta { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; } .tk-meta .badge { margin-left: 0; }
.tk-thread { display: flex; flex-direction: column; gap: 12px; }
.bub { align-self: flex-start; max-width: 84%; padding: 10px 14px 8px; border-radius: 4px 16px 16px 16px; background: var(--deck); box-shadow: inset 0 0 0 1px var(--hair); }
.bub.me { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: rgba(212,178,106,.12); box-shadow: inset 0 0 0 1px rgba(212,178,106,.2); }
.bub .who { display: block; color: var(--gold); font-size: 12px; margin-bottom: 4px; letter-spacing: .06em; }
.bub p { margin: 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.bub time { display: block; color: var(--dim); font-size: 11px; margin-top: 4px; text-align: right; }
.bub-imgs { display: flex; gap: 6px; margin-top: 6px; }
.bub-img { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 8px; background: center / cover no-repeat var(--deck-2); }
.tk-compose { position: sticky; bottom: 0; margin: 18px -2px 0; padding: 12px 2px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--night) 18px); }
.tk-send { display: flex; gap: 8px; align-items: flex-end; }
.tk-send textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 14px; box-sizing: border-box; border-radius: 22px; background: var(--deck); color: inherit; border: 1px solid var(--hair-2); font: inherit; font-size: 15px; resize: none; }
.tk-send button { height: 44px; padding: 0 18px; border-radius: 22px; }
.tk-compose .tk-pics { margin-bottom: 8px; }
.tk-compose .tk-pic, .tk-compose .tk-add { width: 44px; height: 44px; }
.tk-rate { margin-top: 20px; padding: 16px; border-radius: 16px; background: var(--deck); box-shadow: inset 0 0 0 1px rgba(212,178,106,.2); text-align: center; }
.tk-rate > b { font: 600 15px var(--serif); letter-spacing: .08em; }
.stars { display: inline-flex; gap: 8px; margin: 12px 0; }
.stars button, .stars i { width: 30px; height: 30px; padding: 0; border: 0; background: rgba(236,230,218,.16); clip-path: polygon(50% 4%, 61% 37%, 96% 37%, 68% 58%, 79% 92%, 50% 72%, 21% 92%, 32% 58%, 4% 37%, 39% 37%); border-radius: 0; }
.stars .on { background: var(--gold); }
.stars.ro { margin: 0 0 0 6px; gap: 3px; vertical-align: -3px; } .stars.ro i { width: 15px; height: 15px; display: inline-block; }
.tk-rated { margin-top: 18px; text-align: center; color: var(--mute); font-size: 13px; }
.tk-viewer img { display: block; width: 100%; max-height: 76vh; object-fit: contain; border-radius: 10px; }
.rp-ask { display: block; text-align: center; margin-top: 12px; color: var(--mute); font-size: 13px; letter-spacing: .06em; }

/* ═════════ 顶部下拉：背景图跟着延伸，不露出空白 ═════════
   页头贴图（活动 / 我的 / 战绩）：以底边为基准放大（scale 由 app.js 在 scrollTop < 0 时设置），上沿始终贴着屏幕顶部。
   大厅的背景挂在滚动容器自身上，回弹时本来就不动，不需要处理。 */
.page-hero { transform-origin: 50% 100%; will-change: transform; }

/* ═════════ 在线客服 ═════════ */
/* 入口：大厅顶栏耳麦、"我的" / 帮助中心 / 工单页的大卡片、登录页底部 */
.cs-entry svg, .cs-card svg, .auth-cs svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lobby-on .cs-entry { color: var(--gold-hi); }
.cs-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; color: inherit; text-decoration: none;
  background: linear-gradient(100deg, rgba(212,178,106,.16), rgba(212,178,106,.04)); box-shadow: inset 0 0 0 1px rgba(212,178,106,.3); }
.cs-card > svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; color: #1a1408; background: var(--gold); stroke-width: 1.9; }
.cs-card b { display: block; font-size: 15px; }
.cs-card small { display: block; margin-top: 2px; color: var(--mute); font-size: 12px; }
.cs-card .cs-go { flex: none; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #1a1408; background: var(--gold); }
.cs-card:active { filter: brightness(1.1); }
.tk-list ~ .cs-card, .support + .cs-card { margin-top: 0; }
#tl > .cs-card { margin: 0 0 14px; }
.auth-cs { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px auto 0; padding: 10px; color: var(--mute); font-size: 13px; text-decoration: none; letter-spacing: .04em; }
.auth-cs svg { width: 18px; height: 18px; color: var(--gold); }

/* 对话页 */
.cs-head h1 { font-size: 17px; line-height: 1.2; }
.cs-state { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--mute); }
.cs-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.cs-state.on::before { background: var(--jade); box-shadow: 0 0 6px var(--jade); }
.cs-tk { font-size: 13px; color: var(--gold-hi); text-decoration: none; padding: 6px 4px; }
.cs-page { display: flex; flex-direction: column; min-height: calc(100% - 80px); }
.cs-hello { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.cs-hello img { flex: none; width: 36px; height: 36px; object-fit: cover; border-radius: 22%; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cs-hello .bub { max-width: none; }
.cs-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px 46px; }
.cs-quick button { padding: 7px 13px; border-radius: 999px; font-size: 13px; color: var(--gold-hi); background: rgba(212,178,106,.08); border: 1px solid rgba(212,178,106,.3); }
.cs-quick[hidden] { display: none; }
.cs-sys { align-self: center; max-width: 90%; padding: 4px 12px; border-radius: 10px; font-size: 12px; line-height: 1.6; text-align: center; color: var(--mute); background: rgba(236,230,218,.05); }
.cs-page .tk-thread { flex: 1; }
.cs-rate { margin-top: 14px; text-align: center; }
.cs-compose { margin-top: auto; padding-top: 16px; }
.cs-compose .cs-contact { margin-bottom: 8px; }
.cs-compose .cs-contact input { width: 100%; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.cs-pic { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; color: var(--mute); background: var(--deck); }
.cs-pic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.cs-compose #csEnd { display: block; margin: 6px auto 0; }
.cs-compose #csEnd[hidden] { display: none; }
.lobby-top .bell { flex: none; width: 28px; }
.lobby-top .wordmark { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 顶栏多了客服图标：间距、左右留白收紧一点，品牌名随屏宽略缩，375 / 360 宽的手机都能完整显示"大富德州扑克" */
.lobby-top { gap: 6px; padding-left: 14px; padding-right: 14px; }
.lobby-top .wordmark { font-size: clamp(15px, 4.6vw, 19px); letter-spacing: .04em; }

/* ═════════ 精修（2026-11-20）═════════ */
/* 邀请好友：横向紧凑卡片。邀请码靠左，举杯贴图放在右上角做氛围，不再占一整块高度 */
.invite-card { position: relative; padding: 16px 16px 12px; text-align: left; border-radius: 16px; overflow: hidden;
  background: linear-gradient(90deg, var(--deck) 34%, color-mix(in srgb, var(--deck) 55%, transparent) 58%, transparent 82%) right top / 100% 96px no-repeat,
    linear-gradient(180deg, transparent 56px, var(--deck) 96px) right top / 100% 96px no-repeat,
    url(img/invite.webp) right top / auto 96px no-repeat, var(--deck);
  box-shadow: inset 0 0 0 1px rgba(212,178,106,.18), 0 10px 24px rgba(0,0,0,.3); }
.invite-card .inv-top { min-height: 66px; display: flex; flex-direction: column; justify-content: center; }
.invite-card .inv-top small { color: var(--mute); font-size: 12px; letter-spacing: .08em; }
.invite-card .inv-top b { display: block; margin: 4px 0 0; padding: 0; font: 700 28px/1.1 var(--num); letter-spacing: .22em; color: var(--gold-hi); text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.invite-card .row { margin: 12px 0 0; gap: 8px; }
.invite-card .row button { padding: 10px; border-radius: 10px; font-size: 14px; }
.invite-card .hint { margin: 10px 0 0; font-size: 12px; line-height: 1.6; text-align: left; }
.invite-card #bindInv { display: block; margin: 4px 0 0 auto; padding: 4px 0; font-size: 12px; color: var(--gold-hi); }

/* 行内容和分隔线两端留出空隙：之前左右只留 2px，文字、按钮贴着线头 */
.list-item { padding-left: 10px; padding-right: 10px; }
.hrow, .ledger-row { padding-left: 10px; padding-right: 10px; }
.orow, .msgs .msg, .tp, .inv-list div { padding-left: 10px; padding-right: 10px; }
.section-title { margin-left: 10px; margin-right: 10px; }
.day { padding-left: 10px; padding-right: 10px; }
.kv dt { padding-left: 10px; } .kv dd { padding-right: 10px; }
.faq summary { padding-left: 10px; padding-right: 36px; } .faq summary::after { right: 14px; } .faq p { margin-left: 10px; margin-right: 10px; }
.stats { padding-left: 10px; padding-right: 10px; }

/* 弹层里的列表：弹层本身就是容器，不再在里面套一圈边框和底色 */
.sheet .list-group { background: none; box-shadow: none; }
.sheet .list-group .list-item { padding-left: 4px; padding-right: 4px; }
.sheet .list-group .list-item:last-child { box-shadow: none; }
.invite-card .inv-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.invite-card .inv-foot .hint { flex: 1; margin: 0; }
.invite-card .inv-foot #bindInv { flex: none; margin: 0; padding: 2px 0; }
/* 战绩：比赛筹码的输赢不是钱，单独标出来 */
.hrow .tchip { display: block; font: 400 10px var(--ui); font-style: normal; color: var(--dim); letter-spacing: .04em; text-align: right; }

/* 洗牌核对结果 */
.fair-list { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 10px; }
.fair-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: 14px; line-height: 1.45; }
.fair-list li b { font-weight: 600; text-align: center; }
.fair-list li.ok b { color: var(--ok, #4cc38a); }
.fair-list li.bad b { color: var(--bad, #e5484d); }
.fair-list li.na b { color: var(--mute); }
.fair-list small { display: block; color: var(--mute); font-size: 12px; word-break: break-all; }
.rp-fair { display: block; margin: 10px auto 0; }

/* ── 多桌切桌条：牌桌页顶部，坐着的每张桌一枚；别的桌轮到自己时那枚亮起来 ── */
.mtbar { position: absolute; z-index: 9; top: calc(var(--tvt, 0px) + 50px); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 4px; border-radius: 999px;
  background: rgba(10,14,18,.62); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 6px 20px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.07); max-width: calc(100vw - 24px); }
.mtbar[hidden] { display: none; }
.mtbar button { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.66); font-size: 12px; white-space: nowrap; min-width: 0; transition: background-color .2s, color .2s; }
.mtbar button span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
.mtbar button b { font-weight: 600; color: rgba(255,255,255,.88); font-size: 12px; }
.mtbar button i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.28); flex: none; }
.mtbar button.on { background: rgba(255,255,255,.12); color: #fff; }
.mtbar button.on i { background: var(--gold); }
.mtbar button.turn { color: #fff; background: color-mix(in srgb, var(--gold) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 70%, transparent); }
.mtbar button.turn i { background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: breathe 1.1s ease-in-out infinite; }
.mtbar button.add { width: 30px; padding: 0; justify-content: center; font-size: 17px; color: rgba(255,255,255,.55); }
.nowbar .mt-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(255,255,255,.14); font-size: 11px; display: inline-grid; place-items: center; color: var(--ivory); }
.nowbar.turn b { animation: breathe 1.1s ease-in-out infinite; }
body.mt-on .tv-table { top: calc(var(--tvt, 0px) + 86px); } /* 多桌：台面整体往下让出切桌条 */
body.mt-on .tv-banner, body.mt-on .tv > .lasthand { top: calc(var(--tvt, 0px) + 90px); }
.mtbar button.on.turn { background: rgba(255,255,255,.14); }
.mtbar button.on.turn i { animation: none; }
