/* 赌王 · 蓝白皮肤（参照 9y.com 的 UI 风格：浅蓝灰底、白卡片、蓝色渐变按钮） */
:root {
  --jb-bg: #f4f7ff;
  --jb-card: #ffffff;
  --jb-soft: #f0f6ff;
  --jb-line: #e3ecfb;
  --jb-ink: #0f1a33;
  --jb-ink-2: #3a4866;
  --jb-vice: #6a7897;
  --jb-assist: #8d9fc7;
  --jb-brand: #167de4;
  --jb-brand-2: #17bdff;
  --jb-fill: linear-gradient(90deg, #167de4 0%, #00a6ff 100%);
  --jb-title: linear-gradient(90deg, #17bdff, #167de4 30%, #167de4 70%, #17bdff);
  --jb-shadow: 0 .05333rem .26667rem #2c5fb00f;
}

html, body, #app { background: var(--jb-bg) !important; }
#realapp { background: var(--jb-bg) !important; }

/* ---------- 大厅 ---------- */
.hallPage { background: var(--jb-bg) !important; color: var(--jb-ink) !important; }
.hallPage .head_area { background: var(--jb-bg) !important; }
.hallPage .head_area .right_menu_down { display: none !important; }
.hallPage .head_area .right_menu_notice { margin-right: 0; }
.hallPage .head_area .unreadNum { left: auto; right: 0; }
.hallPage .head_area .head_text { color: var(--jb-ink) !important; }
.hallPage .toppart, .hallPage .allGameContent { background: transparent !important; }
/* 底部导航空间由主滚动区统一预留。 */
.hallPage.jg-hero-hall .hallinner { padding-bottom: 0 !important; }

/* 轮播：圆角 6px，底部带一层淡蓝 */
.hallPage .swiper-container {
  border-radius: .16rem !important; background: var(--jb-card);
  box-shadow: var(--jb-shadow);
}
.hallPage .swiper-container:after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(353deg, #3381ff35 6%, transparent 51%);
}
.hallPage .hall-banner-indicators span { background: #ffffff99 !important; border-radius: .05333rem; }
.hallPage .hall-banner-indicators span.active { background: var(--jb-brand) !important; }
.hallPage .hall-image-frame[data-hall-image-state=loading]:before {
  background: linear-gradient(100deg, #eef4ff 25%, #fff 45%, #eef4ff 65%) 0 0/220% 100% !important;
}
.hallPage .hall-image-frame[data-hall-image-state=loading]:after {
  border-color: #d6e6ff !important; border-top-color: var(--jb-brand) !important;
}

/* 公告条：白底 8px 圆角，无阴影 */
.hallPage .noticecontent {
  height: .8rem !important; border-radius: .21333rem !important;
  background: var(--jb-card) !important; border: 0 !important; box-shadow: none !important;
}
.hallPage .noticecontent .noticect .van-notice-bar,
.hallPage .noticecontent .noticect .van-notice-bar__wrap { background: transparent !important; }
.hallPage .noticecontent .van-notice-bar__content,
.hallPage .noticecontent .van-notice-bar span,
.hallPage .noticecontent .van-notice-bar p { color: var(--jb-ink-2) !important; font-weight: 500 !important; }

/* 登录 / 钱包卡：白底 12px 圆角 */
.hallPage .centerArea {
  background: var(--jb-card) !important; border: 0 !important;
  border-radius: .32rem !important; box-shadow: var(--jb-shadow) !important;
}
.hallPage .centerArea .toptit,
.hallPage .centerArea .logindd1 { color: var(--jb-assist) !important; font-weight: 600 !important; }
.hallPage .centerArea .logindd2 { color: var(--jb-ink) !important; }
.hallPage .centerArea .right_item_span { color: var(--jb-ink-2) !important; font-weight: 600 !important; }
/* 登录、注册改成 9y 的按钮：注册浅蓝底，登录蓝色渐变 */
.hallPage .centerArea .btn_item1, .hallPage .centerArea .btn_item2 {
  position: relative; background-image: none !important; border-radius: .16rem;
  display: flex; align-items: center; justify-content: center; font-size: .34667rem; font-weight: 600;
}
.hallPage .centerArea .btn_item1 { background: var(--jb-fill) !important; color: #fff; order: 2; margin-left: .13333rem; }
.hallPage .centerArea .btn_item2 { background: var(--jb-soft) !important; color: var(--jb-vice); order: 1; margin-left: 0 !important; }
.hallPage .centerArea .btn_item1:after { content: "登录"; }
.hallPage .centerArea .btn_item2:after { content: "注册"; }

/* 9y 账户栏：头像与真实等级、账号余额、三个快捷入口。原入口保留用于点击转发。 */
.hallPage .centerArea.jg-has-account { height: 2.4rem; padding: 0 .32rem; box-sizing: border-box; }
.hallPage .centerArea.jg-account-guest { height: 1.38667rem; }
.jg-account { display: grid; grid-template-columns: 1.28rem minmax(0, 1fr) 3.76rem; align-items: center; gap: .24rem; width: 100%; color: #111; }
.jg-account [hidden] { display: none !important; }
.jg-account--guest { display: flex; justify-content: space-between; }
.jg-account--guest .jg-account__info { display: contents; }
.jg-account button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jg-account button:focus-visible { outline: 2px solid var(--jb-brand); outline-offset: 3px; border-radius: .08rem; }
.jg-account__profile { display: flex; flex-direction: column; align-items: center; gap: .08rem; }
.jg-account__avatar { display: block; width: 1.04rem; height: 1.04rem; border-radius: 50%; object-fit: cover; }
.jg-account__vip { position: relative; display: block; min-width: 1.04rem; padding: 0 .08rem; box-sizing: border-box; border-radius: .08rem; background: #d8dee6; color: #3f4a59; font: italic 800 .26667rem/1.15 Arial,sans-serif; }
.jg-account__vip:before { content: "V"; position: absolute; left: -.12rem; top: -.09333rem; color: #b8c2cf; font: italic 900 .45333rem/1 Arial,sans-serif; }
.jg-account__info { min-width: 0; display: flex; flex-direction: column; gap: .16rem; font-size: .34667rem; font-weight: 700; }
.jg-account__id { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-account__balance { display: flex; align-items: center; gap: .13333rem; white-space: nowrap; font-family: Arial,sans-serif; }
.jg-account__balance strong { overflow: hidden; text-overflow: ellipsis; }
.hallPage .centerArea.jg-long-balance { min-height: 2.4rem; height: auto; padding-block: .12rem; }
.jg-long-balance .jg-account { grid-template-areas: "profile id actions" "balance balance actions"; row-gap: .12rem; }
.jg-long-balance .jg-account__info { display: contents; }
.jg-long-balance .jg-account__profile { grid-area: profile; }
.jg-long-balance .jg-account__id { grid-area: id; }
.jg-long-balance .jg-account__actions { grid-area: actions; }
.jg-long-balance .jg-account__balance { grid-area: balance; gap: .08rem; }
.jg-long-balance .jg-account__balance strong { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.jg-account__coin { display: inline-flex; flex: none; align-items: center; justify-content: center; width: .32rem; height: .32rem; border-radius: 50%; background: #36c8a1; color: #fff; font: 700 .26667rem/1 Arial,sans-serif; }
.jg-account .jg-account__refresh { display: flex; flex: none; align-items: center; justify-content: center; width: .48rem; height: .48rem; color: #6b8abc !important; }
.jg-account__refresh svg { width: .32rem; height: .32rem; }
.jg-account__auth { display: flex; align-items: center; gap: .32rem; }
.jg-account__auth button { width: 1.46667rem; height: .69333rem; border-radius: .16rem; font-size: .32rem !important; font-weight: 600 !important; }
.jg-account__auth [data-action="register"] { background: var(--jb-soft); color: var(--jb-assist) !important; }
.jg-account__auth [data-action="login"] { background: #0096ff; color: #fff !important; }
.jg-account__guest { color: var(--jb-assist); font-size: .32rem; font-weight: 600; white-space: nowrap; }
.jg-account__actions { display: flex; justify-content: space-between; align-items: center; }
.jg-account .jg-account__action { display: flex; flex-direction: column; align-items: center; gap: .24rem; width: 1.04rem; font-size: .29333rem !important; line-height: 1.2 !important; font-weight: 600 !important; }
.jg-account__icon { display: flex; align-items: center; justify-content: center; width: 1.04rem; height: 1.04rem; border-radius: 50%; background: #edf2ff; }
.jg-account__icon svg { display: block; width: .74667rem; height: .74667rem; }
.jg-account__action--withdraw .jg-account__icon { background: #eaf8f4; }
.jg-account__action--agent .jg-account__icon { background: #fff4e9; }
.jg-account__action:active .jg-account__icon { transform: scale(.94); }

/* 六宫格玩法入口（hall-grid.js），替代原分类条 */
.jg-has-play-grid .hallPage .gameContent-anchor { display: none !important; }
.jg-has-play-grid .hallPage .allGameContent.nav-fixed-gapless { margin-top: 0 !important; }
.jg-play-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .21333rem;
  width: 9.2rem; margin: 0 auto; box-sizing: border-box;
}
.jg-play {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 3.73333rem; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: .32rem; cursor: pointer;
  font: inherit; background: transparent; box-shadow: var(--jb-shadow);
  -webkit-tap-highlight-color: transparent; transition: transform .12s, box-shadow .12s;
}
.jg-play:active { transform: scale(.97); }
.jg-play:focus-visible { outline: 2px solid var(--jb-brand); outline-offset: 2px; }
.jg-play__image { display: block; width: 100%; height: 100%; pointer-events: none; }


/* 大厅下方不再显示游戏卡（电子/真人改为进入选择页） */
.jg-has-play-grid .hallPage .allGameContent { display: none !important; }

/* ---------- 选择页（飞升 / 电子 / 真人），hall-grid.js 打开 ---------- */
.jg-sheet {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 3000; display: flex; flex-direction: column;
  background: var(--jb-bg); color: var(--jb-ink);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}
.jg-sheet.is-open { transform: none; }
.jg-sheet__head {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center;
  box-sizing: content-box; height: 1.2rem; min-height: 44px; padding-top: var(--jg-header-safe-top, env(safe-area-inset-top, 0px)); background: #fff;
  box-shadow: 0 1px 0 var(--jb-line);
}
.jg-sheet__title { margin: 0; font-size: .45333rem; font-weight: 700; color: var(--jb-ink); }
.jg-sheet__back {
  position: absolute; left: max(.21333rem, env(safe-area-inset-left)); top: var(--jg-header-safe-top, env(safe-area-inset-top, 0px)); bottom: 0; width: 1.06667rem; min-width: 44px;
  display: flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer;
  color: var(--jb-ink);
}
.jg-sheet__back svg { width: .58667rem; height: .58667rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.jg-sheet__body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: .32rem .32rem calc(.53333rem + env(safe-area-inset-bottom));
}
.jg-sheet__group {
  margin-bottom: .32rem; padding: .10667rem .32rem .16rem;
  background: var(--jb-card); border-radius: .32rem; box-shadow: var(--jb-shadow);
}
.jg-sheet__group-title {
  margin: 0; display: flex; align-items: center; height: .96rem; font-size: .42667rem; font-weight: 700;
  color: transparent; background: var(--jb-title); -webkit-background-clip: text; background-clip: text;
}
.jg-sheet__empty { margin: 1.6rem 0; text-align: center; font-size: .34667rem; color: var(--jb-assist); }
.jg-room {
  display: flex; align-items: center; gap: .26667rem; width: 100%; padding: .26667rem 0;
  border: 0; border-top: 1px solid var(--jb-line); background: none; font: inherit; text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.jg-room:active { background: var(--jb-soft); }
.jg-room__logo {
  flex: none; width: 1.17333rem; height: 1.17333rem; border-radius: .26667rem; overflow: hidden; background: var(--jb-soft);
}
.jg-room__logo--art { position: relative; height: 1.49333rem; background: transparent; }
:root .jg-room__logo--art .jg-rcard__img { object-fit: contain; }
.jg-room__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jg-room__logo b {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: var(--jb-fill); color: #fff; font-size: .48rem; font-weight: 800;
}
.jg-room__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .08rem; }
.jg-room__name { font-size: .4rem; font-weight: 700; color: var(--jb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg-room__online { display: flex; align-items: center; gap: .10667rem; font-size: .29333rem; color: var(--jb-assist); font-weight: 600; }
.jg-room__online i { width: .16rem; height: .16rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 .05333rem #22c55e26; }
.jg-room__go {
  flex: none; height: .69333rem; padding: 0 .32rem; display: flex; align-items: center;
  border-radius: .16rem; background: var(--jb-fill); color: #fff; font-size: .32rem; font-weight: 600;
}
.jg-venue {
  display: block; width: 100%; margin: 0 0 .26667rem; padding: 0; border: 0; cursor: pointer;
  border-radius: .32rem; overflow: hidden; background: var(--jb-card); box-shadow: var(--jb-shadow);
  aspect-ratio: 1380 / 480; transition: transform .12s;
}
.jg-venue:active { transform: scale(.98); }
.jg-venue img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .jg-sheet { transition: none; } }

/* ---------- 六宫格下方：热门推荐 / 三个入口（HallExtras.vue） ---------- */
.jg-extras {
  display: flex; flex-direction: column; gap: .26667rem;
  width: 9.2rem; margin: .26667rem auto 0; box-sizing: border-box;
}
.jg-extras button { font: inherit; -webkit-tap-highlight-color: transparent; }
.jg-extras button:focus-visible, .jg-notice .cffffbtn > div:focus-visible { outline: 2px solid var(--jb-brand); outline-offset: 2px; }

.jg-sec-head { display: flex; align-items: center; justify-content: space-between; margin: .05333rem .05333rem .21333rem; }
.jg-sec-title {
  display: flex; align-items: center; gap: .16rem; margin: 0;
  font-size: .42667rem; font-weight: 800; color: var(--jb-ink); letter-spacing: .01333rem;
}
.jg-dot { width: .21333rem; height: .21333rem; border-radius: 50%; }
.jg-dot--green { background: #11c27c; box-shadow: 0 0 0 .08rem #11c27c26; }
.jg-dot--blue { background: #2f86ff; box-shadow: 0 0 0 .08rem #2f86ff26; }
/* 我的游戏（HallExtras.vue）：卡片同热门推荐，不自动滚动；没投注过时整块不显示 */
.jg-mine { margin-bottom: .32rem; }
.jg-sec-more { padding: .08rem 0; border: 0; background: none; color: var(--jb-vice); font-size: .32rem; font-weight: 600; cursor: pointer; }

/* 热门推荐：横向滑动的竖版卡片 */
.jg-hot__track {
  display: flex; gap: .21333rem; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; padding: 0 0 .21333rem; margin: 0;
  /* 卡片行与标题、上下模块左右对齐，不再伸到屏幕边缘；底部留出阴影空间 */
  /* 自动滚动（HallExtras.vue），不加 scroll-snap，否则会和逐帧滚动冲突 */
}
.jg-hot__track::-webkit-scrollbar { display: none; }
.jg-hot__track { -webkit-overflow-scrolling: touch; }
.jg-hot__track.is-dragging { cursor: grabbing; user-select: none; }
.jg-hot__track.is-dragging .jg-hot__card { transform: none; }
.jg-hot__empty { color: var(--jb-vice); font-size: .28rem; }
.jg-hot__card[hidden] { display: none; }

.jg-hot__card {
  position: relative; flex: none; width: 2.4rem; height: 3.2rem; padding: 0; border: 0; cursor: pointer;
  border-radius: .32rem; overflow: hidden; color: #fff;
  box-shadow: 0 .10667rem .26667rem var(--tone-shadow, #2c5fb033);
  background: var(--tone-bg); transition: transform .12s;
}
.jg-hot__card:active { transform: scale(.96); }
.jg-hot__card:after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0, #ffffff40, transparent 60%);
}
.jg-hot__mark {
  position: absolute; top: .16rem; left: 0; right: 0; text-align: center;
  font: italic 900 .85333rem/1 DIN, Arial, sans-serif; color: #ffffff2e; letter-spacing: -.02667rem;
}
.jg-hot__art {
  position: absolute; left: 50%; top: .48rem; width: 1.6rem; height: 1.6rem; transform: translateX(-50%);
  border-radius: 50%; box-shadow: 0 .10667rem .32rem #0000003d, 0 0 0 .05333rem #ffffff80;
  background: #ffffff26; overflow: hidden;
}
.jg-hot__art img, .jg-hot__art svg { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 整图卡片：房间设计图（自带圆角和边框）、场馆海报，图里自带名称 */
.jg-hot__card--art { background: none; box-shadow: none; }
.jg-hot__card--art:after, .jg-hot__card--poster:after, .jg-hot__card--cover:after { content: none; }
.jg-hot__card--art .jg-rcard__img { filter: drop-shadow(0 .05333rem .10667rem #1d4f9a2e); }
/* 图片占满卡片区域并保持完整比例，名称只用于无障碍标签。 */
.jg-hot__card--cover, .jg-hot__card--poster { background: none; }
.jg-hot__poster, .jg-hot__cover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.jg-tone--blue { --tone-bg: linear-gradient(160deg, #6fc0ff 0%, #2f7bff 55%, #1a4fd6 100%); --tone-shadow: #2f7bff4d; }
.jg-tone--violet { --tone-bg: linear-gradient(160deg, #c08bff 0%, #8a4dff 55%, #5a24d6 100%); --tone-shadow: #8a4dff4d; }
.jg-tone--amber { --tone-bg: linear-gradient(160deg, #ffd27a 0%, #ff9a3d 55%, #f0661f 100%); --tone-shadow: #ff9a3d4d; }
.jg-tone--rose { --tone-bg: linear-gradient(160deg, #ff9ec4 0%, #ff4f8b 55%, #d92a68 100%); --tone-shadow: #ff4f8b4d; }
.jg-tone--mint { --tone-bg: linear-gradient(160deg, #7ef0c4 0%, #18c487 55%, #0b9566 100%); --tone-shadow: #18c4874d; }

/* 人民币充值 / 赌尊社区 / 在线客服 */
.jg-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .21333rem; }
.jg-quick__item {
  display: flex; align-items: center; justify-content: center; gap: .13333rem;
  height: 1.17333rem; padding: 0 .13333rem; border: 0; border-radius: .32rem; cursor: pointer;
  background: var(--jb-card); box-shadow: var(--jb-shadow); color: var(--jb-ink); transition: transform .12s;
}
.jg-quick__item:active { transform: scale(.97); }
.jg-quick__icon { flex: none; width: .64rem; height: .64rem; }
.jg-quick__icon svg { display: block; width: 100%; height: 100%; }
.jg-quick__label { font-size: .37333rem; font-weight: 700; white-space: nowrap; }


/* ---------- 公告弹窗：品牌名 + 大标题 + 喇叭插画 ---------- */
.van-popup.jg-notice {
  width: 8.8rem !important; max-width: calc(100vw - .64rem); overflow: visible !important;
  border-radius: .64rem !important; padding: 0 .48rem .48rem; box-sizing: border-box;
  background: linear-gradient(180deg, #d9ecff 0%, #eef5ff 22%, #f6f9ff 46%, #ffffff 100%) !important;
  box-shadow: 0 .42667rem 1.06667rem #0f2a6640, inset 0 0 0 .02667rem #ffffffcc;
}
.jg-notice__hero { position: relative; min-height: 2.66667rem; padding: .64rem 2.4rem 0 .05333rem; box-sizing: border-box; text-align: left; }
.jg-notice__brand { display: block; font-size: .48rem; font-weight: 700; color: #1f6fd1; letter-spacing: .02667rem; }
.jg-notice__title {
  margin: .10667rem 0 0; font-size: .82667rem; line-height: 1.15; font-weight: 900; color: #11284d; letter-spacing: .02667rem;
  word-break: break-all;
}
.jg-notice__art {
  position: absolute; right: -.37333rem; top: -1.06667rem; width: 3.46667rem; height: 2.88rem; pointer-events: none;
  filter: drop-shadow(0 .16rem .26667rem #167de440);
}
.jg-notice__art svg { display: block; width: 100%; height: 100%; }
.jg-notice .outerwrap {
  height: auto !important; min-height: 0 !important; max-height: 52vh !important; text-align: left !important; margin-top: .32rem; padding: .05333rem .05333rem .16rem !important;
  color: #3a4866 !important; font-size: .37333rem !important; line-height: 1.75 !important;
  background: transparent !important; -webkit-overflow-scrolling: touch;
}
.jg-notice .outerwrap .jg-notice__lifted { display: none; }
.jg-notice .outerwrap strong, .jg-notice .outerwrap b,
.jg-notice .outerwrap h1, .jg-notice .outerwrap h2, .jg-notice .outerwrap h3, .jg-notice .outerwrap h4 { color: #11284d; }
.jg-notice .outerwrap p { margin: 0 0 .16rem; }
.jg-notice .outerwrap ul, .jg-notice .outerwrap ol { margin: 0 0 .16rem; padding: 0 !important; list-style: none !important; }
.jg-notice .outerwrap li { position: relative; padding-left: .37333rem !important; }
.jg-notice .outerwrap li:before { content: "*" !important; position: absolute; left: 0; top: .05333rem; color: #f0364a; font-weight: 800; }
.jg-notice .outerwrap img { max-width: 100%; height: auto; border-radius: .21333rem; }
.jg-notice .cffffbtn { display: flex !important; gap: .21333rem; margin-top: .32rem; border-top: 0 !important; background: transparent !important; }
.jg-notice .cffffbtn > div {
  flex: 1 1 0 !important; width: auto !important; height: 1.17333rem; padding: 0 !important; display: flex !important;
  align-items: center; justify-content: center; border-radius: .58667rem; cursor: pointer;
  font-size: .42667rem !important; font-weight: 700; color: var(--jb-brand) !important; background: #e3efff;
}
.jg-notice .cffffbtn > div:last-child {
  flex-grow: 2 !important; color: #fff !important; background: linear-gradient(90deg, #3aa0ff 0%, #167de4 55%, #0d5fd0 100%);
  box-shadow: 0 .10667rem .26667rem #167de44d, inset 0 .02667rem 0 #ffffff59;
}
.jg-notice .cffffbtn > div[aria-disabled="true"] { opacity: .7; }

/* 游戏卡 */
.hallPage .allGameContent .longbtn {
  border-radius: .32rem !important; background: var(--jb-card) !important; box-shadow: var(--jb-shadow) !important;
}
.hallPage .allGameContent .smallBg { background: var(--jb-card) !important; border-radius: .32rem !important; box-shadow: var(--jb-shadow) !important; }

/* 右侧活动浮窗：去掉 */
.hallActivityBox { display: none !important; }

/* ---------- 底部导航（全站） ---------- */
.jn-nav {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  height: 1.52rem; padding: 0 .32rem; box-sizing: content-box;
}
.jn-nav__item {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .08rem; height: 100%; padding: 0; border: 0; background: none; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#app .jn-nav .jn-nav__item { color: var(--jb-vice) !important; }
.jn-nav__icon { width: .64rem; height: .64rem; transition: transform .22s cubic-bezier(.2, 1.4, .4, 1); }
.jn-nav__icon svg {
  width: 100%; height: 100%; display: block; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.jn-nav__label { font-size: .29333rem; font-weight: 600; line-height: 1; }
#app .jn-nav .jn-nav__item.is-active { color: var(--jb-brand) !important; }
.jn-nav__item.is-active .jn-nav__label { font-weight: 700; }
.jn-nav__item.is-active .jn-nav__icon { transform: translateY(-1px) scale(1.06); }
.jn-nav__item.is-active .jn-nav__icon svg { fill: #167de41f; }
/* 完整玻璃选中块：图标和文字一起包入，四周留出一致的间距。 */
.jn-nav__sel {
  position: absolute; left: 0; top: .08rem; bottom: .08rem; width: 1.52rem; margin-left: -.76rem;
  box-sizing: border-box; border: 1px solid #8eb9ec66; border-radius: .36rem; pointer-events: none;
  background: linear-gradient(145deg, #ffffffc9, #dcecff99 55%, #edf5ffb8);
  box-shadow: inset 0 1px #fff, inset 0 -1px #a9c8ed40, 0 2px 8px #5486bd1c;
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .2s;
}
/* 中间客服：突出的蓝色圆角按钮（白色耳机 + 客服） */
.jn-nav__center {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .02667rem;
  width: 1.17333rem; height: 1.17333rem; border-radius: .29333rem;
  background: radial-gradient(90% 70% at 30% 15%, #6fd0ff 0%, transparent 60%), linear-gradient(145deg, #2f9bff 0%, #167de4 50%, #0d55c8 100%);
  box-shadow: 0 .10667rem .26667rem #167de459, inset 0 .02667rem 0 #ffffff66; transition: transform .15s;
}
#app .jn-nav .jn-nav__item--service, #app .jn-nav .jn-nav__item--service.is-active { color: #fff !important; }
.jn-nav__item--service.is-active .jn-nav__icon { transform: none; }
.jn-nav__item--service.is-active .jn-nav__icon svg { fill: none; }
.jn-nav__item--service.is-active .jn-nav__center { box-shadow: 0 0 0 .08rem #167de433, 0 .10667rem .26667rem #167de459, inset 0 .02667rem 0 #ffffff66; }
.jg-nav-unread { position: absolute; top: -3px; right: -5px; z-index: 2; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; box-sizing: border-box; border: 2px solid #fff; border-radius: 999px; color: #fff; background: #d8253d; box-shadow: 0 1px 4px #78172738; font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none; }
.jn-nav__center .jn-nav__icon { width: .58667rem; height: .58667rem; }
.jn-nav__center .jn-nav__icon svg { stroke-width: 2.1; }
.jn-nav__center .jn-nav__label { font-size: .26667rem; font-weight: 700; letter-spacing: .02667rem; }
.jn-nav__item--service:active .jn-nav__center { transform: scale(.94); }
.jn-nav__item:focus-visible { outline: 2px solid var(--jb-brand); outline-offset: -4px; border-radius: .26667rem; }
@media (prefers-reduced-motion: reduce) {
  .jn-nav__sel, .jn-nav__icon { transition: none; }
}

/* ---------- 登录弹窗 ---------- */
.Login-window .loginPage {
  background: #ffffffeb !important; border-radius: .32rem !important;
  box-shadow: 0 .10667rem .53333rem #2c5fb01f !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.Login-window .inputBox {
  background: var(--jb-bg) !important; border-radius: .21333rem !important;
  border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.Login-window .inputBox:focus-within { background: #fff !important; border-color: var(--jb-brand); }
.Login-window .inputBox input { color: var(--jb-ink) !important; }
.Login-window .inputBox input::placeholder { color: var(--jb-assist); }
.Login-window .checkbox_text, .Login-window .b_item, .Login-window .b_other_menu .item { color: var(--jb-ink-2) !important; }
.Login-window .b_other_menu .item.blue { color: var(--jb-brand) !important; font-weight: 600; }
.Login-window .loginbtn {
  background: var(--jb-fill) !important; border-radius: .21333rem !important;
  box-shadow: 0 .10667rem .32rem #167de433; font-weight: 600;
}
.Login-window .b_kefu_span { color: var(--jb-vice) !important; }

/* ---------- 其他页面通用（登录后页面同样生效） ---------- */
:root {
  --van-primary-color: #167de4;
  --van-blue: #167de4;
  --van-background: #f4f7ff;
  --van-background-2: #ffffff;
  --van-active-color: #f0f6ff;
  --van-tabs-bottom-bar-color: #167de4;
  --van-tab-active-text-color: #167de4;
  --van-nav-bar-icon-color: #0f1a33;
  --van-nav-bar-title-text-color: #0f1a33;
  --van-nav-bar-text-color: #167de4;
  --van-tabbar-item-active-color: #17bdff;
  --van-checkbox-checked-icon-color: #167de4;
  --van-radio-checked-icon-color: #167de4;
  --van-switch-on-background: #167de4;
  --van-dialog-confirm-button-text-color: #167de4;
  --van-picker-confirm-action-color: #167de4;
}
.van-nav-bar { background: #fff !important; }
.van-tabs__line { background: var(--jb-fill) !important; }

/* vant 通用组件 */
.van-button--primary, .van-button--danger {
  background: var(--jb-fill) !important; border-color: transparent !important; color: #fff !important;
}
.van-dialog__confirm, .van-dialog__confirm:active { color: var(--jb-brand) !important; }
.van-pull-refresh__head, .van-loading__text { color: var(--jb-assist) !important; }

/* ---------- 我的钱包（/account，wallet.js）：参照 9nww 钱包页 ---------- */
.accounts.jg-wallet {
  min-height: 100vh;
  background: radial-gradient(130% 38% at 50% 0, #d6e8ff 0%, #eaf3ff 45%, transparent 75%), var(--jb-bg) !important;
}
.jg-wallet .head_area { background: transparent !important; }
.jg-wallet .head_area .head_text { color: var(--jb-ink) !important; font-weight: 800 !important; }
.jg-wallet .head_area .right_menu { color: var(--jb-brand) !important; font-weight: 600 !important; }
.jg-wallet .van-pull-refresh, .jg-wallet .main_content, .jg-wallet .accounts-scroll { background: transparent !important; }
.jg-wallet .accounts-scroll .topArea {
  min-height: 0 !important; padding-top: .21333rem !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
}

/* 余额主卡：深蓝渐变 + 右下角 DW 水印 */
.jg-wallet .topArea .MoneyArea {
  position: relative; overflow: hidden; padding: .48rem .53333rem .64rem !important; border-radius: .48rem;
  background: radial-gradient(90% 130% at 100% 0, #62ccff 0%, transparent 55%), linear-gradient(135deg, #1a4fd6 0%, #167de4 55%, #27a6ff 100%);
  box-shadow: 0 .21333rem .53333rem #167de440;
}
.jg-wallet .topArea .MoneyArea:after {
  content: ""; position: absolute; right: -.32rem; bottom: -.58667rem; width: 3.2rem; height: 3.2rem; pointer-events: none;
  background: url(/jg-skin/dwdw-logo.png) center / contain no-repeat; opacity: .12; transform: rotate(-12deg);
}
.jg-wallet .MoneyArea .item .money_title { color: #ffffffd9 !important; font-weight: 600 !important; }
.jg-wallet .MoneyArea .item { border: 0 !important; padding-bottom: 0 !important; }
.jg-wallet .MoneyArea .money_title img { border-radius: 50%; background: #fff; box-shadow: 0 0 0 .02667rem #ffffff80; }
.jg-wallet .MoneyArea .refresh { filter: brightness(0) invert(1); opacity: .85; }
.jg-wallet .MoneyArea .money_bottom { margin-top: .16rem; }
.jg-wallet .MoneyArea .money_bottom .money_text {
  color: #fff !important; font: 800 .96rem/1.1 DIN, Arial, sans-serif !important; letter-spacing: .02667rem;
  text-shadow: 0 .05333rem .16rem #0d3a9e59;
}

/* 存款 / 取款 */
.jg-wallet__actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: .16rem; margin-top: .32rem; padding: .10667rem;
  border-radius: .64rem; background: #fff; box-shadow: var(--jb-shadow);
}
.jg-wallet__act {
  display: flex; align-items: center; justify-content: center; gap: .16rem; height: 1.12rem; border: 0; cursor: pointer;
  border-radius: .53333rem; font: inherit; font-size: .42667rem; font-weight: 800; letter-spacing: .05333rem;
  -webkit-tap-highlight-color: transparent; transition: transform .12s;
}
.jg-wallet__act:active { transform: scale(.97); }
.jg-wallet__act:focus-visible, .jg-wallet__help-btn:focus-visible, .jg-wallet .main_menu .item:focus-visible { outline: 2px solid var(--jb-brand); outline-offset: 2px; }
.jg-wallet__act svg { width: .53333rem; height: .53333rem; }
.jg-wallet__act span, .jg-wallet__help-btn span { color: inherit !important; font: inherit !important; }
.jg-wallet__act--in {
  color: #fff; background: linear-gradient(90deg, #3aa0ff 0%, #167de4 55%, #0d5fd0 100%);
  box-shadow: 0 .08rem .21333rem #167de44d, inset 0 .02667rem 0 #ffffff59;
}
.jg-wallet__act--out { color: var(--jb-brand); background: #eef5ff; }

/* 快捷服务 */
.jg-wallet__menu-title { margin: .42667rem .05333rem .21333rem; font-size: .42667rem; font-weight: 800; color: var(--jb-ink); }
.jg-wallet .topArea .main_menu {
  display: flex !important; justify-content: space-around; margin-top: 0 !important;
  padding: .37333rem .16rem; border-radius: .42667rem; background: #fff; box-shadow: var(--jb-shadow);
}
.jg-wallet .main_menu .item { flex: 1 1 0; display: flex !important; flex-direction: column; align-items: center; gap: .13333rem; cursor: pointer; }
.jg-wallet .main_menu .item.jg-wallet__dup { display: none !important; }
.jg-wallet .main_menu .item > span { color: var(--jb-ink-2) !important; font-size: .32rem !important; font-weight: 600 !important; }
.jg-wallet .main_menu .item .bgbox { width: 1.06667rem !important; height: 1.06667rem !important; background: none !important; }
.jg-wallet__ico, .jg-wallet__ico svg { display: block; width: 100%; height: 100%; }
.jg-wallet__ico + img { display: none !important; }
.jg-wallet .topArea .one-line { display: none !important; }

/* 余额全站通用：场馆余额明细 / 一键取回不再展示 */
.jg-wallet .topArea .venuesDetail { display: none !important; }
/* 场馆余额明细（保留样式，以后恢复时可用） */
.jg-wallet .topArea .venuesDetail {
  margin-top: .32rem; padding: .32rem 0 .21333rem; border-radius: .42667rem; background: #fff; box-shadow: var(--jb-shadow);
}
.jg-wallet .venuesDetail .venues .left-nums { color: var(--jb-ink) !important; font-weight: 800 !important; }
.jg-wallet .venuesDetail .venues > span { color: var(--jb-brand) !important; }
.jg-wallet .venuesDetail .venuesList .top { background: linear-gradient(90deg, #eef5ff, #f6f9ff) !important; border-radius: .32rem !important; }
.jg-wallet .venuesDetail .venuesList .money { color: var(--jb-ink) !important; font-weight: 800 !important; }
.jg-wallet .venuesDetail .venuesList .van-button {
  border: 0 !important; border-radius: .42667rem !important; color: #fff !important; background: var(--jb-fill) !important;
}

/* 添加提现账户 */
.jg-wallet .accounts-opendetails {
  display: flex !important; align-items: center; justify-content: center; box-sizing: border-box;
  width: 9.2rem !important; height: 1.06667rem !important; margin: .32rem auto 0 !important;
  border: .02667rem dashed #9cc4f5 !important; border-radius: .42667rem !important;
  background: #fff !important; color: var(--jb-brand) !important; font-weight: 700 !important;
}

/* 客服提示卡 */
.jg-wallet__help {
  display: flex; align-items: center; gap: .26667rem; box-sizing: border-box;
  width: 9.2rem; margin: .32rem auto 1.06667rem; padding: .37333rem .37333rem .37333rem .42667rem;
  border-radius: .42667rem; background: #fff; box-shadow: var(--jb-shadow);
}
.jg-wallet__help-ico { flex: none; width: .58667rem; height: .58667rem; }
.jg-wallet__help-ico svg { display: block; width: 100%; height: 100%; }
.jg-wallet__help p { flex: 1; min-width: 0; margin: 0; font-size: .34667rem; line-height: 1.5; color: var(--jb-ink-2); }
.jg-wallet__help-btn {
  flex: none; display: flex; align-items: center; gap: .10667rem; height: .90667rem; padding: 0 .37333rem; border: 0; cursor: pointer;
  border-radius: .45333rem; background: var(--jb-fill); color: #fff; font: inherit; font-size: .34667rem; font-weight: 700;
  box-shadow: 0 .08rem .21333rem #167de440;
}
.jg-wallet__help-btn svg { width: .42667rem; height: .42667rem; }

/* 原站全局用超高优先级把 button 的 color / font 设成 inherit，自定义按钮的文字颜色和字号要用 !important 覆盖 */
.jg-wallet__act { font-size: .42667rem !important; font-weight: 800 !important; }
.jg-wallet__act--in { color: #fff !important; }
.jg-wallet__act--out { color: var(--jb-brand) !important; }
.jg-wallet__help-btn { color: #fff !important; font-size: .34667rem !important; font-weight: 700 !important; }
.jg-sec-more { color: var(--jb-vice) !important; font-size: .32rem !important; font-weight: 600 !important; }
.jg-quick__item { color: var(--jb-ink) !important; }
.jg-hot__card { color: #fff !important; }

/* ---------- 充值 / 提现（wallet.js）：参照 9nww 的存款 / 取款 ---------- */
.recharge.recharge-v3, .withdraw.withdrawal-v3 {
  min-height: 100vh;
  background: radial-gradient(130% 30% at 50% 0, #d6e8ff 0%, #eaf3ff 45%, transparent 75%), var(--jb-bg) !important;
}
.recharge-v3 .head_area, .withdrawal-v3 .head_area { background: transparent !important; box-shadow: none !important; }
.recharge-v3 .head_area .head_text, .withdrawal-v3 .head_area .head_text { color: var(--jb-ink) !important; font-weight: 800 !important; }
.recharge-v3 .head_area .right_menu { color: var(--jb-brand) !important; font-weight: 600 !important; }
.recharge-v3 .head_area .leftImg, .withdrawal-v3 .head_area .leftImg { background: transparent !important; }
.recharge-v3 .head_area .top_back, .withdrawal-v3 .head_area .top_back { mix-blend-mode: multiply; }
.recharge-v3 .topart { border-bottom: 0 !important; box-shadow: none !important; }

/* 存款 | 取款 切换 */
.jg-funds-seg {
  display: grid; grid-template-columns: 1fr 1fr; width: 5.6rem; margin: .10667rem auto .32rem; padding: .08rem;
  box-sizing: border-box; border-radius: .58667rem; background: #fff; box-shadow: var(--jb-shadow);
}
.jg-funds-seg__tab {
  height: .96rem; border: 0; border-radius: .48rem; background: none; cursor: pointer;
  color: var(--jb-vice) !important; font-size: .4rem !important; font-weight: 700 !important; -webkit-tap-highlight-color: transparent;
}
.jg-funds-seg__tab[aria-selected="true"] {
  color: #fff !important; background: linear-gradient(90deg, #3aa0ff 0%, #167de4 55%, #0d5fd0 100%);
  box-shadow: 0 .08rem .21333rem #167de44d, inset 0 .02667rem 0 #ffffff59;
}
.jg-funds-seg__tab:focus-visible { outline: 2px solid var(--jb-brand); outline-offset: 2px; }
.jg-funds-title { display: flex; align-items: baseline; justify-content: space-between; margin: .37333rem .05333rem .26667rem; }
.jg-funds-title h3 { margin: 0; font-size: .45333rem; font-weight: 800; color: var(--jb-ink); }
.jg-funds-title small { font-size: .32rem; color: var(--jb-vice); }

/* 充值：顶部 */
.recharge-v3 .topart { background: transparent !important; padding: 0 .4rem !important; box-sizing: border-box; }
.recharge-v3 .topart .navhead { background: #ffffffb3 !important; border-radius: .48rem !important; height: .96rem !important; box-sizing: border-box; }
.recharge-v3 .topart .noticecont {
  margin: .26667rem 0 0 !important; padding: .21333rem .32rem !important; border-radius: .32rem !important; border: 0 !important;
  background: #fff7ea !important; color: #7a5520 !important; font-size: .29333rem !important; line-height: 1.6 !important;
}
.recharge-v3 .topart .noticecont span { color: #c46a00 !important; }
.recharge-v3 .rccontent, .recharge-v3 .rcinner, .recharge-v3 #offlinerechage, .recharge-v3 .newContent { background: transparent !important; }
.recharge-v3 .newContent .jg-funds-title { margin-left: .45333rem; margin-right: .45333rem; }
.recharge-v3 .recharge-read-state {
  margin: .32rem .4rem 0 !important; padding: .42667rem !important; border: 0 !important; border-radius: .42667rem !important;
  background: #fff !important; color: var(--jb-vice) !important; box-shadow: var(--jb-shadow); text-align: center;
}

/* 充值方式：三列胶囊 */
.recharge-v3 .newContent .outTypeList {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .21333rem;
  padding: 0 .4rem !important; border: 0 !important; background: transparent !important;
}
.recharge-v3 .newContent .outTypeList .TypeItem {
  position: relative; flex-direction: row !important; gap: .13333rem; box-sizing: border-box;
  width: auto !important; height: 1.12rem !important; margin: 0 !important; padding: 0 .16rem !important;
  border: .02667rem solid #e3ecfb !important; border-radius: .56rem !important; background: #fff !important;
  box-shadow: var(--jb-shadow);
}
.recharge-v3 .newContent .outTypeList .TypeItem.Typeactive {
  border-color: #5aa5ff !important; background: linear-gradient(180deg, #e8f2ff 0%, #d6e8ff 100%) !important;
  box-shadow: 0 .08rem .21333rem #167de426;
}
.recharge-v3 .newContent .outTypeList .TypeItem .type_img {
  flex: none; width: .64rem !important; height: .64rem !important; border-radius: 50%; object-fit: cover !important;
}
.recharge-v3 .newContent .outTypeList .TypeItem .type_text {
  min-width: 0; margin: 0 !important; overflow: hidden; text-overflow: ellipsis;
  color: var(--jb-ink) !important; font-size: .34667rem !important; font-weight: 700 !important;
}
#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24#sourceRecharge9f24 .newContent .outTypeList .TypeItem.Typeactive .type_text { color: var(--jb-brand) !important; }
.recharge-v3 .newContent .outTypeList .TypeItem .xianXia_img { top: -.08rem !important; left: .32rem !important; width: .56rem !important; height: .26667rem !important; }

/* 钱包协议 / 收款账户、金额：白卡 */
.recharge-v3 .newContent .ReceivingAccount, .recharge-v3 .newContent .moneyContent {
  margin: .32rem .4rem 0 !important; padding: .37333rem !important; border: 0 !important; border-radius: .42667rem !important;
  background: #fff !important; box-shadow: var(--jb-shadow);
}
.recharge-v3 .newContent .main_tittle .l_text, .recharge-v3 .newContent .main_tittle .tit {
  color: var(--jb-ink) !important; font-size: .37333rem !important; font-weight: 800 !important;
}
.recharge-v3 .newContent .main_tittle .r_text { color: var(--jb-brand) !important; }
.recharge-v3 .newContent .AccountList { display: grid !important; grid-template-columns: 1fr 1fr; gap: .21333rem; margin-top: .26667rem !important; }
.recharge-v3 .newContent .AccountList .Account_item {
  width: auto !important; min-height: 1.06667rem; margin: 0 !important; box-sizing: border-box;
  border: .02667rem solid #e3ecfb !important; border-radius: .53333rem !important; background: #f1f5fc !important;
}
.recharge-v3 .newContent .AccountList .Account_item.Accountactive, .recharge-v3 .newContent .AccountList .Account_item.shortactive {
  border-color: #5aa5ff !important; background: #e4f0ff !important;
}
.recharge-v3 .newContent .Account_item .t_Text { color: var(--jb-ink) !important; font-weight: 700 !important; }
.recharge-v3 .newContent .Account_item .b_Text { color: var(--jb-vice) !important; }
.recharge-v3 .newContent .usdtText { color: var(--jb-vice) !important; }
.recharge-v3 .newContent .meneyInput {
  width: 100% !important; height: 1.17333rem !important; margin: .26667rem 0 0 !important; padding: 0 .32rem !important; box-sizing: border-box;
  border: 0 !important; border-radius: .32rem !important; background: #f1f5fc !important;
}
.recharge-v3 .newContent .meneyInput .text { color: var(--jb-brand) !important; font-weight: 800 !important; }
.recharge-v3 .newContent .meneyInput .input { min-width: 0; flex: 1; background: transparent !important; font-size: .4rem !important; }
.recharge-v3 .newContent .meneyInput .left {
  flex: none; padding: .05333rem .16rem !important; border: 0 !important; border-radius: .26667rem !important;
  background: #fff !important; color: var(--jb-vice) !important; font-size: .29333rem !important;
}
.recharge-v3 .newContent .moneyList { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .16rem; margin-top: .26667rem !important; }
.recharge-v3 .newContent .moneyList .money_item {
  width: auto !important; height: .85333rem !important; margin: 0 !important;
  border: .02667rem solid #e3ecfb !important; border-radius: .42667rem !important; background: #fff !important;
  color: var(--jb-ink-2) !important; font-size: .32rem !important; font-weight: 600 !important;
}
.recharge-v3 .newContent .moneyList .money_item.moneyactive { border-color: #5aa5ff !important; background: #e4f0ff !important; color: var(--jb-brand) !important; }
.recharge-v3 .newContent .btn-wrap { padding: .42667rem .4rem 0 !important; background: transparent !important; }
.recharge-v3 .newContent .btn-wrap .chargeBtn {
  width: 100% !important; height: 1.17333rem !important; border-radius: .58667rem !important; background: #b9d3f5 !important;
  color: #fff !important; font-size: .42667rem !important; font-weight: 700 !important;
}
.recharge-v3 .newContent .btn-wrap .chargeBtn.chargeBtnActive {
  background: linear-gradient(90deg, #3aa0ff 0%, #167de4 55%, #0d5fd0 100%) !important; box-shadow: 0 .10667rem .26667rem #167de44d;
}
.recharge-v3 .newContent .tips { padding: 0 !important; background: transparent !important; margin: .26667rem .45333rem 0 !important; color: var(--jb-vice) !important; font-size: .29333rem !important; line-height: 1.6 !important; }

/* USDT 链上充值面板：白卡 + 二维码框 + 蓝色地址 */
.recharge-v3 .rcinner .chain-recharge {
  margin: .32rem .4rem 0 !important; padding: .42667rem !important; border: 0 !important; border-radius: .42667rem !important;
  background: #fff !important; box-shadow: var(--jb-shadow); color: var(--jb-ink-2) !important;
}
.recharge-v3 .rcinner .chain-recharge h3 { display: flex; align-items: center; gap: .16rem; color: var(--jb-ink) !important; font-size: .42667rem !important; font-weight: 800; }
.recharge-v3 .rcinner .chain-recharge:not(.jg-usdt-panel) button {
  min-height: 1.01333rem; padding: 0 .48rem !important; border: 0 !important; border-radius: .50667rem !important;
  background: linear-gradient(90deg, #3aa0ff 0%, #167de4 55%, #0d5fd0 100%) !important; color: #fff !important; font-weight: 700 !important;
}
.recharge-v3 .rcinner .chain-recharge > button:last-child { background: #eef5ff !important; color: var(--jb-brand) !important; }
/* 待转账订单：左边二维码，右边地址 + 复制（参照 9nww），其余信息整行 */
.recharge-v3 .rcinner .chain-recharge article {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .32rem; align-items: center;
  margin-top: .32rem; padding: .37333rem; border-radius: .37333rem; background: #f6f9ff;
}
.recharge-v3 .rcinner .chain-recharge article > * { grid-column: 1 / -1; }
.recharge-v3 .rcinner .chain-recharge article > canvas, .recharge-v3 .rcinner .chain-recharge article > svg, .recharge-v3 .rcinner .chain-recharge article > img { grid-column: 1; grid-row: span 2; }
.recharge-v3 .rcinner .chain-recharge article > .chain-address, .recharge-v3 .rcinner .chain-recharge article > button { grid-column: 2; }
.recharge-v3 .rcinner .chain-recharge article > .chain-address { align-self: end; margin: 0 !important; }
.recharge-v3 .rcinner .chain-recharge article > button { align-self: start; }
.recharge-v3 .rcinner .chain-recharge article canvas, .recharge-v3 .rcinner .chain-recharge article svg, .recharge-v3 .rcinner .chain-recharge article img {
  display: block; box-sizing: content-box; width: 3.2rem !important; height: 3.2rem !important; margin: .21333rem 0;
  padding: .21333rem; border-radius: .32rem; background: #fff; box-shadow: 0 0 0 .02667rem #e3ecfb;
}
.recharge-v3 .rcinner .chain-recharge .chain-address {
  color: var(--jb-brand) !important; font: 700 .37333rem/1.5 DIN, Menlo, monospace !important; word-break: break-all;
}
.recharge-v3 .rcinner .chain-recharge article button { width: 100%; margin: .16rem 0 0 !important; }
.recharge-v3 .rcinner > .jg-wallet__help { margin-bottom: .8rem; }

/* 提现：整块白卡 */
.withdrawal-v3 .withdraw_wrap { height: auto !important; min-height: calc(100vh - 1.33333rem); justify-content: flex-start !important; }
.withdrawal-v3 .head_area { border-bottom: 0 !important; }
.withdrawal-v3 .withdraw_main .withdraw_choose .right-cion { mix-blend-mode: multiply; opacity: .55; }
.withdrawal-v3 .withdraw_main {
  margin: 0 .4rem; padding: 0 .37333rem .42667rem; border-radius: .42667rem; background: #fff; box-shadow: var(--jb-shadow);
}
.withdrawal-v3 .withdraw_main .jg-funds-title { margin: .37333rem 0 .26667rem; }
.withdrawal-v3 .withdraw_main .withdraw_choose {
  box-sizing: border-box; width: 100% !important; height: 1.33333rem !important; margin: 0 !important; padding: 0 .32rem !important;
  border: .02667rem solid #e3ecfb !important; border-radius: .37333rem !important; background: #f1f5fc !important;
}
.withdrawal-v3 .withdraw_main .withdraw_choose span { color: var(--jb-ink) !important; font-weight: 700 !important; }
.withdrawal-v3 .withdraw_main .tips { width: auto !important; margin: .16rem .05333rem 0 !important; color: var(--jb-vice) !important; font-size: .29333rem !important; }
.withdrawal-v3 .withdraw_main .money_input {
  box-sizing: border-box; width: 100% !important; margin: .32rem 0 0 !important; border-radius: .37333rem !important; background: #f1f5fc !important;
}
.withdrawal-v3 .withdraw_main .money_input .yang { color: var(--jb-brand) !important; font-weight: 800 !important; }
.withdrawal-v3 .withdraw_main .money_input .input { background: transparent !important; font-size: .42667rem !important; }
.withdrawal-v3 .withdraw_main .money_input .all {
  padding: .10667rem .26667rem !important; border-radius: .32rem !important; background: #e3efff !important;
  color: var(--jb-brand) !important; font-size: .32rem !important; font-weight: 700 !important;
}
.withdrawal-v3 .withdraw_main .usdtResult, .withdrawal-v3 .withdraw_main .result {
  width: auto !important; margin: .21333rem .05333rem 0 !important; color: var(--jb-vice) !important; font-size: .32rem !important;
}
.withdrawal-v3 .withdraw_main .result .text2 { color: var(--jb-ink) !important; font-weight: 800 !important; }
/* 余额全站通用：不再需要一键取回 / 场馆余额提示 */
.withdrawal-v3 .withdraw_main .result .gooneback, .withdrawal-v3 .withdraw_main .withdraw-talk { display: none !important; }
.withdrawal-v3 .withdraw_main .handlebtn {
  width: 100% !important; height: 1.17333rem !important; margin: .48rem 0 0 !important; border-radius: .58667rem !important;
  background: linear-gradient(90deg, #3aa0ff 0%, #167de4 55%, #0d5fd0 100%) !important; opacity: .45;
}
.withdrawal-v3 .withdraw_main .handlebtn.shinee { opacity: 1; box-shadow: 0 .10667rem .26667rem #167de44d; }
.withdrawal-v3 .withdraw_main .handlebtn > span { color: #fff !important; font-size: .42667rem !important; font-weight: 700 !important; }
/* 联系客服：做成 9nww 那种提示条 + 右侧按钮 */
.withdrawal-v3 .withdraw_main .server_tip {
  position: relative; display: block !important; min-height: .8rem; margin-top: .42667rem !important; padding: .37333rem 2.4rem 0 0;
  border-top: .02667rem dashed var(--jb-line); color: var(--jb-ink-2) !important; font-size: .32rem !important; line-height: .8rem; text-align: left;
}
.withdrawal-v3 .withdraw_main .server_tip i { color: var(--jb-brand) !important; }
.withdrawal-v3 .withdraw_main .server_tip:after {
  content: "联系客服"; position: absolute; right: 0; bottom: 0; padding: 0 .32rem; border-radius: .42667rem; line-height: .8rem;
  background: var(--jb-fill); color: #fff; font-size: .32rem; font-weight: 700; box-shadow: 0 .08rem .21333rem #167de440;
}
.withdrawal-v3 .bottom_tops { margin: auto .4rem .42667rem !important; padding-top: .42667rem !important; color: var(--jb-vice) !important; font-size: .26667rem !important; }
.withdrawal-v3 .bottom_tops span { color: #c46a00 !important; }

/* ---------- 投注页（PC28 房间，bet-room.js）：参照 pc28 比赛页排版——开奖卡片、页签、常驻投注区 ---------- */
.jg-bet-tabs { display: none; }
html.jg-bet-room, html.jg-bet-room body { overflow: hidden !important; }
/* 原样式用 :not(#\#)×3 提权，这里要多一个 id 才能盖过 */
html.jg-bet-room #app .lotteryaaa--zhuotou:not(#\#):not(#\#):not(#\#) { background: var(--jb-bg) !important; }
/* 只保留投注区：聊天记录、文字下注和 信用/桌投/快投/更多 底栏不再显示 */
html.jg-bet-room .lotteryaaa--zhuotou > .zhuotou-chatlist { display: none !important; }
html.jg-bet-room .lotteryaaa--zhuotou > .bet-bottom > .talkbet,
html.jg-bet-room .lotteryaaa--zhuotou > .bet-bottom > .talkbottom { display: none !important; }
html.jg-bet-room .lotteryaaa--zhuotou > .bet-bottom .moreselect { opacity: 0 !important; pointer-events: none !important; }

/* 开奖卡片：上一期开奖号码在上，本期期号、倒计时、余额在下 */
html.jg-bet-room .zhuotou-source-chrome .result-show-lottery {
  display: flex !important; flex-direction: column !important; position: relative;
  width: auto !important; margin: .26667rem .32rem 0 !important; padding: 0 !important;
  background: var(--jb-card) !important; border-radius: .32rem !important;
  box-shadow: var(--jb-shadow) !important; border: 1px solid var(--jb-line) !important;
}
html.jg-bet-room .zhuotou-source-chrome { background: var(--jb-bg) !important; }
html.jg-bet-room .result-show-lottery .show-lottery {
  order: 1; display: flex !important; flex-direction: column !important; align-items: center !important;
  height: auto !important; padding: .32rem .32rem .26667rem !important; background: transparent !important;
  border: 0 !important; position: relative;
}
html.jg-bet-room .result-show-lottery .show-lottery-one {
  font-size: .34667rem !important; color: var(--jb-ink-2) !important; font-weight: 600 !important;
  margin: 0 0 .21333rem !important; line-height: 1.3 !important;
}
html.jg-bet-room .result-show-lottery .show-lottery-one::after { content: '结果'; }
html.jg-bet-room .result-show-lottery .show-lottery-one i { color: var(--jb-brand) !important; font-style: normal; margin: 0 .05333rem; }
html.jg-bet-room .result-show-lottery .show-lottery-two .out {
  display: flex !important; align-items: center !important; gap: .13333rem; font-size: .37333rem !important;
}
html.jg-bet-room .result-show-lottery .show-lottery-two .out > span:not(.draw-label) {
  width: .93333rem !important; height: .93333rem !important; line-height: .93333rem !important;
  font-size: .45333rem !important; font-weight: 700 !important; border-radius: 50% !important;
  box-shadow: inset 0 -.05333rem 0 #0000001f, 0 .05333rem .16rem #167de42e;
}
html.jg-bet-room .result-show-lottery .show-lottery-two .out > i { color: var(--jb-assist) !important; font-style: normal; font-size: .37333rem !important; }
html.jg-bet-room .result-show-lottery .show-lottery-two .draw-label {
  margin-left: .16rem; padding: .08rem .21333rem; border-radius: .26667rem;
  background: var(--jb-soft) !important; color: var(--jb-brand) !important; font-size: .32rem !important; font-weight: 600;
}
html.jg-bet-room #app .result-show-lottery .show-lottery-down {
  position: absolute !important; right: .32rem !important; top: .32rem !important; margin: 0 !important;
  width: .42667rem !important; height: auto !important;
}
html.jg-bet-room .result-show-lottery .result-top {
  order: 2; display: flex !important; align-items: center !important; justify-content: space-between !important;
  height: 1.06667rem !important; padding: 0 .32rem !important; margin: 0 !important;
  border-top: 1px solid var(--jb-line) !important; background: transparent !important;
}
html.jg-bet-room #app .result-show-lottery .result-top .left, html.jg-bet-room #app .result-show-lottery .result-top .right { height: auto !important; min-height: 0 !important; margin: 0 !important; }
html.jg-bet-room .result-show-lottery .history-menu .van-dropdown-menu__bar { height: 0 !important; overflow: hidden; box-shadow: none !important; }
html.jg-bet-room .result-show-lottery .result-top::before, html.jg-bet-room .result-show-lottery .result-top::after { display: none !important; }
html.jg-bet-room .result-show-lottery .result-top .left {
  display: flex !important; flex-direction: row !important; align-items: center !important; gap: .16rem;
  width: auto !important; border: 0 !important; padding: 0 !important;
}
html.jg-bet-room .result-show-lottery .result-top .left p { font-size: .32rem !important; color: var(--jb-vice) !important; margin: 0 !important; }
html.jg-bet-room .result-show-lottery .result-top .left p i { color: var(--jb-ink) !important; font-weight: 700; font-style: normal; }
html.jg-bet-room .result-show-lottery .result-top .left span {
  min-width: 1.6rem; padding: .05333rem .16rem !important; border-radius: .16rem !important;
  background: var(--jb-soft) !important; color: var(--jb-brand) !important; border: 1px solid #cfe3ff;
  font-size: .37333rem !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; text-align: center;
}
html.jg-bet-room .result-show-lottery .result-top .right {
  display: flex !important; flex-direction: row !important; align-items: center !important; gap: .10667rem;
  width: auto !important; padding: 0 !important; border: 0 !important;
}
html.jg-bet-room .result-show-lottery .result-top .right p { margin: 0 !important; white-space: nowrap; font-size: .32rem !important; color: var(--jb-vice) !important; display: flex; align-items: center; gap: .05333rem; }
html.jg-bet-room .result-show-lottery .result-top .right p:last-child { color: var(--jb-ink) !important; font-weight: 700; font-size: .34667rem !important; }
html.jg-bet-room .result-show-lottery .result-top .right .balance-refresh { width: .37333rem !important; height: auto !important; }

/* 房间投注导航 */
html.jg-bet-room .jg-bet-tabs {
  display: flex; gap: .05333rem; margin: .21333rem .32rem 0; padding: .08rem;
  background: var(--jb-card); border-radius: .26667rem; box-shadow: var(--jb-shadow); border: 1px solid var(--jb-line);
}
#app .jg-bet-tabs button {
  flex: 1 1 auto; min-width: 0; padding-inline: 0; min-height: .82667rem; border: 0; border-radius: .18667rem; background: transparent;
  color: var(--jb-vice) !important; font-size: min(.34667rem, 3.5vw) !important; font-weight: 500 !important; line-height: 1.2; white-space: normal; overflow-wrap: anywhere;
}
#app .jg-bet-tabs button.is-active { background: var(--jb-fill); color: #fff !important; font-weight: 600 !important; box-shadow: 0 .05333rem .16rem #167de440; }

/* 投注区：原信用投注面板固定在页签下方，不再是弹窗 */
html.jg-bet-room .van-overlay:has(+ .pc28-standard-sheet--credit) { display: none !important; }
html.jg-bet-room .pc28-standard-sheet--credit {
  --jg-bet-bottom: max(0px, calc(100% - var(--visual-viewport-height, 100%) - var(--visual-viewport-top, 0px)));
  top: var(--jg-bet-top, 6rem) !important; left: 0 !important; right: 0 !important;
  bottom: var(--jg-bet-bottom) !important;
  height: auto !important; max-height: none !important; transform: none !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important; z-index: 9 !important;
}
html.jg-bet-room .pc28-standard-sheet--credit > .pc28-standard-sheet__head { display: none !important; }
html.jg-bet-room .pc28-standard-sheet--credit .pc28-standard-sheet__body,
html.jg-bet-room .pc28-standard-sheet--credit .pc28-credit-content { background: transparent !important; }
html.jg-bet-room .pc28-standard-sheet--credit .pc28-credit-center {
  margin: 0 .32rem !important; background: var(--jb-card) !important; border-radius: .32rem !important;
  border: 1px solid var(--jb-line); box-shadow: var(--jb-shadow); overflow: hidden !important;
  justify-content: flex-start !important;
}
html.jg-bet-room .pc28-credit-center .credit-right { flex: 1 1 auto !important; width: auto !important; min-width: 0; }
/* 左侧竖排玩法 */
html.jg-bet-room .pc28-credit-center .credit-groups {
  width: 2.13333rem !important; flex: none !important; margin: 0 !important; padding: .13333rem .10667rem !important; box-shadow: none !important;
  background: var(--jb-soft) !important; border-right: 1px solid var(--jb-line) !important;
}
html.jg-bet-room .pc28-credit-center .credit-groups::-webkit-scrollbar { display: none; }
#app .pc28-credit-center .credit-groups button {
  width: 100% !important; min-height: 1.06667rem !important; height: auto !important; margin: 0 0 .08rem !important;
  padding: .13333rem .08rem !important; border: 0 !important; border-radius: .21333rem !important;
  background: transparent !important; color: var(--jb-ink-2) !important;
  font-size: .32rem !important; font-weight: 500 !important; line-height: 1.3 !important;
}
#app .pc28-credit-center .credit-groups button::before, #app .pc28-credit-center .credit-groups button::after { display: none !important; }
#app .pc28-credit-center .credit-groups button span { font-size: .32rem !important; color: inherit !important; }
#app .pc28-credit-center .credit-groups button.active {
  background: var(--jb-fill) !important; color: #fff !important; font-weight: 600 !important;
  box-shadow: 0 .05333rem .16rem #167de440 !important;
}
/* 右侧玩法内容 */
html.jg-bet-room .pc28-credit-center .credit-right { background: var(--jb-card) !important; }
html.jg-bet-room .pc28-credit-center .credit-game-top { padding: .21333rem .26667rem 0 !important; border: 0 !important; background: transparent !important; }
#app .pc28-credit-center .credit-game-top button {
  color: var(--jb-vice) !important; font-size: .29333rem !important; border-radius: .37333rem !important;
  border: 1px solid var(--jb-line) !important; background: var(--jb-card) !important; box-shadow: none !important;
}
#app .pc28-credit-center .credit-game-top button[aria-pressed="true"] { color: var(--jb-brand) !important; border-color: var(--jb-brand) !important; background: var(--jb-soft) !important; }
html.jg-bet-room .pc28-credit-center .credit-play-section h3 {
  display: flex; align-items: center; gap: .13333rem; color: var(--jb-ink) !important;
  font-size: .34667rem !important; font-weight: 700 !important;
}
html.jg-bet-room .pc28-credit-center .credit-play-section h3::before {
  content: ''; width: .08rem; height: .32rem; border-radius: .04rem; background: var(--jb-fill);
}
/* 原弹窗把选项区限高 7.46667rem，固定在页面后会在下方留白；改为占满投注区剩余高度 */
html.jg-bet-room .pc28-credit-center .credit-game-scroll { padding-right: .26667rem !important; max-height: none !important; }
html.jg-bet-room .pc28-credit-center .credit-options {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .16rem !important;
}
#app .pc28-credit-center .credit-option {
  width: auto !important; margin: 0 !important; position: relative; border: 1px solid var(--jb-line) !important; border-radius: .21333rem !important;
  background: var(--jb-card) !important; box-shadow: 0 .02667rem .08rem #2c5fb00a !important;
  transition: border-color .15s, background-color .15s;
}
#app .pc28-credit-center .credit-option .credit-option-name { color: var(--jb-ink) !important; font-weight: 700 !important; }
#app .pc28-credit-center .credit-option .credit-option-odds { color: var(--jb-brand) !important; }
#app .pc28-credit-center .credit-option.active {
  border-color: var(--jb-brand) !important; background: #eaf3ff !important;
  box-shadow: 0 0 0 1px var(--jb-brand) inset, 0 .05333rem .16rem #167de42e !important;
}
#app .pc28-credit-center .credit-option.active::after {
  content: ''; position: absolute; right: -1px; top: -1px; width: .42667rem; height: .42667rem;
  border-radius: 0 .21333rem 0 .21333rem; background: var(--jb-brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
/* 底部下注栏：每注金额 + 筹码 + 立即投注 */
html.jg-bet-room .pc28-standard-sheet--credit .botconentent {
  flex: 0 0 auto !important; height: auto !important;
  margin: .21333rem 0 0 !important; padding: .26667rem .32rem calc(.26667rem + env(safe-area-inset-bottom)) !important;
  background: var(--jb-card) !important; border-radius: .37333rem .37333rem 0 0 !important;
  box-shadow: 0 -.05333rem .32rem #2c5fb014 !important; border-top: 1px solid var(--jb-line) !important;
}
html.jg-bet-room .botconentent .pc28-credit-amounts, html.jg-bet-room .botconentent .pc28-credit-amounts__bar { background: transparent !important; border: 0 !important; padding: 0 !important; }
#app .botconentent .moneyselectItem, #app .botconentent .quick-entry, #app .botconentent .bottom1-del {
  border: 1px solid var(--jb-line) !important; border-radius: .21333rem !important;
  background: var(--jb-soft) !important; color: var(--jb-ink-2) !important; font-size: .34667rem !important; font-weight: 600 !important;
}
#app .botconentent .moneyselectItem.active { background: var(--jb-fill) !important; color: #fff !important; border-color: transparent !important; }
#app .botconentent .setmoney {
  border: 1px solid var(--jb-brand) !important; border-radius: .21333rem !important; background: var(--jb-card) !important;
  color: var(--jb-ink) !important; font-size: max(16px, .37333rem) !important; font-weight: 700 !important;
}
html.jg-bet-room .botconentent .btoclassline { background: transparent !important; border: 0 !important; margin-top: .21333rem !important; padding: 0 !important; }
#app .botconentent .jqtouzhubnt, #app .botconentent .rtdivcontbtn {
  border-radius: .21333rem !important; background: transparent !important; color: var(--jb-vice) !important; font-size: .29333rem !important;
}
#app .botconentent .ljtouzhubtn {
  flex: 1 1 auto; height: 1.12rem !important; border-radius: .29333rem !important;
  background: var(--jb-fill) !important; color: #fff !important; font-size: .4rem !important; font-weight: 700 !important;
  box-shadow: 0 .10667rem .26667rem #167de44d !important; opacity: 1 !important;
}
#app .botconentent .ljtouzhubtn span:last-child { font-size: .29333rem !important; opacity: .85; font-weight: 500 !important; }
#app .botconentent .ljtouzhubtn.is-disabled { background: #c9d6ea !important; box-shadow: none !important; }
.jg-bet-idle { display: none; }
html.jg-bet-room:not(.jg-bet-docked) .jg-bet-idle {
  width: calc(100% - .64rem); box-sizing: border-box; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .16rem;
  margin: .21333rem .32rem 0; padding: 1.6rem .32rem; background: var(--jb-card); border-radius: .32rem;
  border: 1px solid var(--jb-line); box-shadow: var(--jb-shadow); color: var(--jb-vice); font-size: .32rem;
}
html.jg-bet-room .jg-bet-idle b { color: var(--jb-ink); font-size: .4rem; }
/* 开奖号码红蓝绿（bet-room.js 按数值打 data-jg-rgb） */
#app .lotteryaaa [data-jg-rgb="red"] { background: radial-gradient(circle at 35% 30%, #ff8a8a, #e5394a 70%) !important; color: #fff !important; }
#app .lotteryaaa [data-jg-rgb="blue"] { background: radial-gradient(circle at 35% 30%, #6cc4ff, #167de4 70%) !important; color: #fff !important; }
#app .lotteryaaa [data-jg-rgb="green"] { background: radial-gradient(circle at 35% 30%, #6fe3a2, #17a85a 70%) !important; color: #fff !important; }
#app .lotteryaaa .history-menu .kj_pop .pop_centent li div > i[data-jg-rgb] { border-radius: 50%; }
/* 3、9、27 项的玩法（龙虎、abc龙虎合、对子顺子豹子、红蓝绿等）每行 3 个，a/b/c 各占一行 */
html.jg-bet-room .pc28-credit-center .credit-options:has(> .credit-option:nth-child(3):last-child),
html.jg-bet-room .pc28-credit-center .credit-options:has(> .credit-option:nth-child(9):last-child),
html.jg-bet-room .pc28-credit-center .credit-options:has(> .credit-option:nth-child(27):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* 多档赔率（如三军 1:3.3/6.7/15）的玩法每行 3 个，赔率字号略小，避免溢出格子 */
html.jg-bet-room .pc28-credit-center .credit-options[data-jg-wide] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#app .pc28-credit-center .credit-options[data-jg-wide] .credit-option-odds { font-size: .29333rem !important; white-space: nowrap; letter-spacing: -.01rem; }
/* 红 / 蓝 / 绿 名称逐字上色（bet-room.js） */
#app .pc28-credit-center .credit-option-name .jg-rgb-ch { font-style: normal; }
#app .pc28-credit-center .credit-option-name .jg-rgb-ch[data-c="red"] { color: #e5394a !important; }
#app .pc28-credit-center .credit-option-name .jg-rgb-ch[data-c="blue"] { color: #167de4 !important; }
#app .pc28-credit-center .credit-option-name .jg-rgb-ch[data-c="green"] { color: #17a85a !important; }
/* 两面：大小单双、极大极小每行两个（占两列），四个组合仍一行四个 */
html.jg-bet-room .pc28-credit-center .credit-options[data-jg-sec="两面"] > .credit-option:nth-child(-n+4),
html.jg-bet-room .pc28-credit-center .credit-options[data-jg-sec="两面"] > .credit-option:nth-child(n+9) { grid-column: span 2; }
/* 点选累加金额（bet-room.js）：选项右上角显示已点金额，立即投注显示合计 */
#app .pc28-credit-center .credit-option[data-jg-amt] {
  border-color: var(--jb-brand) !important; background: #eaf3ff !important;
  box-shadow: 0 0 0 1px var(--jb-brand) inset, 0 .05333rem .16rem #167de42e !important;
}
#app .pc28-credit-center .credit-option[data-jg-amt]::after {
  content: attr(data-jg-amt); position: absolute; right: -1px; top: -1px; width: auto; height: auto;
  min-width: .42667rem; padding: .02667rem .10667rem; border-radius: 0 .21333rem 0 .21333rem;
  background: var(--jb-fill); color: #fff; font-size: .26667rem; font-weight: 700; line-height: 1.3;
}
/* 购彩篮、添加选号、追号依赖原来的勾选方式，点选累加模式下不显示 */
html.jg-bet-room .pc28-standard-sheet--credit .botconentent .rtdivcontbtn,
html.jg-bet-room .pc28-standard-sheet--credit .botconentent .spdzhhao { display: none !important; }
#app .botconentent .ljtouzhubtn.jg-armed { background: var(--jb-fill) !important; box-shadow: 0 .10667rem .26667rem #167de44d !important; }
.jg-bet-toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 10040;
  max-width: 80vw; padding: .26667rem .42667rem; border-radius: .21333rem;
  background: #0f1a33e6; color: #fff; font-size: .37333rem; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.jg-bet-toast.is-show { opacity: 1; }
.jg-bet-confirm {
  position: fixed; inset: 0; z-index: 3100; display: flex; align-items: center; justify-content: center;
  background: #0f1a3366; padding: 0 .64rem;
}
.jg-bet-confirm__card {
  width: 100%; max-width: 8.53333rem; background: #fff; border-radius: .37333rem; overflow: hidden;
  box-shadow: 0 .32rem .85333rem #0f1a3340; text-align: center;
}
.jg-bet-confirm__card h3 { margin: .42667rem 0 .16rem; font-size: .42667rem; color: var(--jb-ink); }
.jg-bet-confirm__card p { margin: 0 .42667rem .42667rem; font-size: .37333rem; color: var(--jb-ink-2); line-height: 1.5; }
.jg-bet-confirm__btns { display: flex; border-top: 1px solid var(--jb-line); }
#app ~ .jg-bet-confirm .jg-bet-confirm__btns button, .jg-bet-confirm .jg-bet-confirm__btns button {
  flex: 1; height: 1.17333rem; border: 0; background: #fff; font-size: .4rem !important; color: var(--jb-vice) !important;
}
.jg-bet-confirm .jg-bet-confirm__btns button[data-a="ok"] { color: var(--jb-brand) !important; font-weight: 700 !important; border-left: 1px solid var(--jb-line); }
/* 投注核对列表 */
.jg-bet-confirm__card h3 { margin-bottom: .05333rem; }
.jg-bet-confirm__card .jg-bet-confirm__issue { margin: 0 0 .21333rem; font-size: .32rem; color: var(--jb-vice); }
.jg-bet-confirm__table {
  margin: 0 .32rem; max-height: 45vh; overflow-y: auto; border: 1px solid var(--jb-line); border-radius: .21333rem;
  text-align: left; font-size: .34667rem; color: var(--jb-ink);
}
.jg-bet-confirm__row { display: grid; grid-template-columns: 1fr 1.6rem 1.6rem; align-items: center; padding: .18667rem .26667rem; border-top: 1px solid var(--jb-line); }
.jg-bet-confirm__row:first-child { border-top: 0; }
.jg-bet-confirm__row > span:nth-child(2), .jg-bet-confirm__row > span:nth-child(3) { text-align: right; }
.jg-bet-confirm__row > span:nth-child(2) { color: var(--jb-brand); }
.jg-bet-confirm__row > span:nth-child(3) { font-weight: 700; }
.jg-bet-confirm__row em { display: block; font-style: normal; font-size: .29333rem; color: var(--jb-vice); }
.jg-bet-confirm__row--head { position: sticky; top: 0; background: var(--jb-soft); color: var(--jb-vice); font-size: .29333rem; }
.jg-bet-confirm__card .jg-bet-confirm__sum { margin: .26667rem .32rem .37333rem; font-size: .37333rem; color: var(--jb-ink-2); }
.jg-bet-confirm__sum b { color: var(--jb-brand); }
/* 站点全局重置按钮颜色用了 :not(#\#)×4，这里多一层才能盖过 */
.jg-bet-confirm .jg-bet-confirm__btns button:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { color: var(--jb-vice) !important; font-size: .4rem !important; }
.jg-bet-confirm .jg-bet-confirm__btns button[data-a="ok"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { color: var(--jb-brand) !important; font-weight: 700 !important; }
.jg-bet-confirm__row--head > span:nth-child(2) { color: var(--jb-vice); }
.jg-bet-confirm__row .jg-rgb-ch { font-style: normal; font-weight: 700; }
.jg-bet-confirm__row .jg-rgb-ch[data-c="red"] { color: #e5394a; }
.jg-bet-confirm__row .jg-rgb-ch[data-c="blue"] { color: #167de4; }
.jg-bet-confirm__row .jg-rgb-ch[data-c="green"] { color: #17a85a; }
/* 尾球选项名已缩短（尾大双），不再需要原「长名称」的小字号 */
#app .pc28-credit-center .credit-options[data-jg-sec="尾球"] .credit-option-name-long { font-size: .37333rem !important; }

/* ---------- 开奖卡片（draw-card.js）：深蓝卡片、红蓝绿号码球、四项结果、倒计时环、咪牌 / 铃声 ---------- */
/* 原开奖区只保留历史开奖下拉（数据仍从这里读） */
html.jg-has-draw #app .zhuotou-source-chrome .result-show-lottery {
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
  min-height: 0 !important; height: auto !important;
}
html.jg-has-draw .zhuotou-source-chrome .result-show-lottery > .show-lottery,
html.jg-has-draw .zhuotou-source-chrome .result-show-lottery > .result-top,
html.jg-has-draw .zhuotou-source-chrome .right-set .mipai { display: none !important; }

.jg-draw {
  position: relative; margin: .26667rem .32rem 0; padding: .32rem .32rem .26667rem; border-radius: .42667rem;
  color: #fff; outline: none; overflow: hidden;
  background:
    radial-gradient(circle at 85% -10%, #3a7bff55, transparent 55%),
    radial-gradient(circle at 0% 110%, #17bdff33, transparent 50%),
    linear-gradient(160deg, #13235a 0%, #0c1840 55%, #0a1234 100%);
  box-shadow: 0 .21333rem .53333rem #0a12344d;
}
.jg-draw::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(#ffffff14 1px, transparent 1.4px); background-size: .42667rem .42667rem;
}
.jg-draw > * { position: relative; }
.jg-draw__head { display: flex; justify-content: space-between; align-items: flex-start; }
.jg-draw__head small { display: block; font-size: .29333rem; color: #9fb3e6; }
.jg-draw__head h2 { margin: .05333rem 0 0; font-size: .48rem; font-weight: 800; letter-spacing: .02667rem; }
.jg-draw__head h2 b { font-weight: 800; }
.jg-draw__side { text-align: right; }
.jg-draw__side > small { margin-top: .10667rem; font-size: .26667rem; color: #8ea3d6; }
.jg-draw__pills { display: flex; gap: .13333rem; justify-content: flex-end; }
.jg-draw__state {
  display: inline-flex; align-items: center; gap: .10667rem; height: .64rem; padding: 0 .21333rem; border-radius: .32rem;
  background: #0f3d3a; border: 1px solid #1f8f6d; color: #6ff0b9; font-size: .29333rem; font-weight: 600;
}
.jg-draw__state i { width: .18667rem; height: .18667rem; border-radius: 50%; background: #34e39a; box-shadow: 0 0 .16rem #34e39a; }
.jg-draw__state em { font-style: normal; }
.jg-draw__state.is-drawing { background: #3d300f; border-color: #a8832b; color: #ffd36a; }
.jg-draw__state.is-drawing i { background: #ffc53d; box-shadow: 0 0 .16rem #ffc53d; animation: jg-pulse 1s infinite; }
@keyframes jg-pulse { 50% { opacity: .3; } }
.jg-draw .jg-draw__calc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  height: .64rem; padding: 0 .24rem; border-radius: .32rem; border: 1px solid #ffffff3d; background: #ffffff14;
  color: #fff !important; font-size: .29333rem !important; font-weight: 600 !important;
}

/* 号码球 */
.jg-draw__balls { display: flex; align-items: center; justify-content: space-between; margin: .32rem .05333rem .29333rem; }
.jg-draw__op { font-style: normal; color: #8ea3d6; font-size: .37333rem; }
.jg-ball {
  position: relative; width: 1.33333rem; height: 1.33333rem; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 28%, #c7cfdd, #7a8396 60%, #4b5263);
  box-shadow: inset 0 -.08rem .16rem #00000040, 0 .10667rem .26667rem #00000059;
}
.jg-ball[data-c="red"] { background: radial-gradient(circle at 35% 28%, #ff9a9a, #e5394a 60%, #a3121f); }
.jg-ball[data-c="blue"] { background: radial-gradient(circle at 35% 28%, #8fd2ff, #1e7ff0 60%, #0b47a8); }
.jg-ball[data-c="green"] { background: radial-gradient(circle at 35% 28%, #8ff0b8, #18a957 60%, #0a6a33); }
.jg-ball__face {
  width: 62%; height: 62%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, #fff, #e9eef6); color: #0f1a33;
  font-size: .53333rem; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -.04rem .08rem #0000001f;
}
.jg-ball[data-c="red"] .jg-ball__face { color: #d0283a; }
.jg-ball[data-c="blue"] .jg-ball__face { color: #1663cf; }
.jg-ball[data-c="green"] .jg-ball__face { color: #12844a; }
.jg-ball--sum { width: 1.52rem; height: 1.52rem; box-shadow: 0 0 0 .08rem #f3c457, 0 0 .32rem #f3c45780, 0 .10667rem .26667rem #00000059; }

/* 大小 / 单双 / 龙虎 / 形态 */
.jg-draw__attrs {
  display: grid; grid-template-columns: repeat(4, 1fr); border-radius: .26667rem; overflow: hidden;
  background: #ffffff0f; border: 1px solid #ffffff1f;
}
.jg-draw__attr { position: relative; padding: .13333rem 0 .16rem; text-align: center; }
.jg-draw__attr + .jg-draw__attr::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: #ffffff24; }
.jg-draw__attr small { display: block; font-size: .26667rem; color: #9fb3e6; }
.jg-draw__attr b { display: block; margin-top: .02667rem; font-size: .42667rem; font-weight: 800; }
.jg-draw__attr b[data-v="大"], .jg-draw__attr b[data-v="龙"] { color: #ff8a8a; }
.jg-draw__attr b[data-v="小"] { color: #6cc4ff; }
.jg-draw__attr b[data-v="单"], .jg-draw__attr b[data-v="虎"] { color: #ffbe5c; }
.jg-draw__attr b[data-v="双"] { color: #5ee89a; }
.jg-draw__attr b[data-v="豹"], .jg-draw__attr b[data-v="豹子"] { color: #c79bff; }
.jg-draw__hint { margin: .16rem 0 0; text-align: center; font-size: .29333rem; color: #9fb3e6; }
.jg-draw__hint[hidden] { display: none; }

/* 下期倒计时 + 开关 */
.jg-draw__next {
  display: flex; align-items: center; gap: .26667rem; margin-top: .26667rem; padding: .21333rem .26667rem;
  border-radius: .32rem; background: #ffffff0f; border: 1px solid #ffffff1f;
}
.jg-draw__ring { position: relative; width: 1.17333rem; height: 1.17333rem; flex: none; }
.jg-draw__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jg-draw__ring circle { fill: none; stroke-width: 5; }
.jg-draw__ring circle.bg { stroke: #ffffff1f; }
.jg-draw__ring circle.fg { stroke: #38c7ff; stroke-linecap: round; stroke-dasharray: 169.6; transition: stroke-dashoffset .9s linear; }
.jg-draw.is-closed .jg-draw__ring circle.fg { stroke: #ffffff33; }
.jg-draw__ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .29333rem; color: #cbd6f5; }
.jg-draw__cd { flex: 1; min-width: 0; }
.jg-draw__cd small { display: block; font-size: .29333rem; color: #9fb3e6; white-space: nowrap; }
.jg-draw__cd strong { display: block; font-size: .64rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.jg-draw.is-closed .jg-draw__cd strong { font-size: .48rem; color: #ffd36a; }
.jg-draw .jg-draw__bal:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  padding: 0; border: 0; background: none; color: #9fb3e6 !important; font-size: .26667rem !important; text-align: left;
}
.jg-draw__bal b { color: #fff; font-weight: 700; }
.jg-draw__toggles { display: flex; gap: .21333rem; }
.jg-draw__toggles label { display: flex; flex-direction: column; align-items: center; gap: .08rem; font-size: .26667rem; color: #cbd6f5; }
.jg-draw__mipai .jg-switch:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  position: relative; width: 1.06667rem; height: .58667rem; padding: 0; border-radius: .32rem;
  border: 1px solid #ffffff33; background: #ffffff1f; transition: background .2s;
}
.jg-draw__mipai .jg-switch::after {
  content: ''; position: absolute; left: .05333rem; top: 50%; width: .45333rem; height: .45333rem; border-radius: 50%;
  background: #fff; transform: translateY(-50%); transition: left .2s; box-shadow: 0 .02667rem .08rem #0000004d;
}
.jg-draw__mipai .jg-switch[aria-checked="true"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { background: linear-gradient(90deg, #20c997, #34e39a); border-color: transparent; }
.jg-draw__mipai .jg-switch[aria-checked="true"]::after { left: calc(100% - .50667rem); }

/* 咪牌遮罩 */
.jg-scratch { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; transition: opacity .2s; z-index: 2; }
.jg-scratch.is-round { border-radius: 50%; }
.jg-scratch.is-gone { opacity: 0; pointer-events: none; }
.jg-ball .jg-scratch { box-shadow: none; }

/* 计算过程弹窗沿用投注核对样式 */
.jg-calc .jg-calc__row { grid-template-columns: 1fr auto; }
.jg-calc .jg-calc__row > span:nth-child(2) { color: var(--jb-ink); font-weight: 700; }
/* 开奖卡片紧凑版：整体缩小约四分之一，给投注区留出更多高度 */
.jg-draw { margin-top: .21333rem; padding: .24rem .26667rem .21333rem; border-radius: .37333rem; }
.jg-draw__head small { font-size: .26667rem; }
.jg-draw__head h2 { font-size: .42667rem; }
.jg-draw__side > small { margin-top: .05333rem; font-size: .24rem; }
.jg-draw__state { height: .53333rem; padding: 0 .16rem; font-size: .26667rem; }
.jg-draw__state i { width: .16rem; height: .16rem; }
.jg-draw .jg-draw__calc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { height: .53333rem; padding: 0 .18667rem; font-size: .26667rem !important; }
.jg-draw__balls { margin: .21333rem .10667rem .18667rem; }
.jg-draw__op { font-size: .32rem; }
.jg-ball { width: 1.06667rem; height: 1.06667rem; }
.jg-ball--sum { width: 1.2rem; height: 1.2rem; box-shadow: 0 0 0 .06667rem #f3c457, 0 0 .26667rem #f3c45780, 0 .08rem .21333rem #00000059; }
.jg-ball__face { font-size: .42667rem; }
.jg-draw__attr { padding: .08rem 0 .10667rem; }
.jg-draw__attr small { font-size: .24rem; }
.jg-draw__attr b { font-size: .37333rem; margin-top: 0; }
.jg-draw__hint { margin-top: .10667rem; font-size: .26667rem; }
.jg-draw__next { gap: .21333rem; margin-top: .18667rem; padding: .13333rem .21333rem; border-radius: .26667rem; }
.jg-draw__ring { width: .93333rem; height: .93333rem; }
.jg-draw__ring span { font-size: .24rem; }
.jg-draw__cd small { font-size: .26667rem; }
.jg-draw__cd strong { font-size: .53333rem; }
.jg-draw.is-closed .jg-draw__cd strong { font-size: .42667rem; }
.jg-draw__toggles { gap: .16rem; }
.jg-draw__toggles label { gap: .05333rem; font-size: .24rem; }
.jg-draw__mipai .jg-switch:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { width: .93333rem; height: .50667rem; }
.jg-draw__mipai .jg-switch::after { width: .38667rem; height: .38667rem; }
.jg-draw__mipai .jg-switch[aria-checked="true"]::after { left: calc(100% - .44rem); }
/* 开奖卡片再紧凑：去掉「最新开奖」小字，结果项标签和值同一行，号码球和倒计时区再缩小（约 190px 高） */
.jg-draw { margin-top: .16rem; padding: .18667rem .24rem .16rem; border-radius: .32rem; }
.jg-draw__head { align-items: center; }
.jg-draw__head:has(> .jg-draw__mipai) { flex-wrap: wrap; gap: .08rem .14rem; }
@supports not selector(:has(*)) {
  .jg-draw__head.jg-draw__head--mipai { flex-wrap: wrap; gap: .08rem .14rem; }
}
.jg-draw__mipai + .jg-draw__side { margin-inline-start: auto; }
.jg-draw__head > div:first-child > small { display: none; }
.jg-draw__head h2 { margin: 0; font-size: .4rem; }
.jg-draw__side { display: flex; align-items: center; gap: .13333rem; }
.jg-draw__side > small { margin: 0; order: -1; }
.jg-draw__state { height: .48rem; font-size: .24rem; }
.jg-draw .jg-draw__calc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { height: .48rem; padding: 0 .16rem; font-size: .24rem !important; }
.jg-draw__balls { margin: .16rem .21333rem .13333rem; }
.jg-ball { width: .90667rem; height: .90667rem; }
.jg-ball--sum { width: 1.01333rem; height: 1.01333rem; box-shadow: 0 0 0 .05333rem #f3c457, 0 0 .21333rem #f3c45780, 0 .05333rem .16rem #00000059; }
.jg-ball__face { font-size: .37333rem; }
.jg-draw__attr { display: flex; align-items: baseline; justify-content: center; gap: .10667rem; padding: .08rem 0; }
.jg-draw__attr small { display: inline; font-size: .24rem; }
.jg-draw__attr b { display: inline; font-size: .34667rem; }
.jg-draw__hint { margin-top: .08rem; font-size: .24rem; }
.jg-draw__next { margin-top: .13333rem; padding: .10667rem .18667rem; gap: .18667rem; }
.jg-draw__ring { width: .8rem; height: .8rem; }
.jg-draw__ring span { font-size: .21333rem; }
.jg-draw__cd small { font-size: .24rem; }
.jg-draw__cd strong { font-size: .45333rem; }
.jg-draw.is-closed .jg-draw__cd strong { font-size: .37333rem; }
.jg-draw .jg-draw__bal:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { font-size: .24rem !important; }
.jg-draw__toggles label { font-size: .21333rem; }
.jg-draw__mipai .jg-switch:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { width: .82667rem; height: .45333rem; }
.jg-draw__mipai .jg-switch::after { width: .34667rem; height: .34667rem; }
.jg-draw__mipai .jg-switch[aria-checked="true"]::after { left: calc(100% - .4rem); }
/* 卡片自带基准字号和行高，避免继承根字号把行高撑大；余额按钮、倒计时环图块级显示 */
.jg-draw { font-size: .32rem; line-height: 1.3; }
.jg-draw .jg-draw__bal:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { display: block; line-height: 1.3; margin-top: .02667rem; }
.jg-draw__ring svg { display: block; }
/* 顶部标题栏右侧的咪牌 / 铃声开关（draw-card.js），在 ☰ 左边 */
.jg-head-tools { position: absolute; top: 0; bottom: 0; right: 1.42667rem; display: flex; align-items: center; gap: .08rem; z-index: 2; }
.jg-head-tools .jg-head-tool:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .02667rem;
  width: .74667rem; height: 1.06667rem; padding: 0; border: 0; background: none;
  color: #fff !important; font-size: .21333rem !important; line-height: 1 !important; opacity: .55; transition: opacity .2s;
}
.jg-head-tool svg { width: .50667rem; height: .50667rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.jg-head-tool .off { display: none; }
.jg-head-tools .jg-head-tool[aria-checked="true"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { opacity: 1; }
.jg-head-tool[aria-checked="true"] svg { filter: drop-shadow(0 0 .08rem #ffffffb3); }
.jg-head-tool[data-t="sound"][aria-checked="false"] .off { display: inline; }
.jg-head-tool[data-t="mipai"][aria-checked="false"] svg path { opacity: .5; }

/* 卡片底部右侧改为余额 */
.jg-draw__wallet { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right; position: relative; padding-right: .58667rem; }
.jg-draw__wallet small { font-size: .24rem; color: #9fb3e6; }
.jg-draw__wallet b { font-size: .42667rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.15; }
.jg-draw .jg-draw__refresh:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: .48rem; height: .48rem; padding: 0;
  border: 0; border-radius: 50%; background: var(--refresh-bg, #ffffff1f); color: #cbd6f5 !important;
  display: flex; align-items: center; justify-content: center;
}
.jg-draw__refresh svg { width: .32rem; height: .32rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.jg-draw:not(.jg-draw--liuhe) .jg-draw__wallet { padding-right: 44px; }
.jg-draw:not(.jg-draw--liuhe) .jg-draw__refresh { min-width: 44px; min-height: 44px; --refresh-bg: radial-gradient(circle, #ffffff1f 12px, transparent 13px); }
.jg-draw:not(.jg-draw--liuhe) .jg-draw__refresh svg { width: max(17px, .38rem); height: max(17px, .38rem); }
.jg-draw__refresh.is-spin svg { animation: jg-spin .8s linear; }
@keyframes jg-spin { to { transform: rotate(360deg); } }
/* 房间名过长时省略，避免和顶栏右侧开关重叠 */
html.jg-has-draw .zhuotou-source-chrome .header .game-name span { display: inline-block; max-width: 3.89333rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
/* 咪牌：遮罩比球大一圈，边缘落在卡片底色上，不露球的红蓝绿；球本身保持原色和号码，刮到哪里露出哪里 */
.jg-ball .jg-scratch.is-round { inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); }
/* 去掉大小 / 单双 / 龙虎 / 形态这一行和咪牌提示，号码球放大 */
.jg-draw__attrs, .jg-draw__hint { display: none !important; }
.jg-draw__balls { margin: .26667rem .21333rem .21333rem; }
.jg-ball { width: 1.2rem; height: 1.2rem; }
.jg-ball--sum { width: 1.36rem; height: 1.36rem; box-shadow: 0 0 0 .06667rem #f3c457, 0 0 .26667rem #f3c45780, 0 .08rem .21333rem #00000059; }
.jg-ball__face { font-size: .48rem; }
.jg-draw__op { font-size: .37333rem; }
/* 倒计时上方的「开奖历史」入口 */
.jg-draw__cd small { display: flex; align-items: center; gap: .16rem; }
.jg-draw .jg-draw__hist:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  display: inline-flex; align-items: center; gap: .02667rem; height: .42667rem; padding: 0 .13333rem 0 .16rem;
  border: 1px solid #ffffff33; border-radius: .21333rem; background: #ffffff14;
  color: #cbe3ff !important; font-size: .24rem !important; line-height: 1 !important; white-space: nowrap;
}
.jg-draw__hist i { font-style: normal; font-size: .32rem; line-height: 1; margin-top: -.02667rem; }
/* 开奖历史下拉：与开奖卡片同款深蓝风格，号码为红蓝绿小球 */
html.jg-has-draw #app .history-menu .van-dropdown-item__content {
  background: linear-gradient(180deg, #13235a 0%, #0c1840 100%) !important; border-radius: 0 0 .37333rem .37333rem;
  box-shadow: 0 .21333rem .53333rem #0a12344d;
}
html.jg-has-draw #app .history-menu .kj_pop { background: transparent !important; color: #fff; }
html.jg-has-draw #app .history-menu .kj_pop .title {
  display: grid !important; grid-template-columns: 1.6rem 1.86667rem 1fr; align-items: center;
  height: auto !important; padding: .21333rem .32rem !important; background: #ffffff0d !important;
  color: #9fb3e6 !important; font-size: .29333rem !important; border: 0 !important;
}
html.jg-has-draw #app .history-menu .kj_pop .title span { width: auto !important; text-align: left !important; color: inherit !important; }
html.jg-has-draw #app .history-menu .kj_pop .title span:last-child { text-align: right !important; }
html.jg-has-draw #app .history-menu .kj_pop .pop_centent { background: transparent !important; }
html.jg-has-draw #app .history-menu .kj_pop li {
  display: grid !important; grid-template-columns: 1.6rem 1.86667rem 1fr; align-items: center;
  height: auto !important; padding: .18667rem .32rem !important; margin: 0 !important;
  border: 0 !important; border-top: 1px solid #ffffff14 !important; background: transparent !important;
  color: #cbd6f5 !important; font-size: .32rem !important;
}
html.jg-has-draw #app .history-menu .kj_pop li > span { width: auto !important; text-align: left !important; }
html.jg-has-draw #app .history-menu .kj_pop li > span:first-child { color: #6cc4ff !important; font-weight: 700; font-variant-numeric: tabular-nums; }
html.jg-has-draw #app .history-menu .kj_pop li > span:nth-child(2) { color: #8ea3d6 !important; font-size: .29333rem !important; }
html.jg-has-draw #app .history-menu .kj_pop li > div {
  display: flex !important; align-items: center; justify-content: flex-end; gap: .05333rem;
  width: auto !important; color: #8ea3d6 !important; font-size: .29333rem !important; white-space: nowrap;
}
html.jg-has-draw #app .history-menu .kj_pop li > div > i {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: .58667rem !important; height: .58667rem !important; margin: 0 !important; border-radius: 50% !important;
  font-style: normal; font-size: .29333rem !important; font-weight: 800; line-height: 1 !important; color: #fff !important;
  box-shadow: inset 0 -.04rem .08rem #00000033;
}
html.jg-has-draw #app .history-menu .kj_pop li > div > i:last-of-type { width: .64rem !important; height: .64rem !important; box-shadow: 0 0 0 .04rem #f3c457, inset 0 -.04rem .08rem #00000033; }
html.jg-has-draw #app .history-menu .search_more {
  background: transparent !important; color: #6cc4ff !important; border-top: 1px solid #ffffff14 !important;
  padding: .26667rem 0 !important; font-size: .32rem !important;
}
html.jg-has-draw #app .history-menu .kj_pop li > div > i:last-of-type { margin-right: .13333rem !important; }
html.jg-has-draw #app .history-menu .kj_pop li > div { color: #e6edff !important; font-weight: 600; }
/* 和值球与 A/B/C 同样大小，只保留金色外圈 */
.jg-ball--sum { width: 1.2rem; height: 1.2rem; }
/* 「开奖结果」整页的号码球红蓝绿（draw-card.js 打 data-jg-rgb） */
#app .result .ball[data-jg-rgb] { color: #fff !important; box-shadow: inset 0 -.05333rem .10667rem #00000033, 0 .05333rem .13333rem #0000001f; }
#app .result .ball[data-jg-rgb="red"] { background: radial-gradient(circle at 35% 28%, #ff9a9a, #e5394a 60%, #a3121f) !important; }
#app .result .ball[data-jg-rgb="blue"] { background: radial-gradient(circle at 35% 28%, #8fd2ff, #1e7ff0 60%, #0b47a8) !important; }
#app .result .ball[data-jg-rgb="green"] { background: radial-gradient(circle at 35% 28%, #8ff0b8, #18a957 60%, #0a6a33) !important; }

/* ---------- 下注功能页（bet-tools.js）：追号 + 00/27 保险 ---------- */
.jg-tools { display: grid; gap: .26667rem; padding: .32rem; background: var(--jb-bg); }
.jg-tools__card {
  padding: .37333rem .32rem; border-radius: .37333rem; background: var(--jb-card);
  border: 1px solid var(--jb-line); box-shadow: var(--jb-shadow); color: var(--jb-ink);
}
.jg-tools__card h3 { display: flex; align-items: center; gap: .16rem; margin: 0; font-size: .42667rem; font-weight: 800; }
.jg-tools__card h3::before { content: ''; width: .08rem; height: .37333rem; border-radius: .04rem; background: var(--jb-fill); }
.jg-tools__card h4 { margin: .37333rem 0 .16rem; font-size: .37333rem; font-weight: 700; color: var(--jb-ink); }
.jg-tools__desc { margin: .16rem 0 .26667rem; font-size: .32rem; line-height: 1.6; color: var(--jb-vice); }
.jg-tools__desc.is-err { color: #e5394a; }
.jg-tools__picked { display: flex; flex-wrap: wrap; align-items: center; gap: .13333rem; margin-bottom: .26667rem; font-size: .32rem; color: var(--jb-ink-2); }
.jg-tools__picked span { padding: .05333rem .18667rem; border-radius: .26667rem; background: var(--jb-soft); border: 1px solid var(--jb-line); }
.jg-tools__picked b { color: var(--jb-brand); }
.jg-tools__picked em { font-style: normal; color: var(--jb-assist); }
.jg-tools__btns { display: flex; gap: .21333rem; }
.jg-tools .jg-tools__btn:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  flex: 1; height: 1.06667rem; padding: 0 .26667rem; border-radius: .29333rem;
  border: 1px solid var(--jb-line); background: var(--jb-soft);
  color: var(--jb-ink-2) !important; font-size: .37333rem !important; font-weight: 700 !important;
}
.jg-tools .jg-tools__btn.is-primary:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  border-color: transparent; background: var(--jb-fill); color: #fff !important; box-shadow: 0 .08rem .21333rem #167de44d;
}
.jg-tools .jg-tools__btn.is-block:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { width: 100%; height: 1.17333rem; margin-top: .26667rem; }

.jg-ins__tag { margin-left: auto; padding: .04rem .18667rem; border-radius: .26667rem; background: #fff3e0; color: #c46a00; font-size: .26667rem; font-weight: 600; }
.jg-ins__nums { display: grid; grid-template-columns: 1fr 1fr; gap: .21333rem; }
.jg-tools .jg-ins__num:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  display: flex; align-items: center; gap: .21333rem; padding: .21333rem .26667rem; border-radius: .32rem;
  border: 1px solid var(--jb-line); background: var(--jb-card); color: var(--jb-ink) !important; text-align: left;
}
.jg-ins__num b {
  display: inline-flex; align-items: center; justify-content: center; width: .96rem; height: .96rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ff9a9a, #e5394a 60%, #a3121f); color: #fff; font-size: .42667rem; font-weight: 800;
  box-shadow: inset 0 -.05333rem .10667rem #00000033;
}
.jg-ins__num small { font-size: .32rem; color: var(--jb-vice); }
.jg-tools .jg-ins__num.is-on:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { border-color: var(--jb-brand); background: #eaf3ff; box-shadow: 0 0 0 1px var(--jb-brand) inset; }
.jg-ins__num.is-on small { color: var(--jb-brand); font-weight: 700; }
.jg-ins__num[disabled] { opacity: .5; }
.jg-ins__stake { display: flex; align-items: center; gap: .13333rem; margin-top: .26667rem; font-size: .34667rem; color: var(--jb-ink-2); }
.jg-ins__stake > span { margin-right: auto; font-weight: 600; }
.jg-ins__stake small { color: var(--jb-assist); font-size: .29333rem; }
.jg-tools .jg-ins__stake button:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  width: .85333rem; height: .85333rem; border-radius: .21333rem; border: 1px solid var(--jb-line); background: var(--jb-soft);
  color: var(--jb-brand) !important; font-size: .48rem !important; font-weight: 700 !important; line-height: 1 !important;
}
.jg-ins__stake input {
  width: 1.6rem; height: .85333rem; border-radius: .21333rem; border: 1px solid var(--jb-brand); background: #fff;
  text-align: center; font-size: .4rem; font-weight: 800; color: var(--jb-ink);
}
.jg-ins__quote { display: grid; grid-template-columns: 1fr 1fr; gap: .10667rem .32rem; margin-top: .26667rem; padding: .26667rem .32rem; border-radius: .26667rem; background: var(--jb-soft); border: 1px solid var(--jb-line); }
.jg-ins__quote > div { display: flex; justify-content: space-between; gap: .13333rem; font-size: .32rem; color: var(--jb-vice); }
.jg-ins__quote > div b { color: var(--jb-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.jg-ins__quote > div:first-child { grid-column: 1 / -1; }
.jg-ins__quote > div.is-total b { color: var(--jb-brand); font-size: .37333rem; }
.jg-ins__quote .jg-tools__desc { grid-column: 1 / -1; margin: 0; }
.jg-ins__list { display: grid; gap: .16rem; }
.jg-ins__item { padding: .21333rem .26667rem; border-radius: .26667rem; border: 1px solid var(--jb-line); background: var(--jb-card); }
.jg-ins__item-top { display: flex; justify-content: space-between; font-size: .34667rem; }
.jg-ins__item-top span { color: #17a85a; font-size: .29333rem; font-weight: 600; }
.jg-ins__item.is-done .jg-ins__item-top span { color: var(--jb-vice); }
.jg-ins__item-meta { margin-top: .05333rem; font-size: .29333rem; color: var(--jb-vice); }
.jg-ins__item-meta b { color: var(--jb-brand); }
.jg-tools { align-content: start; grid-auto-rows: max-content; }

/* ---------- 下注功能：页签 + 追号面板（bet-tools.js chaseSection） ---------- */
.jg-tools > [hidden] { display: none !important; }
.jg-tools__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .10667rem; padding: .10667rem; border-radius: .32rem; background: #e6eefc; }
.jg-tools .jg-tools__tabs button:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  height: .90667rem; border: 0; border-radius: .26667rem; background: transparent;
  color: var(--jb-vice) !important; font-size: .37333rem !important; font-weight: 700 !important;
}
.jg-tools .jg-tools__tabs button.is-on:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { background: #fff; color: var(--jb-brand) !important; box-shadow: 0 .05333rem .16rem #167de426; }

.jg-tools .jg-chase__link:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  margin-left: auto; padding: 0; border: 0; background: none; color: var(--jb-brand) !important; font-size: .32rem !important; font-weight: 600 !important;
}
.jg-chase__sec { padding: .29333rem 0; border-bottom: 1px dashed var(--jb-line); }
.jg-chase__sec:last-of-type { border-bottom: 0; }
.jg-chase__label { display: flex; align-items: baseline; gap: .16rem; font-size: .34667rem; font-weight: 700; color: var(--jb-ink); }
.jg-chase__label small { font-size: .28rem; font-weight: 400; color: var(--jb-assist); }
.jg-chase__row { display: flex; align-items: center; gap: .13333rem; margin-top: .21333rem; }
.jg-chase__row > .jg-chase__label { margin-right: auto; }
.jg-chase__unit { font-size: .32rem; color: var(--jb-vice); }
.jg-chase__help { margin: .13333rem 0 0; font-size: .29333rem; line-height: 1.5; color: var(--jb-vice); }

.jg-chase__codes, .jg-chase__chips, .jg-chase__modes { display: flex; flex-wrap: wrap; gap: .16rem; margin-top: .18667rem; }
.jg-chase__modes { display: grid; grid-template-columns: repeat(3, 1fr); }
.jg-tools .jg-chase__code:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#),
.jg-tools .jg-chase__chips button:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#),
.jg-tools .jg-chase__modes button:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  min-height: .8rem; padding: 0 .29333rem; border-radius: .4rem; border: 1px solid var(--jb-line); background: var(--jb-soft);
  color: var(--jb-ink-2) !important; font-size: .32rem !important; font-weight: 600 !important;
}
.jg-tools .jg-chase__modes button:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { border-radius: .26667rem; min-height: .90667rem; font-size: .34667rem !important; }
.jg-tools .jg-chase__code.is-on:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#),
.jg-tools .jg-chase__chips button.is-on:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#),
.jg-tools .jg-chase__modes button.is-on:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  border-color: var(--jb-brand); background: #eaf3ff; color: var(--jb-brand) !important; box-shadow: 0 0 0 1px var(--jb-brand) inset;
}
.jg-tools .jg-chase__code:not(.is-on):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { color: var(--jb-assist) !important; text-decoration: line-through; }
.jg-chase__code small { margin-left: .10667rem; font-size: .26667rem; color: #e5394a; font-weight: 700; }

.jg-step { display: inline-flex; align-items: center; gap: .08rem; }
.jg-tools .jg-step button:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  width: .8rem; height: .8rem; padding: 0; border-radius: .21333rem; border: 1px solid var(--jb-line); background: var(--jb-soft);
  color: var(--jb-brand) !important; font-size: .45333rem !important; font-weight: 700 !important; line-height: 1 !important;
}
.jg-step input {
  width: 1.6rem; height: .8rem; padding: 0; border-radius: .21333rem; border: 1px solid var(--jb-line); background: #fff;
  text-align: center; font-size: .37333rem; font-weight: 800; color: var(--jb-ink); -moz-appearance: textfield;
}
.jg-step input::-webkit-inner-spin-button, .jg-step input::-webkit-outer-spin-button,
.jg-chase__table input::-webkit-inner-spin-button, .jg-chase__table input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.jg-chase__row select {
  max-width: 5.6rem; height: .8rem; padding: 0 .26667rem; border-radius: .21333rem; border: 1px solid var(--jb-line); background: #fff;
  font-size: .32rem; font-weight: 600; color: var(--jb-ink);
}

.jg-chase__switch { display: flex; align-items: center; gap: .26667rem; margin-top: .26667rem; padding: .21333rem .26667rem; border-radius: .26667rem; background: var(--jb-soft); cursor: pointer; }
.jg-chase__switch > span { display: grid; gap: .04rem; margin-right: auto; }
.jg-chase__switch b { font-size: .34667rem; color: var(--jb-ink); }
.jg-chase__switch small { font-size: .28rem; color: var(--jb-vice); }
.jg-chase__switch input { position: absolute; opacity: 0; pointer-events: none; }
.jg-chase__switch i { position: relative; flex: none; width: 1.06667rem; height: .61333rem; border-radius: .32rem; background: #c9d5ea; transition: background .2s; }
.jg-chase__switch i::after { content: ''; position: absolute; top: .05333rem; left: .05333rem; width: .50667rem; height: .50667rem; border-radius: 50%; background: #fff; box-shadow: 0 .02667rem .08rem #0003; transition: transform .2s; }
.jg-chase__switch input:checked + i { background: var(--jb-brand); }
.jg-chase__switch input:checked + i::after { transform: translateX(.45333rem); }
.jg-chase__switch input:focus-visible + i { outline: 2px solid var(--jb-brand); outline-offset: 2px; }

.jg-chase__table { margin-top: .18667rem; border: 1px solid var(--jb-line); border-radius: .26667rem; overflow: hidden; font-variant-numeric: tabular-nums; }
.jg-chase__tr { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr 1.1fr 1.3fr; align-items: center; min-height: .85333rem; padding: 0 .16rem; font-size: .30667rem; color: var(--jb-ink-2); text-align: center; }
.jg-chase__tr + .jg-chase__tr { border-top: 1px solid var(--jb-line); }
.jg-chase__tr:nth-child(odd):not(.is-head) { background: #f8fbff; }
.jg-chase__tr.is-head { min-height: .69333rem; background: var(--jb-soft); font-size: .28rem; font-weight: 700; color: var(--jb-vice); }
.jg-chase__tr input { width: 1.2rem; height: .64rem; padding: 0; border-radius: .16rem; border: 1px solid var(--jb-line); background: #fff; text-align: center; font-size: .32rem; font-weight: 700; color: var(--jb-brand); -moz-appearance: textfield; }
.jg-chase__tr .is-up { color: #17a85a; font-weight: 700; }
.jg-chase__tr .is-down { color: #e5394a; font-weight: 700; }
.jg-tools .jg-chase__more:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
  display: block; width: 100%; margin-top: .13333rem; padding: .10667rem 0; border: 0; background: none; color: var(--jb-brand) !important; font-size: .32rem !important; font-weight: 600 !important;
}
.jg-chase__note { margin: .10667rem 0 0; font-size: .26667rem; line-height: 1.5; color: var(--jb-assist); }

.jg-chase__bar {
  position: sticky; bottom: -.32rem; z-index: 2; display: flex; align-items: center; gap: .26667rem;
  margin: .16rem -.32rem -.37333rem; padding: .26667rem .32rem calc(.26667rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--jb-line); border-radius: 0 0 .37333rem .37333rem; background: #fffffff2; backdrop-filter: blur(6px);
}
.jg-chase__bar:empty { display: none; }
.jg-chase__bar > div { display: grid; gap: .04rem; flex: 1; min-width: 0; }
.jg-chase__bar b { font-size: .34667rem; color: var(--jb-ink); }
.jg-chase__bar em { font-style: normal; color: var(--jb-brand); font-size: .42667rem; }
.jg-chase__bar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .28rem; color: var(--jb-vice); }
.jg-chase__bar .is-err { color: #e5394a; }
.jg-tools .jg-chase__bar .jg-tools__btn:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { flex: none; width: 2.8rem; }
.jg-tools .jg-tools__btn[disabled]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { opacity: .45; box-shadow: none; }

.jg-chase__empty, .jg-chase__ok { display: grid; justify-items: center; gap: .16rem; padding: .53333rem .26667rem .26667rem; text-align: center; }
.jg-chase__empty b, .jg-chase__ok b { font-size: .4rem; color: var(--jb-ink); }
.jg-chase__ok b { color: #17a85a; }
.jg-chase__empty p, .jg-chase__ok p { margin: 0 0 .16rem; font-size: .32rem; line-height: 1.6; color: var(--jb-vice); }
.jg-chase__empty .jg-tools__btn, .jg-chase__ok .jg-tools__btns { width: 100%; }
.jg-chase__warn { margin: .13333rem 0 0; padding: .16rem .21333rem; border-radius: .21333rem; background: #fff3e0; color: #c46a00; font-size: .29333rem; line-height: 1.5; }

/* 赌王 · 质感层（必须在 skin-blue.css 之后加载：线上 skin-blue.css 挂在 body 末尾）
 * 目标：去掉“糊”——更清晰的层次、统一的深钴蓝、细描边代替大面积淡阴影、克制的字重。
 * 只改外观，不改结构和交互。 */
:root {
  --jb-bg: #eef2f7;
  --jb-card: #ffffff;
  --jb-soft: #f4f7fb;
  --jb-line: #e1e7f0;
  --jb-ink: #0b1a38;
  --jb-ink-2: #36435e;
  --jb-vice: #66738d;
  --jb-assist: #8b97ad;
  --jb-brand: #1560d4;
  --jb-brand-2: #2f86ff;
  --jb-gold: #b8914a;
  --jb-fill: linear-gradient(180deg, #2b7ff2 0%, #1459cc 100%);
  --jb-navy: linear-gradient(180deg, #0f2150 0%, #0b1a42 100%);
  --jb-shadow: 0 0 0 1px #0f23500d, 0 1px 2px #0f23500a, 0 .21333rem .53333rem -.26667rem #0f23502e;
  --jb-shadow-sm: 0 0 0 1px #0f23500f, 0 1px 2px #0f23500d;
}
:root body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* ---------- 大厅 ---------- */
:root .hallPage .swiper-container { border-radius: .26667rem !important; box-shadow: var(--jb-shadow); }
:root .hallPage .swiper-container:after { background: linear-gradient(0deg, #0b1a3826 0%, transparent 40%); }
:root .hallPage .noticecontent { box-shadow: var(--jb-shadow-sm) !important; }
:root .hallPage .centerArea { box-shadow: var(--jb-shadow) !important; border-radius: .37333rem !important; }

/* 大厅顶栏的明暗切换和系统消息使用同一套玻璃胶囊样式。 */
:root .hallPage > .head_area .leftImg { display: none !important; }
:root .hallPage > .head_area .head_text { grid-column: 2; grid-row: 1; }
:root .hallPage > .head_area .right_menu { grid-column: 3; grid-row: 1; justify-self: end; display: flex !important; align-items: center; gap: .16rem; }
:root .hallPage .jg-mode-toggle { order: 1; }
:root .hallPage .jg-notice-btn { order: 2; }
:root .hallPage .jg-mode-toggle,
:root .hallPage .jg-notice-btn {
  height: .88rem; min-height: 32px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #fff, #f6f9ff);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 0 0 1px #0f235012, 0 .05333rem .18667rem -.02667rem #0f23501f, inset 0 1px 0 #fff;
  transition: opacity .15s, transform .22s cubic-bezier(.2, .9, .3, 1.25), box-shadow .2s, background-color .2s;
}
:root .hallPage .jg-mode-toggle { width: .88rem; min-width: 32px; color: var(--jb-ink-2); }
:root .hallPage .jg-mode-toggle svg { width: .45333rem; height: .45333rem; min-width: 17px; min-height: 17px; stroke-width: 1.8; }
:root .jg-notice-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: .88rem; min-width: 32px; padding: 0;
  color: var(--jb-ink) !important; font: inherit; font-size: .34667rem !important; font-weight: 600 !important; line-height: 1;
}
:root .jg-notice-btn svg { width: .48rem; height: .48rem; flex: none; fill: none; stroke: var(--jb-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root .jg-notice-btn svg path:first-child { fill: #1560d41f; }
:root .jg-notice-btn.has-unread::after {
  content: ''; position: absolute; top: .05333rem; right: .08rem; width: .18667rem; height: .18667rem; border-radius: 50%;
  background: #ff3b30; box-shadow: 0 0 0 2px #fff;
}
:root .hallPage .jg-mode-toggle:active, :root .jg-notice-btn:active { transform: scale(.94); }
/* 大厅不再显示滚动公告条（公告从右上角「公告」进入） */
:root .hallPage .noticecontent { display: none !important; }

/* 首页品牌横幅与顶栏 */
:root .jg-hero-hall { position: relative; --jg-hero-header: 52px; }
:root .jg-hero-hall > .head_area {
  position: absolute; inset: 0 auto auto 50%; z-index: 20; width: min(100%,540px); transform: translateX(-50%);
  grid-template-columns: minmax(0, 1fr) auto !important;
  height: var(--jg-hero-header) !important; background: transparent !important; pointer-events: none;
}
:root .jg-hero-hall > .maincontent { padding-top: var(--jg-hero-header); scroll-padding-top: var(--jg-hero-header); background: linear-gradient(160deg,#dcecfb,#fbfdff 6rem,#eaf1f8 14rem); }
:root .jg-hero-hall > .head_area :is(.jg-hero-brand, button) { pointer-events: auto; }
:root .jg-hero-hall > .head_area.is-scrolled :is(.jg-hero-brand, .jg-mode-toggle, .jg-notice-btn) { opacity: .4; }
@media (prefers-reduced-motion: reduce) {
  :root .jg-hero-hall > .head_area :is(.jg-hero-brand, .jg-mode-toggle, .jg-notice-btn) { transition: none; }
}
:root .jg-hero-hall > .head_area .head_text { display: none !important; }
:root .jg-hero-hall > .head_area .right_menu { grid-column: 2; }
.jg-hero-brand {
  transition: opacity .15s; position: relative; grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center;
  --jg-logo-inset: 9px; box-sizing: border-box; min-height: 40px; padding: 0 var(--jg-logo-inset); border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 1px #0f23500a, 0 .06rem .24rem #0f23500d;
}
.jg-hero-brand img { display: block; width: 136px; height: 32px; object-fit: contain; }
:root .jg-hero-hall .swiper-container { display: none !important; }
.jg-brand-hero:focus-visible { outline: 2px solid var(--jb-brand); outline-offset: -3px; }
.jg-brand-hero {
  display: block; text-decoration: none;
  position: relative; isolation: isolate; width: 100%; max-width: 540px; align-self: center; height: calc(clamp(224px, 60vw, 280px) + 8px - var(--jg-hero-header)); margin: 0;
  overflow: hidden; background: linear-gradient(180deg, #f8fbff, #eaf3ff 64%, #eef2f7);
}
.jg-brand-hero__copy { position: relative; z-index: 2; padding: calc(80px - var(--jg-hero-header)) 0 0 .6rem; width: 4.6rem; }
.jg-brand-hero__copy h2 {
  margin: 0; color: #173a68; font-family: inherit; font-size: clamp(26px, 7.4vw, 42px);
  font-weight: 800; line-height: 1.28; letter-spacing: -.02em;
}
.jg-brand-hero__copy p {
  margin: .42rem 0 0; color: #526d91; font-size: clamp(12px, .34rem, 17px);
  font-weight: 500; font-style: normal; line-height: 1.6; letter-spacing: .015em; white-space: nowrap;
}
.jg-brand-hero__person {
  position: absolute; z-index: 1; top: -.1rem; right: -.75rem;
  height: calc(100% + 1rem); width: auto; max-width: none; object-fit: contain; pointer-events: none;
}
.jg-brand-hero__person[src*="hall-hero-portrait"] {
  top: 0; right: 0; height: 100%; max-width: 58%; object-position: right center;
  mask-image: linear-gradient(to right, transparent, #000 22%);
}
.jg-brand-hero:has(.jg-brand-hero__person[src*="hall-hero-portrait"]) {
  background: linear-gradient(155deg,#bddbf4 0%,#f9fcff 39%,#e3f0fb 66%,#9dbfdf 100%);
}
.jg-brand-hero:has(.jg-brand-hero__person[src*="hall-hero-portrait"])::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 60%; pointer-events: none;
  background: var(--hall-portrait-scene) left top / 350% auto no-repeat;
  mask-image: linear-gradient(100deg,#000,transparent 98%); opacity: .42;
}
.jg-brand-hero .jg-brand-hero__copy {
  box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
  width: 48%; height: 100%; padding: 0 0 0 clamp(16px,5%,64px);
}
/* === 首页横幅 · 行楷（亮色原版行楷青墨 / 暗夜冰玉鎏金双主题自适应）=== */
.jg-brand-hero__copy.jg-xk-copy {
  /* 亮色模式：1:1 原版行楷青墨色系 */
  --xk-ink-1: #071832;
  --xk-ink-2: #153c73;
  --xk-ink-3: #0d2952;
  --xk-ink-4: #06142a;
  --xk-hi-1: #071836;
  --xk-hi-2: #154280;
  --xk-hi-3: #2b6cc2;
  --xk-hi-4: #0e2d5c;
  --xk-hi-5: #051229;
  --xk-gold-1: #071836;
  --xk-gold-2: #154280;
  --xk-gold-3: #2b6cc2;
  --xk-gold-4: #0e2d5c;
  --xk-gold-5: #051229;
  --xk-depth: rgba(7, 22, 48, 0.25);
  --xk-depth-hi: rgba(6, 20, 46, 0.36);
  --xk-depth-gold: rgba(6, 20, 46, 0.32);
  --xk-bevel: #ffffff;
  --xk-bevel-hi: #e6f3ff;
  --xk-bevel-gold: #e6f3ff;
  --xk-edge-hi: #06152e;
  --xk-edge-gold: #06152e;
  --xk-sub-svg-1: #0b2449;
  --xk-sub-svg-2: #1d4b88;
  --xk-sub-svg-3: #091d3b;
  --xk-sub-svg-sh: rgba(255, 255, 255, 0.9);

  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 55%;
  height: 100%;
  padding: 0 0 0 20px;
  box-sizing: border-box;
}

/* SVG 渐变与立体图层绑定 */
.jg-xk-copy .xk-i1 { stop-color: var(--xk-ink-1); }
.jg-xk-copy .xk-i2 { stop-color: var(--xk-ink-2); }
.jg-xk-copy .xk-i3 { stop-color: var(--xk-ink-3); }
.jg-xk-copy .xk-i4 { stop-color: var(--xk-ink-4); }
.jg-xk-copy .xk-h1 { stop-color: var(--xk-hi-1); }
.jg-xk-copy .xk-h2 { stop-color: var(--xk-hi-2); }
.jg-xk-copy .xk-h3 { stop-color: var(--xk-hi-3); }
.jg-xk-copy .xk-h4 { stop-color: var(--xk-hi-4); }
.jg-xk-copy .xk-h5 { stop-color: var(--xk-hi-5); }
.jg-xk-copy .xk-g1 { stop-color: var(--xk-gold-1); }
.jg-xk-copy .xk-g2 { stop-color: var(--xk-gold-2); }
.jg-xk-copy .xk-g3 { stop-color: var(--xk-gold-3); }
.jg-xk-copy .xk-g4 { stop-color: var(--xk-gold-4); }
.jg-xk-copy .xk-g5 { stop-color: var(--xk-gold-5); }
.jg-xk-copy .xk-s1 { stop-color: var(--xk-sub-svg-1); }
.jg-xk-copy .xk-s2 { stop-color: var(--xk-sub-svg-2); }
.jg-xk-copy .xk-s3 { stop-color: var(--xk-sub-svg-3); }

.jg-xk-copy .xk-sh { fill: var(--xk-depth); }
.jg-xk-copy .xk-sh-hi { fill: var(--xk-depth-hi); }
.jg-xk-copy .xk-sh-gold { fill: var(--xk-depth-gold); }
.jg-xk-copy .xk-bv { fill: var(--xk-bevel); }
.jg-xk-copy .xk-bv-hi { fill: var(--xk-bevel-hi); }
.jg-xk-copy .xk-bv-gold { fill: var(--xk-bevel-gold); }
.jg-xk-copy .xk-sub-sh { fill: var(--xk-sub-svg-sh); }
.jg-xk-copy .xk-edge-hi { stroke: var(--xk-edge-hi); }
.jg-xk-copy .xk-edge-gold { stroke: var(--xk-edge-gold); }

/* 主标题：行楷青墨 */
.jg-xk-copy .jg-xk-h2 {
  margin: 0;
  max-width: 100%;
  line-height: 0;
}
.jg-xk-copy .jg-xk-h2-svg {
  display: block;
  width: 196px;
  max-width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
  user-select: none;
}

/* 首页横幅副文案 */
.jg-xk-copy .jg-xk-bracket-box {
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  padding: 5px 10px;
}
.jg-xk-copy .jg-xk-sub-svg {
  display: block;
  width: 152px;
  max-width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 360px) {
  .jg-brand-hero .jg-brand-hero__copy.jg-xk-copy { width: 51%; padding-left: 14px; }
}
.jg-brand-hero .jg-brand-hero__copy p { margin: 0; white-space: normal; }
.jg-brand-hero__copy p:not(:empty)::before {
  content: ""; display: block; width: 2.2em; height: 2px; margin: .65em 0 .5em;
  background: linear-gradient(90deg,#a77937,#e9c482);
}
@media (min-width: 1024px) {
  :root .jg-hero-hall { --jg-hero-header: 76px; }
  .jg-hero-brand { --jg-logo-inset: 12px; min-height: 56px; }
  .jg-hero-brand img { width: 176px; height: 42px; }
}

/* 支付方式和联系我们 */
.jg-footer { margin-top: .24rem; }
.jg-footer__panel { padding: .4rem .36rem .48rem; border-radius: .48rem; background: #f8f8fa; }
.jg-footer__payments h3 { margin: 0 0 .32rem; font-size: .38rem; font-weight: 600; color: var(--jb-ink); }
.jg-footer__payments ul { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0; margin: 0; list-style: none; gap: .08rem; }
.jg-footer__payments li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .08rem; min-height: .7rem; font-size: .28rem; font-weight: 600; color: var(--jb-ink); }
.jg-footer__payment-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: inherit; align-self: stretch; min-height: inherit; color: inherit; text-decoration: none; }
.jg-footer__payment-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: .12rem; }
.jg-footer__payments :is(img,svg) { width: .56rem; height: .56rem; flex: none; object-fit: contain; border-radius: 50%; }
.jg-footer button:focus-visible { outline: 2px solid var(--jb-brand); outline-offset: 2px; }

/* 游客账户卡：头像占位 + 两行说明，注册（玻璃描边）/ 登录（钴蓝实心）胶囊按钮，与顶栏按钮同一套材质 */
:root .hallPage .centerArea.jg-account-guest { height: auto !important; min-height: 1.70667rem; padding: .26667rem .32rem !important; }
:root .jg-account--guest { align-items: center; gap: .26667rem; }
:root .jg-account--guest .jg-account__guest {
  flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 1.06667rem minmax(0, 1fr); column-gap: .26667rem; row-gap: .05333rem;
  align-items: center; color: var(--jb-ink); font-size: .37333rem; font-weight: 600; line-height: 1.25; white-space: nowrap;
}
:root .jg-account--guest .jg-account__guest::before {
  content: ''; grid-row: 1 / span 2; width: 1.06667rem; height: 1.06667rem; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='3.6' fill='none' stroke='%231560d4' stroke-width='1.7'/%3E%3Cpath d='M5.6 19.2c1.1-3.1 3.6-4.8 6.4-4.8s5.3 1.7 6.4 4.8' fill='none' stroke='%231560d4' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / 58% no-repeat,
    linear-gradient(180deg, #f1f6ff, #e1ebfb);
  box-shadow: inset 0 0 0 1px #1560d41a, 0 1px 2px #0f235014;
}
:root .jg-account--guest .jg-account__guest::after {
  content: '登录后即可投注、存取款'; color: var(--jb-vice); font-size: .29333rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis;
}
:root .jg-account__auth { gap: .18667rem; flex: none; }
:root .jg-account .jg-account__auth button {
  width: auto; height: .88rem; min-height: 32px; padding: 0 .42667rem; border-radius: 999px;
  font-size: .34667rem !important; font-weight: 600 !important; letter-spacing: .02667rem;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1.25), box-shadow .2s, background-color .2s;
}
:root .jg-account .jg-account__auth [data-action="register"] {
  background: linear-gradient(180deg, #ffffff, #f5f8fe); color: var(--jb-ink-2) !important;
  box-shadow: 0 0 0 1px #0f235017, 0 .05333rem .16rem -.05333rem #0f23501f, inset 0 1px 0 #fff;
}
:root .jg-account .jg-account__auth [data-action="login"] {
  background: var(--jb-fill); color: #fff !important;
  box-shadow: 0 .08rem .21333rem -.02667rem #1459cc66, inset 0 1px 0 #ffffff47;
}
:root .jg-account .jg-account__auth button:active { transform: scale(.95); }

/* 首页登录账户卡。游客入口和个人中心共用的 VIP 等级色仍各自生效。 */
:root .hallPage .centerArea.jg-account-member {
  --account-ink: #102b50; --account-muted: #466487; --account-rim: #c8d9eb;
  --account-surface: linear-gradient(106deg,#fcfdff 5%,#eff6ff 53%,#d9eafb);
  --account-arc: rgba(109,153,197,.18); --account-gloss: rgba(255,255,255,.8);
  --deposit-fill: linear-gradient(165deg,#337ee5,#1958b7); --deposit-border: #235fba;
  --withdraw-fill: linear-gradient(#fff,#eef6ff); --withdraw-ink: #234d7f; --withdraw-border: #b1c8e1;
  display: block; position: relative; isolation: isolate; overflow: hidden; container-type: inline-size;
  flex: none; height: auto !important; min-height: 0; padding: 0 !important; box-sizing: border-box;
  border: 1px solid var(--account-rim) !important; border-radius: 17px !important;
  background: var(--account-surface) !important;
  box-shadow: 0 4px 11px -7px #365a8190,inset 0 1px 0 var(--account-gloss) !important;
}
.jg-account-member::before, .jg-account-member::after {
  content: ""; pointer-events: none; position: absolute; z-index: -1;
  width: 300px; height: 300px; right: -138px; top: -233px; border-radius: 50%;
  border: 1px solid var(--account-arc); transform: rotate(-20deg) scaleX(1.3);
}
.jg-account-member::after { right: -116px; top: -221px; }
.jg-account-member .jg-account {
  position: relative; display: grid; grid-template-columns: 61px minmax(0,1fr) auto;
  align-items: center; gap: 13px; padding: 19px 17px 18px; box-sizing: border-box; color: var(--account-ink);
}
.jg-account-member .jg-account__profile {
  position: relative; display: grid; place-items: center; width: 60px; height: 66px;
  --f2: #8996a9; --b1: #f3f5f8; --b2: #c0ccdb; --bt: #344762;
}
:root :is(.jg-account__profile, .personPage .personal)[data-tier="bronze"] { --f1: #ffe2c4; --f2: #c07a45; --f3: #f6caa0; --f4: #8f5228; --b1: #ffe6cc; --b2: #d39462; --bt: #5a2e0f; --glow: #8f52283d; }
:root :is(.jg-account__profile, .personPage .personal)[data-tier="silver"] { --f1: #ffffff; --f2: #b8c6da; --f3: #f2f6fc; --f4: #8da2c0; --b1: #ffffff; --b2: #cfdaea; --bt: #2f4566; --glow: #4a6a9a33; }
:root :is(.jg-account__profile, .personPage .personal)[data-tier="gold"] { --f1: #fff3cf; --f2: #d6a94f; --f3: #fbe7b0; --f4: #b8862f; --b1: #fdeec4; --b2: #dcb265; --bt: #5b4113; --glow: #8a632047; }
:root :is(.jg-account__profile, .personPage .personal)[data-tier="sapphire"] { --f1: #d9ecff; --f2: #2f7cf0; --f3: #9fd0ff; --f4: #1747b8; --b1: #cfe6ff; --b2: #4a90f2; --bt: #0b2a66; --glow: #1747b84d; }
:root :is(.jg-account__profile, .personPage .personal)[data-tier="ruby"] { --f1: #ffe7c2; --f2: #e0485a; --f3: #ffd08a; --f4: #9e1730; --b1: #ffe1b3; --b2: #e86a5a; --bt: #5c0d18; --glow: #9e17304d; }
.jg-account-member .jg-account__frame { display: grid; place-items: center; }
.jg-account-member .jg-account__avatar {
  width: 54px; height: 54px; box-sizing: border-box; border: 2px solid var(--b1);
  outline: 1px solid var(--f2); box-shadow: 0 3px 8px #3f394421;
}
:root .jg-account-member .jg-account__profile[data-tier="bronze"] {
  --f2: #bc9a66; --b1: #fff3d7; --b2: #e9c38d; --bt: #5d3c19;
}
.jg-account-member .jg-account__vip {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px; position: absolute;
  left: 50%; bottom: -1px; transform: translateX(-50%); box-sizing: border-box;
  min-width: 44px; height: 17px; padding: 0 5px; white-space: nowrap;
  border: 1px solid var(--f2); border-radius: 10px; background: linear-gradient(155deg,var(--b1),var(--b2));
  color: var(--bt); font: 700 10px/1 Arial,sans-serif; letter-spacing: .4px;
}
.jg-account-member .jg-account__vip::before { content: none; }
.jg-account-member .jg-account__balance { flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; font-family: inherit; }
.jg-account-member .jg-account__label { display: flex; align-items: center; gap: 5px; color: var(--account-muted); font-family: inherit; font-size: 12px; font-weight: 550; line-height: 20px; }
.jg-account-member .jg-account__refresh { width: 44px; height: 44px; margin: -10px -8px; color: var(--account-muted) !important; }
.jg-account-member .jg-account__refresh svg { width: 17px; height: 17px; transform-origin: center; }
.jg-account-member .jg-account__value { display: flex; align-items: baseline; gap: 6px; max-width: 100%; }
.jg-account-member .jg-account__value strong {
  min-width: 0; font: 680 33px/1.06 system-ui,sans-serif; color: var(--account-ink);
  letter-spacing: -1.35px; font-variant-numeric: tabular-nums;
}
.jg-account-member .jg-account__value small { color: var(--account-muted); font: 650 10px/1.2 system-ui,sans-serif; letter-spacing: .35px; }
.jg-account-member .jg-account__actions { gap: 8px; }
.jg-account-member .jg-account__action {
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
  box-sizing: border-box; width: auto; min-width: 77px; min-height: 44px; padding: 0 11px;
  border: 1px solid var(--withdraw-border); border-radius: 13px; background: var(--withdraw-fill);
  color: var(--withdraw-ink); font-size: 14px !important; font-weight: 650 !important; line-height: 1.1 !important;
  white-space: nowrap; box-shadow: inset 0 1px 0 var(--account-gloss);
}
.jg-account-member .jg-account__action--deposit {
  color: white; background: var(--deposit-fill); border-color: var(--deposit-border);
  box-shadow: inset 0 1px 0 #ffffff38,0 3px 6px -3px #204b8c6b;
}
.jg-account-member .jg-account__action svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.jg-account-member .jg-account__action:active { transform: translateY(1px); }
@container (max-width: 420px) {
  .jg-account-member .jg-account { grid-template-columns: 48px minmax(0,1fr) auto; gap: 9px; padding: 15px 12px; }
  .jg-account-member .jg-account__profile { width: 48px; height: 56px; }
  .jg-account-member .jg-account__avatar { width: 45px; height: 45px; }
  .jg-account-member .jg-account__value { gap: 4px; }
  .jg-account-member .jg-account__value strong { font-size: 28px; letter-spacing: -1px; }
  .jg-account-member .jg-account__actions { gap: 5px; }
  .jg-account-member .jg-account__action { min-width: 63px; padding: 0 7px; gap: 4px; font-size: 13px !important; }
  .jg-account-member .jg-account__action svg { width: 15px; height: 15px; }
  .jg-account-member .jg-account--long { grid-template-columns: 48px minmax(0,1fr); }
  .jg-account-member .jg-account--long .jg-account__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@container (max-width: 335px) {
  .jg-account-member .jg-account { grid-template-columns: 48px minmax(0,1fr); row-gap: 12px; }
  .jg-account-member .jg-account__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}


/* ---------- 游戏大厅（hall-grid.js openLobby）：横幅、分类页签、房间卡片 ---------- */
:root .jg-lobby-sheet { background: linear-gradient(180deg, #eef5ff 0, var(--jb-bg) 3.2rem); }
:root .jg-lobby-sheet .jg-sheet__head { background: #ffffffb8; -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 #0f23500d; }
:root .jg-lobby-sheet .jg-sheet__title { font-weight: 600; }
:root .jg-lobby { padding: 0 0 calc(.8rem + env(safe-area-inset-bottom)); }
:root .jg-lobby__banners {
  touch-action: pan-y; user-select: none;
  margin: .26667rem .32rem .08rem; border-radius: .32rem; overflow: hidden;
  background: #dfe8f6; box-shadow: 0 .13333rem .37333rem -.16rem #1d4f9a3d;
}
:root .jg-lobby__banner, :root .jg-lobby__banner img { display: block; width: 100%; aspect-ratio: 1280 / 539; height: auto; }
:root .jg-lobby__dots { display: flex; justify-content: center; align-items: center; width: fit-content; margin: 0 auto .06rem; border-radius: 20px; background: transparent; }
:root .jg-lobby__dots button { display: grid; place-items: center; width: 24px; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer; }
:root .jg-lobby__dots button::after { content: ""; width: 6px; height: 6px; border-radius: 6px; background: #1d4f9a40; transition: width .2s ease, background-color .2s ease; }
:root .jg-lobby__dots button[aria-pressed="true"]::after { width: 16px; background: var(--jb-brand, #1677ff); }
:root .jg-lobby__banner:focus-visible { outline: 2px solid white; outline-offset: -3px; }
:root .jg-lobby__dots button:focus-visible { outline: 2px solid var(--jb-brand, #1677ff); outline-offset: -2px; }
:root .jg-lobby__sentry { display: block; height: 1px; margin-bottom: -1px; }
:root .jg-lobby__tabs {
  position: sticky; top: 0; z-index: 3; padding: .21333rem .32rem .2rem;
  background: #eef2f7db; -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  transition: box-shadow .25s;
}
:root .jg-lobby__tabs.is-stuck { box-shadow: 0 1px 0 #0f235012; }
/* 分类页签：四个等宽玻璃胶囊；钴蓝选中胶囊（.jg-lobby__ind）滑到 --i，按住可左右拖动 */
:root .jg-lobby__seg {
  --gap: .18667rem;
  position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gap);
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
:root .jg-lobby__seg button {
  position: relative; height: .96rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  box-shadow: 0 0 0 1px #0f235014, 0 1px 2px #0f23500f, 0 .05333rem .16rem -.08rem #0f235024, inset 0 1px 0 #fff;
  font-size: .34667rem !important; font-weight: 500 !important; letter-spacing: .02em; line-height: 1;
}
:root .jg-lobby__seg button:not(.is-on):active { background: linear-gradient(180deg, #f1f4f9 0%, #e9eef6 100%); }
:root .jg-lobby__ind {
  position: absolute; z-index: 1; top: 0; left: 0; height: 100%; width: calc((100% - (var(--n, 4) - 1) * var(--gap)) / var(--n, 4));
  border-radius: 999px; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #3a8bff 0%, #1f68e8 52%, #1757d2 100%);
  box-shadow: 0 0 0 1px #1556cc, inset 0 1px 0 #ffffff5c, inset 0 -1px 0 #0a3a9c40, 0 .08rem .21333rem -.08rem #1459ccad;
  transform: translateX(calc(var(--i, 1) * (100% + var(--gap))));
  transition: transform .46s cubic-bezier(.3, 1.28, .45, 1);
}
/* 顶部一层很淡的高光，像玻璃胶囊 */
:root .jg-lobby__ind::after { content: ''; position: absolute; left: 6%; right: 6%; top: 1px; height: 46%; border-radius: 999px 999px .21333rem .21333rem; background: linear-gradient(180deg, #ffffff38, #ffffff00); }
:root .jg-lobby__seg.is-dragging .jg-lobby__ind { transition: transform .1s cubic-bezier(.2, .8, .2, 1); }
:root .jg-lobby__lbl {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: .10667rem; height: 100%;
  color: var(--jb-ink-2); transition: color .25s;
}
:root .jg-lobby__icon {
  flex: none; width: 24px; height: 24px;
  fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
:root .jg-lobby__seg button.is-on { font-weight: 600 !important; }
:root .jg-lobby__seg button.is-on .jg-lobby__lbl,
:root .jg-lobby__seg.is-dragging button.is-target .jg-lobby__lbl { color: #fff; }
:root .jg-lobby__seg button.is-on .jg-lobby__icon,
:root .jg-lobby__seg.is-dragging button.is-target .jg-lobby__icon { stroke: #fff; }
/* 拖动时文字颜色跟随选中胶囊所在的页签 */
:root .jg-lobby__seg.is-dragging button.is-on:not(.is-target) .jg-lobby__lbl { color: var(--jb-ink-2); }
:root .jg-lobby__seg.is-dragging button.is-on:not(.is-target) .jg-lobby__icon { stroke: #000; }
/* 切换页签：内容按方向轻轻滑入 */
@keyframes jgLobbyNext { from { opacity: 0; transform: translateX(.37333rem); } }
@keyframes jgLobbyPrev { from { opacity: 0; transform: translateX(-.37333rem); } }
:root .jg-lobby__pane { padding-top: .16rem; }
:root .jg-lobby__pane[data-dir="next"] > * { animation: jgLobbyNext .38s cubic-bezier(.2, .8, .2, 1) backwards; }
:root .jg-lobby__pane[data-dir="prev"] > * { animation: jgLobbyPrev .38s cubic-bezier(.2, .8, .2, 1) backwards; }
@media (prefers-reduced-motion: reduce) {
  :root .jg-lobby__ind, :root .jg-lobby__lbl { transition: none; }
  :root .jg-lobby__pane > * { animation: none !important; }
}
/* 电子 / 真人页签嵌入原图册：去掉它自己的滚动和外边距，由大厅页统一滚动 */
:root .jg-lobby__pane > .jg-art { flex: none; overflow: visible; padding: 0 .32rem; }
:root .jg-lobby__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .24rem; padding: 0 .32rem; }
:root .jg-lobby__empty { margin: 1.2rem .64rem; text-align: center; color: var(--jb-assist); font-size: .34667rem; }
:root .jg-lobby__empty[hidden] { display: none; }
/* 房间卡片：有设计图时是整图 .jg-rcard__img，否则 CSS 绘制 */
:root .jg-rcard {
  --c1: #6cb8ff; --c2: #1f5fe0; position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; overflow: hidden;
  border: 1px solid #ffffffb3; border-radius: .32rem; cursor: pointer; text-align: left;
  background: radial-gradient(120% 80% at 80% 10%, #ffffff59 0%, #ffffff00 55%), linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: 0 .13333rem .32rem -.13333rem var(--c2), 0 1px 2px #0f235014;
}
:root .jg-rcard--violet { --c1: #b49bff; --c2: #6a46e0; }
:root .jg-rcard--amber { --c1: #ffd27a; --c2: #f0861c; }
:root .jg-rcard--rose { --c1: #ffa8bd; --c2: #e44a72; }
:root .jg-rcard--jade { --c1: #7fe9c1; --c2: #12a07a; }
:root .jg-rcard--teal { --c1: #7fe0f0; --c2: #1792b8; }
:root .jg-rcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
:root .jg-rcard__art { position: absolute; inset: 0; }
:root .jg-rcard__mark {
  position: absolute; left: .21333rem; top: .16rem; color: #fff; font-size: .64rem; font-weight: 800; font-style: italic; line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 .05333rem .16rem #0000002e;
}
:root .jg-rcard__ball {
  position: absolute; left: 50%; top: 52%; width: 1.49333rem; height: 1.49333rem; transform: translate(-50%, -50%); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: .53333rem; font-weight: 800; font-style: italic;
  background: radial-gradient(circle at 34% 28%, #ffffff 0, #ffd9de 10%, #f0475a 42%, #b3142a 78%, #7d0b1b 100%);
  box-shadow: 0 .10667rem .26667rem #0000003d, inset 0 -.08rem .16rem #00000026; text-shadow: 0 1px 2px #00000040;
}
:root .jg-rcard--jade .jg-rcard__ball { background: radial-gradient(circle at 34% 28%, #ffffff 0, #fff4cf 10%, #f2c14e 42%, #c88a17 78%, #8a5a08 100%); }
:root .jg-rcard__name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .53333rem .16rem .21333rem; text-align: center;
  color: #fff; font-size: .34667rem; font-weight: 700; line-height: 1.2; letter-spacing: .02667rem;
  background: linear-gradient(180deg, #00000000, #0000003d); text-shadow: 0 1px 3px #0000004d;
}
:root .jg-rcard--soon {
  cursor: default; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .08rem;
  background: linear-gradient(118deg, #ffffff00 22%, #ffffff8c 40%, #ffffff00 58%), radial-gradient(120% 70% at 85% 0%, #d6e7ff99 0%, #d6e7ff00 70%), linear-gradient(165deg, #f4f9ff 0%, #e8f1fd 100%); border-color: #ffffffd9; box-shadow: 0 .13333rem .37333rem -.16rem #1d4f9a3d, 0 1px 2px #0f23500d, inset 0 1px 0 #fff;
  color: var(--jb-vice); text-align: center;
}
:root .jg-rcard__lock { display: grid; place-items: center; width: .96rem; height: .96rem; margin-bottom: .05333rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #0f235012; }
:root .jg-rcard__lock svg { width: .48rem; height: .48rem; fill: none; stroke: var(--jb-assist); stroke-width: 1.8; stroke-linecap: round; }
:root .jg-rcard--soon b { color: var(--jb-ink-2); font-size: .32rem; font-weight: 600; }
:root .jg-rcard--soon small { color: var(--jb-assist); font-size: .26667rem; }
:root .jg-rcard--soon { cursor: pointer; font: inherit; }
:root .jg-rcard--soon:active { transform: scale(.97); }
/* 设计图卡片：图片自带圆角、边框和房间名，按钮本身透明 */
:root .jg-rcard.jg-rcard--art { display: block; aspect-ratio: 1192 / 1600; overflow: visible; border: 0; background: none; box-shadow: none; transition: transform .28s cubic-bezier(.32, 1.28, .5, 1); }
:root .jg-rcard--art:active { transform: scale(.97); }
:root .jg-rcard--art .jg-rcard__img { filter: drop-shadow(0 .08rem .16rem #1d4f9a2e); }
:root:not([data-jg-mode="dark"]) .jg-rcard__img--night, :root[data-jg-mode="dark"] .jg-rcard__img--day { display: none; }
/* 未开放房间说明页（hall-grid.js openSoon） */
:root .jg-soon { display: flex; flex-direction: column; gap: .32rem; padding: .32rem .32rem calc(.53333rem + env(safe-area-inset-bottom)); }
:root .jg-soon__hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: .10667rem;
  padding: .8rem .32rem .64rem; border: 1px solid #ffffffd9; border-radius: .32rem; text-align: center;
  background: linear-gradient(118deg, #ffffff00 22%, #ffffff8c 40%, #ffffff00 58%), radial-gradient(120% 70% at 85% 0%, #d6e7ff99 0%, #d6e7ff00 70%), linear-gradient(165deg, #f4f9ff 0%, #e8f1fd 100%);
  box-shadow: 0 .13333rem .37333rem -.16rem #1d4f9a3d, 0 1px 2px #0f23500d, inset 0 1px 0 #fff;
}
:root .jg-soon__mark {
  position: absolute; left: .32rem; top: .21333rem; color: #1560d41f; font-size: 1.6rem; font-weight: 800; font-style: italic; line-height: 1;
  letter-spacing: -.03em; pointer-events: none;
}
:root .jg-soon__lock { display: grid; place-items: center; width: 1.28rem; height: 1.28rem; border-radius: 50%; background: #fff; box-shadow: 0 .08rem .21333rem #1d4f9a24, 0 0 0 1px #0f235012; }
:root .jg-soon__lock svg { width: .61333rem; height: .61333rem; fill: none; stroke: var(--jb-brand); stroke-width: 1.8; stroke-linecap: round; }
:root .jg-soon__hero h3 { margin: .13333rem 0 0; color: var(--jb-ink); font-size: .53333rem; font-weight: 800; }
:root .jg-soon__hero p {
  margin: 0; padding: .05333rem .26667rem; border-radius: 1rem; background: #1560d414; color: var(--jb-brand); font-size: .32rem; font-weight: 600;
}
:root .jg-soon__desc { margin: 0 .05333rem; color: var(--jb-vice); font-size: .34667rem; line-height: 1.7; text-align: center; }
:root .jg-soon__sub { margin: .10667rem .05333rem 0; color: var(--jb-ink-2); font-size: .34667rem; font-weight: 700; }
:root .jg-soon__rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .21333rem; }
:root .jg-soon__room {
  display: flex; align-items: center; justify-content: space-between; min-height: 1.06667rem; padding: 0 .26667rem;
  border: 1px solid var(--jb-line); border-radius: .26667rem; background: var(--jb-card); color: var(--jb-ink); font: inherit; font-size: .34667rem; font-weight: 600; cursor: pointer;
}
:root .jg-soon__room svg { width: .37333rem; height: .37333rem; fill: none; stroke: var(--jb-assist); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root .jg-soon__room:active { background: var(--jb-soft); }
:root .jg-soon__back {
  margin-top: .16rem; height: 1.12rem; border: 0; border-radius: .29333rem; background: var(--jb-fill); color: #fff; font: inherit; font-size: .37333rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 .08rem .21333rem #1560d44d;
}
:root .jg-soon__room:focus-visible, :root .jg-soon__back:focus-visible, :root .jg-rcard--soon:focus-visible { outline: 2px solid var(--jb-brand-2); outline-offset: 2px; }
:root .jg-rcard:not(.jg-rcard--soon) { transition: transform .24s cubic-bezier(.2, .9, .3, 1.25), box-shadow .2s; }
:root .jg-rcard:not(.jg-rcard--soon):active { transform: scale(.96); }

/* 品牌主视觉与下方卡片列同宽（9.2rem 居中）、同圆角描边阴影，不再比卡片宽出一截；与账户卡之间留出卡片间距 */
:root .jg-hero-hall .jg-brand-hero {
  width: 9.2rem; max-width: calc(100% - .64rem); margin: 0 auto .24rem; box-sizing: border-box;
  border: 1px solid #dfcba6; border-radius: .32rem;
  box-shadow: 0 .13333rem .37333rem -.16rem #1d4f9a3d, 0 1px 2px #0f23500d, inset 0 1px 0 #fff;
}

/* 游客入口的淡蓝玻璃背景；暗夜见 display-mode.css */
:root .hallPage .centerArea.jg-account-guest {
  border: 1px solid #ffffffd9 !important; border-radius: .32rem !important; box-sizing: border-box;
  background: linear-gradient(115deg,#fffaf0 0%,#fbfdff 21%,#e3effb 80%,#d5e8f7) !important;
  box-shadow: 0 .13333rem .37333rem -.16rem #1d4f9a3d, 0 1px 2px #0f23500d, inset 0 1px 0 #fff !important;
}

/* 「我的」页顶部与大厅统一：浅色主视觉渐变、深色文字、同样的 VIP 头像框（等级由 Vue 标在 .personal 上）、
 * 玻璃余额卡（原 personBgX 蓝色条、钱包与刷新位图换成 CSS / 矢量）。 */
:root .personPage .personal { --f1: #e9edf3; --f2: #7f8ba0; --f3: #d3dae5; --f4: #5d697e; --b1: #eef1f6; --b2: #a7b2c3; --bt: #2c3646; --glow: #0f235033; }
:root .personPage .topArea { background: linear-gradient(180deg, #f8fbff, #eaf3ff 64%, #eef2f7) !important; }
:root .personPage .head_area .head_text { color: var(--jb-ink) !important; }
:root .personPage .personal .leftbox { position: relative; }
:root .personPage .personal .nickname, :root .personPage .personal .nickname > div { color: var(--jb-ink) !important; font-weight: 600; }
:root .personPage .personal .detail > div:not(.nickname), :root .personPage .personal .b_text { color: var(--jb-vice) !important; }
:root .personPage .personal .eyeimg img, :root .personPage .personal .right_arrow { filter: brightness(0) invert(.55); }
:root .personPage .personal .level_img { display: none !important; }
:root .personPage .personal .head_img {
  box-sizing: border-box; padding: 1.5px; border: .08rem solid transparent; border-radius: 50%;
  background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from 210deg, var(--f1), var(--f2), var(--f3), var(--f4), var(--f1)) border-box !important;
  box-shadow: 0 .05333rem .18667rem -.05333rem var(--glow);
}
:root .personPage .personal .jg-person-vip {
  position: absolute; left: .8rem; bottom: 0; transform: translateX(-50%); z-index: 1; height: .32rem; padding: 0 .13333rem; border-radius: 999px;
  font: italic 700 .2rem/.32rem "Noto Sans SC", Arial, sans-serif; letter-spacing: .02667rem; white-space: nowrap;
  color: var(--bt); background: linear-gradient(180deg, var(--b1), var(--b2)); box-shadow: 0 0 0 1.5px #fff, 0 1px 2px var(--glow);
}
:root .personPage .personBox { background: none !important; }
:root .personPage .personBox .topbox {
  display: flex; align-items: center; justify-content: space-between; width: auto !important; height: auto !important; margin: .10667rem .37333rem 0; padding: .32rem .37333rem;
  border: 1px solid #ffffffd9; border-radius: .32rem; box-sizing: border-box;
  background: linear-gradient(118deg, #ffffff00 22%, #ffffff8c 40%, #ffffff00 58%), radial-gradient(120% 70% at 85% 0%, #d6e7ff99 0%, #d6e7ff00 70%), linear-gradient(165deg, #f4f9ff 0%, #e8f1fd 100%); box-shadow: 0 .13333rem .37333rem -.16rem #1d4f9a3d, 0 1px 2px #0f23500d, inset 0 1px 0 #fff;
}
:root .personPage .personBox .topbox .pictextwrap { display: flex; align-items: center; gap: .10667rem; }
:root .personPage .personBox .topbox img[src*="purse"] { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 2 28 28'%3E%3Ccircle cx='16' cy='16' r='14' fill='%2326a17b'/%3E%3Cpath d='M9 9h14v4h-5v2.2c3.6.2 6.2 1 6.2 2s-2.6 1.8-6.2 2V25h-4v-5.8c-3.6-.2-6.2-1-6.2-2s2.6-1.8 6.2-2V13H9z' fill='%23fff'/%3E%3Cellipse cx='16' cy='17.2' rx='5.4' ry='1' fill='%2326a17b'/%3E%3C/svg%3E"); width: .45333rem; height: .45333rem; }
:root .personPage .personBox .l_Text { color: var(--jb-vice) !important; font-size: .32rem !important; font-weight: 500; }
:root .personPage .personBox .r_box { display: flex; align-items: center; gap: .13333rem; height: auto !important; }
:root .personPage .personBox .money_text { color: var(--jb-ink) !important; font-size: .56rem !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
:root .personPage .personBox .b_center { margin-top: .21333rem; }

/* 玩法入口：左侧 PC2.0 大卡跨两行，右侧 彩票/电子；下排 飞升/真人/体育。
 * 6 列网格：大卡与横卡各占 3 列，下排各占 2 列；卡片比例与透明图一致，图片（含文字）整张铺满。
 * 卡片底板为淡蓝毛玻璃，PC2.0 加细金边。暗夜底色在 display-mode.css。 */
:root .jg-play-grid--tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .21333rem; }
:root .jg-play-grid--tiles .jg-play {
  position: relative; isolation: isolate; grid-column: span 2; height: auto; aspect-ratio: 624 / 870;
  border: 1px solid #ffffffd9; border-radius: .32rem; box-sizing: border-box;
  background:
    linear-gradient(118deg, #ffffff00 22%, #ffffff8c 40%, #ffffff00 58%),
    radial-gradient(120% 70% at 85% 0%, #d6e7ff99 0%, #d6e7ff00 70%),
    linear-gradient(165deg, #f4f9ff 0%, #e8f1fd 100%);
  box-shadow: 0 .13333rem .37333rem -.16rem #1d4f9a3d, 0 1px 2px #0f23500d, inset 0 1px 0 #fff;
}
:root .jg-play-grid--tiles .jg-play--big { grid-column: span 3; }
:root .jg-play-grid--tiles .jg-play--pc20 { grid-row: span 2; aspect-ratio: auto; border-color: #dccb9c; box-shadow: 0 .13333rem .37333rem -.16rem #8a6a2a33, 0 1px 2px #0f23500d, inset 0 1px 0 #fff; }
:root .jg-play-grid--tiles .jg-play--world { aspect-ratio: 948 / 668; }
:root .jg-play-grid--tiles .jg-play--slots { aspect-ratio: 948 / 680; }
/* 图片绝对定位，不参与行高计算；大卡高度由右侧两张横卡决定 */
:root .jg-play-grid--tiles .jg-play__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* 底栏：iOS 式悬浮毛玻璃胶囊。外层只负责定位并保持透明（外层带 backdrop-filter 会让内层玻璃取不到页面内容），
 * 玻璃在 .jn-nav 本身；选中块可按住左右拖动。暗夜色在 display-mode.css。 */
:root #app .bottom-taps,
:root .jg-wallet-nav {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
:root #app .bottom-taps { padding: 0 .29333rem calc(.18667rem + env(safe-area-inset-bottom)); pointer-events: none; }
/* Telegram 内容区已避让宿主底边，胶囊只补设备还需要的安全区。 */
:root[data-telegram-entry] {
  --jg-nav-reserved-bottom: var(--tg-bottom, 0px);
  --jg-nav-bottom-gap: max(0px, max(34px, env(safe-area-inset-bottom, 0px)) - var(--jg-nav-reserved-bottom));
}
:root[data-telegram-fullscreen] { --jg-nav-reserved-bottom: var(--sf-tg-bottom, 0px); }
:root[data-telegram-entry] #app .bottom-taps { padding-bottom: var(--jg-nav-bottom-gap); }
:root[data-telegram-entry] .jg-wallet-nav { margin-bottom: var(--jg-nav-bottom-gap); }
:root #app .bottom-taps > .jn-nav, :root .jg-wallet-nav > .jn-nav { pointer-events: auto; }
:root .jn-nav, :root .jg-wallet-nav .jn-nav {
  height: 1.4rem; padding: 0 .10667rem; border-radius: .74667rem; isolation: isolate; touch-action: none;
  background: linear-gradient(180deg, #ffffffc7 0%, #f7f9fda3 100%);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid #ffffffbf;
  box-shadow: 0 .26667rem .8rem -.21333rem #0f235047, 0 .02667rem .08rem #0f235014, inset 0 1px 0 #fffffff2, inset 0 -1px 0 #0f23500a;
  -webkit-user-select: none; user-select: none;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root .jn-nav, :root .jg-wallet-nav .jn-nav { background: #fffffff7; }
}
:root .jn-nav__sel, :root .jg-wallet-nav .jn-nav__sel {
  top: .10667rem; bottom: .10667rem; margin-left: 0; border-radius: .58667rem;
  background: linear-gradient(180deg, #1560d41f, #1560d414); border: 1px solid #1560d424;
  box-shadow: inset 0 1px 0 #ffffffb3; -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: transform .5s cubic-bezier(.3, 1.3, .5, 1), width .3s, opacity .2s, scale .25s, background-color .2s;
}
:root .jn-nav.is-dragging .jn-nav__sel {
  scale: 1.1; background: #ffffff8c; border-color: #ffffffe6;
  box-shadow: 0 .16rem .48rem #0f235038, inset 0 1px 0 #fff, inset 0 0 0 1px #1560d41f;
  transition: opacity .2s, scale .25s, background-color .2s;
}
:root #app .jn-nav .jn-nav__item { color: #5f6b84 !important; }
:root #app .jn-nav .jn-nav__item.is-active, :root #app .jn-nav .jn-nav__item.is-target { color: var(--jb-brand) !important; }
:root #app .jn-nav.is-dragging .jn-nav__item.is-active:not(.is-target) { color: #5f6b84 !important; }
:root .jn-nav__icon { width: .6rem; height: .6rem; }
:root .jn-nav__icon svg { stroke-width: 1.75; }
:root .jn-nav__item.is-active .jn-nav__icon { transform: none; }
:root .jn-nav__item.is-active .jn-nav__icon svg { fill: #1560d424; }
:root .jn-nav__label { font-size: .26667rem; font-weight: 500; letter-spacing: .01333rem; }
:root .jn-nav__item.is-active .jn-nav__label { font-weight: 600; }
:root .jn-nav__center {
  width: 1.12rem; height: 1.12rem; border-radius: 50%; gap: 0;
  background: radial-gradient(120% 90% at 30% 8%, #6cb4ff 0%, transparent 55%), linear-gradient(180deg, #2b7ff2 0%, #1459cc 100%);
  box-shadow: 0 .10667rem .29333rem -.05333rem #1459cc8c, inset 0 1px 0 #ffffff8c, inset 0 -1px 0 #0000001f;
}
:root .jn-nav__center .jn-nav__icon { width: .48rem; height: .48rem; }
:root .jn-nav__center .jn-nav__label { font-size: .24rem; font-weight: 600; }
/* 上面统一给底栏项设了灰色，客服按钮在蓝底上要保持白色 */
:root #app .jn-nav .jn-nav__item--service, :root #app .jn-nav .jn-nav__item--service.is-active { color: #fff !important; }
:root .jn-nav__item--service.is-active .jn-nav__center { box-shadow: 0 0 0 .06667rem #1560d42e, 0 .10667rem .29333rem -.05333rem #1459cc8c, inset 0 1px 0 #ffffff8c; }
@media (max-width: 639.98px) {
  :root[data-telegram-entry] {
    --jg-nav-height: 64px;
    --jg-nav-side: max(10px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --jg-nav-clearance: calc(var(--jg-nav-height) + var(--jg-nav-bottom-gap) + 8px);
  }
  :root[data-telegram-entry] #app .bottom-taps { padding-inline: var(--jg-nav-side); }
  :root[data-telegram-entry] .jg-wallet-nav { width: calc(100% - 2 * var(--jg-nav-side)); max-width: none; }
  :root[data-telegram-entry] .jn-nav { box-sizing: border-box; height: var(--jg-nav-height); padding-inline: 7px; border-radius: 32px; }
  :root[data-telegram-entry] .jn-nav__item { gap: 4px; }
  :root[data-telegram-entry] .jn-nav__sel { box-sizing: content-box; padding-inline: 7px; margin-left: -8px; top: 4px; bottom: 4px; border-radius: 28px; }
  :root[data-telegram-entry] :is(#app, .jg-chat) .jn-nav .jn-nav__icon { width: 26px; height: 26px; }
  :root[data-telegram-entry] .jn-nav__icon img { width: 100%; height: 100%; }
  :root[data-telegram-entry] :is(#app, .jg-chat) .jn-nav .jn-nav__label { font-size: 11px; }
  :root[data-telegram-entry] :is(#app, .jg-chat) .jn-nav .jn-nav__center { width: 48px; height: 48px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { :root .jn-nav__sel { transition: opacity .2s; } }

/* ---------- 投注页 ---------- */
/* 顶栏与开奖卡片同色：深海军蓝，去掉亮青色 */
:root.jg-bet-room .zhuotou-source-chrome .header { background: var(--jb-navy) !important; box-shadow: none !important; }
/* 深蓝从顶栏延伸到开奖卡片中部，卡片“浮”在上面 */
:root.jg-bet-room #app .lotteryaaa--zhuotou:not(#\#):not(#\#):not(#\#) { background: linear-gradient(180deg, #0b1a42 0, #0b1a42 3.2rem, var(--jb-bg) 3.2rem) !important; }
:root .jg-draw {
  margin-top: 0; border-radius: .37333rem;
  background: radial-gradient(120% 80% at 90% -20%, #2a5bd04d, transparent 60%), linear-gradient(180deg, #13285e 0%, #0e1f4c 100%);
  box-shadow: 0 0 0 1px #ffffff14 inset, 0 .21333rem .53333rem -.16rem #0b1a4280;
}
:root .jg-draw::before { opacity: .25; }
:root .jg-draw__head h2 { font-weight: 700; letter-spacing: .04rem; }
:root .jg-draw__cd strong { font-weight: 700; }
:root .jg-draw__ring circle.fg { stroke: #5aa8ff; }
:root .jg-ball--sum { box-shadow: 0 0 0 .05333rem #e3c27e, 0 0 .21333rem #e3c27e59, 0 .08rem .21333rem #00000059; }

/* 页签 */
:root.jg-bet-room .jg-bet-tabs { border: 0; box-shadow: var(--jb-shadow-sm); padding: .06667rem; }
:root #app .jg-bet-tabs button { color: var(--jb-vice) !important; font-weight: 500 !important; }
:root #app .jg-bet-tabs button.is-active { background: var(--jb-ink); color: #fff !important; font-weight: 600 !important; box-shadow: 0 .05333rem .13333rem #0b1a3833; }

/* 投注面板 */
:root.jg-bet-room .pc28-standard-sheet--credit .pc28-credit-center { border: 0 !important; box-shadow: var(--jb-shadow) !important; }
:root.jg-bet-room .pc28-credit-center .credit-groups { background: var(--jb-soft) !important; border-right: 1px solid var(--jb-line) !important; }
:root #app .pc28-credit-center .credit-groups button { color: var(--jb-vice) !important; font-weight: 500 !important; position: relative; }
:root #app .pc28-credit-center .credit-groups button.active {
  background: #fff !important; color: var(--jb-brand) !important; font-weight: 600 !important;
  box-shadow: var(--jb-shadow-sm) !important;
}
:root #app .pc28-credit-center .credit-groups button.active::before {
  content: '' !important; display: block !important; position: absolute; left: 0; top: 28%; bottom: 28%; width: .08rem;
  border-radius: 0 .04rem .04rem 0; background: var(--jb-brand);
}
:root.jg-bet-room .pc28-credit-center .credit-play-section h3 { font-weight: 600 !important; color: var(--jb-ink) !important; }
:root.jg-bet-room .pc28-credit-center .credit-play-section h3::before { background: var(--jb-brand); }
:root #app .pc28-credit-center .credit-option {
  border: 1px solid var(--jb-line) !important; border-radius: .18667rem !important; box-shadow: none !important;
  background: var(--jb-card) !important; /* 用纯色：DarkReader 能转暗纯色，白色渐变会在暗夜下保持发白 */
}
:root #app .pc28-credit-center .credit-option .credit-option-name { font-weight: 600 !important; color: var(--jb-ink) !important; }
:root #app .pc28-credit-center .credit-option .credit-option-odds { color: var(--jb-brand) !important; font-weight: 500 !important; font-variant-numeric: tabular-nums; letter-spacing: .01333rem; }
:root #app .pc28-credit-center .credit-option.active,
:root #app .pc28-credit-center .credit-option[data-jg-amt] {
  border-color: var(--jb-brand) !important; background: #eef4ff !important; box-shadow: 0 0 0 1px var(--jb-brand) inset !important;
}
:root #app .pc28-credit-center .credit-game-top button { border-color: var(--jb-line) !important; color: var(--jb-vice) !important; }

/* 底部下注栏 */
:root.jg-bet-room .pc28-standard-sheet--credit .botconentent { border-top: 0 !important; box-shadow: 0 -1px 0 #0f23500f, 0 -.16rem .42667rem #0f23500d !important; }
:root #app .botconentent .moneyselectItem, :root #app .botconentent .quick-entry, :root #app .botconentent .bottom1-del {
  background: #fff !important; border-color: var(--jb-line) !important; color: var(--jb-ink-2) !important; font-weight: 500 !important;
}
:root #app .botconentent .moneyselectItem.active { background: var(--jb-ink) !important; color: #fff !important; font-weight: 600 !important; }
:root #app .botconentent .setmoney { border-color: var(--jb-line) !important; box-shadow: inset 0 0 0 1px var(--jb-brand); font-weight: 600 !important; font-variant-numeric: tabular-nums; }
:root #app .botconentent .ljtouzhubtn { background: var(--jb-fill) !important; font-weight: 600 !important; box-shadow: 0 .08rem .21333rem #1459cc4d, inset 0 1px 0 #ffffff40 !important; }
:root #app .botconentent .ljtouzhubtn.is-disabled { background: #dfe5ee !important; color: #8b97ad !important; box-shadow: none !important; }

/* 暗夜下的卡片文字、VIP、快捷图标颜色写在 display-mode.css 的 jg-night-materials 层（DarkReader 不改写该文件） */

/* ---------- 投注页低清位图换矢量 ----------
 * 原 back/menu/rules 为 20×35、34×28、26×26 的 PNG，在 3 倍屏被放大发虚；
 * img 的 content:url() 在 Blink/WebKit 下直接替换为 SVG，其他浏览器仍显示原图。 */
:root.jg-bet-room .zhuotou-source-chrome .header .back img {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 19'%3E%3Cpath d='M8.6 1.6 1.6 9.5l7 7.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root.jg-bet-room .zhuotou-source-chrome .header .right-set .set img {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 15'%3E%3Cpath d='M1.5 1.75h15M1.5 7.5h15M1.5 13.25h15' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
:root.jg-bet-room .pc28-credit-center .credit-game-top button img[src*="rules-"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.25' fill='%238b97ad'/%3E%3Cpath d='M5.9 6.1a2.15 2.15 0 1 1 3.05 1.95c-.6.28-.95.7-.95 1.35v.35' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.85' r='.95' fill='%23fff'/%3E%3C/svg%3E");
}
/* 筹码栏原用 494×60 的 longbutton.png 拉伸铺底，改为纯 CSS */
:root #app .botconentent .bottom1-select { background: var(--jb-soft) !important; border-radius: .21333rem !important; }

/* ======================= 全站细节 ======================= */
/* 二级页顶栏：标题加粗、底部细分隔线 */
:root #app .head_area .head_text,
:root .v3-secondary__header :is(h1, h2, .v3-secondary__title),
:root .agent-support-page .header .title {
  font-weight: 600 !important; color: var(--jb-ink) !important; font-size: .45333rem !important; letter-spacing: .01333rem;
}
:root #app .head_area:not(.hallPage > .head_area), :root .v3-secondary__header { box-shadow: 0 1px 0 #0f23500f; }

/* 返回箭头、列表右箭头：原为 16×25、10×16 等小 PNG，换成矢量（暗夜色见 display-mode.css） */
:root img.top_back, :root img.v3-secondary__back-img {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 25'%3E%3Cpath d='M12 3 3.5 12.5 12 22' fill='none' stroke='%230b1a38' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root img[src*="arrow-right"], :root img[src*="right-arrow"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2.5 2.5 8 8l-5.5 5.5' fill='none' stroke='%23b3bccb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 设置、安全、帮助、个人资料、设备信息：iOS 式分组圆角卡片 */
:root .Setting, :root .v3-secondary, :root .HelpCenter, :root .macinfo, :root .AccountDetails, :root .NgBetRecord,
:root #app div:has(> section.toppart > .part_item) { background-color: var(--jb-bg) !important; }
:root .set-list, :root .v3-secondary__group, :root .helpList, :root section.toppart:has(> .part_item) {
  margin: .26667rem .32rem 0 !important; border-radius: .32rem !important; overflow: hidden; background: #fff !important;
  box-shadow: var(--jb-shadow-sm); border: 0 !important;
}
:root .helpList .item.borderNone { margin-top: 0 !important; border-top: .21333rem solid var(--jb-bg); }
:root .macinfo > .lines { margin: 0 .32rem; background: #fff; }
:root .macinfo > .head_area + .lines { margin-top: .26667rem; border-radius: .32rem .32rem 0 0; }
:root .macinfo > .lines:last-child { border-radius: 0 0 .32rem .32rem; box-shadow: 0 .08rem .16rem -.08rem #0f235014; }

/* 空状态插画：原图 471px，缩到约 160px 宽，3 倍屏仍清晰 */
:root img[src*="/empty."], :root img[src*="/empty-"]:not([src*="empty-support"]) { width: 4.26667rem !important; height: auto !important; }

/* 路单图「大小 / 单双」切换：原亮青色渐变，与投注页其他选中态一致改深墨蓝 */
:root #app .btndivbox.btndivboxac { background: var(--jb-ink) !important; box-shadow: 0 .05333rem .13333rem #0b1a3833 !important; color: #fff !important; }

/* 旧紫色主题遗留的位图：色相转成站内钴蓝 */
:root img[src*="/invite."], :root img[src*="empty-support"], :root img.right_menu_refesh, :root .NgBetRecord .platform img { filter: hue-rotate(-55deg); }
:root .LifeVip .cardArea, :root .agent-support-page .quotaImg { position: relative; isolation: isolate; }
:root .LifeVip .cardArea::before, :root .agent-support-page .quotaImg::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: inherit; border-radius: inherit; filter: hue-rotate(-55deg);
}

/* ---------- 交互：按下反馈与过渡（减少动态效果时关闭） ---------- */
:root * { -webkit-tap-highlight-color: transparent; }
/* 列表行：按下整行轻微变暗 */
:root :is(.set-list_item, .v3-secondary__group > button, .helpList .top, .part_item_wrap, .ceterMenu_item, .menu_item, .item_left, .van-cell, .jg-sheet__group > *) {
  transition: background-color .18s ease;
}
:root :is(.set-list_item, .v3-secondary__group > button, .helpList .top, .part_item_wrap, .ceterMenu_item, .item_left, .van-cell):active { background-color: #0f23500d !important; }
/* 卡片、筹码、选项、主按钮：按下轻微缩小，松开带一点回弹 */
:root :is(.jg-play, .jg-art-card, .jg-hot__cover, .moneyselectItem, .credit-option, .ljtouzhubtn, .jg-account__action, .van-button, .menu_item, .center_item, .jg-draw__calc, .jg-draw__hist) {
  transition: transform .24s cubic-bezier(.2, .9, .3, 1.25), background-color .2s, color .2s, border-color .2s, box-shadow .2s, opacity .2s !important;
}
:root :is(.jg-play, .jg-art-card, .jg-hot__cover, .moneyselectItem, .credit-option, .ljtouzhubtn, .jg-account__action, .van-button, .menu_item, .center_item, .jg-draw__calc, .jg-draw__hist):active {
  transform: scale(.96) !important; transition-duration: .1s !important;
}
/* 页签、玩法分组：选中态切换带过渡 */
:root #app :is(.jg-bet-tabs button, .pc28-credit-center .credit-groups button, .van-tab, .navbars *) { transition: background-color .22s, color .22s, box-shadow .22s; }
/* 其余按钮：按下降低不透明度 */
:root button:not(.jn-nav__item), :root [role="button"] { transition: opacity .15s; }
:root button:not(.jn-nav__item):not(:disabled):active, :root [role="button"]:active { opacity: .78; }
/* 页面切换：新页面淡入（polish.js 打标记；只改不透明度，不影响页面内的 fixed 元素） */
@keyframes jg-page-in { from { opacity: 0; } to { opacity: 1; } }
:root .jg-page-in { animation: jg-page-in .26s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  :root .jg-page-in { animation: none; }
  :root :is(.jg-play, .jg-art-card, .jg-hot__cover, .moneyselectItem, .credit-option, .ljtouzhubtn, .jg-account__action, .van-button, .menu_item, .center_item):active { transform: none !important; }
}

.jg-brand-loading {
  position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center;
  background: transparent; padding: 24px;
}
@keyframes jg-brand-loading-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.jg-brand-loading__card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 164px; padding: 18px 22px 14px; box-sizing: border-box; border-radius: 24px;
  color: #19385f; text-align: center; background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 1px rgba(15, 35, 80, .05), 0 12px 26px -16px rgba(11, 30, 80, .5);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  /* 动画放在小块自身：放在外层会让毛玻璃取不到后面的页面 */
  animation: jg-brand-loading-in .2s ease both;
}
/* Logo 由矢量轮廓遮罩渲染：任何屏幕都清晰，颜色和闪光都在 CSS 里 */
.jg-brand-loading__logo { display: block; width: 120px; height: 147.1px; filter: drop-shadow(0 5px 10px rgba(21, 96, 212, .22)); animation: jg-logo-breathe 2.4s ease-in-out infinite; }
.jg-brand-loading__logo i {
  --jg-logo-mark: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 152 178'%3E%3Cpath fill='black' fill-rule='evenodd' d='M68 0L69 -0.2L72 -0.3L76 1L79 3.3L80.9 6L82 10L82.2 11L82 12L80.9 15L79 18L76.8 20L76.4 21L76.6 22L79.6 28L83.6 34L87.3 39L89.4 41L92.4 43L96 44.4L97 44.5L98 44.4L102 43.3L107 40.4L113 36.4L115.7 34L116.3 33L116.3 32L115 29L114.7 28L114.8 26L115 25L117 21L118 20L120 18.7L121 18.1L122 17.8L127 17.8L128 18L130 19L132.3 21L133.5 23L134.3 25L134.3 29L133.9 31L133.2 32L131 34.3L130 35L127 36.6L125.6 38L122 47L119.6 52L119 54L118 56.1L117 57.6L116 58.1L115 58L105 54.6L102 54.3L99 53.4L97 53.3L94 52.4L86 52.3L83 51.4L81 51.3L60 51.3L58 51.7L56 52.3L50 52.4L47 53.3L44 53.4L41 54.3L38 54.6L36 55.3L30 56.6L26 58.3L25 58.2L24 57.6L23 56L22.4 54L20 49L18.4 44L15.4 38L14 36.5L11 35L9.7 34L8 32L7 30L6.7 28L6.8 25L7.5 23L8.8 21L11 19L13 18L14 17.8L19 17.8L20 18L22 19L23.2 20L25 22L26 24L26.2 25L26.2 29L25.1 32L24.9 33L25.5 34L28 36.2L34 40.4L40 43.4L44 44.5L48 43.3L51.6 41L54 38.6L59.4 31L64.4 22L64.6 21L64.4 20L61.5 17L60 14L59.4 11L59.5 9L60.5 6L62 3.7L65 1.1ZM55 55L57 54.7L86 54.7L87 54.7L90 55.6L95 55.7L98 56.6L100 56.7L103 57.6L105 57.7L112 60L114.4 61L115.2 62L115.2 63L114 66L113.1 67L112 67.4L111 67.5L93 67.5L87 67.3L86 67.2L83 66.4L72 66.2L69 65.5L67 65.5L65 65.7L63 66.2L53 66.4L50 67.2L49 67.3L29 67.5L28 67.3L27 66.5L26 64L25.8 63L25.8 62L27 60.8L29 60.4L37 57.7L40 57.6L43 56.7L46 56.4L48 55.7L53 55.6Z'/%3E%3Cpath fill='black' fill-rule='evenodd' d='M95.6 68L98 67.5L110 67.5L111 67.6L112 68L112.4 69L112.1 70L108.2 78L107 79.4L106 79.3L105.7 79L103.2 75L101.5 73L99 70.9L95.8 69ZM1.3 72L3 71.7L45 71.8L54 73L57.9 74L62 75.6L66 77.9L68.8 80L71.8 83L74 86L75.2 88L77.1 92L79.1 97L82.6 107L83.1 108L84 109L85 108.8L86.1 107L87.8 103L87.9 101L87.3 99L79.6 81L77.4 75L77.2 74L77.2 73L78 72.1L80 71.8L86 71.9L90 72.7L92.1 74L93.1 75L94.4 77L101.2 93L110 115.9L111 117.9L112 118.2L113.1 117L125.9 87L131.7 74L132.4 73L133 72.4L134 71.9L136 71.8L147 71.8L148 72.1L148.7 73L148.4 75L139.3 97L122.1 138L120.1 142L119 143.5L117 144.9L115 145.6L112 145.8L109 145.6L107 145.1L105 144L103.2 142L101.6 139L96.1 126L93 119.4L92 119L91 119.9L86.5 129L84 133.4L83 134.2L82 134.2L81 133.6L79.3 132L75.9 128L73.5 124L60.5 95L58 91.6L55 89L53 87.8L51 86.9L47 85.9L45 85.6L14 85.4L12 85.3L10 84.8L8 84L6.4 83L5 81.7L3.6 80L1.9 77L0.7 74L0.5 73ZM14.2 93L16 92.8L23 92.8L24 93.1L24.8 94L25.1 95L25.1 97L25.1 129L25.4 131L26 131.6L27 132L28 132.1L34 132.1L37 131.9L39 131.4L42 130L43.5 129L45.4 127L46.7 125L47.6 122L47.2 119L44.4 111L41.2 103L39.5 100L38 98.2L36 96.3L32.9 94L33.6 93L35 92.8L43 92.8L45 93L48 93.8L51 95.3L53 97.1L55.3 100L58.3 106L66.7 126L69 130L72 133.8L75 136.6L79 139.2L81 140.1L84 141.2L90 142.3L91.1 143L90.5 144L88 145.2L84 146.2L79 146.4L75 145.6L72 144.5L69.1 143L66.3 141L63 137.8L62 137.6L61 137.9L56 141L51 143.3L46 144.8L41 145.6L38 145.8L9 145.8L7 145.6L6 145L5.6 144L5.5 143L5.6 101L6 99.1L6.5 98L8 95.9L9.1 95L11 93.8Z'/%3E%3Ctext x='76' y='170' text-anchor='middle' font-family='Arial,sans-serif' font-size='31' font-weight='700'%3Ejnd.com%3C/text%3E%3C/svg%3E");
  display: block; width: 100%; height: 100%;
  -webkit-mask: var(--jg-logo-mark) center / contain no-repeat; mask: var(--jg-logo-mark) center / contain no-repeat;
  background-image: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .22) 44%, rgba(255, 255, 255, .96) 50%, rgba(255, 255, 255, .22) 56%, transparent 62%), linear-gradient(180deg, #3ea2ff 0%, #1668ea 58%, #0c47c4 100%);
  background-size: 260% 100%, 100% 100%; background-repeat: no-repeat; background-position: 130% 0, 0 0;
  animation: jg-logo-sweep 2.4s cubic-bezier(.45, .05, .55, .95) infinite;
}
@keyframes jg-logo-sweep { 0% { background-position: 130% 0, 0 0; } 60%, 100% { background-position: -30% 0, 0 0; } }
@keyframes jg-logo-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.jg-brand-loading__card p { margin: 0 !important; font-size: 14px; font-weight: 500; line-height: 1.5; }
.jg-brand-loading__card button {
  border: 0; border-radius: 20px; background: #e9f2ff; color: #167de4;
  padding: 8px 16px; font: inherit; font-size: 13px; cursor: pointer;
}
.jg-brand-loading__card button[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .jg-brand-loading__card, .jg-brand-loading__logo, .jg-brand-loading__logo i { animation: none; } }

@property --jg-orbit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes jg-edge-orbit {
  to { --jg-orbit-angle: 360deg; }
}

/* 640px 起使用侧栏；按可用宽度排版，不区分设备型号。手机沿用原页面。 */
.jg-wide-nav,
.jg-pc-topbar-actions,
.jg-pc-hero-promo,
.jg-sec-more--pc,
.jg-footer__support,
.jg-sheet__back-brand,
.jg-card-scrim,
.jg-card-play,
.jg-edge-orbit { display: none; }
.jg-hall-bento, .jg-hall-bento__side { display: contents; }

/* 所有页面共用即时可视高度，避免地址栏或键盘伸缩后沿用旧 --vh。 */
#app { height: var(--visual-viewport-height, 100%); }
#realapp:not(.checkin-source-scroll-shell) { height: 100% !important; min-height: 0; }
/* 让没有独立滚动容器的长页面也能在可视区内滑到底。 */
#realapp.overflow-hidden { overflow-y: auto; }
#realapp > :is(.agency-rule-page, .About, .popularizeUrl:not(.agent-notice-page), .offlineDate, .WinLoseRecord, .DataRecord, .ClassStatic),
.index-container > .Findings { overflow-y: auto; }
/* 小窗或横屏下，开奖卡与投注区可一起上滑，给玩法列表和底部操作保留空间。 */
html.jg-bet-room #realapp { container: betting-room / size; }
@container betting-room (max-height: 420px) {
  html.jg-bet-room :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) { overflow-y: auto !important; }
  html.jg-bet-room :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) > .pc28-standard-sheet--credit {
    position: relative !important; inset: auto !important; flex: none;
    height: max(300px, 100cqh) !important;
  }
  .pc28-standard-sheet--credit .botconentent:has(.setmoney:focus) {
    position: fixed; inset-inline: 0; bottom: var(--jg-bet-bottom); z-index: 12;
  }
}
/* 背景图未配置或加载失败时，白色昵称仍有对比度。 */
.PersonalMain .topArea { background-color: #1c3153; }
.PersonalMain .topArea .head_area .top_back { filter: brightness(0) invert(1); }
/* 手机页面不横向漂移；个人中心只响应纵向滚动，保留双指缩放。 */
@media (max-width: 639px) {
  .jg-footer { padding-bottom: var(--jg-nav-clearance, calc(1.58667rem + env(safe-area-inset-bottom))); }
  html, body { overflow-x: clip; overscroll-behavior-x: none; }
  .personPage { touch-action: pan-y pinch-zoom; }
  :root .personPage .van-pull-refresh { overflow-x: hidden !important; overscroll-behavior-x: none; }
}

@media (min-width: 640px) {
  :root { --jg-rail: 84px; --jg-gutter: 24px; --jg-page-max: 1366px; font-size: 40px !important; }
  :root[data-jg-layout="hall"], :root[data-jg-layout="room"], :root[data-jg-layout="game"] { --jg-page-max: 1366px; }
  :root[data-jg-layout="auth"] { --jg-page-max: 1040px; }

  /* 9nww 同款边缘流光与卡片悬停遮罩/播放钮基础层 */
  .jg-edge-orbit {
    display: block;
    position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
    --jg-orbit-color: #0186fe;
    --jg-orbit-axis: 0deg;
    background: conic-gradient(
      from calc(var(--jg-orbit-axis) - 90deg + var(--jg-orbit-angle)),
      color-mix(in srgb, var(--jg-orbit-color) 95%, transparent) 0deg,
      color-mix(in srgb, var(--jg-orbit-color) 40%, transparent) 10deg,
      transparent 36deg,
      transparent 144deg,
      color-mix(in srgb, var(--jg-orbit-color) 40%, transparent) 170deg,
      color-mix(in srgb, var(--jg-orbit-color) 95%, transparent) 180deg,
      color-mix(in srgb, var(--jg-orbit-color) 40%, transparent) 190deg,
      transparent 216deg,
      transparent 324deg,
      color-mix(in srgb, var(--jg-orbit-color) 40%, transparent) 350deg,
      color-mix(in srgb, var(--jg-orbit-color) 95%, transparent) 360deg
    );
    -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    -webkit-mask-clip: content-box, border-box;
    mask-clip: content-box, border-box;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  .jg-edge-orbit--circle { border-radius: 999px; --jg-orbit-axis: 315deg; --jg-orbit-color: #fff; }
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .jg-edge-orbit {
      transition: opacity 200ms cubic-bezier(.4, 0, .2, 1);
      animation: jg-edge-orbit 4.8s linear infinite paused;
    }
  }

  .jg-card-scrim {
    display: block;
    position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
    background: rgb(0 0 0 / 0.2);
    -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
    opacity: 0;
    transition: opacity 300ms ease-out, backdrop-filter 300ms ease-out, -webkit-backdrop-filter 300ms ease-out;
  }
  .jg-card-play {
    position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none;
    opacity: 0; transition: opacity 300ms ease-out;
  }
  .jg-card-play__btn {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, #3ea3ff 0%, #0186fe 48%, #0066cc 100%);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.45), 0 6px 18px rgb(1 134 254 / 0.42);
    scale: 1; transition: scale 200ms cubic-bezier(0, 0, 0.2, 1);
  }
  .jg-card-play__btn svg { width: 22px; height: 22px; transform: translateX(1px); }

  /* transform 让原页面的 fixed 头尾以内容区为基准，弹窗仍由原组件负责。 */
  #app {
    position: relative;
    width: min(calc(100% - var(--jg-rail) - var(--jg-gutter) * 2), var(--jg-page-max)) !important;
    height: 100%; height: var(--visual-viewport-height,100dvh);
    margin-left: calc(var(--jg-rail) + (100% - var(--jg-rail) - min(100% - var(--jg-rail) - var(--jg-gutter) * 2, var(--jg-page-max))) / 2);
    transform: translateZ(0);
    transition: width 220ms cubic-bezier(.22, 1, .36, 1), margin-left 220ms cubic-bezier(.22, 1, .36, 1);
  }
  #realapp, #realapp > *, .index-container > * { max-width: 100%; }
  #realapp { min-width: 0; height: 100% !important; }
  .jn-nav, .jg-wallet-nav, .bottom-taps { display: none !important; }

  /* 9nww 风格可收起桌面左侧导航栏（默认 84px 收起 / >=1100px 260px 展开，手动按钮可切换） */
  .jg-wide-nav {
    position: fixed; top: 0; right: auto; bottom: 0; left: 0; inset: 0 auto 0 0; z-index: 3010;
    display: flex; flex-direction: column; width: var(--jg-rail); box-sizing: border-box;
    padding: max(14px, var(--jg-header-safe-top, env(safe-area-inset-top, 0px))) 8px max(12px, env(safe-area-inset-bottom, 0px));
    background: #fefefe; border-right: 1px solid rgb(223 230 242 / 0.85); color: #0b1220;
    overflow: visible; font-size: 14px;
    transition: width 220ms cubic-bezier(.22, 1, .36, 1);
  }
  .jg-wide-nav__scroll {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin; overscroll-behavior: contain; padding-bottom: 8px;
  }

  /* 顶部 [ 主页 | 游戏 ] 胶囊切换器 */
  .jg-wide-mode-nav { display: block; flex: none; }
  .jg-wide-mode {
    --jg-wide-mode-cut: #66738f;
    position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
    height: 48px; padding: 4px; border-radius: 999px;
    border: 1px solid rgb(223 230 242 / 0.85); background: rgb(255 255 255 / 0.85);
    box-shadow: 0 2px 10px rgb(44 79 133 / 0.06);
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch;
  }
  .jg-wide-mode.is-vertical {
    height: 90px; border-radius: 22px; grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px;
  }
  .jg-wide-mode__ind {
    position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
    width: calc((100% - 8px) / 2); pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  }
  .jg-wide-mode.is-game .jg-wide-mode__ind { transform: translate3d(100%, 0, 0); }
  .jg-wide-mode.is-vertical .jg-wide-mode__ind {
    right: 4px; bottom: auto; width: auto; height: calc((100% - 12px) / 2);
    transform: translate3d(0, 0, 0);
  }
  .jg-wide-mode.is-vertical.is-game .jg-wide-mode__ind {
    transform: translate3d(0, calc(100% + 4px), 0);
  }
  .jg-wide-mode__ind-face {
    display: block; width: 100%; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #3ea3ff 0%, #0186fe 48%, #0066cc 100%);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.45), 0 4px 14px rgb(1 134 254 / 0.34);
    scale: 1; transition: scale 180ms ease-out;
  }
  .jg-wide-mode:active .jg-wide-mode__ind-face { scale: 0.96; }
  .jg-wide-mode__tab {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 999px; padding: 0 8px; background: transparent; cursor: pointer;
    color: #66738f; font: inherit; font-size: 14px; font-weight: 700; line-height: 20px;
    transition: color .18s;
  }
  .jg-wide-mode__tab[aria-selected="true"] { color: #fff; --jg-wide-mode-cut: #0186fe; }
  .jg-wide-mode__svg { width: 18px; height: 18px; flex: none; }
  .jg-wide-mode.is-vertical .jg-wide-mode__tab { padding: 0; }
  .jg-wide-mode.is-vertical .jg-wide-mode__tab span { display: none; }

  /* 侧栏搜索按钮 */
  .jg-wide-search {
    position: relative; flex: none; display: flex; align-items: center; gap: 8px;
    width: 100%; height: 38px; margin: 12px 0 0; padding: 0 12px; box-sizing: border-box;
    border: 1px solid rgb(223 230 242 / 0.8); border-radius: 999px;
    background: #fff; color: #66738f; font: inherit; font-size: 13px; cursor: pointer;
    transition: border-color .18s, color .18s, background-color .18s;
  }
  .jg-wide-search:hover { color: #0b1220; border-color: #c8d6eb; }
  .jg-wide-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
  .jg-wide-nav.is-collapsed .jg-wide-search { width: 42px; height: 42px; margin-inline: auto; padding: 0; justify-content: center; }
  .jg-wide-nav.is-collapsed .jg-wide-search span { display: none; }

  /* 分隔线 + 骑在右侧边线上的圆形玻璃折叠钮 */
  .jg-wide-divider {
    position: relative; flex: none; height: 32px; margin-bottom: 2px;
  }
  .jg-wide-divider::before {
    content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: rgb(223 230 242 / 0.85);
  }
  .jg-wide-collapse {
    position: absolute; top: 50%; right: -28px; transform: translateY(-50%); z-index: 4;
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 999px;
    border: 1px solid rgb(255 255 255 / 0.85); background: rgb(255 255 255 / 0.72);
    -webkit-backdrop-filter: blur(8px) saturate(150%); backdrop-filter: blur(8px) saturate(150%);
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.12), inset 0 1px 0 #fff;
    color: #0b1220; cursor: pointer; scale: 1; transition: scale 200ms ease-out, background-color 200ms;
  }
  .jg-wide-collapse:hover { scale: 1.06; }
  .jg-wide-collapse svg {
    width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round;
    transform: rotate(180deg); transition: transform 200ms ease-out;
  }
  .jg-wide-collapse.is-collapsed svg { transform: rotate(0deg); }

  /* 菜单分组：游戏 + 个人中心 */
  .jg-wide-nav__section { padding-top: 6px; margin-top: 6px; }
  .jg-wide-nav__section + .jg-wide-nav__section { border-top: 1px solid rgb(223 230 242 / 0.75); }
  .jg-wide-nav__section > p { margin: 0; padding: 4px 12px 4px 16px; color: #858fa6; font-size: 13px; line-height: 20px; }
  .jg-wide-nav nav:not(.jg-wide-mode-nav) { display: grid; gap: 2px; }
  .jg-wide-nav nav:not(.jg-wide-mode-nav) :is(a, button) {
    position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 10px;
    height: 38px; min-height: 38px; width: 100%; border: 0; border-radius: 999px; padding: 0 12px 0 16px;
    box-sizing: border-box; text-decoration: none; background: transparent; color: #0b1220;
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
  }
  .jg-wide-nav nav:not(.jg-wide-mode-nav) svg {
    width: 19px; height: 19px; flex: none; fill: none; stroke: #66738f; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
    transition: stroke 150ms ease;
  }
  .jg-wide-nav nav:not(.jg-wide-mode-nav) :is(a, button):hover { background: #e8edf5; color: #0b1220; }
  .jg-wide-nav nav:not(.jg-wide-mode-nav) [aria-current="page"] {
    background: rgb(1 134 254 / 0.1) !important; color: #0186fe !important; font-weight: 700 !important;
  }
  .jg-wide-nav nav:not(.jg-wide-mode-nav) [aria-current="page"] svg { stroke: #0186fe !important; }
  .jg-wide-dot {
    position: static; margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
    background: #f04452; pointer-events: none;
  }
  .jg-wide-unread {
    position: static; margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
    border-radius: 999px; background: #f04452; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  }
  .jg-wide-badge {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    padding: 3px 8px; border-radius: 6px; background: #0186fe; color: #fff;
    font-style: normal; font-size: 11px; font-weight: 700; line-height: 1;
  }

  /* 收起态侧栏（84px） */
  .jg-wide-nav.is-collapsed .jg-wide-nav__section > p { display: none; }
  .jg-wide-nav.is-collapsed nav:not(.jg-wide-mode-nav) :is(a, button) {
    width: 44px; height: 42px; min-height: 42px; margin-inline: auto; padding: 0; justify-content: center;
  }
  .jg-wide-nav.is-collapsed nav:not(.jg-wide-mode-nav) :is(a, button) span,
  .jg-wide-nav.is-collapsed .jg-wide-badge { display: none; }
  .jg-wide-nav.is-collapsed .jg-wide-dot { position: absolute; top: 8px; right: 10px; margin-left: 0; }
  .jg-wide-nav.is-collapsed .jg-wide-unread { position: absolute; top: 5px; right: 5px; margin-left: 0; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; }

  /* 侧栏底部固定区：外观切换胶囊 + 客服 */
  .jg-wide-nav__foot {
    flex: none; display: grid; gap: 8px; margin-top: auto; padding: 8px 2px 2px;
    border-top: 1px solid rgb(223 230 242 / 0.65);
  }
  .jg-wide-theme {
    position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
    height: 42px; padding: 3px; border-radius: 999px; background: #eceff5;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jg-wide-theme.is-vertical {
    width: 44px; height: 82px; margin-inline: auto; border-radius: 20px;
    grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px;
  }
  .jg-wide-theme__ind {
    position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2);
    border-radius: 999px;
    background: linear-gradient(90deg, #3ea3ff 0%, #0186fe 48%, #0066cc 100%);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.4);
    transform: translate3d(0, 0, 0);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  }
  .jg-wide-theme.is-light .jg-wide-theme__ind { transform: translate3d(100%, 0, 0); }
  .jg-wide-theme.is-vertical .jg-wide-theme__ind {
    right: 3px; bottom: auto; width: auto; height: calc((100% - 8px) / 2);
    transform: translate3d(0, 0, 0);
  }
  .jg-wide-theme.is-vertical.is-light .jg-wide-theme__ind { transform: translate3d(0, calc(100% + 2px), 0); }
  .jg-wide-theme__btn {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
    border: 0; border-radius: 999px; padding: 0 6px; background: transparent; cursor: pointer;
    color: #66738f; font: inherit; font-size: 13px; font-weight: 700; transition: color .18s;
  }
  .jg-wide-theme__btn[aria-pressed="true"] { color: #fff; }
  .jg-wide-theme__btn svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .jg-wide-theme.is-vertical .jg-wide-theme__btn span { display: none; }

  .jg-wide-support {
    position: relative; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px;
    border-radius: 999px; text-decoration: none; color: #0b1220; font-size: 13px; font-weight: 700;
    transition: background-color 150ms ease;
  }
  .jg-wide-support:hover { background: #e8edf5; }
  .jg-wide-support[aria-current="page"] { background: rgb(1 134 254 / 0.1) !important; color: #0186fe !important; }
  .jg-wide-support svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .jg-wide-nav.is-collapsed .jg-wide-support { width: 44px; height: 42px; margin-inline: auto; padding: 0; justify-content: center; }
  .jg-wide-nav.is-collapsed .jg-wide-support span { display: none; }

  .jg-wide-nav :is(a, button):focus-visible { outline: 2px solid #0186fe; outline-offset: 2px; }

  /* 9nww 悬停流光触达 */
  @media (hover: hover) and (pointer: fine) {
    .jg-wide-mode:hover > .jg-edge-orbit,
    .jg-wide-search:hover > .jg-edge-orbit,
    .jg-wide-collapse:hover > .jg-edge-orbit { opacity: 1; animation-play-state: running; }
  }

  /* 统一桌面吸顶玻璃顶栏（首页 + 游戏大厅共风格） */
  .hallPage.jg-hero-hall { --jg-hero-header: 76px; }
  .hallPage.jg-hero-hall > .head_area {
    position: absolute; inset: 0 0 auto 0; transform: none; z-index: 20;
    display: flex !important; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; max-width: none; height: 76px !important; padding: 10px 0 !important; box-sizing: border-box;
    background: transparent !important; pointer-events: none;
  }
  .hallPage.jg-hero-hall > .head_area::before,
  :root .jg-lobby-sheet .jg-sheet__head::before {
    content: ""; position: absolute; inset: 0 0 -16px 0; z-index: -1; pointer-events: none;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  }
  .hallPage.jg-hero-hall > .head_area.is-scrolled :is(.jg-hero-brand, .jg-mode-toggle, .jg-notice-btn) { opacity: 1; }
  .hallPage.jg-hero-hall > .maincontent { padding-top: 84px !important; scroll-padding-top: 84px; padding-bottom: 36px !important; }
  .hallPage.jg-hero-hall .jg-hero-brand,
  :root .jg-lobby-sheet .jg-sheet__back {
    visibility: visible !important; pointer-events: auto;
    position: relative; inset: auto; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    width: 176px; min-width: 176px; height: 56px; padding: 0 14px; box-sizing: border-box;
    border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.85);
    background: rgb(255 255 255 / 0.84);
    -webkit-backdrop-filter: blur(8px) saturate(150%); backdrop-filter: blur(8px) saturate(150%);
    box-shadow: inset 0 1px 0 #fff, 0 4px 20px rgb(44 79 133 / 0.1);
    cursor: pointer;
    scale: 1; transition: scale 180ms ease-out;
  }
  .hallPage.jg-hero-hall .jg-hero-brand:hover,
  :root .jg-lobby-sheet .jg-sheet__back:hover { scale: 1.02; }
  .hallPage.jg-hero-hall .jg-hero-brand img,
  :root .jg-lobby-sheet .jg-sheet__back-brand img {
    display: block; width: 100%; height: 38px; object-fit: contain;
  }
  :root .jg-lobby-sheet .jg-sheet__back-chevron { display: none; }
  :root .jg-lobby-sheet .jg-sheet__back-brand { display: flex; align-items: center; justify-content: center; width: 100%; }
  :root .jg-lobby-sheet .jg-sheet__title {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }

  .hallPage.jg-hero-hall > .head_area .right_menu {
    display: flex !important; align-items: center; gap: 10px; pointer-events: auto;
  }
  .jg-pc-topbar-actions { display: inline-flex; align-items: center; gap: 10px; pointer-events: auto; }
  .jg-pc-capsule {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 96px; height: 44px; padding: 0 10px; box-sizing: border-box;
    border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer;
    scale: 1; transition: scale 200ms cubic-bezier(0, 0, 0.2, 1), box-shadow 200ms, background-color 200ms;
  }
  .jg-pc-capsule:hover { scale: 1.03; }
  .jg-pc-capsule:active { scale: 0.96; }
  .jg-pc-capsule--primary {
    color: #fff !important;
    background: linear-gradient(90deg, #3ea3ff 0%, #0186fe 48%, #0066cc 100%);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.45), 0 6px 18px rgb(1 134 254 / 0.28);
  }
  .jg-pc-capsule--clear {
    color: #0b1220 !important;
    background: #fff;
    box-shadow: 0 4px 20px rgb(44 79 133 / 0.1);
  }
  @media (hover: hover) and (pointer: fine) {
    .jg-pc-capsule:hover > .jg-edge-orbit { opacity: 1; animation-play-state: running; }
  }
  .jg-pc-balance {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 12px;
    border-radius: 999px; border: 1px solid rgb(223 230 242 / 0.85);
    background: rgb(255 255 255 / 0.9); box-shadow: 0 4px 16px rgb(44 79 133 / 0.08);
    color: #0b1220; font-size: 13px;
  }
  .jg-pc-balance__coin {
    display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: #26a17b; color: #fff; font-size: 12px; font-weight: 800;
  }
  .jg-pc-balance__val { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .jg-pc-balance__unit { font-size: 11px; font-weight: 600; color: #66738f; }
  .jg-pc-balance__refresh {
    display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
    background: #eef2f7; color: #4a5c7a; cursor: pointer;
  }
  .jg-pc-balance__refresh svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .jg-pc-balance__refresh.is-spinning svg { animation: hall-image-spin 0.8s linear infinite; }
  .hallPage.jg-hero-hall > .head_area :is(.jg-mode-toggle, .jg-notice-btn),
  :root .jg-lobby-sheet .jg-sheet__head :is(.jg-mode-toggle, .jg-notice-btn) {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 999px;
    background: rgb(255 255 255 / 0.9); border: 1px solid rgb(223 230 242 / 0.8);
    box-shadow: 0 4px 16px rgb(44 79 133 / 0.08);
  }

  /* 首页内容流对齐（与 #app 完全同宽对齐） */
  .hallPage .toppart { padding-inline: 0; gap: 22px; }
  :root .jg-hero-hall .jg-brand-hero { width: 100%; max-width: none; height: 248px; margin: 0; border-radius: 20px; }
  .jg-brand-hero__copy { padding: 24px 0 0 36px; width: 54%; }
  .jg-brand-hero__copy h2 { font-size: 38px; }
  .jg-brand-hero__copy p { font-size: 15px; margin-top: 16px; }
  .jg-brand-hero__person { right: 0; top: 0; height: 292px; }
  .hallPage .centerArea, .hallPage .noticecontent { width: 100% !important; max-width: none; margin-inline: auto; }
  .jg-play-grid, .jg-extras { width: 100%; max-width: none; margin: 0 !important; padding-inline: 0; box-sizing: border-box; }
  .jg-play-grid { gap: 14px !important; }
  .jg-extras { margin-inline: auto; gap: 24px !important; }

  /* 热门推荐 / 我的游戏桌面卡片（适中卡片尺寸 + 9nww 悬停遮罩/播放钮/流光） */
  .jg-sec-more--pc { display: inline-flex; align-items: center; padding: 4px 2px; font-size: 13px !important; color: #66738f !important; }
  .jg-sec-more--pc:hover { color: #0186fe !important; }
  .jg-hot__track { gap: 12px; padding: 6px 2px 12px; }
  .jg-hot__card {
    width: 126px; height: 168px; border-radius: 20px;
    border: 1px solid rgb(223 230 242 / 0.72);
    box-shadow: 0 6px 18px rgb(44 79 133 / 0.12);
  }
  .jg-hot__card > :is(img.jg-hot__cover, img.jg-hot__poster, img.jg-rcard__img, svg.jg-rcard__img) {
    scale: 1; transition: scale 300ms ease-out;
  }
  .jg-hot__card--art .jg-rcard__img { position: relative; width: 100%; height: 100%; object-fit: cover; }

  @media (hover: hover) and (pointer: fine) {
    .jg-hot__card:hover > :is(img.jg-hot__cover, img.jg-hot__poster, img.jg-rcard__img, svg.jg-rcard__img),
    .jg-hot__card:focus-within > :is(img.jg-hot__cover, img.jg-hot__poster, img.jg-rcard__img, svg.jg-rcard__img) { scale: 1.04; }
    .jg-hot__card:hover .jg-card-scrim,
    .jg-hot__card:focus-within .jg-card-scrim { opacity: 1; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    .jg-hot__card:hover .jg-card-play,
    .jg-hot__card:focus-within .jg-card-play { opacity: 1; }
    .jg-hot__card:hover .jg-card-play__btn,
    .jg-hot__card:focus-within .jg-card-play__btn { scale: 1.07; }
    .jg-hot__card:hover > .jg-edge-orbit,
    .jg-hot__card:focus-within > .jg-edge-orbit,
    .jg-hot__card:hover .jg-card-play__btn > .jg-edge-orbit,
    .jg-hot__card:focus-within .jg-card-play__btn > .jg-edge-orbit { opacity: 1; animation-play-state: running; }
  }

  /* 快捷入口 & 页脚桌面样式 */
  .jg-quick { gap: 12px; }
  .jg-quick__item { height: 54px; border-radius: 16px; padding: 0 18px; border: 1px solid rgb(223 230 242 / 0.72); box-shadow: 0 2px 10px rgb(15 35 80 / 0.05); }
  .jg-quick__label { font-size: 14px; }
  .jg-footer__panel { margin-top: 8px; padding: 24px 28px; border-radius: 22px; background: #fff; border: 1px solid rgb(223 230 242 / 0.75); box-shadow: 0 2px 12px rgb(15 35 80 / 0.04); }
  .jg-footer__payments h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; text-align: left; }
  .jg-footer__payments ul { display: flex; flex-wrap: wrap; gap: 10px; }
  .jg-footer__payments li { min-height: 40px; padding: 6px 14px; border-radius: 12px; background: #f4f7fb; flex-direction: row; gap: 8px; font-size: 13px; }
  .jg-footer__payments :is(img, svg) { width: 22px; height: 22px; }
  .jg-footer__support {
    display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0 8px; text-align: center;
  }
  .jg-footer__support p { margin: 0; font-size: 20px; font-weight: 800; color: var(--jb-ink, #0b1220); }
  .jg-footer__support-cta {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 144px; height: 44px; border-radius: 999px; text-decoration: none;
    color: #fff; font-size: 14px; font-weight: 700;
    background: linear-gradient(90deg, #3ea3ff 0%, #0186fe 48%, #0066cc 100%);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.45), 0 6px 18px rgb(1 134 254 / 0.28);
    scale: 1; transition: scale 200ms ease-out;
  }
  .jg-footer__support-cta:hover { scale: 1.03; }
  @media (hover: hover) and (pointer: fine) {
    .jg-footer__support-cta:hover > .jg-edge-orbit { opacity: 1; animation-play-state: running; }
  }

  /* 全屏覆盖层定位跟随侧栏 --jg-rail */
  body > .jg-sub, body > .sf-invite, body > .mp-page { left: var(--jg-rail); }
  body > .customer-chat-v3 { left: var(--jg-rail); width: auto; }
  .jg-sheet { left: var(--jg-rail); max-height: var(--visual-viewport-height,100dvh); transition: transform .26s cubic-bezier(.22, 1, .36, 1), left 220ms cubic-bezier(.22, 1, .36, 1); }
  .jg-sheet__head { flex: none; min-height: 64px; padding-inline: 24px; }
  .jg-sheet__body { width: 100%; max-width: var(--jg-page-max); align-self: center; padding: 24px; min-height: 0; box-sizing: border-box; }

  /* 9nww 游戏大厅覆盖层布局（吸顶透明磨砂头 + 全宽滚动容器 + 1366px 内容核） */
  :root .jg-lobby-sheet { background: #f4f6f9; }
  :root .jg-lobby-sheet .jg-sheet__head {
    position: absolute; inset: 0 0 auto 0; z-index: 20; height: 76px; min-height: 76px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box;
    padding: 10px max(var(--jg-gutter), calc((100% - var(--jg-page-max)) / 2)) !important;
    background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    pointer-events: none;
  }
  :root .jg-lobby-sheet .jg-sheet__body.jg-lobby {
    width: 100%; max-width: none; align-self: stretch; padding: 84px 0 48px !important;
  }
  .jg-lobby__shell {
    container: pc-lobby / inline-size;
    width: min(calc(100% - var(--jg-gutter) * 2), var(--jg-page-max));
    margin-inline: auto; box-sizing: border-box;
  }

  /* 多卡并排活动横幅轮播（<700px 1张 / >=700px 2张 / >=1082px 3张） */
  .jg-lobby__promos {
    --lobby-promo-visible: 1;
    --lobby-promo-used-gap: 0px;
    width: 100%; margin: 0 0 12px;
  }
  @container pc-lobby (min-width: 700px) {
    .jg-lobby__promos { --lobby-promo-visible: 2; --lobby-promo-used-gap: 12px; }
  }
  @container pc-lobby (min-width: 1082px) {
    .jg-lobby__promos { --lobby-promo-visible: 3; --lobby-promo-used-gap: 24px; }
  }
  .jg-lobby__promo-track {
    display: flex; align-items: stretch; gap: 12px; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 2px; margin: -2px;
  }
  .jg-lobby__promo-track::-webkit-scrollbar { display: none; }
  @media (hover: hover) and (pointer: fine) {
    .jg-lobby__promo-track { cursor: grab; }
    .jg-lobby__promo-track.is-dragging { cursor: grabbing; user-select: none; }
    .jg-lobby__promo-track.is-dragging .jg-lobby__promo-card { pointer-events: none; }
  }
  .jg-lobby__promo-card {
    position: relative; flex: 0 0 calc((100% - var(--lobby-promo-used-gap)) / var(--lobby-promo-visible));
    min-width: 0; scroll-snap-align: start; box-sizing: border-box;
    padding: 4px; border-radius: 26px;
    border: 1px solid rgb(223 230 242 / 0.85); background: #fff;
    box-shadow: 0 4px 16px rgb(15 35 80 / 0.06);
    display: block; text-decoration: none;
  }
  .jg-lobby__promo-inner {
    display: block; width: 100%; aspect-ratio: 1080 / 455; overflow: hidden; border-radius: 22px; background: #eef2f7;
  }
  .jg-lobby__promo-inner img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    scale: 1; transition: scale 420ms ease-out;
  }
  @media (hover: hover) and (pointer: fine) {
    .jg-lobby__promo-card:hover .jg-lobby__promo-inner img,
    .jg-lobby__promo-card:focus-visible .jg-lobby__promo-inner img { scale: 1.04; }
    .jg-lobby__promo-card:hover > .jg-edge-orbit,
    .jg-lobby__promo-card:focus-visible > .jg-edge-orbit { opacity: 1; animation-play-state: running; }
  }

  /* 9nww 分类页签条：50px 下划线页签（桌面不吸顶，随内容自然滚动） */
  :root .jg-lobby__sentry { display: none; }
  :root .jg-lobby__tabs {
    position: static; padding: 0; margin-top: 6px;
    background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border-bottom: 1px solid rgb(133 143 166 / 0.35);
    box-shadow: none !important;
  }
  :root .jg-lobby__seg {
    --gap: 8px; width: max-content; max-width: 100%; margin: 0;
    grid-template-columns: repeat(var(--n, 4), minmax(96px, 1fr));
  }
  :root .jg-lobby__seg button {
    height: 50px; padding: 0 16px; border-radius: 0; background: transparent !important;
    box-shadow: none !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0;
  }
  :root .jg-lobby__lbl { gap: 8px; color: #66738f; }
  :root .jg-lobby__icon { width: 22px; height: 22px; stroke: #66738f; }
  :root .jg-lobby__seg button.is-on .jg-lobby__lbl,
  :root .jg-lobby__seg.is-dragging button.is-target .jg-lobby__lbl { color: #0186fe; }
  :root .jg-lobby__seg button.is-on .jg-lobby__icon,
  :root .jg-lobby__seg.is-dragging button.is-target .jg-lobby__icon { stroke: #0186fe; }
  :root .jg-lobby__seg.is-dragging button.is-on:not(.is-target) .jg-lobby__lbl { color: #66738f; }
  :root .jg-lobby__seg.is-dragging button.is-on:not(.is-target) .jg-lobby__icon { stroke: #66738f; }
  :root .jg-lobby__ind {
    top: auto; bottom: -1px; height: 2px; border-radius: 999px;
    background: linear-gradient(90deg, rgb(1 134 254 / 0.2), #0186fe 50%, rgb(1 134 254 / 0.2));
    box-shadow: none;
    transition: transform 320ms ease-in-out;
  }
  :root .jg-lobby__ind::after { content: none; }

  /* 彩票大厅与游戏网格统一 @container pc-lobby 3~8 列 */
  :root .jg-lobby__pane { padding-top: 0; }
  :root .jg-lobby__pane > .jg-art { padding: 0; }
  :root .jg-lobby__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; row-gap: 14px; padding: 16px 0 0;
  }
  @container pc-lobby (min-width: 614px) { :root .jg-lobby__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @container pc-lobby (min-width: 770px) { :root .jg-lobby__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
  @container pc-lobby (min-width: 926px) { :root .jg-lobby__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
  @container pc-lobby (min-width: 1082px) { :root .jg-lobby__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
  @container pc-lobby (min-width: 1238px) { :root .jg-lobby__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
  :root .jg-rcard { border-radius: 24px; }
  :root .jg-rcard .jg-rcard__img { scale: 1; transition: scale 300ms ease-out; }
  @media (hover: hover) and (pointer: fine) {
    :root .jg-rcard:not(.jg-rcard--soon):hover .jg-rcard__img,
    :root .jg-rcard:not(.jg-rcard--soon):focus-within .jg-rcard__img { scale: 1.04; }
    :root .jg-rcard:not(.jg-rcard--soon):hover .jg-card-scrim,
    :root .jg-rcard:not(.jg-rcard--soon):focus-within .jg-card-scrim { opacity: 1; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    :root .jg-rcard:not(.jg-rcard--soon):hover .jg-card-play,
    :root .jg-rcard:not(.jg-rcard--soon):focus-within .jg-card-play { opacity: 1; }
    :root .jg-rcard:not(.jg-rcard--soon):hover .jg-card-play__btn,
    :root .jg-rcard:not(.jg-rcard--soon):focus-within .jg-card-play__btn { scale: 1.07; }
    :root .jg-rcard:not(.jg-rcard--soon):hover > .jg-edge-orbit,
    :root .jg-rcard:not(.jg-rcard--soon):focus-within > .jg-edge-orbit,
    :root .jg-rcard:not(.jg-rcard--soon):hover .jg-card-play__btn > .jg-edge-orbit,
    :root .jg-rcard:not(.jg-rcard--soon):focus-within .jg-card-play__btn > .jg-edge-orbit { opacity: 1; animation-play-state: running; }
  }

  .jg-partner-list { grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); }
  /* 固定视口宽度的旧页面改为所在内容区宽度。 */
  :is(.security-v3__panel,.invite-v3__footer,.down-line-list,.actual-transfer,.transfer-done,.people-bill-v3 .filter,.support-copy-menu-mask,.copy-menu-mask) { width: 100% !important; max-width: 100%; }
  .recent-games-v3 .accounts-list .accounts-swipe-cell { width: 100%; }
  .persondetail.person-detail-v3 .personhead { width: 100%; }
  .van-dialog { width: min(460px,calc(100% - 32px)) !important; max-height: calc(var(--visual-viewport-height,100dvh) - 32px); overflow-y: auto; }
  .van-popup--bottom:not(.pc28-standard-sheet--credit,.Login-window) { max-height: 90%; }
  body > .van-popup--bottom { left: var(--jg-rail); right: 0; width: calc(100% - var(--jg-rail)); }
  body > .poster-action-popup { width: calc(100% - var(--jg-rail)) !important; }
  body > .Login-window.van-popup { left: var(--jg-rail) !important; width: calc(100% - var(--jg-rail)) !important; }
  body > .Login-window.van-popup, body > .Login-window-overlay { z-index: 3005 !important; }
  .van-popup--center { max-width: calc(100% - 32px); max-height: calc(var(--visual-viewport-height,100dvh) - 32px); overflow-y: auto; }
  .jg-wallet-page, #realapp > .jg-payments { width: min(100%,760px); margin-inline: auto; }
  .mp-page > .mp-body { box-sizing: border-box; width: min(100%,var(--jg-page-max)); align-self: center; }
  .jg-payments .newContent { padding-bottom: 28px !important; }
  .activity .activecont .activeinner { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; padding: 20px; }
  .activity .activecont .activebox { width: 100%; height: auto; aspect-ratio: 2.3; margin: 0 !important; }
  .activity .activecont .activebox .itemBg { width: 100%; height: 100%; object-fit: cover; }
  .activity .contentsdsinner { max-width: 720px; margin-inline: auto; }
  /* 二级页面使用内容区宽度，保留原数据、操作和窄屏样式。 */
  :root .LifeVip .LifeVip_Content .dengjiquanyi .quanyi_table, :root .LifeVip .LifeVip_Content .quanyiRuleArea { width: calc(100% - 48px); max-width: 880px; margin-inline: auto; }
  .LifeVip .LifeVip_Content .dengjiquanyi .quanyi_table :is(.tablehead,.head_item,.l_item) { height: 40px !important; line-height: 40px !important; font-size: 14px !important; }
  .LifeVip .LifeVip_Content .top_content :is(.progress_text,.progress .right_Text) { color: #d4dcef; font-size: 12px; }
  :root .LifeVip .LifeVip_Content .top_content .cardArea .b_box .rbox .btn { height: 40px; line-height: 40px; }
  .MyLevelPage :is(.personal,.dengji,.div_tittle) { width: calc(100% - 48px); max-width: 720px; margin-inline: auto; }
  .PersonalMain .messageArea .touzhu, .PersonalMain .RecentPlayHistory .rewardDiv { width: calc(100% - 40px); }
  .invite-v3__link-page .top_bg { max-width: 560px; margin-inline: auto; }
  .hyplan .tuiGuang .mainDataDiv { width: calc(100% - 32px); }
  .hyplan .tablebox .tableboxinner .rtfixedbox { width: calc(100% - 2.3rem); }
  .hyplan #finaceyhhl .tablebox .rtfixedbox { width: calc(100% - 3.3rem); }
  .hyplan #finacptbaoobiao .tablebox .rtfixedbox { width: calc(100% - 2rem); }
  .hyplan #finaceactive .tablebox .rtfixedbox { width: calc(100% - 2.5rem); }
  .hyplan .tablebox .rtfixedboxinner { min-width: 100%; }
  .hyplan .tablebox .rtfixedboxinner .lineboxdiv { display: flex; }
  .hyplan .tablebox .rtfixedboxinner .lineboxdiv > div { flex-grow: 1; flex-shrink: 0; }
  .hyplan .tablebox > .nonedat { display: block; float: none; clear: both; margin-inline: auto; }
  .jg-crash-frame { left: var(--jg-rail) !important; width: calc(100% - var(--jg-rail)) !important; height: var(--visual-viewport-height,100dvh) !important; }
  /* 信用盘继续使用原 Vue 面板，只调整宽度及可点击面积。 */
  :root.jg-bet-room .pc28-standard-sheet--credit .pc28-credit-content { width: 100% !important; max-width: none !important; }
  :root.jg-bet-room .pc28-standard-sheet--credit .pc28-credit-center { margin: 0 12px !important; }
  :root.jg-bet-room .credit-option { min-height: 54px; }
  :root.jg-bet-room .credit-groups button { min-height: 44px; }
  :root.jg-bet-room .jg-bet-tabs button { min-height: 44px; }
  :root.jg-bet-room .jg-draw__balls { justify-content: center; gap: 20px; }
  :root.jg-bet-room .pc28-standard-sheet--credit .botconentent { flex: 0 0 auto !important; height: auto !important; }
  :root.jg-bet-room .botconentent .pc28-credit-amounts__bar { min-height: 44px; }
  :root.jg-bet-room .botconentent :is(.pc28-credit-amounts,.pc28-credit-amounts__bar,.bottom1-select) { height: 44px !important; }
  :root.jg-bet-room .botconentent :is(.bottom1-del,.moneyselectItem,.quick-entry,.setmoney) { min-height: 44px !important; }
  :root.jg-bet-room .zhuotou-source-chrome .header .back { position: absolute; left: 12px; width: 44px; }
  :root.jg-bet-room .zhuotou-source-chrome .header .right-set { position: absolute; right: 112px; width: 44px; }
  .liuhe-gameplay { max-width: 100% !important; }
  .jg-auth-page:not(#_) .loginInner { padding-inline: max(24px,calc(50% - 280px)); }
}

@media (min-width: 949px) {
  :root { --jg-gutter: 28px; }
}
@media (min-width: 1100px) {
  :root { --jg-rail: 260px; }
}
@media (min-width: 1200px) {
  :root { --jg-gutter: 44px; }
}
@media (min-width: 640px) {
  :root[data-jg-rail="collapsed"] { --jg-rail: 84px; }
  :root[data-jg-rail="expanded"] { --jg-rail: 260px; }
}

@media (min-width: 960px) {
  :root .hallPage .toppart { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; align-items: start; }
  /* 首页首屏 Bento 双列布局：左 2fr 品牌主视觉 + 右 1fr 账户卡 & 活动卡 */
  .jg-hall-bento {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: stretch;
  }
  .jg-hall-bento__side {
    display: flex; flex-direction: column; gap: 12px; min-width: 0;
  }
  .jg-hall-bento__side .centerArea { margin: 0 !important; flex: none; }
  .jg-hall-bento__side .jg-account--guest { flex-wrap: wrap; row-gap: 10px; }
  .jg-pc-hero-promo {
    position: relative; overflow: hidden; flex: 1 1 0; min-height: 112px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 16px 20px; box-sizing: border-box; border-radius: 20px; text-decoration: none;
    color: #fff;
    background:
      radial-gradient(ellipse at 92% 14%, rgb(255 255 255 / 0.24), transparent 62%),
      linear-gradient(120deg, #1b4fc2 0%, #0d6efd 52%, #39a0ff 100%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 8px 22px -8px rgb(20 89 204 / 0.45);
  }
  .jg-pc-hero-promo__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
  .jg-pc-hero-promo__copy strong { font-size: 20px; font-weight: 800; line-height: 1.2; color: #fff; }
  .jg-pc-hero-promo__copy p { margin: 0; font-size: 12px; color: rgb(255 255 255 / 0.86); line-height: 1.4; }
  .jg-pc-hero-promo__cta {
    display: inline-flex; align-items: center; justify-content: center; margin-top: 6px;
    height: 28px; padding: 0 12px; border-radius: 999px;
    background: rgb(0 0 0 / 0.18); color: #fff; font-size: 11px; font-weight: 600;
  }
  .jg-pc-hero-promo__art { position: absolute; right: 6px; bottom: -4px; width: 88px; height: 88px; pointer-events: none; scale: 1; transition: scale 300ms ease-out; }
  .jg-pc-hero-promo__art svg { display: block; width: 100%; height: 100%; }
  @media (hover: hover) and (pointer: fine) {
    .jg-pc-hero-promo:hover .jg-pc-hero-promo__art { scale: 1.07; }
    .jg-pc-hero-promo:hover > .jg-edge-orbit { opacity: 1; animation-play-state: running; }
  }
  .hallPage .toppart > .noticecontent { grid-column: 1 / -1; }
  :root .jg-hero-hall .jg-brand-hero { height: 100%; min-height: 248px; margin-bottom: 0; }
  .jg-brand-hero__copy { padding: 20px 0 0 38px; }
  .jg-brand-hero__copy h2 { font-size: 40px; }
  .jg-brand-hero__person { right: 6%; height: 296px; }
  .hallPage .centerArea { margin-block: 0 !important; }
  .jg-play-grid, .jg-extras { width: 100%; max-width: none; margin: 0 !important; padding-inline: 0; box-sizing: border-box; }
  :root .hallPage .jg-play-grid--tiles {
    grid-template-areas: "pc world ascend live sports" "pc slots ascend live sports";
    grid-template-columns: minmax(0,.96fr) minmax(0,.93fr) repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr));
    aspect-ratio: 3.75 / 1;
  }
  :root .hallPage .jg-play-grid--tiles .jg-play {
    grid-column: auto; grid-row: auto; aspect-ratio: auto; height: 100%; min-height: 0; border-radius: 20px;
  }
  @media (hover: hover) and (pointer: fine) {
    :root .hallPage .jg-play-grid--tiles .jg-play:hover > .jg-edge-orbit { opacity: 1; animation-play-state: running; }
  }
  :root .hallPage .jg-play-grid--tiles .jg-play--pc20 { grid-area: pc; }
  :root .hallPage .jg-play-grid--tiles .jg-play--world { grid-area: world; }
  :root .hallPage .jg-play-grid--tiles .jg-play--slots { grid-area: slots; }
  :root .hallPage .jg-play-grid--tiles .jg-play--ascend { grid-area: ascend; }
  :root .hallPage .jg-play-grid--tiles .jg-play--live { grid-area: live; }
  :root .hallPage .jg-play-grid--tiles .jg-play--sports { grid-area: sports; }
  :root .hallPage .jg-play-grid--tiles .jg-play__image--default { object-fit: cover; mask-size: cover; }
  :root .hallPage .jg-play-grid--tiles .jg-play:has(.jg-play__image--default)::after { mask-size: cover; }
  .jg-footer__panel { margin-top: 8px; }
}

@media (min-width: 640px) {
  .jg-auth-page:not(#_) .loginInner {
    --auth-hero: 0px; display: grid; justify-content: center;
    grid-template-columns: minmax(0,448px); grid-template-rows: minmax(min-content,1fr) auto minmax(min-content,1fr);
    padding: 12px var(--jg-rail) 12px 0; overflow-y: auto;
  }
  .jg-auth-page .jg-auth-intro {
    display: block; grid-row: 1; align-self: end; border-radius: 24px 24px 0 0; overflow: hidden;
    background: linear-gradient(115deg,#122d51,#26517b 65%,#46739b);
  }
  .jg-auth-page .jg-auth-header { height: 36px; margin: 4px 12px 0; }
  .jg-auth-header button { width: 30px; height: 30px; padding: 5px; }
  .jg-auth-page .jg-auth-banner { height: clamp(64px,calc(32vh - 146px),140px); margin: 0; }
  .jg-auth-page .jg-auth-banner__default { align-items: center; padding: 0 24px 8px; }
  .jg-auth-page .jg-auth-banner__default strong { font-size: clamp(20px,2.9vh,28px); }
  .jg-auth-page .jg-auth-banner__default p { margin-top: 8px !important; line-height: 1.2; }
  .jg-auth-page .jg-auth-banner__default p::before { display: none; }
  .jg-auth-page .jg-auth-banner--configured img { object-fit: contain; }
  .jg-auth-page:not(#_) .loginPage { grid-area: 2 / 1; padding: 18px 24px; border-radius: 0 0 24px 24px !important; }
  .jg-auth-page:not(#_) .loginPage .pageInner { width: 100%; }
  .jg-auth-page:not(#_) .b_kefu { grid-row: 3; align-self: start; margin: 16px auto 0; }
}
@media (min-width: 640px) and (max-height: 720px) {
  .jg-auth-page:not(#_) .loginInner { padding-block: 6px; }
  .jg-auth-page .jg-auth-intro { display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: center; }
  .jg-auth-page .jg-auth-header { justify-content: end; margin: 0 0 0 12px; }
  .jg-auth-page .jg-auth-banner { height: clamp(56px,calc(35vh - 145px),92px); }
  .jg-auth-page .jg-auth-banner__default { padding: 0 0 0 16px; }
  .jg-auth-page .jg-auth-banner__default strong { font-size: 18px; }
  .jg-auth-page .jg-auth-banner__default p { margin-top: 2px !important; font-size: 12px; }
}
@media (min-width: 1100px) {
  :root .LifeVip .LifeVip_Content .top_content { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: auto auto auto auto; gap: 12px 32px; min-height: 0; padding: 28px 40px; justify-items: center; }
  :root .LifeVip .LifeVip_Content .top_content > :not(.cardArea) { grid-column: 1; margin-top: 0; }
  :root .LifeVip .LifeVip_Content .top_content .cardArea { position: relative; bottom: auto; grid-column: 2; grid-row: 1 / span 4; width: 100%; max-width: 380px; margin-top: 0; padding-right: 16px; }
  :root .LifeVip .LifeVip_Content .top_content .progress .gressBgBox { width: auto; flex: 1; }
  .LifeVip.vip-source--honor-life .LifeVip_Content .dengjiquanyi { padding-top: 32px; }
  :root.jg-bet-room .pc28-standard-sheet--credit .botconentent { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,35%); align-items: center; gap: 20px; }
  :root.jg-bet-room .botconentent :is(.pc28-credit-amounts,.pc28-credit-amounts__bar,.btoclassline) { width: 100% !important; max-width: none !important; margin: 0 !important; }
  :root.jg-bet-room .botconentent .bottom1-select { flex: 1; min-width: 0; }
}
@media (min-width: 640px) and (max-height: 600px) {
  .jg-wide-nav { padding-block: 8px; }
  .jg-wide-mode { height: 42px; }
  .jg-wide-mode.is-vertical { height: 80px; }
  .jg-wide-search { margin-top: 8px; height: 34px; }
  .jg-wide-divider { height: 24px; }
  .jg-wide-nav nav:not(.jg-wide-mode-nav) :is(a, button) { height: 34px; min-height: 34px; }
  .jg-wide-nav__section { margin-top: 4px; padding-top: 4px; }
  .jg-wide-nav__foot { padding-top: 6px; gap: 6px; }
  .jg-wide-theme { height: 36px; }
  .jg-wide-theme.is-vertical { height: 72px; }
  .jg-wide-support { height: 36px; }
  .hallPage.jg-hero-hall > .head_area,
  :root .jg-lobby-sheet .jg-sheet__head { height: 64px !important; min-height: 64px !important; padding-block: 8px !important; }
  .hallPage.jg-hero-hall > .maincontent,
  :root .jg-lobby-sheet .jg-sheet__body.jg-lobby { padding-top: 70px !important; }
  .jg-lobby__promo-inner { max-height: 118px; }
  :root .jg-hero-hall .jg-brand-hero { min-height: 204px; height: 204px; }
  .jg-brand-hero__person { height: 248px; }
  :root.jg-bet-room .jg-draw { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 4px 12px; padding-block: 8px; }
  :root.jg-bet-room .jg-draw__head { grid-column: 1; grid-row: 1; }
  :root.jg-bet-room .jg-draw__head h2 { font-size: 12px; }
  :root.jg-bet-room .jg-draw__balls { grid-column: 1; grid-row: 2; margin: 0; padding: 0; gap: 12px; min-height: 40px; }
  :root.jg-bet-room .jg-ball { width: 34px; height: 34px; font-size: 18px; }
  :root.jg-bet-room .jg-draw__next { grid-column: 2; grid-row: 1 / 3; display: grid; gap: 4px; margin: 0; padding: 6px 10px; }
  :root.jg-bet-room .jg-draw__ring { display: none; }
  :root.jg-bet-room .jg-draw__wallet { align-items: center; flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) and (min-height: 541px) {
  :root[data-jg-layout="game"] { --jg-page-max: 1366px; --jg-gutter: 28px; }
  html[data-game-header] > body > .jg-brand-loading { left: var(--jg-rail); top: 0; }
}
@media (min-width: 1200px) and (min-height: 541px) {
  :root[data-jg-layout="game"] { --jg-gutter: 44px; }
}
/* 手机横屏进入三方游戏时隐藏侧栏并铺满整屏，避免 640px 侧栏规则挤压游戏画面。 */
@media (orientation: landscape) and (max-height: 540px), (min-width: 640px) and (max-width: 1023.98px) and (orientation: landscape) {
  :root[data-jg-layout="game"] .jg-wide-nav,
  html[data-game-header] .jg-wide-nav { display: none !important; }
  :root[data-jg-layout="game"] #app,
  html[data-game-header] #app { width: 100% !important; max-width: none !important; margin-left: 0 !important; transform: none; }
}
@media (min-width: 640px) and (prefers-reduced-motion: reduce) {
  #app,
  .jg-sheet,
  .jg-wide-nav,
  .jg-wide-mode__ind,
  .jg-wide-mode__ind-face,
  .jg-wide-theme__ind,
  .jg-wide-collapse,
  .jg-wide-collapse svg,
  .jg-pc-capsule,
  .jg-card-scrim,
  .jg-card-play,
  .jg-card-play__btn,
  .jg-edge-orbit,
  .jg-lobby__promo-inner img,
  .jg-lobby__ind,
  .jg-rcard .jg-rcard__img,
  .jg-hot__card > :is(img.jg-hot__cover, img.jg-hot__poster, img.jg-rcard__img, svg.jg-rcard__img) {
    transition: none !important;
    animation: none !important;
  }
  .jg-hot__card:hover > :is(img.jg-hot__cover, img.jg-hot__poster, img.jg-rcard__img, svg.jg-rcard__img),
  :root .jg-rcard:not(.jg-rcard--soon):hover .jg-rcard__img,
  .jg-lobby__promo-card:hover .jg-lobby__promo-inner img,
  .jg-pc-capsule:hover,
  .jg-wide-collapse:hover,
  .jg-footer__support-cta:hover,
  .jg-pc-hero-promo:hover .jg-pc-hero-promo__art { scale: 1 !important; }
}

.dw-chat-original{position:fixed;z-index:3000;left:12px;right:12px;top:58px;max-width:650px;margin:auto;padding:12px 14px;border-radius:10px;background:#fff6d8;color:#5d4613;box-shadow:0 3px 14px #0002;font-size:14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.dw-chat-original span{flex:1 0 100%}.dw-chat-original button{background:#159c86;color:#fff;border:0;border-radius:6px;padding:8px 12px;white-space:nowrap}.dw-chat-original button:disabled{opacity:.5}

.wallet-venue-original { box-sizing: border-box; margin: 12px; padding: 14px; border: 1px solid #d9ba65; border-radius: 12px; background: #fff9e8; color: #302916; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.wallet-venue-original[hidden] { display: none; }
.wallet-venue-original h3 { font-size: 15px; margin: 0 0 6px; }
.wallet-venue-original p { margin: 0 0 10px; }
.wallet-venue-original-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-venue-original button { padding: 8px 12px; min-height: 40px; border-radius: 8px; border: 1px solid #b58d30; background: #fff; color: #382b11; font: inherit; cursor: pointer; }
.wallet-venue-original button:disabled { opacity: .6; cursor: wait; }
.wallet-venue-original button:focus-visible { outline: 3px solid #826015; outline-offset: 2px; }
.wallet-venue-original small { display: block; margin-top: 8px; color: #6c6040; }
@media (max-width: 360px) { .wallet-venue-original { margin: 8px; padding: 10px; } .wallet-venue-original-actions button { flex: 1 1 auto; } }

.dw-activity-wallet{position:relative;z-index:1;margin:12px;padding:12px 16px;border:1px solid #a5d8cf;border-radius:10px;background:#f1fbf8;color:#23453f;font-size:14px;line-height:1.6}.dw-activity-wallet p{margin:0 0 8px}.dw-activity-wallet button{border:0;border-radius:6px;padding:8px 14px;margin:0 8px 8px 0;background:#159c86;color:white}.dw-activity-wallet button:disabled{opacity:.5}.dw-activity-wallet input{box-sizing:border-box;width:100%;max-width:360px;margin:0 0 8px;padding:8px 10px;border:1px solid #8bbcaf;border-radius:6px;background:white;color:#23453f}.dw-activity-original{padding:8px 0;border-top:1px solid #c6e4dc}.dw-activity-original:first-child{border-top:0}

.dw-contest-fee{position:relative;z-index:2;margin:10px 12px;padding:12px 14px;border:1px solid #d7c9a5;border-radius:10px;background:#fffaf0;color:#51452f;font-size:13px;line-height:1.6}.dw-contest-fee p{margin:0 0 6px}.dw-contest-fee small{display:block;margin-bottom:8px;color:#8a7d66;overflow-wrap:anywhere}.dw-contest-fee-original+ .dw-contest-fee-original{margin-top:10px;padding-top:10px;border-top:1px solid #e8ddc8}.dw-contest-fee button{margin:0 8px 4px 0;padding:7px 12px;border:0;border-radius:6px;background:#9a7635;color:#fff}.dw-contest-fee button[data-action=cancel]{background:#716758}.dw-contest-fee button:disabled{opacity:.5}

/* 0. 统一顶部安全区口径：兼容老 iOS / 老安卓（无 :has / dvh / inset / max）、普通浏览器、PWA、uni-app 与 Telegram。 */
:root {
  --jg-viewport-height: 100vh;
  --jg-safe-top: var(--jg-host-status-bar-height, env(safe-area-inset-top, 0px));
  --jg-header-safe-top: var(--jg-safe-top);
  --jg-overlay-safe-top: var(--jg-safe-top);
}
@supports (height: 100dvh) {
  :root { --jg-viewport-height: 100dvh; }
}
@supports (padding-top: max(0px, 1px)) {
  :root { --jg-safe-top: max(env(safe-area-inset-top, 0px), var(--jg-host-status-bar-height, 0px)); }
}
/* 自带通栏安全区顶栏的页面（飞升、自动投注、登录/注册）由页面顶栏统一承担顶部留白，避免与 #realapp 叠加。 */
html[data-self-safe-top] #realapp { padding-top: 0 !important; }
.van-safe-area-top { padding-top: var(--jg-header-safe-top, env(safe-area-inset-top, 0px)); }
.personPage.jg-person-brand > .head_area { top: var(--jg-header-safe-top, env(safe-area-inset-top, 0px)); }

/* 1. 充值确认：实底卡片、清楚标题、渠道 / 金额 / 合计 */
body > .van-overlay:has(+ .van-dialog.sf-confirm) { background: rgba(8, 18, 38, .62) !important; backdrop-filter: none !important; }
body > .van-dialog.sf-confirm {
  width: min(440px, calc(100vw - 32px)) !important; max-width: calc(100vw - 32px) !important; box-sizing: border-box; border: 1px solid #d6e3f3;
  background: #fff !important; opacity: 1 !important; backdrop-filter: none !important;
  border-radius: 22px !important; box-shadow: 0 18px 48px rgba(8, 24, 60, .32) !important; overflow: hidden;
}
.van-dialog.sf-confirm .van-dialog__header { padding: 24px 22px 0 !important; text-align: left; color: #0f1b33 !important; font-size: 18px !important; font-weight: 800 !important; }
.sf-confirm__rows { margin: 18px 20px 20px; padding: 6px 16px; border-radius: 12px; background: #f3f7fd; }
.sf-confirm__rows p { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 12px 0; color: #4a5872; font-size: 14px; }
.sf-confirm__rows p + p { border-top: 1px solid #e3eaf4; }
.sf-confirm__rows b { color: #0f1b33; font-weight: 700; }
.sf-confirm__rows .sf-confirm__total span { color: #0f1b33; font-weight: 700; }
.sf-confirm__rows .sf-confirm__total strong { color: #1268d6; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.van-dialog.sf-confirm .van-dialog__footer { padding: 0 18px 18px; gap: 10px; border: 0 !important; }
.van-dialog.sf-confirm .van-dialog__footer::after, .van-dialog.sf-confirm .van-dialog__confirm::after, .van-dialog.sf-confirm .van-dialog__cancel::after { display: none !important; }
.van-dialog.sf-confirm .van-dialog__footer .van-button { height: 44px !important; border-radius: 22px !important; font-size: 15px !important; font-weight: 700 !important; border: 0 !important; }
.van-dialog.sf-confirm .van-dialog__cancel { background: #eef2f8 !important; color: #3b4a63 !important; }
.van-dialog.sf-confirm .van-dialog__confirm { background: linear-gradient(135deg, #2f8bff, #1268d6) !important; color: #fff !important; }
:root[data-jg-mode="dark"] .van-dialog.sf-confirm { background: #1b2b42 !important; border-color: #536f90; }
:root[data-jg-mode="dark"] .van-dialog.sf-confirm .van-dialog__header,
:root[data-jg-mode="dark"] .sf-confirm__rows b,
:root[data-jg-mode="dark"] .sf-confirm__rows .sf-confirm__total span { color: #eef3fb !important; }
:root[data-jg-mode="dark"] .sf-confirm__rows { background: #1e2d45; }
:root[data-jg-mode="dark"] .sf-confirm__rows p { color: #a9b6cc; }
:root[data-jg-mode="dark"] .sf-confirm__rows p + p { border-color: #2b3c58; }
:root[data-jg-mode="dark"] .van-dialog.sf-confirm .van-dialog__cancel { background: #24344f !important; color: #d6e0ee !important; }
:root[data-jg-mode="dark"] .sf-confirm__rows .sf-confirm__total strong { color: #88bcff; }
/* 提交中被禁用的渠道保持原样，只有本来就关闭的渠道标「暂未开放」 */
.sf-busy .jg-channel:disabled:not([data-channel-off]) { background: #fff !important; border-style: solid !important; }
.sf-busy .jg-channel[aria-pressed=true]:disabled:not([data-channel-off]) { background: #eef6ff !important; }
.sf-busy .jg-channel:disabled:not([data-channel-off]) img { filter: none; opacity: 1; }
.sf-busy .jg-channel:disabled:not([data-channel-off]) span { color: inherit !important; }
.sf-busy .jg-channel:disabled:not([data-channel-off]):not([aria-pressed=true])::after { content: none; }
.sf-busy .jg-channel[aria-pressed=true]:disabled:not([data-channel-off])::after { content: ''; padding: 0; top: -.10667rem; right: -.10667rem; width: .42667rem; height: .42667rem; border-radius: 50%;
  background: #087ce6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.6 2.6L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; box-shadow: 0 0 0 2px #fff; }

/* 3b. 三方游戏：竖屏顶栏、手机横屏全屏+左侧可拖收起抽屉、电脑端居中圆角舞台+全屏切换（参照 9nww） */
.float-ball-page.has-game-header { grid-template-rows: auto minmax(0, 1fr); }
html[data-game-header] > body > .jg-brand-loading {
  top: calc(52px + var(--jg-header-safe-top, env(safe-area-inset-top, 0px)));
}
.sf-game-bar {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 52px; padding: var(--jg-header-safe-top, env(safe-area-inset-top, 0px)) 12px 0; box-sizing: content-box;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 .5px 0 rgba(20, 45, 90, .12);
}
.sf-game-bar__back {
  justify-self: start; display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 14px 0 8px;
  border: 0; border-radius: 999px; background: rgba(120, 130, 150, .14); color: #2b3446; font-size: 14.5px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background .2s, transform .12s;
}
.sf-game-bar__back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sf-game-bar__arrow, .sf-game-bar__title, .sf-game-bar__refresh-icon { display: none; }
.sf-game-bar__refresh { justify-self: end; }
.sf-game-bar__back:active { transform: scale(.95); background: rgba(120, 130, 150, .24); }
.sf-game-bar__back:focus-visible { outline: 2px solid #2f7ff0; outline-offset: 2px; }
.sf-game-bar.is-busy .sf-game-bar__back { opacity: .6; pointer-events: none; }
.sf-brand-mark { display: inline-flex; align-items: center; justify-content: center; height: 30px; }
.sf-brand-mark img { height: 100%; width: auto; max-width: 46vw; object-fit: contain; }
.sf-brand-mark__white { display: none; }
:root[data-jg-mode="dark"] .sf-game-bar { background: rgba(18, 24, 34, .94); box-shadow: 0 .5px 0 rgba(255, 255, 255, .1); }
:root[data-jg-mode="dark"] .sf-game-bar__back { background: rgba(255, 255, 255, .12); color: #e6ecf5; }
:root[data-jg-mode="dark"] .sf-brand-mark__ink { display: none; }
:root[data-jg-mode="dark"] .sf-brand-mark__white { display: block; }

.sf-game-fullscreen, .sf-game-edge-rail { display: none; }
.sf-game-stage:fullscreen, .sf-game-stage:-webkit-full-screen {
  width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
  aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important;
}

/* 手机横屏：隐藏顶栏与左侧站内导航，满屏黑底展示游戏 + 左侧贴边可上下拖动收起抽屉 */
@media (orientation: landscape) and (max-height: 540px), (max-width: 1023.98px) and (orientation: landscape) {
  .float-ball-page.has-game-header {
    grid-template-rows: minmax(0, 1fr);
    padding: 0;
    background-color: #000;
  }
  .float-ball-page.has-game-header > .sf-game-bar { display: none; }
  html[data-game-header] > body > .jg-brand-loading { top: 0; left: 0; }
  .sf-game-edge-rail {
    --sf-edge-safe-left: env(safe-area-inset-left, 0px);
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(var(--jg-header-safe-top, env(safe-area-inset-top, 0px)) + 12px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    display: block;
    pointer-events: none;
  }
  .sf-game-edge-backdrop {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    z-index: 0;
    pointer-events: auto;
    background: transparent;
  }
  .sf-game-edge-anchor {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: max-content;
    will-change: transform;
  }
  .sf-game-edge {
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    width: max-content;
    min-height: 52px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 0 16px 16px 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-left: 0;
    background: rgba(10, 14, 22, .82);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    transform: translateX(calc(-100% + 32px + var(--sf-edge-safe-left)));
    transition: transform .2s ease-out;
  }
  .sf-game-edge.is-open { transform: translateX(0); }
  .sf-game-edge.is-busy .sf-game-edge__btn { opacity: .55; pointer-events: none; }
  .sf-game-edge__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px 3px calc(var(--sf-edge-safe-left) + 8px);
    opacity: 0;
    transition: opacity .15s ease;
  }
  .sf-game-edge.is-open .sf-game-edge__actions { opacity: 1; }
  .sf-game-edge__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    height: 100%;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s ease;
  }
  .sf-game-edge__btn + .sf-game-edge__btn::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 50%;
    width: 1px;
    height: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .18);
    pointer-events: none;
  }
  .sf-game-edge__btn:active { background: rgba(255, 255, 255, .14); }
  .sf-game-edge__btn:focus-visible, .sf-game-edge__handle:focus-visible { outline: 2px solid rgba(255, 255, 255, .88); outline-offset: -3px; }
  .sf-game-edge__exit-icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
  .sf-game-edge__refresh-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .sf-game-edge__handle {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: calc(32px + var(--sf-edge-safe-left));
    min-height: 44px;
    height: 100%;
    padding: 0 0 0 var(--sf-edge-safe-left);
    border: 0;
    background: transparent;
    color: #fff;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  /* 保持收起把手 32px 视觉窄宽，同时外延点击热区满足触控人体工学。 */
  .sf-game-edge__handle::after { content: ""; position: absolute; inset: -4px -8px -4px 0; }
  .sf-game-edge.is-dragging .sf-game-edge__handle { cursor: grabbing; }
  .sf-game-edge__handle:active { background: rgba(255, 255, 255, .12); }
  .sf-game-edge__handle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: transform .2s ease-out;
  }
  .sf-game-edge.is-open .sf-game-edge__handle svg { transform: rotate(180deg); }
}

/* 电脑端：保留左侧导航栏，右侧展示「圆形返回 + 游戏标题 + 刷新」子页头与圆角剧场舞台 + 右上角全屏按钮 */
@media (min-width: 1024px) and (min-height: 541px) {
  .float-ball-page.has-game-header {
    --sf-stage-width: min(100%, calc((var(--visual-viewport-height, 100dvh) - 108px) * 1871 / 1079));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0 28px;
    background-color: var(--jb-bg, #f4f7ff);
  }
  .float-ball-page.has-game-header > .sf-game-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
    width: var(--sf-stage-width);
    height: auto;
    min-height: 40px;
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .float-ball-page.has-game-header > .sf-game-bar .sf-brand-mark,
  .float-ball-page.has-game-header > .sf-game-bar .sf-game-bar__chev,
  .float-ball-page.has-game-header > .sf-game-bar .sf-game-bar__back-label { display: none; }
  .float-ball-page.has-game-header > .sf-game-bar .sf-game-bar__back:not(.sf-game-bar__refresh) {
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(15, 26, 51, .08);
    border-radius: 50%;
    background: #fff;
    color: var(--jb-ink, #0f1a33);
    box-shadow: 0 2px 8px rgba(15, 35, 80, .08);
  }
  .float-ball-page.has-game-header > .sf-game-bar .sf-game-bar__back:not(.sf-game-bar__refresh):hover {
    background: var(--jb-soft, #f0f6ff);
    color: var(--jb-brand, #167de4);
  }
  .float-ball-page.has-game-header > .sf-game-bar .sf-game-bar__arrow {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
  }
  .float-ball-page.has-game-header > .sf-game-bar .sf-game-bar__title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--jb-ink, #0f1a33);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-wrap: balance;
    overflow-wrap: break-word;
  }
  .float-ball-page.has-game-header > .sf-game-bar .sf-game-bar__refresh {
    flex: none;
    min-height: 36px;
    height: auto;
    padding: 6px 14px;
    gap: 6px;
    border: 1px solid rgba(15, 26, 51, .08);
    border-radius: 999px;
    background: #fff;
    color: var(--jb-ink-2, #3a4866);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 35, 80, .07);
  }
  .float-ball-page.has-game-header > .sf-game-bar .sf-game-bar__refresh:hover {
    background: var(--jb-soft, #f0f6ff);
    color: var(--jb-brand, #167de4);
  }
  .float-ball-page.has-game-header > .sf-game-bar .sf-game-bar__refresh-icon {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .float-ball-page.has-game-header > .sf-game-stage {
    flex: 0 1 auto;
    width: var(--sf-stage-width);
    height: auto;
    max-height: calc(var(--visual-viewport-height, 100dvh) - 108px);
    aspect-ratio: 1871 / 1079;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 18px 44px -22px rgba(15, 26, 51, .34), 0 0 0 1px rgba(15, 26, 51, .06);
  }
  .float-ball-page.has-game-header .sf-game-fullscreen {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .56);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
  }
  .float-ball-page.has-game-header .sf-game-fullscreen:hover { background: rgba(0, 0, 0, .74); }
  .float-ball-page.has-game-header .sf-game-fullscreen:active { transform: scale(.9); }
  .float-ball-page.has-game-header .sf-game-fullscreen:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .float-ball-page.has-game-header .sf-game-fullscreen svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  html[data-telegram-entry] .float-ball-page.has-game-header .sf-game-fullscreen { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-game-bar__back, .sf-game-edge, .sf-game-edge__actions, .sf-game-edge__handle svg, .sf-game-fullscreen {
    transition: none !important;
  }
}
/* Telegram 全屏：页面整体下移到 Telegram 返回 / 菜单按钮下方（body 变成所有固定定位层的定位基准），
   页面在 #app 里滚动；非全屏时 #app 已由 body padding-top 避让，body 直属弹层仍需避让 --tg-top。 */
html[data-telegram-entry] {
  --jg-header-safe-top: var(--tg-top, 0px);
  --jg-overlay-safe-top: var(--tg-top, 0px);
}
html[data-telegram-entry] #app {
  --jg-header-safe-top: 0px;
  --jg-overlay-safe-top: 0px;
}
html[data-telegram-fullscreen] {
  --jg-header-safe-top: 0px;
  --jg-overlay-safe-top: 0px;
  --sf-tg-safe-effective: var(--sf-tg-safe, 0px);
  --sf-tg-top-effective: var(--sf-tg-top, 0px);
}
@supports (top: max(0px, 1px)) {
  html[data-telegram-fullscreen] {
    --sf-tg-safe-effective: max(var(--sf-tg-safe, 0px), env(safe-area-inset-top, 0px));
    --sf-tg-top-effective: max(var(--sf-tg-top, 0px), calc(var(--sf-tg-safe-effective) + var(--sf-tg-bar, 0px)));
  }
}
html[data-telegram-entry] body {
  --jg-page-height: calc(var(--tg-height, var(--jg-viewport-height, 100vh)) - var(--sf-tg-top-effective, var(--sf-tg-top, 0px)) - var(--sf-tg-bottom, 0px));
  --visual-viewport-height: var(--jg-page-height);
  --vh: calc(var(--jg-page-height) / 100);
}
/* 半屏小程序的固定操作栏也必须跟随 Telegram 实际分配给页面的高度。 */
html[data-telegram-entry]:not([data-telegram-fullscreen]) #app { transform: translateZ(0); }
/* Telegram 顶层已避开状态栏，页面容器无需再叠加 iOS 或宿主提供的高度。 */
html[data-telegram-entry] #realapp { padding-top: 0 !important; }
html[data-telegram-entry] #realapp.checkin-source-scroll-shell { overflow-y: auto !important; }
html[data-telegram-fullscreen] { height: 100%; overflow: hidden; }
html[data-telegram-fullscreen] body {
  --tg-notice-edge: 100%;
  position: fixed !important; top: var(--sf-tg-top-effective, var(--sf-tg-top, 0px)) !important; left: 0 !important; right: 0 !important; bottom: auto !important;
  height: var(--jg-page-height) !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; transform: translateZ(0);
}
html[data-telegram-fullscreen] #app { height: 100% !important; min-height: 0 !important; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
html[data-telegram-fullscreen] .hb-detail-pop .main_wrap { padding-top: 0 !important; }
/* 顶部留白：露出 html 背景色。夜间由 display-mode.css 的 :root[data-jg-mode="dark"] 背景（优先级更高）接管 */
html[data-telegram-fullscreen] { background: #f3f6fc; }
/* Telegram 全屏：按钮行中间一直放本站 logo（背景透明，沿用上面的日 / 夜留白色）；首页左上角的 logo 因此不再显示 */
html[data-telegram-fullscreen] .hallPage .jg-hero-brand { visibility: hidden !important; }
html[data-telegram-entry]:not([data-telegram-fullscreen]) .personPage.jg-person-brand > .head_area.jg-person-brand__head { top: 0; }
html[data-telegram-fullscreen] .personPage.jg-person-brand { padding-top: 0; }
html[data-telegram-fullscreen] .personPage.jg-person-brand > .head_area.jg-person-brand__head { display: none !important; }
/* showModal() 打开的弹窗在浏览器最顶层、按整屏定位，不跟着 body 下移：整页的活动详情放到按钮行下方、底部横条上方，
   遮罩透明露出顶部留白和 logo；居中的小弹窗限制在同一区域内 */
html[data-telegram-fullscreen] dialog.jg-na-dp:modal {
  top: var(--sf-tg-top-effective, var(--sf-tg-top, 0px)) !important; bottom: var(--sf-tg-bottom, 0px) !important; height: auto !important; max-height: none !important;
  margin: 0 auto !important; transform: translateZ(0);
}
html[data-telegram-fullscreen] dialog.jg-na-dp::backdrop { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html[data-telegram-fullscreen] dialog:modal:not(.jg-na-dp) {
  top: var(--sf-tg-top-effective, var(--sf-tg-top, 0px)) !important; bottom: var(--sf-tg-bottom, 0px) !important;
  max-height: calc(var(--jg-page-height) - 24px) !important;
}
.sf-tg-strip {
  position: fixed; z-index: 2147483000; left: 0; right: 0; top: var(--sf-tg-safe-effective, var(--sf-tg-safe, 0px)); height: var(--sf-tg-bar, 0px);
  display: flex; align-items: center; justify-content: center; pointer-events: none; background: transparent;
}
.sf-tg-strip .sf-brand-mark { height: 28px; max-height: 28px; height: min(28px, calc(var(--sf-tg-bar, 0px) - 14px)); }
/* Telegram 自带返回按钮。游戏画面从宿主顶栏下方延伸到底边。 */
html[data-telegram-entry] .float-ball-page { top: 0; padding: 0; }
html[data-telegram-entry][data-game-header] body { --sf-tg-bottom: 0px; padding-bottom: 0; }
html[data-telegram-entry][data-game-header] #app {
  width: 100% !important; max-width: none !important; margin-left: 0 !important; transform: translateZ(0);
}
html[data-telegram-entry][data-game-header] .jg-wide-nav { display: none !important; }
html[data-telegram-entry][data-game-header] > body > .jg-brand-loading { left: 0; top: var(--jg-header-safe-top, 0px); }
html[data-telegram-entry] .float-ball-page.has-game-header { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: 100%; padding: 0; }
html[data-telegram-entry] .float-ball-page.has-game-header > .sf-game-bar { display: none; }
html[data-telegram-entry] .float-ball-page.has-game-header > .sf-game-stage {
  width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0;
}

/* 键盘平移可视区时，由页面容器统一跟随。内部弹层和表单改用容器自身的坐标。 */
@media (any-pointer: coarse), (max-width: 799px) {
  html[data-viewport-panned] { --keyboard-shell-top: var(--visual-viewport-top, 0px); }
  html[data-viewport-panned]:not([data-telegram-entry]) #app,
  html[data-viewport-panned][data-telegram-entry] body {
    position: fixed; top: var(--keyboard-shell-top); right: 0; left: 0; bottom: auto; inset: var(--keyboard-shell-top) 0 auto; contain: layout;
    --visual-viewport-top: 0px; --visual-viewport-page-top: 0px;
  }
  html[data-viewport-panned][data-telegram-fullscreen] body {
    top: calc(var(--keyboard-shell-top) + var(--sf-tg-top-effective, var(--sf-tg-top, 0px))) !important;
  }
  html[data-viewport-panned][data-telegram-entry]:not([data-telegram-fullscreen]) body { height: var(--tg-height, var(--jg-viewport-height, 100vh)); }
  html[data-viewport-panned] .sf-tg-strip { top: calc(var(--keyboard-shell-top) + var(--sf-tg-safe-effective, var(--sf-tg-safe, 0px))); }
}

.sf-hidden { display: none !important; }

/* 9. 底栏中间客服：缩小，点按区域与其他按钮一致，不压到两边 */
#app .jn-nav .jn-nav__item--service { overflow: visible; }
:is(#app, .jg-chat) .jn-nav .jn-nav__center { width: .98667rem; height: .98667rem; border-radius: .26667rem; gap: 0; box-shadow: 0 .05333rem .16rem #167de440, inset 0 .02667rem 0 #ffffff59; }
:is(#app, .jg-chat) .jn-nav .jn-nav__item--service.is-active .jn-nav__center { box-shadow: 0 .05333rem .16rem #167de440, inset 0 .02667rem 0 #ffffff59; }
:is(#app, .jg-chat) .jn-nav .jn-nav__center .jn-nav__icon { width: .48rem; height: .48rem; }
:is(#app, .jg-chat) .jn-nav .jn-nav__center .jn-nav__label { font-size: .24rem; }

/* 主页面滚动内容留出底栏；桌面由侧栏接管。 */
@media (max-width: 639px) {
  .index-container:has(> .bottom-taps) :is(.personcontent, .jg-ac-scroll) {
    scroll-padding-bottom: var(--jg-nav-clearance, calc(72px + env(safe-area-inset-bottom, 0px)));
    padding-bottom: var(--jg-nav-clearance, calc(72px + env(safe-area-inset-bottom, 0px)));
  }
}

/* 页头工具：与首页右上角同款的暗色切换 + 喇叭 */
.sf-head-tools { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.sf-head-tools .jg-mode-slot { display: contents; }
.sf-head-tools .jg-mode-toggle, .sf-head-tools .jg-notice-btn {
  position: relative; display: inline-grid; place-items: center; width: 33px; height: 33px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(rgba(255, 255, 255, .92), rgba(246, 249, 255, .85));
  box-shadow: 0 0 0 1px rgba(15, 35, 80, .07), 0 2px 7px -1px rgba(15, 35, 80, .12), inset 0 1px 0 #fff; color: #424653;
}
.sf-head-tools .jg-notice-btn { color: #0b1a38; }
.sf-head-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sf-head-tools .jg-notice-btn.has-unread::after { content: ''; position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #f04438; box-shadow: 0 0 0 1.5px #fff; }
.sf-head-tools .jg-mode-toggle:disabled { opacity: .6; }
:root[data-jg-mode="dark"] .sf-head-tools .jg-mode-toggle, :root[data-jg-mode="dark"] .sf-head-tools .jg-notice-btn {
  background: linear-gradient(180deg, #263652d9, #1a2840cc); box-shadow: 0 0 0 1px #ffffff14, 0 2px 7px -1px #0006; color: #e6edf7;
}
:root[data-jg-mode="dark"] .sf-head-tools .jg-mode-toggle { color: #ffd585; }
:root[data-jg-mode="dark"] .sf-head-tools .jg-notice-btn.has-unread::after { box-shadow: 0 0 0 1.5px #1a2840; }

/* 「我的」页快捷入口：下级管理（玩家管理的人像图标） */
:root .personPage .personcontent .mianMenuList .menu_item[data-sf="sub"] .main_img {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234a9bff'/%3E%3Cstop offset='1' stop-color='%231459cc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='4' y='4' width='40' height='40' rx='12' fill='url(%23g)'/%3E%3Cg transform='translate(12 12)' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.4'/%3E%3Cpath d='M2.8 19.4c.9-3.6 3.2-5.5 6.2-5.5s5.3 1.9 6.2 5.5'/%3E%3Cpath d='M15.2 4.9a3.4 3.4 0 0 1 0 6.2M17.6 14.3c1.9.7 3 2.4 3.6 5.1'/%3E%3C/g%3E%3C/svg%3E");
}
:root .personPage .personcontent .mianMenuList.jg-mf-new .menu_item[data-sf="sub"] .main_img {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.4'/%3E%3Cpath d='M2.8 19.4c.9-3.6 3.2-5.5 6.2-5.5s5.3 1.9 6.2 5.5'/%3E%3Cpath d='M15.2 4.9a3.4 3.4 0 0 1 0 6.2M17.6 14.3c1.9.7 3 2.4 3.6 5.1'/%3E%3C/svg%3E");
}

/* 邀请好友页的佣金卡片 */
.sf-invite__card {
  margin: 14px; color: var(--jb-ink, #0f1b33);
  border-radius: 20px; padding: 18px 16px 18px; background: linear-gradient(180deg, #d9e8ff 0, #eef4ff 70px, #fff 150px);
  box-shadow: 0 1px 0 #fff inset, 0 8px 24px -14px rgba(20, 60, 140, .35);
}
.sf-invite__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sf-invite__top h2 { margin: 0; font-size: 18px; font-weight: 800; }
.sf-invite__top p { margin: 6px 0 0; color: #5d6b85; font-size: 13px; }
.sf-invite__amount { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; padding: 16px; border-radius: 14px; background: #f1f5fb; }
.sf-invite__amount strong { color: #1268d6; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sf-invite__auto { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: linear-gradient(135deg, #8fb8f5, #6f9fe8); color: #fff; font-size: 13px; font-weight: 700; }
.sf-invite__kv p { display: flex; justify-content: space-between; margin: 0; padding: 9px 2px; color: #4a5872; font-size: 14px; }
.sf-invite__kv b { color: #0f1b33; font-weight: 800; font-variant-numeric: tabular-nums; }
.sf-invite__card hr { margin: 12px 0; border: 0; border-top: 1px solid #e7edf5; }
.sf-invite__section { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 12px; }
.sf-invite__section h3 { margin: 0; font-size: 15px; font-weight: 800; }
.sf-invite__link { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: #4a5872; font-size: 13px; cursor: pointer; }
.sf-invite__top .sf-invite__link { min-height: 32px; padding: 0 12px; border: 1px solid currentColor; border-radius: 16px; color: #1268d6; }
:root[data-jg-mode="dark"] .sf-invite__top .sf-invite__link { color: #9ac6ff; }
.sf-invite__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sf-invite__tiles div { display: grid; gap: 6px; justify-items: center; padding: 14px 4px; border-radius: 12px; background: #f1f5fb; }
.sf-invite__tiles span { color: #5d6b85; font-size: 12px; }
.sf-invite__tiles strong { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sf-invite__url { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border: 1px solid #e3eaf4; border-radius: 12px; background: #f6f9fd; }
.sf-invite__url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #24324d; }
.sf-invite__copy { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #e3eeff; color: #1268d6; cursor: pointer; }
.sf-invite__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sf-invite__btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 22px; font-size: 15px; font-weight: 700; cursor: pointer; }
.sf-invite__btn.is-tg { background: linear-gradient(135deg, #37aee2, #1e96c8); color: #fff; }
.sf-invite__btn.is-web { background: linear-gradient(135deg, #2f8bff, #1268d6); color: #fff; }
.sf-invite button:disabled { opacity: .5; cursor: default; }
:root[data-jg-mode="dark"] .sf-invite__card { background: linear-gradient(180deg, #1d3256 0, #182235 90px, #182235 100%); box-shadow: none; }
:root[data-jg-mode="dark"] .sf-invite__amount, :root[data-jg-mode="dark"] .sf-invite__tiles div, :root[data-jg-mode="dark"] .sf-invite__url { background: #1f2c43; border-color: #2b3c58; }
:root[data-jg-mode="dark"] .sf-invite__top p, :root[data-jg-mode="dark"] .sf-invite__kv p, :root[data-jg-mode="dark"] .sf-invite__tiles span, :root[data-jg-mode="dark"] .sf-invite__link { color: #a9b6cc; }
:root[data-jg-mode="dark"] .sf-invite__kv b, :root[data-jg-mode="dark"] .sf-invite__url span { color: #eef3fb; }
:root[data-jg-mode="dark"] .sf-invite__card hr { border-color: #2b3c58; }
:root[data-jg-mode="dark"] .sf-invite__copy { background: #24406b; color: #9cc4ff; }
:root[data-jg-mode="dark"] .sf-invite__amount strong { color: #6ea8ff; }

/* 信用投注盘顶部「清空下注」：与冷热/遗漏同一套胶囊样式 */
/* 皮肤里 #app .pc28-credit-center .credit-game-top button 带 !important，这里需更高优先级 */
#app .credit-game-top button.sf-clear-bet.sf-clear-bet { display: inline-flex !important; align-items: center !important; gap: .08rem !important; height: .74667rem !important; padding: 0 .37333rem !important; min-width: 2.18667rem !important; justify-content: center !important; flex: none !important; border: 0 !important; border-radius: .36rem !important; background: linear-gradient(180deg, #ff4d4f 0%, #e0202c 100%) !important; color: #fff !important; font-size: .36rem !important; font-weight: 700 !important; line-height: 1 !important; letter-spacing: .01333rem !important; cursor: pointer !important; box-shadow: 0 .05333rem .16rem rgba(224, 32, 44, .4), inset 0 1px 0 rgba(255, 255, 255, .28) !important; text-shadow: 0 1px 1px rgba(150, 20, 20, .25) !important; transition: transform .12s ease, box-shadow .12s ease !important; }
#app .credit-game-top button.sf-clear-bet.sf-clear-bet svg { width: .38667rem !important; height: .38667rem !important; fill: none !important; stroke: currentColor !important; stroke-width: 2.2 !important; stroke-linecap: round !important; stroke-linejoin: round !important; }
#app .credit-game-top button.sf-clear-bet.sf-clear-bet:active { transform: scale(.95) !important; box-shadow: 0 .02667rem .08rem rgba(224, 32, 44, .3) !important; }
:root[data-jg-mode="dark"] #app .credit-game-top button.sf-clear-bet.sf-clear-bet { background: linear-gradient(180deg, #ff5254 0%, #e0202c 100%) !important; color: #fff !important; box-shadow: 0 .05333rem .18667rem rgba(255, 70, 60, .4), inset 0 1px 0 rgba(255, 255, 255, .2) !important; }
/* 底部金额栏的「清空选号」垃圾桶隐藏，清空统一走顶部按钮（脚本仍会代点它） */
:is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .pc28-credit-amounts .bottom1-del { display: none !important; }
/* 信用投注盘底部金额条和下注按钮 */
html.jg-bet-room :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .pc28-standard-sheet--credit .botconentent { border-radius: .42667rem .42667rem 0 0 !important; box-shadow: 0 -1px 0 rgba(15, 35, 80, .05), 0 -.21333rem .53333rem rgba(15, 35, 80, .08) !important; }
#app .botconentent .pc28-credit-amounts .bottom1-select { align-items: center; margin: 0; padding: 0 !important; background: transparent !important; box-shadow: none; }
#app .botconentent .pc28-credit-amounts .moneyselectItem,
#app .botconentent .pc28-credit-amounts .moneyselectItem.active { padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; }
#app .botconentent .pc28-credit-amounts .quick-entry { border: 1px solid var(--jb-line) !important; border-radius: 50% !important; color: var(--jb-ink-2) !important; background: var(--jb-soft) !important; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .setmoney { border: 1.5px solid rgba(29, 53, 102, .22) !important; border-radius: .29333rem !important; background: #fff !important; color: var(--jb-ink, #0f1b33) !important; font-weight: 800 !important; text-align: center !important; box-shadow: 0 1px 2px rgba(15, 35, 80, .06) !important; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .setmoney:focus { outline: 0 !important; border-color: #2f6fe4 !important; box-shadow: 0 0 0 .08rem rgba(47, 111, 228, .16) !important; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .btoclassline { gap: .21333rem !important; align-items: stretch !important; margin-top: .26667rem !important; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .jqtouzhubnt:not(.spdzhhao) { flex: none !important; display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-content: center !important; align-items: center !important; justify-content: center !important; gap: 0; width: 1.49333rem !important; height: 1.17333rem !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: .32rem !important; background: var(--jb-soft, #f2f5fa) !important; color: var(--jb-ink-2, #3f4c66) !important; font-size: .26667rem !important; font-weight: 600 !important; line-height: 1.2 !important; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .jqtouzhubnt:not(.spdzhhao)::before { content: ""; flex: 0 0 100%; height: .42667rem; margin-bottom: .05333rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5M12 7v5l3 2'/%3E%3C/svg%3E") center / auto 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5M12 7v5l3 2'/%3E%3C/svg%3E") center / auto 100% no-repeat; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .jqtouzhubnt:not(.spdzhhao) span { display: inline !important; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .jqtouzhubnt:not(.spdzhhao) span { white-space: nowrap; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .jqtouzhubnt.jg-recent-cancel { width: 2.53866rem !important; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .ljtouzhubtn { height: 1.17333rem !important; margin: 0 !important; border: 0 !important; border-radius: .32rem !important; background: linear-gradient(180deg, #3d86ff 0%, #1459cc 100%) !important; color: #fff !important; font-size: .42667rem !important; font-weight: 800 !important; letter-spacing: .02667rem; box-shadow: 0 .10667rem .26667rem rgba(20, 89, 204, .32), inset 0 1px 0 rgba(255, 255, 255, .25) !important; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .ljtouzhubtn.is-disabled { background: repeating-linear-gradient(135deg, #e9edf4 0 .21333rem, #e3e8f0 .21333rem .42667rem) !important; color: #8b97ad !important; font-size: .37333rem !important; font-weight: 700 !important; letter-spacing: 0; box-shadow: inset 0 0 0 1px rgba(15, 35, 80, .05) !important; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .ljtouzhubtn.is-disabled span:first-child::before { content: ""; display: inline-block; width: .37333rem; height: .37333rem; margin-right: .10667rem; vertical-align: -.05333rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
#app :is(.lotteryaaa--zhuotou, .lotteryaaa--pcv) .botconentent .ljtouzhubtn span:last-child:not(:first-child) { opacity: .9; font-size: .29333rem !important; font-weight: 600 !important; letter-spacing: 0; }

/* 清空下注确认框（页面全局对 p / button 有字号、边距样式，这里统一 !important） */
.sf-ask { position: fixed !important; inset: 0 !important; z-index: 3100 !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 24px !important; background: rgba(8, 18, 38, .6) !important; animation: sf-ask-fade .18s ease; }
.sf-ask .sf-ask__box { position: relative; box-sizing: border-box; width: min(312px, 100%) !important; padding: 0 22px 20px !important; border-radius: 20px !important; background: #fff !important; text-align: center !important; box-shadow: 0 24px 60px rgba(8, 18, 38, .32) !important; animation: sf-ask-pop .22s cubic-bezier(.2, .9, .3, 1.2); }
.sf-ask .sf-ask__box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 86px; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #fff1f0 0%, rgba(255, 241, 240, 0) 100%); pointer-events: none; }
.sf-ask .sf-ask__icon { position: relative; display: flex !important; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 26px auto 14px !important; border-radius: 50%; background: linear-gradient(180deg, #ff4d4f 0%, #e0202c 100%); box-shadow: 0 8px 20px rgba(224, 32, 44, .35), 0 0 0 7px rgba(255, 77, 79, .12); }
.sf-ask .sf-ask__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sf-ask .sf-ask__title { position: relative; margin: 0 0 8px !important; padding: 0 !important; color: #0f1b33 !important; font-size: 18px !important; font-weight: 800 !important; line-height: 1.35 !important; }
.sf-ask .sf-ask__text { position: relative; margin: 0 0 22px !important; padding: 0 !important; color: #67748e !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.6 !important; }
.sf-ask .sf-ask__acts { display: flex !important; gap: 12px !important; }
.sf-ask .sf-ask__acts button { flex: 1 1 0 !important; height: 46px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 23px !important; font-size: 16px !important; font-weight: 700 !important; line-height: 46px !important; cursor: pointer; transition: transform .12s ease; }
.sf-ask .sf-ask__no { background: #f0f3f8 !important; color: #4a5872 !important; }
.sf-ask .sf-ask__yes { background: linear-gradient(180deg, #ff4d4f 0%, #e0202c 100%) !important; color: #fff !important; box-shadow: 0 6px 16px rgba(224, 32, 44, .35) !important; }
.sf-ask .sf-ask__acts button:active { transform: scale(.97); }
.sf-ask__close { position: absolute; z-index: 1; right: 8px; top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 68px; min-height: 44px; padding: 0 6px; border: 0; border-radius: 14px; background: transparent; color: #365579; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; }
.sf-ask__close .van-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #355780; color: #fff; font-size: 14px; }
.sf-ask__close:active { background: rgba(89, 124, 170, .14); }
.sf-ask__close:focus-visible { outline: 2px solid #377adb; outline-offset: 2px; }
:root[data-jg-mode="dark"] .sf-ask__close { color: #c8d9ef; }
:root[data-jg-mode="dark"] .sf-ask__close .van-icon { background: #bed7f8; color: #203650; }
.sf-ask.sf-ask--editor { align-items: flex-end !important; padding: 0 !important; }
.sf-draft, .pc-sheet-close { --draft-surface: #fff; --draft-soft: #f3f6fb; --draft-ink: #12233f; --draft-muted: #536780; --draft-line: #dbe3ee; --draft-accent: #195fc4; --draft-remove: #a63845; }
:root[data-jg-mode="dark"] :is(.sf-draft, .pc-sheet-close) { --draft-surface: #182438; --draft-soft: #21314a; --draft-ink: #edf3ff; --draft-muted: #b5c4d8; --draft-line: #34475f; --draft-accent: #a1c8ff; --draft-remove: #ffabb4; }
.sf-draft { display: flex; flex-direction: column; width: 100%; max-height: 88vh; max-height: 88dvh; color: var(--draft-ink); background: var(--draft-surface); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(13, 31, 55, .18); overflow: hidden; }
.sf-draft__head, .sf-draft__footer { flex: none; padding: 16px 20px; }
.sf-draft__head { padding-top: 12px; padding-bottom: 6px; }
.sf-draft__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sf-draft__head h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--draft-ink); font-size: 21px; font-weight: 750; line-height: 1.4; }
.sf-draft__head h2::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: #337bf0; }
button.pc-sheet-close { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 68px; min-height: 44px; padding: 0 16px; border: 1px solid var(--draft-line); border-radius: 12px; background: var(--draft-soft); color: var(--draft-accent); font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; }
:root[data-jg-mode="dark"] button.pc-sheet-close { color: #c8d9ef; }
button.pc-sheet-close:active { background: var(--draft-line); }
button.pc-sheet-close:focus-visible { outline: 2px solid #377adb; outline-offset: 2px; }
.sf-draft__total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; margin-top: 8px; border-radius: 15px; background: radial-gradient(90% 160% at 100% 0%, #2c508e, transparent 72%), linear-gradient(130deg, #142a59, #101f46); box-shadow: inset 0 0 0 1px #ffffff18, 0 4px 10px #1025501a; }
.sf-draft__total span, .sf-draft__total small { color: #c5d8f6; font-size: 13px; }
.sf-draft__total strong { display: block; color: #fff; font-size: clamp(22px, 5.8vw, 30px); line-height: 1.18; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sf-draft__total small { font-size: 12px; font-weight: 600; }
.sf-draft__count { flex: none; padding-left: 14px; border-left: 1px solid #ffffff38; }
.sf-draft__count b { color: #fff; font-variant-numeric: tabular-nums; }
.sf-draft__list { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 20px; margin: 0; list-style: none; }
.sf-draft__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--draft-line); }
.sf-draft__row:last-child { border: 0; }
.sf-draft__choice { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; overflow-wrap: anywhere; }
.sf-draft__choice small { color: var(--draft-muted); border-radius: 5px; padding: 2px 6px; background: var(--draft-soft); font-size: 12px; line-height: 1.35; }
.sf-draft__choice strong { font-size: 17px; line-height: 1.4; }
.sf-draft__amount { box-sizing: border-box; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border: 1px solid var(--draft-line); border-radius: 10px; background: var(--draft-soft); }
.sf-draft__amount .van-icon { color: var(--draft-muted); font-size: 14px; pointer-events: none; }
.sf-draft__amount input { width: 6ch; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--draft-ink); text-align: right; font-family: inherit; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sf-draft__amount:focus-within { outline: 2px solid var(--draft-accent); outline-offset: -2px; }
.sf-draft__amount.is-edited { border-color: var(--draft-accent); }
.sf-draft__amount.is-edited :is(input, .van-icon) { color: var(--draft-accent); }
.sf-draft__remove { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 52px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--draft-remove); font-size: 13px; font-weight: 600; }
.sf-draft__remove .van-icon { font-size: 16px; }
.sf-draft__row.is-removed .sf-draft__choice strong { text-decoration: line-through; color: var(--draft-muted); }
.sf-draft__row.is-removed .sf-draft__amount { opacity: .55; }
.sf-draft__row.is-removed .sf-draft__remove { color: var(--draft-accent); }
.sf-draft__footer { border-top: 1px solid var(--draft-line); background: var(--draft-soft); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.sf-draft__actions { display: grid; grid-template-columns: 1fr 1.55fr; gap: 10px; }
.sf-draft__actions button, .sf-draft__return { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 46px; padding: 0 10px; border-radius: 13px; font-size: 15px; font-weight: 650; cursor: pointer; }
.sf-draft__bulk { border: 1px solid var(--draft-line); color: var(--draft-ink); background: var(--draft-surface); }
.sf-draft__bulk .van-icon-delete-o { color: var(--draft-remove); }
.sf-draft__save, .sf-draft__return { border: 0; background: linear-gradient(#347df2, #155dcc); color: #fff; box-shadow: inset 0 1px 0 #ffffff40, 0 3px 8px #1653ab30; }
.sf-draft__save:disabled { background: var(--draft-line); color: var(--draft-muted); box-shadow: none; cursor: default; }
.sf-draft__return { width: 100%; }
.sf-draft__error, .sf-draft__empty { margin: 0; font-size: 14px; line-height: 1.5; }
.sf-draft__error { margin-bottom: 8px; color: var(--draft-remove); }
.sf-draft__empty { padding: 32px 20px; text-align: center; color: var(--draft-muted); overflow-y: auto; }
.sf-draft button:focus-visible { outline: 2px solid var(--draft-accent); outline-offset: -2px; }
@media (min-width: 650px) { .sf-ask.sf-ask--editor { align-items: center !important; } .sf-draft { width: min(520px, calc(100% - 32px)); border-radius: 18px; } }
@media (max-height: 480px) { .sf-draft { max-height: 96vh; max-height: 96dvh; } .sf-draft__head, .sf-draft__footer { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); } .sf-draft__total { margin-top: 2px; padding-block: 6px; } }
@media (any-pointer: coarse), (max-width: 639.98px) {
  .sf-ask.sf-ask--editor { position: absolute !important; top: var(--visual-viewport-page-top, 0px) !important; right: 0 !important; left: 0 !important; bottom: auto !important; inset: var(--visual-viewport-page-top, 0px) 0 auto !important; height: var(--visual-viewport-height, 100vh); container: draft-viewport / size; }
  html[data-telegram-entry]:not([data-telegram-fullscreen]) body > .sf-ask.sf-ask--editor { top: calc(var(--visual-viewport-page-top, 0px) + var(--tg-top, 0px)) !important; }
  html[data-telegram-fullscreen] body > .sf-ask.sf-ask--editor { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; inset: 0 !important; height: auto; }
  .sf-ask--editor > .sf-draft { max-height: 96%; max-height: min(96%, 88dvh); }
  .sf-draft__list:has(.sf-draft__amount input:focus) { touch-action: pan-x pinch-zoom; }
}
@container draft-viewport (max-height: 310px) {
  .sf-draft__head, .sf-draft__footer { padding-block: 5px; }
  .sf-draft__total { margin-top: 0; padding-block: 4px; }
  .sf-draft__total > div { display: flex; align-items: baseline; gap: 8px; }
}
@keyframes sf-ask-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sf-ask-pop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
:root[data-jg-mode="dark"] .sf-ask .sf-ask__box { background: #1a2538 !important; box-shadow: 0 24px 60px rgba(0, 0, 0, .5) !important; }
:root[data-jg-mode="dark"] .sf-ask .sf-ask__box::before { background: linear-gradient(180deg, rgba(255, 77, 79, .16) 0%, rgba(255, 77, 79, 0) 100%); }
:root[data-jg-mode="dark"] .sf-ask .sf-ask__title { color: #eef3fb !important; }
:root[data-jg-mode="dark"] .sf-ask .sf-ask__text { color: #a9b6cc !important; }
:root[data-jg-mode="dark"] .sf-ask .sf-ask__no { background: #26344d !important; color: #c7d2e4 !important; }

.jg-ops-hidden{display:none!important}.jn-nav__icon img{width:24px;height:24px;object-fit:contain}.jg-ops-category-label{position:absolute;bottom:4px;left:5px;right:5px;padding:5px;border-radius:8px;background:var(--jb-card,#fff);color:var(--jb-text,#15264c);font-weight:700;text-align:center}.jg-brand-hero__copy h2,.jg-auth-banner__default strong{white-space:pre-line}
