/* PartyAnimal · 黑金柠檬(dark-neon)
 * 设计稿和规范:design/dark-neon/(README.md 写了颜色、字号、组件、不能碰坏的东西)
 *
 * 这一层只放「设计语言」:变量 + 通用组件。页面各自的排版写在自己的地方。
 * 规矩:一屏最多一块黄。金色、花纹、渐变、发光一律不用。
 */
/* ---------- 把老样式表的调色盘换成这一套 ----------
 * style.css 本来就是深色底,只是偏金棕;这里把它的变量改成黑 + 柠檬黄,
 * 还没改写成新组件的页面也能跟着变过来,不会一半黑一半米白。
 */
:root {
  --ink: #0a0a0a;             /* 页面底 */
  --ink-2: #0f0f0f;
  --card: #151515;
  --card-2: #1c1c1c;
  --bubble: #1c1c1c;
  --line: #242424;
  --line-strong: #2e2e2e;
  --gold: #e5ff3d;            /* 老样式里的「金」= 现在的点缀黄 */
  --gold-deep: #c8e02c;
  --gold-soft: rgba(229, 255, 61, .12);
  --paper: #ffffff;           /* 正文字 */
  --mute: #8a8a8a;
  --red: #ff5a5a;
  --red-deep: #d94545;
  --win: #e5ff3d;             /* 赢用黄,不用绿 */
  --loss: #ffffff;            /* 输用白,不用红 */
  --brand: #e5ff3d;
  --heading: #ffffff;
  --metal: #e5ff3d;
  --shadow: none;
  --body: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --num: system-ui, -apple-system, "PingFang SC", sans-serif;
}
body { background: var(--bg, #0a0a0a); color: #fff; }
.page { background: transparent; }
html { background: var(--bg); }  /* regal.css 把它刷成米色,整页滚到底会露出来 */

:root {
  --bg: #0a0a0a;          /* 页面底,纯黑 */
  --surface: #151515;     /* 卡片 / 行 / 弹层,唯一的面层色 */
  --surface-2: #1c1c1c;   /* 面层上再叠一层时用 */
  --line: #242424;        /* 1px 细线 */
  --ink: #ffffff;
  --ink-2: #8a8a8a;       /* 说明、时间、单位 */
  --ink-3: #5c5c5c;       /* 更弱的提示 */
  --neon: #e5ff3d;        /* 点缀色:只用在主按钮、选中态、一个要强调的数字 */
  --neon-ink: #0a0a0a;    /* 黄底上的字 */
  --bad: #ff5a5a;         /* 负向,别滥用 */

  --r-card: 20px; --r-sheet: 24px; --r-tile: 14px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --pad: 16px;            /* 页面左右边距 */
  --h-btn: 48px; --h-btn-sm: 36px; --h-row: 56px; --h-nav: 64px;
  --sans: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2, .8, .3, 1);
}

/* ---------- 字 ---------- */
.t-display { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.t-title   { font-size: 22px; font-weight: 700; line-height: 1.25; }
.t-body    { font-size: 16px; font-weight: 600; line-height: 1.4; }
.t-sub     { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--ink-2); }
.t-num     { font-variant-numeric: tabular-nums; }
.t-neon    { color: var(--neon); }

/* ---------- 按钮 ---------- */
.btn-n {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--h-btn); padding: 0 var(--s5); border: 0; border-radius: var(--r-pill);
  background: var(--neon); color: var(--neon-ink);
  font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1;
  cursor: pointer; transition: transform .12s var(--ease), filter .12s var(--ease);
}
.btn-n:active:not(:disabled) { transform: scale(.98); }
.btn-n:disabled { opacity: .35; cursor: default; }
.btn-n.block { display: flex; width: 100%; }
.btn-n.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.btn-n.ghost:active:not(:disabled) { background: rgba(255, 255, 255, .06); }
.btn-n.quiet { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-n.bad { background: none; color: var(--bad); box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .45); }
.btn-n.sm { min-height: var(--h-btn-sm); padding: 0 var(--s4); font-size: 14px; }

/* ---------- 标签 / 页签 ---------- */
.chips { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--h-btn-sm); padding: 0 var(--s4); border: 0; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip.is-on { background: var(--neon); color: var(--neon-ink); box-shadow: none; }
.chip:disabled { opacity: .4; cursor: default; }

/* ---------- 输入 ---------- */
.field-n { display: grid; gap: 6px; }
.field-n > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field-n input, .field-n textarea, .field-n select {
  width: 100%; min-height: var(--h-btn); padding: 0 var(--s4); border: 0; border-radius: var(--r-tile);
  background: var(--surface); color: var(--ink);
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}
.field-n textarea { min-height: 96px; padding: var(--s3) var(--s4); line-height: 1.5; resize: vertical; }
.field-n input::placeholder, .field-n textarea::placeholder { color: var(--ink-3); font-weight: 500; }
.field-n input:focus, .field-n textarea:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--neon); }

/* ---------- 卡片 / 列表行 ---------- */
.card-n { border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.card-n.pad { padding: var(--s4); }
.rows-n { border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.row-n {
  display: flex; align-items: center; gap: var(--s3); width: 100%;
  min-height: var(--h-row); padding: var(--s3) var(--s4); border: 0; background: none;
  color: var(--ink); font-family: var(--sans); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer;
}
.row-n + .row-n { box-shadow: inset 0 1px 0 var(--line); }
.row-n .ico-n { flex: none; width: 24px; height: 24px; color: var(--ink); }
.row-n .ico-n .ui-icon { width: 100%; height: 100%; stroke-width: 1.7; }
.row-n .body-n { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row-n .body-n small { font-size: 13px; font-weight: 500; color: var(--ink-2); overflow-wrap: anywhere; }
.row-n .end-n { flex: none; display: flex; align-items: center; gap: var(--s2); color: var(--ink-2); font-size: 13px; }
.row-n .chev-n { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.row-n:active { background: var(--surface-2); }
.row-n.is-on { box-shadow: inset 0 0 0 1px var(--neon); }

/* 金额:赢是黄的,输是白的,不用红绿 */
.amt-n { font-variant-numeric: tabular-nums; font-weight: 700; }
.amt-n.up { color: var(--neon); }
.amt-n.down { color: var(--ink); }

/* ---------- 状态 ---------- */
.state-n { display: grid; justify-items: center; gap: var(--s3); padding: var(--s6) var(--s4); text-align: center; }
.state-n .ring-n { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); }
.state-n .ring-n .ui-icon { width: 28px; height: 28px; }
.state-n b { font-size: 16px; font-weight: 700; color: var(--ink); }
.state-n small { font-size: 13px; color: var(--ink-2); }
.state-n.bad .ring-n { border-color: rgba(255, 90, 90, .45); color: var(--bad); }
.skel-n { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #171717, #202020, #171717); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel-n { animation: none; } }

/* ---------- 分区标题 ---------- */
.sec-n { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--s3); margin: var(--s5) 0 var(--s3); }
.sec-n h2 + .t-sub { flex: 1 0 100%; }
.sec-n h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.sec-n .more-n { border: 0; background: none; color: var(--ink-2); font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer; }

/* ---------- 进度条 ---------- */
.bar-n { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar-n i { display: block; height: 100%; border-radius: inherit; background: var(--neon); }

/* ---------- 大厅(设计稿 02) ---------- */
/* 顶上必须留 --safe-t:全屏模式下网页是顶到状态栏的,Telegram 的关闭键和 ⋯ 也浮在上面。
   这个值由 app.js 按 tg.safeAreaInset + tg.contentSafeAreaInset 算好写进来,这里只管吃。
   以前这里写死 0,把 regal.css 里本来有的留白盖掉了 —— 余额药丸就压在电量图标上。 */
#page-lobby, #page-rooms, #page-me { padding: var(--safe-t) var(--pad) calc(var(--h-nav) + var(--safe-b) + var(--s5)); }

.bn-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) 0 var(--s3); }
.bn-brand { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
/* 品牌前面那颗黄星:CSS 画的,不占图片 */
.bn-star { flex: none; width: 16px; height: 16px; background: var(--neon); clip-path: polygon(50% 0, 60% 34%, 95% 20%, 72% 50%, 95% 80%, 60% 66%, 50% 100%, 40% 66%, 5% 80%, 28% 50%, 5% 20%, 40% 34%); }

/* 余额药丸:大厅和游戏页共用 */
.bn-bal-pill { display: inline-flex; align-items: center; gap: var(--s2); max-width: 55%; height: 40px; padding: 0 var(--s4) 0 6px; border: 0; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-family: var(--sans); cursor: pointer; }
.bn-bal-pill:active { background: var(--surface-2); }
.bn-top-end .bn-bal-pill { max-width: none; }
/* 2026-09-30 消息铃铛:跟余额胶囊并排,公告有更新才亮一个点 */
.bn-top-end { display: flex; align-items: center; gap: var(--s2); min-width: 0; max-width: 62%; }
.bn-bell { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; }
.bn-bell svg { width: 20px; height: 20px; }
/* Compact home header: balance belongs in the wallet, not a second top row. */
#page-lobby .bn-lobby-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); }
/* 2026-10-18 大厅改版(output/lobby-concept/定稿-首屏.png):左上只放 PA 方块、不放字标,柠檬细框 */
.bn-lobby-top .bn-brand { gap: var(--s1); margin: 0; }
#page-lobby .bn-lobby-top .pa-mark { width: 40px; height: 40px; border-radius: 9px; } /* 要压过后面 .pa-lockup .pa-mark 的 32px */
/* 右边一排圆钮:深色底、细边框;联系客服是熊猫小头像 + 字的药丸 */
.bn-lobby-tools { display: flex; align-items: center; gap: 6px; }
.bn-lobby-tools .bn-bell { width: 44px; height: 44px; background: #111; box-shadow: inset 0 0 0 1px #333; transition: transform 120ms cubic-bezier(.23, 1, .32, 1); }
.bn-lobby-tools .bn-bell:hover { background: var(--surface-2); }
.bn-lobby-tools .bn-bell:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.bn-lobby-tools .bn-bell:active { transform: scale(.97); }
.bn-lobby-tools .bn-support { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 0 12px 0 5px; border-radius: var(--r-pill); font: 600 13px/1 var(--sans); white-space: nowrap; }
.bn-lobby-tools .bn-support .support-avatar { box-shadow: 0 0 0 1px #333; }
.bn-support svg { flex: none; }
/* 未读公告:红点压在铃铛右上 */
.bn-lobby-tools .bn-bell-dot { top: 5px; right: 5px; background: var(--bad); box-shadow: 0 0 0 2px #111; }
/* 官方 Telegram 频道:用 Telegram 自己的蓝色标志,一眼认得出 */
.bn-channel img { display: block; width: 30px; height: 30px; }
/* 加到手机主屏幕:跟频道同一颗圆钮,手机外框 + 右上角柠檬黄加号角标 */
.bn-home-add[hidden], .bn-icon-link[hidden] { display: none; }
.bn-home-add > svg { width: 21px; height: 21px; }
.bn-home-badge { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--neon); color: #111; box-shadow: 0 0 0 2px #111; pointer-events: none; }
.bn-home-badge svg { width: 10px; height: 10px; stroke-width: 3.2; }
/* 多了这颗钮:「联系客服」只留熊猫头像(字照样给读屏念),390 宽才排得下;再窄的手机六颗钮一起缩到 36px */
.bn-lobby-tools.has-home-add .bn-support { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.bn-lobby-tools.has-home-add .bn-support span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 420px) { .bn-lobby-tools.has-home-add .bn-support { width: 40px; } }
@media (max-width: 359px) {
  .bn-lobby-tools.has-home-add .bn-bell { width: 36px; height: 36px; }
  .bn-lobby-tools.has-home-add .support-avatar { flex-basis: 28px; width: 28px; height: 28px; }
  .bn-lobby-tools.has-home-add .bn-channel img { width: 26px; height: 26px; }
}
/* 一般手机:圆钮收到 40px,标志 36px,中文的「联系客服」照样放得下(390 宽约 330px) */
@media (max-width: 420px) {
  .bn-lobby-tools { gap: 4px; }
  .bn-lobby-tools .bn-bell { width: 40px; height: 40px; }
  .bn-lobby-tools .bn-support { width: auto; padding-left: 4px; }
  .bn-channel img { width: 28px; height: 28px; }
  #page-lobby .bn-lobby-top .pa-mark { width: 38px; height: 38px; border-radius: 8px; }
}
/* 窄屏(320–374px)和翻译比较长的语言:「联系客服」只留熊猫头像,字照样给读屏念 */
@media (max-width: 374px) {
  .bn-lobby-tools .bn-support { width: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .bn-lobby-tools .bn-support span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
html:not(:lang(zh)) .bn-lobby-tools .bn-support { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
html:not(:lang(zh)) .bn-lobby-tools .bn-support span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 420px) { html:not(:lang(zh)) .bn-lobby-tools .bn-support { width: 40px; } }
.support-avatar { display: block; flex: 0 0 32px; width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.bn-support span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .bn-lobby-tools .bn-bell { transition: none; } .bn-lobby-tools .bn-bell:active { transform: none; } }
/* 背景音乐按钮:跟铃铛同一颗圆钮;开着是点缀黄(设计规范的选中态),关了是灰 */
.bn-music { color: var(--gold); }
.bn-music[aria-pressed="false"] { color: var(--ink-2); }
.bn-bell-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--surface); }
.bn-bal-mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--neon); color: var(--neon-ink); font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: -.02em; }
.bn-bal-pill b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; }

.bn-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: center; gap: var(--s2); padding: var(--s2) 0 var(--s5); }
.bn-hero-copy { min-width: 0; display: grid; gap: var(--s3); }
.bn-hero-copy h2 { margin: 0; font-size: 34px; }
.bn-hero-btns { display: flex; gap: var(--s2); margin-top: var(--s1); }
.bn-hero-btns .btn-n { flex: 1; min-width: 0; padding: 0 var(--s3); font-size: 15px; }
.bn-hero-art { position: relative; width: 132px; height: 190px; }
.bn-hero-art > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; border-radius: var(--r-card); }
.bn-hero-ensemble { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.bn-hero-ensemble .bn-hero-copy { display: contents; }
.bn-hero-ensemble .bn-hero-art { grid-area: 1 / 1; width: 100%; height: auto; aspect-ratio: 3 / 2; pointer-events: none; }
.bn-hero-ensemble .bn-hero-art > img { display: block; object-fit: contain; border-radius: 0; }
.bn-hero-ensemble h2 { grid-area: 1 / 1; align-self: center; z-index: 1; width: 30%; font-size: clamp(24px, 6.6vw, 34px); }
.bn-hero-ensemble .t-sub { margin: 0; }
.bn-hero-ensemble .bn-hero-btns { margin-top: 0; }
/* Wide, single welcome banner now; native swipe/rotation when more are added. */
.bn-banner { display: block; padding: 0; margin: 0 0 var(--s3); }
.bn-banner-track { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-card); background: var(--surface); }
.bn-banner-track::-webkit-scrollbar { display: none; }
.bn-banner-slide { position: relative; flex: 0 0 100%; min-width: 0; min-height: 128px; aspect-ratio: 8 / 3; scroll-snap-align: start; isolation: isolate; overflow: hidden; }
.bn-banner-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: -2; }
.bn-banner-contained > img { inset-inline-start: 29%; width: 71%; object-fit: contain; object-position: right center; }
.bn-banner-slide > img[hidden] { display: none; }
.bn-banner-slide::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, rgba(10,10,10,.88) 21%, rgba(10,10,10,0) 57%); }
.bn-banner-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 46%; height: 100%; min-height: 128px; padding: var(--s3); gap: var(--s1); }
.bn-banner-copy > span { color: var(--neon); font: 600 8px var(--sans); letter-spacing: .1em; }
.bn-banner-copy h2 { margin: 0; font-size: clamp(18px, 5vw, 24px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; text-wrap: balance; }
.bn-banner-cta { display: flex; align-items: center; gap: var(--s1); min-height: 44px; padding: var(--s1) 0; border: 0; background: none; color: var(--neon); font: 600 12px var(--sans); text-align: start; cursor: pointer; }
.bn-banner-cta svg { width: 14px; height: 14px; flex: none; }
.bn-banner-cta:hover { color: var(--ink); }
.bn-banner-controls { display: flex; justify-content: center; align-items: center; }
.bn-banner-controls button { display: grid; place-items: center; min-width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.bn-banner-controls i { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--ink-3); }
.bn-banner-controls [aria-current="true"] i { width: 20px; background: var(--neon); }
.bn-banner-controls svg { width: 16px; height: 16px; }
.bn-banner-controls [aria-pressed="true"] { color: var(--neon); }
.bn-banner-controls [aria-pressed="true"] .icon-play, .bn-banner-controls [aria-pressed="false"] .icon-pause { display: none; }
.bn-banner button:focus-visible, .bn-banner-track:focus-visible { outline: 2px solid var(--neon); outline-offset: -2px; }
/* 2026-10-18 主推游戏横幅(banner-v3,左半边留暗给字):全宽贴边、图淡进黑底、没有框;左边叠
   「新游戏」小标 / 游戏名 / 一句话 / 立即开玩。退回的合照横幅(.bn-banner-contained)照旧上面那套。 */
.bn-banner.is-games { margin: 0 calc(var(--pad) * -1) var(--s3); }
.bn-banner.is-games .bn-banner-track { border-radius: 0; background: transparent; overscroll-behavior-x: contain; }
/* 高度由左边的字撑:图本身 1536:659,390 宽约 168px;窄屏字两行时横幅跟着长高,图 cover 往右靠,不会把按钮裁掉 */
.bn-banner-game { display: flex; align-items: stretch; min-height: 0; aspect-ratio: auto; }
.bn-banner-game > img { object-position: right center; }
/* 页面容器最宽 520px:桌面版 / 浏览器打开时横幅右边不是屏幕边缘,图要淡出,不能一条硬边 */
@media (min-width: 521px) { .bn-banner-game > img { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); } }
.bn-banner-game::before { background: linear-gradient(90deg, var(--bg) 0%, rgba(10,10,10,.82) 28%, rgba(10,10,10,.35) 50%, rgba(10,10,10,0) 68%); }
.bn-banner-game::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, rgba(10,10,10,0) 16%, rgba(10,10,10,0) 66%, var(--bg) 100%); }
.bn-banner-game .bn-banner-copy { width: 62%; height: auto; min-height: clamp(176px, 43vw, 224px); justify-content: center; gap: 6px; padding: var(--s3) 0 28px var(--pad); }
.bn-banner-copy > .bn-banner-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: var(--r-pill); background: var(--neon); color: var(--neon-ink); font: 700 11px/1 var(--sans); letter-spacing: 0; white-space: nowrap; }
.bn-banner-game h2 { margin: 2px 0 0; font-size: clamp(28px, 9vw, 40px); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.bn-banner-game p { margin: 0; max-width: 100%; font-size: 12px; font-weight: 500; line-height: 1.4; color: #cfcfcf; text-shadow: 0 1px 4px rgba(0,0,0,.9); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bn-banner-game .bn-banner-cta { margin-top: 4px; min-height: 40px; padding: 0 12px 0 16px; gap: 2px; border-radius: var(--r-pill); background: var(--neon); color: var(--neon-ink); font: 700 14px/1.1 var(--sans); }
.bn-banner-game .bn-banner-cta:hover { color: var(--neon-ink); filter: brightness(1.06); }
.bn-banner-game .bn-banner-cta:active { transform: scale(.98); }
.bn-banner-game .bn-banner-cta svg { width: 16px; height: 16px; stroke-width: 2.4; }
.bn-banner.is-games button:focus-visible { outline-offset: 2px; }
/* 圆点叠在横幅底部置中;暂停钮叠在最右、很淡(无障碍要留) */
.bn-banner.is-games .bn-banner-controls { position: absolute; inset: auto 0 2px; pointer-events: none; }
.bn-banner.is-games .bn-banner-controls button { pointer-events: auto; min-width: 22px; min-height: 24px; height: 24px; } /* regal.css 给所有 button 44px 高:圆点要压回来,不然盖到「立即开玩」 */
.bn-banner.is-games .bn-banner-controls i { width: 7px; height: 7px; background: rgba(255,255,255,.32); }
.bn-banner.is-games .bn-banner-controls [aria-current="true"] i { width: 7px; background: var(--neon); }
.bn-banner.is-games .bn-banner-controls [data-banner-toggle] { position: absolute; right: calc(var(--pad) - 6px); bottom: 0; min-width: 32px; height: 24px; color: var(--ink-3); opacity: .7; }
.bn-banner.is-games .bn-banner-controls [data-banner-toggle] svg { width: 12px; height: 12px; }
@media (prefers-reduced-motion: reduce) { .bn-banner-game .bn-banner-cta:active { transform: none; } }
/* 浮在熊猫身上的两张小卡:设计稿里的层次感就靠这两个 */
.bn-float { position: absolute; display: flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; border: 0; border-radius: var(--r-tile); background: rgba(21, 21, 21, .92); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px rgba(0, 0, 0, .55); color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.bn-float-art { flex: none; width: 26px; height: 26px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.bn-float-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-float.f1 { left: -40px; top: 9%; }
.bn-float.f2 { left: -18px; top: 44%; }
.bn-float:active { background: var(--surface-2); }

/* Compact winner cards below the banner: identity left, game mascot right. */
.big-win-strip { --win-ticket: #f5f4ee; --win-ticket-hover: #ffffff; --win-ticket-pressed: #e8e7df; --win-ticket-ink: var(--neon-ink); --win-ticket-muted: #575950; --win-ticket-line: rgba(0,0,0,.1); display: flex; align-items: center; gap: var(--s1); min-width: 0; margin-bottom: var(--s3); }
.big-win-record { position: relative; display: flex; flex: 1; min-width: 0; gap: var(--s2); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.big-win-record::-webkit-scrollbar { display: none; }
.big-win-card { flex: 0 0 min(240px, 100%); min-width: 0; height: 56px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 32px; align-items: center; gap: var(--s2); padding: var(--s1) var(--s2); border: 0; border-radius: 12px; background: var(--win-ticket); box-shadow: inset 0 0 0 1px var(--win-ticket-line); color: var(--win-ticket-ink); font-family: var(--sans); text-align: start; cursor: pointer; scroll-snap-align: start; scroll-snap-stop: always; }
.big-win-card:hover { background: var(--win-ticket-hover); }
.big-win-card:active { background: var(--win-ticket-pressed); }
.big-win-avatar, .big-win-mascot { position: relative; display: grid; place-items: center; color: var(--neon); background: var(--surface-2); }
.big-win-avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(229,255,61,.35); }
.big-win-avatar img, .big-win-mascot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.big-win-avatar img[hidden], .big-win-mascot img[hidden] { display: none; }
.big-win-mascot { width: 32px; height: 32px; border-radius: 8px; }
.big-win-mascot i { position: absolute; right: -3px; bottom: -4px; display: grid; place-items: center; width: 12px; height: 12px; background: var(--neon); color: var(--neon-ink); border-radius: 50%; font: 700 12px/1 var(--sans); }
.big-win-who { min-width: 0; }
.big-win-who b { display: block; font-size: 12px; line-height: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.big-win-who small { display: flex; gap: var(--s1); font-size: 10px; line-height: 14px; color: var(--win-ticket-muted); white-space: nowrap; }
.big-win-who small > span { overflow: hidden; text-overflow: ellipsis; }
.big-win-who small > span:last-child { flex-shrink: 0; max-width: 65%; }
.big-win-amount { display: block; font-size: 12px; font-weight: 700; line-height: 16px; color: var(--win-ticket-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.big-win-amount.is-long { font-size: 10px; letter-spacing: -.025em; }
.big-win-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 50%; color: var(--ink-2); cursor: pointer; }
.big-win-toggle svg { width: 16px; height: 16px; }
.big-win-toggle:hover { background: var(--surface-2); color: var(--ink); }
/* Override the legacy global neon !important ring on this light surface only. */
.big-win-card:focus-visible { outline: 2px solid var(--win-ticket-ink) !important; outline-offset: -4px !important; }
.big-win-toggle:focus-visible { outline: 2px solid var(--neon); outline-offset: -2px; }

/* 在线人数:游戏页卡片用这一套小字;大厅海报另有一套(见下面 .bn-poster) */
.game-online { display: inline-flex; align-items: center; flex-wrap: wrap; column-gap: calc(var(--s1) / 2); color: var(--ink-2); font: 400 10px/1.2 var(--sans); }
.game-online i { flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.game-online.is-online i { background: var(--neon); }
.game-online-count { font-variant-numeric: tabular-nums; color: var(--ink); }
/* 内测中的游戏(本来就只有测试的人看得到这一格):名字旁边一个柠檬黄描边小标,大厅方块和游戏页卡片共用 */
.bn-test-badge { display: inline-flex; align-items: center; margin-inline-start: 6px; padding: 0 6px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--neon); color: var(--neon); font: 700 10px/16px var(--sans); letter-spacing: 0; white-space: nowrap; vertical-align: 2px; }
.bn-rules-link { display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; width: 100%; margin-top: var(--s3); border: 0; background: none; color: var(--ink-2); font: 500 12px var(--sans); cursor: pointer; }
.bn-rules-link svg { width: 16px; height: 16px; }
.bn-rules-link:hover { color: var(--ink); }
.bn-rules-link:focus-visible { outline: 2px solid var(--neon); border-radius: var(--r-tile); }
#page-lobby > .sec-n { margin: var(--s2) 0 var(--s1); }
#page-lobby .sec-n h2 { font-size: 16px; }
#page-lobby .more-n, #page-me .more-n { min-height: 44px; }

/* ---------- 大厅分类标签 + 两组海报(2026-10-18 改版,output/lobby-concept/定稿-*.png) ----------
   一屏不止一块黄是老板批过的概念图要的(选中的标签、充值、横幅按钮、小标),只用在这一页。 */
/* 分类标签:有几个就平分一整排(概念图),不靠横滑 —— 马来文 / 英文在 320–390 宽会被切掉一半 */
.bn-cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s2); margin: var(--s4) 0 var(--s1); overflow: visible; }
.bn-cats .chip { min-width: 0; justify-content: center; text-align: center; min-height: 40px; padding: 0 6px; background: transparent; box-shadow: inset 0 0 0 1px #3a3a3a; font-size: 14px; font-weight: 700; }
.bn-cats .chip.is-on { background: var(--neon); color: var(--neon-ink); box-shadow: none; }
.bn-cats .chip:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
html:not(:lang(zh)) .bn-cats .chip { padding: 2px 3px; font-size: 11.5px; line-height: 1.15; white-space: normal; overflow-wrap: break-word; } /* 翻译比中文长:字小一点、放不下就在空格换两行(不要从字中间拆:Permaina / n Mini) */
#page-lobby .bn-group-head { align-items: center; margin: var(--s4) 0 var(--s2); }
#page-lobby .bn-group-head h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.bn-group-head h2::before { content: ''; flex: none; width: 4px; height: 1em; border-radius: 2px; background: var(--neon); }
#page-lobby .bn-group-head .more-n { display: inline-flex; align-items: center; font-size: 14px; }
/* 对战房:一排横滑,贴边;每张约四成屏宽(--rail-card 一行改) */
.bn-rail { --rail-card: 23%; display: flex; gap: 10px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 2px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; scrollbar-width: none; }
.bn-rail::-webkit-scrollbar { display: none; }
.bn-rail > .bn-poster { --poster-ratio: 3 / 4; flex: 0 0 var(--rail-card); scroll-snap-align: start; } /* 老板 10-18「下面那些图不要那么大」:一屏约四张,3:4 */
.bn-grid > .bn-poster { --poster-ratio: 1 / 1; } /* 小游戏方卡(方形大图整张放得下);10-18 改三栏,卡小一点 */
/* 小游戏:两栏 */
.bn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
/* 海报卡:整张是那个游戏的方块图,底部深色渐层,左下名字 + 在线人数,右上小标(--poster-ratio 一行改比例) */
.bn-poster { --poster-ratio: 3 / 4; position: relative; isolation: isolate; display: block; width: 100%; min-width: 0; aspect-ratio: var(--poster-ratio); padding: 0; border: 0; border-radius: var(--r-tile); background: var(--surface); box-shadow: none; overflow: hidden; color: var(--ink); font-family: var(--sans); text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .14s var(--ease); }
.bn-poster > img { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; }
.bn-poster::after { content: ''; position: absolute; inset: 42% 0 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,.78) 62%, rgba(10,10,10,.94) 100%); }
.bn-poster::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.bn-poster-copy { position: absolute; inset: auto 0 0; z-index: 1; display: grid; justify-items: start; gap: 2px; padding: 6px 8px 8px; }
.bn-poster b { max-width: 100%; color: #fff; font-size: clamp(13px, 3.6vw, 15px); font-weight: 800; line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.bn-poster small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #b5b5b5; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
/* 在线:有人才显示绿点「N 在线」;0 人、还不知道的都不显示(人数原地改,paintGameOnline 切 is-online) */
.bn-poster .game-online { column-gap: 4px; color: #d9d9d9; font: 600 10.5px/1.2 var(--sans); }
.bn-poster .game-online:not(.is-online) { display: none; }
.bn-poster .game-online i, .bn-poster .game-online.is-online i { width: 6px; height: 6px; background: #3ddc84; }
.bn-poster .game-online-count { color: #fff; }
/* 右上小标:六角形柠檬细框(概念图);新 / 热 各一个 class,要分开改一行就好。中文以外的字长,改成药丸 */
.bn-poster-tag { position: absolute; top: 6px; right: 6px; z-index: 1; display: grid; place-items: center; min-width: 22px; height: 25px; padding: 0 4px; isolation: isolate; color: var(--neon); font: 800 11px/1 var(--sans); white-space: nowrap; }
.bn-poster-tag::before, .bn-poster-tag::after { content: ''; position: absolute; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.bn-poster-tag::before { inset: 0; z-index: -2; background: var(--neon); }
.bn-poster-tag::after { inset: 2px; z-index: -1; background: rgba(10,10,10,.82); }
.bn-poster-tag.is-hot::after { inset: 1.5px; }
html:not(:lang(zh)) .bn-poster-tag { min-width: 0; height: 18px; padding: 0 6px; border-radius: var(--r-pill); background: rgba(10,10,10,.82); box-shadow: inset 0 0 0 1.5px var(--neon); font-size: 9px; letter-spacing: .04em; }
html:not(:lang(zh)) .bn-poster-tag::before, html:not(:lang(zh)) .bn-poster-tag::after { display: none; }
/* 暂停 / 即将开放 / 收尾中:卡片变暗,照旧写那一句说明;点下去照旧(收尾的进得去) */
.bn-poster.is-paused > img { filter: grayscale(1) brightness(.45); }
.bn-poster.is-paused b { color: var(--ink-2); text-shadow: none; }
.bn-poster:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.bn-poster:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { .bn-poster { transition: none; } .bn-poster:active { transform: none; } }
@media (max-width: 360px) {
  .bn-cats { gap: 6px; }
  .bn-cats .chip { padding: 0 var(--s3); font-size: 13px; }
  .bn-poster-copy { padding: 5px 6px 7px; }
}

/* 玩法说明目录:每个游戏一行,左边是它的封面小图 */
.rules-dir-hint { margin: 0 0 var(--s3); }
.rules-row-n { gap: var(--s3); }
.rules-art-n { flex: none; width: 52px; height: 52px; border-radius: var(--r-tile); overflow: hidden; background: var(--surface-2); }
.rules-art-n img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rules-row-n .body-n b { font-size: 16px; overflow-wrap: anywhere; }

/* ---------- 游戏页(设计稿 03) ---------- */
.bn-filter { padding: 0 0 var(--s4); }
.pill-n { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-n .ui-icon { width: 13px; height: 13px; }

.gm-list { display: grid; gap: var(--s3); }
.gm-card { display: flex; gap: var(--s3); padding: var(--s2); text-align: left; cursor: pointer; }
.gm-card[hidden] { display: none; }
.gm-art { flex: none; width: 84px; align-self: stretch; border-radius: var(--r-tile); overflow: hidden; background: var(--surface-2); }
.gm-art img { width: 100%; height: 100%; min-height: 84px; object-fit: cover; display: block; }
.gm-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: var(--s2); row-gap: var(--s1); padding: var(--s1) var(--s1) var(--s1) 0; }
.gm-body b { overflow-wrap: anywhere; font-size: 16px; text-align: start; justify-self: start; align-self: center; }
.gm-body p { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 12px; line-height: 1.5; }
.gm-body > .game-online { grid-column: 1 / -1; grid-row: 3; }
.gm-foot { grid-column: 2; grid-row: 1; display: flex; align-items: center; }
.gm-foot .btn-n { min-height: 44px; height: auto; padding: var(--s1) var(--s3); font-size: 12px; background: var(--surface-2); color: var(--neon); box-shadow: inset 0 0 0 1px var(--line); }
.gm-card:active { background: var(--surface-2); }
/* 游戏页里关掉的游戏:跟大厅方块一样反灰,按钮写「即将开放」 */
.gm-card.is-paused .gm-art img { opacity: .45; filter: grayscale(1); }
.gm-card.is-paused .t-title { color: var(--ink-2); }
.gm-card.is-paused .t-sub { color: var(--ink-3); }
.gm-card.is-paused .btn-n { color: var(--ink-3); }

.room-row-n { gap: var(--s3); }
.room-row-n .body-n b { font-size: 18px; }
.btn-n.ghost.neon { color: var(--neon); box-shadow: inset 0 0 0 1px var(--neon); }
.btn-n.ghost.neon:active:not(:disabled) { background: var(--gold-soft); }

/* ---------- 底部导航 ---------- */
.nav { max-width: 520px; margin: 0 auto; padding: var(--s2) var(--s3) calc(var(--safe-b) + var(--s2)); background: rgba(10, 10, 10, .92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: none; }
.nav-btn { min-height: 52px; gap: 3px; color: var(--ink-3); font-size: 11px; font-weight: 600; }
.nav-btn .ico { width: 26px; height: 24px; background: none; font-size: 0; }
.nav-btn .ico, .nav-btn .ui-icon { color: inherit !important; }
.nav-btn .ui-icon { width: 23px; height: 23px; stroke-width: 1.7; }
/* 旧皮肤给选中的导航图标上了红色描边和填充,这里全部收回来跟着文字色走 */
.nav-btn .ui-icon, .nav-btn.is-active .ui-icon { stroke: currentColor !important; fill: none !important; }
.nav-btn.is-active { color: var(--neon); }
.nav-btn.is-active::after { display: none; }

/* ---------- 子页面标题 ---------- */
.page-heading { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; margin: 0 calc(var(--pad) * -1) var(--s4); padding: var(--s4) 56px var(--s3); border: 0; }
.page-heading h1 { font-size: 18px; font-weight: 700; color: var(--ink); }
.page-heading .back-btn, .page-heading [data-go="back"] { position: absolute; left: var(--pad); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }

/* ---------- 「我」(设计稿 04) ---------- */
.bn-balance { margin-bottom: var(--s2); }
.bn-balance-head { display: flex; align-items: center; gap: var(--s2); }
.bn-eye { display: grid; place-items: center; width: 26px; height: 26px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.bn-eye .ui-icon { width: 17px; height: 17px; }
.bn-amount { margin: 2px 0 var(--s4); font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.bn-amount i { font-style: normal; font-size: .62em; font-weight: 800; }
/* 充值 / 提现 / 转账:三个等宽方块,图标在上、字在下 */
.bn-wallet-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.wt-n { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 76px; padding: var(--s2); border: 0; border-radius: var(--r-tile); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 700; cursor: pointer; }
.wt-n .ui-icon { width: 22px; height: 22px; }
.wt-n.on { background: var(--neon); color: var(--neon-ink); box-shadow: none; }
.wt-n:active { transform: scale(.98); }

/* A compact wallet rail: balance on the left, four equal actions on the right. */
.bn-home-wallet { display: grid; grid-template-columns: minmax(0, 1fr) clamp(188px, 62%, 248px); align-items: center; gap: var(--s2); padding: var(--s2); border-radius: 16px; }
.bn-home-balance { min-width: 0; container-type: inline-size; }
.bn-home-wallet .bn-balance-head { gap: 0; min-width: 0; color: var(--ink-2); font-size: 11px; line-height: 1.25; }
.bn-home-wallet .bn-balance-head > span { min-width: 0; overflow-wrap: anywhere; }
.bn-home-wallet .bn-eye { width: 44px; height: 44px; flex: none; }
.bn-home-wallet .bn-eye .ui-icon { width: 15px; height: 15px; }
.bn-home-wallet .bn-amount { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s1); margin: 0; font-size: 18px; font-weight: 700; line-height: 1; max-width: 100%; }
.bn-home-wallet [data-home-balance] { min-width: 0; max-width: 100%; font-size: clamp(10px, calc((100cqi - 28px) / var(--balance-length, 9) * 1.4), 18px); line-height: 20px; overflow-wrap: anywhere; }
.bn-home-wallet .bn-wallet-btns { grid-template-columns: repeat(4, minmax(44px, 1fr)); gap: var(--s1); margin: 0; }
.bn-home-wallet .wt-n { width: 100%; aspect-ratio: 1; align-self: center; min-width: 0; min-height: 44px; padding: 2px 1px; border-radius: 10px; gap: 2px; font-size: 11px; line-height: 1.1; font-weight: 600; overflow-wrap: anywhere; }
.bn-home-wallet .wt-n svg { width: 16px; height: 16px; }
.bn-home-wallet .wt-n > span { min-width: 0; max-width: 100%; }
.bn-home-wallet:lang(en) .wt-n, .bn-home-wallet:lang(fil) .wt-n { padding-inline: 1px; font-size: 10px; letter-spacing: -.025em; }
.bn-home-wallet:lang(en) .wt-n > span, .bn-home-wallet:lang(fil) .wt-n[data-go="withdraw"] > span { white-space: nowrap; }
.bn-home-wallet button:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.bn-home-wallet .wt-n:hover:not(.on) { box-shadow: inset 0 0 0 1px var(--ink-3); }
/* 2026-10-18 改版:深色卡、细边框;充值柠檬底黑字,其他三个深色白字细框 */
.bn-home-wallet { padding: 10px; background: #0f0f0f; box-shadow: inset 0 0 0 1px #2e2e2e; }
/* 中文按钮字只有两个字:按钮那一栏收窄一点,把位子让给金额(其他语言的字长,照原本的宽度) */
.bn-home-wallet:lang(zh) { grid-template-columns: minmax(0, 1fr) clamp(180px, 56%, 236px); }
.bn-home-wallet .bn-home-balance { padding-inline-start: 4px; }
/* 金额尽量放大(概念图是一个大数字):按字数算字号,数字 + 逗号平均不到 0.6em,乘 1.6 还留一成余裕 */
.bn-home-wallet [data-home-balance] { font-size: clamp(12px, calc((100cqi - 30px) / var(--balance-length, 9) * 1.6), 24px); line-height: 1.15; }
.bn-home-wallet .wt-n:not(.on) { background: #161616; box-shadow: inset 0 0 0 1px #2e2e2e; color: var(--ink); }
.bn-home-wallet .wt-n:not(.on):hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
/* 窄屏换行:余额一行、四个按钮一行 */
@media (max-width: 374px) { /* 361–374 宽非中文时余额跟币会断成两行、Withdraw 超出按钮:跟「联系客服」只留头像同一个断点换成两行版式 */
  .bn-home-wallet, .bn-home-wallet:lang(zh) { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .bn-home-wallet .bn-wallet-btns { gap: 6px; }
  .bn-home-wallet .wt-n { aspect-ratio: auto; min-height: 56px; }
  .bn-home-wallet [data-home-balance] { font-size: clamp(14px, calc((100cqi - 30px) / var(--balance-length, 9) * 1.6), 26px); }
}

.bn-profile { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.bn-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.bn-avatar > * { width: 100% !important; height: 100% !important; border-radius: 50%; }
.bn-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bn-avatar .avatar-edit-badge { display: none; }
.bn-avatar-choice { display: grid; justify-items: center; flex: none; }
.bn-avatar-caption { min-height: 44px; padding: 4px 0; background: none; border: 0; color: var(--neon); font: 600 12px var(--sans); cursor: pointer; }
.bn-avatar-caption:hover { color: var(--ink); }
.bn-avatar-caption:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 4px; }
.bn-profile-body { min-width: 0; display: grid; gap: 5px; }
.bn-profile-body b { font-size: 19px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.bn-profile-body small { font-size: 13px; color: var(--ink-2); }
.bn-uid { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 0; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-family: var(--sans); font-size: 12px; font-weight: 600; }
.bn-uid .ui-icon { width: 13px; height: 13px; }
.bn-uid { min-height: 44px; padding: var(--s1) var(--s2); max-width: 100%; overflow-wrap: anywhere; }
.bn-profile-wallet { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); margin: var(--s1) 0 0; font-size: 11px; color: var(--ink-2); }
.bn-profile-wallet b { font-size: 16px; }
.bn-icon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); padding: var(--s2); background: var(--surface); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); }
.bn-icon-link { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: var(--s2); min-height: 92px; padding: var(--s3) var(--s1); background: none; border: 0; border-radius: var(--r-tile); color: var(--ink); font: 500 13px/1.5 var(--sans); text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.bn-icon-face { display: grid; place-items: center; width: 32px; height: 32px; flex: none; color: var(--neon); }
.bn-icon-face svg { width: 26px; height: 26px; stroke-width: 1.6; }
.bn-icon-link:hover { background: var(--surface-2); }
.bn-icon-link:focus-visible { outline: 2px solid var(--neon); outline-offset: -2px; }
.bn-icon-link:active { background: var(--surface-2); }
.bn-security-grid .bn-icon-link { min-height: 84px; }
#page-me > .sec-n { margin: var(--s3) 0 var(--s2); align-items: center; }
#page-me .sec-n h2 { font-size: 16px; }
.bn-foot { margin: var(--s5) 0 0; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--ink-3); }

/* ---------- 过渡层:还没改写成新组件的页面 ----------
 * 旧皮肤(regal/showcase/refinements)里有一百多处写死的米白色,
 * 这里按面、线、字三类压成黑金柠檬,先保证全站不会一半黑一半白。
 * 页面改一个,就从 index.html 里少加载一层,这一段也跟着缩小。
 */
.sub, .sub-top, .sub-body, .sheet, .sheet-body, .panel, .card, .hero, .banner,
.room-card, .rank-row, .ledger, .bubble, .hb, .hb-top, .hb-foot, .cmp, .field input,
.field select, .field textarea, .me-grid, .me-grid button, .wallet-actions button,
.notice-list, .account-status, .checkin-gift, .profile-card, .balance-card, .stat-grid {
  background-color: var(--surface) !important;
  background-image: none !important;
  color: var(--ink);
  border-color: var(--line) !important;
  box-shadow: none !important;
}
.sub, .sub-body, .sheet-body { background-color: var(--bg) !important; }
.sub-top { background-color: rgba(10, 10, 10, .94) !important; backdrop-filter: blur(12px); }
.panel, .card, .rows-n, .ledger, .notice-list { box-shadow: inset 0 0 0 1px var(--line) !important; }
.field input, .field select, .field textarea { color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line) !important; border-radius: var(--r-tile) !important; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.hint, .empty, small, .kv span, .sub-top small { color: var(--ink-2); }
h1, h2, h3, h4 { color: var(--ink); }
/* 旧皮肤里「金底 + 深色字」的小标签:金已经变成柠檬黄了,字必须跟着变回黑的,
 * 不然就是白字压在黄底上,一个字都看不清。 */
.side-btn.is-on, .crown, .mention-tag, .res .who .tag, .step .no,
.btn-gold, .btn-red, .btn.btn-gold, .btn.btn-red { color: var(--neon-ink) !important; }

/* 老的主按钮一律变成柠檬黄,次按钮变成描边 */
.btn-gold, .btn-red, .btn.btn-gold, .btn.btn-red {
  background: var(--neon) !important; background-image: none !important;
  color: var(--neon-ink) !important; border: 0 !important; border-radius: var(--r-pill) !important; box-shadow: none !important;
}
.btn-ghost, .link-btn { background: none !important; background-image: none !important; color: var(--ink) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--line) !important; border-radius: var(--r-pill) !important; }
.btn:disabled, .btn-gold:disabled { opacity: .35 !important; }
.pill { background: var(--surface-2) !important; color: var(--ink-2) !important; box-shadow: inset 0 0 0 1px var(--line) !important; }

/* 头像、图标里的金色底块改成中性面 */
.mark, .avatar, .hb-icon, .hb-avatar, .avatar.regal-avatar, .me-grid .ico, .wallet-actions .ico, .row > .ico {
  background: var(--surface-2) !important; background-image: none !important; color: var(--ink) !important; border-color: var(--line) !important;
}
.ui-icon { color: currentColor; }

/* 金额:赢用黄,输用白 */
.win, .up, .amount .num { color: var(--ink); }
.gold, .money-up { color: var(--neon) !important; }
.loss, .money-down { color: var(--ink) !important; }

/* ---------- 子页面(设计稿 40–49):套在旧结构上 ----------
 * 这几页的 HTML 本来就是「标题栏 + 卡 + 列表行」,跟设计稿的结构一样,
 * 所以不重写模板,只把旧皮肤的米白金边换成黑底柠檬黄。
 */
.sub-body { padding: var(--s4) var(--pad) calc(var(--safe-b) + var(--s6)) !important; }
.sub-top { border-bottom: 1px solid var(--line) !important; }
.sub-top h2 { font-size: 18px; font-weight: 700; color: var(--ink); }
.sub-top .icon-btn, .t-top .icon-btn, .sheet-top .icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface) !important; box-shadow: inset 0 0 0 1px var(--line) !important; color: var(--ink) !important;
}

/* 分区标题 */
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin: var(--s5) 0 var(--s3); }
.section-title h2, .section-title h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink) !important; -webkit-text-fill-color: var(--ink); background: none !important; }
.section-title small { font-size: 13px; color: var(--ink-2); }

/* 卡 / 列表 */
.panel, .ledger, .notice-list { border-radius: var(--r-card) !important; overflow: hidden; }
.panel .row, .ledger .row, .notice-list .row {
  display: flex; align-items: center; gap: var(--s3);
  min-height: var(--h-row); padding: var(--s3) var(--s4);
  background: none !important; border: 0 !important;
}
.panel .row + .row, .ledger .row + .row, .notice-list .row + .row { box-shadow: inset 0 1px 0 var(--line) !important; }
.panel .row .body, .ledger .row .body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.panel .row .body b, .ledger .row .body b { font-size: 16px; font-weight: 700; color: var(--ink); }
.panel .row .body small, .ledger .row .body small { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.panel .row .end, .ledger .row .end { flex: none; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.end.pos { color: var(--neon) !important; }
.end.neg { color: var(--ink) !important; }

/* 页签 / 分段:统一成标签药丸 */
.tabs, .seg { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; margin-bottom: var(--s4); background: none !important; border: 0 !important; padding: 0 !important; }
.tabs::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
.tabs button, .seg button {
  flex: none; min-height: var(--h-btn-sm); padding: 0 var(--s4); border: 0; border-radius: var(--r-pill);
  background: var(--surface) !important; box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2) !important; font-family: var(--sans); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.tabs button.is-active, .seg button.is-active { background: var(--neon) !important; color: var(--neon-ink) !important; box-shadow: none; }
.center .seg { justify-content: center; }

/* 三格小结 / 出入账 */
.summary, .inout { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--s2); }
.summary > div, .inout > div {
  display: grid; gap: 2px; padding: var(--s3); border: 0 !important;
  border-radius: var(--r-tile); background: var(--surface-2); text-align: left;
}
.summary > div small, .inout > div small { font-size: 12px; color: var(--ink-2); }
.summary > div b, .inout > div b { font-size: 19px; font-weight: 700; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.summary > div b.pos { color: var(--neon) !important; }
.summary-note { margin: var(--s3) 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* 钱包三个方块 */
.wallet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s4); border: 0 !important; }
.wallet-actions button {
  display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 76px; padding: var(--s2);
  border: 0 !important; border-radius: var(--r-tile) !important;
  background: var(--surface-2) !important; box-shadow: inset 0 0 0 1px var(--line) !important;
  color: var(--ink) !important; font-size: 14px; font-weight: 700;
}
.wallet-actions button .ico { width: 22px; height: 22px; background: none !important; box-shadow: none !important; }
.wallet-actions button .ui-icon { width: 22px; height: 22px; }
.wallet-actions button.is-off { opacity: .4; }

/* 余额大数:一屏只留一块黄,所以这里用白 */
.ledger-balance .amount { display: flex; align-items: baseline; gap: 8px; }
.ledger-balance .amount .num { font-size: 34px; font-weight: 800; color: var(--ink) !important; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ledger-balance .amount .cur { order: -1; font-size: 18px; font-weight: 700; color: var(--ink-2); }
.ledger-balance .inout { margin-top: var(--s4); }
.balance-eye { border: 0; background: none; color: var(--ink-2); }
.balance-eye .ui-icon { width: 17px; height: 17px; }

/* 空 / 出错(设计稿 61) */
.empty-state { display: grid; justify-items: center; gap: var(--s3); padding: var(--s6) var(--s4); text-align: center; }
.empty-state img, .empty-state .mascot { width: 88px; height: 88px; opacity: .55; filter: grayscale(1) brightness(1.4); }
.empty-state h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.empty-state p { margin: 0; font-size: 13px; color: var(--ink-2); max-width: 30ch; }
.empty { padding: var(--s5) 0; text-align: center; font-size: 13px; color: var(--ink-2); }

/* 排行榜 */
.rank-row { display: flex; align-items: center; gap: var(--s3); min-height: var(--h-row); padding: var(--s2) var(--s4); border-radius: 0 !important; }
.rank-row + .rank-row { box-shadow: inset 0 1px 0 var(--line) !important; }
.rank-row .pos { flex: none; width: 26px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.rank-row .medal { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 12px; }
.rank-row .medal.m1 { background: var(--neon); color: var(--neon-ink); box-shadow: none; }
.rank-row .av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2) !important; color: var(--ink); font-size: 13px; font-weight: 700; }
.rank-row .rank-player { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-row .bal { flex: none; white-space: nowrap; margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.rank-row .bal small { font-size: 12px; font-weight: 500; color: var(--ink-2); margin-left: 2px; }
.rank-me { margin-bottom: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-tile); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-2); }
.rank-me b { color: var(--neon); font-weight: 700; }
/* 排行榜三排控件各长一个样:游戏是带封面的小卡、榜是底线页签、期间是一行小 chip(筛选)。
 * 黄只给选中的游戏卡边框,榜和期间的选中态用白,一屏只留一块黄 */
.rank-games { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--s1)) var(--s3); padding: 2px var(--s1); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.rank-games::-webkit-scrollbar { display: none; }
.rank-game { flex: none; width: 64px; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink-2); opacity: .55; scroll-snap-align: start; cursor: pointer; transition: opacity .15s var(--ease); }
.rank-game-art { width: 52px; height: 52px; border-radius: var(--r-tile); overflow: hidden; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.rank-game-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-game-art svg { width: 34px; height: 34px; }
.rank-game-name { max-width: 64px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-game.is-on { opacity: 1; color: var(--ink); }
.rank-game.is-on .rank-game-art { box-shadow: 0 0 0 2px var(--neon); }
.rank-boards { display: flex; gap: var(--s5); overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--line); }
.rank-boards::-webkit-scrollbar { display: none; }
.rank-boards > * { flex: none; padding: 10px 0 9px; border: 0; background: none; color: var(--ink-2); font-size: 14px; font-weight: 400; white-space: nowrap; border-bottom: 2px solid transparent; cursor: pointer; }
.rank-boards > .is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.rank-boards > span.is-on { cursor: default; }
.rank-ranges { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: var(--s2) 0 var(--s1); }
.rank-ranges::-webkit-scrollbar { display: none; }
.rank-ranges button { flex: none; min-height: 26px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.rank-ranges button.is-on { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink-2); color: var(--ink); }
.rank-empty { display: grid; justify-items: center; gap: var(--s2); }
.rank-empty p { margin: 0; }
.rank-empty .link-btn { padding: 6px 14px; font-size: 13px; text-decoration: none; }
.rank-note { margin-top: var(--s4); }
/* 排行榜固定奖金的「奖励榜」(public/rank-prizes.js):10-31 老板选概念图 B「奖金阶梯」。主视觉横幅(海报角色 + 标题 + 总奖金 + 翻牌倒数)、
   十级台阶(奖金和站在上面的人一行)、奖金线下的自己。牛牛红金 .rp-niu、大话骰紫金 .rp-duel;字体借大厅横幅那三套子集(lobby-promo.css) */
.rank-prize { --rp-gold: #f6cf5a; --rp-gold-2: #b98a2c; --rp-deep: #2e070b; --rp-mid: #6b1118; --rp-glow: rgba(255, 70, 60, .28); margin: var(--s3) 0 var(--s2); }
.rank-prize.rp-duel { --rp-deep: #180933; --rp-mid: #4a1a86; --rp-glow: rgba(170, 90, 255, .3); }
.rp-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s2); min-height: 116px; padding: var(--s3) var(--s3) var(--s3) 108px; border-radius: var(--r-tile); overflow: hidden; background: radial-gradient(120% 150% at 0% 60%, var(--rp-mid), var(--rp-deep) 72%); box-shadow: inset 0 0 0 1px rgba(246, 207, 90, .7), 0 0 18px var(--rp-glow); }
.rp-art { position: absolute; left: -8px; bottom: 0; width: 124px; height: 124px; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); pointer-events: none; }
.rp-head { position: relative; display: grid; gap: 2px; min-width: 0; }
/* 金字用 background-clip:text:上面垫 padding 再拉回,越南文声调才不会被切掉;泰文字距一律 0 */
.rp-title { padding-top: 6px; margin-top: -6px; font: 900 30px/1.1 'PA Banner Serif', 'PA Banner Sans', system-ui, sans-serif; letter-spacing: 0; overflow-wrap: break-word; background: linear-gradient(180deg, #fff4c4, var(--rp-gold) 45%, var(--rp-gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)); }
.rp-duel .rp-title { font-family: 'PA Banner Sans', system-ui, sans-serif; }
.rp-days { color: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-total { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.rp-total small { color: rgba(255, 255, 255, .75); font-size: 12px; }
.rp-total b { color: var(--rp-gold); font-size: 16px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-clock { position: relative; display: grid; justify-items: center; gap: 4px; }
.rp-clock > small { color: rgba(255, 255, 255, .8); font-size: 12px; white-space: nowrap; }
.rp-flip { display: flex; gap: 4px; }
.rp-flip > span { display: grid; justify-items: center; gap: 2px; }
.rp-flip b { position: relative; display: grid; place-items: center; min-width: 38px; height: 40px; padding: 0 4px; border-radius: 6px; background: linear-gradient(180deg, #2b2b2b 50%, #171717 50%); box-shadow: inset 0 0 0 1px rgba(246, 207, 90, .55); color: var(--rp-gold); font: 800 26px/1 'PA Banner Num', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.rp-flip b::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .65); }
.rp-flip small { color: rgba(255, 255, 255, .75); font-size: 11px; }
.rp-clock.is-done b { color: var(--rp-gold); font-size: 15px; font-weight: 800; white-space: nowrap; }
.rp-basis { margin: var(--s2) 2px 0; color: var(--ink-2); font-size: 12px; }
/* 台阶:第 1 金、第 2 银、第 3 铜,4–10 跟着游戏的深红 / 深紫;两头各一颗小灯泡 */
.rp-ladder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: var(--s2) 0 0; padding: 0; list-style: none; }
.rp-step { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 12px; color: #fff; background: linear-gradient(90deg, var(--rp-mid), var(--rp-deep)); box-shadow: inset 0 0 0 1px rgba(246, 207, 90, .55); }
.rp-step::before, .rp-step::after { content: ''; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #ffe9a8; box-shadow: 0 0 5px 2px rgba(255, 214, 110, .75); }
.rp-step::before { left: 4px; }
.rp-step::after { right: 4px; }
.rp-step.s1 { min-height: 50px; color: #2e1b00; background: linear-gradient(90deg, #fff0b4, #f0bf4c 45%, #cf9a38); box-shadow: inset 0 0 0 1px #fff3c6, 0 0 14px rgba(246, 207, 90, .45); }
.rp-step.s2 { color: #141922; background: linear-gradient(90deg, #f2f4f8, #bcc3cf 50%, #9aa2b1); box-shadow: inset 0 0 0 1px #f7f9fc; }
.rp-step.s3 { background: linear-gradient(90deg, #c47a42, #a5612f 50%, #8a4c22); box-shadow: inset 0 0 0 1px #f0b98a; }
.rp-step.is-me { box-shadow: inset 0 0 0 2px #fff, 0 0 12px rgba(255, 255, 255, .35); }
.rp-rank { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(246, 207, 90, .8); color: var(--rp-gold); font: 800 15px/1 'PA Banner Num', system-ui, sans-serif; }
.s1 .rp-rank, .s2 .rp-rank, .s3 .rp-rank { color: inherit; background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 1.5px currentColor; }
/* 奖金那格照这张榜最大那笔留宽(--pw 是字数),头像和名字才会一行一行对齐 */
.rp-prize { flex: none; min-width: calc(var(--pw, 7) * .5em + 1.2em); color: var(--rp-gold); font: 800 17px/1 'PA Banner Num', system-ui, sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s1 .rp-prize, .s2 .rp-prize { color: inherit; }
.s3 .rp-prize { color: #fff3d6; }
.rp-av { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(246, 207, 90, .6); color: #fff; font-size: 12px; font-weight: 700; }
.rp-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.rp-nm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.rp-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 600; }
.rp-nm > .pill { flex: none; }
/* 大话骰:赢的钱放名字底下一行 */
.rp-duel .rp-who { flex-direction: column; align-items: stretch; gap: 3px; }
.rp-duel .rp-who .rp-val { font-size: 13px; opacity: .92; }
.rp-val { flex: none; white-space: nowrap; font: 700 15px/1 'PA Banner Num', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.rp-val small { margin: 0 2px; color: inherit; font-family: system-ui, sans-serif; font-size: 11px; font-weight: 500; opacity: .8; }
.rp-open { flex: 1; min-width: 0; color: rgba(255, 255, 255, .45); font-size: 13px; }
.s1 .rp-open, .s2 .rp-open { color: rgba(0, 0, 0, .45); }
.rp-line { display: flex; align-items: center; gap: var(--s2); margin: var(--s3) 0 var(--s2); color: var(--rp-gold); font-size: 12px; font-weight: 700; }
.rp-line::before, .rp-line::after { content: ''; flex: 1; border-top: 1px dashed rgba(246, 207, 90, .6); }
.rp-me { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s2); padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 13px; }
.rp-me-rank { color: var(--ink-2); font-weight: 700; }
.rp-me-who { font-weight: 700; }
.rp-gap { display: flex; align-items: baseline; gap: 6px; margin-left: auto; color: var(--rp-gold); }
.rp-gap small { color: rgba(255, 255, 255, .75); font-size: 12px; }
.rp-gap b { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-gap b small { color: inherit; margin-left: 2px; }
.rp-wait { margin: var(--s3) 0 0; color: var(--ink-2); font-size: 13px; text-align: center; }
/* 小屏(320–359):主视觉和翻牌缩一号、拿掉头像,名字才有位子 */
@media (max-width: 359px) {
  .rp-hero { padding-left: 88px; min-height: 104px; }
  .rp-art { width: 104px; height: 104px; }
  .rp-title { font-size: 25px; }
  .rp-flip b { min-width: 32px; height: 34px; font-size: 22px; }
  .rp-step { gap: 6px; padding: 6px 12px; }
  .rp-av { display: none; }
  .rp-prize { font-size: 15px; }
  .rp-val { font-size: 13px; }
  .rp-duel .rp-who .rp-val { font-size: 12px; }
}
.wallet-actions button:first-child { background: var(--neon) !important; color: var(--neon-ink) !important; box-shadow: none !important; }
.tabs, .seg { flex-wrap: nowrap !important; }

/* ---------- 弹层(设计稿 50–53) ---------- */
.sheet { background: rgba(0, 0, 0, .66) !important; backdrop-filter: blur(2px); }
.sheet-card {
  background: var(--surface) !important; background-image: none !important;
  border: 0 !important; border-radius: var(--r-sheet) var(--r-sheet) 0 0 !important;
  box-shadow: 0 -1px 0 var(--line) !important;
  padding: var(--s2) var(--pad) calc(var(--safe-b) + var(--s5)) !important;
}
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong) !important; }
.sheet-card h3 { font-size: 22px; font-weight: 700; color: var(--ink); }
.sheet-card > .hint, .sheet-card .hint { color: var(--ink-2); }
.sheet-card .panel { background: var(--surface-2) !important; }
.sheet-done { margin-top: var(--s4); }

/* 充值:金额格子 */
.dep-amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-bottom: var(--s3); }
.dep-amt {
  min-height: var(--h-btn); border: 0; border-radius: var(--r-tile);
  background: var(--surface-2) !important; background-image: none !important;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink) !important;
  font-family: var(--sans); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
}
.dep-amt.is-on { background: var(--neon) !important; color: var(--neon-ink) !important; box-shadow: none; }
.dep-amt:disabled { opacity: .35; cursor: default; } /* 比这个渠道的最低金额还小 */
.dep-amt small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; opacity: .7; } /* USDT 档位下面的 ≈ 多少 */
/* 没充值过的人多一颗首充金额(2026-10-30):十颗排成两行五颗,字小一号放得下「20,000」;首充那颗底下标「首充」、柠檬边 */
.dep-amts-rm { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; } /* 两行一样高(首充那颗多一行字) */
.dep-amts-rm .dep-amt { padding-inline: 0; font-size: 15px; }
.dep-amt.is-first:not(.is-on) { box-shadow: inset 0 0 0 1.5px var(--neon); }
.dep-amt.is-first small { color: var(--neon); opacity: 1; font-weight: 700; }
.dep-amt.is-first.is-on small { color: inherit; }

/* 充值:方式 */
.dep-chans { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.dep-chan {
  display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 64px; padding: var(--s3) var(--s4);
  border: 0 !important; border-radius: var(--r-tile);
  background: var(--surface-2) !important; background-image: none !important;
  box-shadow: inset 0 0 0 1px var(--line) !important; color: var(--ink) !important;
  font-family: var(--sans); text-align: left; cursor: pointer;
}
.dep-chan.is-on { box-shadow: inset 0 0 0 1px var(--neon) !important; }
.dep-chan .ico { flex: none; width: 24px; height: 24px; background: none !important; box-shadow: none !important; color: var(--ink); }
.dep-chan .ui-icon { width: 24px; height: 24px; }
.dep-chan .body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dep-chan .body b { font-size: 16px; font-weight: 700; }
.dep-chan .body small { font-size: 12px; color: var(--ink-2); }
/* 选中那一项右边补一颗黄圈勾,跟设计稿一致 */
.dep-chan::after { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.dep-chan.is-on::after { box-shadow: inset 0 0 0 1px var(--neon); background: var(--neon); }

/* Native radio choices: compact QR / FPX selector, no image downloads. */
.dep-auto-methods { min-width: 0; padding: 0; border: 0; margin: var(--s4) 0; }
.dep-auto-methods legend { padding: 0; margin-bottom: var(--s2); font-size: 15px; font-weight: 700; color: var(--ink); }
.dep-auto-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--s2); } /* QR / FPX / USDT 一行排开,只开两个就两格 */
.dep-auto-option { position: relative; min-width: 0; cursor: pointer; }
.dep-auto-option input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; }
.dep-auto-choice { display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; align-content: center; align-items: center; gap: var(--s1) var(--s2); height: 100%; min-height: 72px; padding: var(--s3); border-radius: var(--r-tile); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.dep-auto-icon, .dep-auto-check { display: flex; flex: none; }
.dep-auto-icon .ui-icon { width: 24px; height: 24px; }
.dep-auto-choice .body { display: contents; }
.dep-auto-choice b { grid-column: 2; grid-row: 1; font-size: 16px; line-height: 1.25; font-weight: 700; }
.dep-auto-choice small { grid-column: 1 / -1; grid-row: 2; min-width: 0; font-size: 12px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.dep-auto-check { grid-column: 3; grid-row: 1; width: 16px; height: 16px; color: var(--neon); visibility: hidden; }
.dep-auto-check .ui-icon { width: 100%; height: 100%; }
.dep-auto-option input:checked + .dep-auto-choice { box-shadow: inset 0 0 0 1px var(--neon); }
.dep-auto-option input:checked + .dep-auto-choice .dep-auto-check { visibility: visible; }
.dep-auto-option input:focus-visible + .dep-auto-choice { outline: 2px solid var(--neon); outline-offset: 3px; }
.dep-auto-option:active .dep-auto-choice { background: var(--surface); }
.dep-auto-methods:disabled { opacity: .5; }
.dep-auto-methods:disabled .dep-auto-option { cursor: wait; }
@media (hover: hover) { .dep-auto-option:hover .dep-auto-choice { background: var(--surface); } }

.dep-detail { display: grid; justify-items: center; gap: var(--s2); padding: var(--s4) !important; text-align: center; }
.dep-qr { width: 180px; height: 180px; border-radius: var(--r-tile); background: #fff; object-fit: contain; }
.dep-detail .kv { display: grid; gap: 2px; width: 100%; justify-items: center; border: 0 !important; padding: 0 !important; }
.dep-detail .kv span { font-size: 12px; color: var(--ink-2); }
.dep-copy { font-size: 18px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* 键值行 */
.kv { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; padding: 0 var(--s4); border: 0 !important; }
.kv + .kv { box-shadow: inset 0 1px 0 var(--line); }
.kv span { font-size: 14px; color: var(--ink-2); }
.kv b { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* 输入框 */
.field { display: grid; gap: 6px; margin-bottom: var(--s3); }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  min-height: var(--h-btn); padding: 0 var(--s4);
  background: var(--surface-2) !important; border: 0 !important;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--neon) !important; }

/* 主按钮铺满一行 */
.sheet-card .btn-gold, .sub-body .btn-gold { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--h-btn); font-size: 16px; font-weight: 700; }
.transfer-balance { margin: var(--s2) 0 var(--s3); font-size: 13px; color: var(--ink-2); text-align: center; }
.transfer-balance b { color: var(--ink); font-weight: 700; }
.wd-bar { height: 6px; margin: var(--s2) var(--s4) 0; border-radius: 3px; background: var(--bg); overflow: hidden; }
.wd-bar i { display: block; height: 100%; background: var(--neon); }
.dep-detail .btn-ghost { min-height: var(--h-btn-sm); padding: 0 var(--s4); font-size: 14px; font-weight: 600; }

/* 充值优惠(2026-10-26):标题下的横幅 + 金额框下「本次加送」。横幅走面层 + 细线,只有加送的那个数字用黄(一屏一块黄) */
.dpb-banner { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-tile); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.dpb-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); color: var(--ink); font-size: 15px; font-weight: 700; }
.dpb-head .ui-icon { width: 20px; height: 20px; color: var(--ink-2); }
.dpb-list { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.dpb-rule { padding-top: var(--s2); box-shadow: inset 0 1px 0 var(--line); }
.dpb-rule:first-child { padding-top: 0; box-shadow: none; }
.dpb-top { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.dpb-kind { flex: none; padding: 2px 8px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink); font-size: 12px; font-weight: 600; }
.dpb-name { min-width: 0; color: var(--ink); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.dpb-facts { display: flex; flex-wrap: wrap; gap: 4px var(--s3); margin-top: 6px; color: var(--ink-2); font-size: 13px; }
.dpb-fact b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dpb-foot { margin: var(--s2) 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.dpb-preview { margin: -4px 0 var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r-tile); background: var(--surface-2); }
.dpb-preview[hidden] { display: none; }
.dpb-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); color: var(--ink-2); font-size: 14px; }
.dpb-row b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.dpb-row b.dpb-plus { color: var(--neon); font-size: 17px; }
.dpb-sub { margin-top: 2px; font-size: 12px; }
.dpb-none { margin: 0; color: var(--ink-2); font-size: 13px; }

/* 抢福利(福利红包):熊猫老板派红包底图(老板 10-27 挑概念 C,img/dk/rpk-panda-v1.webp,无字 4:5)。
 * 图下半是一块往下融进黑底的暗红,标题、玩法、按钮 / 金额都叠在那里;图本身放在 ::before,结束的状态只把图压暗、字不跟着暗 */
.rpk-card {
  position: relative; display: grid; align-items: end; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; max-height: min(560px, 66vh); border-radius: var(--r-card); background: #170707; color: #ffe08a; text-align: center;
}
.rpk-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(14, 6, 6, 0) 52%, rgba(14, 6, 6, .72) 78%, rgba(14, 6, 6, .92) 100%), url("/img/dk/rpk-panda-v1.webp") center top / cover no-repeat;
  transition: filter .3s var(--ease);
}
.rpk-card.is-ended::before { filter: grayscale(.75) brightness(.55); }
.rpk-over { display: grid; justify-items: center; gap: var(--s2); padding: var(--s4) var(--s4) var(--s5); }
.sheet-card .rpk-title { margin: 0; color: #fff3cf; font-size: 24px; font-weight: 800; overflow-wrap: anywhere; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.rpk-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rpk-tags span { padding: 2px 10px; border-radius: var(--r-pill); background: rgba(20, 6, 6, .45); box-shadow: inset 0 0 0 1px rgba(255, 224, 138, .55); font-size: 12px; font-weight: 600; }
.rpk-label { margin: var(--s2) 0 0; color: #fff3cf; font-size: 17px; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.rpk-amount { margin: 0; color: #ffe08a; font-size: 44px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 3px 14px rgba(0, 0, 0, .65); }
.rpk-note { margin: 0; color: rgba(255, 243, 207, .85); font-size: 13px; }
.rpk-note b { color: #fff3cf; }
/* 金币按钮:浅金到深金,底边一道暗红压出厚度 */
.rpk-grab {
  display: grid; place-items: center; width: 104px; height: 104px; margin-top: var(--s2); border: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4 0%, #ffd766 48%, #d9a032 100%); color: #7a1219;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5), inset 0 -4px 0 rgba(122, 18, 25, .28), 0 0 0 3px rgba(255, 224, 138, .25);
  font-family: var(--sans); font-size: 21px; font-weight: 800; cursor: pointer; transition: transform .12s var(--ease);
}
.rpk-grab:active:not(:disabled) { transform: scale(.95); }
.rpk-grab:disabled { opacity: .6; cursor: wait; }
.rpk-grab:focus-visible { outline: 2px solid #fff3cf; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rpk-card::before, .rpk-grab { transition: none; } }
.rpk-meta { margin-top: var(--s3); }
.rpk-claim .end { display: flex; align-items: center; gap: var(--s2); }
.rpk-claim .end b { font-variant-numeric: tabular-nums; }
.rpk-best { padding: 1px 8px; border-radius: var(--r-pill); background: rgba(255, 224, 138, .14); color: #ffe08a; font-size: 11px; font-weight: 700; white-space: nowrap; }

/* ---------- 牛牛牌桌(设计稿 10–12) ----------
 * 牌桌本来就是聊天室:顶栏 + 阶段条 + 消息流 + 快捷注码 + 输入条。
 * 这里只换皮,结构一个都不动。
 */
.table, .table .feed { background: var(--bg) !important; background-image: none !important; }
.t-top {
  display: flex; align-items: center; gap: var(--s3);
  /* 同上:牌桌顶栏也顶到状态栏,regal.css 那边的 --safe-t 被这条盖掉了 */
  padding: calc(var(--s3) + var(--safe-t)) var(--pad) var(--s3);
  background: var(--bg) !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important;
}
.t-title { flex: 1; min-width: 0; text-align: center; }
#tRoomName { font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-block: 4px; margin-block: -4px; }  /* 右边三颗按钮(音乐 / 排行榜 / 白底),长房名一行省略,不把顶栏撑高;上下各让 4px 裁切框,缅文 / 泰文的上下标不被切 */
.t-online { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; min-width: 0; }  /* 马来 / 越南 / 泰文在窄屏会折两行把顶栏撑高:一行到底,放不下的字省略 */
.t-online span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.t-online i { flex: none; }
@media (max-width: 359px) { .t-top { gap: var(--s2); } }  /* 320px 小手机:四颗按钮挤掉房名,间距收一点 */
.t-online i { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); }

/* 阶段条 */
.t-phase {
  position: relative; display: flex; align-items: center; gap: var(--s3);
  margin: var(--s3) var(--pad) 0; padding: var(--s3) var(--s4);
  border: 0 !important; border-radius: var(--r-card);
  background: var(--surface) !important; background-image: none !important; box-shadow: inset 0 0 0 1px var(--line) !important;
}
.t-phase-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.t-phase-name {
  display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0 !important;
  background: none !important; color: var(--ink) !important; font-size: 16px; font-weight: 700;
}
.t-phase-name::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); }
.t-phase-hint { font-size: 13px; color: var(--ink-2); }
.t-clock { margin-left: auto; font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.t-phase-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: none; }
.t-phase-fill { height: 100%; background: var(--neon) !important; }
.t-phase .btn-gold { flex: none; }
.t-phase .link-btn { flex: none; font-size: 13px; }

/* 消息流 */
.feed { padding: var(--s4) var(--pad) var(--s3) !important; }
/* 封盘账单：一个不可变快照，名单默认六行。沿用牌桌深色面层，避免长卡撑满小屏。 */
.feed > .card.niu-seal { margin: var(--s2) 0; width: 100%; max-width: 440px; padding: var(--s4); border-radius: var(--r-card); }
.niu-seal-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.niu-seal-icon { color: var(--neon); background: var(--surface-2); width: 40px; height: 40px; border-radius: var(--r-tile); display: grid; place-items: center; flex: none; }
.niu-seal-head h4 { color: var(--ink); font-size: 18px; line-height: 1.3; margin: 0; }
.niu-seal-head p, .niu-seal-round { color: var(--ink-2); font-size: 12px; margin: var(--s1) 0 0; }
.niu-seal-head > div { min-width: 0; }
.niu-seal-round { margin-inline-start: auto; text-align: end; flex-shrink: 0; }
.niu-seal-stats { margin: 0; font-variant-numeric: tabular-nums; }
.niu-seal-stats > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: baseline; gap: var(--s3); padding: var(--s1) 0; font-size: 14px; }
.niu-seal-stats dt { color: var(--ink-2); overflow-wrap: anywhere; }
.niu-seal-stats dt small { display: block; font-size: 11px; }
.niu-seal-stats dd { margin: 0; text-align: end; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.niu-seal-stats .niu-seal-banker { color: var(--ink); }
.niu-seal-stats .niu-seal-packet { margin-top: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); }
.niu-seal-packet strong { color: var(--neon); font-size: 18px; }
.niu-seal-roster { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.niu-seal-roster h5 { display: flex; justify-content: space-between; gap: var(--s2); font-size: 13px; margin: 0 0 var(--s2); font-weight: 600; }
.niu-seal-roster h5 > span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.niu-seal-roster ol { padding: 0; margin: 0; list-style: none; }
.niu-seal-bet { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; font-size: 13px; }
.niu-seal-player { display: flex; gap: var(--s1); flex-wrap: wrap; min-width: 0; align-items: baseline; }
.niu-seal-player b { font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.niu-seal-player small { color: var(--ink-2); font-size: 11px; }
.niu-seal-bet > strong { white-space: nowrap; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.niu-seal-bet.is-me .niu-seal-player b { color: var(--neon); }
.niu-seal-roster summary { min-height: 44px; display: flex; justify-content: space-between; gap: var(--s2); align-items: center; cursor: pointer; border-radius: var(--s2); padding: var(--s2); margin-top: var(--s1); color: var(--ink-2); background: var(--surface-2); font-size: 13px; }
.niu-seal-roster summary:hover, .niu-seal-roster summary:active { color: var(--ink); }
.niu-seal-roster summary:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.niu-seal-roster details[open] > summary { color: var(--ink); }
.niu-seal-note { margin: var(--s3) 0 0; color: var(--ink-2); font-size: 12px; }
.m-join { text-align: center; font-size: 13px; color: var(--ink-2); }
.table-welcome .welcome-art { display: none !important; } /* 旧皮肤的米色插图,在黑底上是脏的 */
.banner img:not(.bn-bull) { display: none !important; }        /* 旧皮肤那几张整版横幅图,同理 */

/* 牛牛五阶段：红外套角色 + 可翻译主标题；牛加水的机车牛不用于这里。
   94px 紧凑消息卡，主标题优先；透明角色不再用渐变遮罩。 */
.banner {
  position: relative; display: grid !important; align-items: center;
  grid-template-columns: 106px minmax(0, 1fr) 14px; gap: 0;
  min-height: 94px; margin: 24px 0 var(--s3) !important;
  padding: 0 12px 0 0 !important; width: 100%; max-width: 100%;
  border-radius: 16px; overflow: visible; text-align: left;
  background: var(--surface) !important; border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--line) !important;
}
.banner::before { content: none; }
.banner::after {
  content: ''; position: absolute; right: 12px; bottom: 16px;
  width: 16px; height: 2px; background: var(--line);
}
.bn-bull {
  display: block; position: relative; align-self: end; width: 106px; height: 106px;
  margin-top: -12px; object-fit: contain; pointer-events: none; -webkit-user-drag: none;
}
.bn-phase-copy { min-width: 0; padding: 16px 0; }
.bn-phase-label { display: block; margin-bottom: 8px; font-size: 9px; line-height: 1.2; letter-spacing: .1em; color: var(--ink-2); }
.bn-phase-mark { align-self: start; justify-self: end; padding-top: 12px; font-size: 10px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.banner .t {
  min-width: 0; font-size: 23px; font-weight: 800; line-height: 1.25;
  color: var(--ink); white-space: normal; overflow-wrap: anywhere; text-align: left;
}
.banner.start_bid .t, .banner.start_bet .t, .banner.start_bid .bn-phase-mark, .banner.start_bet .bn-phase-mark { color: var(--neon); }
.banner.start_bid::after, .banner.start_bet::after { background: var(--neon); }
.banner.redo .t, .banner.redo .bn-phase-mark { color: var(--bad); }
.banner.redo::after { background: var(--bad); }
/* 同权重覆盖仍在加载的旧皮肤，五阶段字重/字号一致。 */
.banner.start_bid .t, .banner.stop_bid .t, .banner.start_bet .t, .banner.closed .t, .banner.redo .t {
  font-size: 23px; letter-spacing: .025em; text-shadow: none;
}
.banner.stop_bid .t, .banner.closed .t { color: var(--ink); }
/* 图片加载失败依然显示完整状态，未知事件只显示安全转义后的文字。 */
.banner.no-art { grid-template-columns: minmax(0, 1fr) 14px; padding-left: 16px !important; }
.banner.unknown { display: flex !important; min-height: 0; padding: 0 !important; background: none !important; box-shadow: none !important; justify-content: center; }
.banner.unknown::before, .banner.unknown::after { content: none; }
.banner.unknown .t { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.banner.bn-live { animation: phase-arrive 180ms cubic-bezier(.23, 1, .32, 1); }
@keyframes phase-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .banner.bn-live { animation: none; } }
@media (max-width: 360px) {
  .banner { grid-template-columns: 90px minmax(0, 1fr) 12px; }
  .bn-bull { width: 90px; height: 96px; margin-top: -2px; }
  .banner.start_bid .t, .banner.stop_bid .t, .banner.start_bet .t, .banner.closed .t, .banner.redo .t { font-size: 21px; }
}
.table-welcome { display: grid; justify-items: center; gap: var(--s2); padding: var(--s6) var(--s4); background: none !important; }
.table-welcome h2 { font-size: 17px; font-weight: 700; color: var(--ink); }
.table-welcome p { margin: 0; font-size: 13px; color: var(--ink-2); }

.msg { gap: var(--s2) !important; }
.msg .name { font-size: 13px; font-weight: 700; color: var(--ink); }
.msg .name time { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--ink-2); opacity: 1; }
.bubble {
  background: var(--surface) !important; background-image: none !important;
  border: 0 !important; border-radius: var(--r-tile) !important; box-shadow: none !important;
  color: var(--ink) !important; padding: var(--s3) var(--s4) !important;
}
.bubble .t { color: var(--ink); }
.bubble time, .msg.mine .bubble time { color: var(--ink-2); }
.bubble.num .t { font-size: 26px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.msg.mine .bubble { background: var(--surface-2) !important; }
.effect { display: inline-block; margin-top: 5px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 12px; font-weight: 600; }
/* Match legacy variant specificity: a generic .effect cannot replace pink/cream fills. */
.effect.bid, .effect.bet, .effect.showhand, .effect.unbet, .effect.rejected { background: var(--surface-2); }
.effect.bid, .effect.bet, .effect.showhand { color: var(--neon); box-shadow: inset 0 0 0 1px rgba(229, 255, 61, .4); }
.effect.unbet { color: var(--ink-2); }
.effect.rejected { color: var(--bad); box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .4); }
/* 系统消息按设计稿摆成居中的一行灰字,不带头像和气泡 */
.m-system { display: block !important; text-align: center; }
.m-system .av.bot, .m-system .name { display: none !important; }
.m-system .bubble { background: none !important; padding: var(--s1) 0 !important; }
.m-system .bubble .t { font-size: 13px; color: var(--ink-2); }
.m-system .bubble .t b { color: var(--ink); }
.m-system.mentions-me .bubble .t { color: var(--neon); }

/* 红包卡 */
.hb { border-radius: var(--r-card) !important; overflow: hidden; }
.hb-top { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) !important; }
.hb-icon { flex: none; width: 44px; height: 44px; border-radius: var(--r-tile); display: grid; place-items: center; background: #c62828 !important; color: #ffe08a !important; }
.hb-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.hb-foot { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4) !important; font-size: 12px; color: var(--ink-2); box-shadow: inset 0 1px 0 var(--line) !important; }
.hb-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); }
.hb-row + .hb-row { box-shadow: inset 0 1px 0 var(--line); }
.hb-row .end b { color: var(--neon); font-variant-numeric: tabular-nums; }
.hb-row .end small, .hb-row .body small { display: block; font-size: 12px; color: var(--ink-2); }
.hb-amount { font-size: 30px; font-weight: 800; color: var(--neon); font-variant-numeric: tabular-nums; }
.hb-amount small { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.hb-hand, .hb-meta, .hb-sum { font-size: 13px; color: var(--ink-2); }
.hb-veil { background: linear-gradient(90deg, #c62828, #8e1c1c) !important; color: #ffe08a !important; }

/* 侧边三颗按钮 */
.t-side { display: flex; gap: var(--s2); padding: 0 var(--pad) var(--s2); background: none !important; }
.side-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; overflow-wrap: anywhere;
  min-height: var(--h-btn-sm); border: 0 !important; border-radius: var(--r-pill);
  background: var(--surface) !important; background-image: none !important; box-shadow: inset 0 0 0 1px var(--line) !important;
  color: var(--ink-2) !important; font-family: var(--sans); font-size: 13px; font-weight: 600;
}
.side-btn .ui-icon { width: 15px; height: 15px; }
.side-btn.is-on { background: var(--neon) !important; color: var(--neon-ink) !important; box-shadow: none !important; }

/* 快捷注码(设计稿 10 里那一排) */
.t-chips { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad) var(--s2); background: none !important; }
.t-chips::-webkit-scrollbar { display: none; }
.t-chips button {
  flex: none; min-width: 64px; min-height: 48px; padding: 0 var(--s4); border: 0 !important; border-radius: var(--r-pill);
  background: var(--surface) !important; background-image: none !important; box-shadow: inset 0 0 0 1px var(--line) !important;
  color: var(--ink) !important; font-family: var(--sans); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.t-chips button.is-on, .t-chips button.is-active { background: var(--neon) !important; color: var(--neon-ink) !important; box-shadow: none !important; }

/* 输入条 */
.t-input { background: var(--bg) !important; border-top: 1px solid var(--line) !important; box-shadow: none !important; padding: var(--s2) var(--pad) calc(var(--safe-b) + var(--s2)) !important; }
.t-status { display: flex; align-items: center; gap: 6px; padding: 0 var(--s2) 6px; font-size: 12px; color: var(--ink-2); }
.t-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); }
.t-bal { margin-left: auto; font-weight: 700; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.t-form { display: flex; align-items: center; gap: var(--s2); }
.t-form input {
  flex: 1; min-width: 0; min-height: var(--h-btn); padding: 0 var(--s4);
  border: 0 !important; border-radius: var(--r-pill) !important;
  background: var(--surface) !important; color: var(--ink) !important;
  font-family: var(--sans); font-size: 16px;
}
.t-form input::placeholder { color: var(--ink-3); }
.t-form input:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--neon) !important; }
.t-form .icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--surface) !important; box-shadow: inset 0 0 0 1px var(--line) !important; color: var(--ink) !important; }
.t-form .icon-btn.send { background: var(--neon) !important; color: var(--neon-ink) !important; box-shadow: none !important; }

/* 成绩榜 */
.res .r1, .cmp .r1 { display: flex; align-items: center; gap: var(--s2); }
.r1 .badge { flex: none; display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.r1 .badge.crown { background: var(--neon); color: var(--neon-ink); }
.r1 .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.r1 .hd { font-size: 13px; color: var(--ink-2); }
.r1 .amt { font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- 提示条 / 启动 / 登录(设计稿 61、01) ---------- */
.toast {
  background: var(--surface) !important; background-image: none !important;
  border: 0 !important; border-radius: var(--r-pill) !important;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .6) !important;
  color: var(--ink) !important; font-size: 14px; font-weight: 600;
  padding: var(--s3) var(--s5) !important;
}
.startup { background: var(--bg) !important; color: var(--ink) !important; }
.startup b { color: var(--ink); }
.startup span { color: var(--ink-2); }
/* 登录 / 启动(设计稿 01):熊猫立在纯黑上,下面品牌、一句话、一颗黄按钮 */
.login { display: grid; place-items: center; min-height: 100dvh; padding: calc(var(--safe-t) + var(--s5)) var(--pad) calc(var(--safe-b) + var(--s5)); background: var(--bg) !important; background-image: none !important; }
.login-card { display: grid; justify-items: center; width: 100%; max-width: 420px; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; text-align: center; }
.login-art { display: block !important; width: min(62%, 240px); height: auto; margin-bottom: var(--s3);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.login-title { margin: 0; font-size: 38px; font-weight: 800; letter-spacing: -.02em; color: var(--ink) !important; -webkit-text-fill-color: var(--ink); background: none !important; }
/* 字标:Party 白 + Animal 柠檬黄。整个是排版不是图 —— 照设计规范「只有角色是图片,其余全 CSS」。
   i 只是借个短标签来分色,不要斜体。 */
.wordmark { font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.wordmark i { font-style: normal; color: var(--neon); -webkit-text-fill-color: var(--neon); }
.pa-wordmark{display:block;width:min(300px,100%);margin-inline:auto;line-height:0}
.pa-wordmark img{display:block;width:100%;height:auto;mix-blend-mode:screen}
.startup .pa-wordmark{width:min(280px,80vw)}
.pa-start-mark{display:block;flex:none}
.bn-brand.pa-lockup{display:flex;align-items:center;gap:8px;min-width:0;flex-shrink:1}
.pa-lockup .pa-mark{display:block;width:32px;height:32px;flex:none}
.login-lead { margin: 6px 0 var(--s5); font-size: 14px; color: var(--ink-2); }
.login .field { width: 100%; text-align: left; }
.login .btn-gold { width: 100%; }
.login-note, .login .hint { margin-top: var(--s3); font-size: 12px; color: var(--ink-3) !important; }
.login-games { margin-top: var(--s5); font-size: 13px; color: var(--ink-3); }
.err { color: var(--bad) !important; }

/* 注册 / 审核那一屏已经直接改了 public/registration.css,不用再在这里打补丁。 */

/* ---------- 后台(设计稿 70) ----------
 * 后台只有管理员看得到,不用做到像玩家界面那么细,但也不能是一整片白。
 * 按「底 / 面 / 线 / 字」四类压成同一套黑金柠檬。
 */
.admin-workspace, .admin-main, .admin-content, .admin-view, .admin-table-scroll { background: var(--bg) !important; background-image: none !important; color: var(--ink) !important; }
.admin-sidebar, .admin-topbar { background: var(--surface) !important; background-image: none !important; border-color: var(--line) !important; color: var(--ink) !important; }
.admin-card, .admin-person, .admin-task, .admin-room-row, .admin-player-row, .admin-review-list, .admin-review-detail,
.admin-review-summary, .admin-detail-fields, .admin-metrics, .admin-kv, .admin-filters, .admin-list-toolbar, .admin-player-table, .admin-session,
.lx-table {
  background: var(--surface) !important; background-image: none !important;
  border-color: var(--line) !important; box-shadow: none !important; color: var(--ink) !important;
}
.admin-workspace h1, .admin-workspace h2, .admin-workspace h3, .admin-workspace h4,
.admin-page-heading, .admin-detail-title, .admin-brand, .admin-player-name, .admin-money-total { color: var(--ink) !important; -webkit-text-fill-color: var(--ink); background: none !important; }
.admin-kicker, .admin-note, .admin-field-help, .admin-breadcrumb, .admin-empty, .admin-player-uid, .admin-player-seen, .admin-detail-meta, .admin-nav-label, .admin-previous-note,
.lx-wait { color: var(--ink-2) !important; }
.admin-workspace input, .admin-workspace select, .admin-workspace textarea, .admin-search, .admin-player-search {
  background: var(--surface-2) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: var(--r-tile) !important;
}
.admin-button { background: var(--surface-2) !important; background-image: none !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: var(--r-pill) !important; }
.admin-button.is-primary, .admin-button[data-primary] { background: var(--neon) !important; color: var(--neon-ink) !important; border: 0 !important; }
.admin-data-table th, .admin-data-table td { border-color: var(--line) !important; color: var(--ink); }
.admin-data-table thead th { background: var(--surface-2) !important; color: var(--ink-2) !important; }
.admin-avatar, .admin-person-avatar, .admin-player-avatar, .admin-brand-mark, .admin-icon, .admin-task-symbol, .admin-room-symbol, .admin-empty-symbol {
  background: var(--surface-2) !important; background-image: none !important; color: var(--ink) !important; border-color: var(--line) !important;
}
.admin-status, .admin-dup, .admin-nav-count, .admin-badge, .lx-tag, .lx-off { background: var(--surface-2) !important; color: var(--ink-2) !important; border-color: var(--line) !important; }
/* 骰面是这一页要一眼比对的东西,字要亮,别跟着弱化成 --ink-2 */
.lx-die { background: var(--surface-2) !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line) !important; }
.lx-seat { border-color: var(--line) !important; }
.admin-review-warning, .admin-review-notice, .admin-inline-message { background: var(--surface-2) !important; color: var(--ink-2) !important; border-color: var(--line) !important; }
/* 推广组织图「在树里看」定位到的那一列:原本吃浅色版的 --desk-red-soft 淡粉底,配上这里的白字整列看不见 */
.pt-row.is-focus { background: var(--surface-2) !important; box-shadow: inset 3px 0 0 var(--neon); }
/* 财务设置:上面 .sub-body .btn-gold 是给玩家端整排大按钮的,后台卡里的「切换 / 开放」被撑成整条、挤到下拉下面一行 */
.fin-card .btn.btn-sm { width: auto; min-height: 36px; padding: 6px 16px; font-size: 14px; flex: none; }
.fin-pick { flex-wrap: nowrap; }
.fin-now-row > .hint, .fin-now-row > p { padding: 0 var(--s4); }

/* ---------- 选头像(设计稿 49) ---------- */
.avatar-eyebrow { color: var(--ink-3) !important; letter-spacing: .18em; }
.avatar-picker-heading { color: var(--ink) !important; -webkit-text-fill-color: var(--ink); background: none !important; font-size: 22px; font-weight: 700; }
.avatar-picker-note, .avatar-picker-label { color: var(--ink-2) !important; }
.avatar-picker-preview {
  background: var(--surface-2) !important; background-image: none !important;
  border: 0 !important; border-radius: var(--r-card) !important; box-shadow: inset 0 0 0 1px var(--line) !important; color: var(--ink) !important;
}
.avatar-picker-preview b, .avatar-picker-preview strong { color: var(--ink) !important; }
.avatar-preview-portrait, .account-avatar, .avatar-option-image { background: var(--surface-2) !important; background-image: none !important; border-color: var(--line) !important; box-shadow: none !important; }
.avatar-option { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--ink) !important; }
.avatar-option-name { color: var(--ink-2) !important; font-size: 12px; }
.avatar-option[aria-pressed="true"] .avatar-option-image { box-shadow: 0 0 0 2px var(--neon) !important; }
.avatar-option[aria-pressed="true"] .avatar-option-name { color: var(--ink) !important; }
.avatar-option-check { background: var(--neon) !important; color: var(--neon-ink) !important; border: 0 !important; }
.avatar-picker-footer { background: linear-gradient(180deg, rgba(21, 21, 21, 0), var(--surface) 38%) !important; border: 0 !important; }
.avatar-picker-error { color: var(--bad) !important; }
.avatar-edit-badge { background: var(--neon) !important; color: var(--neon-ink) !important; }
.avatar-settings-entry { background: var(--surface) !important; box-shadow: inset 0 0 0 1px var(--line) !important; color: var(--ink) !important; }
.avatar-initial { color: var(--ink) !important; }
.avatar-picker-preview h4 { color: var(--ink) !important; font-size: 19px; }
.avatar-picker-preview span, .avatar-picker-preview p { color: var(--ink-2) !important; }
.avatar-picker-label b { color: var(--ink) !important; font-size: 15px; }
.avatar-picker-label > span { color: var(--ink-2) !important; }
.avatar-picker-footer { background: var(--surface) !important; box-shadow: 0 -12px 16px var(--surface) !important; }
.avatar-option-image { border: 0 !important; background: var(--surface-2) !important; }
.avatar-preview-portrait { border: 0 !important; outline: 0 !important; box-shadow: inset 0 0 0 1px var(--line) !important; }

/* ---------- 我的推广(设计稿 42) ---------- */
.ref-hero { display: grid; gap: 4px; margin-bottom: var(--s3); }
.ref-hero h2 { margin: 0; }
.ref-hero p { margin: 0; }
.panel-head { font-size: 15px; font-weight: 700; color: var(--ink) !important; -webkit-text-fill-color: var(--ink); background: none !important; }
.panel-head small { color: var(--ink-2) !important; }
.invite-code { display: flex; align-items: center; gap: var(--s2); font-size: 28px; font-weight: 800; color: var(--ink) !important; -webkit-text-fill-color: var(--ink); background: none !important; overflow-wrap: anywhere; }
.invite-code button { flex: none; border: 0; background: none; color: var(--ink-2); }
.invite-code .ui-icon { width: 20px; height: 20px; }
/* 推广二维码:白底黑格 + 四周留白,深色界面上扫码器才认得出来 */
.ref-qr-code { width: min(240px, 72%); margin: var(--s2) auto var(--s3); padding: 10px; border-radius: 16px; background: #fff !important; }
.ref-qr-code svg { display: block; width: 100%; height: auto; }
.ref-qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s2); }
.dashed { height: 1px; margin: var(--s3) 0; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); border: 0 !important; }
.lvls { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s3); }
.lvls > div { display: grid; gap: 2px; padding: var(--s3); border: 0 !important; border-radius: var(--r-tile); background: var(--surface-2) !important; text-align: center; }
.lvls .p { font-size: 12px; color: var(--ink-2); }
.lvls .n { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.lvls small { font-size: 11px; color: var(--ink-3); }
.stepline { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.stepline > div { display: grid; justify-items: center; gap: 3px; text-align: center; }
.stepline .no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2) !important; color: var(--ink-2) !important; font-size: 13px; font-weight: 700; }
.stepline b { font-size: 14px; color: var(--ink); }
.stepline small { font-size: 11px; color: var(--ink-2); }
.mark, .mark-lg { background: var(--surface-2) !important; color: var(--ink-2) !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 旧的米色插图已经整个删了(public/img/regal-v1/) ----------
 * 这几个 class 在旧样式表里是「一张米色大图当背景」,图没了会露出米色底块,
 * 这里换成中性面 + 线条图标。
 */
.account-avatar.is-default-mascot, .avatar-preview-portrait.is-default-mascot, .mascot-avatar,
.msg .av.bot, .hb-avatar, .avatar.regal-avatar {
  background: var(--surface-2) !important; background-image: none !important; color: var(--ink) !important;
  border-color: var(--line) !important;
}
.hb-avatar { display: grid; place-items: center; color: #ffcf7a !important; }
.hb-avatar .ui-icon { width: 20px; height: 20px; }
.login-art, .support-art, .profile-cover, .welcome-art { background-image: none !important; }
.support-art, .profile-cover { background: var(--surface) !important; box-shadow: inset 0 0 0 1px var(--line) !important; border: 0 !important; }

/* 旧皮肤把 has-art 的横幅文字藏起来了(字是画在图里的)。图没了,字要放出来 */
.banner.has-art .t { display: inline-flex !important; }
.banner.has-art { padding: 0 !important; background: none !important; border: 0 !important; }

/* ---------- 改版漏掉的几块:选择器对不上,整块落回旧皮肤 ----------
 * 这几处的共同点是「新样式挂在 A 上,模板渲染出来的是 B」,所以一条都没生效。
 */

/* 成绩榜每一行(牌桌每局出一次,对局记录里也有)。模板给的是 .res2,不是 .res .r1 */
.res2 .nm { background: none !important; color: var(--ink) !important; }
.res2.is-banker .nm { background: var(--neon) !important; color: var(--neon-ink) !important; padding: 2px 8px; border-radius: 8px; }
.res2 .hd { color: var(--ink-2) !important; }
.res2 .r2, .res2 .r2.trend { color: var(--ink-2) !important; }
/* 赢用黄 —— 旧皮肤这里是绿。输的金额「−x」用红(--bad):老板 10-19 要每个游戏输了只写输多少、红字,
   小鸡、扫雷、Hi-Lo、赛马、冲天鹰、射龙门、德州、牛加水都是红的,成绩榜也跟着红(以前这里是白) */
.res2.is-win .amt { color: var(--neon) !important; }
.res2.is-loss .amt { color: var(--bad) !important; }
.res2.is-push .amt { color: var(--ink-2) !important; }
.res2 .badge { background: var(--surface-2) !important; color: var(--ink-2) !important; }
.res2.is-win .badge { background: var(--neon) !important; color: var(--neon-ink) !important; }
.res2.is-push .badge { background: var(--surface-2) !important; color: var(--ink-2) !important; }
.res2 .badge.crown { background: none !important; color: var(--neon) !important; }

/* 红包详情弹层的头部。模板给的是 .hb-head,不是 .hb-top */
.hb-head {
  background: var(--surface-2) !important; background-image: none !important;
  border: 0 !important; box-shadow: inset 0 0 0 1px var(--line) !important;
  color: var(--ink) !important;
}
.hb-head .hb-from, .hb-head b { color: var(--ink) !important; }
.hb-head .hb-meta { color: var(--ink-2) !important; }

/* 红包详情：完整覆盖旧 regal 米色庄家行，不能只换字色。 */
#hbDetail { --hb-detail-muted: #b8b8b8; }
#hbDetail .hb-row { color: var(--ink); padding: var(--s3); }
#hbDetail .hb-row.is-banker {
  background: var(--surface-2); color: var(--ink);
  border-left: 2px solid var(--neon); border-radius: var(--r-tile);
  margin: var(--s2) 0; padding: var(--s3);
}
#hbDetail .hb-row .body b { color: var(--ink); line-height: 1.5; }
#hbDetail .hb-row .body small, #hbDetail .hb-row .end small {
  color: var(--hb-detail-muted); line-height: 1.5;
}
#hbDetail .hb-row .end b { color: var(--neon); }
#hbDetail .crown {
  background: var(--gold-soft) !important; color: var(--neon) !important;
  padding: var(--s1) var(--s2); border-radius: var(--r-pill);
}
#hbDetail .hb-hand { color: var(--ink); }
#hbDetail .hb-head .hb-meta, #hbDetail .hb-amount small, #hbDetail .hb-sum {
  color: var(--hb-detail-muted) !important;
}
#hbDetail .hb-row.is-pending { opacity: 1; }
#hbDetail .hb-row.is-pending .body b { color: var(--hb-detail-muted); }

/* 设置页的开关:关着的时候底槽是米白的 */
.switch i { background: var(--surface-2) !important; border: 1px solid var(--line) !important; }
.switch i::after { background: var(--ink) !important; box-shadow: none !important; }
.switch input:checked + i { background: var(--neon) !important; border-color: var(--neon) !important; }
.switch input:checked + i::after { background: var(--neon-ink) !important; }

/* 公平核验的「一样 / 不一样」:旧皮肤是浅绿和浅粉,贴在黑弹层上很脏 */
.cmp-ok.ok { background: var(--gold-soft) !important; color: var(--neon) !important; }
.cmp-ok.bad { background: rgba(255, 90, 90, .14) !important; color: var(--bad) !important; }

/* 键盘焦点:全站还是旧主题的金棕色描边 */
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--neon) !important; outline-offset: 2px !important;
}

/* ---------- 对局记录(设计稿 41) ---------- */
.rr-filter { padding-bottom: var(--s4); }
.rr-tiles { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--s2); }
.rr-tile { display: grid; gap: 2px; padding: var(--s4); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rr-tile small { font-size: 13px; color: var(--ink-2); }
.rr-tile b { font-size: clamp(20px, 6.2vw, 26px); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rr-tile b i { font-style: normal; font-size: .55em; font-weight: 600; color: var(--ink-2); }
.rr-tile b.pos { color: var(--neon); }
.rr-note { margin: var(--s3) 0 var(--s4); font-size: 12px; line-height: 1.5; color: var(--ink-3); }

.rr-list { display: grid; gap: var(--s2); }
.rr-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2); }
.rr-art { flex: none; width: 56px; height: 56px; border-radius: var(--r-tile); overflow: hidden; background: var(--surface-2); }
.rr-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rr-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rr-head { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
/* 游戏名可以截断(左边封面已经说明是哪个游戏了),后面那颗药丸是这一局的信息,不能截 */
.rr-head b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-head .pill-n { flex: none; }
.rr-head b { font-size: 16px; font-weight: 700; color: var(--ink); }
.rr-body small { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.rr-amt { flex: none; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.rr-amt.up { color: var(--neon); }
.rr-amt.down { color: var(--ink); }

/* ---------- 后台:收款二维码 ---------- */
.qr-chans { display: grid; gap: var(--s2); }
.qr-chan { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r-tile); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.qr-thumb { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--bg); color: var(--ink-3); }
.qr-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.qr-thumb .ui-icon { width: 20px; height: 20px; }
.qr-name { flex: 1; min-width: 0; display: grid; gap: 1px; }
.qr-name b { font-size: 15px; font-weight: 700; color: var(--ink); }
.qr-name small { font-size: 12px; color: var(--ink-2); }
.qr-pick, .qr-clear { flex: none; display: inline-grid; place-items: center; min-height: var(--h-btn-sm); padding: 0 var(--s4); font-size: 13px; font-weight: 600; cursor: pointer; }
.qr-clear { color: var(--bad) !important; box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .45) !important; }

/* ---------- 赢钱的那一下 ----------
 * 以前赢了多少就是一行字直接出现,没有任何「落地」的感觉。
 * 这里只给一拍:数字从大一点缩回原位,顺手亮一下。不撒金币、不满屏闪 ——
 * 「不要太浮夸但是加点设计感」。
 */
@keyframes win-land {
  from { transform: scale(1.32); opacity: 0; }
  62%  { transform: scale(.97); opacity: 1; }
  to   { transform: scale(1); }
}
.res2.is-win .amt,
.dk-result:not(.is-lose) .dk-amt,
.rd-flash:not(.is-bad) .rd-big {
  display: inline-block;
  animation: win-land .42s cubic-bezier(.2, .9, .3, 1.2) both;
  text-shadow: 0 0 18px rgba(229, 255, 61, .28);
}
/* 输的那一下不做动作,只是静静地出现 —— 赢和输的差别就靠这一拍 */
@media (prefers-reduced-motion: reduce) {
  .res2.is-win .amt, .dk-result .dk-amt, .rd-flash .rd-big { animation: none; }
}
/* 赢大了:数字滚上去的时候亮一点,滚完留着这圈光 */
.is-big { text-shadow: 0 0 26px rgba(229, 255, 61, .55); }

/* ---------- 佣金明细(2026-09-28) ---------- */
.comm-tier { display: grid; gap: 6px; margin-top: var(--s3); padding: var(--s3); border-radius: var(--r-tile); background: var(--surface-2); }
.comm-tier-head { display: flex; align-items: center; gap: var(--s2); }
.comm-tier-head > small { margin-left: auto; color: var(--ink-2); font-size: 12px; }
.comm-formula { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.comm-tier .kv { padding: 2px 0; }
.comm-note { display: block; font-size: 12px; color: var(--ink-2); }
.level-today { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
/* 五个期间在英文/马来文下一行放不下,横向捲动会把「This month」切一半,改成换行 */
.comm-ranges { flex-wrap: wrap; overflow: visible; }

/* ---- 2026-09-30 玩家页面:资金明细分组、账号安全、对局详情、查下线流水 ---- */
.ledger-day { margin: var(--s4) 2px var(--s2); color: var(--mute); font-size: 12px; letter-spacing: .04em; }
.ledger-after { display: block; margin-top: 2px; color: var(--mute); font-size: 11px; font-weight: 400; }
.sec-state { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.sec-state svg { width: 14px; height: 14px; }
.sec-state.is-ok { color: #0a0a0a; background: var(--gold); box-shadow: none; }
.rr-row[data-go] { cursor: pointer; }
.ref-lvls > div small { display: block; }
.dl-node .end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dl-node .end small { color: var(--mute); font-size: 11px; }
.dl-bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.dl-bar i { display: block; height: 100%; background: var(--gold); }
.dl-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: var(--s2) 0; color: var(--mute); }
.dl-path .btn { width: auto; }
.dl-search input { min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; -webkit-appearance: none; appearance: none; }
.dl-search input:focus { outline: none; border-color: var(--gold); }
/* ---- 2026-09-30 小屏(≤380px)适配:顶列不溢出、三代格子和公式数字不折行 ---- */
.bn-top .bn-brand { flex: 1 1 auto; }
.bn-top-end { flex: 0 0 auto; max-width: none; }
.bn-top-end .bn-bal-pill { max-width: 150px; }
.ref-lvls > div { padding: var(--s2) 4px; }
.ref-lvls .n { font-size: 15px; white-space: nowrap; }
@media (max-width: 380px) {
  .bn-top { gap: var(--s2); }
  .lvls > div { padding: var(--s2) 4px; }
  .lvls .n { font-size: 18px; }
  .agent-f-item b { font-size: 11px; padding: 8px 2px; white-space: nowrap; overflow-wrap: normal; }
  .agent-f-item small { font-size: 10px; }
}

/* 后台:金流通道那种小表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--ink-2); font-weight: 600; }
.tbl input[type="number"] { min-height: 32px; padding: 4px 8px; }
/* 财务报表的算式行(2026-10-21):名称 · +/−/= · 金额;小计加细线,合计加粗线、点缀黄 */
.eq-row { display: grid; grid-template-columns: 1fr 18px auto; align-items: baseline; column-gap: 4px; padding: 9px var(--s4); }
.eq-row .eq-l { color: var(--ink-2); font-size: 14px; }
.eq-row .eq-l small { color: var(--ink-3, #5c5c5c); font-size: 12.5px; }
.eq-row .eq-s { text-align: center; font-weight: 700; color: var(--ink-2); }
.eq-row .eq-v { text-align: right; min-width: 88px; font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.eq-row.is-neg .eq-v, .eq-row.is-neg .eq-s { color: #9a9a9a; }
.eq-row.is-sub { box-shadow: inset 0 1px 0 var(--line); }
.eq-row.is-sub .eq-l { color: var(--ink); font-weight: 700; }
.eq-row.is-total { box-shadow: inset 0 2px 0 #3a3a3a; }
.eq-row.is-total .eq-l { color: var(--ink); font-weight: 800; }
.eq-row.is-total .eq-v, .eq-row.is-total .eq-s { color: var(--gold); font-size: 17px; }
.eq-row.is-split .eq-l { padding-left: 14px; }
.eq-meta { color: var(--ink-2); font-size: 12.5px; margin: 0 var(--s4) 6px; }
.eq-gap { height: 6px; }
.eq-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; vertical-align: 2px; background: #222; color: var(--ink-2); }
.eq-tag.is-on { background: #2a2f0c; color: var(--gold); }
.eq-subhead { margin: var(--s4, 12px) var(--s4, 12px) 2px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); }
