/* ===================== 枫叶28 H5 · 紫夜聊天室 ===================== */
:root {
  --bg: #120a26;
  --p1: #31205f;
  --p2: #1b1138;
  --p3: #150c2c;
  --card: rgba(255, 255, 255, .055);
  --card2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .09);
  --text: #f2eefc;
  --muted: #9a90b8;
  --gold: #ffcf6b;
  --red: #ff5b6e;
  --blue: #4aa8ff;
  --green: #3ddc97;
  --purple: #8b6bff;
  --purple2: #5b3bd6;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: #0c0719;
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  justify-content: center;
}
[v-cloak] { display: none !important; }
button, input { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input { outline: none; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.red { color: var(--red); }
.blue { color: var(--blue); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.fade-enter-active, .fade-leave-active { transition: opacity .2s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ---------- 手机壳 ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(420px 260px at 50% -60px, rgba(139, 107, 255, .35), transparent 70%),
    linear-gradient(180deg, #30205f 0%, #1c1239 42%, #150c2c 100%);
}
@media (min-width: 900px) {
  body { align-items: center; padding: 20px 0; }
  .phone { max-width: 560px; height: 900px; border-radius: 28px; box-shadow: 0 30px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06); }
}

/* ---------- 顶栏 ---------- */
.bar {
  height: 54px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 10px;
  background: linear-gradient(180deg, rgba(20, 10, 46, .92), rgba(20, 10, 46, .55));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  position: relative;
  z-index: 12;
}
.bar-ic {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 17px;
  color: #d8d0f5;
  border-radius: 10px;
}
.bar-ic:active { background: rgba(255, 255, 255, .08); }
.bar-ic.back { font-size: 26px; line-height: 1; padding-bottom: 3px; }
.bar-title { flex: 1; text-align: center; line-height: 1.15; }
.bar-title b { display: block; font-size: 16px; letter-spacing: .5px; }
.bar-title b em { font-style: normal; font-size: 12px; color: var(--gold); margin-left: 2px; }
.bar-title small { font-size: 10px; color: var(--muted); }

/* ---------- 屏幕 ---------- */
.screen { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px 14px; -webkit-overflow-scrolling: touch; }
.screen.hall { overflow: hidden; display: flex; flex-direction: column; padding: 8px 10px 0; }
.screen::-webkit-scrollbar { width: 0; }
.page-head { padding: 6px 2px 10px; }
.page-head h2 { margin: 0; font-size: 17px; }
.page-head p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }

/* ---------- 期号 / 余额 ---------- */
.round-line {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(100deg, rgba(139, 107, 255, .22), rgba(139, 107, 255, .05));
  border: 1px solid rgba(139, 107, 255, .25);
  border-radius: 12px;
}
.rl-left { display: flex; flex-direction: column; }
.rl-issue { font-size: 13px; color: #e6e0ff; }
.rl-time { font-size: 11px; color: var(--muted); }
.rl-right { text-align: right; line-height: 1.2; }
.rl-right small { display: block; font-size: 10px; color: var(--muted); }
.rl-right b { font-size: 17px; font-family: Consolas, monospace; }
.mini-login {
  margin-top: 2px; font-size: 11px; color: #1a1036; font-weight: 700;
  background: linear-gradient(135deg, #ffd97e, #f3ae2e);
  padding: 3px 10px; border-radius: 10px;
}

/* ---------- 开奖条 ---------- */
.draw-line {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  margin-top: 8px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dl-left { flex: 1; min-width: 0; }
.dl-left > small { font-size: 10px; color: var(--muted); }
.balls { display: flex; align-items: center; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.balls.loading { min-height: 30px; font-size: 11px; }
.ball {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .3), 0 3px 8px rgba(0, 0, 0, .3);
}
.ball.b-red { background: radial-gradient(circle at 32% 28%, #ff9aa5, #d92a44 72%); }
.ball.b-blue { background: radial-gradient(circle at 32% 28%, #8fd0ff, #2b6fd6 72%); }
.ball.sum { background: linear-gradient(145deg, #ffd97e, #d99a22); color: #4a2c00; }
.eq { color: var(--muted); font-size: 12px; margin: 0 1px; }
.dl-tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; margin-left: 2px; }
.dl-tag.red { background: rgba(255, 91, 110, .16); color: #ff8a97; }
.dl-tag.blue { background: rgba(74, 168, 255, .16); color: #8fc7ff; }
.dl-cd {
  flex: none; width: 74px; text-align: center;
  padding: 6px 0; border-radius: 10px;
  background: linear-gradient(160deg, rgba(139, 107, 255, .3), rgba(91, 59, 214, .12));
  border: 1px solid rgba(139, 107, 255, .35);
}
.dl-cd b { display: block; font-size: 19px; letter-spacing: .5px; }
.dl-cd small { font-size: 9px; color: var(--muted); }

/* ---------- 消息流 ---------- */
.feed {
  flex: 1; min-height: 0;
  overflow-y: auto;
  margin-top: 6px;
  padding: 2px 2px 8px;
  display: flex; flex-direction: column; gap: 7px;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { width: 0; }
.feed-empty { margin: auto; color: var(--muted); font-size: 12px; }
.m { display: flex; gap: 7px; }
.m-ava {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; color: #fff;
}
.m-body { min-width: 0; flex: 1; max-width: 86%; }
.m-meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.m-name { color: #b9aee0; }
.m-time { color: #6f668c; }
.m-bubble {
  display: inline-block;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 4px 12px 12px 12px;
  background: rgba(255, 255, 255, .07);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.m-bubble .amt { color: var(--gold); font-family: Consolas, monospace; margin-left: 2px; }
.m-bubble .payout { color: var(--green); font-family: Consolas, monospace; margin-left: 4px; }
.b-bet { background: linear-gradient(100deg, rgba(255, 207, 107, .13), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 207, 107, .18); }
.b-win { background: linear-gradient(100deg, rgba(61, 220, 151, .13), rgba(255, 255, 255, .05)); border: 1px solid rgba(61, 220, 151, .2); }
.m-sys { align-self: center; font-size: 10.5px; color: #8d82b3; background: rgba(255, 255, 255, .04); padding: 2px 10px; border-radius: 12px; }
.m-join { font-size: 10.5px; color: #6f668c; padding-left: 4px; }

/* ---------- 已投提醒 + 输入条 ---------- */
.betbar {
  flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  margin: 0 0 6px;
  font-size: 11px;
  color: #d8d0f5;
  background: rgba(255, 207, 107, .1);
  border: 1px solid rgba(255, 207, 107, .22);
  border-radius: 10px;
}
.betbar b { color: var(--gold); font-family: Consolas, monospace; font-size: 13px; }
.betbar i { margin-left: auto; font-style: normal; color: var(--gold); }
.inputbar {
  flex: none;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.fake-input {
  flex: 1;
  height: 38px;
  display: flex; align-items: center;
  padding: 0 14px;
  border-radius: 19px;
  background: rgba(255, 255, 255, .07);
  color: #7b7199;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .06);
}
.send {
  height: 38px; padding: 0 16px; border-radius: 19px;
  background: linear-gradient(135deg, #9a7bff, #5b3bd6);
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(91, 59, 214, .4);
}
.kb {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .07);
  font-size: 16px; color: #cfc6ea;
}

/* ---------- 底部导航 ---------- */
.tabbar {
  flex: none;
  height: 56px;
  display: flex;
  background: rgba(14, 8, 32, .92);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 12;
}
.tabbar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #776d97; font-size: 10px;
}
.tabbar a i { font-style: normal; font-size: 17px; filter: grayscale(.6); opacity: .8; }
.tabbar a.on { color: #cbb9ff; }
.tabbar a.on i { filter: none; opacity: 1; }

/* ---------- 通用列表 ---------- */
.list { display: flex; flex-direction: column; gap: 7px; }
.sl-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.sl-row.live { border-color: rgba(255, 207, 107, .45); background: rgba(255, 207, 107, .07); }
.sl-idx {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(139, 107, 255, .15);
  color: #c9baff; font-size: 11px; font-family: Consolas, monospace;
}
.sl-main { flex: 1; min-width: 0; }
.sl-top { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; }
.sl-nums { display: flex; align-items: center; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.sl-equ { font-size: 11px; color: var(--muted); }
.numball {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.numball.b-red { background: radial-gradient(circle at 32% 28%, #ff9aa5, #d92a44 72%); }
.numball.b-blue { background: radial-gradient(circle at 32% 28%, #8fd0ff, #2b6fd6 72%); }
.sl-res { flex: none; text-align: right; line-height: 1.15; }
.sl-res b { display: block; font-size: 15px; }
.sl-res small { font-size: 9px; color: var(--muted); }
.sl-live { flex: none; font-size: 10px; color: var(--gold); border: 1px solid rgba(255, 207, 107, .35); padding: 2px 6px; border-radius: 8px; }
.sl-official { flex: none; font-size: 9px; color: #6f668c; }
.sched-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; }
.sched-summary > div {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 2px;
}
.sched-summary small { color: var(--muted); font-size: 10px; }
.sched-summary b { font-size: 14px; }

/* ---------- 走势 ---------- */
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; }
.stat small { display: block; color: var(--muted); font-size: 10px; }
.stat b { font-size: 15px; }
.trend-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 12px; }
.tcell {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 8px;
}
.t-issue { font-size: 9px; color: var(--muted); font-family: Consolas, monospace; width: 24px; }
.t-sum { font-size: 15px; font-weight: 700; font-family: Consolas, monospace; width: 24px; }
.t-dots { display: flex; gap: 3px; }
.t-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.t-dots i.on.red { background: var(--red); }
.t-dots i.on.blue { background: var(--blue); }
.t-dots i.on.gold { background: var(--gold); }

/* ---------- 记录 / 我的 ---------- */
.bet-row, .tx-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 11px; display: flex; flex-direction: column; gap: 5px;
}
.br-top { display: flex; justify-content: space-between; font-size: 10px; }
.br-status { font-size: 10px; padding: 1px 7px; border-radius: 8px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.br-status.win { background: rgba(61, 220, 151, .14); color: var(--green); }
.br-status.lose { background: rgba(255, 91, 110, .12); color: #ff8a97; }
.br-status.pending { background: rgba(255, 207, 107, .12); color: var(--gold); }
.br-status.push { background: rgba(74, 168, 255, .12); color: var(--blue); }
.br-mid { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.br-mid b { font-size: 15px; }
.br-mid span:last-child { margin-left: auto; font-family: Consolas, monospace; }
.br-bot { display: flex; justify-content: space-between; font-size: 11px; }
.tx-row { flex-direction: row; justify-content: space-between; align-items: center; }
.tx-row b { font-size: 13px; }
.tx-row small { display: block; margin-top: 2px; }
.tx-right { text-align: right; }
.tx-right b { font-family: Consolas, monospace; }

.me-card {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(120deg, rgba(139, 107, 255, .25), rgba(255, 255, 255, .04));
  border: 1px solid rgba(139, 107, 255, .3);
  border-radius: 14px; padding: 14px;
}
.me-ava {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(135deg, #6f52d8, #3a2a80);
}
.me-info { flex: 1; }
.me-info b { display: block; font-size: 15px; }
.me-info small { color: var(--muted); font-size: 10px; }
.me-balance { text-align: right; }
.me-balance small { display: block; font-size: 10px; color: var(--muted); }
.me-balance b { font-size: 18px; color: var(--gold); font-family: Consolas, monospace; }
.me-card.logged-out .me-ava { background: rgba(255, 255, 255, .08); }
.me-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 10px 0; }
.me-grid button {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 0; font-size: 11px; color: #d8d0f5;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.empty-box { text-align: center; color: var(--muted); padding: 36px 0; font-size: 12px; }
.empty-box .btn-primary { margin-top: 10px; }

/* ---------- 下注面板 ---------- */
.mask {
  position: absolute; inset: 0; z-index: 25;
  background: rgba(6, 3, 14, .55);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  background: linear-gradient(180deg, #2a1a55, #1b1138);
  border-radius: 18px 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, .5);
  max-height: 76%;
  display: flex; flex-direction: column;
  animation: sheetUp .18s ease-out;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-head {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.sheet-head > button {
  padding: 6px 12px; border-radius: 15px; font-size: 13px; color: var(--muted);
}
.sheet-head > button.on { background: rgba(139, 107, 255, .25); color: #d9ccff; }
.sheet-round { margin-left: auto; font-size: 10px; color: var(--muted); }
.sheet-x { width: 28px; height: 28px; border-radius: 50%; color: #b9aee0; display: grid; place-items: center; font-size: 13px; }
.sheet-x:active { background: rgba(255, 255, 255, .08); }

.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px 4px; }
.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.hot-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 8px 9px;
  display: flex; flex-direction: column; gap: 5px;
  text-align: left;
}
.hot-card:active { transform: scale(.97); }
.hc-top { display: flex; align-items: baseline; justify-content: space-between; }
.hc-top b { font-size: 15px; }
.hc-top small { font-size: 10px; color: var(--gold); font-family: Consolas, monospace; }
.hc-meta { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.hot-card.up { border-color: rgba(255, 91, 110, .25); }
.hot-card.down { border-color: rgba(74, 168, 255, .25); }
.hot-card.gold { border-color: rgba(255, 207, 107, .3); }
.hot-card.purple { border-color: rgba(139, 107, 255, .35); }

.seg { display: flex; gap: 6px; margin-bottom: 10px; }
.seg button {
  flex: 1; padding: 7px 0; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--muted); font-size: 12px;
}
.seg button.on { border-color: rgba(139, 107, 255, .6); color: #d9ccff; background: rgba(139, 107, 255, .16); }
.num-grid { display: grid; gap: 6px; }
.num-grid.sum { grid-template-columns: repeat(4, 1fr); }
.num-grid.triple { grid-template-columns: repeat(5, 1fr); }
.num-btn {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  padding: 6px 0;
  display: flex; flex-direction: column; align-items: center;
}
.num-btn b { font-size: 15px; }
.num-btn small { font-size: 9px; color: var(--gold); font-family: Consolas, monospace; }
.num-btn:active { background: rgba(139, 107, 255, .25); }

.chips { display: flex; gap: 6px; padding: 8px 12px 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: 1; min-width: 46px; padding: 7px 0; border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted); font-size: 12px; font-family: Consolas, monospace;
}
.chips button.on { border-color: var(--gold); color: var(--gold); background: rgba(255, 207, 107, .1); }

.slip-mini { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 12px 0; max-height: 72px; overflow-y: auto; }
.sm-item {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 207, 107, .1); border: 1px solid rgba(255, 207, 107, .22);
  border-radius: 8px; padding: 3px 6px; font-size: 10px;
}
.sm-item b { color: var(--gold); font-family: Consolas, monospace; }
.sm-item i { font-style: normal; color: #9a90b8; padding: 0 1px; }

.sheet-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(16, 9, 36, .6);
}
.sf-info { flex: 1; line-height: 1.1; }
.sf-info small { display: block; font-size: 9px; color: var(--muted); }
.sf-info b { font-size: 17px; color: var(--gold); font-family: Consolas, monospace; }
.btn-clear {
  padding: 9px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, .07); color: #cfc6ea; font-size: 12px;
}
.btn-confirm {
  padding: 10px 22px; border-radius: 12px;
  background: linear-gradient(135deg, #a488ff, #5b3bd6);
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(91, 59, 214, .45);
}
.btn-confirm:disabled { opacity: .45; box-shadow: none; }

/* ---------- 登录 ---------- */
.auth-card {
  position: relative;
  width: min(320px, calc(100% - 44px));
  background: linear-gradient(180deg, #2c1b58, #1b1138);
  border: 1px solid rgba(139, 107, 255, .35);
  border-radius: 18px;
  padding: 22px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.auth-card h2 { margin: 0 0 2px; font-size: 19px; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); font-size: 11px; margin: 0 0 8px; }
.auth-card label { display: block; font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.auth-card input {
  width: 100%; margin-top: 5px; padding: 10px 12px;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px; color: var(--text); font-size: 14px;
}
.auth-card input:focus { border-color: rgba(139, 107, 255, .7); }
.auth-card .btn-primary { margin-top: 14px; }
.auth-switch { text-align: center; font-size: 11px; color: var(--muted); margin: 12px 0 0; }
.auth-switch a { color: #cbb9ff; }
.auth-demo { text-align: center; font-size: 10px; color: #6f668c; margin: 6px 0 0; }
.err { color: #ff8a97; font-size: 11px; margin: 8px 0 0; }
.btn-primary {
  background: linear-gradient(135deg, #a488ff, #5b3bd6);
  color: #fff; border-radius: 10px; padding: 10px 18px; font-size: 13px; font-weight: 600;
}
.btn-primary.sm { padding: 7px 12px; font-size: 12px; }
.btn-primary.block { display: block; width: 100%; }
.btn-primary:disabled { opacity: .5; }

/* ---------- 客服 ---------- */
.chat-panel {
  position: absolute; left: 10px; right: 10px; bottom: 66px; z-index: 40;
  height: min(520px, 62%);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #2a1a55, #1b1138);
  border: 1px solid rgba(139, 107, 255, .35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.chat-head b { display: block; font-size: 14px; }
.chat-head small { font-size: 10px; color: var(--green); }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 9px; background: rgba(0, 0, 0, .18); }
.chat-empty { margin: auto; text-align: center; color: var(--muted); font-size: 12px; }
.cmsg { display: flex; flex-direction: column; max-width: 84%; }
.cmsg.user { align-self: flex-end; align-items: flex-end; }
.cmsg.agent, .cmsg.system { align-self: flex-start; }
.cmsg-name { font-size: 9px; color: var(--muted); margin-bottom: 2px; }
.cbubble { padding: 7px 11px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 13px; word-break: break-word; white-space: pre-wrap; }
.cmsg.user .cbubble { background: linear-gradient(135deg, #9a7bff, #5b3bd6); color: #fff; }
.cmsg.system .cbubble { background: rgba(255, 207, 107, .12); color: #ffd894; }
.cmsg-time { font-size: 9px; color: #6f668c; margin-top: 2px; }
.chat-quick { display: flex; gap: 5px; padding: 7px 10px 0; flex-wrap: wrap; }
.chat-quick button { font-size: 10px; padding: 4px 9px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); color: var(--muted); }
.chat-input { display: flex; gap: 7px; padding: 8px 10px 10px; }
.chat-input input {
  flex: 1; padding: 8px 11px; border-radius: 18px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text); font-size: 13px;
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  z-index: 300; max-width: 86%;
  background: rgba(28, 17, 56, .96);
  border: 1px solid rgba(139, 107, 255, .35);
  color: #e9e2ff; font-size: 12px;
  padding: 9px 16px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  text-align: center;
}

/* ============ 对齐参考图的顶部 / 开奖条 ============ */
.top-strip { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 2px 8px; }
.ts-issue { font-size: 13px; color: #d6ccf2; }
.ts-cd {
  font-size: 18px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #6f9bff, #3b5bd9);
  padding: 1px 10px; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(59, 91, 217, .45);
}
.ts-balance { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.ts-balance i { font-style: normal; color: #8b6bff; font-size: 13px; }
.ts-balance b { color: var(--gold); font-size: 15px; font-family: Consolas, monospace; }
.draw-strip {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; margin-bottom: 4px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line); border-radius: 10px;
}
.ds-issue { font-size: 11px; color: var(--muted); }
.ds-balls { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ds-eq { font-size: 12px; color: var(--muted); }
.ds-tag { font-size: 11px; color: #cbb9ff; background: rgba(139, 107, 255, .18); padding: 1px 6px; border-radius: 5px; }
.ds-arrow { margin-left: auto; color: #8b6bff; font-size: 14px; }
.fi-ic { font-size: 13px; margin-right: 7px; opacity: .8; }

/* ============ 热门玩法：两列大卡片 ============ */
.hot-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hot-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 12px; }
.hc-left { display: flex; flex-direction: column; line-height: 1.15; }
.hc-left b { font-size: 17px; }
.hc-left small { font-size: 11px; color: var(--gold); font-family: Consolas, monospace; }
.hc-right { text-align: right; font-size: 10px; color: var(--muted); line-height: 1.4; }
.hc-right em { display: block; font-style: normal; font-size: 12px; }

/* ============ 数字玩法 ============ */
.num-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

/* ============ 键盘下注 ============ */
.key-amount {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px;
}
.key-amount small { color: var(--muted); font-size: 11px; }
.key-amount b { font-size: 20px; color: var(--gold); font-family: Consolas, monospace; }
.key-markets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.key-markets button {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px; padding: 6px 0;
}
.key-markets b { font-size: 13px; }
.key-markets small { font-size: 9px; color: var(--gold); font-family: Consolas, monospace; }
.key-markets button:active { background: rgba(139, 107, 255, .25); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.key-btn {
  padding: 9px 0; font-size: 18px; font-family: Consolas, monospace;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
}
.key-btn:active { background: rgba(139, 107, 255, .3); }

/* 三个玩法 tab 更紧凑 */
.sheet-head > button { padding: 6px 9px; font-size: 12px; }
@media (max-width: 380px) {
  .sheet-head > button { padding: 6px 7px; font-size: 11px; }
  .key-markets { grid-template-columns: repeat(4, 1fr); }
}

.ts-cd.locked { background: linear-gradient(135deg,#6b6478,#3d3947); font-size: 13px; letter-spacing: 1px; }


/* ===================== 封盘中状态 ===================== */
.inputbar.locked { padding: 8px 0 10px; }
.fake-input.locked {
  justify-content: center;
  color: var(--gold);
  background: rgba(255, 207, 107, .08);
  border-color: rgba(255, 207, 107, .35);
}

/* ===================== 刮刮乐 ===================== */
.scratch-card {
  position: relative;
  height: 190px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3a2a72, #241748);
  border: 1px solid rgba(139, 107, 255, .4);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 40px rgba(139, 107, 255, .15);
}
.scratch-reveal { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.scratch-reveal small { color: var(--muted); font-size: 11px; }
.scratch-reveal b { font-size: 34px; font-family: Consolas, monospace; color: #e9e2ff; }
.scratch-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: crosshair; border-radius: 16px;
}
.scratch-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(20, 10, 46, .35);
}
.scratch-overlay small { color: var(--muted); font-size: 11px; }
.scratch-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 2px; font-size: 12px; color: var(--muted);
}
.scratch-actions .btn-primary { padding: 8px 16px; }
.scratch-pool { font-size: 10px; color: #6f668c; text-align: center; padding: 0 0 10px; }

/* ===================== 刮开开奖结果 ===================== */
.ds-wrap { position: relative; flex: 1; min-width: 0; min-height: 40px; display: flex; align-items: center; }
.ds-scratch {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 8px;
  touch-action: none;
  cursor: crosshair;
  z-index: 2;
}
.scratch-tags { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.scratch-reveal .balls { margin-top: 0; }
.scratch-actions .btn-clear { padding: 7px 14px; }

/* ===================== 大厅刮奖开关 ===================== */
.bar-title { overflow: hidden; }
.bar-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scratch-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 7px 4px 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  flex: none;
}
.scratch-toggle i {
  width: 15px; height: 15px; border-radius: 50%;
  background: #5c5470;
  transition: .18s;
}
.scratch-toggle.on { color: var(--gold); border-color: rgba(255, 207, 107, .4); background: rgba(255, 207, 107, .1); }
.scratch-toggle.on i { background: var(--gold); box-shadow: 0 0 8px rgba(255, 207, 107, .6); }
@media (max-width: 360px) { .scratch-toggle span { display: none; } }

/* ===================== 封盘后本期投注列表 ===================== */
.round-bets {
  flex: none; margin: 6px 0;
  background: rgba(20, 10, 46, .92);
  border: 1px solid rgba(139, 107, 255, .3);
  border-radius: 12px;
  overflow: hidden;
  max-height: 210px;
  display: flex;
  flex-direction: column;
}
.rb-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.rb-head b { font-size: 12px; }
.rb-head span { color: var(--muted); font-size: 10px; }
.rb-close { margin-left: auto; color: var(--muted); width: 22px; height: 22px; font-size: 12px; }
.rb-list { overflow-y: auto; padding: 4px 6px 6px; }
.rb-row { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-bottom: 1px dashed rgba(255, 255, 255, .05); font-size: 11px; }
.rb-name { width: 62px; flex: none; color: #cfc6ea; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-items { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.rb-items i { font-style: normal; background: rgba(255, 207, 107, .08); color: #ffd894; border-radius: 5px; padding: 1px 5px; font-size: 10px; }
.rb-total { color: var(--gold); font-family: Consolas, monospace; font-size: 12px; }
.rb-empty { text-align: center; color: var(--muted); font-size: 11px; padding: 12px 0; }
.rb-open { flex: none; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(255, 207, 107, .12); border: 1px solid rgba(255, 207, 107, .3); color: var(--gold); font-size: 12px; }

/* 本期投注汇总消息 */
.pool-msg {
  width: 100%;
  background: rgba(139, 107, 255, .1);
  border: 1px solid rgba(139, 107, 255, .25);
  border-radius: 10px;
  padding: 8px 10px;
}
.pool-msg pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.7;
  color: #cfc6ea;
}

/* ===================== 投注账单 / 开奖结果消息 ===================== */
.m-ava.bot { background: linear-gradient(135deg, #5b8cff, #3b3fd9); font-size: 16px; }
.m-pool .m-body, .m-result .m-body { max-width: 100%; }
.pool-msg, .result-msg {
  width: 100%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  overflow: hidden;
}
.pool-title {
  background: linear-gradient(180deg, #ffd35c, #efb021);
  color: #3a2400;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 9px;
}
.pool-row {
  font-size: 11.5px;
  line-height: 1.75;
  padding: 2px 9px;
  color: #d8d0f5;
  word-break: break-word;
}
.pool-row:last-child { padding-bottom: 8px; }
.result-body { display: flex; align-items: center; gap: 6px; padding: 10px; flex-wrap: wrap; }
.result-hint { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.ds-issue { display: flex; flex-direction: column; gap: 1px; flex: none; }
.ds-refresh { font-size: 10px; color: #b9a7ff; text-decoration: underline; cursor: pointer; }

/* ===================== 最近开奖下拉 ===================== */
.ds-arrow { transition: transform .2s; }
.ds-arrow.open { transform: rotate(180deg); }
.recent-drop {
  flex: none; margin: 6px 0 0;
  background: rgba(20, 10, 46, .96);
  border: 1px solid rgba(139, 107, 255, .3);
  border-radius: 12px;
  overflow: hidden auto;
  max-height: 300px;
}
.rd-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.rd-head b { font-size: 12px; }
.rd-close { margin-left: auto; color: var(--muted); font-size: 11px; cursor: pointer; }
.rd-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px dashed rgba(255, 255, 255, .05); font-size: 11px; }
.rd-issue { width: 74px; flex: none; color: #cfc6ea; font-size: 11px; }
.rd-nums { display: flex; gap: 3px; flex: none; }
.numball { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.numball.b-red { background: linear-gradient(135deg, #ff6b6b, #e03131); }
.numball.b-blue { background: linear-gradient(135deg, #5b9dff, #2f6fe0); }
.numball.sm { width: 19px; height: 19px; font-size: 11px; }
.rd-sum { color: #ffd894; font-size: 11px; flex: none; }
.rd-tag { color: #cfc6ea; font-size: 11px; flex: none; }
.rd-time { margin-left: auto; color: var(--muted); font-size: 10px; }
.rd-empty { text-align: center; color: var(--muted); font-size: 11px; padding: 14px 0; }

/* 最近开奖下拉：隐藏滚动条 + 和值圆球 */
.recent-drop { scrollbar-width: none; -ms-overflow-style: none; }
.recent-drop::-webkit-scrollbar { width: 0; height: 0; display: none; }
.rd-eq { color: #8f86ad; font-size: 11px; flex: none; }
.numball.sum-ball { background: linear-gradient(135deg, #ffd35c, #e0a51f); color: #3a2400; box-shadow: 0 0 6px rgba(255, 207, 107, .35); }
.rd-tag { background: rgba(139, 107, 255, .16); border-radius: 4px; padding: 1px 5px; font-size: 10px; }

/* ===================== 个人中心（新） ===================== */
.me-screen { padding: 10px 10px 24px; }
.me-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px;
  background: linear-gradient(135deg, #2a1b52, #1c1136);
  border: 1px solid rgba(139, 107, 255, .25);
  margin-bottom: 12px;
}
.me-ava-lg {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg, #6b5bd2, #3a2a75);
  border: 2px solid rgba(255, 255, 255, .25);
  box-shadow: 0 0 0 3px rgba(139, 107, 255, .18);
}
.me-hero-info { flex: 1; min-width: 0; }
.me-name-line { display: flex; align-items: center; gap: 6px; }
.me-name-line b { font-size: 16px; }
.vip-pill {
  font-size: 10px; padding: 1px 7px; border-radius: 9px;
  background: linear-gradient(90deg, #ffd35c, #f0a21f);
  color: #3a2400; font-weight: 700;
}
.me-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.me-sub.dim { color: #7d7397; }
.me-chev { color: var(--muted); font-size: 18px; flex: none; }
.vip-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(90deg, #5b8cff, #8b5bff 45%, #ff5bb0);
  color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(91, 92, 255, .25);
  margin-bottom: 12px;
}
.vip-gem { font-size: 20px; }
.vip-banner-text { flex: 1; font-size: 13px; text-align: center; letter-spacing: 1px; }
.vip-chev { font-size: 18px; }
.wallet-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(139, 107, 255, .2);
  border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.wallet-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #cfc6ea; }
.wallet-eye { font-size: 12px; color: var(--muted); }
.wallet-amount { font-size: 26px; font-weight: 700; margin: 6px 0 14px; }
.wallet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wallet-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: #cfc6ea; }
.wg-ic {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-style: normal;
}
.wg-a { background: linear-gradient(135deg, #ff9f43, #ff6b2b); }
.wg-b { background: linear-gradient(135deg, #ffd35c, #f0a21f); }
.wg-c { background: linear-gradient(135deg, #2fd6c3, #12a89a); }
.wg-d { background: linear-gradient(135deg, #5b8cff, #2f6fe0); }
.me-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.promo { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 14px; color: #fff; text-align: left; }
.promo-a { background: linear-gradient(135deg, #5b8cff, #8b5bff); }
.promo-b { background: linear-gradient(135deg, #ff9f43, #ff5b9e); }
.promo-ic { font-size: 24px; }
.promo-txt { display: flex; flex-direction: column; }
.promo-txt b { font-size: 14px; }
.promo-txt small { font-size: 10px; opacity: .85; }
.me-menu { background: rgba(255, 255, 255, .035); border: 1px solid rgba(139, 107, 255, .18); border-radius: 14px; overflow: hidden; }
.me-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px; font-size: 13px; color: #d8d0f5;
  border-bottom: 1px solid rgba(255, 255, 255, .05); text-align: left;
}
.me-menu button:last-child { border-bottom: none; }
.mm-ic { width: 22px; text-align: center; font-size: 15px; font-style: normal; }
.me-menu .me-chev { margin-left: auto; }
.logout-btn {
  width: 100%; margin-top: 14px; padding: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  color: #ff8f8f; font-size: 13px;
}
.me-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.me-sheet {
  width: 100%; max-width: 560px; max-height: 78vh;
  background: #1b1136; border-radius: 16px 16px 0 0;
  border-top: 1px solid rgba(139, 107, 255, .3);
  display: flex; flex-direction: column;
}
.me-sheet-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.me-sheet-head b { font-size: 14px; }
.me-sheet-head button { margin-left: auto; color: var(--muted); }
.me-sheet-body { padding: 12px 14px 20px; overflow-y: auto; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); font-size: 12px; }
.kv span { color: var(--muted); }
.kv b { color: #e8e2ff; font-weight: 600; }
.sheet-balance { font-size: 28px; font-weight: 700; margin: 6px 0 14px; }
.sheet-hint { font-size: 11px; color: var(--muted); margin-top: 10px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.form-row input { height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(139, 107, 255, .25); color: #fff; padding: 0 12px; }
.vip-current { text-align: center; padding: 6px 0 14px; }
.vip-current b { font-size: 18px; }
.vip-progress { height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .08); margin: 10px 0 8px; overflow: hidden; }
.vip-progress i { display: block; height: 100%; background: linear-gradient(90deg, #ffd35c, #f0a21f); }
.vip-current small { color: var(--muted); font-size: 11px; }
.vip-tier-list { display: flex; flex-direction: column; gap: 6px; }
.vip-tier { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 9px; background: rgba(255, 255, 255, .03); font-size: 12px; color: #cfc6ea; }
.vip-tier.on { background: rgba(255, 207, 107, .12); border: 1px solid rgba(255, 207, 107, .35); color: #ffd894; }

/* VIP 升级奖励 */
.vip-reward { display: block; font-style: normal; font-size: 10px; color: #7ce0b0; margin-top: 2px; }

/* ===================== 首页列表 ===================== */
.home-screen { padding: 10px; }
.home-panel { display: flex; flex-direction: column; gap: 10px; }
.home-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 107, 255, .16), rgba(139, 107, 255, .06));
  border: 1px solid rgba(139, 107, 255, .18);
  text-align: left; color: #e8e2ff;
}
.hi-ic { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.hi-a { background: linear-gradient(135deg, #ff5bb0, #c72f8f); }
.hi-b { background: linear-gradient(135deg, #a06bff, #6b3fd1); }
.hi-c { background: linear-gradient(135deg, #5b8cff, #2f5fd9); }
.hi-d { background: linear-gradient(135deg, #2fd6c3, #12a89a); }
.hi-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hi-txt b { font-size: 14px; }
.hi-txt small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-chev { color: var(--muted); font-size: 18px; }
.hi-badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: #ff4d4f; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }

/* 充值 / 提现 */
.wallet-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.wallet-tabs button { flex: 1; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(139, 107, 255, .2); color: var(--muted); font-size: 13px; }
.wallet-tabs button.on { background: linear-gradient(90deg, #8b5bff, #5b8cff); color: #fff; border-color: transparent; }
.quick-amt { display: flex; gap: 8px; margin: -4px 0 12px; }
.quick-amt button { flex: 1; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(139, 107, 255, .2); color: #cfc6ea; font-size: 12px; }

/* 公告 / 机器人消息 */
.ann-row { padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); font-size: 12px; color: #d8d0f5; }
.ann-time { font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.bot-msg { margin-bottom: 10px; border: 1px solid rgba(139, 107, 255, .2); border-radius: 10px; overflow: hidden; }
.bot-title { background: linear-gradient(180deg, #ffd35c, #efb021); color: #3a2400; font-weight: 700; font-size: 12px; padding: 6px 9px; }
.bot-body { margin: 0; padding: 8px 9px; font-size: 11px; color: #cfc6ea; white-space: pre-wrap; font-family: inherit; }

/* 聊天室顶部名称 */
.room-bar { display: flex; align-items: center; justify-content: center; padding: 6px 10px; font-size: 12px; color: #cfc6ea; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); }

/* 头像 & 大厅 */
.hi-ic img.hi-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.m-ava-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.me-ava-lg img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-avatar-row { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.lobby-screen { padding: 10px; }
.lobby-list { display: flex; flex-direction: column; gap: 12px; }
.lobby-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #3a2a6b, #241548); border: 1px solid rgba(139, 107, 255, .25); }
.lobby-av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 24px; background: linear-gradient(135deg, #5b8cff, #8b5bff); flex: none; }
.lobby-av img { width: 100%; height: 100%; object-fit: cover; }
.lobby-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lobby-info b { font-size: 15px; }
.lobby-info small { font-size: 11px; color: var(--muted); }
.lobby-enter { flex: none; padding: 7px 12px; border-radius: 9px; background: linear-gradient(90deg, #ffd35c, #f0a21f); color: #3a2400; font-size: 12px; font-weight: 700; }
.rd-more { color: #b9a7ff; font-size: 11px; cursor: pointer; margin-left: auto; }
.rd-head .rd-close { margin-left: 10px; }

/* 充值方式 */
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pay-methods button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(139, 107, 255, .2); color: var(--muted); font-size: 12px; }
.pay-methods button.on { border-color: rgba(255, 207, 107, .5); background: rgba(255, 207, 107, .1); color: #ffd894; }
.pm-ic { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; }
.pm-alipay { background: linear-gradient(135deg, #1677ff, #0b57d0); }
.pm-wechat { background: linear-gradient(135deg, #2fd06a, #12a050); }
.pm-usdt { background: linear-gradient(135deg, #26a17b, #0f7a58); }

/* 提现收款码 */
.qr-upload { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.qr-box { width: 100%; min-height: 120px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px dashed rgba(139,107,255,.3); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qr-preview { max-width: 140px; max-height: 140px; border-radius: 8px; }
.qr-empty { color: var(--muted); font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-empty i { font-size: 26px; font-style: normal; }
.net-btns { display: flex; gap: 8px; margin-bottom: 12px; }
.net-btns button { flex: 1; height: 36px; border-radius: 9px; background: rgba(255,255,255,.05); border: 1px solid rgba(139,107,255,.2); color: var(--muted); font-size: 12px; }
.net-btns button.on { background: linear-gradient(90deg, #8b5bff, #5b8cff); color: #fff; border-color: transparent; }

/* 弹层隐藏滚动条（VIP 特权等） */
.me-sheet-body { scrollbar-width: none; -ms-overflow-style: none; }
.me-sheet-body::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* 客服聊天隐藏滚动条 */
.chat-body { scrollbar-width: none; -ms-overflow-style: none; }
.chat-body::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* 全站隐藏滚动条（仍可滚动） */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* 充值去支付 */
.pay-link { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

/* 我的下注折叠 */
.my-bets-toggle { display: flex; justify-content: center; padding: 2px 0 4px; }
.mbt-arrow { width: 30px; height: 20px; border-radius: 10px; background: rgba(139,107,255,.15); border: 1px solid rgba(139,107,255,.25); color: #b9a7ff; font-size: 12px; line-height: 1; transition: transform .2s; }
.mbt-arrow.open { transform: rotate(180deg); }
.my-bets-panel { margin: 0 10px 6px; background: rgba(20,10,46,.92); border: 1px solid rgba(139,107,255,.25); border-radius: 10px; padding: 8px 10px; }
.mbp-head { font-size: 11px; color: #cfc6ea; margin-bottom: 4px; }
.mbp-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,.05); font-size: 12px; }
.mbp-row:last-child { border-bottom: none; }
.mbp-row span { flex: 1; }
.mbp-row small { color: var(--muted); }
.mbp-row b { color: var(--gold); }

.cbubble.recalled { opacity: .6; font-style: italic; }
.mbp-cancel { margin-left: 6px; font-size: 10px; color: #ff8f8f; background: none; border: 1px solid rgba(255,143,143,.4); border-radius: 6px; padding: 1px 6px; }

.mbp-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #cfc6ea; margin-bottom: 4px; }

.chat-img { max-width: 180px; max-height: 240px; border-radius: 8px; display: block; }

.chat-input .chat-img-btn { display: flex; align-items: center; justify-content: center; padding: 0 10px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); font-size: 12px; cursor: pointer; flex: none; }

.qr-pick { cursor: pointer; }

/* 签到 */
.checkin-fab { position: fixed; right: 14px; bottom: 84px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #ffd35c, #f0a21f); color: #3a2400; font-size: 11px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; box-shadow: 0 6px 18px rgba(240, 162, 31, .45); z-index: 45; }
.checkin-fab .ck-ic { font-size: 18px; line-height: 1; }
  .checkin-hide { position: fixed; right: 14px; bottom: 60px; width: 56px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(139, 107, 255, .3); color: #b9aee6; font-size: 10px; line-height: 18px; text-align: center; z-index: 45; }
.checkin-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; }
.checkin-page { width: 100%; max-width: 420px; background: #1b1136; border: 1px solid rgba(139, 107, 255, .3); border-radius: 16px; padding: 16px; }
.ck-head { display: flex; align-items: center; justify-content: space-between; }
.ck-head b { font-size: 16px; }
.ck-x { color: var(--muted); font-size: 16px; background: none; }
.ck-sub { font-size: 11px; color: var(--muted); margin: 6px 0 12px; }
.ck-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ck-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(139, 107, 255, .15); font-size: 10px; color: var(--muted); }
.ck-day b { font-size: 11px; color: #cfc6ea; }
.ck-day.today { border-color: rgba(255, 207, 107, .5); }
.ck-day.signed { background: rgba(255, 207, 107, .12); border-color: rgba(255, 207, 107, .35); color: #ffd894; }
.ck-day.signed b { color: #ffd894; }
.ck-info { display: flex; gap: 8px; margin: 12px 0; }
.ck-info div { flex: 1; background: rgba(255, 255, 255, .04); border-radius: 9px; padding: 8px; text-align: center; }
.ck-info span { display: block; font-size: 10px; color: var(--muted); }
.ck-info b { font-size: 13px; color: #ffd894; }
.ck-full { font-size: 11px; color: #ffd894; background: rgba(255, 207, 107, .08); border: 1px dashed rgba(255, 207, 107, .3); border-radius: 8px; padding: 8px; margin-bottom: 12px; }
.ck-btn { width: 100%; }

.ck-need { font-size: 11px; color: #ff8f8f; text-align: center; margin-bottom: 8px; }

.wd-req { display: flex; gap: 8px; margin-bottom: 10px; }
.wd-req div { flex: 1; background: rgba(255,255,255,.04); border-radius: 9px; padding: 8px; text-align: center; }
.wd-req span { display: block; font-size: 10px; color: var(--muted); }
.wd-req b { font-size: 12px; color: #ff8f8f; }
.wd-req b.ok { color: #7ce0b0; }

/* iconfont 矢量图标 */
.iconfont { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.12em; }
.tabicon svg { width: 20px; height: 20px; }
.hi-ic svg { width: 22px; height: 22px; fill: #fff; }
.wg-ic svg { width: 20px; height: 20px; fill: #fff; }
.mm-ic svg { width: 16px; height: 16px; }
.ck-ic svg { width: 20px; height: 20px; fill: #3a2400; }
.vip-gem svg { width: 20px; height: 20px; }
.promo-ic svg { width: 24px; height: 24px; }

/* ---------- 手机端自适应 ---------- */
body { overflow-x: hidden; }
@media (max-width: 380px) {
  .bar-title b { font-size: 17px; }
  .hi-ic { width: 46px; height: 46px; }
  .hi-txt b { font-size: 14px; }
  .hi-txt small { font-size: 10px; }
  .wg-ic { width: 36px; height: 36px; }
  .wallet-grid { gap: 6px; }
  .ck-grid { gap: 3px; }
  .ck-day { padding: 6px 1px; font-size: 9px; }
  .ck-day b { font-size: 10px; }
  .draw-strip { gap: 4px; }
  .tabbar a { font-size: 10px; }
  .checkin-page { padding: 12px; }
  .sheet { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 360px) {
  .ck-grid { grid-template-columns: repeat(4, 1fr); }
  .hi-ic { width: 42px; height: 42px; }
  .hi-txt b { font-size: 13px; }
  .wallet-grid button span { font-size: 10px; }
  .wallet-grid .wg-ic { width: 32px; height: 32px; }
}

.bar-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, .18); margin-right: 6px; flex: none; }

/* 手机/平板全宽，避免两侧黑边 */
@media (max-width: 899px) {
  body { display: block; }
  #app { width: 100%; }
  .phone { width: 100%; max-width: none; }
}

.bar-title { display: flex; align-items: center; justify-content: center; gap: 6px; }
.bar-title b { display: inline; }
.bar-logo { margin-right: 0; }

.bar { padding-left: 20px; }
.bar-title { justify-content: flex-start; }

/* 走马灯 */
.marquee { flex: none; height: 24px; overflow: hidden; background: rgba(0, 0, 0, .28); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.marquee-inner { display: inline-flex; white-space: nowrap; height: 24px; align-items: center; animation: marquee 18s linear infinite; }
.marquee-inner span { font-size: 11px; color: #ffd894; padding-right: 60px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 房间返回 */
.room-back { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; color: #d8d0f5; margin-right: 6px; background: rgba(255, 255, 255, .06); }
/* 强制公告 */
.force-mask, .win-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; }
.force-box, .win-box { width: 100%; max-width: 340px; background: #1b1136; border: 1px solid rgba(139, 107, 255, .35); border-radius: 16px; padding: 20px 16px; text-align: center; }
.force-box h3, .win-box h3 { margin: 0 0 10px; font-size: 16px; }
.force-box p { font-size: 13px; line-height: 1.6; color: #d8d0f5; white-space: pre-wrap; margin: 0 0 16px; }
.force-box .btn-primary, .win-box .btn-primary { width: 100%; }
.win-ic { font-size: 40px; margin-bottom: 6px; }
.win-amount { font-size: 30px; font-weight: 800; color: #ffd894; margin: 6px 0; }
.win-box p { font-size: 12px; color: var(--muted); margin: 0 0 16px; }

/* 聊天室文字下注 */
.inputbar { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.bet-cmd-row { display: flex; gap: 6px; }
.bet-cmd { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--text); font-size: 13px; }
.bet-cmd::placeholder { color: #8a80aa; }
.bet-cmd-icons { display: flex; gap: 5px; }
.bet-cmd-icons button { flex: 1; height: 28px; border-radius: 8px; background: rgba(139,107,255,.14); border: 1px solid rgba(139,107,255,.25); color: #cfc6ea; font-size: 11px; }
.bet-cmd-icons button:active { background: rgba(139,107,255,.28); }

/* 自己下注的消息在右侧，气泡颜色不同 */
.m.minebet { flex-direction: row-reverse; }
.m.minebet .m-body { align-items: flex-end; }
.m.minebet .m-meta { justify-content: flex-end; }
.m.minebet .m-bubble { background: linear-gradient(135deg, #6a46d8, #9a7bff); border-color: rgba(255, 255, 255, .22); }
.m.minebet .m-ava { margin-left: 8px; margin-right: 0; }

.m.minebet { justify-content: flex-start; }
.m.minebet .m-body { align-items: flex-end; margin-left: auto; }
.m.minebet .m-bubble { margin-left: auto; }

/* 自己的下注消息：整条靠右，气泡右对齐 */
.m.minebet { flex-direction: row-reverse; justify-content: flex-start; }
.m.minebet .m-body { flex: none; display: flex; flex-direction: column; align-items: flex-end; max-width: 86%; }
.m.minebet .m-meta { justify-content: flex-end; }
.m.minebet .m-bubble { margin-left: auto; }

.m.minebet .m-bubble { border-radius: 12px 4px 12px 12px; }

/* 实时玩家投注账单 */
.bill-bar { margin: 6px 0 2px; }
.bill-toggle { width: 100%; height: 30px; border-radius: 9px; background: rgba(139, 107, 255, .12); border: 1px solid rgba(139, 107, 255, .25); color: #cfc6ea; font-size: 12px; }
.bill-panel { margin: 4px 0 6px; max-height: 180px; overflow-y: auto; background: rgba(0, 0, 0, .18); border-radius: 10px; padding: 8px 10px; }
.bill-row { display: flex; gap: 8px; font-size: 11px; color: #d8d0f5; padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .05); }
.bill-row b { flex: none; color: #ffd894; }
.bill-row span { flex: 1; word-break: break-word; }
.bill-empty { font-size: 11px; color: var(--muted); text-align: center; padding: 6px 0; }

.bill-total { text-align: right; font-size: 11px; color: #ffd894; padding-top: 6px; }

.bill-detail-head { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,.12); font-size: 11px; color: #b9aee0; }
.bill-detail span { flex: 1; }
.bill-cancel { flex: none; font-size: 10px; color: #ff8f8f; background: rgba(255, 107, 107, .12); border-radius: 6px; padding: 2px 8px; margin-left: 6px; }

.bill-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
