/* ─────────────────────────────────────────────────────────────
   设计规范 v2（与 iOS 同一套）：最后加载，覆盖前面各层
   · 黑底 #0B0D11、卡片 #15181E、控件 #1D2129
   · 金 = 主操作 / 金额；绿 = 赢 / 在线；红 = 输 / 警示
   · 间距 4 / 8 / 12 / 16 / 24 / 32；卡片圆角 16、控件圆角 12；一屏只有一个金色主按钮
   · 每个标签页：左对齐大标题 + 最多 2 个右侧图标
   ───────────────────────────────────────────────────────────── */
:root { --raised: #2a2f39; --r-card: 16px; --r-ctl: 12px; --pad: 16px; }
body, .device, #screen, #screen.tg-lobby { background: var(--night); }
h1, h2, h3, .head h1 { letter-spacing: 0; }

/* 按钮：扁平，12 圆角，没有渐变和光晕 */
button, .btn { border-radius: var(--r-ctl); letter-spacing: 0; }
button.primary, .btn.primary, button.primary.quickstart, .room-actions button.primary { background: var(--gold); border-color: var(--gold); color: var(--tg-on); box-shadow: none; text-shadow: none; }
button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
button.primary:disabled { background: var(--deck-2); border-color: var(--deck-2); color: var(--dim); }
button.on, button[aria-pressed=true] { background: rgba(212,178,106,.12); border-color: transparent; color: var(--gold); }

/* ───────── 页面大标题 ───────── */
.lg-head { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: var(--sat, 0px) var(--pad) 0; box-sizing: content-box; background: var(--night); }
.lg-head h1 { margin: 0; font: 600 28px/1 var(--ui); color: var(--ivory); }
.lg-acts { display: flex; align-items: center; gap: 8px; }
.lg-ic { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--deck); color: var(--ivory); display: grid; place-items: center; }
.lg-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg-ic i { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--seal-hi); box-shadow: 0 0 0 2px var(--deck); }
.bal-pill { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--deck); color: var(--ivory); text-decoration: none; }
.bal-pill b { font: 600 15px var(--num); font-variant-numeric: tabular-nums; }
.bal-pill .tg-coin { width: 20px; height: 20px; }
.tg-title { justify-content: flex-start; height: 56px; padding: 0 var(--pad); font: 600 28px var(--ui); letter-spacing: 0; box-shadow: none; }

/* 筹码图标：金色硬币 */
.chip::before, .tg-coin { background: radial-gradient(circle, #3a2c10 0 30%, transparent 31%), radial-gradient(circle, var(--gold) 0 46%, #8a6d34 47% 56%, var(--gold) 57%); }

/* ───────── 分段控件（所有分类切换） ───────── */
.seg, .tg-tabs, .tg-dtabs, .tg-seg { display: flex; gap: 0; height: 36px; padding: 3px; box-sizing: border-box; border-radius: var(--r-ctl); background: var(--deck); box-shadow: none; overflow: visible; }
.tg-tabs { position: sticky; top: calc(56px + var(--sat, 0px)); z-index: 5; margin: 4px var(--pad) 12px; }
.seg button, .tg-tabs button, .tg-dtabs button, .tg-seg button { flex: 1 1 0; min-width: 0; height: 100%; padding: 0 6px; border: 0; border-radius: 9px; background: none; box-shadow: none;
  color: var(--mute); font: 500 14px var(--ui); white-space: nowrap; }
.seg button[aria-selected=true], .tg-tabs button[aria-selected=true], .tg-dtabs button[aria-selected=true], .tg-seg button[aria-selected=true] { background: var(--raised); color: var(--ivory); font-weight: 600; box-shadow: none; }
.seg { margin: 0; }
.seg.mini { height: 30px; width: auto; }
.seg.mini button { flex: none; padding: 0 12px; font-size: 13px; }
.tg-tabs .tg-sort { flex: none; width: 36px; background: none; position: static; }

/* 筛选小胶囊 */
.lg-filters { position: sticky; top: calc(56px + var(--sat, 0px)); z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 4px var(--pad) 12px; background: var(--night); }
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chips-row[hidden] { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--deck); color: var(--mute); font-size: 13px; }
.fchip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fchip[aria-pressed=true] { background: rgba(212,178,106,.14); color: var(--gold); font-weight: 600; }
.tg-level { margin: -4px var(--pad) 8px; }

/* ───────── 大厅 ───────── */
.tg-lobby #notices:empty { display: none; }
.tg-lobby #notices { padding: 0; }
.tg-lobby #notices > * { margin-left: var(--pad); margin-right: var(--pad); }
.tg-lobby #notices > .tg-promos { margin: 0 var(--pad) 12px; }
.tg-promos { margin: 0 var(--pad) 12px; border-radius: var(--r-card); }
.tg-promo, .tg-promo.z { border: 0; border-radius: var(--r-card); background: var(--deck); box-shadow: none; color: var(--ivory); min-height: 76px; }
.tg-promo b { color: var(--ivory); letter-spacing: 0; font-size: 15px; }
.tg-promo small { color: var(--mute); }
.tg-promo em { background: var(--deck-2); color: var(--ivory); border-radius: 10px; padding: 6px 12px; }
.tg-lobby .duty { padding: 0 var(--pad) 12px; }
.duty .dz { background: var(--deck); box-shadow: none; border-radius: var(--r-card); }
.duty .dz img, .duty .dz .avatar-c { box-shadow: 0 0 0 2px var(--deck), 0 0 0 3.5px var(--gold); }

/* 牌桌列表：一张卡片里的行，细分隔线 */
.tg-list, .tg-list.grouped { margin: 0 var(--pad); padding: 0; gap: 0; border-radius: var(--r-card); background: var(--deck); overflow: hidden; }
.tg-list:has(> .empty) { background: none; }
.tg-list + .quickstart { margin-top: 0; }
.tg-lobby .tg-list { margin-bottom: 84px; }
.tg-row, .tg-row.prem { gap: 12px; padding: 14px; border-radius: 0; background: none; box-shadow: none; }
.tg-row + .tg-row { box-shadow: inset 0 1px 0 var(--hair); }
.tg-row:active { transform: none; background: var(--deck-2); }
.tg-row.prem .tg-tn::before { content: "增值"; margin-right: 6px; padding: 1px 6px; border-radius: 999px; font: 600 10px var(--ui); color: var(--gold); background: rgba(212,178,106,.14); vertical-align: 2px; }
.tg-row .tg-tag.prem { display: none; }
.tg-row .tg-tn { font-size: 16px; font-weight: 600; color: var(--ivory); }
.tg-row .tg-bl { font-size: 13px; color: var(--mute); font-weight: 500; }
.tg-row .tg-tags { gap: 8px; }
.tg-tag.on { color: var(--jade); }
.tg-tag.live { color: var(--seal-hi); }
.tg-tag.prem { color: var(--gold); }
.tg-row .tg-buy { border-left: 0; padding-left: 0; min-width: 0; }
.tg-row .tg-buy b { font-size: 17px; color: var(--gold); font-variant-numeric: tabular-nums; }
.tg-row .tg-buy b .tg-coin { display: none; }
.tg-bl .here { color: #05210f; background: var(--jade); }
.tg-ring { width: 44px; height: 44px; }
.tg-ring .bg { stroke: var(--deck-2); }
.tg-ring circle { stroke-width: 3.5; }
.tg-ring b { font-size: 13px; }
.quickstart, .lobby-on .quickstart { position: sticky; bottom: 12px; width: calc(100% - 32px); margin: 0 16px 12px; height: 50px; padding: 0; border-radius: var(--r-ctl); font-size: 16px; letter-spacing: 0; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.tg-lobby .quickstart { margin-top: -72px; }

/* ───────── 页面内容列 ───────── */
.section.v2-col { display: flex; flex-direction: column; gap: 16px; padding: 4px var(--pad) 32px; }
.section.v2-col > .section-title { margin: 8px 0 -6px; }
.section-title { font: 600 13px var(--ui); color: var(--dim); letter-spacing: 0; }
.list-group { border-radius: var(--r-card); background: var(--deck); box-shadow: none; }
.list-item { min-height: 52px; font-size: 15px; }
.hint { color: var(--dim); }

/* ───────── 我的 ───────── */
.v2-col .tg-prof { display: flex; align-items: center; gap: 14px; padding: 0; margin: 0; background: none; }
.v2-col .tg-prof .avatar-edit { width: 56px; height: 56px; flex: none; }
.v2-col .tg-prof .avatar-c { width: 56px; height: 56px; font-size: 22px; }
.v2-col .tg-pn { display: flex; align-items: center; gap: 8px; }
.v2-col .tg-pn b { font-size: 20px; font-weight: 600; }
.v2-col .tg-pid, .v2-col .tg-pid button { font-size: 13px; color: var(--mute); }
.v2-vip { height: 20px; padding: 0 8px; border-radius: 999px; background: rgba(212,178,106,.12); color: var(--gold); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
.v2-col .tg-prof .tg-link { width: 32px; height: 32px; padding: 0; background: none; border: 0; display: grid; place-items: center; }
i.chev { flex: none; width: 7px; height: 7px; border-right: 2px solid #4a505b; border-top: 2px solid #4a505b; transform: rotate(45deg); margin-right: 4px; }

.v2-wallet { border-radius: var(--r-card); background: var(--deck); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.v2-wtop { display: flex; align-items: flex-end; justify-content: space-between; }
.v2-wtop > div { display: flex; flex-direction: column; gap: 4px; }
.v2-wtop small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.v2-wtop b { font: 600 30px var(--num); font-variant-numeric: tabular-nums; color: var(--ivory); }
.v2-wtop .frozen { font-size: 12px; color: var(--mute); }
.v2-eye { width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--dim); display: grid; place-items: center; }
.v2-eye svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v2-more { font-size: 14px; color: var(--mute); text-decoration: none; }
.v2-wbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v2-wbtns .btn { height: 46px; display: grid; place-items: center; border-radius: var(--r-ctl); font-size: 16px; font-weight: 600; text-decoration: none; border: 0; }
.v2-wbtns .btn:not(.primary) { background: var(--deck-2); color: var(--ivory); font-weight: 500; }

.v2-stats { border-radius: var(--r-card); background: var(--deck); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.v2-sh { display: flex; align-items: center; justify-content: space-between; }
.v2-sh > span { font: 600 13px var(--ui); color: var(--dim); }
.v2-stats .tg-data { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; background: none; box-shadow: none; }
.v2-stats .tg-data > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; background: none; box-shadow: none; }
.v2-stats .tg-data b { font-size: 17px; font-weight: 600; color: var(--ivory); font-variant-numeric: tabular-nums; }
.v2-stats .tg-data b.up { color: var(--jade); } .v2-stats .tg-data b.down { color: var(--seal-hi); }
.v2-stats .tg-data span { font-size: 12px; color: var(--mute); }
.v2-stats .tg-donut { background: none; width: auto; height: auto; }
.v2-stats .tg-donut::before, .v2-stats .tg-donut::after { display: none; }

.mgroup { border-radius: var(--r-card); background: var(--deck); display: flex; flex-direction: column; overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border: 0; border-radius: 0; background: none; color: var(--ivory); text-decoration: none; font-size: 15px; text-align: left; width: 100%; }
.mrow { position: relative; }
.mrow + .mrow::before { content: ""; position: absolute; left: 46px; right: 0; top: 0; height: 1px; background: var(--hair); }
.mrow:active { background: var(--deck-2); }
.mrow > svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--mute); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mrow .val { font-size: 13px; color: var(--mute); }
.mrow .val.warn { color: var(--seal-hi); } .mrow .val.ok { color: var(--jade); } .mrow .val.wait { color: var(--gold); }
.v2-badge { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--seal-hi); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.v2-logout { justify-content: center; height: 52px; color: var(--seal-hi); background: none; border: 0; }

/* ───────── 活动 ───────── */
.v2-col .vip-card { margin: 0; border-radius: var(--r-card); background: linear-gradient(135deg, #1e1b14 0%, var(--deck) 70%); box-shadow: inset 0 0 0 1px rgba(212,178,106,.18); }
.v2-col .vip-card .vip-badge { color: var(--tg-on); }
.vip-bar { height: 6px; border-radius: 999px; background: #262a33; }
.vip-bar i { background: var(--gold); border-radius: 999px; box-shadow: none; }
.ck-grid { gap: 6px; }
.ck { border-radius: var(--r-ctl); background: var(--deck); box-shadow: none; }
.ck.done { background: var(--deck); box-shadow: none; }
.ck.done b { color: var(--jade); }
.ck.today { background: rgba(212,178,106,.12); box-shadow: inset 0 0 0 1px var(--gold); }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.ev-card { position: relative; height: 104px; padding: 14px; border: 0; border-radius: var(--r-card); background: var(--deck); box-shadow: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; color: var(--ivory); }
.ev-card::before, .ev-card::after { display: none; }
.ev-card > svg { width: 32px; height: 32px; padding: 7px; box-sizing: border-box; border-radius: 10px; background: var(--deck-2); fill: none; stroke: var(--gold); stroke-width: 1.7; }
.ev-card b { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ivory); margin-top: auto; }
.ev-card small { font-size: 12px; color: var(--mute); }
.ev-card .ev-dot { position: absolute; top: 12px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--seal-hi); }

/* ───────── 比赛 ───────── */
.alt { padding: 0 var(--pad) 32px; }
.tcard, .lobby-on .tcard, .tcard.prem, .lobby-on .tcard.prem { margin: 0 0 12px; border-radius: var(--r-card); background: var(--deck); box-shadow: none; }
.tc-type { color: var(--mute); box-shadow: none; background: var(--deck-2); border-radius: 6px; }
.tc-buy { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--hair-2); font-weight: 500; }

/* ───────── 底部标签栏 ───────── */
.tabbar { background: #0f1116; box-shadow: 0 -1px 0 var(--hair); }
.tabbar a { color: var(--dim); font-size: 10px; letter-spacing: 0; }
.tabbar a.on { color: var(--gold); font-weight: 600; }

/* ───────── 二级页顶栏、弹层 ───────── */
.head { background: var(--night); box-shadow: none; }
.head h1 { font-size: 17px; font-weight: 600; }
.sheet { background: var(--deck); border-radius: 20px 20px 0 0; }
.sheet .grab { background: rgba(255,255,255,.18); }
.sheet .field input, .sheet input:not([type=checkbox]):not([type=range]), .sheet select, .sheet textarea { background: var(--deck-2); border-color: transparent; border-radius: var(--r-ctl); }
.sheet .list-group { background: var(--deck-2); box-shadow: none; }
.field input, input:not([type=checkbox]):not([type=range]):not([type=radio]), select, textarea { border-radius: var(--r-ctl); }
.v2-stats .tg-data > div, .v2-stats .tg-data > div.tg-donut { grid-column: auto; grid-row: auto; width: auto; height: auto; flex-direction: column; align-items: flex-start; justify-content: flex-start; border-radius: 0; }
.v2-stats .tg-data > div.tg-donut b { position: static; font-size: 17px; }
.mrow .grow { flex: 1; min-width: 0; }
.v2-col .tg-pid button, .v2-col .tg-pid .link-in { color: var(--mute); }
.tc-buy small { display: inline; color: var(--mute); font-size: inherit; }
.tc-go { background: var(--jade); color: #05210f; }
.balance-card, .lobby-on .balance-card { background: var(--deck); box-shadow: none; border-radius: var(--r-card); }
.balance-card::before, .balance-card::after { display: none; }
.balance-card .amt { color: var(--ivory); text-shadow: none; }

/* ─────────────────────────────────────────────────────────────
   App 风格（v3）：悬浮底栏 + 中间金色快速开始；标签页首页没有大标题，顶部玩家栏 / 牌室背景
   ───────────────────────────────────────────────────────────── */
.screen { position: relative; }
.tabbar { position: absolute; z-index: 30; left: 12px; right: 12px; bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom)) + 8px); height: 62px; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-radius: 22px;
  background: rgba(21,24,30,.9); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 32px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06); }
.tabbar[hidden] { display: none; }
.tabbar a { padding: 0; height: 100%; justify-content: center; gap: 3px; font-size: 10px; }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a.on svg { fill: var(--gold); stroke: var(--gold); }
.tabbar a .dot { top: 9px; left: calc(50% + 7px); box-shadow: 0 0 0 2px #15181e; }
.tb-quick { justify-self: center; width: 60px; height: 60px; margin-top: -30px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 32%, #e6c887, #b8964f); box-shadow: 0 0 0 5px var(--night), 0 10px 24px rgba(212,178,106,.35); cursor: pointer; }
.tb-quick svg { width: 28px; height: 28px; fill: var(--tg-on); }
.tb-quick:active { transform: scale(.94); }
body.tb-on .screen { padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom)) + 92px); }
body.tb-on .device::after { content: ""; position: absolute; z-index: 25; left: 0; right: 0; bottom: 0; height: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom)) + 96px); pointer-events: none;
  background: linear-gradient(180deg, rgba(11,13,17,0), rgba(11,13,17,.92) 55%); }
.nowbar { position: absolute; z-index: 31; left: 12px; right: 12px; margin: 0; bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom)) + 8px); border-radius: 999px;
  background: rgba(21,24,30,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(212,178,106,.3), 0 8px 24px rgba(0,0,0,.5); }
body.tb-on .nowbar { bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom)) + 80px); }
body.tb-on.seated .screen { padding-bottom: calc(var(--safe-area-inset-bottom, env(safe-area-inset-bottom)) + 150px); }

/* 页面背景：牌室图淡出，或者一层金色光 */
.app-page { background: var(--night); }
.pg-bg { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 400px; pointer-events: none; }
.pg-bg.lobby { background: linear-gradient(180deg, rgba(11,13,17,.25) 0%, rgba(11,13,17,.7) 55%, var(--night) 100%), url(img/lobby.webp) center 30% / cover no-repeat; opacity: .95; }
.pg-bg.glow { height: 320px; background: radial-gradient(120% 90% at 85% 0%, rgba(212,178,106,.18), rgba(11,13,17,0) 60%); }
.app-page > :not(.pg-bg) { position: relative; z-index: 1; }
.app-head { display: flex; align-items: center; gap: 8px; height: 52px; padding: calc(var(--sat, 0px) + 6px) 16px 0; }
.app-head h1 { flex: 1; margin: 0; font: 700 22px var(--ui); color: var(--ivory); }
.app-page .tg-tabs { position: static; background: var(--deck); }
.rp-pill { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(240,100,90,.16); color: var(--seal-hi); font-size: 13px; font-weight: 600; text-decoration: none; }
.rp-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* 顶部玩家栏 */
.pbar { display: flex; align-items: center; gap: 10px; height: 44px; padding: calc(var(--sat, 0px) + 10px) 16px 6px; }
.pb-av { flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px var(--gold); display: grid; place-items: center; overflow: hidden; }
.pb-av .avatar-c { width: 40px; height: 40px; font-size: 16px; }
.pb-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-id b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-id small { font-size: 11px; font-weight: 600; color: var(--gold); }
.pb-bal { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 4px 0 6px; border-radius: 999px; background: rgba(11,13,17,.7); box-shadow: inset 0 0 0 1px rgba(212,178,106,.35); color: var(--ivory); text-decoration: none; }
.pb-bal .tg-coin { width: 20px; height: 20px; }
.pb-bal b { font: 600 15px var(--num); }
.pb-bal i { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--tg-on); display: grid; place-items: center; font: 800 17px/1 var(--ui); font-style: normal; }
.pb-ic { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(11,13,17,.65); color: var(--ivory); display: grid; place-items: center; }
.pb-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pb-ic i { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--seal-hi); }
.app-page #notices > * { margin: 0 16px 12px; }
.app-page .ann { background: rgba(11,13,17,.7); box-shadow: inset 0 0 0 1px rgba(212,178,106,.25); border-radius: 999px; }

/* 主视觉卡 */
#hero { padding: 6px 16px 0; }
.heros { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.heros::-webkit-scrollbar { display: none; }
.heros .hero { flex: 0 0 calc(100% - 28px); scroll-snap-align: center; }
.heros .hero:only-child { flex-basis: 100%; }
.hero { position: relative; display: block; height: 208px; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ivory);
  background: url(img/standby.webp) center 40% / cover no-repeat, #111; box-shadow: inset 0 0 0 1px rgba(212,178,106,.22), 0 18px 40px rgba(0,0,0,.5); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(5,6,9,.92) 100%); }
.hero .hb { position: absolute; z-index: 1; left: 14px; top: 14px; height: 24px; padding: 0 10px; border-radius: 999px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: var(--gold); color: var(--tg-on); }
.hero .hb.live { background: var(--seal-hi); color: #fff; }
.hero .hb i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: breathe 1.6s ease-in-out infinite; }
.hero .hc { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: flex-end; gap: 12px; }
.hero .hc .grow { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hero small { font-size: 12px; font-weight: 600; color: var(--gold); }
.hero b { font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .hc span { font-size: 13px; color: rgba(242,239,232,.75); }
.hero em { flex: none; font-style: normal; height: 40px; padding: 0 20px; border-radius: 12px; background: var(--gold); color: var(--tg-on); font-size: 15px; font-weight: 700; display: flex; align-items: center; }

/* 玩法入口 */
.gtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 16px 0; }
.gtile { position: relative; height: 96px; border-radius: 18px; overflow: hidden; padding: 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.gtile.gold { background: linear-gradient(135deg, #2a2316, var(--deck) 75%); } .gtile.gold em { color: rgba(212,178,106,.2); }
.gtile.blue { background: linear-gradient(135deg, #162236, var(--deck) 75%); } .gtile.blue em { color: rgba(120,170,255,.2); }
.gtile.red { background: linear-gradient(135deg, #2c1719, var(--deck) 75%); } .gtile.red em { color: rgba(240,100,90,.2); }
.gtile.green { background: linear-gradient(135deg, #12261c, var(--deck) 75%); } .gtile.green em { color: rgba(61,214,140,.18); }
.gtile b { position: relative; z-index: 1; font-size: 19px; font-weight: 700; }
.gtile small { position: relative; z-index: 1; font-size: 12px; color: rgba(242,239,232,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtile em { position: absolute; right: -6px; bottom: -26px; font: 800 96px/1 Georgia, 'Times New Roman', serif; font-style: normal; }
.gt-on { position: relative; z-index: 1; margin-top: auto; display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--jade); font-variant-numeric: tabular-nums; }
.gt-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gt-on.off { color: var(--dim); }
.gtile:active, .otable:active, .hero:active { transform: scale(.98); }

/* 正在开局 */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 16px 10px; }
.sec-h b { font-size: 17px; font-weight: 700; }
.sec-h a { font-size: 13px; color: var(--mute); text-decoration: none; }
.otables { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 8px; }
.otables::-webkit-scrollbar { display: none; }
.otable { flex: none; width: 150px; border-radius: 16px; background: var(--deck); overflow: hidden; text-decoration: none; color: var(--ivory); display: flex; flex-direction: column; }
.ot-img { position: relative; height: 72px; background: url(img/table-std.webp) center / 82% auto no-repeat, #0e1016; }
.ot-img.vip { background-image: url(img/table-vip.webp); }
.ot-img span { position: absolute; left: 8px; top: 8px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(0,0,0,.6); font-size: 11px; font-weight: 600; display: flex; align-items: center; color: var(--mute); }
.ot-img span.on { color: var(--jade); }
.ot-img i { position: absolute; right: 8px; top: 8px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--seal-hi); color: #fff; font: 600 10px/18px var(--ui); font-style: normal; }
.otable b { padding: 10px 12px 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otable small { padding: 3px 12px 12px; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 我的 */
.me-top { display: flex; justify-content: flex-end; gap: 8px; padding: calc(var(--sat, 0px) + 10px) 16px 0; }
.app-page .v2-col .tg-prof .avatar-edit, .app-page .v2-col .tg-prof .avatar-c { width: 72px; height: 72px; font-size: 28px; }
.app-page .v2-col .tg-prof .avatar-edit { border-radius: 50%; box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--gold); }
.app-page .v2-col .tg-pn b { font-size: 22px; font-weight: 700; }
.app-page .v2-vip { background: linear-gradient(90deg, #9c7f43, var(--gold)); color: var(--tg-on); font-weight: 700; }
.app-page .v2-wallet { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, #3a2f18 0%, #1e1a12 45%, var(--deck) 100%);
  box-shadow: inset 0 0 0 1px rgba(212,178,106,.32), 0 16px 36px rgba(0,0,0,.45); }
.app-page .v2-wallet::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 18px solid rgba(212,178,106,.08); }
.app-page .v2-wbtns .btn:not(.primary) { background: rgba(255,255,255,.08); }
.qgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qgrid a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--ivory); text-decoration: none; }
.qgrid svg { width: 52px; height: 52px; padding: 14px; box-sizing: border-box; border-radius: 16px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qgrid .gold svg { stroke: #e6c887; background: rgba(212,178,106,.13); }
.qgrid .blue svg { stroke: #78aaff; background: rgba(120,170,255,.13); }
.qgrid .green svg { stroke: var(--jade); background: rgba(61,214,140,.13); }
.qgrid .red svg { stroke: #f0907a; background: rgba(240,100,90,.13); }
.qgrid .v2-badge { position: absolute; top: -6px; right: calc(50% - 34px); }

/* 活动：彩色活动格子 */
.ev-card.ev-hh { background: linear-gradient(160deg, #2a2316, var(--deck) 70%); }
.ev-card.ev-dice { background: linear-gradient(160deg, #162236, var(--deck) 70%); }
.ev-card.ev-lot { background: linear-gradient(160deg, #2c1719, var(--deck) 70%); }
.ev-card.ev-inv { background: linear-gradient(160deg, #12261c, var(--deck) 70%); }
