/* ============ 亿点 主题样式（白色） ============ */
:root {
  --bg: #f2f4fa;
  --bg2: #e9edf6;
  --card: #ffffff;
  --card-border: #e3e8f2;
  --gold: #e89b1c;
  --gold2: #ff9d2e;
  --gold-grad: linear-gradient(135deg, #ffc94d, #ff9d2e);
  --red: #e5484d;
  --green: #18a058;
  --blue: #2f6bff;
  --text: #1c2333;
  --text-dim: #7b8399;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(30, 40, 90, 0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(77, 100, 255, 0.08), transparent 60%),
    radial-gradient(900px 400px at -10% 20%, rgba(255, 157, 46, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

/* ============ 顶部导航 ============ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 26px; height: 62px;
}
.logo { font-size: 24px; font-weight: 800; letter-spacing: 1px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo .icon { font-size: 26px; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a {
  padding: 8px 14px; border-radius: 10px; font-size: 14.5px; color: var(--text-dim);
  transition: all .2s; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(0, 0, 0, .05); }
.nav a.active { color: #fff; background: linear-gradient(135deg, #ffb42e, #f0881a); font-weight: 700; box-shadow: 0 4px 12px rgba(240, 136, 26, .3); }
.top-user { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.coin-pill {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: rgba(232, 155, 28, 0.10); border: 1px solid rgba(232, 155, 28, 0.35); font-weight: 700; color: var(--gold); font-size: 14px;
}
.vip-pill {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: linear-gradient(135deg, #7b2ff7, #b44dff); color: #fff;
}
.btn-login {
  padding: 8px 20px; border: none; border-radius: 10px; font-size: 14px; font-weight: 700;
  background: var(--gold-grad); color: #6b3d00; transition: transform .15s, box-shadow .15s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 157, 46, 0.4); }
.btn-ghost {
  padding: 8px 18px; border: 1px solid rgba(28, 35, 51, .2); border-radius: 10px; font-size: 14px;
  background: transparent; color: var(--text); transition: all .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.user-menu { position: relative; cursor: pointer; }
.user-menu .avatar {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4da6ff, #7b2ff7); color: #fff; font-weight: 800; font-size: 15px;
}
.user-dropdown {
  position: absolute; right: 0; top: 46px; min-width: 170px; padding: 8px;
  background: #fff; border: 1px solid var(--card-border); border-radius: 12px; box-shadow: 0 12px 40px rgba(30, 40, 90, 0.15);
  display: none; z-index: 200;
}
.user-menu.open .user-dropdown { display: block; }
.user-dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.user-dropdown a:hover { background: rgba(0, 0, 0, .05); color: var(--gold); }
.user-dropdown .sep { height: 1px; background: rgba(0, 0, 0, .08); margin: 6px 8px; }

/* ============ 布局 ============ */
.container { max-width: 1180px; margin: 0 auto; padding: 22px 20px 120px; }
.page-enter { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============ 卡片/通用 ============ */
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 2px 12px rgba(30, 40, 90, .04);
}
.card-title { font-size: 17px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--gold-grad); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section-title { font-size: 20px; font-weight: 800; margin: 30px 0 16px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 5px; height: 20px; border-radius: 3px; background: var(--gold-grad); }
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ============ 按钮 ============ */
.btn {
  padding: 10px 22px; border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  background: var(--gold-grad); color: #6b3d00; transition: all .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 157, 46, .35); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-blue { background: linear-gradient(135deg, #4da6ff, #2f6bff); color: #fff; }
.btn-blue:hover { box-shadow: 0 6px 18px rgba(77, 166, 255, .35); }
.btn-green { background: linear-gradient(135deg, #3ddc97, #1fbf7a); color: #06291c; }
.btn-red { background: linear-gradient(135deg, #ff6b6b, #e83e3e); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-outline { background: transparent; border: 1px solid rgba(28, 35, 51, .22); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); box-shadow: none; }
.btn-block { width: 100%; }

/* ============ 表单 ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 15px; color: var(--text);
  background: #fff; border: 1px solid rgba(28, 35, 51, .16); outline: none; transition: border .2s;
}
.field input:focus { border-color: var(--gold); }
.captcha-row { display: flex; gap: 10px; }
.captcha-box {
  width: 130px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fdf3d8, #ffe9c4); border: 1px solid rgba(232, 155, 28, .4);
  font-size: 22px; font-weight: 800; letter-spacing: 4px; color: #8a5a00; cursor: pointer; user-select: none;
}

/* ============ 横幅轮播 ============ */
.banner-wrap { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.banner-track { display: flex; transition: transform .6s ease; }
.banner-slide { min-width: 100%; height: 210px; display: flex; align-items: center; justify-content: center; position: relative; }
.banner-slide .banner-bg { position: absolute; inset: 0; opacity: .5; }
.banner-slide h2 { font-size: 30px; font-weight: 900; position: relative; z-index: 1; text-shadow: 0 2px 16px rgba(0, 0, 0, .25); color: #fff; }
.banner-slide p { position: relative; z-index: 1; margin-top: 8px; color: rgba(255, 255, 255, .95); font-size: 15px; }
.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.banner-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; transition: all .3s; }
.banner-dots span.on { background: #fff; width: 22px; border-radius: 4px; }

/* ============ 公告 ============ */
.notice-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; margin-top: 16px;
  background: rgba(232, 155, 28, 0.07); border: 1px solid rgba(232, 155, 28, 0.25); border-radius: 12px;
  font-size: 14px; color: var(--text-dim); overflow: hidden;
}
.notice-bar .tag { flex-shrink: 0; padding: 3px 10px; border-radius: 6px; background: var(--gold-grad); color: #fff; font-weight: 800; font-size: 12px; }
.notice-ticker { flex: 1; white-space: nowrap; overflow: hidden; }
.notice-ticker span { display: inline-block; padding-left: 100%; animation: ticker 18s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ============ 游戏卡片 ============ */
.game-card {
  display: block; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 20px; text-align: center; cursor: pointer; transition: all .25s; position: relative; overflow: hidden;
  color: inherit; text-decoration: none;
}
.game-card:hover { transform: translateY(-5px); border-color: rgba(232, 155, 28, .5); box-shadow: 0 14px 34px rgba(30, 40, 90, .12); }
.game-card .g-icon { font-size: 46px; display: block; margin-bottom: 12px; }
.game-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.game-card p { font-size: 13px; color: var(--text-dim); min-height: 36px; }
.game-card .g-tag {
  position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: rgba(47, 107, 255, 0.08); color: var(--blue); border: 1px solid rgba(47, 107, 255, .3);
}
.game-card .g-best { font-size: 12.5px; color: var(--gold); margin-top: 8px; }

/* ============ 签到 ============ */
.checkin-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.checkin-day {
  border-radius: 12px; padding: 16px 6px; text-align: center;
  background: #f6f8fd; border: 1px solid var(--card-border); position: relative;
}
.checkin-day .d { font-size: 13px; color: var(--text-dim); }
.checkin-day .r { font-size: 18px; font-weight: 800; color: var(--gold); margin-top: 6px; }
.checkin-day .dot { font-size: 20px; margin-top: 4px; }
.checkin-day.done { border-color: rgba(24, 160, 88, .5); background: rgba(24, 160, 88, .06); }
.checkin-day.today { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 155, 28, .15); }
.checkin-day.today::after { content: '今日'; position: absolute; top: -9px; right: 8px; font-size: 11px; font-weight: 800; color: #fff; background: var(--gold-grad); padding: 2px 8px; border-radius: 6px; }

/* ============ 抽奖转盘 ============ */
.wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wheel {
  width: 320px; height: 320px; border-radius: 50%; position: relative;
  border: 6px solid var(--gold); box-shadow: 0 0 40px rgba(232, 155, 28, .25);
  overflow: hidden; transition: transform 3.5s cubic-bezier(.17, .67, .12, .99);
}
.wheel .seg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: flex-start; justify-content: center; }
.wheel .seg .txt { margin-top: 26px; font-size: 13px; font-weight: 700; transform-origin: center; }
.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--gold-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3); z-index: 5; text-align: center; line-height: 1.2;
}
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 6; font-size: 30px; color: var(--red); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }

/* ============ 兑换商品 ============ */
.product-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 8px; transition: all .2s;
}
.product-card:hover { border-color: rgba(232, 155, 28, .5); transform: translateY(-3px); }
.product-card .p-icon { font-size: 40px; }
.product-card h3 { font-size: 15.5px; }
.product-card p { font-size: 12.5px; color: var(--text-dim); flex: 1; }
.product-card .p-cost { font-size: 17px; font-weight: 800; color: var(--gold); }

/* ============ 排行榜 ============ */
.rank-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: #f6f8fd; margin-bottom: 8px; }
.rank-row .no { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; background: rgba(28, 35, 51, .08); }
.rank-row:nth-child(2) .no { background: linear-gradient(135deg, #ffd76e, #ff9d2e); color: #fff; }
.rank-row:nth-child(3) .no { background: linear-gradient(135deg, #c0c8d8, #8a93a8); color: #fff; }
.rank-row:nth-child(4) .no { background: linear-gradient(135deg, #d99a6c, #a86a3d); color: #fff; }
.rank-row .pts { margin-left: auto; font-weight: 800; color: var(--gold); }
.rank-row.me { border: 1px solid rgba(232, 155, 28, .5); background: rgba(232, 155, 28, .06); }

/* ============ 流水/列表 ============ */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid rgba(28, 35, 51, .07); font-size: 14px; }
.list-row:last-child { border-bottom: none; }
.list-row .amt { margin-left: auto; font-weight: 800; }
.amt.plus { color: var(--green); } .amt.minus { color: var(--red); }
.empty { text-align: center; padding: 40px 0; color: var(--text-dim); font-size: 14px; }

/* ============ 徽章 ============ */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-gold { background: var(--gold-grad); color: #fff; }
.badge-blue { background: rgba(47, 107, 255, .08); color: var(--blue); border: 1px solid rgba(47, 107, 255, .3); }
.badge-green { background: rgba(24, 160, 88, .08); color: var(--green); border: 1px solid rgba(24, 160, 88, .35); }
.badge-red { background: rgba(229, 72, 77, .08); color: var(--red); border: 1px solid rgba(229, 72, 77, .35); }

/* ============ 统计块 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat .num { font-size: 24px; font-weight: 900; color: var(--gold); margin-top: 6px; }
.stat .label { font-size: 13px; color: var(--text-dim); }

/* ============ 登录/注册页 ============ */
.auth-wrap { min-height: calc(100vh - 62px); display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-tabs { display: flex; background: rgba(28, 35, 51, .06); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; padding: 10px; border: none; background: transparent; color: var(--text-dim); font-size: 15px; font-weight: 700; border-radius: 9px; }
.auth-tabs button.on { background: var(--gold-grad); color: #fff; }
.auth-title { text-align: center; font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-dim); font-size: 13.5px; margin-bottom: 24px; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(30, 40, 90, .45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 999; animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 28px; width: 92%; max-width: 460px; box-shadow: 0 20px 60px rgba(30, 40, 90, .2); position: relative; }
.modal h3 { font-size: 19px; margin-bottom: 14px; }
.modal-lg { max-width: 780px !important; }
.modal-xl { max-width: 920px !important; width: 94% !important; }
.modal-xl .table-wrap { max-height: 52vh; overflow: auto; }
.modal-xl table { width: 100%; min-width: 700px; }
.modal-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pg-btn { padding: 5px 11px; font-size: 12.5px; border: 1px solid var(--card-border); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; }
.pg-btn.on { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 700; }
.pg-btn:disabled { opacity: .45; cursor: not-allowed; }
.pg-btn:not(:disabled):hover { border-color: var(--gold); color: var(--gold); }
.modal-lg .table-wrap { overflow: auto; }
.modal-lg table { width: 100%; min-width: 640px; }
.lr-commit { border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; background: rgba(232,155,28,.05); }
.commit-str { font-size: 12.5px; letter-spacing: .5px; word-break: break-all; }
.vrow { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--card-border); font-size: 13.5px; }
.vrow2 { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--card-border); font-size: 13px; flex-wrap: wrap; }
.vlabel2 { width: 78px; flex: none; color: var(--text-dim); font-weight: 600; }
.vval2 { flex: 1; min-width: 160px; word-break: break-all; line-height: 1.6; font-size: 12.5px; }
.vcopy { flex: none; }
.vrow:last-child { border-bottom: none; }
.vlabel { width: 92px; flex: none; color: var(--text-dim); font-weight: 600; }
.vval { flex: 1; word-break: break-all; line-height: 1.6; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; }
.modal-close:hover { color: var(--text); }

/* ============ Toast ============ */
#toast-container { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text);
  background: #fff; border: 1px solid var(--card-border); box-shadow: 0 10px 30px rgba(30, 40, 90, .15);
  animation: fadeDown .3s ease;
}
.toast.success { border-color: rgba(24, 160, 88, .5); }
.toast.error { border-color: rgba(229, 72, 77, .5); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ============ 游戏内通用 ============ */
.game-shell { max-width: 900px; margin: 0 auto; }
.game-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.game-score { font-size: 18px; font-weight: 800; }
.game-canvas-area { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.game-result-overlay { text-align: center; padding: 20px; }
.game-result-overlay h2 { font-size: 26px; margin-bottom: 10px; }
.game-result-overlay .pts { font-size: 40px; font-weight: 900; color: var(--gold); margin: 10px 0; }
.tile { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 800; }

/* 华容道 */
.sliding-board { display: grid; gap: 6px; background: rgba(28, 35, 51, .04); padding: 10px; border-radius: 12px; }
.sliding-tile {
  width: 78px; height: 78px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; cursor: pointer; user-select: none;
  background: linear-gradient(145deg, #ffc94d, #ff9d2e); color: #fff; transition: all .15s;
}
.sliding-tile:hover { transform: scale(1.04); }
.sliding-tile.empty { background: rgba(28, 35, 51, .05); cursor: default; }

/* 2048 */
.t2048-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: rgba(28, 35, 51, .04); padding: 12px; border-radius: 14px; }
.t2048-cell { width: 86px; height: 86px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; background: rgba(28, 35, 51, .05); color: var(--text); transition: all .12s; }
.t2048-cell.v2 { background: #eee4da; color: #776e65; } .t2048-cell.v4 { background: #ede0c8; color: #776e65; }
.t2048-cell.v8 { background: #f2b179; color: #fff; } .t2048-cell.v16 { background: #f59563; color: #fff; }
.t2048-cell.v32 { background: #f67c5f; color: #fff; } .t2048-cell.v64 { background: #f65e3b; color: #fff; }
.t2048-cell.v128 { background: #edcf72; color: #fff; } .t2048-cell.v256 { background: #edcc61; color: #fff; }
.t2048-cell.v512 { background: #edc850; color: #fff; } .t2048-cell.v1024 { background: #edc53f; color: #fff; }
.t2048-cell.v2048 { background: #edc22e; color: #fff; }

/* 扫雷 */
.mine-board { display: grid; gap: 3px; }
.mine-cell { width: 34px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; background: rgba(28, 35, 51, .07); cursor: pointer; user-select: none; transition: all .1s; }
.mine-cell:hover { background: rgba(28, 35, 51, .13); }
.mine-cell.open { background: rgba(28, 35, 51, .03); cursor: default; }
.mine-cell.mine { background: rgba(229, 72, 77, .35); }

/* 猜数字 */
.guess-history { width: 100%; max-width: 420px; }
.guess-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; background: rgba(28, 35, 51, .04); margin-bottom: 6px; font-size: 14px; }
.guess-row .g-num { font-weight: 800; letter-spacing: 3px; font-size: 18px; color: var(--gold); }
.guess-dots { display: flex; gap: 6px; margin-left: auto; }
.dot-b { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); }
.dot-g { width: 22px; height: 22px; border-radius: 50%; background: var(--green); }

/* 记忆翻牌 */
.mem-board { display: grid; gap: 10px; }
.mem-card { width: 78px; height: 100px; border-radius: 12px; cursor: pointer; position: relative; transform-style: preserve-3d; transition: transform .35s; }
.mem-card.flip { transform: rotateY(180deg); }
.mem-card .face { position: absolute; inset: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; font-size: 30px; }
.mem-card .front { background: linear-gradient(145deg, #4da6ff, #2f6bff); border: 1px solid rgba(47, 107, 255, .4); }
.mem-card .front::after { content: '?'; font-size: 30px; font-weight: 900; color: #fff; }
.mem-card .back { background: linear-gradient(145deg, #ffc94d, #ff9d2e); transform: rotateY(180deg); color: #fff; }
.mem-card.matched .back { background: linear-gradient(145deg, #3ddc97, #1fbf7a); }

/* ============ 页脚（固定底部居中，始终显示） ============ */
.footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  padding: 12px 20px; text-align: center; color: var(--text-dim); font-size: 12.5px; line-height: 1.9;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--card-border);
}

/* ============ 欢乐解谜（数字解谜） ============ */
.lotto-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.lotto-tabs button {
  padding: 10px 26px; border-radius: 12px; border: 1px solid var(--card-border);
  background: #fff; color: var(--text); font-size: 15px; font-weight: 700; transition: all .2s;
}
.lotto-tabs button:hover { border-color: rgba(232, 155, 28, .5); }
.lotto-tabs button.on { background: var(--gold-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(255, 157, 46, .3); }

.lotto-result { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.lr-nums { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lr-ball {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: #fff;
  background: linear-gradient(145deg, #ffc94d, #ff9d2e); box-shadow: 0 4px 14px rgba(255, 157, 46, .3);
}
.lr-plus { font-size: 18px; color: var(--text-dim); font-weight: 800; }
.lr-eq { font-size: 20px; color: var(--text-dim); font-weight: 800; }
.lr-sum { font-size: 26px; font-weight: 900; color: var(--gold); }
.lr-count {
  font-size: 30px; font-weight: 900; color: var(--gold); letter-spacing: 2px;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(232, 155, 28, .3);
}
.lr-right { text-align: center; }
.lr-props { display: flex; gap: 6px; flex-wrap: wrap; }
.lr-num-chip {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px;
  border-radius: 50%; font-weight: 900; color: #fff; background: var(--gold-grad); padding: 0 8px;
}

/* 模式切换 */
.lotto-modes { display: flex; gap: 10px; flex-wrap: wrap; }
.mode-btn {
  padding: 9px 22px; border-radius: 10px; border: 1px solid var(--card-border);
  background: #f6f8fd; color: var(--text-dim); font-size: 14px; font-weight: 700; transition: all .2s;
}
.mode-btn span { font-size: 12px; opacity: .8; margin-left: 4px; }
.mode-btn:hover { border-color: rgba(232, 155, 28, .5); }
.mode-btn.on { background: var(--gold-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(255, 157, 46, .3); }

/* 投注种类 */
.lotto-picks { display: flex; flex-direction: column; gap: 8px; }
.pick-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.pick-btn {
  padding: 10px 0; border-radius: 10px; border: 1px solid var(--card-border);
  background: #f6f8fd; color: var(--text); font-size: 14px; font-weight: 700; transition: all .15s;
}
.pick-btn:hover { border-color: rgba(232, 155, 28, .6); }
.pick-btn.on {
  background: linear-gradient(135deg, #ffc94d, #ff9d2e); color: #fff; border-color: transparent;
  box-shadow: 0 3px 10px rgba(255, 157, 46, .35);
}
.pick-btn.pick-ctrl { color: var(--blue); border-color: rgba(47, 107, 255, .35); background: rgba(47, 107, 255, .05); }

/* 金额栏 */
.lotto-amtbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.amt-btn {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--card-border);
  background: #f6f8fd; color: var(--text); font-size: 13.5px; font-weight: 700; transition: all .15s;
}
.amt-btn:hover { border-color: rgba(232, 155, 28, .6); color: var(--gold); }
.amt-total { margin-left: auto; font-size: 14.5px; font-weight: 700; padding: 0 6px; white-space: nowrap; }

/* 快捷金额 */
.lotto-quick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-label { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.q-btn {
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--card-border);
  background: #fff; color: var(--text-dim); font-size: 13px; font-weight: 700; transition: all .15s;
}
.q-btn:hover { border-color: rgba(232, 155, 28, .6); color: var(--gold); }
.lotto-quick input {
  padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(28, 35, 51, .2); font-size: 14px; color: var(--text); outline: none;
}
.lotto-quick input:focus { border-color: var(--gold); }

/* 号码占比 */
.num-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ns-col { display: flex; flex-direction: column; gap: 8px; }
.ns-cell {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  background: #f6f8fd; border: 1px solid var(--card-border); font-size: 13px;
}
.ns-cell b {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffc94d, #ff9d2e); color: #fff; font-size: 14px; flex-shrink: 0;
}
.ns-cell span { color: var(--text); font-weight: 600; }
.ns-cell span.dim { color: var(--text-dim); font-weight: 400; margin-left: auto; }
.ns-total {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px; border-radius: 10px; border: 1px dashed rgba(232, 155, 28, .5); background: rgba(232, 155, 28, .05);
}

/* 表格通用 */
.table-wrap { overflow-x: auto; }
.lotto-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 680px; }
.lotto-table th {
  text-align: left; padding: 10px 12px; color: var(--text-dim); font-size: 12.5px;
  border-bottom: 1px solid rgba(28, 35, 51, .1); white-space: nowrap; background: #f6f8fd;
}
.lotto-table td { padding: 11px 12px; border-bottom: 1px solid rgba(28, 35, 51, .06); white-space: nowrap; }
.lotto-table tr:hover td { background: rgba(28, 35, 51, .02); }
.lotto-table tr.cur td { background: rgba(232, 155, 28, .06); }

/* 走势图 */
.trend-table { border-collapse: collapse; font-size: 12px; min-width: 1100px; }
.trend-table th {
  padding: 6px 5px; text-align: center; color: var(--text-dim); font-size: 11px; font-weight: 700;
  border: 1px solid rgba(28, 35, 51, .08); background: #f6f8fd; white-space: nowrap; min-width: 26px;
}
.trend-table td {
  padding: 6px 5px; text-align: center; border: 1px solid rgba(28, 35, 51, .06); white-space: nowrap; min-width: 26px;
  font-variant-numeric: tabular-nums;
}
.trend-table tr.t-meta td { background: #fafbfe; color: var(--text-dim); font-weight: 600; }
.trend-table td.hit {
  background: linear-gradient(135deg, #ffc94d, #ff9d2e); color: #fff; font-weight: 900; border-radius: 6px;
}
/* 走势图：尾数/余数列数字颜色跟随主类型主题色，无颜色填充 */
.trend-table td.tnum { color: var(--gaccent, #4f7fe0); font-weight: 800; }
.lotto-theme .trend-table td.tnum { color: var(--gaccent); }
.trend-table td.warm { color: var(--gold); font-weight: 700; }
.trend-table td.per { font-weight: 700; color: var(--text); }

/* 哈希 */
.lr-hash { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hash-str {
  font-family: "SF Mono", ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12.5px; word-break: break-all; line-height: 1.7;
  background: #f6f8fd; border: 1px solid var(--card-border); border-radius: 8px;
  padding: 10px 12px; color: var(--text); flex: 1; min-width: 200px;
}
.hash-code { font-family: "SF Mono", ui-monospace, Consolas, "Courier New", monospace; font-size: 11.5px; color: var(--gold); word-break: break-all; }
.hash-commit { padding: 12px 14px; border-radius: 10px; background: rgba(232, 155, 28, .06); border: 1px solid rgba(232, 155, 28, .2); }
.lr-count.closed { color: var(--red); text-shadow: 0 0 22px rgba(229, 72, 77, .3); }
.verify-item { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f6f8fd; border: 1px solid var(--card-border); font-size: 12.5px; line-height: 1.9; word-break: break-all; }
.verify-item.ok { border-color: rgba(24, 160, 88, .45); }
.verify-item.fail { border-color: rgba(229, 72, 77, .45); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .checkin-grid { grid-template-columns: repeat(4, 1fr); }
  .nav { display: none; }
  .wheel { width: 260px; height: 260px; }
  .sliding-tile { width: 64px; height: 64px; font-size: 22px; }
  .t2048-cell { width: 70px; height: 70px; font-size: 24px; }
  .mem-card { width: 62px; height: 80px; }
  .mine-cell { width: 30px; height: 30px; }
  .pick-row { grid-template-columns: repeat(5, 1fr); }
  .num-grid { grid-template-columns: repeat(3, 1fr); }
  .num-stats { grid-template-columns: 1fr; }
  .lotto-amtbar .amt-total { margin-left: 0; width: 100%; }
}


/* ============ 号码联动投注（0-27） ============ */
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ns-cell2 {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: #f6f8fd; border: 1px solid var(--card-border); cursor: pointer; transition: all .15s; user-select: none;
}
.ns-cell2:hover { border-color: rgba(232, 155, 28, .5); }
.ns-cell2.on { background: rgba(232, 155, 28, .12); border-color: var(--gold); box-shadow: 0 0 0 2px rgba(232, 155, 28, .15); }
.ns-cell2 .ns-num {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffc94d, #ff9d2e); color: #fff; font-size: 13px; flex-shrink: 0;
}
.ns-cell2.on .ns-num { background: linear-gradient(135deg, #ff9d2e, #f0881a); }
.ns-cell2 .ns-odds { font-size: 11.5px; color: var(--text-dim); font-weight: 700; flex-shrink: 0; min-width: 30px; text-align: center; }
.ns-cell2 .ns-odds::before { content: '占比 '; font-weight: 400; }
.ns-cell2 .ns-input {
  width: 100%; min-width: 0; padding: 5px 8px; border-radius: 7px; border: 1px solid rgba(28, 35, 51, .18);
  font-size: 12.5px; color: var(--text); outline: none; background: #fff; text-align: right;
}
.ns-cell2 .ns-input:focus { border-color: var(--gold); }
.ns-cell2.on .ns-input { border-color: rgba(232, 155, 28, .5); background: #fffdf6; }

/* 走势图弹层 */
.trend-periods { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-btn.on { background: linear-gradient(135deg, #ffc94d, #ff9d2e); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(255, 157, 46, .3); }
.trend-scroll { max-height: 72vh; overflow: auto; border: 1px solid var(--card-border); border-radius: 12px; background: #fff; }
.trend-scroll .trend-table { min-width: 1200px; }

/* 参与按钮已截止 */
#lotto-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ============ 金库 ============ */
.vault-pill {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: rgba(47, 107, 255, 0.08); border: 1px solid rgba(47, 107, 255, 0.35); font-weight: 700; color: var(--blue); font-size: 14px;
}

/* ============ 每日排行榜 ============ */
.rank-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.rank-tabs button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--card-border);
  background: #fff; color: var(--text); font-size: 14px; cursor: pointer; font-weight: 600; transition: all .2s;
}
.rank-tabs button.on { background: linear-gradient(135deg, #ffc94d, #ff9d2e); color: #fff; border-color: transparent; box-shadow: 0 3px 10px rgba(255,157,46,.3); }
.rank-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px;
  border-radius: 8px; background: #eef1f6; color: var(--text-dim); font-weight: 800; font-size: 13px;
}
.rank-badge.r1 { background: linear-gradient(135deg, #ffd700, #ff9d2e); color: #fff; }
.rank-badge.r2 { background: linear-gradient(135deg, #c0c8d8, #9aa7bd); color: #fff; }
.rank-badge.r3 { background: linear-gradient(135deg, #e8a06a, #c97b3d); color: #fff; }
.lotto-table tr.me-row { background: rgba(232, 155, 28, 0.07); }


/* ============ 欢乐解谜：双栏布局 + 四种游戏主题色 ============ */
.lotto-layout { display: flex; gap: 16px; align-items: flex-start; }
.lotto-main { flex: 1; min-width: 0; }
.lotto-side { width: 300px; flex-shrink: 0; }
@media (max-width: 1100px) {
  .lotto-layout { flex-direction: column; }
  .lotto-side { width: 100%; }
}

/* 主题色变量（柔和、不刺眼、文字可读） */
.lotto-theme.t-blue   { --gaccent: #4f7fe0; --gaccent-soft: rgba(79,127,224,.14); --gaccent-grad: linear-gradient(145deg, #7aa7f5, #4a72d8); --gaccent-shadow: rgba(79,127,224,.3); }
.lotto-theme.t-green  { --gaccent: #3f9e6e; --gaccent-soft: rgba(63,158,110,.14); --gaccent-grad: linear-gradient(145deg, #6fc49a, #3a9165); --gaccent-shadow: rgba(63,158,110,.3); }
.lotto-theme.t-purple { --gaccent: #7a66c4; --gaccent-soft: rgba(122,102,196,.14); --gaccent-grad: linear-gradient(145deg, #a08ee0, #6e58b5); --gaccent-shadow: rgba(122,102,196,.3); }
.lotto-theme.t-teal   { --gaccent: #359a92; --gaccent-soft: rgba(53,154,146,.14); --gaccent-grad: linear-gradient(145deg, #63c2ba, #2f8d85); --gaccent-shadow: rgba(53,154,146,.3); }

/* 页签：当前游戏用对应主题色 */
.lotto-theme .lotto-tabs button.on { background: var(--gaccent-grad); color: #fff; border-color: transparent; box-shadow: 0 3px 12px var(--gaccent-shadow); }
.lotto-theme .lotto-tabs button:hover { border-color: var(--gaccent); }

/* 开奖球 / 和值 / 倒计时 / 号码走势按钮 */
.lotto-theme .lr-ball { background: var(--gaccent-grad); box-shadow: 0 4px 14px var(--gaccent-shadow); }
.lotto-theme .lr-sum { color: var(--gaccent); }
.lotto-theme .lr-count { color: var(--gaccent); text-shadow: 0 0 22px var(--gaccent-shadow); }
.lotto-theme .lr-count.closed { color: #e05b5b; text-shadow: none; }
.lotto-theme #btn-trend { border-color: var(--gaccent); color: var(--gaccent); }

/* 玩法按钮 / 号码格选中 */
.lotto-theme .pick-btn:hover { border-color: var(--gaccent); }
.lotto-theme .pick-btn.on { background: var(--gaccent-grad); color: #fff; border-color: transparent; box-shadow: 0 3px 10px var(--gaccent-shadow); }
.lotto-theme .ns-cell2:hover { border-color: var(--gaccent); }
.lotto-theme .ns-cell2.on { background: var(--gaccent-soft); border-color: var(--gaccent); box-shadow: 0 0 0 2px var(--gaccent-soft); }
.lotto-theme .ns-num.on { color: var(--gaccent); }

/* 确认参与按钮跟随主题色 */
.lotto-theme #lotto-submit { background: var(--gaccent-grad); border-color: transparent; color: #fff; box-shadow: 0 3px 10px var(--gaccent-shadow); }
.lotto-theme #lotto-submit:disabled { background: #c9cfd8; box-shadow: none; }

/* 号码弹窗 chip */
.bet-num-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bet-num-chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px;
  background: #f0f3fa; border: 1px solid #e2e7f0; font-size: 13px; font-weight: 700; color: #33415c;
}
.bet-detail-item { padding: 12px 14px; border: 1px solid #e8ecf4; border-radius: 12px; margin-bottom: 10px; background: #fafbfe; }
.modal-body { max-height: 60vh; overflow-y: auto; }
.btn-xs { padding: 4px 10px !important; font-size: 12px !important; }

/* ============ 牛人榜（欢乐解谜右侧） ============ */
.rank-mini-tabs { display: flex; gap: 6px; margin: 10px 0 6px; }
.rank-mini-tabs button {
  padding: 6px 16px; border-radius: 999px; border: 1px solid #e2e7f0; background: #f6f8fd;
  color: #5b6b85; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.rank-mini-tabs button.on { background: var(--gaccent-grad, linear-gradient(135deg,#ffc94d,#ff9d2e)); color: #fff; border-color: transparent; }
.rank-mini-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rank-mini-table th {
  text-align: left; padding: 8px 6px; color: #8a97ad; font-weight: 700; font-size: 12.5px;
  border-bottom: 1px solid #e8ecf4;
}
.rank-mini-table td { padding: 8px 6px; border-bottom: 1px solid #f0f3f8; white-space: nowrap; }
.rank-mini-table td:nth-child(2) { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-mini-table th:nth-child(2) { max-width: 90px; }
.rank-mini-table tr.me td { background: rgba(255, 197, 77, .12); }
.rank-mini-table .reward { color: #c87a12; font-weight: 800; }
.rank-mini-table b.r1 { color: #e8961a; }
.rank-mini-table b.r2 { color: #7d8ca3; }
.rank-mini-table b.r3 { color: #b5764a; }
.rank-mini-table .empty { text-align: center; }


/* ============ 迷你榜单（牛人榜 + 流水榜）分页 ============ */
.rank-mini-body { min-height: 40px; }
.rank-pager { display: flex; gap: 6px; margin-top: 10px; }
.rank-pager button {
  width: 30px; height: 28px; border-radius: 8px; border: 1px solid #e2e7f0; background: #f6f8fd;
  color: #5b6b85; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.rank-pager button.on { background: var(--gaccent-grad, linear-gradient(135deg,#ffc94d,#ff9d2e)); color: #fff; border-color: transparent; }
.rank-pager button:hover:not(.on) { border-color: var(--gaccent, #e89b1c); }
.rank-mini-table .val { color: #5b6b85; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-mini-table td { white-space: nowrap; }

/* ============ 自适应（需求：不挤压、自动调整最佳显示） ============ */
/* 大屏：主容器限宽居中 */
@media (min-width: 1440px) {
  .container { max-width: 1380px; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .container { max-width: 1180px; }
}
/* 中屏：双栏变单栏阈值提前 */
@media (max-width: 1240px) {
  .lotto-layout { flex-direction: column; }
  .lotto-side { width: 100%; max-width: 640px; }
  .rank-mini-table { font-size: 13px; }
}
/* 小屏：号码网格降列、投注栏换行、顶栏紧凑 */
@media (max-width: 768px) {
  .num-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .lotto-amtbar { flex-wrap: wrap; }
  .lotto-amtbar .amt-total { margin-left: 0; width: 100%; }
  .lotto-quick { flex-wrap: wrap; }
  .topbar-inner { flex-wrap: wrap; padding: 10px 14px; gap: 6px; }
  .nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav a { white-space: nowrap; padding: 6px 10px; font-size: 14px; }
  .page-enter { padding: 14px; }
  .lr-nums { flex-wrap: wrap; }
  .lotto-tabs button { padding: 8px 16px; font-size: 14px; }
  .pick-row { grid-template-columns: repeat(5, 1fr) !important; }
  .pick-btn { padding: 8px 0; font-size: 13px; }
}
/* 超小屏：号码单列、表格横向滚动 */
@media (max-width: 480px) {
  .num-grid { grid-template-columns: 1fr 1fr !important; gap: 6px; }
  .ns-cell2 { padding: 6px 8px; }
  .num-stats, .num-grid { font-size: 12px; }
  .lotto-table { font-size: 12px; }
  .lotto-table th, .lotto-table td { padding: 6px 8px; }
  .rank-mini-table { font-size: 12px; }
  .lotto-side { max-width: 100%; }
}
/* 表格容器统一横向滚动防挤压 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lotto-table { min-width: 640px; }
.rank-mini-table { min-width: 0; }


/* ============ 欢乐解谜：开奖区/投注区并列切换 ============ */
.lotto-switch { display: flex; gap: 10px; margin-top: 16px; }
.lotto-switch button {
  padding: 9px 26px; border-radius: 12px; border: 1px solid var(--card-border); background: #fff;
  color: var(--text); font-size: 14.5px; font-weight: 800; cursor: pointer; transition: all .2s;
}
.lotto-switch button:hover { border-color: var(--gaccent, #e89b1c); }
.lotto-switch button.on {
  background: var(--gaccent-grad, linear-gradient(135deg,#ffc94d,#ff9d2e)); color: #fff; border-color: transparent;
  box-shadow: 0 3px 12px var(--gaccent-shadow, rgba(232,155,28,.3));
}
.lotto-areas { margin-top: 16px; }
.lotto-area { min-width: 0; display: none; }
.lotto-areas.v-bet .lotto-area-bet { display: block; }
.lotto-areas.v-hist .lotto-area-hist { display: block; }

/* ============ 用户信息卡（牛人榜上方） ============ */
.lotto-user { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lotto-user-info { flex: 1; min-width: 90px; line-height: 1.5; }
.lotto-user-name { font-size: 16px; font-weight: 800; display: block; }
.lotto-user-money {
  font-size: 14.5px; font-weight: 700; color: var(--gold); background: rgba(232,155,28,.1);
  padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  display: flex; align-items: center; gap: 2px; line-height: 1.3;
}
.lotto-user-money-label { font-size: 11px; font-weight: 600; color: var(--text-dim, #8b93a7); }

/* ============ 卡密兑换结果 ============ */
.card-line {
  display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px;
  font-size: 13px; margin-bottom: 6px; border: 1px solid #eef1f6;
}
.card-line.ok { background: rgba(63,158,110,.08); border-color: rgba(63,158,110,.25); color: #2e7d57; }
.card-line.fail { background: rgba(224,91,91,.07); border-color: rgba(224,91,91,.25); color: #c05656; }
.card-line .mono { font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.card-line .ml-auto { margin-left: auto; }

/* ============ 科技感 Logo ============ */
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-svg { flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(56,189,248,.35)); }
.logo-text {
  font-size: 22px; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(120deg, #38bdf8, #6366f1 55%, #a855f7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* 个人信息快捷入口 */
.lotto-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.lq-btn {
  flex: 1; min-width: 90px; text-align: center; padding: 8px 6px; border-radius: 10px;
  background: #f0f5ff; border: 1px solid #e0e9f8; color: var(--gold); font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .2s;
}
.lq-btn:hover { background: var(--gaccent-soft, #eaf2ff); border-color: var(--gaccent, #4f7fe0); }

/* 今日统计 */
.rank-stats { display: flex; flex-direction: column; gap: 8px; }
.rs-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; background: #f8fafd; border: 1px solid #edf1f7; border-radius: 8px; font-size: 13px; }
.rs-row span { color: var(--text-dim); }
.rs-row b { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rs-plus { color: #16a34a !important; }
.rs-minus { color: #dc2626 !important; }

/* 今日盈亏 */
.stat .num.text-up { color: #16a34a; }
.stat .num.text-down { color: #dc2626; }

/* 开奖区 我的投注：投入/获得 */
.td-mybet .mybet-val { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }


/* ============ 排行榜开放中提示 ============ */
.rank-opening {
  padding: 26px 14px;
  text-align: center;
  color: var(--dim, #888);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .5px;
}

/* H5 窄屏号码格适配 */
body.h5-mode .num-grid { grid-template-columns: repeat(7, 1fr) !important; gap: 4px !important; }
body.h5-mode .ns-cell2 {
  flex-direction: column;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 6px;
}
body.h5-mode .ns-cell2 .ns-num {
  width: 26px; height: 26px;
  font-size: 11px;
}
body.h5-mode .ns-cell2 .ns-input {
  width: 48px;
  font-size: 10px;
  padding: 2px;
}
body.h5-mode .ns-cell2 .ns-val { font-size: 9px !important; }
@media (max-width: 380px) {
  body.h5-mode .num-grid { grid-template-columns: repeat(5, 1fr) !important; }
}
/* 牛人榜/流水榜卡片占位提示 */
.rank-opening {
  padding: 26px 14px;
  text-align: center;
  color: #8a93a6;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .5px;
}

/* ============ 排行榜开放中提示 ============ */
.rank-opening {
  padding: 26px 14px;
  text-align: center;
  color: #8a93a6;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .5px;
}

/* ============ H5 移动版模式 ============ */
#h5-bar {
  display: none;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
  padding: 8px 12px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, .06);
}
#h5-bar.show { display: flex; }
.h5-brand {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.h5-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.h5-nav::-webkit-scrollbar { display: none; }
.h5-nav a {
  color: #445;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.h5-nav a.on { color: #6366f1; background: rgba(99, 102, 241, .08); font-weight: 600; }
.h5-exit {
  border: 1px solid #e3e6ef;
  background: #fff;
  color: #556;
  border-radius: 10px;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.h5-exit:hover { background: #f4f6fb; color: #333; }

/* 进入 H5 模式后的整体布局 */
body.h5-mode {
  background: #262b38;
  overflow-x: hidden;
}
body.h5-mode .topbar,
body.h5-mode .footer { display: none !important; }
body.h5-mode .container {
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg, #f6f8fc);
  min-height: calc(100vh - 44px);
  padding: 14px 12px 90px;
  box-shadow: 0 0 34px rgba(0, 0, 0, .5);
}
body.h5-mode .lotto-layout { flex-direction: column; }
body.h5-mode .lotto-side { width: 100%; }

/* H5 窄屏号码格适配 */
body.h5-mode .num-grid { grid-template-columns: repeat(7, 1fr) !important; gap: 4px !important; }
body.h5-mode .ns-cell2 {
  flex-direction: column;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 6px;
}
body.h5-mode .ns-cell2 .ns-num {
  width: 26px; height: 26px;
  font-size: 11px;
}
body.h5-mode .ns-cell2 .ns-input {
  width: 48px;
  font-size: 10px;
  padding: 2px;
}
body.h5-mode .ns-cell2 .ns-val { font-size: 9px !important; }
@media (max-width: 380px) {
  body.h5-mode .num-grid { grid-template-columns: repeat(5, 1fr) !important; }
}
body.h5-mode .modal-box { max-width: calc(100vw - 24px); }
