/* ─────────────────────────────────────────────────────────────
   玩家 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: #241a08; 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,175,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(3, 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(--gold-hi); } .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,175,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: 64px; height: 64px; border-radius: 14px; margin: 0 auto; box-shadow: inset 0 0 0 4px var(--seal), inset 0 0 0 6px rgba(241,233,218,.85), 0 12px 30px rgba(0,0,0,.4); }
.auth .brand .seal svg { width: 30px; height: 30px; }
.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: #241a08; 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,175,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,175,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,175,106,.28); }
.balance-card::after { content: ""; position: absolute; inset: 6px; border-radius: 13px; box-shadow: inset 0 0 0 1px rgba(212,175,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,175,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: #241a08; 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: #241a08; 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,175,106,.07); box-shadow: inset 0 0 0 1px rgba(212,175,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,175,106,.06); box-shadow: inset 0 0 0 1px rgba(212,175,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: 58px; height: 58px; border-radius: 13px; box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 5px rgba(241,233,218,.85), 0 10px 26px rgba(0,0,0,.4); }
.about .seal svg { width: 26px; height: 26px; }
.about .wordmark { font-size: 22px; letter-spacing: .3em; margin-left: .3em; }
.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); }
