/* ==========================================================
   加拿大28 2.0 · 手机端
   淡黄暖色 · 彩虹字 · 金币雨 · 透明水滴导航
   ========================================================== */

:root {
  --bg1: #FFFDF4;
  --bg2: #FFF4D2;
  --bg3: #FFE9B4;
  --card: rgba(255, 255, 255, .92);
  --ink: #3B2B12;
  --ink-2: #7A6438;
  --ink-3: #A89264;
  --line: rgba(196, 154, 62, .22);
  --gold: #E8A317;
  --gold-2: #FFC93C;
  --red: #E23B3B;
  --green: #1FA463;
  --blue: #2D7FF9;
  --shadow: 0 10px 26px rgba(180, 138, 40, .16);
  --shadow-sm: 0 4px 12px rgba(180, 138, 40, .12);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --nav-h: 62px;
  --rainbow: linear-gradient(92deg, #FF3D7F 0%, #FF7A3D 18%, #FFC83D 36%, #3DDC84 54%, #3DA5FF 72%, #A855F7 88%, #FF3D7F 100%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 属性必须压过任何 display 设置，否则弹层/封盘条会一直显示 */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: linear-gradient(178deg, var(--bg1) 0%, var(--bg2) 46%, var(--bg3) 100%);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

body::before {
  content: "";
  position: fixed;
  top: -140px; left: 50%;
  width: 520px; height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 214, 92, .55), rgba(255, 214, 92, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
.ic { width: 18px; height: 18px; fill: currentColor; display: inline-block; vertical-align: -3px; }

.rainbow {
  background: var(--rainbow);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rainbowShift 7s linear infinite;
}
@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

/* ---------------- 金币雨 ---------------- */
.coin-layer {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 82vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
  opacity: .9;
}
.coin {
  position: absolute;
  top: -46px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF3B0, #FFC93C 45%, #D99408 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 4px 10px rgba(190, 140, 20, .28);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #8A5A05;
  will-change: transform, opacity;
  animation: coinFall linear forwards;
}
.coin::after { content: "¥"; }
@keyframes coinFall {
  0%   { transform: translate3d(0, -40px, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .95; }
  82%  { opacity: .85; }
  100% { transform: translate3d(var(--drift, 20px), 106vh, 0) rotate(560deg); opacity: 0; }
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 10px;
  background: linear-gradient(180deg, rgba(255, 252, 240, .96), rgba(255, 248, 226, .82));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  background: linear-gradient(140deg, #FF5E62, #FF9966);
  color: #fff; font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 12px rgba(255, 94, 98, .35);
  letter-spacing: -.5px;
}
.brand-name {
  font-size: 18px; font-weight: 900; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.balance-chip {
  display: flex; align-items: center; gap: 3px;
  height: 32px; padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFF3CF, #FFE29A);
  border: 1px solid rgba(232, 163, 23, .35);
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 800; color: #8A5A05;
}
.balance-chip i { font-style: normal; opacity: .75; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: #A9740E;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- 容器 ---------------- */
.stage {
  position: relative; z-index: 4;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 14px calc(var(--nav-h) + 26px);
}
.view { animation: viewIn .28s ease both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.panel {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .8);
  padding: 14px;
  margin-bottom: 12px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.ph-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.ph-title::before {
  content: "";
  display: inline-block;
  width: 4px; height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, #FF8A3D, #FFC83D);
  margin-right: 7px;
  vertical-align: -2px;
}
.ph-more {
  display: flex; align-items: center; gap: 1px;
  font-size: 12px; color: var(--ink-3);
}

/* ---------------- 开奖主卡 ---------------- */
.draw-card {
  position: relative;
  border-radius: 24px;
  padding: 16px 16px 14px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 224, 130, .85), rgba(255, 244, 214, 0) 62%),
    linear-gradient(168deg, #FFFFFF 0%, #FFFCF0 58%, #FFF6DC 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 14px 34px rgba(186, 142, 36, .18), inset 0 0 0 1px rgba(255, 214, 110, .25);
  overflow: hidden;
  margin-bottom: 12px;
}
.draw-card::after {
  content: "";
  position: absolute; right: -46px; top: -56px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 60, .35), rgba(255, 201, 60, 0) 70%);
  pointer-events: none;
}
.dc-head { display: flex; align-items: center; justify-content: space-between; }
.dc-period { font-size: 13px; color: var(--ink-2); display: flex; align-items: baseline; gap: 4px; }
.dc-period b { font-size: 17px; font-weight: 900; letter-spacing: .5px; color: #6B4A0C; }
.dc-history {
  display: flex; align-items: center; gap: 2px;
  font-size: 12px; color: #A9740E;
  background: rgba(255, 235, 186, .9);
  border: 1px solid rgba(232, 163, 23, .2);
  padding: 4px 8px; border-radius: 999px;
}
.dc-history .ic { width: 12px; height: 12px; }

.balls {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 0 12px;
}
.ball {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 34% 26%, #FF8E7A, #EE3B34 46%, #B3161A 100%);
  box-shadow: 0 8px 18px rgba(200, 40, 36, .34), inset 0 -5px 10px rgba(0, 0, 0, .18), inset 0 4px 8px rgba(255, 255, 255, .4);
  text-shadow: 0 2px 3px rgba(0, 0, 0, .25);
  animation: ballPop .42s cubic-bezier(.2, 1.5, .4, 1) both;
}
.ball:nth-child(2) { animation-delay: .07s; }
.ball:nth-child(3) { animation-delay: .14s; }
.ball.roll { animation: ballRoll .5s ease both; }
@keyframes ballPop {
  from { transform: scale(.55) translateY(10px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes ballRoll {
  0% { transform: rotateX(0) scale(.9); }
  100% { transform: rotateX(360deg) scale(1); }
}

.dc-sum { display: flex; align-items: center; justify-content: center; gap: 8px; padding-bottom: 14px; }
.sum-label { font-size: 12px; color: var(--ink-3); }
.sum-num { font-size: 26px; font-weight: 900; letter-spacing: 1px; }
.kind-tag {
  font-size: 12px; font-weight: 800; color: #B45309;
  background: linear-gradient(135deg, #FFF0C4, #FFE08A);
  border-radius: 999px; padding: 3px 10px;
  border: 1px solid rgba(232, 163, 23, .22);
}

.cd-wrap { display: flex; align-items: center; gap: 14px; }
.cd-ring { position: relative; width: 104px; height: 104px; flex: none; }
.cd-ring .ring { width: 104px; height: 104px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(232, 163, 23, .16); stroke-width: 8; }
.ring-fg {
  fill: none; stroke: #FFB020; stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 276.5; stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s linear, stroke .3s;
  filter: drop-shadow(0 2px 5px rgba(255, 176, 32, .4));
}
.cd-ring.sealed .ring-fg { stroke: #E23B3B; }
.cd-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cd-time { font-size: 22px; font-weight: 900; letter-spacing: .5px; color: #7A4E06; font-variant-numeric: tabular-nums; }
.cd-label { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.cd-side { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.cd-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-2);
  background: rgba(255, 250, 234, .85);
  border-radius: 9px; padding: 6px 9px;
  border: 1px solid rgba(232, 163, 23, .12);
}
.cd-row .ic { width: 14px; height: 14px; color: #C8941F; }
.cd-row span { color: var(--ink-3); }
.cd-row b { margin-left: auto; color: #6B4A0C; font-weight: 800; }

.seal-bar {
  margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #FFE1E1, #FFC9C9);
  color: #B21F1F; font-size: 13px; font-weight: 800;
  border-radius: 11px; padding: 8px;
  border: 1px solid rgba(226, 59, 59, .25);
  animation: sealPulse 1.6s ease-in-out infinite;
}
@keyframes sealPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .72; }
}

.notice-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .88);
  border-radius: 12px; padding: 9px 12px;
  font-size: 12.5px; color: #8A6A22;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  overflow: hidden;
}
.notice-bar b { color: #D97706; flex: none; }
.notice-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 首页快捷投注 ---------------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}
.qbtn {
  background: linear-gradient(160deg, #FFFFFF, #FFF8E4);
  border: 1px solid rgba(232, 163, 23, .2);
  border-radius: var(--r-md);
  padding: 10px 6px 9px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .14s, box-shadow .14s;
}
.qbtn:active { transform: scale(.96); box-shadow: 0 2px 6px rgba(180, 138, 40, .18); }
.qbtn .ql { font-size: 16px; font-weight: 900; color: #5A3D0A; }
.qbtn .qo { font-size: 11px; color: #B08A32; font-weight: 700; }
.qbtn.big .ql { color: #D9480F; }
.qbtn.small .ql { color: #1F7A4D; }

.recent { display: flex; flex-direction: column; gap: 7px; }
.recent-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255, 250, 236, .8);
  border: 1px solid rgba(232, 163, 23, .1);
}
.recent-item .rp { font-size: 12px; color: var(--ink-3); width: 84px; flex: none; font-variant-numeric: tabular-nums; }
.recent-item .rb { display: flex; gap: 5px; }
.recent-item .rb i {
  font-style: normal; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 34% 26%, #FF8E7A, #EE3B34 52%, #B3161A 100%);
}
.recent-item .rt { margin-left: auto; font-size: 12px; color: #8A6A22; font-weight: 700; }
.recent-item .rk { font-size: 11px; color: var(--ink-3); }

.hot-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .65);
  border: 1px dashed rgba(232, 163, 23, .3);
  margin-bottom: 12px;
}
.hot-title { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: #D9480F; }
.hot-title .ic { width: 14px; height: 14px; }
.hot-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hot-tags span {
  font-size: 11px; color: #8A6A22;
  background: rgba(255, 240, 196, .9);
  border-radius: 999px; padding: 3px 8px;
}

/* ---------------- 快投页 ---------------- */
.quick-head {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .8);
  padding: 13px 14px;
  margin-bottom: 12px;
}
.qh-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.qh-period { font-size: 13px; color: var(--ink-2); }
.qh-period b { font-size: 15px; color: #6B4A0C; }
.qh-cd { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 900; color: #D97706; font-variant-numeric: tabular-nums; }
.qh-cd .ic { width: 15px; height: 15px; }
.amount-row { display: flex; gap: 9px; align-items: center; }
.amount-presets { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.amt {
  min-width: 46px; padding: 7px 9px;
  border-radius: 9px; font-size: 13px; font-weight: 800; color: #8A6A22;
  background: #FFF7E2; border: 1px solid rgba(232, 163, 23, .2);
  transition: all .15s;
}
.amt.active {
  color: #fff;
  background: linear-gradient(135deg, #FFB020, #FF8A3D);
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(255, 138, 61, .35);
}
.amount-input {
  width: 88px; flex: none;
  padding: 8px 10px; border-radius: 9px;
  border: 1px solid rgba(232, 163, 23, .3);
  background: #FFFBEF;
  font-weight: 800; text-align: center; color: #6B4A0C;
  outline: none;
}
.amount-input:focus { border-color: #FFB020; box-shadow: 0 0 0 3px rgba(255, 176, 32, .18); }

.quick-markets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 12px; }
.qm {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, #FFFFFF, #FFF8E6);
  border: 1px solid rgba(232, 163, 23, .18);
  box-shadow: var(--shadow-sm);
  transition: transform .14s;
}
.qm:active { transform: scale(.97); }
.qm .qm-l { display: flex; flex-direction: column; gap: 1px; }
.qm .qm-n { font-size: 17px; font-weight: 900; color: #5A3D0A; }
.qm .qm-o { font-size: 11px; color: #B08A32; font-weight: 700; }
.qm .qm-go {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFF0C4, #FFDD86);
  color: #A9740E;
}
.qm .qm-go .ic { width: 14px; height: 14px; }

.cats { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 2px; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; color: #8A6A22;
  background: #FFF7E2; border: 1px solid rgba(232, 163, 23, .18);
}
.cat.active {
  color: #fff; background: linear-gradient(135deg, #FF8A3D, #FF5E62);
  border-color: transparent; box-shadow: 0 4px 10px rgba(255, 94, 98, .3);
}
.market { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.market.tm { grid-template-columns: repeat(4, 1fr); }
.mbtn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-radius: 11px;
  background: #FFFCF2; border: 1px solid rgba(232, 163, 23, .16);
  font-weight: 800; color: #5A3D0A;
  transition: all .14s;
}
.mbtn:active, .mbtn.picked {
  background: linear-gradient(135deg, #FFE9A8, #FFD166);
  border-color: rgba(232, 163, 23, .4);
  transform: scale(.98);
}
.mbtn b { font-size: 12px; color: #B45309; font-weight: 800; }
.market.tm .mbtn { flex-direction: column; gap: 1px; padding: 9px 4px; }
.market.tm .mbtn span { font-size: 15px; }

/* ---------------- 代理中心 ---------------- */
.agent-hero {
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 12px;
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(255, 224, 130, .9), rgba(255, 240, 200, 0) 60%),
    linear-gradient(160deg, #FFFDF6, #FFF3CE);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 14px 30px rgba(186, 142, 36, .18);
}
.ah-top { display: flex; align-items: center; justify-content: space-between; }
.ah-title { font-size: 20px; font-weight: 900; }
.ah-badge {
  font-size: 12px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #FF8A3D, #FF5E62);
  padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(255, 94, 98, .3);
}
.ah-desc { font-size: 12px; color: var(--ink-2); margin: 7px 0 14px; line-height: 1.5; }
.ah-stats { display: flex; gap: 8px; }
.stat {
  flex: 1; text-align: center;
  background: rgba(255, 255, 255, .78);
  border-radius: 13px; padding: 9px 4px;
  border: 1px solid rgba(232, 163, 23, .14);
}
.stat b { display: block; font-size: 17px; font-weight: 900; color: #6B4A0C; }
.stat span { font-size: 11px; color: var(--ink-3); }

.invite-box { display: flex; flex-direction: column; gap: 9px; }
.invite-code { font-size: 12.5px; color: var(--ink-2); }
.invite-code b { font-size: 16px; letter-spacing: 2px; color: #B45309; font-weight: 900; }
.invite-link {
  font-size: 12px; color: #8A6A22; word-break: break-all;
  background: #FFFAEA; border: 1px dashed rgba(232, 163, 23, .35);
  border-radius: 10px; padding: 9px 11px; line-height: 1.5;
}
.invite-actions { display: flex; gap: 8px; }
.invite-tip { font-size: 11px; color: var(--ink-3); }

.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #FF9A3D, #FF5E62);
  box-shadow: 0 8px 18px rgba(255, 94, 98, .3);
  transition: transform .14s;
}
.btn-main:active { transform: scale(.97); }
.btn-main.full { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 800; color: #A9740E;
  background: #FFF6DE; border: 1px solid rgba(232, 163, 23, .28);
}
.btn-ghost.full { width: 100%; }
.invite-actions .btn-main, .invite-actions .btn-ghost { flex: 1; }

.tabs-line { display: flex; gap: 6px; margin-bottom: 10px; }
.tab {
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: #8A6A22;
  background: #FFF7E2; border: 1px solid rgba(232, 163, 23, .18);
}
.tab.active {
  color: #fff; background: linear-gradient(135deg, #FFB020, #FF8A3D);
  border-color: transparent;
}
.agent-list { display: flex; flex-direction: column; gap: 8px; }
.ag-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: 11px;
  background: #FFFCF3; border: 1px solid rgba(232, 163, 23, .12);
}
.ag-av {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #FFB020, #FF7A3D);
}
.ag-main { flex: 1; min-width: 0; }
.ag-n { font-size: 13.5px; font-weight: 800; color: #5A3D0A; }
.ag-s { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.ag-v { text-align: right; font-size: 12px; color: #B45309; font-weight: 800; }
.ag-v small { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }

/* ---------------- 大厅 ---------------- */
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; margin-bottom: 10px;
  background: var(--card); border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm);
}
.ch-left { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.ch-online { font-size: 11.5px; color: var(--ink-3); }
.ch-period { font-size: 12.5px; color: var(--ink-2); }
.ch-period b { color: #B45309; }

.chat-list {
  height: calc(100vh - 230px);
  min-height: 320px;
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
  -webkit-overflow-scrolling: touch;
}
.chat-item {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 8px 11px; border-radius: 11px;
  background: #FFFBEF;
  border: 1px solid rgba(232, 163, 23, .1);
  font-size: 13px;
  animation: chatIn .26s ease both;
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.chat-item .cu { font-weight: 800; color: #8A5A05; }
.chat-item .ct { color: var(--ink-2); }
.chat-item .ct b { color: #D9480F; font-weight: 900; }
.chat-item .cp { margin-left: auto; font-size: 10.5px; color: var(--ink-3); }
.chat-item.sys {
  justify-content: center; background: rgba(255, 240, 196, .65);
  border-color: rgba(232, 163, 23, .18);
}
.chat-item.sys .cbox { font-size: 12px; color: #A9740E; font-weight: 700; }
.chat-item.draw {
  background: linear-gradient(135deg, #FFF1C9, #FFE1A8);
  border-color: rgba(232, 163, 23, .25);
}
.chat-item.draw .cbox { color: #B45309; font-weight: 800; }
.chat-seal {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 12px;
  background: linear-gradient(135deg, #FFE1E1, #FFC9C9);
  color: #B21F1F; font-size: 13px; font-weight: 800;
  border: 1px solid rgba(226, 59, 59, .25);
}

/* ---------------- 我的 ---------------- */
.mine-card {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 16px; margin-bottom: 12px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #FFFFFF, #FFF7E0);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
.mine-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
  background: linear-gradient(140deg, #FF8A3D, #FF3D7F);
  box-shadow: 0 6px 14px rgba(255, 94, 98, .3);
}
.mine-info { flex: 1; min-width: 0; }
.mine-name { font-size: 16px; font-weight: 900; }
.mine-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.mine-login {
  font-size: 12.5px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #FFB020, #FF8A3D);
  padding: 7px 16px; border-radius: 999px;
}
.mine-login[hidden] { display: none; }

.balance-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; margin-bottom: 12px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #FFE9A8, #FFD166 55%, #FFB020);
  box-shadow: 0 12px 26px rgba(232, 163, 23, .28);
  color: #6B4A0C;
}
.bc-label { font-size: 11.5px; opacity: .8; }
.bc-num { display: flex; align-items: baseline; gap: 2px; margin-top: 2px; }
.bc-num i { font-style: normal; font-size: 15px; font-weight: 800; opacity: .85; }
.bc-num b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.bc-actions { display: flex; gap: 8px; }
.bc-btn {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 900; color: #8A5A05;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 10px rgba(140, 100, 20, .16);
}
.bc-btn.ghost { background: rgba(255, 255, 255, .55); }

.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.entry {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 4px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
  font-size: 11.5px; color: var(--ink-2); font-weight: 700;
}
.entry .ic { width: 20px; height: 20px; color: #D9A21B; }

.page-entries { display: flex; flex-direction: column; gap: 8px; }
.page-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px; border-radius: 11px;
  background: #FFFBEF; border: 1px solid rgba(232, 163, 23, .14);
  font-size: 13.5px; font-weight: 700; color: #5A3D0A;
  text-align: left; width: 100%;
}
.page-item .pi-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFE9A8, #FFD166);
  color: #A9740E;
}
.page-item .ic-r { margin-left: auto; color: var(--ink-3); width: 14px; height: 14px; }

.mine-menu { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid rgba(255, 255, 255, .85); }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 15px; font-size: 14px; color: var(--ink-2);
  border-bottom: 1px solid rgba(232, 163, 23, .1);
  text-align: left;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .ic { color: #D9A21B; }
.menu-item .ic-r { margin-left: auto; color: var(--ink-3); width: 14px; height: 14px; }
.mine-foot { text-align: center; font-size: 11px; color: var(--ink-3); padding: 16px 0 4px; }

/* ---------------- 投注悬浮条 ---------------- */
.dock {
  position: fixed; z-index: 30;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px);
  width: calc(100% - 24px); max-width: 536px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px 9px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(232, 163, 23, .25);
  box-shadow: 0 12px 30px rgba(140, 100, 20, .22);
  backdrop-filter: blur(8px);
  animation: dockIn .24s ease both;
}
@keyframes dockIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.dock-items { flex: 1; display: flex; gap: 5px; overflow-x: auto; }
.dock-items::-webkit-scrollbar { display: none; }
.dock-item {
  flex: none; display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: #8A5A05;
  background: #FFF3CF; border-radius: 8px; padding: 5px 8px;
  border: 1px solid rgba(232, 163, 23, .18);
}
.dock-item i { font-style: normal; opacity: .6; }
.dock-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.dock-total { font-size: 10.5px; color: var(--ink-3); }
.dock-total b { font-size: 13px; color: #D9480F; }
.dock-submit {
  padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #FF9A3D, #FF5E62);
  box-shadow: 0 6px 14px rgba(255, 94, 98, .3);
}
.dock-submit:disabled { opacity: .55; box-shadow: none; }

/* ---------------- 底部导航 + 水滴 ---------------- */
.bottom-nav {
  position: fixed; z-index: 40;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid rgba(232, 163, 23, .16);
  box-shadow: 0 -6px 20px rgba(180, 138, 40, .1);
  touch-action: none;
}
.nav-item {
  position: relative; z-index: 2;
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10.5px; font-weight: 700; color: #B08A32;
  transition: color .2s;
}
.nav-item .ic { width: 21px; height: 21px; transition: transform .22s; }
.nav-item.active { color: #D97706; }
.nav-item.active .ic { transform: translateY(-1px) scale(1.08); }

.drop {
  position: absolute; z-index: 1;
  top: 6px; left: 0;
  width: 52px; height: 50px;
  border-radius: 26px 26px 24px 24px;
  background: linear-gradient(160deg, rgba(255, 214, 102, .48), rgba(255, 176, 32, .26));
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, .8), 0 6px 16px rgba(232, 163, 23, .22);
  backdrop-filter: blur(6px);
  transition: transform .34s cubic-bezier(.34, 1.4, .5, 1), width .2s ease, border-radius .2s;
  pointer-events: none;
}
.drop.dragging { transition: none; }
.drop::after {
  content: "";
  position: absolute; left: 50%; bottom: -5px;
  width: 12px; height: 12px; border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(255, 200, 80, .3);
  filter: blur(2px);
}

/* ---------------- 弹层 ---------------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
/* 玩法规则 / 使用守则：必须是最高层，从登录注册里点开也要压在最上面，整屏铺满 */
.sheet.doc-sheet { z-index: 200; align-items: stretch; }
.sheet.doc-sheet .sheet-mask { background: rgba(60, 40, 6, .5); }
.sheet.doc-sheet .sheet-panel {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  border-radius: 0; display: flex; flex-direction: column;
}
.sheet.doc-sheet .sheet-head { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
.sheet.doc-sheet .sheet-body { flex: 1; min-height: 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); }
.sheet.doc-sheet .rule-body h4 { font-size: 14.5px; }
.sheet.doc-sheet .rule-body table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 12.5px; }
.sheet.doc-sheet .rule-body th,
.sheet.doc-sheet .rule-body td { border: 1px solid var(--line); padding: 6px 8px; text-align: center; }
.sheet.doc-sheet .rule-body th { background: rgba(232,163,23,.12); font-weight: 800; }

.sheet-mask { position: absolute; inset: 0; background: rgba(60, 40, 6, .42); backdrop-filter: blur(2px); animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #FFFDF7, #FFF8E7);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -14px 40px rgba(120, 85, 15, .25);
  animation: sheetUp .28s cubic-bezier(.22, 1, .36, 1) both;
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px 11px;
  border-bottom: 1px solid rgba(232, 163, 23, .14);
}
.sheet-head b { font-size: 16px; font-weight: 900; }
.sheet-head .state { font-style: normal; font-size: 11px; font-weight: 700; color: #1FA463; margin-left: 6px; }
.sheet-close { width: 30px; height: 30px; border-radius: 50%; background: rgba(232, 163, 23, .12); color: #A9740E; display: flex; align-items: center; justify-content: center; }
.sheet-body { padding: 14px 16px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-body.rich { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.sheet-body.rich img { max-width: 100%; border-radius: 10px; }
.sheet-foot { padding: 0 16px 16px; }
.sheet.auth-panel .sheet-body { padding-top: 6px; }
.auth-logo {
  width: 58px; height: 58px; margin: 8px auto 14px;
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 25px; font-weight: 900;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(232, 163, 23, .2);
}
.field { display: block; margin-bottom: 11px; }
.field span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px;
  border-radius: 11px; border: 1px solid rgba(232, 163, 23, .26);
  background: #FFFBEF; outline: none;
  font-size: 14px; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #FFB020; box-shadow: 0 0 0 3px rgba(255, 176, 32, .16);
}
.field textarea { min-height: 90px; resize: vertical; }
.invite-note {
  font-size: 12px; color: #1F7A4D; font-weight: 700;
  background: rgba(31, 164, 99, .1);
  border-radius: 9px; padding: 8px 10px; margin-bottom: 11px;
}
.invite-note b { letter-spacing: 1px; }
.invite-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invite-clear {
  margin-left: auto; font-size: 11.5px; font-weight: 700;
  color: #1F7A4D; background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(31, 164, 99, .3); border-radius: 999px;
  padding: 3px 10px;
}
.auth-switch { display: block; width: 100%; text-align: center; margin-top: 12px; font-size: 12.5px; color: #A9740E; font-weight: 700; }

.pay-seg { display: flex; gap: 6px; margin-bottom: 12px; }
.pay-seg button {
  flex: 1; padding: 10px; border-radius: 11px;
  font-size: 13px; font-weight: 800; color: #8A6A22;
  background: #FFF7E2; border: 1px solid rgba(232, 163, 23, .2);
}
.pay-seg button.active { color: #fff; background: linear-gradient(135deg, #FFB020, #FF8A3D); border-color: transparent; }
.amt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.amt-grid button {
  padding: 12px 6px; border-radius: 11px;
  font-size: 15px; font-weight: 900; color: #8A5A05;
  background: #FFFBEF; border: 1px solid rgba(232, 163, 23, .2);
}
.amt-grid button.active {
  color: #fff; background: linear-gradient(135deg, #FFB020, #FF8A3D);
  border-color: transparent; box-shadow: 0 6px 14px rgba(255, 138, 61, .28);
}
.qr-box { text-align: center; padding: 12px; background: #fff; border-radius: 14px; border: 1px solid rgba(232, 163, 23, .2); margin-bottom: 12px; }
.qr-box img { width: 168px; height: 168px; object-fit: contain; }
.wx-id {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 900; color: #B45309; margin: 8px 0;
}
.copy-mini {
  font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #FFB020, #FF8A3D);
  padding: 4px 10px; border-radius: 999px;
}
.tip-line { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin: 8px 0; }
.balance-card.slim { padding: 12px 14px; margin-bottom: 12px; box-shadow: none; }

.rec-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px; border-radius: 11px;
  background: #FFFBEF; border: 1px solid rgba(232, 163, 23, .12);
  margin-bottom: 8px;
}
.rec-main { flex: 1; min-width: 0; }
.rec-main .t1 { font-size: 13.5px; font-weight: 800; color: #5A3D0A; }
.rec-main .t2 { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.rec-sum {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 176, 32, .10);
  border: 1px solid rgba(255, 176, 32, .28);
  font-size: 12px;
  color: #8A5A00;
  line-height: 1.6;
}
.rec-sum b { font-weight: 900; }
.rec-sum b.up { color: #1F7A4D; }
.rec-sum b.down { color: #B21F1F; }
.rec-tag { font-size: 11px; font-weight: 900; padding: 4px 9px; border-radius: 999px; }
.rec-tag.ok { color: #1F7A4D; background: rgba(31, 164, 99, .12); }
.rec-tag.wait { color: #B45309; background: rgba(255, 176, 32, .16); }
.rec-tag.no { color: #B21F1F; background: rgba(226, 59, 59, .12); }
.rec-tag.gray { color: #7A6438; background: rgba(160, 140, 100, .14); }
.rec-main .note {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8A5A00;
  background: rgba(255, 176, 32, .10);
  border-left: 3px solid rgba(255, 176, 32, .55);
  border-radius: 6px;
  padding: 4px 8px;
  word-break: break-all;
}
.rec-main .note.no {
  color: #B21F1F;
  background: rgba(226, 59, 59, .08);
  border-left-color: rgba(226, 59, 59, .55);
}

.h-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  background: #FFFBEF; border: 1px solid rgba(232, 163, 23, .1);
  margin-bottom: 7px;
}
.h-row .hp { font-size: 12px; color: var(--ink-3); width: 92px; flex: none; }
.h-row .hb { display: flex; gap: 5px; }
.h-row .hb i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 34% 26%, #FF8E7A, #EE3B34 52%, #B3161A 100%);
}
.h-row .ht { margin-left: auto; font-size: 12px; color: #B45309; font-weight: 800; }
.h-row .hk { font-size: 11px; color: var(--ink-3); }

.svc-list { display: flex; flex-direction: column; gap: 9px; min-height: 220px; max-height: 48vh; overflow-y: auto; }
.svc-bubble {
  max-width: 80%; padding: 9px 12px; border-radius: 13px;
  font-size: 13.5px; line-height: 1.5; word-break: break-word;
}
.svc-bubble.u { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #FFB020, #FF8A3D); border-bottom-right-radius: 4px; }
.svc-bubble.a { align-self: flex-start; color: #5A3D0A; background: #fff; border: 1px solid rgba(232, 163, 23, .18); border-bottom-left-radius: 4px; }
.chat-input-bar {
  display: flex; gap: 8px; padding: 10px 14px 14px;
  border-top: 1px solid rgba(232, 163, 23, .14);
}
.chat-input-bar input {
  flex: 1; padding: 10px 12px; border-radius: 11px;
  border: 1px solid rgba(232, 163, 23, .26); background: #FFFBEF; outline: none;
}
.chat-input-bar button {
  padding: 10px 18px; border-radius: 11px; color: #fff; font-weight: 900; font-size: 13.5px;
  background: linear-gradient(135deg, #FF9A3D, #FF5E62);
}

.empty { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 26px 0; }
.empty.small { padding: 12px 0; }

.toast {
  position: fixed; z-index: 90;
  left: 50%; bottom: 96px;
  transform: translate(-50%, 12px);
  max-width: 78vw;
  padding: 10px 16px; border-radius: 12px;
  background: rgba(58, 42, 12, .92);
  color: #FFF6DA; font-size: 13px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 适配 ---------------- */
@media (max-width: 360px) {
  .ball { width: 52px; height: 52px; font-size: 24px; }
  .brand-name { font-size: 16px; }
  .cd-ring, .cd-ring .ring { width: 92px; height: 92px; }
  .cd-time { font-size: 19px; }
  .quick-grid { gap: 7px; }
  .nm, .qm .qm-n { font-size: 15px; }
}
@media (min-width: 561px) {
  body { background: linear-gradient(160deg, #FFFDF4, #FFEFC2); }
  .stage { padding-left: 0; padding-right: 0; }
  .bottom-nav { left: 50%; transform: translateX(-50%); max-width: 560px; border-radius: 18px 18px 0 0; }
}

/* ==========================================================
   v1.7.0 新增：玩法切换 / 启动弹窗
   ========================================================== */

.mode-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 12px 4px;
  padding: 5px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.mode-bar button {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 7px 4px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  color: var(--ink-2);
  font-family: inherit;
  transition: all .18s ease;
}
.mode-bar button b { font-size: 15px; letter-spacing: .3px; white-space: nowrap; }
.mode-bar button span { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 359px) {
  .mode-bar button span { display: none; }
}
.mode-bar button.active {
  background: linear-gradient(135deg, #FFE08A, #FFC93C);
  color: #5A3A00;
  box-shadow: 0 4px 12px rgba(232, 163, 23, .28);
}
.mode-bar button.active span { color: #8A5E00; }
.mode-bar.slim { margin: 8px 12px 0; }
.mode-bar.slim button { flex-direction: row; gap: 0; padding: 7px 6px; justify-content: center; }
.mode-bar.slim button b { font-size: 15px; }

.mode-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(232, 163, 23, .16);
  color: #A86900;
  vertical-align: middle;
}

.popup-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(38, 26, 6, .46);
  backdrop-filter: blur(3px);
}
.popup-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: linear-gradient(180deg, #FFFDF6 0%, #FFF7E2 100%);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(90, 60, 10, .28);
  padding: 18px 16px 16px;
  animation: popIn .22s ease-out;
}
@keyframes popIn {
  from { transform: translateY(14px) scale(.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.popup-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
}
.popup-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 163, 23, .18);
}
.popup-body {
  max-height: 46vh;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 14px;
}
.apk-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2B2B2B, #4A4A4A);
  color: #FFE9A8;
  box-shadow: var(--shadow-sm);
}
.apk-entry span { font-size: 13px; opacity: .85; }
.apk-entry button {
  border: 0;
  background: linear-gradient(135deg, #FFD75E, #FFB800);
  color: #4A2E00;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.bonus-line {
  margin: 8px 0 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 201, 60, .18);
  color: #8A5E00;
  font-size: 12px;
  line-height: 1.6;
}

/* v1.8.0：顶部与切换器不换行 */
.brand { min-width: 0; flex-wrap: nowrap; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44vw; }
.mode-tag { white-space: nowrap; flex: 0 0 auto; }
.top-actions { flex: 0 0 auto; }

/* ==========================================================
   百家乐（公开厅 / 私人厅 · 路子图）
   ========================================================== */
.bac-halls { display: flex; gap: 8px; margin: 0 0 10px; }
.bac-halls button {
  flex: 1; height: 38px; border-radius: 12px; font-size: 14px; font-weight: 700;
  color: var(--ink-2); background: rgba(255,255,255,.75); border: 1px solid var(--line);
  transition: .18s;
}
.bac-halls button.active {
  color: #fff; background: linear-gradient(135deg, #E8A317, #FFB93C);
  box-shadow: 0 6px 16px rgba(232,163,23,.32); border-color: transparent;
}

.bac-card {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 14px 14px 12px; margin-bottom: 12px; position: relative; overflow: hidden;
}
.bac-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255,214,92,.28), rgba(255,214,92,0) 62%);
}
.bac-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.bac-period b { font-size: 15px; color: var(--ink); letter-spacing: .4px; }
.bac-cd { display: inline-flex; align-items: center; gap: 4px; }
.bac-cd b { font-size: 15px; color: var(--red); font-variant-numeric: tabular-nums; }

.bac-table { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.bac-side { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bac-name {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #fff;
}
.bac-name.bank { background: linear-gradient(135deg, #E23B3B, #FF6A5A); }
.bac-name.play { background: linear-gradient(135deg, #2D7FF9, #5AA6FF); }
.bac-cards { display: flex; gap: 6px; min-height: 46px; align-items: center; }
.bac-cards .pc {
  width: 34px; height: 46px; border-radius: 7px; background: #fff;
  border: 1px solid rgba(196,154,62,.35); box-shadow: 0 3px 8px rgba(180,138,40,.16);
  display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 800; color: var(--ink);
}
.bac-cards .pc.red { color: #E23B3B; }
.bac-pt { font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bac-vs { font-size: 12px; font-weight: 800; color: var(--ink-3); letter-spacing: 1px; padding-bottom: 18px; }

.bac-result {
  margin-top: 8px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2);
  padding: 7px 0; border-radius: 12px; background: rgba(255,246,217,.75); border: 1px dashed var(--line);
}
.bac-result.win-bank { color: #fff; background: linear-gradient(135deg,#E23B3B,#FF6A5A); border-color: transparent; }
.bac-result.win-play { color: #fff; background: linear-gradient(135deg,#2D7FF9,#5AA6FF); border-color: transparent; }
.bac-result.win-tie { color: #fff; background: linear-gradient(135deg,#1FA463,#4BCE8C); border-color: transparent; }
.bac-seal {
  margin-top: 8px; text-align: center; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg,#8B2B2B,#C33); padding: 6px 0; border-radius: 12px;
}

.bac-road {
  display: grid;
  grid-template-columns: repeat(12, 22px);
  grid-template-rows: repeat(6, 22px);
  grid-auto-flow: column;
  grid-auto-columns: 22px;
  gap: 4px; justify-content: start; overflow-x: auto; overflow-y: hidden;
  padding: 2px 0 6px; -webkit-overflow-scrolling: touch;
}
.bac-road.is-empty { display: grid; }
.bac-road .road-empty { font-size: 11.5px; color: var(--ink-3); padding: 6px 2px 8px; grid-column: 1 / -1; }
.bac-road .cell {
  width: 22px; height: 22px; min-width: 22px; max-width: 22px;
  min-height: 22px; max-height: 22px; aspect-ratio: 1 / 1;
  box-sizing: border-box; flex: none; padding: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  justify-self: center; align-self: center;
  font-size: 10px; font-weight: 800; color: #fff; position: relative; overflow: visible;
}
.bac-road .cell.bank { background: #E23B3B; }
.bac-road .cell.play { background: #2D7FF9; }
.bac-road .cell.tie { background: #1FA463; }
.bac-road .cell.empty { background: rgba(196,154,62,.14); }
.bac-road .cell .pd {
  position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #FFC93C;
  border: 1px solid rgba(0,0,0,.15);
}
.bac-road .cell .pd.pl { left: 1px; bottom: 1px; }
.bac-road .cell .pd.pr { right: 1px; bottom: 1px; }
.bac-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.bac-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bac-legend .lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bac-legend .lg.bank { background: #E23B3B; }
.bac-legend .lg.play { background: #2D7FF9; }
.bac-legend .lg.tie { background: #1FA463; }
.bac-legend .lg.dot { background: #FFC93C; }

.bac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.bac-grid button {
  border-radius: 14px; padding: 9px 6px; background: rgba(255,255,255,.9);
  border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: .15s;
}
.bac-grid button .bn { font-size: 14px; font-weight: 800; color: var(--ink); }
.bac-grid button .bo { font-size: 11px; color: var(--ink-3); }
.bac-grid button.picked {
  border-color: var(--gold); background: linear-gradient(180deg,#FFF8E2,#FFEFC4);
  box-shadow: 0 6px 16px rgba(232,163,23,.25);
}
.bac-grid button[data-btype="banker"] .bn { color: #E23B3B; }
.bac-grid button[data-btype="player"] .bn { color: #2D7FF9; }
.bac-grid button[data-btype="tie"] .bn { color: #1FA463; }

.bac-my { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.bac-my .mrow {
  display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 10px;
  background: rgba(255,246,217,.7); margin-top: 6px;
}
.bac-my .mrow b { color: var(--ink); }

/* 下注与底栏间距：百家乐页多一条确认条 */
#view-bac { padding-bottom: 96px; }
.bac-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 8px); z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: rgba(255,255,255,.96); box-shadow: 0 -8px 22px rgba(180,138,40,.16);
  border-top: 1px solid var(--line);
}
.bac-bar .bb-main { flex: 1; font-size: 13px; color: var(--ink-2); }
.bac-bar .bb-main b { color: var(--ink); font-size: 15px; }
.bac-bar .bb-btn {
  height: 40px; padding: 0 20px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg,#E8A317,#FFB93C); box-shadow: 0 6px 16px rgba(232,163,23,.32);
}
.bac-bar .bb-btn:disabled { opacity: .5; box-shadow: none; }

/* 提现 · 收款码上传 */
.qr-up { margin-top: 10px; }
.qr-up-tip { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.qr-up-box {
  width: 100%; height: 150px; border-radius: var(--r-md); border: 1.5px dashed var(--line);
  background: rgba(255,255,255,.75); display: grid; place-items: center;
  font-size: 13px; color: var(--ink-3); overflow: hidden;
}
.qr-up-box img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================
   v1.11 追加：图标 / 玩法规则 / 使用守则 / 私人厅开奖 / 发牌
   ========================================================== */
.brand-mark { background: none; box-shadow: none; overflow: hidden; padding: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 9px; }
.auth-logo { overflow: hidden; padding: 0; background: none; }
.auth-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dc-head-acts { display: flex; align-items: center; gap: 6px; }
.help-round {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #A9740E;
  background: rgba(255,235,186,.9); border: 1px solid rgba(232,163,23,.22);
}
.help-round .ic { width: 15px; height: 15px; }

.bac-halls { position: relative; }
.bac-halls .bac-help {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: #A9740E;
  background: rgba(255,235,186,.9); border: 1px solid rgba(232,163,23,.22);
}
.bac-halls .bac-help .ic { width: 17px; height: 17px; }
.bac-halls button.active { color: #fff; }

/* 私人厅开奖条 */
.bac-drawbar { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.bac-draw-btn {
  width: 100%; height: 46px; border-radius: 14px; font-size: 17px; font-weight: 900;
  letter-spacing: 6px; color: #fff; border: 0;
  background: linear-gradient(135deg, #E8A317, #FFB93C);
  box-shadow: 0 8px 18px rgba(232,163,23,.35);
}
.bac-draw-btn:disabled { opacity: .55; box-shadow: none; }
.bac-draw-tip { font-size: 11px; color: var(--ink-3); }

/* 发牌：从左到右逐张翻 */
.bac-cards .pc.deal {
  animation: cardDeal .34s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes cardDeal {
  0%   { transform: translateX(26px) rotateY(-88deg) scale(.9); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateX(0) rotateY(0) scale(1); opacity: 1; }
}
.bac-cards .pc.back {
  background: linear-gradient(135deg, #C8402E, #8E2216);
  color: transparent; border-color: rgba(255,255,255,.25);
  position: relative; overflow: hidden;
}
.bac-cards .pc.back::after {
  content: ""; position: absolute; inset: 3px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,.28);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 3px, transparent 3px 6px);
}

/* 使用守则勾选 */
.agree-row {
  display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 12px;
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
}
.agree-row input[type="checkbox"] {
  width: 17px; height: 17px; margin: 0; flex: none; accent-color: #E8A317;
  border-radius: 4px;
}
.agree-text { flex: 1; }
.terms-link {
  color: #2D7FF9; background: none; border: 0; padding: 0; font-size: 12px;
  text-decoration: underline; text-underline-offset: 2px;
}

/* 规则 / 守则正文 */
.rule-body { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.rule-body h4 {
  font-size: 14px; color: var(--ink); margin: 14px 0 6px; font-weight: 800;
  padding-left: 9px; border-left: 3px solid #E8A317; line-height: 1.1;
}
.rule-body h4:first-child { margin-top: 2px; }
.rule-body p { margin: 0 0 7px; }
.rule-body ul { margin: 0 0 8px; padding-left: 18px; }
.rule-body li { margin-bottom: 4px; }
.rule-body b { color: var(--ink); }
.rule-body .win { color: #C8402E; font-weight: 800; }

/* ==========================================================
   1.16.0 · 平台首页 / 游戏大厅 / 小飞机 / 新麻将胡了
   ========================================================== */

/* ---------------- 首页 ---------------- */
.lx-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 18px 16px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FF8A3D 0%, #FFB03A 46%, #FFD86B 100%);
  box-shadow: 0 14px 30px rgba(255, 138, 61, .28);
  color: #4A2A05;
}
.lx-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%),
    radial-gradient(40% 70% at 0% 100%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 70%);
}
.lx-hero-deco {
  position: absolute; right: -26px; bottom: -34px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 62%);
  opacity: .65;
}
.lx-hero-body { position: relative; z-index: 2; }
.lx-hero-tag {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: #7A3E00;
  margin-bottom: 8px;
}
.lx-hero-title { font-size: 22px; font-weight: 900; letter-spacing: .5px; }
.lx-hero-sub { font-size: 12.5px; margin-top: 5px; opacity: .82; }
.lx-hero-btn {
  margin-top: 12px;
  border: none; border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #3B2B12, #6A4A16);
  box-shadow: 0 8px 18px rgba(59, 43, 18, .3);
}
.lx-hero-btn:active { transform: scale(.97); }

/* 首页顶部广告位：整块是图，点哪儿都进注册 */
.lx-hero-ad {
  padding: 0;
  line-height: 0;
  cursor: pointer;
  background: #5E0A12;
  box-shadow: 0 14px 30px rgba(120, 12, 24, .3);
  transition: transform .12s ease;
}
.lx-hero-ad .lx-hero-img {
  display: block;
  width: 100%;
  height: auto;
}
.lx-hero-ad:active { transform: scale(.985); }

.lx-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 14px;
}
.lx-quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 11px 2px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.lx-quick-item:active { transform: scale(.97); }
.lx-qi {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 12px;
}
.lx-qi .ic { width: 18px; height: 18px; }
.lx-qi.a { background: linear-gradient(135deg, #FFE3B8, #FFC93C); color: #8A5A00; }
.lx-qi.b { background: linear-gradient(135deg, #D6F5E4, #7FE0B0); color: #116E45; }
.lx-qi.c { background: linear-gradient(135deg, #D8E8FF, #8FBDFF); color: #1B4F9C; }
.lx-qi.d { background: linear-gradient(135deg, #F0DEFF, #C9A2FF); color: #5B2F9C; }

.lx-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 2px 9px;
}
.lx-sh-title { font-size: 15px; font-weight: 900; color: var(--ink); }
.lx-sh-title::before {
  content: ""; display: inline-block;
  width: 4px; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, #FF8A3D, #FFC83D);
  margin-right: 7px; vertical-align: -2px;
}
.lx-more {
  display: flex; align-items: center; gap: 2px;
  border: none; background: none; padding: 0;
  font-size: 12px; color: var(--ink-3);
}
.lx-more .ic { width: 12px; height: 12px; }

.lx-games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.lx-game {
  position: relative;
  border: none; text-align: left;
  border-radius: 18px;
  padding: 14px 13px 13px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(180, 138, 40, .16);
  color: #fff;
  min-height: 104px;
  background: linear-gradient(135deg, #B07A22, #E0B45A);
}
.lx-game:active { transform: scale(.98); }
.lx-game .lg-body { position: relative; z-index: 2; display: block; }
.lx-game .lg-art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 46%;
  z-index: 1; pointer-events: none; overflow: hidden;
  border-radius: 0 18px 18px 0;
}
.lx-game .lg-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.25) 16%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.25) 16%, #000 52%);
}
.lx-game .lg-ic { width: 26px; height: 26px; opacity: .95; }
.lx-game .lg-name {
  font-size: 14px; font-weight: 900; margin-top: 8px; line-height: 1.18;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0,0,0,.34);
}
.lx-game .lg-sub {
  font-size: 10.5px; opacity: .88; margin-top: 3px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.lx-game .lg-go {
  position: absolute; right: 10px; top: 11px;
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}
.lx-game::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(40,18,0,.26) 0%, rgba(40,18,0,.10) 52%, rgba(40,18,0,0) 100%);
}
.lx-game::after {
  content: ""; position: absolute; right: -30px; bottom: -40px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 65%);
}
.lx-game.g-ca28 { background: linear-gradient(135deg, #FF7A3D, #FFB93D); }
.lx-game.g-bac { background: linear-gradient(135deg, #2F8CFF, #6FD0FF); }
.lx-game.g-crash { background: linear-gradient(135deg, #7B3DFF, #C86BFF); }
.lx-game.g-mj { background: linear-gradient(135deg, #E23B3B, #FF8A5B); }
/* 泰国分分彩以前没有配色，吃的是卡片默认的浅米底，白字糊在一起看着发淡 */
.lx-game.g-thai {
  background: linear-gradient(135deg, #0B7A5B, #16C79A 55%, #46E0B4);
  box-shadow: 0 10px 22px rgba(16, 150, 118, .28);
}
/* 新玩法卡以前没有配色，卡底是透明的 → 左边一片空白发白，看着像没做 */
.lx-game.g-ssq {
  background: linear-gradient(135deg, #C81E2B, #FF6A3D 58%, #FFA24D);
  box-shadow: 0 10px 22px rgba(200, 30, 43, .26);
}
.lx-game.g-dlt {
  background: linear-gradient(135deg, #9A5B12, #E0A028 55%, #F7CE63);
  box-shadow: 0 10px 22px rgba(180, 120, 20, .26);
}
.lx-game.g-qlc {
  background: linear-gradient(135deg, #0A6E62, #12A98C 55%, #38D6A8);
  box-shadow: 0 10px 22px rgba(10, 110, 98, .26);
}
.lx-game.g-sport {
  background: linear-gradient(135deg, #123A8A, #2C7BE5 55%, #55B4F5);
  box-shadow: 0 10px 22px rgba(18, 58, 138, .26);
}
.lx-game.off { filter: grayscale(.7); opacity: .62; }

.lx-notice {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.lx-notice .ic { width: 15px; height: 15px; color: #E8571B; flex: none; }
.lx-notice-track {
  font-size: 12px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: lxNotice 14s linear infinite alternate;
}
@keyframes lxNotice { from { transform: translateX(0); } to { transform: translateX(-16px); } }

.lx-latest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.lx-lc {
  background: var(--card);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
  padding: 11px 12px;
}
.lx-lc .lc-t { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.lx-lc .lc-n { font-size: 17px; font-weight: 900; color: var(--ink); margin-top: 5px; }
.lx-lc .lc-d { font-size: 11px; color: var(--ink-2); margin-top: 3px; }

.lx-bonus {
  background: linear-gradient(135deg, #FFF8E1, #FFEFC2);
  border: 1px solid rgba(232, 163, 23, .38);
  border-radius: var(--r-lg);
  padding: 13px 14px;
  margin-bottom: 8px;
}
.lx-bonus-head { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #8A5A00; }
.lx-bonus-head .ic { width: 16px; height: 16px; }
.lx-bonus-body { margin-top: 9px; }
.lx-bonus-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-2); margin-bottom: 5px;
}
.lx-bonus-row b { color: #8A5A00; font-size: 13px; }
.lx-bar {
  height: 7px; border-radius: 999px; background: rgba(232, 163, 23, .2); overflow: hidden;
  margin: 7px 0 6px;
}
.lx-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #FFB03A, #FF8A3D); transition: width .4s ease; }
.lx-bonus-tip { font-size: 11px; color: var(--ink-3); }

/* ---------------- 游戏大厅 ---------------- */
.hall-head { padding: 4px 2px 12px; }
.hall-title { font-size: 21px; font-weight: 900; color: var(--ink); }
.hall-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.hall-cats {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 2px; margin-bottom: 14px;
  scrollbar-width: none;
}
.hall-cats::-webkit-scrollbar { display: none; }
.hall-cat {
  flex: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  color: var(--ink-2);
  font-size: 12.5px; font-weight: 800;
  padding: 7px 15px; border-radius: 999px;
}
.hall-cat.active {
  background: linear-gradient(135deg, #FF8A3D, #FFC83D);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 16px rgba(255, 138, 61, .28);
}
.hall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hall-card {
  border: none; text-align: left;
  border-radius: 18px; padding: 13px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
}
.hall-card:active { transform: scale(.98); }
.hall-card .hc-top { display: flex; align-items: center; justify-content: space-between; }
.hall-card .hc-ic {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 12px;
  background: linear-gradient(135deg, #FFF0C9, #FFD875); color: #95650A;
}
.hall-card .hc-ic .ic { width: 18px; height: 18px; }
.hall-card .hc-tag {
  font-size: 10px; font-weight: 800; color: #C2740B;
  background: #FFF3D2; padding: 2px 7px; border-radius: 999px;
}
.hall-card .hc-name { font-size: 14.5px; font-weight: 900; color: var(--ink); margin-top: 10px; }
.hall-card .hc-sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.hall-card.off { opacity: .55; }
.hall-card.off .hc-tag { color: #999; background: #EFEFEF; }
.hall-empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--ink-3); font-size: 13px; }
.hall-foot { text-align: center; font-size: 11px; color: var(--ink-3); padding: 18px 0 4px; }

/* ---------------- 玩法页通用返回条 ---------------- */
.gbar {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 0 12px;
}
.gbar-back {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .85);
  color: var(--ink-2);
}
.gbar-back .ic { width: 16px; height: 16px; transform: rotate(180deg); }
.gbar-title { flex: 1; font-size: 16px; font-weight: 900; color: var(--ink); }
.gbar-help {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .85);
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.gbar-help .ic { width: 15px; height: 15px; }

/* ---------------- 区块链小飞机 ---------------- */
.cr-stage {
  position: relative;
  height: 232px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(170deg, #241B47 0%, #3A2568 45%, #6A2C72 100%);
  box-shadow: 0 16px 34px rgba(64, 33, 110, .3);
  margin-bottom: 10px;
}
.cr-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 80% 12%, rgba(255, 190, 90, .28), rgba(255, 190, 90, 0) 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(120, 255, 220, .16), rgba(120, 255, 220, 0) 65%);
}
.cr-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 24%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.2px 1.2px at 44% 12%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.6px 1.6px at 72% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.2px 1.2px at 88% 58%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.3px 1.3px at 26% 62%, rgba(255,255,255,.45), transparent);
  opacity: .9;
}
.cr-curve { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cr-curve #crPath {
  stroke: #9BE7FF;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(155, 231, 255, .85));
  opacity: 1;
}
.cr-curve .cr-track {
  stroke: rgba(255, 255, 255, .18);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
  opacity: .7;
}
.cr-plane {
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  margin: 0;
  color: #FFE08A;
  transition: none;
  will-change: transform, left, top;
  filter: drop-shadow(0 0 8px rgba(255, 220, 120, .85));
}
.cr-plane .ic { width: 30px; height: 30px; position: relative; z-index: 2; }
.cr-flame {
  position: absolute; left: 50%; top: 74%;
  width: 12px; height: 26px; margin-left: -6px;
  border-radius: 50% 50% 50% 50%;
  background: linear-gradient(to bottom, rgba(255, 236, 160, .95), rgba(255, 122, 60, .55) 55%, rgba(255, 80, 40, 0));
  filter: blur(1.4px);
  transform-origin: 50% 0;
  animation: crFlame .28s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes crFlame {
  from { transform: scaleY(.72) scaleX(.85); opacity: .75; }
  to   { transform: scaleY(1.18) scaleX(1.05); opacity: 1; }
}
.cr-glow {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 138, .38), rgba(255, 224, 138, 0) 70%);
  pointer-events: none;
}
.cr-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.cr-mult {
  font-size: 46px; font-weight: 900; color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 4px 18px rgba(255, 190, 90, .65);
  font-variant-numeric: tabular-nums;
}
.cr-mult i { font-size: 22px; font-style: normal; margin-left: 3px; opacity: .85; }
.cr-mult.crashed { color: #FF6B6B; text-shadow: 0 4px 18px rgba(255, 60, 60, .6); }
.cr-state { font-size: 12.5px; color: rgba(255, 255, 255, .78); margin-top: 6px; }
.cr-boom {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  font-size: 26px; font-weight: 900; color: #FF6B6B;
  text-shadow: 0 0 22px rgba(255, 80, 80, .9);
  animation: crBoom .5s ease both;
}
@keyframes crBoom { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.cr-hist {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 0 2px 4px; margin-bottom: 12px;
  scrollbar-width: none;
}
.cr-hist::-webkit-scrollbar { display: none; }
.cr-h {
  flex: none;
  font-size: 11.5px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cr-h.hi { color: #7B3DFF; border-color: rgba(123, 61, 255, .3); background: #F4EEFF; }
.cr-h.lo { color: #B08A2A; }
.cr-h.win { color: #1FA463; border-color: rgba(31, 164, 99, .3); background: #EBFBF2; }

.cr-panel {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow);
  padding: 14px;
}
.cr-amt-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cr-label { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.cr-amt-box {
  display: flex; align-items: center; gap: 4px;
  background: #FFF9E8; border: 1px solid var(--line);
  border-radius: 12px; padding: 3px;
}
.cr-amt-box input {
  width: 84px; border: none; background: none; outline: none;
  text-align: center; font-size: 16px; font-weight: 900; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cr-step {
  width: 28px; height: 28px; border-radius: 9px;
  border: none; background: rgba(255, 255, 255, .9);
  font-size: 16px; font-weight: 900; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.cr-presets { display: flex; gap: 7px; margin-bottom: 12px; }
.cr-presets button {
  flex: 1;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
  border-radius: 10px; padding: 7px 0;
  font-size: 12.5px; font-weight: 800; color: var(--ink-2);
}
.cr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-btn {
  border: none; border-radius: 14px;
  padding: 13px 0;
  font-size: 15px; font-weight: 900; color: #fff;
}
.cr-btn:active { transform: scale(.98); }
.cr-btn.bet { background: linear-gradient(135deg, #7B3DFF, #C86BFF); box-shadow: 0 10px 20px rgba(123, 61, 255, .3); }
.cr-btn.cash { background: linear-gradient(135deg, #FF8A3D, #FFC83D); box-shadow: 0 10px 20px rgba(255, 138, 61, .3); }
.cr-btn[disabled] { background: #E9E2D2; color: #B0A588; box-shadow: none; }
.cr-tip { font-size: 11px; color: var(--ink-3); margin-top: 10px; line-height: 1.6; }

/* ---------------- 新麻将胡了 ---------------- */
.mj-free {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px; margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFE9A8, #FFC93C);
  color: #7A3E00;
  font-size: 12.5px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(255, 201, 60, .3);
}
.mj-free .ic { width: 15px; height: 15px; }
.mj-free b { font-size: 14px; }

.mj-machine {
  position: relative;
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(165deg, #2A1B3F 0%, #402457 55%, #5A2664 100%);
  box-shadow: 0 16px 34px rgba(58, 30, 90, .32);
  margin-bottom: 12px;
  overflow: hidden;
}
.mj-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 0%, rgba(255, 216, 107, .2), rgba(255, 216, 107, 0) 70%);
}
.mj-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; position: relative; z-index: 2; }
.mj-win {
  font-size: 20px; font-weight: 900; color: #FFE08A;
  font-variant-numeric: tabular-nums;
}
.mj-win.win { animation: mjWinPop .5s ease; }
@keyframes mjWinPop { 0% { transform: scale(1); } 45% { transform: scale(1.14); } 100% { transform: scale(1); } }
.mj-msg { font-size: 11px; color: rgba(255, 255, 255, .66); text-align: right; max-width: 62%; }

.mj-reels {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px;
  position: relative; z-index: 2;
  background: rgba(255, 255, 255, .06);
  padding: 6px; border-radius: 14px;
}
.mj-col { display: flex; flex-direction: column; gap: 5px; }
.mj-col.spinning .mj-cell { animation: mjBlur .12s linear infinite; }
@keyframes mjBlur {
  0% { transform: translateY(-2px); opacity: .55; }
  50% { transform: translateY(2px); opacity: 1; }
  100% { transform: translateY(-2px); opacity: .55; }
}
.mj-cell {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1.12;
  border-radius: 10px;
  font-size: 17px; font-weight: 900;
  background: linear-gradient(160deg, #FFFDF2, #FFEFC4);
  color: #6A4A16;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08);
  overflow: hidden;
}
.mj-cell::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}
.mj-cell.s-a { color: #C0392B; }
.mj-cell.s-b { color: #1F6FB2; }
.mj-cell.s-c { color: #1FA463; }
.mj-cell.s-d { color: #6B4BC4; }
.mj-cell.s-e { color: #8A7B5C; }
.mj-cell.s-w { color: #B8860B; background: linear-gradient(160deg, #FFF6D8, #FFD86B); }
.mj-cell.s-s {
  color: #fff;
  background: linear-gradient(160deg, #FF8A3D, #FFC83C);
  box-shadow: 0 0 16px rgba(255, 190, 60, .7), inset 0 -2px 0 rgba(0, 0, 0, .1);
}
.mj-cell.hit { animation: mjHit .5s ease; }
@keyframes mjHit {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.42); box-shadow: 0 0 18px rgba(255, 220, 110, .95); }
}

.mj-panel {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow);
  padding: 13px;
}
.mj-bet-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mj-step {
  width: 34px; height: 34px; border-radius: 11px;
  border: none; background: #FFF6DC; color: #8A5A00;
  font-size: 17px; font-weight: 900;
  box-shadow: var(--shadow-sm);
}
.mj-step[disabled] { opacity: .45; }
.mj-bet-box {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between;
  background: #FFF9E8; border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 13px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 700;
}
.mj-bet-box b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mj-presets { display: flex; gap: 7px; margin-bottom: 12px; }
.mj-presets button {
  flex: 1;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
  border-radius: 10px; padding: 7px 0;
  font-size: 12.5px; font-weight: 800; color: var(--ink-2);
}
.mj-presets button[disabled] { opacity: .45; }
.mj-presets button.on { background: linear-gradient(135deg, #FFE9A8, #FFC93C); color: #7A3E00; border-color: transparent; }
.mj-spin {
  width: 100%;
  border: none; border-radius: 15px;
  padding: 14px 0;
  font-size: 16px; font-weight: 900; letter-spacing: 3px; color: #fff;
  background: linear-gradient(135deg, #E23B3B, #FF8A3D 60%, #FFC83D);
  box-shadow: 0 12px 24px rgba(226, 59, 59, .28);
}
.mj-spin:active { transform: scale(.985); }
.mj-spin[disabled] { background: #E9E2D2; color: #B0A588; box-shadow: none; }
.mj-lock {
  margin-top: 9px; text-align: center;
  font-size: 11.5px; color: #B0800F; font-weight: 700;
}

/* ===== 麻将电子 · 牌面重做 ===== */
.mj-machine {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 216, 107, .18), transparent 62%),
    linear-gradient(165deg, #1B1030 0%, #2C1740 48%, #472056 100%);
  box-shadow: 0 18px 40px rgba(30, 12, 50, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 216, 107, .16);
}
.mj-reels {
  background: linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .16));
  border: 1px solid rgba(255, 216, 107, .14);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, .5);
}
.mj-col { position: relative; }
.mj-col::after {
  content: ""; position: absolute; inset: -2px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  pointer-events: none;
}
.mj-cell {
  border-radius: 8px;
  background:
    linear-gradient(158deg, #FFFDF4 0%, #FBF3DC 46%, #EFE1BE 100%);
  box-shadow:
    inset 0 -3px 0 rgba(120, 96, 50, .28),
    inset 0 2px 0 rgba(255, 255, 255, .95),
    0 3px 6px rgba(0, 0, 0, .35);
  border: 1px solid rgba(150, 122, 66, .35);
}
.mj-cell::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 4%;
  height: 26%; border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.mj-cell::after { display: none; }
.mj-face {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.mj-char {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 21px; font-weight: 900; line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 -1px 0 rgba(0, 0, 0, .08);
}
.mj-char.red { color: #B3251E; }
.mj-char.purple { color: #4B3A96; }
.mj-char.gold { color: #8A5A00; }
.mj-char.yuan {
  color: #7A3E00;
  font-size: 19px;
}
.mj-dots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  width: 62%; height: 62%;
}
.mj-dots i {
  display: block; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #6FC3F5, #1F6FB2 62%, #144A78);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), 0 1px 1px rgba(0, 0, 0, .2);
}
.mj-bars { display: flex; gap: 3px; height: 62%; align-items: stretch; }
.mj-bars i {
  width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, #57CC8B, #1FA463 60%, #12704A);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55);
}
.mj-blank {
  width: 56%; height: 56%; border-radius: 5px;
  border: 2px solid #9C8A66;
  background: linear-gradient(150deg, #FDF8EA, #EADFC4);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18);
}
.mj-cell.s-w {
  background: linear-gradient(158deg, #FFF9E2 0%, #FFE9A8 52%, #F7CE62 100%);
  box-shadow:
    inset 0 -3px 0 rgba(160, 112, 20, .35),
    inset 0 2px 0 rgba(255, 255, 255, .95),
    0 0 14px rgba(255, 200, 70, .55);
  border-color: rgba(200, 150, 40, .6);
}
.mj-spark {
  position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 110, .55), transparent 66%);
  animation: mjSpark 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mjSpark { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .85; transform: scale(1.06); } }
.mj-cell.s-s {
  background: linear-gradient(158deg, #FFF3D2, #FFC94A 58%, #F09A19);
  box-shadow: 0 0 18px rgba(255, 176, 40, .75), inset 0 -3px 0 rgba(150, 90, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .9);
}
.mj-cell.s-e { background: linear-gradient(158deg, #FFFDF6, #F6EEDA, #E7DBC0); }
.mj-cell.hit {
  animation: mjHitNew .62s ease;
  z-index: 3;
}
@keyframes mjHitNew {
  0%, 100% { filter: none; transform: translateY(0); }
  35% { filter: brightness(1.35) saturate(1.15); transform: translateY(-3px); box-shadow: 0 0 20px rgba(255, 214, 90, .95); }
}
.mj-free {
  background: linear-gradient(90deg, #7A2BD6, #C33FBE 55%, #FF7A3C);
  box-shadow: 0 8px 20px rgba(160, 40, 160, .35);
  animation: mjFreePulse 1.6s ease-in-out infinite;
}
@keyframes mjFreePulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.16); } }

/* ===== 小飞机 · 全场轮播 ===== */
.cr-live {
  background: linear-gradient(165deg, #101A2C, #16233A);
  border: 1px solid rgba(120, 200, 255, .14);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 10px 24px rgba(8, 16, 30, .35);
}
.cr-live-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(210, 232, 255, .78);
}
.cr-live-round {
  font-weight: 700; color: #8FD3FF;
  background: rgba(80, 170, 255, .12);
  border: 1px solid rgba(80, 170, 255, .22);
  border-radius: 999px; padding: 2px 9px;
}
.cr-live-state { flex: 1; font-weight: 600; }
.cr-live-state.flying { color: #7CF5B0; }
.cr-live-state.busted { color: #FF8A8A; }
.cr-live-left {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .55);
}
.cr-live-bots {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.cr-live-empty { font-size: 11px; color: rgba(255, 255, 255, .4); }
.cr-bot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(230, 240, 255, .85);
}
.cr-bot b { font-weight: 700; color: #CFE6FF; }
.cr-bot.win { border-color: rgba(90, 230, 160, .35); background: rgba(60, 190, 120, .12); }
.cr-bot.win i { color: #6EF0A8; font-style: normal; }
.cr-bot.lose { border-color: rgba(255, 120, 120, .28); background: rgba(200, 60, 60, .1); }
.cr-bot.lose i { color: #FF9B9B; font-style: normal; }

.lx-claim-btn {
  width: 100%;
  margin: 8px 0 6px;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #4A2A00;
  background: linear-gradient(135deg, #FFE082, #FFB300 55%, #FF9800);
  box-shadow: 0 6px 16px rgba(255, 160, 0, .35);
}
.lx-claim-btn:active { transform: translateY(1px); }

/* ============================ 泰国分分彩 ============================ */
.th-top {
  margin: 10px 14px 12px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #FFF8E3, #FFE7AE 55%, #FFD37A);
  border: 1px solid rgba(232,163,23,.35);
  box-shadow: var(--shadow);
}
.th-top-row { display: flex; align-items: center; justify-content: space-between; }
.th-period { font-size: 14px; font-weight: 800; color: var(--ink); }
.th-state { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(31,164,99,.14); color: #147A48; }
.th-state.sealed { background: rgba(226,59,59,.12); color: #B32626; }
.th-clock { text-align: center; margin: 6px 0 2px; color: var(--ink); }
.th-clock b { font-size: 34px; font-weight: 900; letter-spacing: 1px; }
.th-clock i { font-style: normal; font-size: 13px; margin-left: 3px; color: var(--ink-2); }
.th-balls { display: flex; justify-content: center; gap: 7px; margin: 6px 0 8px; }
.th-ball {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: #7A3E00;
  background: radial-gradient(circle at 32% 28%, #FFF6D8, #FFC93C 62%, #E8A317);
  box-shadow: 0 4px 10px rgba(180,120,20,.28), inset 0 -2px 4px rgba(160,100,0,.25);
}
.th-ball.spin { animation: thBall .28s linear infinite; }
@keyframes thBall { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
.th-sum { text-align: center; font-size: 12px; color: var(--ink-2); font-weight: 600; }

.th-odds {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 0 14px 8px; padding: 10px 8px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255,212,102,.22), rgba(255,179,0,.10));
  border: 1px solid rgba(255,179,0,.28);
}
.th-odds-i { text-align: center; min-width: 0; }
.th-odds-i span { display: block; font-size: 11px; color: var(--ink-3); font-weight: 700; margin-bottom: 3px; white-space: nowrap; }
.th-odds-i b { display: inline-block; font-size: 16px; font-weight: 900; color: #B26A00; letter-spacing: -.2px; }
.th-odds-i i { font-style: normal; font-size: 10px; color: var(--ink-3); margin-left: 1px; }
.th-odds-tip { margin: 0 14px 10px; font-size: 11px; color: var(--ink-3); line-height: 1.5; }

.th-tabs { display: flex; gap: 8px; padding: 0 14px 10px; overflow-x: auto; }
.th-tabs button {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); background: rgba(255,255,255,.8); color: var(--ink-2);
}
.th-tabs button.active { background: linear-gradient(135deg,#FFD466,#FFB300); color: #5A3300; border-color: transparent; }

.th-panel { margin: 0 14px 12px; padding: 12px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.th-pos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.th-pos-col { display: flex; flex-direction: column; gap: 4px; }
.th-pos-title { text-align: center; font-size: 11px; color: var(--ink-3); font-weight: 700; margin-bottom: 2px; }
.th-num {
  padding: 7px 0; border-radius: 8px; font-size: 14px; font-weight: 800;
  border: 1px solid var(--line); background: #FFFDF6; color: var(--ink);
}
.th-num.on { background: linear-gradient(135deg,#FFE082,#FFB300); border-color: transparent; color: #5A3300; }
.th-pick-line { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.th-pick-line b { color: var(--ink); }

.th-btn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.th-btn-grid.two { grid-template-columns: repeat(2, 1fr); }
.th-btn-grid button {
  padding: 14px 0; border-radius: 12px; font-size: 16px; font-weight: 800;
  border: 1px solid var(--line); background: #FFFDF6; color: var(--ink);
}
.th-btn-grid button i { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.th-btn-grid button.on { background: linear-gradient(135deg,#FFE082,#FFB300); border-color: transparent; color: #5A3300; }
.th-rule-tip { margin-top: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }

.th-super { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.th-super .th-pos-col .th-num { padding: 5px 0; font-size: 13px; }

.th-bet-bar { margin: 0 14px 12px; padding: 12px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.th-amt { display: flex; align-items: center; gap: 8px; }
.th-amt input { flex: 1 1 auto; min-width: 0; width: 100%; box-sizing: border-box; text-align: center; font-size: 18px; font-weight: 800; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: #FFFDF6; color: var(--ink); }
.th-presets { display: flex; gap: 6px; margin: 8px 0; }
.th-presets button { flex: 1; padding: 6px 0; border-radius: 8px; border: 1px solid var(--line); background: #FFFDF6; font-size: 13px; font-weight: 700; color: var(--ink); }
.th-submit { width: 100%; padding: 13px; border: none; border-radius: 12px; font-size: 16px; font-weight: 900; color: #4A2A00; background: linear-gradient(135deg,#FFE082,#FFB300 55%,#FF9800); box-shadow: 0 6px 16px rgba(255,160,0,.35); }
.th-submit:disabled { opacity: .55; }

.th-sec-head { margin: 4px 14px 8px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.th-history { margin: 0 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.th-hrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow-sm); font-size: 12px; }
.th-hrow .p { color: var(--ink-3); width: 96px; }
.th-hrow .n { display: flex; gap: 4px; }
.th-hrow .n b { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #FFF1C9; color: #7A3E00; font-size: 12px; }
.th-hrow .s { margin-left: auto; color: var(--ink-2); }
.th-mine { margin: 0 14px 90px; display: flex; flex-direction: column; gap: 6px; }
.th-mrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow-sm); font-size: 12px; }
.th-mrow .p { color: var(--ink-3); }
.th-mrow .w { margin-left: auto; font-weight: 800; }
.th-mrow .w.win { color: var(--green); }
.th-mrow .w.lose { color: var(--ink-3); }
.th-empty { text-align: center; color: var(--ink-3); font-size: 12px; padding: 14px 0; }

.th-pos-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.th-pos-btn {
  padding: 9px 0; border-radius: 10px; font-size: 13px; font-weight: 800;
  border: 1px solid var(--line); background: #FFFDF6; color: var(--ink);
}
.th-pos-btn.on { background: linear-gradient(135deg,#FFE082,#FFB300); border-color: transparent; color: #5A3300; }
.th-num-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.th-num-btn {
  padding: 10px 0; border-radius: 10px; font-size: 16px; font-weight: 900;
  border: 1px solid var(--line); background: #FFFDF6; color: var(--ink);
}
.th-num-btn.on { background: linear-gradient(135deg,#FFE082,#FFB300); border-color: transparent; color: #5A3300; }
.th-super-in {
  width: 100%; padding: 9px 0; text-align: center; font-size: 18px; font-weight: 900;
  border-radius: 10px; border: 1px solid var(--line); background: #FFFDF6; color: var(--ink);
}

/* ============================ 开奖刮刮卡 ============================ */
.draw-card { position: relative; }
.scratch-wrap {
  position: absolute;
  left: 12px; right: 12px; top: 54px; height: 150px;
  border-radius: 18px;
  overflow: hidden;
  z-index: 8;
  box-shadow: 0 6px 18px rgba(120, 90, 30, .22);
  transition: opacity .24s ease;
}
.scratch-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.scratch-wrap.done { opacity: 0; pointer-events: none; }
.scratch-hint {
  position: absolute; left: 0; right: 0; bottom: 8px;
  text-align: center; font-size: 11px; color: rgba(110, 80, 20, .7);
  pointer-events: none;
}

/* ================= 小飞机加载圈（不弹提示，转一秒就好） ================= */
.cr-loading {
  position: absolute; inset: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 10, 26, .55);
  backdrop-filter: blur(2px);
  border-radius: 18px;
  transition: opacity .25s ease;
}
.cr-loading[hidden] { display: none; }
.cr-loading.out { opacity: 0; pointer-events: none; }
.cr-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .18);
  border-top-color: #FFD86B;
  animation: crSpin .8s linear infinite;
  display: block;
}
@keyframes crSpin { to { transform: rotate(360deg); } }

/* ================= 梭哈按钮 ================= */
.cr-allin-row { margin: 10px 0 2px; }
.allin-btn {
  width: 100%; height: 42px; border: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg, #FF7A3D, #FF3D6E);
  color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .5px;
  box-shadow: 0 8px 18px rgba(255, 70, 90, .28);
}
.allin-btn .ic { width: 16px; height: 16px; fill: #fff; }
.allin-btn i { font-style: normal; font-size: 11px; font-weight: 600; opacity: .82; }
.allin-btn:active { transform: scale(.985); }
.allin-btn[disabled] { opacity: .45; box-shadow: none; }
.bac-allin { margin-top: 8px; }

/* ================= 麻将电子：真正的滚轮 ================= */
.mj-reels { --mj-cell: clamp(46px, 14.6vw, 70px); gap: 5px; }
.mj-col {
  height: calc(var(--mj-cell) * 4 + 15px);
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  background: rgba(0, 0, 0, .12);
}
.mj-strip {
  display: flex; flex-direction: column; gap: 5px;
  will-change: transform;
  transform: translateY(0);
}
.mj-strip .mj-cell {
  height: var(--mj-cell); flex: 0 0 auto; width: 100%;
  aspect-ratio: auto;
}
.mj-strip .mj-cell::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.mj-reels.rolling::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26%;
  background: linear-gradient(180deg, rgba(42, 27, 63, .78), rgba(42, 27, 63, 0));
  pointer-events: none; z-index: 3;
}
.mj-reels.rolling::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(0deg, rgba(42, 27, 63, .78), rgba(42, 27, 63, 0));
  pointer-events: none; z-index: 3;
}

/* ================= 赚钱大厅 ================= */
.mh-hero {
  border-radius: 18px; padding: 16px 16px 18px; margin-bottom: 12px;
  background: linear-gradient(135deg, #2B2540, #4A3A6B 60%, #6B4B8A);
  color: #fff; box-shadow: 0 12px 26px rgba(58, 40, 90, .28);
}
.mh-hero-t { font-size: 18px; font-weight: 900; letter-spacing: .5px; }
.mh-hero-s { font-size: 12px; opacity: .78; margin-top: 6px; }
.mh-list { display: flex; flex-direction: column; gap: 10px; }
.mh-card {
  position: relative; border-radius: 16px; padding: 13px 14px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
}
.mh-card.hot { border-color: rgba(255, 176, 60, .55); }
.mh-head { display: flex; align-items: center; gap: 9px; }
.mh-ico {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 38px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFE9A8, #FFC93C); color: #7A3E00;
  font-size: 16px; font-weight: 900;
}
.mh-name { font-size: 15px; font-weight: 900; color: var(--ink); }
.mh-income { font-size: 12px; color: #C0392B; font-weight: 800; margin-top: 2px; }
.mh-hot {
  margin-left: auto; font-size: 10px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #FF7A3D, #FF3D6E);
  padding: 3px 8px; border-radius: 999px;
}
.mh-intro { font-size: 12px; color: #6B6152; line-height: 1.6; margin: 9px 0 10px; }
.mh-foot { display: flex; align-items: center; gap: 8px; }
.mh-contact {
  flex: 1; font-size: 12px; color: #4A4234; background: #FFF8E6;
  border-radius: 10px; padding: 8px 10px; word-break: break-all;
}
.mh-copy {
  border: none; border-radius: 10px; padding: 0 14px; height: 34px;
  background: linear-gradient(135deg, #FFE9A8, #FFC93C); color: #7A3E00;
  font-size: 12px; font-weight: 900;
}

/* ================= 兑换码 ================= */
.rd-card {
  margin: 16px 4px; padding: 22px 18px; border-radius: 20px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow); text-align: center;
}
.rd-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFE9A8, #FFC93C); color: #7A3E00;
}
.rd-icon .ic { width: 28px; height: 28px; fill: #7A3E00; }
.rd-title { font-size: 17px; font-weight: 900; color: var(--ink); }
.rd-sub { font-size: 12px; color: #8A7B5C; margin: 6px 0 16px; }
.rd-input {
  width: 100%; height: 48px; border-radius: 13px; text-align: center;
  border: 1.5px solid #EFE3C6; background: #FFFDF6; font-size: 17px;
  letter-spacing: 2px; font-weight: 800; color: var(--ink); margin-bottom: 14px;
  text-transform: uppercase;
}
.rd-input:focus { outline: none; border-color: #FFC93C; }
.rd-tip { font-size: 11px; color: #9A8F79; margin-top: 12px; }
.rd-tip.ok { color: #1FA463; }
.rd-tip.err { color: #C0392B; }

/* ================= 下注区（加拿大 / 百家乐 / 泰国）：窄屏不再挤成一团 ================= */
.amount-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}
.amount-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  flex: none;
}
.amount-presets .amt { min-width: 0; padding: 8px 0; text-align: center; }
.amount-input { width: 100%; flex: none; height: 42px; font-size: 16px; }

/* 首页（加拿大）下注金额栏：以前只有快投页才有，首页点盘口只能按 10 下 */
.home-amount {
  margin: 10px 0 4px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFDF6, #FFF9EA);
  border: 1px solid rgba(180, 140, 60, .18);
  box-shadow: 0 4px 14px rgba(140, 100, 30, .06);
}
.home-amount .ha-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.home-amount .ha-label { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.home-amount .ha-label .ic { width: 14px; height: 14px; color: #C88A16; }
.home-amount .ha-hint { font-size: 10.5px; color: #9A8F79; }
.home-amount .allin-btn.slim { margin-top: 8px; height: 36px; border-radius: 11px; }
.home-amount .allin-btn.slim i { display: none; }
.home-amount .allin-btn.slim span { font-size: 13px; }

/* 悬浮投注条会盖住底部盘口，多留一点空 */
.stage { padding-bottom: calc(var(--nav-h) + 96px); }

/* ============================================================
   麻将胡了3 · 红金仿真盘面（mh- 独立命名空间）
   ============================================================ */
.mh-view {
  --mh-gold: #F5C542;
  --mh-gold-2: #FFE9A0;
  --mh-red: #8E1B14;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(255, 170, 60, .18), transparent 60%),
    radial-gradient(80% 44% at 50% 96%, rgba(150, 18, 14, .6), transparent 72%),
    linear-gradient(180deg, #4A0D0C 0%, #2C0708 46%, #180405 100%);
  padding: 0 9px calc(var(--nav-h, 62px) + 6px);
  min-height: 100%;
  overflow: hidden;
}

/* 四角金纹 */
.mh-orn { position: absolute; width: 88px; height: 88px; pointer-events: none; opacity: .5; }
.mh-orn.t { top: 0; left: 0; border-top: 2px solid rgba(245, 197, 66, .5); border-left: 2px solid rgba(245, 197, 66, .5);
  border-radius: 0 0 46px 0; box-shadow: inset 0 0 18px rgba(245, 197, 66, .16); }
.mh-orn.b { bottom: 0; right: 0; border-bottom: 2px solid rgba(245, 197, 66, .42); border-right: 2px solid rgba(245, 197, 66, .42);
  border-radius: 46px 0 0 0; box-shadow: inset 0 0 18px rgba(245, 197, 66, .14); }

/* 顶栏 */
.mh-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 8px 2px 2px; }
.mh-back, .mh-info {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(245, 197, 66, .38);
  background: linear-gradient(180deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .22));
  color: #F0D9A0; display: flex; align-items: center; justify-content: center; padding: 0;
}
.mh-back .ic { width: 17px; height: 17px; transform: rotate(180deg); }
.mh-info .ic { width: 16px; height: 16px; }
.mh-info em { font-style: normal; font-size: 11.5px; font-weight: 900; letter-spacing: 1px; color: #FFE9A0; }
.mh-logo {
  display: flex; align-items: baseline; gap: 3px;
  font-size: 21px; font-weight: 900; letter-spacing: 1.5px;
  color: #FFE9A0;
  text-shadow: 0 2px 0 #7A2A05, 0 0 16px rgba(255, 190, 60, .6);
}
.mh-logo i {
  font-style: normal; font-size: 25px; color: #FFD54A;
  text-shadow: 0 0 14px rgba(255, 210, 70, .9), 0 2px 0 #7A2A05;
}

/* 2000 路 */
.mh-ways {
  text-align: center; margin: 1px 0 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255, 226, 160, .82);
}
.mh-ways span { font-size: 13px; color: #FFD54A; font-weight: 900; text-shadow: 0 0 10px rgba(255, 200, 60, .7); }

/* 乘数条 */
.mh-wayrow {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 8px; margin: 1px 0 5px;
}
.mh-mults {
  display: flex; justify-content: center; align-items: center; gap: 4px;
  padding: 3px 10px; margin-bottom: 6px;
  border-radius: 5px;
  background:
    linear-gradient(104deg, rgba(3, 46, 22, .82) 0%, rgba(20, 110, 56, .86) 34%, rgba(46, 156, 84, .9) 52%, rgba(14, 92, 46, .86) 70%, rgba(3, 40, 20, .84) 100%);
  border-top: 1px solid rgba(190, 255, 210, .34);
  border-bottom: 1px solid rgba(0, 30, 14, .6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: skewX(-9deg);
}
.mh-mults > span { transform: skewX(9deg); }
.mh-mults span {
  min-width: 38px; padding: 1px 6px; border-radius: 5px;
  font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums;
  color: rgba(255, 240, 200, .62);
  background: transparent; text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  transition: all .18s;
}
.mh-mults span.on {
  color: #4A2400;
  background: linear-gradient(180deg, #FFE9A0, #E9AE22);
  box-shadow: 0 0 12px rgba(255, 200, 60, .75);
  transform: scale(1.06);
}
.mh-mults[data-free="1"] span.on { background: linear-gradient(180deg, #C9F7D2, #25A64A); color: #06300F; box-shadow: 0 0 12px rgba(60, 220, 120, .7); }

/* 舞台 */
.mh-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex; flex-direction: column;
  border-radius: 12px;
  padding: 6px;
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(255, 150, 60, .12), transparent 60%),
    linear-gradient(180deg, #7C120F 0%, #5A0B0B 52%, #3B0607 100%);
  box-shadow: 0 0 0 2px rgba(245, 197, 66, .45), 0 0 0 4px rgba(90, 10, 10, .9), 0 10px 26px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.mh-view.free-on .mh-stage {
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(120, 255, 170, .18), transparent 62%),
    repeating-radial-gradient(circle at 50% 118%, rgba(255, 255, 255, .055) 0 9px, rgba(0, 0, 0, .04) 9px 20px),
    linear-gradient(180deg, #0F7A50 0%, #0A5A3C 52%, #053225 100%);
  box-shadow: 0 0 0 2px rgba(255, 220, 120, .55), 0 0 0 4px rgba(6, 70, 46, .9), 0 10px 26px rgba(0, 0, 0, .55), 0 0 32px rgba(40, 200, 120, .3);
}

/* 盘面 */
/* 盘面：每格高度固定成 --th（JS 按牌宽算），
   4 行的两侧列只是整体短一点、上下留白，牌本身绝不再被撑高/拉长。
   下落动画关在牌面内部，相邻的牌永远不会被盖住。 */
.mh-grid {
  display: flex; gap: 5px;
  --tw: 56px; --th: 66px;
  height: auto;
  align-items: center;
}
.mh-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.mh-col.rolling .mh-tile { filter: blur(.6px); }

.mh-tile {
  position: relative; flex: 0 0 auto; width: 100%; height: var(--th);
  border-radius: 9px;
  background: linear-gradient(175deg, #FFFEF9 0%, #FDF8EB 44%, #F4EAD3 76%, #E8DABD 100%);
  box-shadow:
    0 1px 0 #C6B086,
    0 2px 3px rgba(0, 0, 0, .3),
    inset 0 2px 0 rgba(255, 255, 255, .95),
    inset 0 -3px 6px rgba(170, 148, 106, .22);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transform-origin: center;
}
/* 牌面内容：下落/闪光都作用在它身上，牌框不动，不会压到上下邻居 */
.mh-in {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  will-change: transform, opacity;
}
.mh-tile::before {
  content: ''; position: absolute; inset: 5% 7%; border-radius: 7px;
  border: 1px solid rgba(190, 168, 126, .4);
  box-shadow: inset 0 0 7px rgba(198, 176, 138, .16);
  pointer-events: none;
}
/* 金符 */
.mh-tile.gold {
  background: linear-gradient(172deg, #FFF3C4 0%, #FFDF7C 42%, #F2B93A 78%, #D99A1C 100%);
  box-shadow:
    0 2px 0 #A97510,
    0 4px 8px rgba(0, 0, 0, .42),
    inset 0 2px 0 rgba(255, 255, 255, .85),
    inset 0 -3px 7px rgba(150, 96, 8, .3);
}
.mh-tile.gold::before { border-color: rgba(140, 92, 6, .38); }
.mh-tile.wild::after {
  content: ''; position: absolute; inset: 0; border-radius: 9px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .8), transparent 62%);
  animation: mhWildPulse 1.1s ease-in-out infinite;
}
@keyframes mhWildPulse { 0%,100% { opacity: .18; } 50% { opacity: .62; } }

/* 中奖高亮 */
.mh-tile.win {
  box-shadow:
    0 0 0 2px #FFE9A0,
    0 0 16px 3px rgba(255, 205, 70, .85),
    0 4px 8px rgba(0, 0, 0, .4),
    inset 0 2px 0 rgba(255, 255, 255, .9);
  animation: mhWinPop .42s ease;
}
@keyframes mhWinPop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }
/* ===== 消除/下落动画 v4(逐格错峰) ===== */
/* 第一步:命中闪光(牌还在,爆亮+抖动,给玩家"选中了"的反馈) */
.mh-tile.hit {
  z-index: 4;
  animation: mhHitFlash .5s ease both;
  animation-delay: var(--hd, 0ms);
}
@keyframes mhHitFlash {
  0%   { transform: scale(1); filter: brightness(1); }
  18%  { transform: scale(1.06); filter: brightness(2.2) saturate(1.4); }
  38%  { transform: scale(1.02); filter: brightness(1.5); }
  62%  { transform: scale(1.05); filter: brightness(1.95); }
  100% { transform: scale(1.01); filter: brightness(1.4); }
}
/* 第二步:炸开消失(白闪 → 放大 → 收缩成点,并甩出冲击环) */
.mh-tile.boom {
  z-index: 5;
  animation: mhBoom .3s cubic-bezier(.34, .01, .64, 1) forwards;
  animation-delay: var(--hd, 0ms);
}
@keyframes mhBoom {
  0%   { transform: scale(1.01); opacity: 1; filter: brightness(2.3) saturate(1.6); }
  26%  { transform: scale(1.1); opacity: 1; filter: brightness(3.2); }
  52%  { transform: scale(.86) rotate(6deg); opacity: .92; filter: brightness(2.6); }
  100% { transform: scale(.12) rotate(16deg); opacity: 0; filter: brightness(3.4); }
}
.mh-tile.boom::after {
  content: '';
  position: absolute; left: 50%; top: 50%; width: 130%; height: 130%;
  margin: -65% 0 0 -65%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 249, 214, .95) 0%, rgba(255, 206, 88, .8) 34%, rgba(255, 158, 40, 0) 70%);
  pointer-events: none;
  animation: mhBurst .3s ease-out forwards;
}
@keyframes mhBurst {
  0%   { transform: scale(.25); opacity: 1; }
  55%  { transform: scale(1.05); opacity: .75; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* 第三步:新牌从上方落进来,逐列逐格错峰,落地带一点回弹
   ⚠️ 类名必须带 mh- 前缀：以前叫 .drop，撞上了底部导航那颗浮动元素的全局 .drop，
   牌一落下就被强制成 position:absolute;top:6px;width:52px，这就是"掉下来的牌上下偏移"的根因。 */
.mh-tile.mh-drop .mh-in {
  animation: mhDrop .46s cubic-bezier(.22, .86, .34, 1) both;
  animation-delay: calc(var(--dc, 0) * 26ms + var(--dr, 0) * 38ms);
}
@keyframes mhDrop {
  0%   { transform: translateY(-105%) scale(.94); opacity: 0; }
  60%  { transform: translateY(6%) scale(1.02); opacity: 1; }
  80%  { transform: translateY(-2%) scale(.995); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
/* 滚轮:整列做纵向位移,做出"老虎机在转"的连续感(不随 innerHTML 重置) */
.mh-col.rolling { animation: mhColRoll .16s linear infinite; will-change: transform; }
@keyframes mhColRoll {
  0% { transform: translateY(-4%); }
  100% { transform: translateY(4%); }
}
.mh-col.rolling .mh-tile { filter: blur(.7px) brightness(1.12); }
/* 金符转百搭的强调 */
.mh-tile.wild-in { animation: mhWildIn .42s ease both; }
@keyframes mhWildIn {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); filter: brightness(1.9); }
  100% { transform: scale(1); }
}

/* ---- 牌面 ---- */
.mh-hz {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 900; line-height: 1;
  font-size: calc(var(--tw) * .6);
  letter-spacing: 0;
}
.mh-tile { --tw: inherit; }
.mh-hz.zh { color: #B3160F; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.mh-hz.fa { color: #0C7A46; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.mh-hz.bw { display: flex; flex-direction: column; align-items: center; gap: 0; }
.mh-hz.bw { color: #1B4C93; font-size: calc(var(--tw) * .42); }
.mh-hz.bw em { font-style: normal; color: #B3160F; font-size: calc(var(--tw) * .4); margin-top: calc(var(--tw) * .02); }
.mh-hz.hu {
  color: #FFF3C0;
  font-size: calc(var(--tw) * .62);
  text-shadow: 0 0 10px rgba(255, 190, 60, .95), 0 0 22px rgba(255, 140, 30, .7), 0 2px 0 #8A3A05;
}

/* 白板 */
.mh-blank {
  width: 58%; height: 62%; border-radius: 4px;
  border: calc(var(--tw) * .055) solid #1B4C93;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
  background: linear-gradient(180deg, #FFFDF4, #F3EAD4);
}

/* 筒 */
.mh-pips { position: absolute; inset: 14%; }
.mh-pips i {
  position: absolute; display: block;
  width: 33%; height: 33%; border-radius: 50%;
  background: radial-gradient(circle at 33% 28%, #86D8A6 0%, #12874E 52%, #06522F 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55);
}
.mh-pips i:nth-child(2) { background: radial-gradient(circle at 33% 28%, #9EC0FF 0%, #1B4C93 52%, #0B2A58 100%); }
.mh-pips i:nth-child(3) { background: radial-gradient(circle at 33% 28%, #FFA79A 0%, #B3160F 52%, #6B0A06 100%); }
.mh-pips i:nth-child(4) { background: radial-gradient(circle at 33% 28%, #E6A9F2 0%, #8326A0 52%, #4C105E 100%); }
.mh-pips.p2 i:nth-child(1) { left: 33%; top: 2%; }
.mh-pips.p2 i:nth-child(2) { left: 33%; bottom: 2%; }
.mh-pips.p3 i:nth-child(1) { left: 4%; top: 5%; }
.mh-pips.p3 i:nth-child(2) { left: 33%; top: 33%; }
.mh-pips.p3 i:nth-child(3) { right: 4%; bottom: 5%; }
.mh-pips.p4 i:nth-child(1) { left: 6%; top: 6%; }
.mh-pips.p4 i:nth-child(2) { right: 6%; top: 6%; }
.mh-pips.p4 i:nth-child(3) { left: 6%; bottom: 6%; }
.mh-pips.p4 i:nth-child(4) { right: 6%; bottom: 6%; }

/* 条 */
.mh-sticks { position: absolute; inset: 16% 18%; display: flex; align-items: center; justify-content: center; gap: 10%; }
.mh-sticks i {
  display: block; width: 26%; height: 88%; border-radius: 999px;
  background: linear-gradient(90deg, #0B6B3E 0%, #24B36E 50%, #0A5C36 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4);
}
.mh-sticks i:nth-child(2) { background: linear-gradient(90deg, #8E1B14 0%, #D8452F 50%, #74100B 100%); }
.mh-sticks.st3 i:nth-child(1) { height: 70%; }
.mh-sticks.st3 i:nth-child(3) { height: 70%; }
.mh-sticks.st3 i:nth-child(2) { height: 96%; }

/* 元宝（金符） */
.mh-ingot { width: 68%; height: 68%; display: flex; align-items: center; justify-content: center; }
.mh-ingot svg { width: 100%; height: 100%; }

/* 百搭 */
.mh-wild { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.mh-wild i { font-style: normal; font-size: calc(var(--tw) * .3); font-weight: 900; color: #8A2A04; line-height: 1; letter-spacing: -.5px;
  writing-mode: vertical-rl; text-orientation: upright; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }

/* 免费旋转计数（对标参考视频：盘面下方超大字，金色渐变 + 红描边 + 立体投影） */
.mh-freenum {
  margin-top: 4px; padding: 2px 0 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; border-radius: 0; background: none; border: none; box-shadow: none;
}
.mh-freenum-t,
.mh-freenum-m {
  font-weight: 900; line-height: 1.12; text-align: center;
  letter-spacing: clamp(2px, 1.2vw, 7px);
  background: linear-gradient(180deg, #FFF8CE 0%, #FFDB57 38%, #F5A61C 66%, #FFF2B0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 1.1px #8E1A06;
  filter: drop-shadow(0 2px 0 rgba(120, 20, 0, .55)) drop-shadow(0 0 14px rgba(255, 180, 40, .55));
}
.mh-freenum-t { font-size: clamp(20px, 6.4vw, 30px); }
.mh-freenum-m { font-size: clamp(16px, 5vw, 23px); letter-spacing: clamp(1px, .8vw, 4px); }
.mh-freenum b {
  font-size: clamp(24px, 8vw, 36px); font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 1.3px #8E1A06;
}

.mh-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: 12px; }
.mh-flash.on { animation: mhFlash .5s ease; }
@keyframes mhFlash {
  0% { opacity: .9; background: radial-gradient(circle at 50% 50%, rgba(255, 240, 180, .95), rgba(255, 180, 60, .3) 45%, transparent 70%); }
  100% { opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 240, 180, 0), transparent 70%); }
}

/* 共赢弹层 */
.mh-bigwin {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(60, 8, 8, .8), rgba(20, 3, 3, .92));
  animation: mhBigPop .5s ease;
}
.mh-bigwin i { font-style: normal; font-size: 13px; letter-spacing: 4px; color: #FFE9A0; }
.mh-bigwin b {
  font-size: 34px; font-weight: 900; color: #FFD54A; margin-top: 2px;
  text-shadow: 0 0 22px rgba(255, 190, 60, .9);
  font-variant-numeric: tabular-nums;
}
@keyframes mhBigPop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.mh-bigwin button {
  margin-top: 8px; padding: 8px 30px; border-radius: 999px; border: none;
  background: linear-gradient(180deg, #FFE9A0, #D89B18);
  color: #4A2400; font-size: 13.5px; font-weight: 900; letter-spacing: 3px;
  box-shadow: 0 6px 16px rgba(200, 140, 20, .6), inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* 横幅 */
.mh-banner {
  margin-top: 6px; padding: 6px 12px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .3));
  border: 1px solid rgba(245, 197, 66, .4);
  color: #FFE9A0; font-size: 12px; font-weight: 800; text-align: center;
  letter-spacing: .5px;
}
.mh-banner.pop { animation: mhBannerPop .45s ease; }
@keyframes mhBannerPop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* 赢得条（盘下酒红横条） */
.mh-winribbon {
  margin-top: 7px; padding: 6px 14px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #7E0E08, #4E0703);
  border: 1px solid rgba(245, 197, 66, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 5px 14px rgba(0, 0, 0, .45);
}
.mh-winribbon span { font-size: 12px; font-weight: 800; letter-spacing: 3px; color: #FFE9A0; }
.mh-winribbon b {
  font-size: 16px; font-weight: 900; color: #FFF6DA;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(255, 200, 70, .6);
}
.mh-winribbon.up { animation: mhRibbonUp .5s ease; }
@keyframes mhRibbonUp { 0% { transform: scale(1); } 45% { transform: scale(1.05); filter: brightness(1.5); } 100% { transform: scale(1); } }

/* 免费旋转金色横幅（倍数条正下方，和参考视频一致） */
.mh-freeribbon {
  margin: 6px 0 6px; padding: 7px 10px; border-radius: 8px; text-align: center;
  font-size: 12.5px; font-weight: 900; letter-spacing: 1px; color: #4A2400;
  background: linear-gradient(180deg, #FFF0B8, #E7AE24 62%, #C98A0E);
  box-shadow: 0 5px 16px rgba(220, 160, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .8);
  animation: mhFreeGlow 1.8s ease-in-out infinite;
}
@keyframes mhFreeGlow { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.1); } }

/* 三个数值框 */
.mh-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 7px; }
.mh-stat {
  padding: 4px 6px; border-radius: 8px; text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .3));
  border: 1px solid rgba(245, 197, 66, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  color: inherit; padding: 4px 6px;
}
.mh-stat i { display: block; font-style: normal; font-size: 9.5px; color: rgba(255, 226, 160, .68); letter-spacing: 2px; }
.mh-stat b { display: block; font-size: 14px; font-weight: 900; color: #FFE9A0; font-variant-numeric: tabular-nums; margin-top: 1px; }
.mh-stat.win b { color: #FFD54A; text-shadow: 0 0 10px rgba(255, 200, 60, .7); }
.mh-stat.bet { border-color: rgba(245, 197, 66, .5); }
.mh-stat.bet:active { background: rgba(245, 197, 66, .18); }

/* 控制区 */
.mh-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 9px; }
.mh-side {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(245, 197, 66, .4);
  background: linear-gradient(180deg, #3A1310, #1D0706);
  color: #F0D9A0; display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 10px rgba(0, 0, 0, .45);
  flex: 0 0 auto;
}
.mh-side .ic { width: 16px; height: 16px; }
.mh-side em { font-style: normal; font-size: 8px; color: rgba(240, 217, 160, .72); margin-top: 1px; }
.mh-side.on { background: linear-gradient(180deg, #7A3F08, #452004); border-color: #F5C542; box-shadow: 0 0 14px rgba(245, 197, 66, .6); }
.mh-step {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid rgba(245, 197, 66, .42);
  background: linear-gradient(180deg, #3A1310, #1D0706);
  color: #FFE9A0; font-size: 24px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.mh-step[disabled] { opacity: .4; }
.mh-spin {
  flex: 1 1 auto; max-width: 152px; height: 62px;
  border-radius: 999px; border: 2px solid #FFE9A0; padding: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .6), transparent 58%),
    linear-gradient(180deg, #6FE07C 0%, #27AD3C 46%, #0C6B1F 100%);
  box-shadow: 0 8px 22px rgba(20, 160, 60, .5), inset 0 -4px 0 rgba(0, 60, 20, .45), inset 0 3px 0 rgba(255, 255, 255, .4);
  color: #fff; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.mh-spin:active { transform: scale(.97); }
.mh-spin[disabled] { filter: grayscale(.45) brightness(.82); }
.mh-spin-ic .ic { width: 21px; height: 21px; }
.mh-spin-txt { font-size: 15px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 2px 3px rgba(0, 60, 20, .6); }
.mh-spin.busy .mh-spin-ic { animation: mhSpinRot .55s linear infinite; }
.mh-spin.busy .mh-spin-txt { opacity: .6; }
@keyframes mhSpinRot { to { transform: rotate(360deg); } }

.mh-view.free-on .mh-spin {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .7), transparent 60%),
    linear-gradient(180deg, #FFE9A0 0%, #F0B62A 48%, #B57A08 100%);
  border-color: #FFF6DA;
  box-shadow: 0 8px 22px rgba(220, 160, 20, .55), inset 0 -4px 0 rgba(120, 70, 0, .45), inset 0 3px 0 rgba(255, 255, 255, .55);
  color: #4A2400;
}
.mh-view.free-on .mh-spin-txt { text-shadow: 0 1px 0 rgba(255, 255, 255, .5); font-size: 13px; letter-spacing: 1px; }

.mh-view.free-on .mh-winribbon,
.mh-view.free-on .mh-banner { display: none; }
.mh-view.free-on .mh-freenum-t { font-size: 10px; }

/* 麻将页隐藏全局落金币特效，避免压住乘数条/牌面 */
body.mj-open .coin-layer { display: none !important; }

@media (max-height: 720px) {
  .mh-logo { font-size: 18px; }
  .mh-logo i { font-size: 21px; }
  .mh-ways { font-size: 10px; margin-bottom: 3px; }
  .mh-mults { padding: 3px; margin-bottom: 4px; }
  .mh-mults span { font-size: 11.5px; min-width: 36px; padding: 1px 6px; }
  .mh-ctrl { margin-top: 6px; }
  .mh-spin { height: 54px; }
  .mh-step { width: 40px; height: 40px; font-size: 21px; }
  .mh-side { width: 40px; height: 40px; }
  .mh-freenum b { font-size: 25px; }
}

/* ===================== 麻将胡了3 · 胡计数 / 免费旋转入场（1:1 参考） ===================== */
.mh-stage { position: relative; }

/* 盘面右上角「胡」收集计数 */
.mh-huc {
  position: static; z-index: 3;
  display: flex; align-items: baseline; gap: 2px;
  padding: 1px 8px 1px 7px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(120, 12, 8, .9), rgba(58, 5, 3, .92));
  border: 1px solid rgba(255, 226, 160, .55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .14);
  pointer-events: none;
}
.mh-huc i { font-style: normal; font-size: 11px; font-weight: 900; color: #FF6B5B; letter-spacing: 1px; }
.mh-huc b { font-size: 13px; font-weight: 900; color: #FFE9A0; font-variant-numeric: tabular-nums; }
.mh-huc em { font-style: normal; font-size: 10px; font-weight: 800; color: rgba(255, 226, 160, .6); }
.mh-huc.pop { animation: mhHuPop .55s cubic-bezier(.2, 1.6, .4, 1); }
.mh-huc.full { background: linear-gradient(180deg, #C9A21A, #8A5A04); border-color: #FFF3C0; }
@keyframes mhHuPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); filter: brightness(1.7); }
  100% { transform: scale(1); }
}

/* 免费旋转入场层 */
.mh-fsintro {
  position: absolute; inset: 0; z-index: 7; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(90, 8, 6, .55), rgba(16, 2, 2, .92));
  animation: fsiIn .3s ease;
  border-radius: 12px;
}
@keyframes fsiIn { 0% { opacity: 0; } 100% { opacity: 1; } }

/* 光芒：两层反向转，比原来单层死转更有层次 */
.fsi-rays {
  position: absolute; width: 210%; height: 210%; left: -55%; top: -55%;
  background: conic-gradient(from 0deg,
    rgba(255, 214, 90, .40) 0 5deg, transparent 5deg 17deg,
    rgba(255, 240, 170, .22) 17deg 21deg, transparent 21deg 36deg);
  animation: fsiSpin 7s linear infinite;
}
.fsi-rays::after {
  content: ''; position: absolute; inset: 22%;
  background: conic-gradient(from 90deg, transparent 0 30deg, rgba(255, 255, 255, .22) 30deg 34deg, transparent 34deg 60deg);
  animation: fsiSpin 4.5s linear infinite reverse;
}
@keyframes fsiSpin { to { transform: rotate(360deg); } }
/* 冲击环：入场时往外冲一圈 */
.fsi-box::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 120%; height: 120%;
  margin: -60% 0 0 -60%; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255, 226, 160, .85);
  animation: fsiRing .9s ease-out .06s both;
}
@keyframes fsiRing {
  0%   { transform: scale(.35); opacity: .95; }
  70%  { transform: scale(1.15); opacity: .28; }
  100% { transform: scale(1.5); opacity: 0; }
}
.fsi-box {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 14px 22px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(150, 18, 12, .97), rgba(66, 5, 4, .97));
  border: 2px solid rgba(255, 226, 160, .9);
  box-shadow: 0 0 40px rgba(255, 190, 60, .6), inset 0 0 22px rgba(255, 190, 60, .24);
  animation: fsiPop .62s cubic-bezier(.18, 1.6, .38, 1);
  overflow: hidden;
}
@keyframes fsiPop {
  0%   { transform: scale(.42) rotate(-7deg); opacity: 0; }
  55%  { transform: scale(1.12) rotate(2deg); opacity: 1; }
  78%  { transform: scale(.97) rotate(-.6deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
/* 高光扫过 */
.fsi-box::after {
  content: ''; position: absolute; top: -40%; bottom: -40%; width: 44%;
  left: -60%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: fsiShine 1.1s ease-in-out .18s both;
  pointer-events: none;
}
@keyframes fsiShine { 0% { left: -60%; } 100% { left: 120%; } }
.fsi-box i {
  font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: 4px;
  color: #FFD54A; text-shadow: 0 0 10px rgba(255, 190, 60, .9);
  animation: fsiUp .45s ease both;
}
.fsi-box b {
  font-size: 26px; font-weight: 900; letter-spacing: 3px; color: #FFF6DA;
  text-shadow: 0 0 16px rgba(255, 190, 60, .95), 0 2px 0 rgba(120, 60, 0, .6);
  animation: fsiUp .45s ease .07s both;
}
@keyframes fsiUp {
  0%   { transform: translateY(9px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.fsi-n { font-size: 11.5px; font-weight: 800; color: #FFE9A0; letter-spacing: 1px; animation: fsiUp .45s ease .12s both; }
.fsi-n em {
  font-style: normal; font-size: 20px; font-weight: 900; color: #FFD54A;
  text-shadow: 0 0 14px rgba(255, 190, 60, .9);
  display: inline-block;
  animation: fsiCount .5s cubic-bezier(.2, 1.7, .4, 1) .2s both;
}
@keyframes fsiCount {
  0%   { transform: scale(.3); opacity: 0; }
  60%  { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(1); }
}
.fsi-l { display: flex; gap: 5px; margin-top: 4px; }
.fsi-l u {
  text-decoration: none; font-size: 11px; font-weight: 900; padding: 1px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); color: #C9F7D2; border: 1px solid rgba(120, 240, 160, .45);
  animation: fsiChip .4s cubic-bezier(.2, 1.6, .4, 1) both;
}
.fsi-l u:nth-child(1) { animation-delay: .24s; }
.fsi-l u:nth-child(2) { animation-delay: .31s; }
.fsi-l u:nth-child(3) { animation-delay: .38s; }
.fsi-l u:nth-child(4) { animation-delay: .45s; }
@keyframes fsiChip {
  0%   { transform: translateY(6px) scale(.6); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-height: 700px) {
  .fsi-box b { font-size: 22px; }
  .fsi-box { padding: 10px 16px; }
}

#view-lot, #view-sport { padding-bottom: 100px; }
.lt-tabs { display: flex; gap: 8px; padding: 10px 14px 0; }
.lt-tab {
  flex: 1; height: 38px; border-radius: 12px; font-size: 13px; font-weight: 700;
  border: 1px solid rgba(228, 184, 92, .2); background: rgba(255, 255, 255, .04); color: var(--ink-2);
}
.lt-tab.active {
  color: #2A1E08; border-color: transparent;
  background: linear-gradient(135deg, #FFE1A0, #E4B85C 65%, #C79437);
  box-shadow: 0 6px 16px rgba(228, 184, 92, .28);
}
.lt-head {
  margin: 12px 14px 0; padding: 13px 14px; border-radius: 15px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(150deg, rgba(44, 36, 24, .96), rgba(20, 17, 12, .96));
  border: 1px solid rgba(228, 184, 92, .22);
}
.lt-period { font-size: 13px; color: var(--ink-2); }
.lt-period b { color: var(--gold-2); font-size: 16px; letter-spacing: .3px; }
.lt-drawline { margin-top: 4px; font-size: 11px; color: var(--ink-3); }
.lt-head-r { text-align: right; }
.lt-cd { font-size: 22px; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.lt-cd.warn { color: #FF9F6B; }
.lt-state { margin-top: 2px; font-size: 11px; color: #7FBF9B; }
.lt-state.seal { color: #FFB4A2; }

.lt-last { margin: 10px 14px 0; padding: 12px 14px; border-radius: 15px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(228, 184, 92, .14); }
.lt-last-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-bottom: 9px; }
.lt-last-head em { font-style: normal; color: var(--ink-2); }
.lt-balls { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-ball {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; color: #FFF;
  background: radial-gradient(circle at 35% 28%, #FF7A7A, #C62828 70%);
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .28);
}
.lt-ball.blue { background: radial-gradient(circle at 35% 28%, #7FA8FF, #1E4FBF 70%); }
.lt-ball.gold { background: radial-gradient(circle at 35% 28%, #FFE1A0, #B8862F 70%); color: #2A1E08; }

.lt-plays { display: flex; gap: 8px; padding: 14px 14px 0; }
.lt-play {
  flex: 1; padding: 8px 6px; border-radius: 12px; text-align: center;
  border: 1px solid rgba(228, 184, 92, .18); background: rgba(255, 255, 255, .04); color: var(--ink-2);
  font-size: 12.5px; font-weight: 700;
}
.lt-play em { display: block; font-style: normal; font-size: 10px; color: var(--gold); margin-top: 2px; }
.lt-play.active { color: #2A1E08; border-color: transparent; background: linear-gradient(135deg, #FFE1A0, #E4B85C); }
.lt-play.active em { color: #6B4B12; }
.lt-tip { padding: 10px 16px 0; font-size: 11px; color: var(--ink-3); }

.lt-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 10px 14px 0; }
.lt-num {
  aspect-ratio: 1 / 1; border-radius: 50%; border: 1px solid rgba(228, 184, 92, .2);
  background: linear-gradient(180deg, rgba(46, 40, 28, .96), rgba(22, 19, 13, .96));
  color: var(--ink-2); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.lt-num.active {
  color: #2A1E08; border-color: transparent;
  background: radial-gradient(circle at 35% 28%, #FFE9B8, #E4B85C 62%, #B8862F);
  box-shadow: 0 0 0 2px rgba(255, 225, 160, .28), 0 6px 14px rgba(228, 184, 92, .3);
  transform: translateY(-2px);
}

.lt-slip {
  position: sticky; bottom: calc(var(--nav-h) + 4px); z-index: 20;
  margin: 14px; padding: 12px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(38, 32, 22, .98), rgba(16, 14, 11, .98));
  border: 1px solid rgba(228, 184, 92, .26);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
}
.lt-slip-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 9px; }
.lt-slip-pick b, .lt-slip-odds b { color: var(--gold-2); font-size: 14px; }
.lt-chips { display: flex; gap: 8px; margin-bottom: 9px; }
.lt-chip {
  flex: 1; height: 32px; border-radius: 9px; font-size: 12.5px; font-weight: 700;
  border: 1px solid rgba(228, 184, 92, .2); background: rgba(255, 255, 255, .04); color: var(--ink-2);
}
.lt-chip.active { color: #2A1E08; border-color: transparent; background: linear-gradient(135deg, #FFE1A0, #E4B85C); }
.lt-submit-row { display: flex; gap: 9px; }
.lt-amt-box {
  flex: 1; height: 42px; border-radius: 10px; display: flex; align-items: center; gap: 5px; padding: 0 12px;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(228, 184, 92, .2);
}
.lt-amt-box i { font-style: normal; color: var(--gold); font-size: 13px; }
.lt-amt-box input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--gold-2);
  font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.lt-submit {
  width: 132px; height: 42px; border: 0; border-radius: 10px; font-size: 14px; font-weight: 800; color: #2A1E08;
  background: linear-gradient(135deg, #FFE1A0, #E4B85C 62%, #C79437);
  box-shadow: 0 8px 20px rgba(228, 184, 92, .3);
}
.lt-submit:disabled { opacity: .55; box-shadow: none; }
.lt-mine, .lt-hist { margin: 0 14px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(228, 184, 92, .14); }
.lt-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(228, 184, 92, .08);
  font-size: 12px; color: var(--ink-2);
}
.lt-row:last-child { border-bottom: 0; }
.lt-row .r-main { flex: 1; min-width: 0; }
.lt-row .r-t { font-weight: 700; color: var(--ink); }
.lt-row .r-s { margin-top: 2px; font-size: 10.5px; color: var(--ink-3); }
.lt-row .r-amt { font-weight: 800; color: var(--gold-2); }
.lt-row .r-win { color: #6EE7A8; font-weight: 800; }
.lt-row .r-lose { color: #8E8064; }
.lt-empty { padding: 18px; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ---------------- 体育页 ---------------- */
.sp-sum { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px; }
.sp-live { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.sp-live i {
  width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; display: inline-block;
  box-shadow: 0 0 8px #4ADE80; animation: spPulse 1.4s infinite;
}
@keyframes spPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.sp-live b { color: #6EE7A8; }
.sp-note { font-size: 11px; color: var(--ink-3); }
.sp-league-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 14px 8px; }
.sp-league-tabs::-webkit-scrollbar { display: none; }
.sp-lt {
  flex: none; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(228, 184, 92, .18); background: rgba(255, 255, 255, .04); color: var(--ink-2);
}
.sp-lt.active { color: #2A1E08; border-color: transparent; background: linear-gradient(135deg, #FFE1A0, #E4B85C); }
.sp-list { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.sp-match {
  border-radius: 15px; padding: 11px 12px;
  background: linear-gradient(160deg, rgba(32, 28, 21, .96), rgba(18, 16, 12, .96));
  border: 1px solid rgba(228, 184, 92, .16);
}
.sp-m-head { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); }
.sp-m-head em { font-style: normal; }
.sp-m-state { padding: 1px 7px; border-radius: 6px; font-size: 9.5px; font-weight: 700; }
.sp-m-state.in { color: #6EE7A8; background: rgba(74, 222, 128, .14); }
.sp-m-state.pre { color: var(--gold-2); background: rgba(228, 184, 92, .14); }
.sp-m-state.post { color: #9AA0A6; background: rgba(255, 255, 255, .07); }
.sp-m-body { display: flex; align-items: center; gap: 8px; margin: 9px 0 10px; }
.sp-team { flex: 1; font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-team.away { text-align: right; }
.sp-score {
  flex: none; min-width: 62px; text-align: center; font-size: 17px; font-weight: 800; color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}
.sp-score small { display: block; font-size: 9.5px; font-weight: 600; color: var(--ink-3); }
.sp-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.sp-odd {
  padding: 7px 4px; border-radius: 10px; text-align: center;
  border: 1px solid rgba(228, 184, 92, .18); background: rgba(255, 255, 255, .04); color: var(--ink-2);
}
.sp-odd span { display: block; font-size: 10px; color: var(--ink-3); }
.sp-odd b { display: block; margin-top: 2px; font-size: 13px; color: var(--gold-2); }
.sp-odd.active { border-color: rgba(255, 225, 160, .8); background: rgba(228, 184, 92, .18); }
.sp-odd:disabled { opacity: .45; }
.sp-ou { margin-top: 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sp-mine { margin: 0 14px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(228, 184, 92, .14); }

/* ==========================================================
   顶部广告位：两张图定时轮播
   ========================================================== */
.lx-hero-slides { position: relative; width: 100%; padding-top: 53.7037%; }
.lx-hero-slides .lx-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  opacity: 0; transition: opacity .7s ease;
}
.lx-hero-slides .lx-hero-img.on { opacity: 1; }
.lx-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 5px;
  z-index: 3; line-height: 0;
}
.lx-hero-dots i {
  width: 13px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .45);
  transition: width .3s ease, background .3s ease;
}
.lx-hero-dots i.on { width: 20px; background: #FFD86B; }

/* ==========================================================
   首页 VIP 卡
   ========================================================== */
.lx-vipcard {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  border: none; margin-bottom: 12px;
  padding: 12px 13px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3A2508 0%, #5A3A10 52%, #7A5218 100%);
  box-shadow: 0 10px 22px rgba(90, 58, 16, .22);
  color: #FFE9BE;
  font-family: inherit;
}
.lx-vipcard:active { transform: scale(.99); }
.lx-vip-ic { width: 34px; height: 34px; flex: 0 0 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 214, 120, .16); }
.lx-vip-ic .ic { width: 19px; height: 19px; color: #FFD86B; }
.lx-vip-body { flex: 1 1 auto; min-width: 0; display: block; }
.lx-vip-t { display: flex; align-items: baseline; gap: 7px; }
.lx-vip-t b { font-size: 15px; font-weight: 900; color: #FFD86B; letter-spacing: .3px; }
.lx-vip-t em { font-style: normal; font-size: 11px; opacity: .78; }
.lx-vip-bar {
  display: block; height: 5px; border-radius: 3px;
  background: rgba(255, 255, 255, .16);
  margin: 6px 0 5px; overflow: hidden;
}
.lx-vip-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #FFC93C, #FFE9A8);
  transition: width .5s ease;
}
.lx-vip-sub { display: block; font-size: 11px; line-height: 1.5; opacity: .74; }
.lx-vip-sub b { color: #FFD86B; font-weight: 800; }
.lx-vip-go { flex: 0 0 auto; display: flex; align-items: center; gap: 1px; font-size: 11.5px; font-weight: 800; color: #FFD86B; }
.lx-vip-go .ic { width: 12px; height: 12px; transform: rotate(180deg); }

/* ==========================================================
   VIP 中心
   ========================================================== */
#view-vip { padding-bottom: calc(var(--nav-h) + 26px); }
.vip-card {
  background: linear-gradient(150deg, #3A2508 0%, #5A3A10 58%, #7A5218 100%);
  border-radius: 20px;
  padding: 16px 15px 14px;
  color: #FFE9BE;
  box-shadow: 0 12px 26px rgba(90, 58, 16, .24);
  margin-bottom: 14px;
}
.vip-card-top { display: flex; align-items: center; gap: 12px; }
.vip-badge {
  flex: 0 0 auto; display: flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 214, 120, .16);
  border: 1px solid rgba(255, 214, 120, .38);
}
.vip-badge .ic { width: 15px; height: 15px; color: #FFD86B; }
.vip-badge b { font-size: 14px; font-weight: 900; color: #FFD86B; letter-spacing: .4px; }
.vip-total { flex: 1 1 auto; display: flex; gap: 8px; }
.vip-total > div {
  flex: 1 1 0; min-width: 0;
  background: rgba(0, 0, 0, .18);
  border-radius: 12px; padding: 7px 9px;
}
.vip-total span { display: block; font-size: 10.5px; opacity: .7; }
.vip-total b { display: block; font-size: 14px; font-weight: 900; color: #FFF2D4; margin-top: 2px; }
.vip-need { font-size: 11.5px; line-height: 1.6; opacity: .82; margin: 12px 0 10px; }
.vip-need b { color: #FFD86B; font-weight: 800; }
.vip-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vip-bar-l { flex: 0 0 26px; font-size: 11px; opacity: .72; }
.vip-bar { flex: 1 1 auto; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.vip-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #FFC93C, #FFE9A8); transition: width .5s ease; }
.vip-bar-row em { flex: 0 0 auto; font-style: normal; font-size: 10.5px; opacity: .7; min-width: 76px; text-align: right; }
.vip-claim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vip-btn {
  border: none; border-radius: 12px; padding: 10px 6px;
  font-size: 12.5px; font-weight: 900; font-family: inherit;
  color: #4A2A05;
  background: linear-gradient(135deg, #FFD86B, #FFC93C);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}
.vip-btn.ghost { background: rgba(255, 255, 255, .14); color: #FFE9BE; box-shadow: none; }
.vip-btn[disabled] { opacity: .5; }
.vip-btn:active:not([disabled]) { transform: scale(.98); }
.vip-tip { font-size: 10.5px; opacity: .55; margin-top: 9px; line-height: 1.5; }
.vip-tiers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.vip-tier {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.vip-tier.cur { border-color: rgba(232, 163, 23, .62); box-shadow: 0 6px 16px rgba(232, 163, 23, .22); }
.vip-tier.pass:not(.cur) { opacity: .82; }
.vt-l { flex: 0 0 60px; }
.vt-l b { display: block; font-size: 13px; font-weight: 900; color: var(--ink); }
.vt-l span { font-size: 10px; color: var(--ink-3); }
.vip-tier.cur .vt-l b { color: var(--gold); }
.vt-m { flex: 1 1 auto; display: flex; gap: 10px; font-size: 11px; color: var(--ink-2); }
.vt-r { flex: 0 0 auto; text-align: right; }
.vt-r b { display: block; font-size: 11.5px; font-weight: 800; color: var(--red); }
.vt-r span { font-size: 10px; color: var(--ink-3); }
.vip-logs { display: flex; flex-direction: column; gap: 7px; }
.vip-log {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 12px;
  font-size: 12px; color: var(--ink-2);
}
.vip-log span { flex: 1 1 auto; }
.vip-log b { color: var(--green); font-weight: 900; }
.vip-log em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }

/* ==========================================================
   官方彩 / 体育：回到浅色主题（只调配色，功能不动）
   ========================================================== */
.lt-tab, .lt-play, .lt-chip, .sp-lt, .sp-odd {
  background: rgba(255, 255, 255, .9);
  border-color: var(--line);
  color: var(--ink-2);
}
.lt-head, .lt-last, .lt-slip, .lt-mine, .lt-hist, .sp-match, .sp-mine {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.lt-period, .lt-last-head, .lt-slip-top, .sp-live, .sp-note, .sp-m-head { color: var(--ink-2); }
.lt-period b, .lt-cd, .lt-slip-pick b, .lt-slip-odds b, .lt-row .r-amt,
.sp-score, .sp-odd b, .sp-live b { color: #B4761A; }
.lt-cd.warn { color: var(--red); }
.lt-state { color: var(--green); }
.lt-state.seal { color: var(--red); }
.lt-num {
  background: linear-gradient(180deg, #FFFFFF, #FFF6E2);
  border-color: var(--line);
  color: var(--ink-2);
}
.lt-amt-box { background: #FFFDF4; border-color: var(--line); }
.lt-amt-box i { color: var(--gold); }
.lt-amt-box input { color: var(--ink); }
.lt-row { background: #fff; border-bottom-color: var(--line); }
.lt-row .r-win { color: var(--green); }
.lt-row .r-lose { color: var(--ink-3); }
.sp-m-state.post { background: rgba(0, 0, 0, .06); color: var(--ink-3); }
.sp-m-state.pre { background: rgba(232, 163, 23, .14); color: #B4761A; }
.sp-odd.active { border-color: rgba(232, 163, 23, .8); background: rgba(232, 163, 23, .14); }
.lt-empty { color: var(--ink-3); }

/* ==========================================================
   麻将胡了3 · v3.9.0
   ① 整屏不滚动（fixed + 100dvh）  ② 牌宽按剩余高度算，牌绝不拉长
   ③ 胡的亮牌动画  ④ 超级免费旋转入场  ⑤ 购买按钮
   ========================================================== */
body.mj-open { overflow: hidden; }

.mh-view {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  z-index: 30;
  overflow: hidden;
  padding: 0 8px calc(var(--nav-h, 62px) + 4px);
  display: flex;
  flex-direction: column;
}
.mh-view .mh-stage { flex: 1 1 auto; min-height: 0; }
.mh-grid { justify-content: center; }
.mh-col { flex: 0 0 var(--tw); width: var(--tw); }
.mh-view .mh-top { flex: 0 0 auto; padding-top: calc(env(safe-area-inset-top, 0px) + 5px); }
.mh-view .mh-wayrow,
.mh-view .mh-mults,
.mh-view .mh-freeribbon,
.mh-view .mh-freenum,
.mh-view .mh-winribbon,
.mh-view .mh-banner,
.mh-view .mh-stats,
.mh-view .mh-ctrl,
.mh-view .mh-buybar { flex: 0 0 auto; }

/* 5 个胡的计数显示成 /5 */
.mh-huc.full-super { background: linear-gradient(180deg, #E4B520, #8A5A04); }

/* 胡的亮牌：按顺序一个个弹，全部亮完才允许进免费旋转 */
.mh-tile.hu-pop {
  z-index: 6;
  animation: mhHuTilePop .62s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes mhHuTilePop {
  0%   { transform: scale(1); filter: brightness(1); }
  35%  { transform: scale(1.16) rotate(-2deg); filter: brightness(2.1) saturate(1.3); box-shadow: 0 0 0 2px #FFF3C0, 0 0 22px 6px rgba(255, 214, 80, .95); }
  62%  { transform: scale(1.04) rotate(1deg); filter: brightness(1.5); }
  100% { transform: scale(1); filter: brightness(1.15); box-shadow: 0 0 0 1px rgba(255, 226, 160, .8), 0 0 12px rgba(255, 200, 70, .5); }
}
.mh-tile.hu-done {
  box-shadow: 0 0 0 1px rgba(255, 232, 170, .9), 0 0 14px rgba(255, 190, 60, .55), inset 0 0 10px rgba(255, 210, 90, .35);
}

/* 购买超级免费旋转 */
.mh-buybar { display: flex; justify-content: center; margin: 3px 0 4px; }
.mh-buy {
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 226, 160, .7);
  background: linear-gradient(180deg, rgba(120, 12, 8, .92), rgba(58, 5, 3, .95));
  color: #FFE9A0; font-size: 11.5px; font-weight: 900; letter-spacing: .5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.mh-buy b { color: #FFD54A; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mh-buy:active { transform: scale(.97); }
.mh-buy[disabled] { opacity: .45; }

/* 超级免费旋转入场：金色主题 */
.mh-fsintro.super { background: radial-gradient(circle at 50% 45%, rgba(120, 60, 0, .55), rgba(24, 8, 0, .94)); }
.mh-fsintro.super .fsi-box b { color: #FFD54A; text-shadow: 0 0 22px rgba(255, 190, 40, .9), 0 3px 0 #6A2A00; }
.mh-fsintro.super .fsi-box i { color: #FFF3C0; letter-spacing: 3px; }
.mh-fsintro.super .fsi-rays {
  background: conic-gradient(from 0deg,
    rgba(255, 206, 60, .55) 0 5deg, transparent 5deg 15deg,
    rgba(255, 245, 190, .30) 15deg 19deg, transparent 19deg 33deg);
}
.mh-view.free-on.super-on .mh-stage {
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(255, 210, 90, .22), transparent 62%),
    repeating-radial-gradient(circle at 50% 118%, rgba(255, 240, 180, .07) 0 9px, rgba(0, 0, 0, .05) 9px 20px),
    linear-gradient(180deg, #8A5A06 0%, #5E3A03 52%, #2E1B01 100%);
  box-shadow: 0 0 0 2px rgba(255, 236, 160, .7), 0 0 0 4px rgba(90, 54, 4, .9), 0 10px 26px rgba(0, 0, 0, .55), 0 0 34px rgba(255, 190, 40, .38);
}

/* 提现门槛提示 */
.wd-gate {
  margin: 10px 0 4px; padding: 12px 13px; border-radius: 14px;
  background: linear-gradient(180deg, #FFF6E0, #FFEFD0);
  border: 1px solid rgba(200, 140, 30, .35);
  color: #7A4A08; font-size: 12.5px; line-height: 1.65;
}
.wd-gate b { color: #B4761A; }
.wd-gate .wd-gate-row { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; }
.wd-gate .wd-gate-row i { font-style: normal; color: #9A7B3A; }

/* 购买确认弹层 */
.mh-confirm {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 6, 4, .62);
  animation: mhcIn .18s ease;
}
@keyframes mhcIn { from { opacity: 0; } to { opacity: 1; } }
.mhc-box {
  width: min(86vw, 340px);
  padding: 18px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFDF6, #FFF4DE);
  border: 1px solid rgba(245, 197, 66, .55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  text-align: center;
}
.mhc-t { font-size: 13px; line-height: 1.75; color: #5B3A0C; }
.mhc-t b { color: #B4761A; font-size: 13.5px; }
.mhc-btns { display: flex; gap: 10px; margin-top: 16px; }
.mhc-btns button {
  flex: 1 1 0; height: 40px; border-radius: 11px; font-size: 14px; font-weight: 800;
}
.mhc-no { background: #F1E7D2; color: #7A6440; }
.mhc-ok { background: linear-gradient(180deg, #E8B32B, #B4761A); color: #3A1E00; }

/* 麻将整屏时藏掉全局顶栏（麻将页自己有返回键和 LOGO，否则两条头叠在一起） */
body.mj-open .topbar { display: none !important; }
/* 2000 路那行字号提一点，小字在深红底上糊 */
.mh-view .mh-ways { font-size: 12px; letter-spacing: 1.6px; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.mh-view .mh-ways span { font-size: 14px; }

/* ---------- v3.12 麻将页优化：胡数进度点 / 免费旋转条 / 免费中收起购买条 ---------- */
.mh-hudots { display: inline-flex; align-items: center; gap: 2.5px; margin-left: 5px; }
.mh-hudots u {
  width: 5px; height: 5px; border-radius: 50%; display: block;
  background: rgba(255, 226, 160, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 160, .38);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.mh-hudots u.on {
  background: linear-gradient(180deg, #FFEFB8, #F2A81A);
  box-shadow: 0 0 6px rgba(255, 190, 60, .95), inset 0 0 0 1px rgba(255, 246, 214, .9);
  transform: scale(1.12);
}

.mh-freenum-x {
  margin-top: 2px; font-size: 10.5px; font-weight: 800; letter-spacing: 2px;
  color: rgba(255, 233, 160, .72);
}
.mh-freedots { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 3px; }
.mh-freedots u {
  width: 14px; height: 3px; border-radius: 2px; display: block;
  background: rgba(255, 226, 160, .2);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 160, .28);
  transition: background .2s ease;
}
.mh-freedots u.on {
  background: linear-gradient(90deg, #FFE9A0, #F5A61C);
  box-shadow: 0 0 7px rgba(255, 190, 60, .8);
}
/* 免费旋转中把「购买超级免费」那条收起来，画面更干净 */
.mh-view.free-on .mh-buybar { display: none; }
/* 免费次数打完的那一下：数字和横条一起泛红提醒「剩余 0 次」 */
.mh-freenum.ended .mh-freenum-t,
.mh-freenum.ended .mh-freenum-m {
  background: linear-gradient(180deg, #FFE3E0 0%, #FF8E7F 45%, #D8412C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mh-freenum.ended { animation: mhFreeEnd 1.1s ease 2; }
@keyframes mhFreeEnd {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}
