/* 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}
/* 投注页玩法选择：顶部居中长条，原地展开 */
.play-page .mode-picker{position:relative;margin:0 0 10px;width:100%;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:7px;text-align:center}
.play-page .mode-picker .mode-current{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column-reverse;width:max-content;max-width:calc(100% - 205px);min-width:0;justify-content:center;align-items:center;gap:2px;min-height:40px;padding:0 2px;border-radius:0;border:0;background:transparent;color:#dc2626;font-size:clamp(11px,3.15vw,14px);font-weight:800;line-height:1.15;box-sizing:border-box}
.play-page .mode-picker .mode-current>b{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.play-page .mode-picker>.back-btn{display:inline-flex;align-items:center;justify-content:flex-start;width:auto;height:36px;min-width:52px;padding:0 4px;background:transparent;color:inherit;border:0;border-radius:0;box-shadow:none;font-size:13px;font-weight:800;white-space:nowrap}
.play-page .mode-picker>.play-bal-row{display:flex;align-items:center;justify-content:flex-end;min-width:0;max-width:152px}
html[data-theme="dark"] .play-page .mode-picker .mode-current{background:transparent;border:0;color:#f87171}
.mode-picker .mode-current i{display:block;font-style:normal;font-size:12px;line-height:1;color:#dc2626}
.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:8px;min-width:0;grid-column:1;grid-row:1;align-items:flex-start}
.bet-toolbar .sel-count{display:flex;align-items:center;gap:4px}
.bet-toolbar .sel-items{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;font-size:14px;font-weight:700;line-height:1.4;color:#1e293b;white-space:normal;word-break:normal;max-height:none;overflow:visible;text-align:left;min-width:0}
.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!important;align-items:stretch}
.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:relative!important;top:auto!important;z-index:auto!important;margin:8px 0!important;border-radius:14px!important;clear:both;min-height:0}
.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:transparent;border:0;color:#f87171}

/* 已选内容加深加大，左上角注数 */
.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;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere}
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}
/* Selected-bet details remain visible, while the existing server lock still blocks submitting. */
.play-page .bet-toolbar{grid-template-columns:minmax(0,1fr) auto!important;column-gap:8px!important;row-gap:7px!important;padding:12px!important}
.play-page .bet-toolbar>.bet-pick-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;min-height:0!important;height:auto!important;gap:5px!important;align-self:start!important}
.play-page .bet-toolbar>.bet-pick-actions>.bet-pick-action{flex:0 0 auto!important;width:52px!important;min-width:52px!important;min-height:30px!important;height:30px!important;padding:0 4px!important;font-size:12px!important}
.play-page .bet-toolbar .sel-count strong{font-size:23px!important}
.play-page .bet-toolbar .sel-items .sel-group{display:inline-flex;flex-wrap:wrap;gap:5px;align-items:center;min-width:0}
.play-page .bet-toolbar .sel-items .sel-group-items{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}
html[data-theme="light"] .play-page .bet-toolbar .sel-items .sel-choice{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #fbd3a7;background:linear-gradient(125deg,#fff9f2,#fff0df);border-radius:11px;color:#25334b}
html[data-theme="light"] .play-page .bet-toolbar .sel-items .sel-choice em{font-style:normal;color:#dc780a;font-size:11px}
html[data-theme="light"] .play-page .bet-toolbar{box-shadow:0 5px 16px rgba(30,91,175,.065)}
@media(max-width:380px){.play-page .bet-toolbar{padding:9px!important;column-gap:4px!important}.play-page .bet-toolbar>.bet-pick-actions{gap:2px!important}.play-page .bet-toolbar>.bet-pick-actions>.bet-pick-action{font-size:11px!important;min-width:48px!important;width:48px!important}}
/* Match the K3 sum tile to the existing dice dimensions, without changing its value. */
.play-page .rs-row.kind-k3 .rs-attributes .sc.n{min-width:30px;height:30px;border-radius:8px;display:grid;place-items:center}
/* Preserve the source-provided lottery numbers and their existing zodiac labels. */
.play-page .rs-row.kind-lhc .lhc-result-ball{min-height:38px!important;aspect-ratio:1!important;border-radius:6px!important;overflow:visible;box-sizing:border-box}
.play-page .rs-row.kind-lhc .lhc-zodiac{display:block!important;font-size:clamp(8px,2.3vw,10px)!important;line-height:1.1!important;white-space:nowrap;margin-top:2px!important}
@media(max-width:380px){.play-page .mode-picker .mode-current{max-width:calc(100% - 180px);font-size:11px}.play-page .mode-picker>.play-bal-row{max-width:124px}.play-page .mode-picker>.back-btn{min-width:40px;padding-left:0;font-size:12px}}

/* Shared visual layout for existing lottery, category, draw and account views.
   Presentation only: reuse live draw, selected bets, account data, and original event targets. */
html[data-theme="light"] .play-page{
  color:#10213d;
}
html[data-theme="light"] .play-page .play-top{
  position:relative;
  overflow:hidden;
  border:1px solid #bfd8ff!important;
  background:linear-gradient(112deg,#1aa0f6 0%,#2575ee 46%,#a3caff 100%)!important;
  color:#fff!important;
  box-shadow:0 8px 21px rgba(42,109,218,.16)!important;
  padding:clamp(12px,3.5vw,19px)!important;
  min-height:122px;
  box-sizing:border-box;
}
html[data-theme="light"] .play-page .play-top:before{
  content:"";position:absolute;right:-30px;bottom:-60px;width:190px;height:190px;
  border:1px solid rgba(255,255,255,.22);border-radius:50%;pointer-events:none;
}
html[data-theme="light"] .play-page .play-top .play-top-main{position:relative;z-index:1;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(7px,2vw,14px)}
html[data-theme="light"] .play-page .play-top-game .play-issue h1,
html[data-theme="light"] .play-page .play-top-game .play-issue p{color:#fff!important;text-shadow:0 1px 2px rgba(0,37,95,.22)}
html[data-theme="light"] .play-page .play-top-game .play-issue h1{font-size:clamp(15px,4vw,23px)!important}
html[data-theme="light"] .play-page .play-timers{
  border-radius:19px!important;background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(235,243,255,.97))!important;
  border:1px solid rgba(255,255,255,.8)!important;
  box-shadow:0 3px 12px rgba(10,65,150,.13)!important;
}
html[data-theme="light"] .play-page .draw-timer strong{color:#0865ed!important;font-variant-numeric:tabular-nums}
html[data-theme="light"] .play-page .lock-timer{border-radius:999px!important}
html[data-theme="light"] .play-page .rs-top,
html[data-theme="light"] .play-page .play-history-panel .rs-row,
html[data-theme="light"] .play-page .bet-toolbar,
html[data-theme="light"] .play-page .number-row{
  border:1px solid #dae5f5!important;background:#fff!important;
  border-radius:17px!important;box-shadow:0 4px 14px rgba(33,75,147,.07)!important;
}
.play-page .rs-top{min-height:70px!important}
.play-page .rs-top .rs-content{min-width:0}
.play-page .rs-row.kind-lhc .rs-content{gap:8px}
.play-page .rs-row.kind-lhc .rs-balls{min-width:0;width:100%}
.play-page .rs-row.kind-lhc .lhc-result-ball .lhc-zodiac{font-size:clamp(8px,2vw,10px)!important;line-height:1.1!important}
.play-page .bet-toolbar{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px 12px!important;padding:12px!important;
  align-items:start!important;
}
.play-page .bet-toolbar>.sel-box{min-height:40px;gap:10px!important;align-items:flex-start!important}
.play-page .bet-toolbar .sel-items{
  display:flex!important;flex-wrap:wrap;align-items:center;gap:7px!important;
  width:100%;max-width:100%;font-size:13px!important;
}
.play-page .bet-toolbar .sel-group,
.play-page .bet-toolbar .sel-group-items{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:100%}
.play-page .bet-toolbar .sel-choice{
  display:inline-flex;align-items:baseline;gap:5px;max-width:100%;
  border:1px solid #ffdaad;border-radius:11px;
  padding:7px 10px;background:#fff5e9;color:#1c2b47;
  white-space:normal;overflow-wrap:anywhere;
}
.play-page .bet-toolbar .sel-choice em{font-size:11px;color:#d97706;font-style:normal}
.play-page .bet-toolbar>.bet-pick-actions{
  grid-column:2!important;grid-row:1!important;
  min-height:0!important;align-self:start!important;gap:6px!important;
  height:auto!important;
}
.play-page .bet-toolbar .bet-pick-action{min-height:28px!important;white-space:nowrap}
html[data-theme="light"] .play-page .number-grid button:not(.k3-pick){
  border-radius:12px!important;border:1px solid #d0dcf0!important;
  background:linear-gradient(150deg,#fff,#f0f4fd)!important;color:#132442!important;
  box-shadow:0 1px 2px rgba(27,58,118,.06);
}
html[data-theme="light"] .play-page .number-grid button.active:not(.k3-pick){
  background:linear-gradient(135deg,#ffbc35,#ff8b0a)!important;
  color:#fff!important;border-color:#ffad2c!important;box-shadow:0 4px 11px rgba(255,142,20,.2)!important;
}
.play-page .number-grid{gap:8px}
.play-page .number-grid button:not(.k3-pick){min-height:54px!important;height:auto!important;padding:8px 4px 14px!important}
.play-page .number-grid button .opt-odds{bottom:4px!important;font-size:10px!important;opacity:.85!important}
.play-page .number-row-head{gap:8px}
.play-page .number-row-head b{min-width:0;overflow-wrap:anywhere}
.play-page .mode-picker>.back-btn{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
/* Account page: reference blue header, four KPI tiles, 2x4 real actions and recent actual bets. */

/* The security section is accessed through the single Settings card, not rendered twice. */
.my-page>details.account-section[data-account-key="security"]:not([open]){display:none!important}



html[data-theme="light"] .my-page>.my-card{
 background:linear-gradient(115deg,#27a1f2 0%,#287af0 53%,#90bafb 100%)!important;
 border:1px solid #b6d8fd!important;box-shadow:0 7px 16px rgba(33,110,224,.12)!important;
 color:#fff!important;border-radius:18px;padding:16px;min-height:98px;
}
html[data-theme="light"] .my-page>.my-card b,html[data-theme="light"] .my-page>.my-card small,html[data-theme="light"] .my-page>.my-card>div{color:#fff!important}
.my-page>.my-card{min-width:0;gap:11px;align-items:center}
.my-page>.my-card>div{min-width:0;overflow-wrap:anywhere}
.my-page>.my-card .avatar-button{border-radius:13px!important;overflow:hidden}
.my-page>.my-card [data-edit-nick]{font-size:clamp(15px,4.3vw,20px)!important}
.my-page>.my-stats.my-summary-four{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;min-width:0;margin:0!important;border:1px solid #e1eafa;border-radius:17px;background:#fff;padding:11px 3px;box-shadow:0 4px 14px rgba(33,81,151,.06)}
html[data-theme="light"] .my-page>.my-stats.my-summary-four>div{min-width:0!important;height:auto!important;min-height:63px!important;max-height:none!important;margin:0!important;padding:8px 3px!important;border:0!important;border-right:1px solid #e3eaf6!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;display:flex;flex-direction:column-reverse;align-items:center;justify-content:center;gap:9px;overflow:visible!important}
.my-page>.my-stats.my-summary-four>div:last-child{border-right:0!important}
.my-page>.my-stats.my-summary-four strong{font-size:clamp(8px,2.25vw,12px)!important;font-weight:900!important;line-height:1.25!important;overflow-wrap:normal!important;text-align:center;white-space:nowrap!important;letter-spacing:-.35px;max-width:100%;font-variant-numeric:tabular-nums}
.my-page>.my-stats.my-summary-four span{font-size:clamp(10px,2.5vw,13px)!important;font-weight:800!important;color:#4a5870!important;margin:0!important}
.my-page>.my-stats.my-summary-four [data-my-stat="balance"] strong{color:#166ff1!important}
.my-page>.my-stats.my-summary-four [data-my-stat="turnover"] strong{color:#14223e!important}
.my-page>.my-stats.my-summary-four [data-my-stat="offers"] strong{color:#207df8!important}
.my-page>.my-stats.my-summary-four [data-my-stat="profit"] strong{color:#df7708!important}
.my-page>.my-visual-shortcuts{display:contents}
.my-page .my-shortcut{width:100%;min-width:0;height:86px;min-height:86px;max-height:86px;display:flex;align-items:center;gap:9px;text-align:left;padding:11px 10px;border:1px solid #e1e9f9;border-radius:14px;background:linear-gradient(115deg,#f0f6ff,#e5edff);color:#162440;box-sizing:border-box;cursor:pointer}
.my-page .my-shortcut.warm{background:linear-gradient(115deg,#fff8f0,#f1eff4)}
.my-page .my-shortcut.violet{background:linear-gradient(115deg,#f3f0ff,#e9efff)}
.my-page .my-shortcut.green{background:linear-gradient(115deg,#effbf6,#e9f0ff)}
.my-page .my-shortcut.gray{background:linear-gradient(115deg,#eff2f8,#e8efff)}
.my-page .my-shortcut>i{flex:0 0 35px;width:35px;height:35px;display:grid;place-items:center;font-style:normal;font-size:23px;font-weight:800;color:#1977ed;border-radius:12px;background:#e2eeff}
.my-page .my-shortcut.warm>i{color:#ee940d;background:#fff0d9}
.my-page .my-shortcut.violet>i{color:#7758f7;background:#eae4ff}
.my-page .my-shortcut.green>i{color:#17a665;background:#dff9ef}
.my-page .my-shortcut.gray>i{color:#697a97;background:#e1e9f7}
.my-page .my-shortcut>span{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.my-page .my-shortcut b{font-size:clamp(12px,3.5vw,16px);font-weight:850;white-space:nowrap}
.my-page .my-shortcut small{font-size:clamp(9px,2.5vw,11px);line-height:1.25;color:#71809a;overflow-wrap:anywhere}
.my-page .my-shortcut>em{flex:0 0 auto;font-style:normal;color:#75849e;font-size:23px;line-height:1}
/* All account functions share one canonical two-column grid and one size. */
.my-page>details.account-section:not([open]){
 grid-column:auto!important;height:86px!important;min-height:86px!important;max-height:86px!important;
 width:100%;min-width:0;margin:0!important;padding:0!important;overflow:visible!important;
 border:1px solid #e1e9f9!important;border-radius:14px!important;
 background:linear-gradient(115deg,#f0f6ff,#e5edff)!important;
 box-shadow:none!important;box-sizing:border-box;
}
.my-page>details.account-section.my-lone:not([open]){grid-column:auto!important}
.my-page>details.account-section:not([open])>summary{
 box-sizing:border-box;display:flex;align-items:center;gap:9px;width:100%;height:100%;min-height:86px!important;
 margin:0;padding:11px 10px!important;list-style:none;cursor:pointer;
 color:#162440;font-size:14px;font-weight:800;
}
.my-page>details.account-section:not([open])>summary .my-ico{
 flex:0 0 35px;display:grid;place-items:center;width:35px;height:35px;min-width:35px;
 margin:0!important;background:#e2eeff;border-radius:12px;font-size:20px;
}
.my-page>details.account-section:not([open])>summary .my-section-copy{
 display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;
}
.my-page>details.account-section:not([open])>summary .my-section-copy>b{
 font-size:clamp(12px,3.5vw,16px);font-weight:850;line-height:1.3;white-space:nowrap;
}
.my-page>details.account-section:not([open])>summary .my-section-copy>small{
 color:#71809a;font-size:clamp(9px,2.5vw,11px);font-weight:500;line-height:1.25;white-space:normal;
}
.my-page>details.account-section:not([open])>summary::after{margin-left:auto;flex:0 0 auto}
.my-page>.my-recent-orders{order:100;grid-column:1/-1!important;margin-top:3px}
.my-page>.my-card{order:-2}.my-page>.my-stats.my-summary-four{order:-1}
.my-page>.my-visual-shortcuts>.my-shortcut{order:0}
.my-page>details.account-section:not([open]){order:1}
@media(max-width:390px){
 .my-page .my-shortcut{height:80px;min-height:80px;max-height:80px}
 .my-page>details.account-section:not([open]){height:80px!important;min-height:80px!important;max-height:80px!important}
 .my-page>details.account-section:not([open])>summary{height:80px;min-height:80px!important;padding:8px 6px!important;gap:6px}
 .my-page>details.account-section:not([open])>summary .my-ico{width:30px;min-width:30px;height:30px;flex-basis:30px;font-size:17px}
 .my-page>.my-stats.my-summary-four strong{font-size:clamp(8px,2.1vw,10px)!important}
}
.my-page>.my-recent-orders{grid-column:1/-1;min-width:0;border:1px solid #e0e9f8;border-radius:18px;background:#fff;padding:12px;box-shadow:0 4px 15px rgba(33,81,151,.06)}
.my-recent-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 10px;border-bottom:1px solid #e9edf6}
.my-recent-head strong{font-size:15px;color:#192744}
.my-recent-head button{border:0;background:transparent;color:#546986;font-size:12px;min-height:28px}
.my-recent-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,.8fr) auto;gap:7px;align-items:center;padding:10px 2px;border-bottom:1px solid #eef1f7;font-size:11px;color:#43516b;min-width:0}
.my-recent-row:last-child{border-bottom:0}
.my-recent-name{font-weight:800;color:#233554;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.my-recent-issue{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.my-recent-amount{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.my-recent-row .order-status{font-size:10px;white-space:nowrap}
.my-recent-empty{padding:17px 0;color:#7e8ca1;font-size:12px;text-align:center}
@media(max-width:390px){
 .my-page>.my-card{grid-template-columns:48px minmax(0,1fr) auto;padding:10px}
 .my-page>.my-card .avatar-button{width:48px;height:48px;min-width:48px}
 .my-page .my-shortcut{padding:8px 6px;gap:6px;min-height:68px}
 .my-page .my-shortcut>i{width:30px;height:30px;flex-basis:30px;font-size:19px}
 .my-page .my-shortcut>em{font-size:18px}
 .my-recent-row{font-size:9px;gap:4px}
}
html[data-theme="light"] .my-page>.account-section{
  border:1px solid #dde8f7!important;border-radius:14px!important;
  background:linear-gradient(115deg,#fff,#f1f6ff)!important;
  box-shadow:0 2px 8px rgba(29,69,133,.06);
}
html[data-theme="light"] .draw-page .draw-game{
  border:1px solid #dce6f5!important;border-radius:17px!important;
  background:#fff!important;box-shadow:0 4px 15px rgba(25,77,150,.06);
}
html[data-theme="light"] .draw-page .draw-game-title{gap:10px!important}
.draw-page .draw-title-left{min-width:0}
.draw-page .draw-title-countdown{min-width:94px!important;max-width:42%;font-variant-numeric:tabular-nums}
html[data-theme="light"] .draw-page .draw-page-countdown{color:#1676f5!important;font-size:15px!important;font-weight:900!important}
html[data-theme="light"] .draw-page .draw-history-list.unified .rs-row{min-width:0}
/* Lottery hall artwork follows approved blue-white header, without replacing data sources. */
.category-page .category-hero{
  position:relative;display:flex;flex-direction:column;justify-content:center;
  overflow:hidden;isolation:isolate;min-height:0;margin:0 0 7px;
  padding:10px 11px;border-radius:15px;gap:4px;
  background:linear-gradient(110deg,#30b1f7 0%,#237dec 63%,#a8caff 100%);
  box-shadow:0 6px 17px rgba(33,118,224,.16);color:#fff;
}
.category-page .category-hero>strong{position:relative;z-index:1;font-size:clamp(16px,4.5vw,19px);font-weight:950;letter-spacing:.025em;line-height:1.3}
.category-page .category-hero>small{position:relative;z-index:1;margin-top:0;font-size:11px;font-weight:700;color:#e7f4ff}
.category-page .category-hero-art{position:absolute;right:6%;top:26px;width:48px;height:48px;transform:translateY(-50%) rotate(-14deg);display:grid;place-items:center;border-radius:50%;border:8px solid rgba(255,255,255,.42);background:radial-gradient(circle at 35% 22%,#fff,#9cd5ff 56%,#3789f0 95%);box-shadow:0 6px 19px rgba(10,61,161,.24);color:#1766c2;font-size:21px;font-weight:1000;opacity:.72}
/* Category filter is a single horizontal tab bar, not the old image-card tiles.
   Existing category ids and click handlers are preserved. */
.category-page .category-navigation{
  position:relative;z-index:2;width:100%;min-width:0;border-radius:11px;background:#f6f9ff;
  padding:5px;box-sizing:border-box;box-shadow:0 2px 9px rgba(27,84,166,.06);
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
}
.category-page .category-navigation::-webkit-scrollbar{display:none}
.category-page .category-nav-row{display:flex;gap:3px;width:max-content;min-width:100%;align-items:center;flex-wrap:nowrap}
.category-page .category-nav-card{
  position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  min-width:60px;min-height:39px;height:39px;box-sizing:border-box;
  padding:6px 11px!important;border:0!important;border-radius:10px!important;
  background:transparent!important;color:#4e5e79!important;
  box-shadow:none!important;font-size:clamp(11px,3.05vw,13px);font-weight:800;
  white-space:nowrap;line-height:1.1;
}
.category-page .category-nav-card::before,
.category-page .category-nav-card::after{display:none!important;background-image:none!important;content:none!important}
.category-page .category-nav-card .category-nav-label{
  position:relative;z-index:1;color:inherit!important;text-shadow:none!important;
  letter-spacing:0;white-space:nowrap;
}
.category-page .category-nav-card.active{
  border:0!important;background:linear-gradient(160deg,#4faeff,#136ff1)!important;
  color:#fff!important;box-shadow:0 3px 9px rgba(26,111,239,.19)!important;
}
.category-page .category-nav-card.active .category-nav-label{color:#fff!important}
.category-page .category-nav-card.active::before{content:"";display:block!important;position:absolute;left:calc(50% - 5px);top:auto;bottom:-4px;width:10px;height:10px;transform:rotate(45deg);background:#217ef7!important;z-index:0}
.category-page .category-filters{min-width:0;gap:0}
.category-page .category-nav-heading,.draw-page .draw-filter-label{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
 height:39px;min-width:56px;box-sizing:border-box;color:#4e5e79;font-size:12px;font-weight:800;
}
.category-page .category-nav-row>.page-inline-balance.category-balance{
 display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;
 min-height:39px!important;height:39px!important;box-sizing:border-box;
 padding:0 10px!important;border:0!important;border-radius:10px!important;
 background:transparent!important;box-shadow:none!important;color:#4e5e79!important;
}
.category-page .category-nav-row>.category-balance>span,
.category-page .category-nav-row>.category-balance>b{font-size:12px!important;font-weight:800!important}
.draw-page .draw-filter-bar{
 width:100%;display:flex;flex-wrap:nowrap;align-items:center;gap:4px;overflow-x:auto;
 -webkit-overflow-scrolling:touch;scrollbar-width:none;border-radius:12px;
 background:#f6f9ff;padding:5px;box-sizing:border-box;
}
.draw-page .draw-filter-bar::-webkit-scrollbar{display:none}
.draw-page .draw-filter-chip{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
 border:0;border-radius:9px;height:39px;min-width:60px;padding:0 10px;
 box-sizing:border-box;background:transparent;color:#4e5e79;font-size:12px;font-weight:800;white-space:nowrap;
}
.draw-page .draw-filter-chip.active{background:linear-gradient(160deg,#4faeff,#136ff1);color:#fff}
.draw-page .draw-filter-bar>.draw-balance{
 height:39px!important;min-height:39px!important;box-sizing:border-box;padding:0 10px!important;
 border:0!important;border-radius:9px!important;background:transparent!important;
}
.draw-page .draw-filter-bar>.draw-balance>span,
.draw-page .draw-filter-bar>.draw-balance>b{font-size:12px!important;font-weight:800!important}
html[data-theme="dark"] .category-page .category-navigation,
html[data-theme="dark"] .draw-page .draw-filter-bar{background:#17233c}
html[data-theme="dark"] .category-page .category-nav-heading,
html[data-theme="dark"] .draw-page .draw-filter-label{color:#cbd5e1}

@media(max-width:360px){
  .category-page .category-hero{min-height:0;padding:9px}
  .category-page .category-hero-art{width:42px;height:42px;font-size:18px}
  .category-page .category-nav-card{min-width:62px;padding-inline:8px!important;font-size:11px}
}
/* Draw hall: the existing confirmed result row stays in a separate white strip. */
html[data-theme="light"] .draw-page .draw-game{overflow:hidden;padding:0!important;border-radius:18px!important}
html[data-theme="light"] .draw-page .draw-game-title{
  display:flex!important;align-items:center!important;justify-content:space-between;
  min-height:99px;gap:9px!important;padding:13px!important;
  background:linear-gradient(110deg,#269df4 0%,#408af0 52%,#d5e5ff 100%)!important;
  border-bottom:0!important;box-sizing:border-box;
}
html[data-theme="light"] .draw-page .draw-title-left b{color:#fff!important;font-size:clamp(13px,3.7vw,17px)!important}
html[data-theme="light"] .draw-page .draw-title-left small{color:#e7f3ff!important}
html[data-theme="light"] .draw-page .draw-title-countdown{
  align-items:center!important;justify-content:center!important;flex-shrink:0;
  min-width:110px!important;max-width:46%;border-radius:25px;
  background:linear-gradient(155deg,#fff,#e4efff)!important;
  border:1px solid #bfd7ff;padding:10px 8px;box-sizing:border-box;
}
html[data-theme="light"] .draw-page .draw-title-countdown small{color:#253752!important;text-align:center}
html[data-theme="light"] .draw-page .draw-page-countdown{font-size:14px!important;color:#126ceb!important}
.draw-page .draw-title-countdown.is-unavailable .draw-page-countdown,
html[data-theme="light"] .draw-page .draw-title-countdown.is-unavailable .draw-page-countdown{color:#98a2b3!important}
html[data-theme="light"] .draw-page .draw-history-list.unified{padding:2px 10px 7px;background:linear-gradient(145deg,#fff,#f6faff)}
html[data-theme="light"] .draw-page .draw-history-list.unified .rs-row{border:0!important;padding:8px 0!important;min-width:0}
@media(max-width:370px){html[data-theme="light"] .draw-page .draw-game-title{padding:9px!important;gap:5px!important}html[data-theme="light"] .draw-page .draw-title-countdown{min-width:92px!important;padding:8px 5px}}
/* Approved hall: two-column cards with source-backed latest results.
   Existing data-game/data-fav handlers are unchanged. */

/* Canonical lottery category cards: fixed results, compact verified next-clock, no new fetch. */
:is(.category-page,.favorites-page) .category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;align-items:stretch}
:is(.category-page,.favorites-page) .category-wrap{min-width:0}
:is(.category-page,.favorites-page) .category-wrap.category-wide{grid-column:1/-1}
:is(.category-page,.favorites-page) .category-wrap .category-tile{
  width:100%;min-width:0;min-height:120px!important;
  display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;
  grid-template-rows:50px minmax(46px,auto)!important;
  gap:8px!important;align-items:start!important;
  padding:11px!important;text-align:left!important;position:relative;overflow:hidden;
}
html[data-theme="light"] :is(.category-page,.favorites-page) .category-wrap .category-tile{
  border:1px solid #dce7f7!important;border-radius:17px!important;
  background:linear-gradient(145deg,#fff,#f0f5ff)!important;
  box-shadow:0 4px 12px rgba(33,81,151,.08)!important;color:#10213d!important;
}
:is(.category-page,.favorites-page) .category-wrap .category-tile>.category-art{
  display:flex!important;position:relative!important;inset:auto!important;
  grid-column:1;grid-row:1;width:48px!important;height:48px!important;
  max-width:48px;overflow:hidden;border-radius:12px;opacity:1!important;
}
:is(.category-page,.favorites-page) .category-wrap .category-tile>.category-art:after{display:none!important}
:is(.category-page,.favorites-page) .category-wrap .category-tile>.category-art img{width:100%!important;height:100%!important;object-fit:cover!important}
:is(.category-page,.favorites-page) .category-copy{grid-column:2;grid-row:1;min-width:0;align-self:center!important}
html[data-theme="light"] :is(.category-page,.favorites-page) .category-copy b{color:#152947!important}
:is(.category-page,.favorites-page) .category-copy>b{font-size:clamp(12px,3.5vw,16px)!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere}
:is(.category-page,.favorites-page) .category-copy>small{font-size:10px!important;line-height:1.3!important;white-space:normal!important}
:is(.category-page,.favorites-page) .category-last{grid-column:1/-1;grid-row:2;display:flex;flex-direction:column;justify-content:flex-start;gap:5px;min-width:0;border-top:1px solid #e0e9f6;padding-top:7px;min-height:44px}
:is(.category-page,.favorites-page) .category-last>small{display:block;color:#63738e;font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-page .category-result-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;width:100%}
.category-page .category-result-meta>small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#63738e;font-size:9px;font-weight:700}
:is(.category-page,.favorites-page) .category-next{display:inline-flex;flex:0 0 auto;align-items:center;gap:3px;white-space:nowrap;font-size:9px;font-weight:700;color:#677790}
:is(.category-page,.favorites-page) .category-next-value{display:inline-block;font-size:9px!important;line-height:1.15!important;font-weight:850!important;font-variant-numeric:tabular-nums;letter-spacing:0;color:#c64255!important;min-width:8ch;max-width:8ch;white-space:nowrap;text-align:right}
html[data-theme="light"] :is(.category-page,.favorites-page) .category-next-value:not(.is-unavailable){color:#126ceb!important}
:is(.category-page,.favorites-page) .category-next-value.is-unavailable{color:#97a2b5!important}
:is(.category-page,.favorites-page) .category-last .category-draw{display:block;margin:0!important;width:100%;min-width:0;overflow:visible!important}
:is(.category-page,.favorites-page) .category-last .draw-balls{display:flex!important;flex-wrap:nowrap!important;gap:3px!important;overflow:visible!important;align-items:center!important;justify-content:flex-start!important}
:is(.category-page,.favorites-page) .category-last .draw-ball{width:21px!important;height:21px!important;min-width:21px!important;flex:0 0 21px!important;font-size:10px!important}
:is(.category-page,.favorites-page) .category-last .draw-die{flex-shrink:0}
:is(.category-page,.favorites-page) .category-wide .category-last .draw-balls:not(.lhc-balls){display:grid!important;grid-template-columns:repeat(var(--ball-count),minmax(0,1fr))!important;gap:3px!important;width:100%!important;max-width:460px!important}
:is(.category-page,.favorites-page) .category-wide .category-last .draw-balls.many-balls:not(.lhc-balls){grid-template-columns:repeat(10,minmax(0,1fr))!important}
:is(.category-page,.favorites-page) .category-wide .category-last .draw-ball{width:100%!important;min-width:0!important;min-height:25px!important;height:auto!important;aspect-ratio:1!important;flex:initial!important;font-size:clamp(10px,3vw,15px)!important}
:is(.category-page,.favorites-page) .category-wide .category-last .lhc-balls{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important;width:100%}
:is(.category-page,.favorites-page) .category-wide .category-last .lhc-result-ball{min-height:39px!important;aspect-ratio:1!important}
:is(.category-page,.favorites-page) .category-wide .category-last .lhc-zodiac{display:block!important;font-size:9px!important}
:is(.category-page,.favorites-page) .category-chevron{position:absolute;right:8px;top:10px;color:#697c9c;font-size:18px;line-height:1}
:is(.category-page,.favorites-page) .category-fav{right:7px;top:39px;bottom:auto;width:22px;height:22px;font-size:12px;border-radius:8px;background:#f3f7ff;color:#7486a2;border:1px solid #e0eafa}
:is(.category-page,.favorites-page) .category-fav.active{color:#efae19}
@media(max-width:360px){
 :is(.category-page,.favorites-page) .category-grid{gap:7px}
 :is(.category-page,.favorites-page) .category-wrap .category-tile{padding:8px!important;grid-template-columns:42px minmax(0,1fr)!important}
 :is(.category-page,.favorites-page) .category-wrap .category-tile>.category-art{width:42px!important;height:42px!important}
 :is(.category-page,.favorites-page) .category-last .draw-ball{width:18px!important;height:18px!important;min-width:18px!important;flex-basis:18px!important}
 :is(.category-page,.favorites-page) .category-wide .category-last .draw-ball{min-width:0!important;min-height:23px!important;width:100%!important;height:auto!important;flex:initial!important}
}

/* Favorite games without lottery draw results stay in compact two-column cards. */
.favorites-page .category-other .category-tile{min-height:76px!important;grid-template-rows:minmax(50px,auto)!important}
.favorites-page .category-other .category-copy{align-self:center!important}
.favorites-page .category-grid>.empty-state{grid-column:1/-1}
/* Existing records view: visible return action and explicit detail collapse. */
.records-page:not(.records-embedded)>.records-page-head{display:flex;align-items:center;gap:12px;flex:0 0 auto;min-height:40px;margin-bottom:6px}
.records-page-head>.back-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:auto;min-width:78px;height:34px;padding:0 12px;border-radius:9px;background:#217df3;color:#fff;font-size:13px;font-weight:800;white-space:nowrap}
.records-page-head>strong{font-size:15px;font-weight:900;color:var(--ux-text)}
.records-page .record-detail-actions{display:flex;justify-content:flex-end;margin-bottom:6px}
.records-page .record-detail-actions>button{border:1px solid #d8e3f6;border-radius:8px;background:#f4f8ff;color:#315d9e;padding:5px 10px;font-size:12px;font-weight:800}
/* Draw hall: consistent reserved slots; long result sequences always have a full-width row. */
.draw-page .draw-game-title{height:112px;min-height:112px;max-height:112px!important;box-sizing:border-box}
.draw-page .draw-title-countdown{width:clamp(112px,38%,180px);height:74px;min-height:74px;max-height:74px;min-width:112px!important;flex:0 0 auto;display:flex!important;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden}
.draw-page .draw-title-countdown>small{display:block!important;margin:0!important;line-height:1.2!important;font-size:10px!important;font-weight:800!important;white-space:nowrap}
.draw-page .draw-page-countdown{display:block!important;font-size:clamp(12px,3.4vw,17px)!important;line-height:1.3!important;font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap;min-width:8ch;max-width:100%;text-align:center}
.draw-page .draw-history-list.unified .rs-row{min-height:66px;box-sizing:border-box}
.draw-page .draw-history-list.unified .rs-row.full-numbers{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:7px!important;min-height:82px!important;align-items:start!important}
.draw-page .draw-history-list.unified .rs-row.full-numbers>.rs-issue{grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px;min-width:0}
.draw-page .draw-history-list.unified .rs-row.full-numbers>.rs-content{grid-column:1;grid-row:2;display:flex;flex-wrap:nowrap;gap:0;min-width:0;width:100%;overflow:visible}
.draw-page .draw-history-list.unified .rs-row.full-numbers .rs-balls{flex:1 1 auto;width:100%;min-width:0}
.draw-page .draw-history-list.unified .rs-row.full-numbers .rs-balls>.draw-balls{display:grid!important;grid-template-columns:repeat(var(--ball-count),minmax(0,1fr))!important;gap:3px!important;width:100%!important;max-width:460px!important;overflow:visible!important}
.draw-page .draw-history-list.unified .rs-row.full-numbers .rs-balls .draw-ball{width:100%!important;min-width:0!important;height:auto!important;min-height:25px;aspect-ratio:1!important;font-size:clamp(10px,3vw,14px)!important}
.draw-page .draw-history-list.unified .rs-row.full-numbers.kind-lhc .lhc-result-ball{min-height:40px!important}
.draw-page .draw-history-list.unified .rs-row.full-numbers.kind-lhc .lhc-zodiac{display:block!important;font-size:clamp(8px,2.3vw,10px)!important}
@media(max-width:370px){.draw-page .draw-title-countdown{min-width:94px!important;width:38%}.draw-page .draw-game-title{height:100px;min-height:100px;max-height:100px!important}}
@media(max-width:390px){
  .play-page .bet-toolbar{padding:10px!important;gap:5px!important}
  .play-page .bet-toolbar .sel-choice{padding:6px 8px}
  .play-page .number-grid{gap:5px}
  .play-page .number-grid button:not(.k3-pick){min-height:48px!important;padding-inline:2px!important}
  .play-page .rs-row.kind-lhc{--iw:66px}
  .draw-page .draw-title-countdown{min-width:86px!important}
  .my-page>.my-card{grid-template-columns:48px minmax(0,1fr) auto;padding:10px}
  .my-page>.my-card .avatar-button{width:48px;height:48px;min-width:48px}
}
@media(min-width:700px){
  .play-page .play-top{min-height:165px}
  .play-page .number-grid button:not(.k3-pick){min-height:62px!important}
  .my-page>.my-card{padding:20px}
}

/* 投注页底部关系：投注盘只在有选择时从底部导航栏正上方上滑，始终与导航栏零间隙贴合。 */
.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: one fixed four-column filter row, no horizontal scroll. */
.plan-page .plan-toolbar.draw-toprow.plan-filter-toolbar{
  display:block!important;width:100%;max-width:100%;min-width:0;margin:0 0 8px;padding:0;
}
.plan-page .plan-filter-line{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;
  gap:6px;min-width:0;width:100%;margin:0;padding:0;overflow:visible;
}
.plan-page .plan-filter-chip{
  display:grid;place-items:center;width:100%;min-width:0;height:40px;min-height:40px;box-sizing:border-box;
  border:1px solid var(--ux-line,#d8dee8);border-radius:9px;padding:0 4px;
  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 .page-inline-balance.plans-balance{
  display:grid!important;grid-template-columns:minmax(0,1fr) 11px;grid-template-rows:13px 15px;
  align-items:center!important;justify-items:center;column-gap:0!important;row-gap:0!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:40px!important;min-height:40px!important;box-sizing:border-box!important;
  padding:4px 3px!important;margin:0!important;
  border:1px solid var(--ux-line,#d8dee8)!important;border-radius:9px!important;
  background:var(--ux-panel,#fff)!important;color:var(--ux-text,#263247)!important;
}
.plan-page .plan-filter-line .plans-balance>span{
  grid-row:1;grid-column:1;justify-self:center;line-height:1.1!important;font-size:10px!important;
  color:var(--ux-text,#263247)!important;
}
.plan-page .plan-filter-line .plans-balance>b{
  grid-row:2;grid-column:1/-1;justify-self:stretch;max-width:100%;min-width:0;
  overflow:hidden;text-overflow:ellipsis;text-align:center;
  font-size:clamp(8px,2.15vw,10px)!important;line-height:1.1!important;
}
.plan-page .plan-filter-line .plans-balance>svg{
  grid-row:1;grid-column:2;width:11px!important;height:11px!important;
}


/* Existing play-page layout and controls remain in place; only source-type backgrounds change. */
html[data-theme] .play-page[data-play-type="k3"] .play-top{background:linear-gradient(115deg,#1686ec,#3179f1 62%,#a4cdfd)!important}
html[data-theme] .play-page[data-play-type="pk10"] .play-top{background:linear-gradient(115deg,#d74a67,#ed6b48 62%,#ffc5a8)!important}
html[data-theme] .play-page[data-play-type="ssc"] .play-top{background:linear-gradient(115deg,#5e56d9,#886ce9 60%,#c9c0ff)!important}
html[data-theme] .play-page[data-play-type="lhc"] .play-top{background:linear-gradient(115deg,#b83e63,#e65e79 62%,#ffcad5)!important}
html[data-theme] .play-page[data-play-type="d3"] .play-top,
html[data-theme] .play-page[data-play-type="pl"] .play-top{background:linear-gradient(115deg,#237fbe,#3d9ed0 60%,#c4eafb)!important}
html[data-theme] .play-page[data-play-type="x11"] .play-top,
html[data-theme] .play-page[data-play-type="klsf"] .play-top{background:linear-gradient(115deg,#0b8c88,#2eafa1 60%,#b6f4e3)!important}
html[data-theme] .play-page[data-play-type="kl8"] .play-top,
html[data-theme] .play-page[data-play-type="k8"] .play-top{background:linear-gradient(115deg,#325db8,#527edd 60%,#b8d2ff)!important}
html[data-theme] .play-page[data-play-type="lucky28"] .play-top{background:linear-gradient(115deg,#ac5d12,#df9938 62%,#ffdd9a)!important}
html[data-theme] .play-page[data-play-type="ssq"] .play-top,
html[data-theme] .play-page[data-play-type="dlt"] .play-top,
html[data-theme] .play-page[data-play-type="qlc"] .play-top{background:linear-gradient(115deg,#1765bb,#3998db 60%,#c0e6ff)!important}
/* Prevent the verified issue's prefix/suffix from detaching or forcing a second line. */
.play-page .play-top-game .play-issue .js-next-issue{
  white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;
  overflow:visible!important;text-overflow:clip!important;font-variant-numeric:tabular-nums;
  font-size:clamp(9px,2.4vw,12px)!important;
}
/* My account: visible real VIP level without changing account values. */
.my-page .my-card .profile-vip,
.my-page [data-my-id-vip] .profile-vip{
  display:inline-flex!important;align-items:center;justify-content:center;gap:3px;
  padding:3px 7px!important;border-radius:9px!important;border:1px solid #d89f2d!important;
  background:#fff0bf!important;color:#653b00!important;font-size:13px!important;
  line-height:1.25!important;font-weight:900!important;white-space:nowrap!important;
  text-shadow:none!important;box-shadow:0 1px 3px rgba(100,57,4,.12);
}
.my-page .my-card .profile-vip svg{flex:0 0 17px;opacity:1}
/* Last draw and historical draws share the same result row geometry. */
.play-page .rs-top.play-last-result,
.play-page .play-history-panel .rs-row{
  display:grid!important;
  grid-template-columns:var(--iw) minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  box-sizing:border-box!important;
  min-height:78px!important;
  padding:9px 12px 9px 9px!important;
  margin:0 0 8px!important;
  border:1px solid #35455b!important;
  border-radius:17px!important;
  background:#0d1430;
}
.play-page .rs-top.play-last-result{cursor:pointer!important;touch-action:manipulation}
.play-page .rs-top.play-last-result:focus-visible{outline:2px solid #287cdd;outline-offset:2px}
.play-page .play-history-panel[hidden]{display:none!important}
.play-page .play-history-panel{
  width:100%;box-sizing:border-box;margin:0 0 10px;padding:0;
  background:transparent;border:0;border-radius:0;color:inherit;
}
.play-page .play-history-panel .rs-row:last-child{margin-bottom:0!important}
.play-page .rs-top.play-last-result .rs-issue,
.play-page .play-history-panel .rs-row .rs-issue{display:block;min-width:0;overflow:visible!important}
.play-page .rs-top.play-last-result .rs-issue small,
.play-page .play-history-panel .rs-row .rs-issue small{
  display:block;white-space:nowrap!important;font-size:clamp(10px,2.4vw,12px)!important;
}
.play-page .rs-top.play-last-result .rs-content,
.play-page .play-history-panel .rs-row .rs-content{
  display:flex;flex-wrap:wrap;align-items:center!important;gap:8px 12px;min-width:0;max-width:100%;overflow:visible;
}
.play-page .rs-top.play-last-result .rs-balls,
.play-page .play-history-panel .rs-row .rs-balls{min-width:0}
.play-page .rs-top.play-last-result.full-numbers,
.play-page .play-history-panel .rs-row.full-numbers{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:start!important;
  gap:7px!important;
}
.play-page .rs-top.play-last-result.full-numbers>.rs-issue,
.play-page .play-history-panel .rs-row.full-numbers>.rs-issue{
  grid-column:1;grid-row:1;display:flex;gap:9px;align-items:center;flex-wrap:wrap;
}
.play-page .rs-top.play-last-result.full-numbers>.rs-content,
.play-page .play-history-panel .rs-row.full-numbers>.rs-content{
  grid-column:1;grid-row:2;min-width:0;width:100%;overflow:visible!important;
}
.play-page .rs-top.play-last-result.full-numbers .rs-balls,
.play-page .play-history-panel .rs-row.full-numbers .rs-balls{width:100%;min-width:0}
.play-page .rs-top.play-last-result.full-numbers .rs-balls>.draw-balls,
.play-page .play-history-panel .rs-row.full-numbers .rs-balls>.draw-balls{
  display:grid!important;grid-template-columns:repeat(var(--ball-count),minmax(0,1fr))!important;
  gap:4px!important;width:100%!important;max-width:460px!important;
}
/* Keep the existing Category/Favorites and Draw hall number grids unchanged. */
:is(.category-page,.favorites-page) .category-wide .category-last .draw-balls.many-balls,
.draw-page .draw-history-list.unified .rs-row.full-numbers .rs-balls>.draw-balls.many-balls{
  display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;
  gap:4px!important;width:100%!important;align-content:start!important;
}
:is(.category-page,.favorites-page) .category-wide .category-last .draw-ball,
.draw-page .draw-history-list.unified .rs-row.full-numbers .rs-balls .draw-ball{
  width:100%!important;min-width:0!important;min-height:25px!important;
  height:auto!important;aspect-ratio:1!important;
  font-size:clamp(13px,3.5vw,17px)!important;font-weight:900!important;
  display:grid!important;place-items:center!important;
}
:is(.category-page,.favorites-page) .category-wide .category-last .draw-balls.many-balls .draw-ball,
.draw-page .draw-history-list.unified .rs-row.full-numbers .draw-balls.many-balls .draw-ball{
  min-height:25px!important;font-size:clamp(12px,3.4vw,16px)!important;
}
.play-page .rs-top.play-last-result.full-numbers .rs-balls>.draw-balls.many-balls,
.play-page .play-history-panel .rs-row.full-numbers .rs-balls>.draw-balls.many-balls{
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
}
.play-page .rs-top.play-last-result.full-numbers .rs-balls .draw-ball,
.play-page .play-history-panel .rs-row.full-numbers .rs-balls .draw-ball{
  display:grid!important;place-items:center!important;
  width:100%!important;min-width:0!important;min-height:25px!important;
  height:auto!important;aspect-ratio:1!important;
  font-size:clamp(13px,3.5vw,17px)!important;font-weight:900!important;
}
.play-page .rs-row.kind-lhc .lhc-result-ball{
  display:flex!important;flex-direction:column!important;border-radius:6px!important;
}
@media(max-width:390px){
  .play-page .rs-top.play-last-result,
  .play-page .play-history-panel .rs-row{padding:8px!important}
}
.play-page .bet-toolbar .sel-items{
  min-height:34px;overflow:visible!important;max-height:none!important;
  align-content:flex-start!important;flex-wrap:wrap!important;
}
.play-page .bet-toolbar .sel-group,
.play-page .bet-toolbar .sel-group-items{overflow:visible!important;max-height:none!important}

/* Game reward tier progress: static, derived from the already-fetched /api/promo2 snapshot. */
.promo-page .p2-progress-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;padding:7px 0;border-bottom:1px solid rgba(125,145,169,.18)}
.promo-page .p2-progress-row:last-of-type{border-bottom:0}
.promo-page .p2-progress-row span{font-size:13px;color:inherit}
.promo-page .p2-progress-row b{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.promo-page .pr-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.promo-page .pr-tiers th,.promo-page .pr-tiers td{white-space:nowrap}


/* Preserve original category navigation, sizes, and colors. */
.category-page .category-wrap.category-unpaired{grid-column:1/-1;justify-self:center;width:calc((100% - 11px)/2)}
.draw-page .draw-history-modes{display:flex;justify-content:center;align-items:center;gap:8px;padding:6px 4px 8px;border-bottom:1px solid #e0e9f6}
.draw-page .draw-history-mode{border:1px solid #dae5f5;background:#fff;color:#52617d;border-radius:9px;padding:5px 12px;font-size:12px;font-weight:800;min-height:30px}
.draw-page .draw-history-mode.active{background:#edf4ff;border-color:#8dbaff;color:#166ce4}
.draw-page .history-number-tap{cursor:pointer;touch-action:manipulation;outline-offset:2px}
.draw-page .draw-history-list.has-history-marked .history-number-tap:not(.is-history-marked){opacity:.25!important;filter:brightness(.58)!important}
.draw-page .draw-history-list.has-history-marked .history-number-tap.is-history-marked{opacity:1!important;filter:none!important}
.draw-page .history-number-tap:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.draw-page .history-die-value{position:relative!important}
.draw-page .history-die-value .history-die-label{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;font-size:14px!important;line-height:1!important;font-weight:900!important;color:#111827!important;pointer-events:none}
.draw-page .history-die-value.red-pips .history-die-label{color:#d3242b!important}
.play-page .play-history-step{display:flex;justify-content:center;align-items:center;margin:0;padding:0}
.play-page .play-history-step button{border:0!important;background:transparent!important;box-shadow:none!important;color:#e3342f!important;min-width:34px;min-height:24px;padding:0 5px;font-size:15px;font-weight:900;line-height:1;cursor:pointer}
.play-page .play-history-step button:focus-visible{outline:2px solid #e3342f;outline-offset:2px}
