/* Non-betting UX cleanup: plans, draws, guide, promo duplicate, announcement. */

/* 计划保留紧凑展开按钮；开奖由整张卡片直接展开历史。 */
.plan-page .external-plan-card,
.draw-history .draw-game{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  position:relative;
}
.plan-page .external-plan-head,
.draw-history .draw-game-title{
  grid-column:1;
  grid-row:1;
}
.plan-page .real-plan-feature,
.draw-history .draw-history-list.unified{
  grid-column:1;
  grid-row:2;
}
.plan-page .plan-bet-panel{grid-column:1;grid-row:3}
.plan-page .external-plan-table{grid-column:1;grid-row:4}

.plan-page .draw-expand-btn{
  grid-column:1;
  grid-row:2;
  z-index:6;
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:inherit!important;
  font-size:0!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  justify-self:end;
}
.plan-page .draw-expand-btn{
  align-self:center;
  margin:0 8px 0 0!important;
}
.plan-page .draw-expand-btn::after{
  content:"↕️";
  font-size:19px;
  font-weight:900;
  line-height:1;
}
.plan-page .real-plan-feature{
  padding-right:42px!important;
}
html[data-theme="light"] .plan-page .draw-expand-btn{
  background:transparent!important;
  color:#465569!important;
}

/* 玩法说明：沿用现有真实玩法规则/赔率数据，只把现有说明层扩展成手机整页。 */
.plan-page .plan-guide{
  position:static;
  max-height:none;
  overflow:visible;
  padding:14px;
  background:var(--ux-panel);
}
.plan-page .plan-guide .pg-kind{margin-bottom:10px}
.plan-page .plan-guide .pg-play{padding:12px 0}
.plan-page .plan-guide .pg-play p{line-height:1.65;margin:7px 0}
.plan-page .plan-guide .pg-play::after{
  content:none;
  display:block;
  margin-top:7px;
  font-size:12px;
  line-height:1.55;
  opacity:.78;
}

/* 优惠页已有完整记录在“我的”；这里只移除重复的底部长条，历史数据不删除。 */
.promo-page .pp-records{display:none!important}

/* 当前公告结构是 .announce-icon；取消整体镜像，两个声纹 span 按 DOM 顺序显示在喇叭右侧。 */
.announce-icon{
  transform:none!important;
  display:inline-flex!important;
  align-items:center;
  flex-direction:row!important;
  white-space:nowrap;
}
.announce-icon span{
  display:inline-block!important;
  margin-left:1px;
}

/* Draw-page account summary and independently bound payout methods. */
.draw-page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;min-width:0}
.draw-page-head>.draw-balance{margin-left:auto;flex:none}
.pe-card{border:1px solid var(--line,#ddd);border-radius:10px;padding:12px;margin-bottom:10px;color:var(--text,#222);background:var(--card,#fff)}
.pe-card p{margin:8px 0;font-size:13px;line-height:1.6}.pe-account{overflow-wrap:anywhere}.pe-channel-note{display:block;margin-top:4px;color:var(--muted,#666)}
.pe-warning{color:#d0273b}.pe-success{color:#15803d}.pe-card input{color:inherit;background:var(--bg,#fff)}
[data-theme="dark"] .pe-card{background:#181f2e;color:#e5e7eb;border-color:#3b4556}
[data-theme="dark"] .pe-card input{background:#111827;border-color:#475569!important;color:#f1f5f9}
[data-theme="dark"] .pe-warning{color:#fda4af}[data-theme="dark"] .pe-success{color:#86efac}
@media(max-width:400px){.draw-page-head{gap:6px}.draw-page-head .draw-balance{font-size:12px}.order-cancel-row{flex-wrap:wrap;gap:8px}}

/* 公告喇叭：SVG 喇叭口朝右，声波在右侧 */
.announce-icon{transform:none!important;color:#dc2626;display:inline-flex!important;align-items:center;flex:none}
.announce-icon svg{display:block}
.announce-icon .aw1,.announce-icon .aw2{animation:annWave 1.4s ease-in-out infinite}
.announce-icon .aw2{animation-delay:.35s}
@keyframes annWave{0%,100%{opacity:.25}50%{opacity:1}}
@media (prefers-color-scheme:dark){.announce-icon{color:#f87171}}
html.dark .announce-icon,[data-theme="dark"] .announce-icon{color:#f87171}
.home-footer{padding:6px 12px 2px}
.cs-avatar .cs-avatar-portrait img{position:static!important;width:100%!important;height:100%!important;left:auto!important;top:auto!important;object-fit:cover!important;border-radius:50%!important}
.cs-room{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:6px 10px;padding:8px 10px;border-radius:10px;background:var(--ux-panel-2,#f3f5f9);color:var(--ux-text,#222);font-size:13px}.cs-room a{color:#d4a017;font-weight:700;text-decoration:underline}.cs-room button{border:1px solid rgba(212,160,23,.5);background:transparent;color:inherit;border-radius:8px;padding:3px 8px;font-size:13px}.cs-room small{color:#d4a017;margin-left:4px}

/* 充值页：U地址标签不折行，地址一行显示 */
.pay-address-row>span:first-child{white-space:nowrap;flex:none;margin-right:8px}
.pay-address-row>div{min-width:0;flex:1;display:flex;justify-content:flex-end;align-items:center;gap:6px}
.pay-address-row .pay-copyv{min-width:0;display:flex;align-items:center;gap:6px}
.pay-address-row .pay-address-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11.5px;letter-spacing:-.2px}
/* 下注成功：只在画面中间短暂显示「已下注」，不再从顶部滑下 */
.toast.bet-success{top:50%!important;transform:translate(-50%,-50%)!important;transition:opacity .15s!important;font-size:15px;font-weight:800;padding:10px 18px;border-radius:12px;z-index:1000}
.toast.bet-success:not(.show){opacity:0}
/* 彩票玩法标签：换行显示，所有标签完整可见 */
.play-page .mode-tabs{flex-wrap:wrap!important;overflow:visible!important;padding-left:2px!important;padding-right:2px!important;margin-left:0!important;margin-right:0!important;width:auto!important}
.play-page .mode-tabs button{flex:0 0 auto!important}
/* 公告：每条一行，横向滚动后上移切换 */
.announce-bar .announce-track{position:relative;display:block;height:20px;line-height:20px;overflow:hidden;white-space:nowrap}
.announce-bar .ann-item{display:inline-block;white-space:nowrap;will-change:transform;font-family:"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;font-size:13px;font-weight:600;letter-spacing:.3px;color:#dc2626}
html.dark .announce-bar .ann-item,[data-theme=dark] .announce-bar .ann-item{color:#fca5a5}
/* VIP：固定等级表，不嵌套滚动 */
.vip-tbody{max-height:none!important;overflow:visible!important}
.vip-table{overflow:visible!important}
.vip-tr{grid-template-columns:22% 28% 25% 25%!important;padding:8px 6px!important;font-variant-numeric:tabular-nums}
.vip-tr>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vip-th{position:static!important}
/* 七天签到格子 */
.sg7{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0}
.sg7-c{display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 2px;border-radius:10px;border:1px solid #e5e7eb;background:#f8fafc;color:#475569;min-width:0}
.sg7-c small{font-size:11px}.sg7-c b{font-size:14px;color:#b45309}.sg7-c em{font-style:normal;font-size:10.5px;white-space:nowrap}
.sg7-c.done{background:#ecfdf5;border-color:#86efac;color:#15803d}.sg7-c.done b{color:#15803d}
.sg7-c.today{background:#fff7ed;border-color:#f59e0b;box-shadow:0 0 0 2px rgba(245,158,11,.25);color:#b45309}
.sg7-c:last-child{grid-column:span 1}
html.dark .sg7-c,[data-theme=dark] .sg7-c{background:#1e293b;border-color:#334155;color:#cbd5e1}
html.dark .sg7-c.done,[data-theme=dark] .sg7-c.done{background:#052e1b;border-color:#166534;color:#86efac}
html.dark .sg7-c.today,[data-theme=dark] .sg7-c.today{background:#3b2405;border-color:#f59e0b;color:#fcd34d}
/* 天天红包：动态红包 */
.rp-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;margin:10px 0}
.rp-env{position:relative;width:150px;height:190px;border:0;border-radius:14px;background:linear-gradient(180deg,#e11d48,#b91c1c);box-shadow:0 8px 20px rgba(185,28,28,.35);overflow:hidden;cursor:pointer;padding:0}
.rp-top{position:absolute;left:-10%;right:-10%;top:-60px;height:120px;border-radius:0 0 50% 50%;background:#be123c;box-shadow:0 3px 0 rgba(0,0,0,.12)}
.rp-seal{position:absolute;left:50%;top:44px;transform:translateX(-50%);width:54px;height:54px;border-radius:50%;background:linear-gradient(#fde68a,#f59e0b);color:#9a3412;font:700 22px/54px "PingFang SC","Microsoft YaHei",sans-serif;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.rp-txt{position:absolute;left:0;right:0;bottom:22px;color:#fde68a;font-size:13px;font-weight:600}
.rp-ready{animation:rpShake 1.6s ease-in-out infinite}
.rp-lock,.rp-done{filter:grayscale(.65);opacity:.75;cursor:not-allowed}
.rp-opening{animation:none}.rp-opening .rp-seal{animation:rpSpin .7s linear infinite}.rp-opening .rp-top{transition:transform .6s;transform:translateY(-70px)}
.rp-state{margin:0;font-size:12.5px;text-align:center;color:#b91c1c}
@keyframes rpShake{0%,60%,100%{transform:rotate(0)}65%{transform:rotate(-6deg)}72%{transform:rotate(6deg)}79%{transform:rotate(-4deg)}86%{transform:rotate(3deg)}}
@keyframes rpSpin{to{transform:translateX(-50%) rotateY(360deg)}}
.rp-reveal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55)}
.rp-card{width:230px;padding:26px 16px 18px;border-radius:18px;background:linear-gradient(180deg,#ef4444,#b91c1c);color:#fde68a;text-align:center;display:flex;flex-direction:column;gap:6px;animation:rpPop .45s cubic-bezier(.2,1.4,.4,1)}
.rp-card b{font-size:36px;color:#fff7c2}.rp-card em{font-style:normal;font-size:12px;opacity:.9}
.rp-card button{margin-top:8px;border:0;border-radius:999px;padding:9px;background:linear-gradient(#fde68a,#f59e0b);color:#7c2d12;font-weight:700}
@keyframes rpPop{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
html.dark .rp-state,[data-theme=dark] .rp-state{color:#fca5a5}
/* 防白屏：图片未到时先显示深色底 */
.by-stage{background-color:#06233d!important}
.by-bgl{background-color:#06233d}
.by-cv{background:transparent}
.qp-hub,.qp-lobby,.sl-lobby,.cg-lobby,.dz-lobby{background-color:transparent}
.qp-hcard{background-color:#14213d}
/* 捕鱼游戏区加高，减少下方空白 */
.by-stage{height:clamp(380px,calc(100dvh - 190px),700px)!important}
/* 电子/闯关大厅横幅 */
.lh-hero{height:200px}
.lh-sl{background:radial-gradient(90% 80% at 50% 30%,#6d28d9 0,#3b0764 50%,#12021f 100%);box-shadow:inset 0 0 0 2px #c084fc,0 10px 24px rgba(0,0,0,.3)}
.lh-cg{background:radial-gradient(90% 80% at 50% 30%,#0e7490 0,#083344 50%,#020c12 100%);box-shadow:inset 0 0 0 2px #22d3ee,0 10px 24px rgba(0,0,0,.3)}
.lh-reels{position:absolute;left:50%;top:26px;transform:translateX(-50%);display:flex;gap:8px;padding:8px;border-radius:14px;background:linear-gradient(#fde68a,#b45309);box-shadow:0 6px 16px rgba(0,0,0,.4)}
.lh-reel{width:60px;height:84px;overflow:hidden;border-radius:8px;background:#fff8e7}
.lh-strip{display:flex;flex-direction:column;animation:lhSpin 2.4s cubic-bezier(.5,0,.5,1) var(--d) infinite}
.lh-strip i{height:84px;display:flex;align-items:center;justify-content:center;font:900 38px/1 Georgia,serif;font-style:normal;color:#b91c1c}
@keyframes lhSpin{0%{transform:translateY(0)}70%,100%{transform:translateY(-504px)}}
.lh-coin{position:absolute;top:-20px;left:calc(8% + var(--i)*16%);width:16px;height:16px;border-radius:50%;background:radial-gradient(#fef08a,#d97706);animation:lhFall 3s linear calc(var(--i)*.5s) infinite;opacity:.85}
@keyframes lhFall{to{transform:translateY(240px) rotate(360deg)}}
.lh-orbit{position:absolute;left:50%;top:70px;width:0;height:0;animation:lhRot 14s linear infinite}
.lh-ic{position:absolute;font-size:26px;transform:rotate(calc(var(--i)*45deg)) translateX(110px) rotate(calc(var(--i)*-45deg));margin:-15px}
@keyframes lhRot{to{transform:rotate(360deg)}}
.lh-mult{position:absolute;left:50%;top:44px;transform:translateX(-50%);font:900 34px/1 Georgia,serif;color:#fde047;text-shadow:0 0 12px rgba(250,204,21,.7);animation:lhPulse 1.6s ease-in-out infinite}
@keyframes lhPulse{50%{transform:translateX(-50%) scale(1.12)}}
@media (prefers-reduced-motion:reduce){.lh-strip,.lh-coin,.lh-orbit,.lh-mult{animation:none}}
.lh-orbit{top:72px}.lh-ic{font-size:22px;transform:rotate(calc(var(--i)*45deg)) translateX(64px) rotate(calc(var(--i)*-45deg));margin:-13px}
.lh-mult{top:58px;font-size:26px}
.lh-cg{margin-bottom:26px}
/* 我的：展开分组后其余卡片自动补位，避免末尾落单 */
.my-page{grid-auto-flow:row dense!important}
.my-page>details.account-section.my-lone:not([open]){grid-column:1/-1}
/* 闯关游戏区加高，减少下方空白 */
.cg-page .cg-stage{min-height:clamp(300px,calc(100dvh - 340px),620px)!important;justify-content:center}
.cg-page .cg-stage>*{flex:0 0 auto!important;align-content:center}
.cg-page .cg-stage{align-content:center!important}
/* 彩票：选号区加大，标签紧凑，减少下方空白 */
.play-page .mode-tabs{gap:6px!important;padding:8px 0!important}
.play-page .mode-tabs button{padding:7px 11px!important;font-size:13px!important}
.play-page .selector-wrap button{min-height:54px;font-size:17px}
.play-page .selector-wrap{padding-bottom:12px}
/* 棋牌牌桌：开牌结果横幅下移，牌面完全可见 */
.bt-deal{margin-bottom:32px!important}
.bt-deal .bt-win{position:absolute!important;left:50%!important;top:auto!important;bottom:-46px!important;grid-column:auto!important;margin:0!important;transform:translateX(-50%);z-index:5;animation:qppopx .4s var(--t,0s) both}
@keyframes qppopx{from{opacity:0;transform:translateX(-50%) scale(.6)}to{opacity:1;transform:translateX(-50%) scale(1)}}
/* 客服：玩家聊天室入口与普通客服明显区分 */
html .support-head .support-act.cs-room-btn{position:relative;background-image:linear-gradient(135deg,#ff5f6d,#ffc371)!important;display:inline-flex;align-items:center;gap:3px;background:linear-gradient(135deg,#ff5f6d,#ffc371)!important;color:#fff!important;border:0!important;font-weight:700;box-shadow:0 2px 8px rgba(255,95,109,.45)}
.cs-room-ic{font-style:normal;font-size:13px;line-height:1}
.cs-live{font-style:normal;font-size:8px;line-height:1;padding:2px 3px;border-radius:4px;background:#fff;color:#e0213a;font-weight:800;letter-spacing:.3px}
.cs-live::before{content:"";display:inline-block;width:5px;height:5px;margin-right:2px;border-radius:50%;background:#e0213a;vertical-align:1px;animation:csLive 1.2s infinite}
@keyframes csLive{50%{opacity:.25}}
.cs-room{background:linear-gradient(135deg,rgba(255,95,109,.14),rgba(255,195,113,.18))!important;border:1px solid rgba(255,95,109,.45)!important}
.cs-room b{display:inline-flex;align-items:center;gap:4px;color:#e0213a}
.cs-room-dot{width:7px;height:7px;border-radius:50%;background:#e0213a;animation:csLive 1.2s infinite}
@media (max-width:360px){html .support-head .support-act.cs-room-btn{font-size:11px;padding-left:5px;padding-right:5px}.support-head .support-act.cs-room-btn .cs-room-ic{display:none}.cs-head-person b{white-space:nowrap;font-size:12px}.cs-head-person [data-cs-head-avatar]{display:none}}
/* 推筒子/二八杠：发牌前的占位门与开牌后同高，开牌时牌桌不再变高 */
.qt-deal .bt-hand{min-height:88px;box-sizing:border-box}
/* 投注页：只显示第一种玩法，其余点「更多玩法」原地展开；余额放在开奖倒计时上方 */
.mode-tabs .mode-more-hide{display:none!important}
.mode-tabs .mode-more{border:1px dashed currentColor!important;background:transparent!important;color:#6d5dfc!important;font-weight:700}

.play-timers .play-bal-row{grid-column:1/-1;width:100%;display:flex;justify-content:flex-end;order:-1;margin:0 0 4px;min-height:0;padding:0;background:none!important;border:0!important;box-shadow:none!important}
/* 开奖页：全部/收藏/选择彩种/玩法说明/余额 一排显示 */
.draw-toprow{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin:0 0 8px;min-width:0}
.draw-toprow .plan-tabs{display:flex;gap:4px;flex:0 0 auto}
.draw-toprow .plan-tabs button{padding:0 10px;height:32px;font-size:12px;white-space:nowrap}
.draw-toprow select{flex:1 1 auto;min-width:0;height:32px;font-size:12px}
.draw-toprow .plan-guide-btn{flex:0 0 auto;height:32px;padding:0 8px;font-size:12px;white-space:nowrap}
.draw-toprow .page-inline-balance{flex:0 0 auto;margin:0!important}
.draw-search-row{grid-template-columns:1fr auto!important}
.plan-guide .pg-ex{margin:4px 0 0;font-size:12px;color:#b45309;background:rgba(245,158,11,.1);border-radius:6px;padding:4px 6px}
@media (max-width:360px){.draw-toprow .plan-tabs button{padding:0 7px}.draw-toprow .plan-guide-btn{padding:0 5px}}

.plan-guide .pg-play::after{content:none!important;display:none!important}
.draw-page .plan-guide{position:static!important;max-height:none!important;overflow:visible!important;padding:10px 12px;border-radius:12px;background:var(--ux-panel,#fff)}
/* 性能：屏幕外的计划/开奖卡片跳过布局与绘制，滚动到时再渲染（内容仍在DOM中，不丢数据） */
.plan-page .external-plan-card,.draw-page .draw-card,.draw-page .draw-history>article,.home-page .game-card{content-visibility:auto;contain-intrinsic-size:auto 220px}
/* 计划页顶部一排与开奖页一致 */
.plan-page .plan-toolbar.draw-toprow{display:flex!important;grid-template-columns:none!important;align-items:center;gap:6px;flex-wrap:nowrap;margin:0 0 8px;padding:0}
.plan-page .plan-toolbar.draw-toprow .plan-game-select{flex:1 1 auto;min-width:0;width:auto;height:32px;font-size:12px}
.plan-page .plan-toolbar.draw-toprow .plan-guide-btn{flex:0 0 auto;height:32px;padding:0 8px;font-size:12px;white-space:nowrap;margin:0}
/* 投注页玩法选择：顶部居中长条，原地展开 */
.mode-picker{margin:0 0 8px;text-align:center;width:100%}
.mode-picker .mode-current{display:flex;width:100%;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:0 18px;border-radius:10px;border:1px solid #d1d5db;background:#e5e7eb;color:#374151;font-size:15px;box-sizing:border-box}
.mode-picker .mode-current i{font-style:normal;font-size:12px}
.mode-picker .mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;text-align:center}
.mode-picker .mode-grid button{min-height:38px;border-radius:12px;border:1px solid rgba(148,163,184,.4);background:var(--ux-panel,#fff);color:inherit;font-size:13px;padding:4px 6px}
.mode-picker .mode-grid button.active{background:#7c3aed;color:#fff;border-color:#7c3aed}
/* 号码/选项下方赔率小字：不改变按钮尺寸与排列 */
.number-grid button{position:relative}
.number-grid button .opt-main{display:block}
.number-grid button .opt-odds{position:absolute;left:0;right:0;bottom:1px;font-size:8px;line-height:1;text-align:center;opacity:.75;pointer-events:none;font-weight:700}
.number-grid button.active .opt-odds{opacity:.95;color:#fff}
/* 已选区域完整显示具体选择 */
.bet-toolbar .sel-box{display:flex;flex-direction:column;gap:2px;min-width:0;grid-column:1;grid-row:1}
.bet-toolbar .sel-count{display:flex;align-items:center;gap:4px}
.bet-toolbar .sel-items{font-size:14px;font-weight:700;line-height:1.4;color:#1e293b;white-space:normal;word-break:break-all;max-height:none;overflow:visible;text-align:left}
.draw-go{display:inline-flex;cursor:pointer}
.play-page .play-top .play-timers > .play-bal-row,.play-page .play-timers .play-bal-row{background:transparent!important;background-color:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}

/* 已选区域允许完整显示，不截断 */
.bet-toolbar{grid-template-rows:auto auto!important;align-items:start}
.bet-toolbar>button{grid-row:1;align-self:center}
.bet-toolbar .sel-items:empty{display:none}

/* 开奖区与已选区彻底分离：独立卡片，稳定间距，禁止叠层 */
.play-page .rs-top{position:relative!important;margin:8px 0!important;width:100%!important;border-radius:14px!important;padding:12px!important;box-sizing:border-box}
.play-page .bet-toolbar{position:sticky!important;top:0!important;z-index:28!important;margin:8px 0!important;border-radius:14px!important;clear:both}
.play-page .rs-top+.bet-toolbar{margin-top:10px!important}
.play-page .sel-count{justify-content:flex-start!important;text-align:left}
.play-page .sel-box{align-items:flex-start}
html[data-theme="dark"] .mode-picker .mode-current,[data-theme=dark] .mode-picker .mode-current{background:#374151;border-color:#4b5563;color:#e5e7eb}

/* 已选内容加深加大，左上角注数 */
.play-page .bet-toolbar .sel-count{justify-content:flex-start!important;align-items:baseline}
.play-page .bet-toolbar .sel-count strong{font-size:18px;color:#dc2626}
.play-page .bet-toolbar .sel-items{font-size:14px!important;font-weight:700!important;color:#1e293b!important}
html[data-theme="dark"] .play-page .bet-toolbar .sel-items,[data-theme=dark] .play-page .bet-toolbar .sel-items{color:#f1f5f9!important}
/* 开奖区/已选区统一卡片：同宽、同圆角、稳定间距 */
.play-page .rs-top,.play-page .bet-toolbar{width:100%!important;margin-left:0!important;margin-right:0!important;border-radius:14px!important;box-sizing:border-box}
.play-page .rs-top{margin-bottom:10px!important}
.play-page .bet-toolbar{margin-top:10px!important;margin-bottom:10px!important}

/* 投注页底部关系：投注盘只在有选择时从底部导航栏正上方上滑，始终与导航栏零间隙贴合。 */
.play-page .play-bottom{bottom:calc(var(--navigation-height) + env(safe-area-inset-bottom))!important;margin-bottom:0!important;z-index:998!important}

/* 客服保持独立视口：公共输入停靠不得接管客服弹层几何。 */
@media (pointer:coarse){
  html.auth-keyboard-open #app .support-mask:has(.support-form input:focus){
    position:fixed!important;
    inset:auto 0 auto 0!important;
    top:var(--auth-vv-top,0px)!important;
    bottom:auto!important;
    height:var(--cs-vv-height,var(--auth-vv-height,100dvh))!important;
    min-height:0!important;
    padding:0!important;
    align-items:flex-end!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  html.auth-keyboard-open #app .support-mask:has(.support-form input:focus)>.support-sheet{
    height:min(620px,calc(var(--cs-vv-height,var(--auth-vv-height,100dvh)) - 8px))!important;
    max-height:100%!important;
    margin:0!important;
    overflow:hidden!important;
  }
}


/* Plan page: exactly two independently scrolling single-line filter rows. */
.plan-page .plan-toolbar.draw-toprow.plan-filter-toolbar{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:5px!important;width:100%;max-width:100%;min-width:0;margin:0 0 8px;
}
.plan-page .plan-filter-line{
  display:flex;align-items:center;flex-wrap:nowrap;gap:6px;min-width:0;width:100%;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;white-space:nowrap;padding:2px 0 4px;
}
.plan-page .plan-filter-line::-webkit-scrollbar{display:none}
.plan-page .plan-filter-heading{
  flex:0 0 auto;font-size:12px;font-weight:850;color:var(--ux-text,#263247);padding-right:2px;
}
.plan-page .plan-filter-chip{
  flex:0 0 auto;height:30px;min-width:46px;border:1px solid var(--ux-line,#d8dee8);
  border-radius:9px;padding:0 10px;background:var(--ux-panel,#fff);
  color:var(--ux-text,#263247);font-size:12px;font-weight:750;white-space:nowrap;
}
.plan-page .plan-filter-chip.active{background:#5c63ef;border-color:#5c63ef;color:#fff}
.plan-page .plan-filter-line .plan-game-select{
  flex:0 0 104px!important;width:104px!important;min-width:104px!important;
  max-width:none!important;margin:0!important;
}
.plan-page .plan-filter-line .plan-guide-btn,
.plan-page .plan-filter-line .plans-balance{flex:0 0 auto!important}
