/* ===== 新大厅：顶栏 + 四个标签页 + 底部标签条；手机一列，电脑上居中一列（最宽 520） ===== */
#hall { padding: 0; gap: 0; overflow: hidden; }
#hall > .lb, #hall > .rooms-sub { flex: 1 1 auto; min-height: 0; }
.lb { display: flex; flex-direction: column; width: 100%; }
.lb-top, .lb-pane, .lb-tabs-in { width: 100%; max-width: 520px; margin: 0 auto; }

/* 顶栏 */
.lb-top { display: flex; align-items: center; gap: 8px; padding: max(12px, env(safe-area-inset-top)) 16px 8px; flex: none; }
.lb-me { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--paper); text-align: left; min-height: 44px; }
.lb-ava { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 2px #e9c46a; display: grid; place-items: center; }
.lb-ava svg { width: 100%; height: 100%; }
.lb-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.lb-who b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-who small { font-size: 11px; color: #e9c46a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-cur { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 5px; border-radius: 999px; background: rgba(10,22,15,.45); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-cur svg { width: 18px; height: 18px; flex: none; }
.lb-cur.lc-gem { padding-right: 4px; }
.lb-plus { position: relative; width: 22px; height: 22px; margin-left: 2px; border-radius: 50%; border: 0; padding: 0; background: #e9c46a; color: #3b2410; font-weight: 900; font-size: 15px; line-height: 22px; }
.lb-plus::after { content: ""; position: absolute; inset: -11px; }   /* 点的范围放大到 44px */
.lb-menu { flex: none; }
.lb-menu svg { width: 22px; height: 22px; }
/* 账号（牌局通行证）：顶栏下面一小行，靠右 */
.lb-acct { width: 100%; max-width: 520px; margin: -4px auto 0; padding: 0 16px 4px; display: flex; justify-content: flex-end; flex: none; }
.lb-acct:empty { display: none; }
.lb-acct .acct-chip { height: 28px; padding: 0 12px; border-color: rgba(233,196,106,.55); background: rgba(10,22,15,.45); color: var(--paper); font-size: 12.5px; }
.lb-acct .acct-chip.in { border-color: rgba(127,217,168,.5); background: rgba(10,22,15,.45); }
.lb-acct .acct-chip.in i { background: #7fd9a8; }

/* 中间可滚的那块 */
.lb-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.lb-pane { display: flex; flex-direction: column; gap: 12px; padding: 6px 16px 18px; }
.lb-pane.hidden { display: none; }
.lb-pane > button { font: inherit; }

/* 还没打完的匹配局 */
.lb-back { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(127,217,168,.55); background: rgba(47,122,85,.35); color: var(--paper); text-align: left; min-height: 52px; }
.lb-back b { font-size: 14px; } .lb-back small { grid-row: 2; font-size: 11px; opacity: .75; }
.lb-back span { grid-row: 1 / 3; grid-column: 2; color: #9fe6bf; font-weight: 700; font-size: 14px; }

/* 排位赛大卡 */
.lb-ranked { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 16px 16px 14px; border-radius: 20px; border: 1px solid rgba(233,196,106,.55); background: linear-gradient(135deg, #5a2e1a, #7a3a1c 55%, #3d2214); color: var(--paper); text-align: left; box-shadow: 0 12px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08); min-height: 116px; overflow: hidden; transition: transform .15s var(--ease-pop); }
.lb-ranked::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(246,213,125,.16), transparent 70%); pointer-events: none; }
.lb-ranked:active { transform: scale(.98); }
.rk-em { flex: none; display: grid; place-items: center; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.rk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-bottom: 26px; }
.rk-txt b { font-family: var(--serif); font-weight: 900; font-size: 26px; color: #f6d57d; letter-spacing: 4px; line-height: 1.15; }
.rk-line { font-size: 13px; }
.rk-txt small { font-size: 11px; color: rgba(251,245,230,.72); line-height: 1.4; }
.st-on { color: #f6d57d; } .st-off { color: rgba(251,245,230,.25); }
.rk-go { position: absolute; right: 14px; bottom: 14px; padding: 7px 18px; border-radius: 999px; background: linear-gradient(180deg, #f6d57d, #d9a441); color: #3b2410; font-weight: 900; font-size: 15px; box-shadow: 0 3px 0 #a8792a; }

/* 快速匹配 / 人机练习 */
.lb-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lb-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px; min-height: 112px; border-radius: 18px; color: var(--paper); text-align: left; box-shadow: 0 8px 18px rgba(0,0,0,.25); transition: transform .15s var(--ease-pop); }
.lb-mode:active { transform: scale(.97); }
.lb-mode svg { width: 28px; height: 28px; }
.lb-mode b { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: 1px; }
.lb-mode small { font-size: 12px; color: rgba(251,245,230,.75); }
.lb-mode.quick { border: 1px solid rgba(143,198,234,.5); background: linear-gradient(160deg, #1f4a6a, #173650); color: #fbf5e6; }
.lb-mode.quick svg { color: #8fc6ea; }
.lb-mode.solo { border: 1px solid rgba(196,221,132,.5); background: linear-gradient(160deg, #3a5a2a, #283f1d); }
.lb-mode.solo svg { color: #c4dd84; }

/* 房间 · 朋友开黑 */
.lb-rooms { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 16px; border: 1px solid rgba(233,196,106,.3); background: rgba(10,22,15,.32); color: var(--paper); text-align: left; transition: transform .15s var(--ease-pop); }
.lb-rooms:active { transform: scale(.98); }
.lr-mark { flex: none; display: flex; gap: 1px; font-family: var(--serif); font-weight: 900; font-size: 18px; }
.lr-mark i { font-style: normal; }
.lr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lr-txt b { font-size: 15px; } .lr-txt small { font-size: 11px; color: rgba(251,245,230,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-go { color: #e9c46a; font-size: 22px; }

/* 今日任务 */
.lb-tasks { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 8px; border-radius: 16px; background: rgba(10,22,15,.32); border: 1px solid rgba(233,196,106,.2); }
.lt-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2px; }
.lt-head b { font-family: var(--serif); font-weight: 700; color: #e9c46a; letter-spacing: 2px; }
.lt-head small { font-size: 11px; color: rgba(251,245,230,.7); }
.lt-row { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; }
.lt-row + .lt-row { border-top: 1px dashed rgba(251,245,230,.1); }
.lt-name { flex: 1; min-width: 0; }
.lt-n { color: rgba(251,245,230,.7); font-variant-numeric: tabular-nums; }
.lt-chip { flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(251,245,230,.1); color: rgba(251,245,230,.75); font-size: 12px; }
.lt-chip.done { background: transparent; color: rgba(251,245,230,.5); }
.lt-claim { flex: none; position: relative; padding: 6px 12px; border-radius: 999px; border: 0; background: #e9c46a; color: #3b2410; font-weight: 700; font-size: 12px; animation: claimPulse 1.6s ease-in-out infinite; }
.lt-claim::after { content: ""; position: absolute; inset: -6px -2px; }
@keyframes claimPulse { 50% { box-shadow: 0 0 0 4px rgba(233,196,106,.25); } }
.lt-row.claimed .lt-name { opacity: .6; }
.lb-pane .hall-arcade { margin: 0; width: 100%; }
#seriesHall:empty { display: none; }

/* 底部标签条 */
.lb-tabs { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px max(8px, calc(50% - 260px)) max(8px, env(safe-area-inset-bottom)); background: rgba(8,18,12,.72); border-top: 1px solid rgba(233,196,106,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border: 0; background: none; color: rgba(251,245,230,.68); font-size: 11px; border-radius: 12px; }
.lb-tabs button svg { width: 22px; height: 22px; }
.lb-tabs button.on { color: #e9c46a; }
.lb-tabs button.on svg { filter: drop-shadow(0 0 6px rgba(233,196,106,.45)); }

/* 页头（段位 / 商店 / 背包） */
.pg-head { display: flex; align-items: baseline; justify-content: space-between; padding-top: 2px; }
.pg-head b { font-family: var(--serif); font-weight: 900; font-size: 18px; letter-spacing: 6px; color: #e9c46a; }
.pg-head small { font-size: 11px; color: rgba(251,245,230,.7); }
.pg-h { margin: 6px 0 -4px; font-family: var(--serif); font-weight: 700; font-size: 15px; color: #e9c46a; letter-spacing: 2px; display: flex; align-items: baseline; gap: 8px; }
.pg-h small { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: 0; color: rgba(251,245,230,.68); }
.pg-note { margin: 0; font-size: 12px; color: rgba(251,245,230,.68); text-align: center; line-height: 1.6; }
.pg-note .link { font-size: 12px; }
.pg-note.dark { color: #6f5f50; }

/* 段位页 */
.rk-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; }
.rk-hero .emblem { filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.rk-hero b { font-family: var(--serif); font-weight: 900; font-size: 26px; letter-spacing: 4px; }
.rk-stars { font-size: 26px; letter-spacing: 6px; line-height: 1.1; }
.rk-hero small { font-size: 12px; color: rgba(251,245,230,.75); }
.rk-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px; border-radius: 14px; background: rgba(251,245,230,.06); text-align: center; }
.rk-rules b { display: block; color: #f6d57d; font-size: 13px; } .rk-rules .neg b { color: #f2a08f; }
.rk-rules small { font-size: 11px; color: rgba(251,245,230,.72); }
.rk-ladder { display: flex; flex-direction: column; gap: 6px; }
.rl-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; background: rgba(251,245,230,.04); border: 1px solid transparent; }
.rl-row.me { background: rgba(233,196,106,.16); border-color: rgba(233,196,106,.6); }
.rl-ch { flex: none; width: 30px; height: 30px; border-radius: 8px; color: #2a1a10; font-family: var(--serif); font-weight: 900; font-size: 16px; display: grid; place-items: center; }
.rl-name { flex: 1; font-size: 14px; }
.rl-row small { font-size: 11px; color: rgba(251,245,230,.75); text-align: right; }
.rl-row.me small { color: #f6d57d; font-weight: 700; }

/* 商店页 */
.sh-feature { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 120px 14px 16px; border-radius: 18px; background: linear-gradient(120deg, #6a1e1e, #a8321e 60%, #6a1e1e); border: 1px solid rgba(246,213,125,.5); overflow: hidden; min-height: 128px; }
.sh-feature small { font-size: 11px; letter-spacing: 3px; color: #f6d57d; }
.sh-feature > b { font-family: var(--serif); font-weight: 900; font-size: 22px; }
.sh-feature > span { font-size: 12px; color: rgba(251,245,230,.85); line-height: 1.5; }
.sf-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sf-buy { min-height: 36px; padding: 6px 16px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #f6d57d, #d9a441); color: #3b2410; font: inherit; font-weight: 900; font-size: 14px; box-shadow: 0 3px 0 #a8792a; }
.sf-buy:disabled { background: rgba(251,245,230,.18); color: rgba(251,245,230,.8); box-shadow: none; }
.sf-row s { font-size: 12px; color: rgba(251,245,230,.7); }
.sf-art { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) rotate(6deg); width: 96px; height: 96px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.sf-art .pv-fb, .sf-art .pv-cos { width: 100%; height: 100%; }
.sh-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-padding: 0 16px; }
.sh-chips::-webkit-scrollbar { display: none; }
.sh-chips button { flex: none; min-height: 36px; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(233,196,106,.3); background: transparent; color: var(--paper); font: inherit; font-size: 13px; white-space: nowrap; }
.sh-chips button.on { background: #e9c46a; border-color: #e9c46a; color: #3b2410; font-weight: 700; }
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sh-item { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; background: rgba(10,22,15,.35); border: 1px solid rgba(233,196,106,.22); min-width: 0; }
.sh-top { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; color: var(--paper); text-align: left; font: inherit; min-width: 0; }
.sh-pv { position: relative; display: block; height: 96px; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.2); }
.sh-pv > .pv-fb, .sh-pv > .pv-cos { width: 100%; height: 100%; }
.sh-have { position: absolute; right: 6px; top: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(10,22,15,.7); color: #f6d57d; font-size: 11px; font-style: normal; }
.sh-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sh-name b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rar { flex: none; font-style: normal; font-size: 10px; line-height: 1.5; padding: 0 6px; border-radius: 5px; color: var(--rc); border: 1px solid color-mix(in srgb, var(--rc) 60%, transparent); background: color-mix(in srgb, var(--rc) 12%, transparent); }
.sh-desc { font-size: 11px; line-height: 1.45; color: rgba(251,245,230,.72); min-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-price { margin-top: auto; min-height: 40px; padding: 8px 6px; border-radius: 10px; border: 0; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-price.k-coin { background: #e9c46a; color: #3b2410; }
.sh-price.k-gem { background: linear-gradient(180deg, #f6d57d, #d9a441); color: #3b2410; box-shadow: inset 0 -2px 0 rgba(122,84,24,.35); }
.sh-price.k-use { background: transparent; border: 1px solid #e9c46a; color: #e9c46a; }
.sh-price.k-owned { background: rgba(251,245,230,.1); color: rgba(251,245,230,.75); }
.sh-price.k-locked { background: transparent; border: 1px dashed rgba(251,245,230,.35); color: rgba(251,245,230,.75); }
.sh-price:disabled { cursor: default; }

/* 预览的色块（cosmetics.js 没到时用） */
.pv-fb { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--a) 85%, #fff), var(--a) 45%, var(--b)); color: #fbf5e6; font-family: var(--serif); font-weight: 900; }
.pv-fb i { font-style: normal; font-size: 30px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.pv-fb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--r, transparent) 55%, transparent); pointer-events: none; }
.pv-fb.pv-ring { background: radial-gradient(circle, #231a14 0 34%, var(--a) 35% 46%, var(--b) 47%); }
.pv-cos { display: block; width: 100%; height: 100%; overflow: hidden; }

/* 东西详情（白纸弹层） */
.it-sheet .it-pv { position: relative; height: 170px; border-radius: 16px; overflow: hidden; background: #1f4a35; margin-bottom: 12px; }
.it-pv > .pv-fb, .it-pv > .pv-cos { width: 100%; height: 100%; }
.it-pv > .pv-fb i { font-size: 54px; }
.it-pv.wiggle { animation: wig .5s; }
@keyframes wig { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.it-target, .it-from { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 2px #e9c46a, 0 4px 10px rgba(0,0,0,.35); }
.it-target { right: 18px; } .it-from { left: 18px; }
.it-target svg, .it-from svg { width: 100%; height: 100%; }
.it-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet .it-head h2 { margin: 0; padding: 0; }
.sheet .it-head h2::after { display: none; }
.it-head .rar { font-size: 11px; }
.it-head small { margin-left: auto; font-size: 12px; color: #8a6a3a; }
.sheet .it-sheet p { margin: 8px 0; }
.sheet .it-meta { font-size: 12px; color: #8a6a3a; }
.it-list { margin: 4px 0 8px; padding-left: 18px; font-size: 14px; line-height: 1.8; color: #4a3d32; }
.it-list small { color: #8a6a3a; }
.sheet .it-lack { text-align: center; font-size: 12px; color: #b8432f; margin: 8px 0 0; }
.sheet .btn:disabled { opacity: .55; }

/* 背包页 */
.bg-chests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bg-chest { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: rgba(10,22,15,.35); border: 1px solid rgba(233,196,106,.3); text-align: center; min-height: 124px; }
.bg-chest svg { width: 44px; height: 44px; }
.bg-chest b { font-size: 13px; font-weight: 600; }
.bg-chest.k-silver { border-color: rgba(143,198,234,.4); } .bg-chest.k-gold { border-color: rgba(246,213,125,.65); box-shadow: 0 0 16px rgba(246,213,125,.15); }
.bg-chest.ph { background: rgba(10,22,15,.18); border: 1px dashed rgba(251,245,230,.25); }
.bg-chest.ph b { color: rgba(251,245,230,.75); }
.bg-chest small { font-size: 11px; color: rgba(251,245,230,.72); line-height: 1.35; }
.bg-wait { font-variant-numeric: tabular-nums; }
.bg-open { position: relative; min-height: 32px; padding: 4px 16px; border-radius: 999px; border: 0; background: #e9c46a; color: #3b2410; font: inherit; font-weight: 700; font-size: 12px; }
.bg-open::after { content: ""; position: absolute; inset: -6px -4px; }
.bg-looks { display: flex; flex-direction: column; border-radius: 14px; background: rgba(10,22,15,.35); border: 1px solid rgba(233,196,106,.2); overflow: hidden; }
.bg-look { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px; border-bottom: 1px solid rgba(251,245,230,.07); }
.bg-look:last-child { border-bottom: 0; }
.bg-sw { flex: none; width: 38px; height: 38px; border-radius: 9px; overflow: hidden; }
.bg-sw .pv-fb i { font-size: 16px; }
.bg-kind { flex: none; width: 56px; font-size: 12px; color: rgba(251,245,230,.72); }
.bg-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-swap { flex: none; min-width: 52px; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(233,196,106,.5); background: transparent; color: #e9c46a; font: inherit; font-size: 13px; }
.bg-props { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bg-prop { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 8px; border-radius: 12px; border: 0; background: rgba(10,22,15,.35); color: var(--paper); font: inherit; min-width: 0; }
.bg-pv { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.bg-pv .pv-fb i { font-size: 17px; }
.bg-prop b { font-size: 12px; font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-prop small { font-size: 11px; color: rgba(251,245,230,.75); }

/* 换装扮的挑选弹层 */
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 4px; }
.pk-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 14px; border: 2px solid transparent; background: rgba(35,26,20,.05); color: var(--ink); font: inherit; min-width: 0; }
.pk-opt.on { border-color: #c9952e; background: rgba(233,181,74,.18); }
.pk-pv { width: 100%; height: 64px; border-radius: 10px; overflow: hidden; }
.pk-pv .pv-fb i { font-size: 22px; }
.pk-opt b { font-size: 13px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-opt small { font-size: 11px; color: #c8321e; }

/* 开宝箱 */
.chest-open { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.co-box svg { width: 92px; height: 92px; animation: chestPop .7s var(--ease-pop); filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
@keyframes chestPop { 0% { transform: scale(.4) rotate(-12deg); } 60% { transform: scale(1.12) rotate(4deg); } }
.sheet .chest-open h2 { margin: 0; }
.sheet .chest-open h2::after { left: 50%; margin-left: -22px; }
.cr-row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 320px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(35,26,20,.1); }
.cr-row svg { width: 28px; height: 28px; }
.cr-row b { font-size: 18px; font-weight: 900; }
.cr-row small { margin-left: auto; color: #6f5f50; font-size: 12px; }
.cr-pv { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex: none; }
.cr-pv .pv-fb i { font-size: 15px; }
.cr-row.item b { font-size: 15px; font-weight: 700; flex: 1; }
.chest-open .row { width: 100%; }

/* 「更多」弹层 */
.menu-list { display: flex; flex-direction: column; border-radius: 14px; background: #fff; border: 1px solid rgba(35,26,20,.1); overflow: hidden; margin-top: 6px; }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0; border-bottom: 1px solid rgba(35,26,20,.07); background: none; color: var(--ink); font: inherit; text-align: left; }
.menu-row:last-child { border-bottom: 0; color: #b8432f; }
.menu-row .ic-s { width: 22px; height: 22px; flex: none; color: #8a6a3a; display: grid; place-items: center; }
.menu-row .ic-s svg { width: 22px; height: 22px; }
.menu-row span { display: flex; flex-direction: column; }
.menu-row b { font-size: 15px; font-weight: 600; } .menu-row small { font-size: 12px; color: #8a6a3a; }

/* 房间页（原来的大厅网格） */
.rooms-sub { display: flex; flex-direction: column; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.rooms-sub > * { flex-shrink: 0; }
.rooms-sub.hidden { display: none; }
@media (min-width: 900px) { .rooms-sub { padding-left: 24px; padding-right: 24px; gap: 14px; } }

/* ===== 匹配中 / 匹配成功 ===== */
.mm-screen { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: center; background: radial-gradient(ellipse at 50% 38%, #3a2416 0%, #22150d 60%, #150d08 100%); color: var(--paper); overflow-y: auto; animation: fade .25s; }
.mm-screen.hidden { display: none; }
.mm-col { width: 100%; max-width: 440px; min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: max(44px, calc(env(safe-area-inset-top) + 28px)) 20px max(24px, env(safe-area-inset-bottom)); }
.mm-kick { font-size: 13px; letter-spacing: 6px; padding-left: 6px; color: rgba(251,245,230,.72); text-align: center; }
.mm-title { margin: 6px 0 0; font-family: var(--serif); font-weight: 900; font-size: 30px; color: #f6d57d; letter-spacing: 4px; padding-left: 4px; text-align: center; }
.mm-title.big { font-size: 34px; letter-spacing: 6px; }
.mm-ring { position: relative; width: min(240px, 64vw); aspect-ratio: 1; margin-top: clamp(18px, 5vh, 34px); display: grid; place-items: center; flex: none; }
.mm-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-arc { transform-origin: 120px 120px; animation: mmSpin 2.4s linear infinite; }
@keyframes mmSpin { to { transform: rotate(360deg); } }
.mm-time { display: flex; flex-direction: column; align-items: center; }
.mm-time b { font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 13vw, 52px); letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.mm-time small { font-size: 12px; color: rgba(251,245,230,.7); }
.mm-slots { display: flex; justify-content: center; gap: 10px; margin-top: clamp(20px, 5vh, 40px); width: 100%; }
.mm-slot { flex: 0 1 56px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mm-ava { width: 100%; max-width: 56px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--paper); box-shadow: 0 0 0 2px rgba(251,245,230,.6); }
.mm-ava svg { width: 100%; height: 100%; }
.mm-ava.q { background: none; box-shadow: none; border: 2px dashed rgba(251,245,230,.35); color: rgba(251,245,230,.5); font-size: 20px; animation: mmBreath 1.6s ease-in-out infinite; }
@keyframes mmBreath { 50% { border-color: rgba(233,196,106,.6); } }
.mm-slot.me .mm-ava { box-shadow: 0 0 0 2px #e9c46a; }
.mm-slot.pop .mm-ava { animation: mmPop .5s var(--ease-pop); }
@keyframes mmPop { from { transform: scale(.3); opacity: 0; } }
.mm-slot small { font-size: 11px; color: rgba(251,245,230,.6); white-space: nowrap; }
.mm-slot.on small { color: rgba(251,245,230,.8); } .mm-slot.me small { color: #e9c46a; }
.mm-gap { flex: 1 1 auto; min-height: 24px; }
.mm-tip { margin: 0 0 16px; font-size: 12px; color: rgba(251,245,230,.7); text-align: center; line-height: 1.6; }
.mm-cancel { width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid rgba(251,245,230,.3); background: rgba(251,245,230,.08); color: var(--paper); font: inherit; font-size: 16px; letter-spacing: 6px; }
.mm-head { text-align: center; }
.mm-head small { display: block; margin-top: 4px; font-size: 12px; color: rgba(251,245,230,.7); }
.mm-rows { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: clamp(14px, 3vh, 24px); }
.mm-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(251,245,230,.06); border: 1px solid rgba(251,245,230,.12); animation: rise .45s var(--ease-out) both; animation-delay: var(--d); }
.mm-row.me { background: rgba(233,196,106,.14); border-color: rgba(233,196,106,.55); }
.mm-row .mm-ava { flex: none; width: 46px; height: 46px; box-shadow: 0 0 0 2px rgba(251,245,230,.5); }
.mm-row.me .mm-ava { box-shadow: 0 0 0 2px #e9c46a; }
.mm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mm-who b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-who small { font-size: 11px; color: rgba(251,245,230,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-rank { flex: none; font-family: var(--serif); font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 8px; color: #f1d0a8; border: 1px solid rgba(241,208,168,.4); white-space: nowrap; }
.mm-rank.hi { color: #f6d57d; border-color: rgba(246,213,125,.6); }
.mm-ok { flex: none; width: 22px; height: 22px; }
.mm-go { margin: 0; font-size: 14px; color: rgba(251,245,230,.85); }
.mm-go b { font-family: var(--serif); font-size: 18px; color: #f6d57d; }
@media (max-height: 700px) { .mm-row { padding: 7px 10px; } .mm-row .mm-ava { width: 40px; height: 40px; } .mm-rows { gap: 7px; } }

/* ===== 匹配局结算单 ===== */
.sheet[data-kind="reward"] { overflow: visible; padding-top: 34px; background: var(--paper); }
.sheet[data-kind="reward"]::before { display: none; }
.rw { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rw-stamp { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); padding: 6px 22px; border-radius: 999px; background: linear-gradient(180deg, #e8dcc0, #c9b58a); color: #3b2410; font-family: var(--serif); font-weight: 900; font-size: 18px; letter-spacing: 6px; text-indent: 6px; box-shadow: 0 4px 0 #8a7650; white-space: nowrap; animation: stampIn .5s var(--ease-pop) both .1s; }
.rw-stamp.gold { background: linear-gradient(180deg, #f6d57d, #d9a441); box-shadow: 0 4px 0 #a8792a; }
.rw-stamp.red { background: linear-gradient(180deg, #e8735e, #b8321e); color: #fff; box-shadow: 0 4px 0 #7a1a0e; }
@keyframes stampIn { from { transform: translateX(-50%) scale(2.2) rotate(-10deg); opacity: 0; } }
.sheet .rw-title { margin: 0; padding: 0; font-family: var(--serif); font-weight: 900; font-size: 28px; text-align: center; }
.sheet .rw-title::after { display: none; }
.rw.win .rw-title { color: #8f1f16; }
.rw-sub { margin-top: -8px; font-size: 12px; color: #6f5f50; }
.rw-stars { display: flex; align-items: center; gap: 10px; }
.rw-stars small { display: block; font-size: 12px; color: #6f5f50; }
.rw-st { font-size: 22px; letter-spacing: 2px; line-height: 1.2; }
.rw-st .st-on { color: #d9a441; } .rw-st .st-off { color: rgba(35,26,20,.18); }
.rw-st em { font-style: normal; font-size: 18px; margin-left: 4px; color: #8a7650; }
.rw-st em.up { color: #c9952e; } .rw-st em.down { color: #b8432f; }
.rw-tiles { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rw-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px; border-radius: 14px; background: #fff; border: 1px solid rgba(35,26,20,.1); min-width: 0; }
.rw-tile svg { width: 32px; height: 32px; }
.rw-tile b { font-weight: 900; font-size: 18px; }
.rw-tile small { font-size: 11px; color: #6f5f50; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rw-tile.dim b, .rw-tile.dim small { color: #a89a88; }
.rw-notes { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(35,26,20,.05); font-size: 13px; }
.rw-notes div { display: flex; justify-content: space-between; gap: 10px; }
.rw-notes b { color: #8a5a12; font-weight: 700; white-space: nowrap; }
.rw-btns { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.rw-home, .rw-again { min-height: 50px; border-radius: 14px; font: inherit; font-size: 15px; }
.rw-home { border: 1px solid rgba(35,26,20,.2); background: #fff; color: var(--ink); }
.rw-again { border: 0; background: linear-gradient(180deg, #f6d57d, #d9a441); color: #3b2410; font-weight: 900; box-shadow: 0 3px 0 #a8792a; }
.rw-again:active { transform: translateY(2px); box-shadow: 0 1px 0 #a8792a; }
.rw-links { display: flex; gap: 22px; margin-top: -4px; }
.sheet .rw-links .link { color: #8a6a3a; font-size: 13px; min-height: 36px; }
@media (min-width: 700px) and (min-height: 700px) { .sheet[data-kind="reward"] { padding-top: 38px; } }

/* ===== 牌桌上点别人头像：道具一行 ===== */
.seat-menu .sm-props { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; padding-top: 6px; margin-top: 2px; border-top: 1px dashed rgba(35,26,20,.18); }
.sm-lbl { flex: none; font-size: 12px; font-weight: 700; color: #8a6a3a; }
.sm-plist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.sm-plist::-webkit-scrollbar { display: none; }
.seat-menu .sm-prop { position: relative; flex: none; width: 44px; height: 44px; padding: 0 !important; border-radius: 10px; overflow: visible; display: grid; place-items: center; }
.sm-pv { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: block; }
.sm-pv .pv-fb i { font-size: 15px; }
.sm-prop em { position: absolute; right: -3px; bottom: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #c8321e; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.seat-menu .sm-none { flex: 1; min-height: 36px; font-size: 12px !important; color: #8a6a3a; }
.seat:has(.seat-menu) { z-index: 25; }
.sm-plist { padding: 2px 6px 5px 0; }
/* cosmetics.js 的预览图：铺满各自的格子 */
.pv-cos > .cos-pv { width: 100%; height: 100%; aspect-ratio: auto; border-radius: inherit; }
/* 手机上右上角那个座位的「我买3 / 卖3」牌子挪到头像左边，别伸出屏幕 */
@media (max-width: 480px) {
  .seat[data-rel="2"] .sign { left: auto; right: 100%; margin: 0 2px 0 0; transform: rotate(-6deg); transform-origin: bottom right; }
  .seat[data-rel="2"] .sign.sell { transform: rotate(6deg); }
  .seat[data-rel="2"] .sign::before { left: auto; right: 6px; }
}

/* ---------- 充值 ---------- */
.sh-pay { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 10px 0 2px; padding: 8px 14px; border-radius: 14px; border: 1px solid rgba(246,213,125,.45); background: linear-gradient(100deg, rgba(233,196,106,.22), rgba(233,196,106,.06)); color: #fbf5e6; text-align: left; }
.sh-pay svg { width: 24px; height: 24px; flex: none; }
.sh-pay b { font-family: var(--serif); font-weight: 900; font-size: 15px; white-space: nowrap; }
.sh-pay small { flex: 1; min-width: 0; font-size: 12px; color: #f6d57d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-pay i { font-style: normal; font-size: 20px; color: #f6d57d; }
.pay-sheet h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 900; }
.pay-sheet h3 { margin: 14px 0 8px; font-size: 14px; color: #6a5a48; }
.pay-test { margin: 0 0 10px; padding: 6px 10px; border-radius: 8px; background: #fbe7c4; color: #8a5a1a; font-size: 12px; }
.pay-note { margin: 12px 0 0; font-size: 12px; color: #8a7a66; line-height: 1.6; }
.pay-note a { color: #b8382a; }
.pay-packs { display: grid; gap: 8px; }
.pay-pack { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 14px; border: 1px solid #e3d6bc; background: #fffaf0; color: #3b2a1c; text-align: left; }
.pay-pack.pk-first { border-color: #e2a24a; background: linear-gradient(100deg, #fff1d6, #fffaf0); }
.pay-pack.pk-royal { border-color: #c9a24a; background: linear-gradient(100deg, #fbe6b6, #fffaf0 70%); }
.pay-pack:disabled { opacity: .55; }
.pp-art { display: block; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #1f4a35; }
.pp-art .pv-fb, .pp-art .pv-cos { width: 100%; height: 100%; }
.pp-art .pv-fb i { font-size: 22px; }
.pp-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-txt b { font-family: var(--serif); font-weight: 900; font-size: 15px; }
.pp-txt small { font-size: 12px; color: #6a5a48; line-height: 1.45; }
.pp-txt em { font-style: normal; font-size: 11px; color: #2f7a55; }
.pp-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.pp-price b { padding: 6px 10px; border-radius: 999px; background: #a8321e; color: #fbf5e6; font-size: 14px; }
.pp-price s { font-size: 11px; color: #9a8a76; }
.pay-gems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pay-gem { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 108px; padding: 10px 6px; border-radius: 14px; border: 1px solid #e3d6bc; background: #fffaf0; color: #3b2a1c; }
.pg-ico svg { width: 30px; height: 30px; }
.pay-gem b { font-size: 15px; }
.pay-gem small { font-size: 11px; color: #a8321e; min-height: 14px; }
.pg-price { margin-top: 2px; padding: 4px 12px; border-radius: 999px; background: #2f7a55; color: #fbf5e6; font-weight: 800; font-size: 13px; }
.pay-confirm { text-align: center; }
.pay-big { font-size: 34px; font-weight: 900; margin: 4px 0 10px; color: #a8321e; }
.pay-ok { text-align: center; }
.pay-ok .it-list { display: inline-block; text-align: left; }
.sheet .it-lack .lk { border: 0; background: none; padding: 0 2px; color: #a8321e; font: inherit; font-weight: 800; text-decoration: underline; min-height: 0; }
@media (min-width: 520px) { .pay-gems { grid-template-columns: repeat(4, 1fr); } }

/* 取经季：大厅里的通关印进度、商店里的「取经季」小标 */
.lb-xy { width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; margin-top: 8px; padding: 8px 14px; border-radius: 14px; border: 1px solid rgba(233,196,106,.5); background: linear-gradient(90deg, rgba(168,50,30,.35), rgba(122,74,28,.3)); color: var(--paper); text-align: left; }
.lb-xy b { grid-row: 1 / 3; font-family: var(--serif); font-size: 15px; color: #f6d57d; }
.lb-xy span { font-size: 13px; font-weight: 700; } .lb-xy small { font-size: 11px; opacity: .7; }
.rar.xy { --rc: #f2a65a; margin-left: 4px; }
