/* ===== 永利皇宫 · 前台样式（移动优先，全中文界面） ===== */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #0b0d11;
  --bg2: #0f1218;
  --card: #161a22;
  --card2: #1c212b;
  --line: #262c38;
  --txt: #e9edf4;
  --sub: #98a2b3;
  --gold: #d1ae52;
  --gold2: #f0cf7a;
  --green: #2dc26b;
  --red: #ef5350;
  --blue: #5b8def;
  --purple: #9b6cf0;
  --radius: 14px;
  --app-w: 480px;
}
html, body { margin: 0; padding: 0; }
body {
  background: #06070a;
  color: var(--txt);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.app {
  width: 100%;
  max-width: var(--app-w);
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #0f1218 0%, #0b0d11 260px, #0b0d11 100%);
  position: relative;
  z-index: 1;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
@media (min-width: 520px) {
  body { background: #05060a; }
  .app { box-shadow: 0 0 0 1px #1a1f29, 0 20px 60px rgba(0,0,0,.6); }
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; gap: 10px;
  position: sticky; top: 0; z-index: 30;
  background: rgba(11,13,17,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(38,44,56,.6);
}
.topbar-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .5px; }
.topbar-logo svg { width: 22px; height: 22px; color: var(--gold); }
.topbar-logo span { font-size: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.balance-chip { font-size: 12px; color: var(--sub); background: rgba(209,174,82,.1); border: 1px solid rgba(209,174,82,.3); padding: 4px 10px; border-radius: 999px; }
.balance-chip b { color: var(--gold2); font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; transition: .18s ease; text-align: center;
}
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #2a2005; border-color: rgba(255,255,255,.15); box-shadow: 0 6px 18px rgba(209,174,82,.22); }
.btn-gold:active { transform: translateY(1px); }
.btn-line { background: transparent; border-color: rgba(209,174,82,.55); color: var(--gold2); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--line); color: var(--txt); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 26px 18px 22px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 220px at 80% -10%, rgba(209,174,82,.30), transparent 70%),
    radial-gradient(400px 200px at 10% 0%, rgba(122,31,18,.55), transparent 70%),
    linear-gradient(160deg, #1a1207, #0e0f13 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 100% 26px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; }
.hero-sub { margin: 0 0 4px; font-size: 12.5px; letter-spacing: 3px; color: rgba(240,207,122,.85); }
.hero-title { margin: 0; font-size: 27px; letter-spacing: 2px; }
.hero-title small { display: block; margin-top: 2px; font-size: 12.5px; letter-spacing: 2px; color: var(--sub); font-weight: 400; }
.hero-desc { margin: 10px 0 16px; font-size: 12.5px; color: #b9c1cf; line-height: 1.8; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1; min-width: 120px; }

/* ---------- 公告 ---------- */
.notice { display: flex; gap: 10px; margin: 0 16px 14px; padding: 11px 12px; background: rgba(28,33,43,.75); border: 1px solid var(--line); border-radius: 12px; }
.notice-tag { flex: none; align-self: flex-start; font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: rgba(234,78,61,.15); color: #ff9d9a; border: 1px solid rgba(234,78,61,.3); }
.notice-body { overflow: hidden; }
.notice-body p { margin: 0 0 6px; font-size: 12.5px; color: var(--sub); line-height: 1.7; }
.notice-body p:last-child { margin-bottom: 0; }

/* ---------- 快捷入口 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 16px 14px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; color: #cfd6e2; }
.quick:active { transform: scale(.98); }
.quick-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--qc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--qc) 40%, transparent); color: var(--qc); }
.quick-ic svg { width: 18px; height: 18px; }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 16px 14px; padding: 14px; }
.promo-strip { padding: 12px; }
.promo-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promo-strip-inner > div { text-align: center; background: linear-gradient(180deg, rgba(209,174,82,.12), rgba(209,174,82,.02)); border: 1px solid rgba(209,174,82,.22); border-radius: 10px; padding: 10px 4px; }
.promo-strip-inner b { display: block; font-size: 13px; color: var(--gold2); }
.promo-strip-inner span { font-size: 11.5px; color: var(--sub); }

/* ---------- 区块标题 ---------- */
.sec { padding: 0 0 4px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 10px; }
.sec-head h2 { margin: 0; font-size: 15px; letter-spacing: .5px; position: relative; padding-left: 10px; }
.sec-head h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--gold2), var(--gold)); }
.sec-head a { font-size: 12.5px; color: var(--sub); }

/* ---------- 游戏占位 ---------- */
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.game-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.game-thumb {
  position: relative; height: 86px;
  background: linear-gradient(140deg, var(--g1), var(--g2));
  display: grid; place-items: center;
}
.game-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 60px at 70% 20%, rgba(255,255,255,.18), transparent 70%); }
.game-soon { position: relative; z-index: 1; font-size: 11.5px; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.game-meta { padding: 9px 10px 11px; }
.game-meta b { display: block; font-size: 13px; }
.game-meta span { font-size: 11.5px; color: var(--sub); }
.tip-text { margin: 10px 16px 16px; font-size: 12px; color: #8d97a6; line-height: 1.7; }

/* ---------- VIP ---------- */
.vip-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vip-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vip-crown { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(209,174,82,.14); border: 1px solid rgba(209,174,82,.32); color: var(--gold2); }
.vip-crown svg { width: 20px; height: 20px; }
.vip-left b { display: block; font-size: 13.5px; }
.vip-left span { font-size: 12px; color: var(--sub); }

/* ---------- 列表 ---------- */
.list-plain { padding: 4px 14px; }
.list-plain .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(38,44,56,.7); }
.list-plain .row:last-child { border-bottom: 0; }
.list-plain b { font-size: 13.5px; font-weight: 600; }
.list-plain span { font-size: 12.5px; color: var(--sub); text-align: right; }

/* ---------- 关于 ---------- */
.about { padding: 6px 18px 20px; }
.about p { margin: 0 0 8px; font-size: 12px; color: #7f8a99; line-height: 1.9; }
.about .legal { color: #6b7482; }

/* ---------- 页面标题 ---------- */
.page-head { padding: 22px 18px 14px; }
.page-head h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: 1px; }
.page-head p { margin: 0; font-size: 12.5px; color: var(--sub); }
.page-head.notfound { text-align: center; padding-top: 60px; }
.page-head.notfound h1 { font-size: 56px; color: var(--gold); }
.page-head.notfound .btn { margin-top: 16px; }

/* ---------- 表单 ---------- */
.form-card { padding: 16px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; color: #b6bfcd; margin-bottom: 6px; }
.field > span em { font-style: normal; color: #6f7887; font-size: 11.5px; }
.field input, .field textarea {
  width: 100%; padding: 12px 13px; background: #0e1116; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; outline: none; transition: .16s;
}
.field input:focus, .field textarea:focus { border-color: rgba(209,174,82,.65); box-shadow: 0 0 0 3px rgba(209,174,82,.12); }
.field input::placeholder, .field textarea::placeholder { color: #5f6875; }
.field textarea { resize: vertical; min-height: 90px; }
.input-eye { position: relative; }
.input-eye input { padding-right: 56px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--sub); font-size: 12px; padding: 6px 8px; border-radius: 6px; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 16px; font-size: 12.5px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--sub); }
.check input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--gold); }
.check-block { margin: 4px 0 16px; line-height: 1.7; }
.form-foot { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--sub); }
.form-foot a, .link { color: var(--gold2); }
.tip-card { margin: 0 16px 16px; padding: 13px 14px; background: rgba(28,33,43,.6); border: 1px solid var(--line); border-radius: 12px; }
.tip-card b { display: block; font-size: 13px; margin-bottom: 6px; color: var(--gold2); }
.tip-card p { margin: 0; font-size: 12px; color: var(--sub); line-height: 1.85; }

/* ---------- 会员中心 ---------- */
.member-head { display: flex; gap: 12px; align-items: center; padding: 20px 18px 14px; }
.avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #2a2005; background: linear-gradient(160deg, var(--gold2), var(--gold)); }
.member-info { min-width: 0; }
.name-row { display: flex; align-items: center; gap: 8px; }
.name-row b { font-size: 17px; }
.vip-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: var(--gold2); background: rgba(209,174,82,.14); border: 1px solid rgba(209,174,82,.32); }
.member-sub { font-size: 12px; color: var(--sub); }
.wallet-card { margin: 0 16px 14px; padding: 16px; border-radius: 16px; background: linear-gradient(150deg, #241b08, #171b22 60%); border: 1px solid rgba(209,174,82,.28); position: relative; overflow: hidden; }
.wallet-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(209,174,82,.28), transparent 70%); }
.wallet-label { font-size: 12px; color: #b9a878; }
.wallet-amount { font-size: 32px; font-weight: 700; letter-spacing: 1px; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.wallet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet-foot { display: flex; gap: 14px; margin-top: 12px; font-size: 11.5px; color: #97a0ae; flex-wrap: wrap; }
.quick-4 { padding: 0 16px 16px; }
.txn-list { padding: 4px 14px; }
.txn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(38,44,56,.7); }
.txn-row:last-child { border-bottom: 0; }
.txn-left b { font-size: 13.5px; }
.txn-left span { display: block; font-size: 11.5px; color: var(--sub); }
.txn-right { text-align: right; }
.txn-right b { font-size: 15px; font-variant-numeric: tabular-nums; }
.txn-right span { display: block; font-size: 11.5px; color: var(--sub); }
.plus { color: var(--green); }
.minus { color: var(--red); }
.invite-card { padding: 14px; }
.invite-code { margin: 0 0 10px; font-size: 12.5px; color: var(--sub); }
.invite-code b { color: var(--gold2); letter-spacing: 2px; font-size: 15px; }
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1; min-width: 0; padding: 9px 11px; background: #0e1116; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; color: var(--sub); }

/* ---------- 底部弹出面板 ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.sheet-panel { position: relative; width: 100%; max-width: var(--app-w); background: var(--card2); border-radius: 18px 18px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); animation: sheetUp .22s ease; }
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head b { font-size: 15px; }
.sheet-close { background: transparent; border: 0; color: var(--sub); font-size: 12.5px; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 8px; padding: 0 16px 14px; overflow-x: auto; }
.tab-btn { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 13px; }
.tab-btn.on { background: rgba(209,174,82,.14); border-color: rgba(209,174,82,.45); color: var(--gold2); }
.pane { display: none; }
.pane.on { display: block; }

/* ---------- 充值/提现 ---------- */
.amount-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.chip { padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: #10141a; color: var(--sub); font-size: 12.5px; }
.chip:hover { border-color: rgba(209,174,82,.5); color: var(--gold2); }
.ch-list { display: flex; flex-direction: column; gap: 8px; }
.ch-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #10141a; cursor: pointer; }
.ch-item input[type="radio"] { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--gold); }
.ch-item:has(input:checked) { border-color: rgba(209,174,82,.55); background: rgba(209,174,82,.07); }
.ch-body { flex: 1 1 auto; min-width: 0; }
.ch-body b { display: block; font-size: 13px; }
.ch-body em { font-style: normal; font-size: 11.5px; color: var(--sub); line-height: 1.6; word-break: break-all; }
.balance-line { margin-bottom: 12px; font-size: 12.5px; color: var(--sub); }
.balance-line b { color: var(--gold2); font-size: 16px; }

/* ---------- 记录 ---------- */
.rec-list { padding: 4px 14px; }
.rec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(38,44,56,.7); }
.rec-row:last-child { border-bottom: 0; }
.rec-main { min-width: 0; }
.rec-main b { display: block; font-size: 13.5px; }
.rec-main span { display: block; font-size: 11.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-right { text-align: right; flex: none; }
.rec-right b { font-size: 15px; font-variant-numeric: tabular-nums; }
.rec-bal { display: block; font-size: 11.5px; color: var(--sub); }
.badge { display: inline-block; margin-top: 3px; font-size: 11px; padding: 1px 7px; border-radius: 6px; border: 1px solid transparent; }
.badge-ok { color: #7ee2a8; background: rgba(45,194,107,.13); border-color: rgba(45,194,107,.3); }
.badge-warn { color: #ffd479; background: rgba(209,174,82,.13); border-color: rgba(209,174,82,.3); }
.badge-bad { color: #ff9d9a; background: rgba(239,83,80,.13); border-color: rgba(239,83,80,.3); }
.badge-muted { color: var(--sub); background: rgba(255,255,255,.05); border-color: var(--line); }
.empty { padding: 30px 10px; text-align: center; color: #6f7887; }
.empty svg { width: 34px; height: 34px; margin: 0 auto 8px; opacity: .6; }
.empty p { margin: 0; font-size: 12.5px; }

/* ---------- 优惠 ---------- */
.promo-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 8px; }
.promo-card { position: relative; padding: 15px 15px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.promo-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pc); }
.promo-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 30%, transparent), transparent 70%); }
.promo-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.promo-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: var(--pc); border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); background: color-mix(in srgb, var(--pc) 12%, transparent); }
.promo-top h3 { margin: 0; font-size: 15px; }
.promo-desc { margin: 0 0 6px; font-size: 13px; color: #cfd6e2; }
.promo-detail { margin: 0 0 12px; font-size: 11.5px; color: var(--sub); line-height: 1.7; }

/* ---------- 客服 ---------- */
.service-card { padding: 6px 14px; }
.service-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(38,44,56,.7); }
.service-row:last-child { border-bottom: 0; }
.service-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(91,141,239,.12); border: 1px solid rgba(91,141,239,.28); color: #8fb2ff; }
.service-ic svg { width: 18px; height: 18px; }
.service-row b { display: block; font-size: 13.5px; }
.service-row span { font-size: 12px; color: var(--sub); word-break: break-all; }
.faq-list { padding: 4px 14px; }
.faq { border-bottom: 1px solid rgba(38,44,56,.7); padding: 11px 0; }
.faq:last-child { border-bottom: 0; }
.faq summary { font-size: 13.5px; cursor: pointer; list-style: none; position: relative; padding-right: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 0; top: -1px; color: var(--sub); }
.faq[open] summary::after { content: "－"; }
.faq p { margin: 8px 0 0; font-size: 12.5px; color: var(--sub); line-height: 1.8; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: var(--app-w);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(12,15,20,.96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(38,44,56,.8);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 40;
}
.tabbar-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: #78828f; padding: 3px 0; }
.tabbar-item svg { width: 21px; height: 21px; }
.tabbar-item.on { color: var(--gold2); }

/* ---------- 电子游戏 ---------- */
.game-pane { display: none; }
.game-pane.on { display: block; }
.game-card-big { padding: 18px 16px 16px; }
.game-soon.live { background: rgba(209,174,82,.22); border-color: rgba(240,207,122,.6); color: var(--gold2); }
.game-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(120deg, rgba(209,174,82,.13), rgba(23,26,33,.9)); border-color: rgba(209,174,82,.32); }
.game-entry-text b { display: block; font-size: 14px; color: var(--gold2); }
.game-entry-text span { font-size: 11.5px; color: var(--sub); }

/* 拉霸 */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.reel {
  height: 96px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1d2330, #12161e);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: inset 0 0 24px rgba(0,0,0,.55);
}
.reel span { font-size: 42px; line-height: 1; transition: transform .12s ease, opacity .12s ease; }
.reel.spinning span { animation: reelBlur .18s linear infinite; }
@keyframes reelBlur { 0% { opacity: .35; transform: translateY(-10px) } 100% { opacity: 1; transform: translateY(10px) } }
.reel.win { border-color: rgba(240,207,122,.8); box-shadow: 0 0 0 2px rgba(240,207,122,.25), inset 0 0 26px rgba(209,174,82,.35); }
.game-result {
  text-align: center; font-size: 13px; color: var(--sub); min-height: 20px;
  margin-bottom: 14px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03);
}
.game-result.win { color: var(--gold2); background: rgba(209,174,82,.12); }
.game-result.lose { color: #ff9d9a; background: rgba(239,83,80,.09); }
.bet-row { display: flex; flex-direction: column; gap: 10px; }
.bet-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #10141a; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.bet-input span { font-size: 12.5px; color: #b6bfcd; }
.bet-input input { width: 110px; text-align: right; background: transparent; border: 0; outline: none; font-size: 16px; font-weight: 700; color: var(--gold2); font-variant-numeric: tabular-nums; }

/* 符号表 */
.sym-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; }
.sym { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.sym span { font-size: 22px; }
.sym b { display: block; font-size: 12px; margin-top: 2px; }
.sym em { font-style: normal; font-size: 11px; color: var(--gold2); }

/* 骰子 */
.dice-row { display: flex; justify-content: center; gap: 14px; margin: 6px 0 16px; }
.die {
  width: 62px; height: 62px; border-radius: 12px; background: linear-gradient(160deg, #f5f1e6, #d9d2c0);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 8px; gap: 2px; box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.die i { display: block; border-radius: 50%; background: transparent; }
.die i.pip { background: #1b1b1b; box-shadow: inset 0 -1px 1px rgba(255,255,255,.25); }
.die.rolling { animation: dieRoll .32s linear infinite; }
@keyframes dieRoll { 0% { transform: translateY(0) rotate(0) } 25% { transform: translateY(-8px) rotate(-8deg) } 75% { transform: translateY(4px) rotate(8deg) } 100% { transform: translateY(0) rotate(0) } }
.opt-row { display: flex; gap: 8px; margin-bottom: 14px; }
.opt { flex: 1; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line); background: #10141a; color: var(--sub); font-size: 13px; }
.opt em { display: block; font-style: normal; font-size: 11px; opacity: .75; margin-top: 2px; }
.opt.on { border-color: rgba(209,174,82,.6); background: rgba(209,174,82,.12); color: var(--gold2); }

/* 轮盘 */
.wheel-wrap { position: relative; width: 240px; height: 240px; margin: 6px auto 16px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid #2a3140; box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 2px rgba(209,174,82,.25); overflow: hidden; }
.wheel-face { width: 100%; height: 100%; border-radius: 50%; transition: transform 2.4s cubic-bezier(.17,.67,.16,1); }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 18px solid var(--gold2); z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.wheel-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.wcell { font-size: 11.5px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); color: var(--sub); background: var(--card); }
.wcell[data-mult="0"] { opacity: .55; }
.wcell:not([data-mult="0"]) { color: var(--gold2); border-color: rgba(209,174,82,.35); }

/* 游戏记录 */
.gl-list { padding: 4px 14px; }
.gl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(38,44,56,.7); }
.gl-row:last-child { border-bottom: 0; }
.gl-left b { font-size: 13.5px; }
.gl-left span { display: block; font-size: 11.5px; color: var(--sub); }
.gl-right { text-align: right; }
.gl-right b { font-size: 15px; font-variant-numeric: tabular-nums; }
.gl-right span { display: block; font-size: 11.5px; color: var(--sub); }

/* ===== 麻将胡了（PG 风格自绘素材） ===== */
.mj-stage {
  position: relative; margin: 0 16px 12px; padding: 16px 12px 14px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255,205,110,.26), transparent 62%),
    radial-gradient(90% 70% at 50% 120%, rgba(176,32,28,.34), transparent 70%),
    linear-gradient(160deg, #2b1712 0%, #1a1110 45%, #140d0c 100%);
  border: 1px solid rgba(209,174,82,.3);
  box-shadow: inset 0 0 46px rgba(0,0,0,.65), 0 10px 26px rgba(0,0,0,.45);
}
.mj-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(255,215,140,.05) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(255,215,140,.04) 0 1px, transparent 1px 9px);
}
.mj-title { position: relative; text-align: center; margin-bottom: 12px; }
.mj-title span {
  display: block; font-size: 21px; font-weight: 800; letter-spacing: 6px;
  background: linear-gradient(180deg, #fff6d5, #f0cf7a 45%, #b8912f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(240,207,122,.35));
}
.mj-title em { display: block; margin-top: 3px; font-style: normal; font-size: 9.5px; letter-spacing: 2.5px; color: rgba(240,207,122,.55); }

/* 官方主视觉区 */
.mj-art {
  position: absolute; inset: 0; pointer-events: none;
  background: url('/assets/mj/cover.png') no-repeat right -34px top -26px;
  background-size: 400px auto;
  opacity: .16; filter: saturate(1.15);
  mask-image: radial-gradient(85% 95% at 78% 12%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(85% 95% at 78% 12%, #000 30%, transparent 78%);
}
.mj-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mj-hero-text span {
  display: block; font-size: 21px; font-weight: 800; letter-spacing: 6px;
  background: linear-gradient(180deg, #fff6d5, #f0cf7a 45%, #b8912f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(240,207,122,.45));
}
.mj-hero-text em { display: block; margin-top: 5px; font-style: normal; font-size: 9px; letter-spacing: 1.6px; color: rgba(240,207,122,.62); }
.mj-hero-art {
  width: 152px; height: auto; flex: none; margin: -6px -14px -10px 0;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)) drop-shadow(0 0 26px rgba(255,190,80,.4));
  animation: mjFloat 4.5s ease-in-out infinite alternate;
}
@keyframes mjFloat { from { transform: translateY(0) rotate(-1deg) } to { transform: translateY(-7px) rotate(1.4deg) } }
.mj-gridwrap { position: relative; }
.mj-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.mj-col { display: flex; flex-direction: column; gap: 7px; }
.mj-tile {
  position: relative; aspect-ratio: 3 / 3.85; border-radius: 7px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, #fffef8 0%, #f7f0dd 62%, #e8dcc0 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 4px 0 #1c7a4c,
    0 4px 1px rgba(0,0,0,.35),
    0 7px 12px rgba(0,0,0,.5);
  border: 1px solid rgba(0,0,0,.08);
}
.mj-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55), transparent 30%);
}
.mj-face { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; height: 100%; }
.mj-num { font-size: clamp(19px, 6vw, 26px); font-weight: 800; color: #1f2a44; line-height: 1; }
.mj-wan { font-size: clamp(9px, 2.6vw, 11px); font-weight: 700; color: #c0281f; letter-spacing: .5px; }
.mj-glyph {
  font-size: clamp(34px, 10.6vw, 52px); line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Noto Sans Symbols 2", sans-serif;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
  transform: scale(1.06);
}
.mj-char { font-size: clamp(21px, 6.6vw, 31px); font-weight: 800; line-height: 1; }
.c-green { color: #1c8a4a; }
.c-red { color: #c0281f; }
.c-blue { color: #1f4fa8; }
.c-dark { color: #2a2f3a; }
.c-gold { color: #a4761a; }
.mj-blank { width: 56%; height: 56%; border: 2.5px solid #1f4fa8; border-radius: 3px; position: relative; }
.mj-blank::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(31,79,168,.45); border-radius: 1px; }
.mj-ingot { width: 66%; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.mj-tile.k-gold {
  background: linear-gradient(180deg, #fff8dd, #f7e3a8 62%, #e8c977);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 0 #b08f34, 0 5px 14px rgba(209,174,82,.4);
}
.mj-tile.k-jin {
  background: linear-gradient(180deg, #fffbe8, #ffe07a 58%, #e0b74a);
  box-shadow: 0 1px 0 rgba(255,255,255,.95) inset, 0 2px 0 #a5842a, 0 0 18px rgba(255,206,86,.55);
}
.mj-tile.k-jin .mj-char { text-shadow: 0 0 10px rgba(255,238,170,.95); }
.mj-tile.roll .mj-face { animation: mjBlur .16s linear infinite; }
@keyframes mjBlur { 0% { transform: translateY(-4px); opacity: .55 } 100% { transform: translateY(4px); opacity: 1 } }
.mj-tile.hit { box-shadow: 0 0 0 2px #ffd76e, 0 0 20px rgba(255,205,90,.8), 0 2px 0 #c9bca0; animation: mjPop .5s ease; }
@keyframes mjPop { 0% { transform: scale(.94) } 55% { transform: scale(1.06) } 100% { transform: scale(1) } }
.mj-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mj-lines polyline {
  fill: none; stroke: #ffd76e; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  filter: drop-shadow(0 0 5px rgba(255,200,80,.95));
  animation: mjLineIn .5s ease forwards;
}
@keyframes mjLineIn { to { stroke-dashoffset: 0 } }
.mj-result {
  margin-top: 12px; padding: 9px 12px; border-radius: 10px; text-align: center;
  font-size: 12.5px; color: #e8d9b6; min-height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,215,140,.07); border: 1px solid rgba(209,174,82,.22);
}
.mj-result.win { color: #ffe9a8; background: rgba(255,205,90,.14); border-color: rgba(255,205,90,.5); box-shadow: 0 0 16px rgba(255,205,90,.25); }
.mj-result.lose { color: #f0b3ae; background: rgba(239,83,80,.1); border-color: rgba(239,83,80,.28); }
.mj-pay { display: flex; flex-direction: column; gap: 1px; padding: 0 16px; }
.mj-pay-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; }
.mj-pay-row:first-child { border-radius: 9px 9px 0 0; }
.mj-pay-row:last-child { border-radius: 0 0 9px 9px; }
.mj-pay-row span { color: #cfd6e2; }
.mj-pay-row b { color: var(--gold2); font-variant-numeric: tabular-nums; }

/* 真实游戏试玩区 */
.real-block { margin: 0 16px 14px; padding: 12px; border-radius: 14px; border: 1px solid rgba(209,174,82,.32); background: linear-gradient(135deg, rgba(209,174,82,.12), rgba(23,26,33,.85)); }
.real-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.real-head b { display: block; font-size: 14px; color: var(--gold2); }
.real-head span { font-size: 11.5px; color: var(--sub); }
.real-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.real-row::-webkit-scrollbar { display: none; }
.real-card { position: relative; flex: none; width: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #0e1116; }
.real-card img { display: block; width: 100%; height: 128px; object-fit: cover; }
.real-card b { display: block; font-size: 11px; text-align: center; padding: 5px 3px; color: #cfd6e2; font-weight: 500; }
.real-tag { position: absolute; top: 4px; left: 4px; font-size: 9.5px; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.55); color: #ffd76e; border: 1px solid rgba(255,215,110,.35); }

/* 开源游戏区（30 款） */
.lib-block { margin: 0 16px 14px; }
.lib-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lib-head b { font-size: 15px; letter-spacing: .5px; position: relative; padding-left: 10px; }
.lib-head b::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--gold2), var(--gold)); }
.lib-head span { font-size: 11.5px; color: var(--sub); }
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lib-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.lib-card:active { transform: scale(.985); }
.lib-thumb { position: relative; height: 96px; background: linear-gradient(160deg, var(--c1), var(--c2)); overflow: hidden; }
.lib-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.lib-cat { position: absolute; top: 5px; left: 5px; font-size: 9.5px; padding: 1px 6px; border-radius: 5px; background: rgba(0,0,0,.55); color: #ffd76e; border: 1px solid rgba(255,215,110,.3); }
.lib-meta { padding: 8px 9px 10px; }
.lib-meta b { display: block; font-size: 12.5px; }
.lib-meta span { font-size: 10.5px; color: var(--sub); }

/* ===== 游戏中心（30 款列表） ===== */
.chips-scroll { display: flex; gap: 8px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip-filter { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--sub); font-size: 12.5px; }
.chip-filter em { font-style: normal; opacity: .6; font-size: 11px; margin-left: 2px; }
.chip-filter.on { background: rgba(209,174,82,.14); border-color: rgba(209,174,82,.5); color: var(--gold2); font-weight: 600; }
.gs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 8px; }
.gs-card { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gs-card:active { transform: scale(.985); }
.gs-thumb {
  position: relative; height: 92px; display: grid; place-items: center;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--acc) 35%, transparent), transparent 70%),
              linear-gradient(160deg, var(--c1), var(--c2));
}
.gs-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 60%); }
.gs-icon { font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); position: relative; z-index: 1; }
.gs-badge { position: absolute; top: 6px; left: 6px; font-size: 10px; padding: 1px 7px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.18); z-index: 2; }
.gs-meta { padding: 9px 10px 11px; }
.gs-meta b { display: block; font-size: 13px; }
.gs-meta span { font-size: 11px; color: var(--sub); }

/* 通用主题游戏页 */
.play-stage {
  background:
    radial-gradient(120% 90% at 50% -20%, color-mix(in srgb, var(--acc, #d1ae82) 30%, transparent), transparent 62%),
    radial-gradient(90% 70% at 50% 120%, rgba(0,0,0,.45), transparent 70%),
    linear-gradient(160deg, var(--c1, #2b1712) 0%, var(--c2, #140d0c) 100%);
}
.play-big-icon { font-size: 54px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)) drop-shadow(0 0 20px color-mix(in srgb, var(--acc) 50%, transparent)); animation: mjFloat 4.5s ease-in-out infinite alternate; }
.play-sym { font-size: clamp(26px, 8.4vw, 40px); line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.mj-tile.k-jin .play-sym { filter: drop-shadow(0 0 8px rgba(255,238,170,.9)); }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 12px);
  max-width: 84%; padding: 10px 16px; border-radius: 10px;
  background: rgba(24,29,38,.96); border: 1px solid var(--line);
  color: var(--txt); font-size: 13px; opacity: 0; pointer-events: none;
  transition: .22s ease; z-index: 99; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(45,194,107,.5); }
.toast.err { border-color: rgba(239,83,80,.55); }
