/* Shared desktop markup and API, compact mobile presentation. */
.mobile-workspace-nav,.mobile-position-nav,.mobile-more-money,.mobile-all-plays,.mobile-play-toolbar{display:none}
.draw-closebar{display:contents}
@media(max-width:760px){
 html{width:100%;overflow-x:clip;scroll-padding-top:58px}
 body{min-width:0;width:100%;padding-bottom:0;overflow-x:clip;background:#d7eaf3}
 button,input,textarea,select{touch-action:manipulation}
 button:focus-visible,a:focus-visible{outline:3px solid #348cac;outline-offset:2px}
 input,textarea,select{font-size:16px!important}
 .topbar{position:static!important;min-height:58px;height:auto;gap:10px;padding:8px 12px;flex-wrap:nowrap;box-sizing:border-box}
 .topbar .brand{--height:32px;gap:4px}.topbar nav.games-nav{display:none!important}
 .top-actions{gap:8px;min-width:0}.top-actions .account-balance{min-width:0;padding:6px 10px;gap:3px}.top-actions .account-balance>span{font-size:11px}.top-actions .account-balance strong{font-size:18px}.top-actions .account-balance small{display:none}
 .top-actions .test-pill,.top-actions .back-platform{display:none}.top-actions .icon-button{width:36px;height:36px;font-size:18px;flex:none}
 .app-shell{width:100%;min-width:0;max-width:100%;padding:10px 10px calc(110px + env(safe-area-inset-bottom));box-sizing:border-box}
 .game-banner{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:0;gap:10px 8px;padding:14px;border-radius:17px;overflow:visible}
 .game-banner:after{display:none}.game-identity{min-width:0;gap:0}.game-identity .eth-badge,.game-identity .eyebrow,.banner-caption,.game-tags{display:none}
 .game-identity>div{min-width:0}.game-identity h1{font-size:19px;letter-spacing:0;line-height:1.3;margin:0 0 4px}
 #numberRulesHelp{position:static!important;display:inline-flex;align-items:center;justify-content:center;width:auto!important;height:32px!important;min-height:32px;padding:0 9px!important;font-size:13px!important;border:1px solid #91b9cc;border-radius:7px!important;background:#edf8ff;color:#216582;margin:0;vertical-align:middle}
 #numberRulesHelp .rules-label-desktop{display:inline}#numberRulesHelp .rules-label-mobile{display:none}
 .round-clock{padding:0 0 0 9px;border:0;border-left:1px solid #a4c7d94d;min-width:0;text-align:right;grid-column:2;grid-row:1}
 .round-clock .round-top{font-size:11px;gap:4px;justify-content:flex-end}.round-clock .round-top #period{max-width:127px;overflow-wrap:anywhere}.open-badge{font-size:11px;padding:2px 5px}
 .round-clock>p{font-size:12px;margin:4px 0 0}.round-clock small{display:none}.countdown{font-size:32px;line-height:1.25;letter-spacing:1px}.countdown span{font-size:24px;margin:0 2px}
 .game-banner .last-result{grid-column:1/-1;grid-row:2;padding:10px 0 0;border:0;border-top:1px solid #a5c6d84a;min-width:0}
 .result-heading{font-size:13px!important;margin:0 0 6px!important;color:#527789}
 .latest-award-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.number-balls{gap:7px}.number-balls>b{width:36px;height:38px;font-size:24px;border-radius:9px}
 .last-result>p{font-size:12px;margin:6px 0 0;line-height:1.5}.latest-award-row #recentButton{font-size:13px;min-height:40px;white-space:nowrap}
 .game-banner #experienceButton{grid-column:1/-1;grid-row:3;justify-self:stretch;min-height:36px;padding:6px 12px;font-size:13px;border-radius:9px;box-shadow:0 3px 8px #b77d2520}
 .award-history{position:static!important;width:100%!important;max-width:100%;margin-top:10px;padding:10px;box-sizing:border-box}.award-history-heading{font-size:15px}.award-history li>div:first-child{font-size:12px}.award-history .history-balls b{min-width:25px;width:25px;height:32px;font-size:18px}
 .history-range button{min-height:36px;font-size:13px}
 .mobile-workspace-nav{position:sticky;top:0;z-index:35;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:10px 0 8px;padding:5px;background:#e7f3f9f5;border:1px solid #fff;border-radius:13px;box-shadow:0 3px 12px #2d627619;backdrop-filter:blur(14px);scroll-margin-top:0}
 .mobile-workspace-nav button{min-height:44px;font-size:14px;font-weight:700;color:#507487;border-radius:9px;white-space:nowrap;padding:6px 2px}
 .mobile-workspace-nav button.active{background:linear-gradient(150deg,#fffdf7,#fff5df);color:#946623;box-shadow:0 2px 6px #4b6e7c14}
 #mobileCartBadge{font-size:11px;background:#e0ecf3;border-radius:4px;padding:1px 4px}
 .workspace-switcher{margin-right:0;min-width:0}.workspace-tabs{position:static;display:flex;flex-direction:row;gap:6px;width:auto;padding:0 0 8px}
 .workspace-tabs button{writing-mode:horizontal-tb;letter-spacing:0;min-height:38px;padding:7px 22px;border-radius:9px;font-size:14px;flex:1;background:#f2f8fc;border-color:#adccdd;color:#46748b}
 .workspace-tabs button.active{background:linear-gradient(135deg,#2b8aa8,#1d6481);border-color:#246f8c;color:#fff}
 .play-layout{display:flex;flex-direction:column;gap:0;margin-right:0}.betting-column{width:100%;min-width:0;display:block}.betting-panel{border-radius:14px;overflow:hidden}
 body[data-mobile-view=select] #ticket,body[data-mobile-view=select] #historyTrendPanel,body[data-mobile-view=select] #records,
 body[data-mobile-view=ticket] #betting,body[data-mobile-view=ticket] #historyTrendPanel,body[data-mobile-view=ticket] #records,
 body[data-mobile-view=history] .betting-column,body[data-mobile-view=history] #records,
 body[data-mobile-view=records] .workspace-switcher,
 body[data-mobile-view=tool] #records{display:none!important}
 .category-header{display:flex;align-items:center;min-width:0;overflow:hidden;background:linear-gradient(110deg,#edf4f9,#f4f7f9)}.category-header .category-nav{background:transparent;display:flex;flex:1;min-width:0;width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;touch-action:pan-x pan-y;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#85afc5 transparent;padding-bottom:3px}
 .category-nav button{flex:0 0 auto;min-height:40px;height:40px;font-size:15px;padding:0 12px;white-space:nowrap}
 .category-header .common-plays{flex:0 0 auto;min-height:34px;height:34px;box-sizing:border-box;font-size:12px;margin:0 6px;padding:5px 7px;border-left:1px solid #d3a049;white-space:nowrap}
 .sub-nav,.market-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:8px 12px;gap:6px;touch-action:pan-x pan-y;scrollbar-width:thin;overscroll-behavior-x:contain;min-width:0}
 .sub-nav:empty,.market-nav:empty{display:none}.sub-nav button,.market-nav button{flex:0 0 auto;white-space:nowrap;font-size:14px;min-height:40px;padding:7px 12px}
 .selection-note{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 12px;padding:7px 0 9px;font-size:13px;line-height:1.5;min-height:0}
 .selection-note #selectionHint{width:100%;flex:1 0 100%;font-size:13px;margin:0}.selection-note #selectionHint:empty{display:none}.selection-note>i{display:none}.selection-note #availability{font-size:12px;margin:0}.selection-note button{font-size:13px;min-height:36px}.selection-note #favoriteCurrent{margin-left:auto}.selection-note #playHelp{margin-left:auto}
 .mobile-position-nav:not([hidden]){display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:8px 12px 0}.mobile-position-nav button{min-height:40px;padding:6px 0;font-size:14px;border:1px solid #bdd5e1;border-radius:8px;background:#f1f7fa;color:#4a748a;white-space:nowrap}.mobile-position-nav button.active{background:#236b88;border-color:#236b88;color:white;box-shadow:inset 0 1px #ffffff40,0 2px 4px #1e607d20}
 .selection-area{padding:6px 12px;min-height:0}.selection-area fieldset{display:block;padding:8px 0;min-width:0}.selection-area fieldset>legend{display:block;float:none;position:static;width:auto!important;font-size:15px!important;margin:0 0 8px;padding:0;text-align:left;line-height:1.4}
 body.mobile-ready .selection-area>[data-mobile-row-hidden=true]{display:none}
 .selection-area .number-selection{display:block;min-width:0;width:100%}.selection-area .number-selection .choice-grid{display:grid!important;gap:7px!important}
 .selection-area .number-selection .choice-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 .selection-area .choice{min-width:0;display:block}.selection-area .choice span{min-width:0!important;min-height:44px!important;font-size:21px!important;border-radius:10px;padding:7px 3px;display:flex;align-items:center;justify-content:center}
 .selection-area .number-selection .digit-shortcuts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:8px}.selection-area .digit-shortcuts button{font-size:15px;min-height:38px;border-radius:8px;touch-action:manipulation}.selection-area .digit-shortcuts button:active{transform:scale(.94);background:#dfb66d;color:#fff}
 .selection-area .choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.selection-area .choice-grid:has(input[data-field=options]) .choice span{font-size:16px!important}
 .selection-area .block-play-form .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px 0}.selection-area .block-play-form .choice-grid .choice span{min-width:0;min-height:54px!important;font-size:20px!important;padding:12px 18px}.block-play-rule{font-size:14px;line-height:1.65;margin:12px 0 4px}
 .selection-area fieldset.single-entry{display:block}.selection-area .single-entry-content textarea{min-height:100px;width:100%;box-sizing:border-box}.selection-area .single-entry-content>small{font-size:13px;line-height:1.6}
 .selection-actions{padding:8px 12px 12px;display:flex;gap:6px;flex-wrap:wrap}.selection-actions>button{font-size:13px;min-height:36px;padding:5px 7px;border:1px solid #bcd3df;border-radius:7px}.selection-actions>span{font-size:14px;width:100%;padding-top:4px;text-align:left;margin-left:0}
 .stake-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:12px;border-top:1px solid #d6e5ec}
 .stake-control,.multiplier-control{display:block;min-width:0}.stake-control>label,.multiplier-control>label{display:block;font-size:14px;margin:0 0 6px;width:auto}.amount-input,.stepper{width:100%;height:44px;min-height:44px;box-sizing:border-box}.amount-input{display:flex}.amount-input input,.stepper input{min-width:0;width:100%;font-size:18px!important}.stepper button{min-width:38px;font-size:20px;min-height:42px}
 .stake-editor .selection-money-summary{grid-column:1/-1;grid-row:2;text-align:left;font-size:14px;line-height:1.6}.stake-editor .mobile-more-money{display:block;grid-column:1/-1;grid-row:3;min-height:40px;font-size:14px;text-align:left;color:#33728b;background:#eef6fb;border:1px solid #c3dae5;border-radius:8px;padding:8px 10px}
 .stake-editor .native-stake-shortcuts{display:none;grid-column:1/-1;grid-row:4;min-width:0;margin:0;padding:5px 0;border:0;gap:10px}.mobile-money-expanded .stake-editor .native-stake-shortcuts{display:grid}
 .native-stake-shortcuts .money-control-row{display:block}.native-stake-shortcuts .money-control-row>b,.native-stake-shortcuts .money-budget-row>b{display:block;width:100%;font-size:14px;margin-bottom:6px}
 .native-stake-shortcuts .money-preset-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.native-stake-shortcuts button{min-height:40px;font-size:14px;padding:7px 9px;border-radius:8px}.native-stake-shortcuts .money-budget-row{gap:6px}.money-shortcut-status{font-size:13px}
 .stake-editor .bet-actions{grid-column:1/-1;grid-row:5;display:flex}.stake-editor .bet-actions .add-button{display:flex;justify-content:center;width:100%;min-height:44px;align-self:auto;font-size:15px;padding:10px 12px;gap:8px;border-radius:10px}.stake-editor #betNow{display:none}.stake-editor .bet-action-status{font-size:13px;line-height:1.6}.stake-editor .stake-help{font-size:12px;line-height:1.5;margin:0}
 .ticket-panel{margin:0;border-radius:14px;display:block;position:static}.ticket-heading{padding:15px}.ticket-heading h2{font-size:18px}.ticket-body,.empty-ticket{min-height:120px}.empty-ticket{padding:25px 15px}.empty-ticket h3{font-size:18px}.empty-ticket p,.ticket-row,.quote-status{font-size:14px;line-height:1.6}.ticket-row{padding:13px 15px}.ticket-row button{min-height:40px;font-size:14px}.ticket-row p{overflow-wrap:anywhere}.ticket-summary{padding:16px}.ticket-summary>div{font-size:14px}.ticket-total strong{font-size:30px}.ticket-foot{font-size:13px}.checkout-button{font-size:16px;min-height:48px}
 .history-trend-panel{max-height:none!important;width:100%;padding:0 13px;margin:0;border-radius:14px;overflow:visible}.history-source-tabs{padding:12px 0 8px;gap:6px}.history-source-tabs button{min-height:44px;font-size:14px;font-weight:650;padding:7px 3px}.history-trend-tabs button{font-size:16px;min-height:46px}.side-context>b{font-size:16px}.side-context small{font-size:13px}.side-history-viewport{max-height:none;overflow:visible}.side-history-top{font-size:13px}.side-shape{font-size:14px}.side-history-row{padding:13px 0}.side-balls{gap:10px}.side-balls b{font-size:24px;min-height:42px;width:42px}.side-history-note,.side-block-detail,.trend-total{font-size:13px;line-height:1.6}.trend-frequency{font-size:15px}.trend-shape{font-size:14px}.side-history-toggle{min-height:44px;font-size:14px}.vip-key-entry{font-size:14px;min-height:40px}
 .records-panel{margin:0;border-radius:14px;overflow:hidden}.records-header{padding:8px 12px;gap:8px}.records-tabs{gap:18px}.records-tabs button{font-size:15px;padding:12px 0}.records-account{width:100%;gap:8px}.records-account .account-balance strong{font-size:18px}.records-account .small-link{font-size:13px;min-height:40px}.records-back-top{font-size:13px;min-height:40px}.records-table{max-width:100%;overflow-x:auto;touch-action:pan-x pan-y;overscroll-behavior-x:contain}.records-table th,.records-table td{font-size:14px;padding:13px 12px}.records-table .record-number{font-size:20px}.record-actions button{font-size:14px;min-height:40px}
 .dual-row{grid-template-columns:32px minmax(0,1fr);gap:7px}.dual-position b{font-size:15px}.dual-position small{display:none}.dual-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.market-choice{min-height:48px}.market-choice .choice-title{font-size:18px}.market-choice small{font-size:12px}
 .trust-strip,.page-footer{display:none}.page-section-nav{display:none!important}#testTools{display:none}#numberToolFrame{min-height:680px;height:calc(100dvh - 100px);border-radius:14px;width:100%}
 .mobile-ticket{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;align-items:center;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fffdf6f5;border-top:1px solid #d6dfe3;box-shadow:0 -4px 20px #19465c16;backdrop-filter:blur(16px);box-sizing:border-box}
 .mobile-dock-summary{flex:1;min-width:0}.mobile-ticket .mobile-dock-summary>small{font-size:12px;line-height:1.4;display:block;color:#6b8491}.mobile-ticket .mobile-dock-summary>strong{display:block;font-size:16px;line-height:1.5;color:#966623;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.mobile-dock-summary>#mobileDockHint{display:block;font-size:12px;color:#647e8c;line-height:1.4}
 .mobile-ticket #viewTicket{flex:none;min-height:44px;font-size:14px;border:1px solid #bad1de;background:#edf6fb;color:#34718b;border-radius:9px;padding:8px 10px}
 .mobile-ticket #mobileSubmit{flex:none;min-height:48px;max-width:42%;font-size:16px;font-weight:750;border:1px solid #2c809e;color:#fff;border-radius:11px;padding:10px 15px;background:linear-gradient(140deg,#3498b4,#1b6482);box-shadow:inset 0 1px #ffffff40,0 4px 10px #246f8a22;line-height:1.4;white-space:normal}
 .mobile-ticket #mobileSubmit:disabled{opacity:.55;box-shadow:none}.mobile-ticket button:active{transform:translateY(1px)}body[data-mobile-view=tool] .mobile-ticket{display:none}
 body.mobile-modal-open{overscroll-behavior:none}
 dialog[open]{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;width:calc(100vw - 20px)!important;max-width:520px!important;height:auto!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;box-sizing:border-box;padding:52px 16px 20px!important;border-radius:18px!important}
 dialog .dialog-close{width:40px;height:40px;min-width:40px;min-height:40px;top:10px;right:10px;font-size:26px;z-index:10;background:#e8f2f8;border-radius:50%}
 dialog h2{font-size:21px}dialog p,dialog li{font-size:14px;line-height:1.7;overflow-wrap:anywhere}dialog h3{font-size:17px}dialog button{min-height:42px;font-size:15px}
 .number-rules-dialog .marked-block-hash{font-size:14px;line-height:1.8}.number-rules-dialog a{color:#087baa;text-decoration:underline;text-underline-offset:3px}
 .favorite-choices{max-height:none}.favorite-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.favorite-option{min-height:44px;padding:8px}.favorite-option span{font-size:14px}.favorite-search input{font-size:16px}.favorite-footer{position:sticky;bottom:-20px;background:#f5fafe;padding:12px 0}.random-money label{font-size:14px}.random-explainer{font-size:14px}.random-dialog .favorite-choices{max-height:none}
 .draw-dialog .draw-result-header{display:flex;flex-direction:column;padding:0;gap:8px}.draw-dialog .draw-result-header .draw-dialog-head{padding:0;min-height:0}.draw-result-header h2{font-size:21px}.draw-inline-actions{position:static;transform:none;width:auto!important;align-self:center!important;margin:0!important}.draw-inline-actions button{font-size:15px}
 .draw-dialog .spin-stage{height:220px}.draw-dialog .spin-digits>b{font-size:32px}.draw-dialog .draw-panel-rule{font-size:14px}.draw-dialog .stop-spin{min-height:48px;font-size:17px}.draw-dialog .marked-block-hash{font-size:13px;overflow-wrap:anywhere}
 .draw-dialog .draw-page-arrow{display:inline-flex!important;position:static;align-items:center;justify-content:center;min-width:48px;min-height:40px;font-size:26px;margin:6px;border:1px solid #bed6e3;border-radius:9px;color:#266f8b;background:#edf6fb}.draw-dialog .draw-page-position{display:block!important;font-size:13px;text-align:center}
 .live-animation-dialog[open]{padding:48px 12px 16px!important;width:calc(100vw - 16px)!important;max-width:520px!important}.live-animation-dialog .sequence-heading{margin:0 0 14px}.live-animation-dialog .sequence-heading h2{font-size:21px}.live-animation-dialog .sequence-heading p{font-size:13px}
 .live-animation-dialog .sequence-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.live-animation-dialog .sequence-card{padding:12px 4px;min-height:0;border-radius:12px}.live-animation-dialog .sequence-card h3{font-size:14px;letter-spacing:0;white-space:nowrap}.live-animation-dialog .sequence-card>small{font-size:12px;min-height:34px}.live-animation-dialog .sequence-card>strong,.live-animation-dialog .sequence-card[data-card=result][data-phase=done]>strong{font-size:clamp(19px,5.7vw,29px);letter-spacing:0;margin:10px 0}.live-animation-dialog .sequence-step{width:26px;height:26px;font-size:12px}.live-animation-dialog .sequence-card:not(:last-child)::after{right:-8px;width:8px;font-size:18px;top:100px}
 .live-animation-dialog .reel-window{height:36px}.live-animation-dialog .reel-strip>span{height:36px;font-size:24px}.live-animation-dialog .sequence-hash{font-size:12px;min-height:0;word-break:break-all}.live-animation-dialog .sequence-hash .marked-block-hash{font-size:12px!important;line-height:1.6!important}.live-animation-dialog .sequence-hash>span{font-size:12px}.live-animation-dialog .sequence-equation{font-size:14px;min-height:48px;margin:12px 0}.live-animation-dialog .sequence-controls{position:relative}.live-animation-dialog .sequence-controls button{min-height:46px;font-size:16px}.live-animation-dialog .sequence-controls>p{font-size:14px}.live-animation-dialog .sequence-rule{font-size:12px}.live-animation-dialog .stage-timeline{gap:4px;margin:0 0 12px}.live-animation-dialog .stage-timeline>span{font-size:12px;padding:5px 2px}.live-animation-dialog .stage-timeline b{display:none}
 .toast{bottom:calc(115px + env(safe-area-inset-bottom));font-size:15px;max-width:calc(100vw - 32px);padding:12px 18px;overflow-wrap:anywhere}
}
@media(max-width:360px){.topbar .brand-wordmark{display:none}.game-identity h1{font-size:17px}.round-clock .round-top{font-size:10px}.mobile-workspace-nav button{font-size:13px}.category-nav button{padding:0 12px}.number-balls>b{width:31px;height:35px;font-size:22px}.mobile-ticket #mobileSubmit{font-size:15px;padding:9px 10px}.mobile-ticket #viewTicket{padding:8px}.mobile-position-nav button{font-size:13px}}
@media(prefers-reduced-motion:reduce){.mobile-ticket button{transition:none}}

@media(max-width:760px){.mobile-all-plays{display:block;min-height:44px;font-size:14px;flex:none;border-left:1px solid #d0e2ec;padding:7px 9px;color:#2d728f}.mobile-plays-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.mobile-plays-list button{border:1px solid #bed6e2;border-radius:10px;background:#eff7fc;min-height:48px;font-size:15px}.mobile-plays-list button.active{background:#226c88;color:#fff;border-color:#226c88}.live-animation-dialog .number-visual>[data-number],.live-animation-dialog .sequence-card[data-card=result][data-phase=done] .number-visual>[data-number]{font-size:clamp(19px,5.7vw,29px)}.live-animation-dialog .number-reel{font-size:clamp(19px,5.7vw,29px)}.live-animation-dialog .candidate-wheel span,.live-animation-dialog .scanner-stream>span,.live-animation-dialog .scanner-stream>code{font-size:12px}.live-animation-dialog .addition-placeholder{font-size:13px}}

@media(max-width:760px){.history-trend-panel:not(.is-expanded) .side-history-row:nth-child(n+6){display:none}}

/* Mobile layout revision: compact digits and always-visible stake shortcuts. */
@media(max-width:760px){
 .mobile-play-toolbar #mobileAllPlays{min-width:0;min-height:34px;height:34px;box-sizing:border-box;margin:0;padding:4px 9px;border:1px solid #c48b2c;border-bottom:3px solid #b47b20;border-radius:9px;color:#68420e;background:linear-gradient(155deg,#ffe7a8,#f4be55);box-shadow:inset 0 1px #fff9,0 3px 7px #b27c2c25;font-size:13px;font-weight:800;white-space:nowrap}
 .mobile-play-toolbar #mobileAllPlays:active{transform:translateY(2px);border-bottom-width:1px;box-shadow:inset 0 2px 4px #7c4c1425}
 .stake-editor>.stake-control{grid-column:1;grid-row:1;min-width:0;width:100%}
 .stake-editor>.multiplier-control{grid-column:2;grid-row:1;min-width:0;width:100%}
 .stake-editor .amount-input,.stake-editor .stepper{height:46px;min-height:46px;min-width:0;width:100%;box-sizing:border-box;border:1px solid #bdd4e1;border-radius:9px;background:#fff;box-shadow:inset 0 1px 3px #254f6810}
 .stake-editor .amount-input input{flex:1 1 0;width:0;min-width:0;font-size:18px!important}
 .stake-editor .stepper input{flex:1 1 0;width:0;min-width:0;font-size:18px!important}
 .stake-editor .stepper button{flex:0 0 36px;min-width:36px;width:36px;min-height:44px;padding:0;font-size:22px}
 .stake-editor .selection-money-summary{grid-column:1/-1;grid-row:2}
 .stake-editor #mobileMoreMoney{grid-column:1/-1;grid-row:3;min-height:0;margin:2px 0 0;padding:8px 0 0;border:0;border-radius:0;background:none;font-size:15px;font-weight:700;color:#426d83;pointer-events:none}
 .stake-editor #nativeStakeShortcuts{display:grid;grid-column:1/-1;grid-row:4;gap:12px;padding:0;margin:0;border:0}
 .stake-editor #nativeStakeShortcuts .money-control-row{margin:6px 0 12px}
 .stake-editor #nativeStakeShortcuts .money-preset-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .stake-editor #nativeStakeShortcuts button{min-height:42px;padding:7px 8px;font-size:14px}
 .stake-editor #nativeStakeShortcuts .money-budget-row{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}
 .stake-editor #nativeStakeShortcuts .custom-budget-buttons{gap:7px;flex-wrap:wrap}
 .selection-area .number-selection .choice-grid .choice span{padding:7px 0;min-height:44px!important;border-radius:8px;font-size:18px!important}
}
@media(min-width:360px) and (max-width:760px){
 .selection-area .number-selection .choice-grid[data-digit-grid]{grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:3px!important}
}
@media(max-width:359px){.selection-area .number-selection .choice-grid[data-digit-grid]{grid-template-columns:repeat(5,minmax(0,1fr))!important}}

/* A closed history popover must not reserve space in the compact banner. */
@media(max-width:760px){
 .game-banner .award-history[aria-hidden="true"]{display:none!important}
 .game-banner .award-history[aria-hidden="false"]{display:block}
 .game-banner .last-result{min-height:0;height:auto}
 .game-banner .last-result>p:empty{display:none}
}

/* Same live reel engine as desktop; only the phone arrangement is vertical. */
.mobile-reel-controls{display:none}
@media(max-width:760px){
 .live-animation-dialog .live-scene{position:relative;isolation:isolate}
 .live-animation-dialog .live-scene[hidden]{display:none!important}
 .live-animation-dialog .draw-progress,.live-animation-dialog #spinStage,.live-animation-dialog #drawCalculation,.live-animation-dialog .draw-panel-rule,.live-animation-dialog .source-group-heading,.live-animation-dialog #historySourceInfo,.live-animation-dialog #baseSourceInfo,.live-animation-dialog #blockMeta,.live-animation-dialog #baseBlockExplanation{display:none!important}
 .live-animation-dialog .manual-spin-actions{display:none}
 .live-animation-dialog .mobile-reel-controls:not([hidden]){display:block;position:sticky;top:-48px;z-index:12;margin:0 0 12px;padding:10px 0;background:#f1f8fcf5;backdrop-filter:blur(12px);border-bottom:1px solid #cce0e9}
 .live-animation-dialog .mobile-reel-controls button{width:100%;min-height:48px;font-size:17px;font-weight:750;border-radius:11px;color:#fff;background:linear-gradient(135deg,#3398b5,#1b6583);box-shadow:inset 0 1px #ffffff55,0 4px 12px #1f617a25}
 .live-animation-dialog .mobile-reel-controls b{margin-left:12px;padding:4px 8px;border-radius:6px;background:#ffffff24;font-variant-numeric:tabular-nums}
 .live-animation-dialog .stage-timeline{display:none}
 .live-animation-dialog .sequence-flow{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
 .live-animation-dialog .sequence-card{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:5px 8px;min-height:0;padding:13px 15px;border:1px solid #c0dbe7;border-radius:15px;background:#ffffffda;box-shadow:0 4px 12px #2c657a0d;scroll-margin:65px 0 16px;text-align:center;opacity:1}
 .live-animation-dialog .sequence-card[data-phase=waiting]{opacity:.65;background:#edf6fa}
 .live-animation-dialog .sequence-card[data-phase=active]{border-color:#4c9dbb;background:#f5fcff;box-shadow:0 5px 20px #2d8bb321,0 0 0 1px #74b6cd28}
 .live-animation-dialog .sequence-card[data-card=base][data-phase=active]{border-color:#d1ac66;background:#fffbf1}
 .live-animation-dialog .sequence-card .sequence-step{grid-column:1;grid-row:1;width:28px;height:28px;margin:0;border-radius:50%;display:grid;place-items:center;font-size:12px;background:#dcebf2;color:#6f95a8}
 .live-animation-dialog .sequence-card[data-phase=active] .sequence-step{background:#287d9c;color:white}
 .live-animation-dialog .sequence-card[data-phase=done] .sequence-step{background:#e1f2ed;color:#29816c}
 .live-animation-dialog .sequence-card h3{grid-column:2;grid-row:1;font-size:18px;line-height:1.5;text-align:left;letter-spacing:0;margin:0}
 .live-animation-dialog .sequence-card>small{grid-column:1/-1;grid-row:2;min-height:0;font-size:13px;line-height:1.5;margin:0;color:#668b9e}
 .live-animation-dialog .sequence-card .number-visual{grid-column:1/-1;grid-row:3;height:64px;margin:4px 0;position:relative}
 .live-animation-dialog .sequence-card .number-visual>[data-number],.live-animation-dialog .sequence-card[data-card=result][data-phase=done] .number-visual>[data-number]{font-size:40px;line-height:64px;letter-spacing:5px;font-weight:750}
 .live-animation-dialog .sequence-card[data-phase=waiting] .number-visual{height:42px;margin:0}.live-animation-dialog .sequence-card[data-phase=waiting] .number-visual>[data-number]{font-size:30px;line-height:42px}
 .live-animation-dialog .number-reel{height:64px;font-size:40px;line-height:64px;width:.68em;border-radius:7px}.live-animation-dialog .history-reels{height:64px;gap:4px}.live-animation-dialog .reel-track>i{height:64px;line-height:64px}
 .live-animation-dialog .sequence-card .sequence-hash{grid-column:1/-1;min-height:0;font-size:13px;line-height:1.55;word-break:break-all;text-align:center}
 .live-animation-dialog .sequence-hash:empty{display:none}.live-animation-dialog .sequence-hash>span{font-size:12px;line-height:1.5}.live-animation-dialog .sequence-hash .marked-block-hash{font-size:13px!important;line-height:1.7!important;letter-spacing:.2px}
 .live-animation-dialog .block-verify-link{display:inline-flex;min-height:38px;align-items:center;justify-content:center;font-size:13px;padding:5px 10px;margin:3px auto}
 .live-animation-dialog .sequence-card .candidate-wheel,.live-animation-dialog .sequence-card .scanner-stream{grid-column:1/-1;height:54px;margin:0}
 .live-animation-dialog .scanner-stream>span,.live-animation-dialog .scanner-stream>code,.live-animation-dialog .candidate-wheel span{font-size:13px}
 .live-animation-dialog .sequence-card:not(:last-child)::after{content:'↓';position:absolute;top:auto;bottom:-18px;left:calc(50% - 12px);right:auto;width:24px;font-size:20px;line-height:20px;color:#7ea5b8;background:#edf6fa;border-radius:10px}
 .live-animation-dialog .sequence-card[data-card=result] .addition-board{grid-column:1/-1;min-height:0;width:100%;margin:0;padding:0}
 .live-animation-dialog .addition-placeholder{display:none}.live-animation-dialog .addition-work{padding:10px 0 0}.live-animation-dialog [data-addition-note]{font-size:13px;line-height:1.6}
 .live-animation-dialog .sequence-card[data-card=result][data-phase=done]{border-color:#d8b36d;background:linear-gradient(140deg,#fffdf8,#fff2d7)}
 .live-animation-dialog .sequence-card[data-card=result][data-phase=done] [data-number]{color:#a77021}
 .live-animation-dialog .sequence-controls{position:sticky;bottom:-16px;background:#f1f8fcf5;z-index:12;padding-top:10px;margin-top:12px;backdrop-filter:blur(12px)}
 .live-animation-dialog .sequence-controls button{width:100%;font-size:17px;min-height:48px}
 .live-animation-dialog .sequence-controls>p{font-size:14px}
 .live-animation-dialog .inline-settlement{margin-top:15px;overflow-wrap:anywhere}
}
@media(max-width:760px){
 .live-animation-dialog .sequence-card[data-phase=done] .sequence-step{font-size:0}
 .live-animation-dialog .sequence-card[data-phase=done] .sequence-step::after{font-size:16px}
 .live-animation-dialog[data-animation-stage=BASE] .ambient-core{left:50%;top:35%}
 .live-animation-dialog[data-animation-stage=COMBINE] .ambient-core,.live-animation-dialog[data-animation-stage=DONE] .ambient-core{left:50%;top:65%}
}

@media(max-width:760px){
 .live-animation-dialog .number-visual{overflow:hidden}
 .live-animation-dialog .candidate-wheel,.live-animation-dialog .scanner-stream{overflow:hidden}
 .live-animation-dialog .addition-row{grid-template-columns:20px 20px repeat(6,minmax(0,1fr));gap:3px;min-width:0}
 .live-animation-dialog .addition-row>.addition-operator{font:600 18px/24px ui-monospace,monospace;text-align:center}
 .live-animation-dialog .addition-row>.addition-label{font:600 12px/24px system-ui;text-align:center}
 .live-animation-dialog .row-carry>.addition-label{font-size:10px;line-height:15px;white-space:nowrap}
 .live-animation-dialog .block-verify-link{max-width:100%;border:1px solid #83b8cf;border-radius:8px;background:#e7f5fc;color:#176b8c;font-weight:700;text-decoration:none;box-shadow:0 2px 6px #245f7514}
}

/* Keep discovery outside the swipe rail and keep the native close action reachable. */
@media(max-width:760px){
 .mobile-play-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:5px 9px 5px 12px;background:#edf6fb;border-bottom:1px solid #c9dfe9}
 .play-swipe-hint{min-width:0;font-size:12px;font-weight:650;color:#42768e;white-space:nowrap}
 .category-header{position:relative}.category-header:after{content:none}
 .draw-dialog[open],.live-animation-dialog[open]{padding:12px 12px 16px!important;scroll-padding-top:68px}
 .draw-closebar{display:flex;position:sticky;top:-12px;z-index:60;justify-content:flex-end;align-items:center;min-height:52px;box-sizing:border-box;margin:-12px -12px 12px;padding:6px 12px;background:#edf7fcf5;border-bottom:1px solid #c5dce8;backdrop-filter:blur(14px);isolation:isolate}
 dialog .draw-closebar .dialog-close{position:static!important;flex:none;margin:0;width:40px;height:40px;min-width:40px;min-height:40px;border:1px solid #aacbdc;color:#24627e;background:linear-gradient(145deg,#fff,#dceef7);box-shadow:inset 0 1px #fff,0 2px 6px #20536b20;line-height:1}
 .live-animation-dialog .mobile-reel-controls:not([hidden]){top:40px;z-index:12}
}

/* UX review 20261021: stable workspaces, visible stake values and readable results. */
.action-confirmed{animation:mocube-action-confirm .75s ease-out!important}
@keyframes mocube-action-confirm{0%,35%{background:#1687c1;color:#fff;box-shadow:0 0 0 4px #52c4ed88,inset 0 0 20px #fff9}65%{background:#e5faff;box-shadow:0 0 0 2px #4abbe9}100%{box-shadow:none}}
.account-balance{position:relative}.balance-refresh{align-self:center;flex:none;width:28px;min-height:28px;border:1px solid #b4cfdd;border-radius:50%;color:#236c89;background:#f4fbff;font-size:19px;line-height:1}.balance-gain{position:absolute;right:28px;top:-4px;z-index:65;font-size:17px;font-weight:800;color:#128253;pointer-events:none;animation:balance-gain-rise 1.6s ease-out forwards}
@keyframes balance-gain-rise{0%{transform:translateY(4px);opacity:0}15%,65%{opacity:1}100%{transform:translateY(-28px);opacity:0}}
.money-shortcut-status.is-error,.bet-action-status:not([hidden]),#mobileDockHint:not([hidden]),.quote-status.is-error,.selection-money-summary.is-error{color:#bf3547!important;font-weight:700}
.winning-details{margin-top:8px;max-width:100%;font-size:13px;white-space:normal}.winning-details summary{font-weight:750;color:#a96515;cursor:pointer}.winning-details ul{list-style:none;padding:0;margin:6px 0;display:grid;gap:5px}.winning-details li{display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center;padding:5px 7px;border-radius:6px;background:#fff5df;color:#8a5a19;overflow-wrap:anywhere}.winning-details li b{font-variant-numeric:tabular-nums;letter-spacing:1px}.winning-details li small{margin:0;white-space:normal}
#unitStake{text-align:center!important}
@media(max-width:760px){
 .betting-panel{overflow:visible}.category-header{border-radius:0}.stake-editor{position:relative;isolation:isolate;align-items:start}
 .stake-editor>.stake-control,.stake-editor>.multiplier-control{position:sticky;top:62px;z-index:25;background:#f0f8fc;padding:7px 0 5px;box-shadow:0 7px 10px #f0f8fc}
 .stake-editor>.selection-money-summary{position:sticky;top:142px;z-index:24;background:#f0f8fc;margin-top:-10px;padding:4px 0;line-height:1.5;font-size:13px;box-shadow:0 5px 8px #f0f8fc}
 .stake-editor>.bet-actions{position:sticky;bottom:92px;z-index:26;padding:6px 0;background:#f0f8fc;box-shadow:0 -5px 9px #f0f8fc}
 .stake-editor .amount-input>span{position:absolute;left:8px;pointer-events:none}.stake-editor .amount-input{position:relative}.stake-editor .amount-input input{padding:0 25px!important}
 .selection-area fieldset{padding:13px 0 10px;margin:4px 0 10px;border-bottom:1px solid #c8dfe9}.selection-area fieldset:last-child{border-bottom:0;margin-bottom:0}
 .selection-area fieldset>legend{font-family:inherit!important;font-size:16px!important;font-weight:650!important;line-height:1.3!important;color:#426e84!important;margin:0 0 3px;padding:4px 0 0;float:none}
 .draw-closebar{gap:8px;min-height:52px}.draw-closebar>.dialog-balance{position:static!important;inset:auto!important;transform:none!important;margin:0 auto 0 0;padding:0;max-width:calc(100% - 50px)}
 .draw-closebar .account-balance{font-size:12px;padding:4px 6px;gap:5px;min-width:0}.draw-closebar .account-balance strong{font-size:16px}.draw-closebar .account-balance small{display:none}.draw-closebar .balance-menu-trigger{min-height:32px;padding:2px;gap:4px}.draw-closebar .balance-refresh{width:26px;min-height:26px;font-size:18px}
 .live-animation-dialog .draw-result-header{min-height:0;margin:0 0 2px;padding:0;display:flex;flex-direction:row;justify-content:flex-end}.draw-dialog.live-animation-dialog .draw-result-header .draw-dialog-head{display:none!important}.live-animation-dialog .draw-inline-actions{margin-left:auto!important}.live-animation-dialog .draw-inline-actions button{min-height:34px;padding:5px 12px;font-size:14px}
 .draw-dialog .draw-page-arrow{min-height:32px;min-width:38px;margin:2px 4px;font-size:22px;padding:0 7px}.draw-dialog .draw-page-position{font-size:12px;margin:2px 0 8px}.live-animation-dialog .mobile-reel-controls:not([hidden]){margin-bottom:8px;padding:6px 0;top:40px}
 .live-animation-dialog .inline-settlement{scroll-margin-top:68px;padding:12px 10px}
 .draw-bet-details,.draw-lines-scroll{min-width:0;max-width:100%;overflow:visible!important}.draw-bet-details table{display:block;min-width:0!important;width:100%;table-layout:fixed}.draw-bet-details thead{display:none}.draw-bet-details tbody{display:grid;gap:10px}.draw-bet-details tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;border:1px solid #c7dfe9;border-radius:10px;background:#f8fcff;gap:8px}
 .draw-bet-details td{display:block;min-width:0!important;padding:0!important;border:0;overflow-wrap:anywhere;white-space:normal!important}.draw-bet-details td:first-child{grid-column:1/-1}.draw-bet-details td p{max-width:none;font-size:13px!important;white-space:normal!important;overflow-wrap:anywhere}.draw-bet-details td:nth-child(2):before{content:'注数 / 金额';display:block;font-size:12px;color:#7192a3}.draw-bet-details td:nth-child(3):before{content:'奖号 / 结果';display:block;font-size:12px;color:#7192a3}.draw-bet-details td:nth-child(4){grid-column:1/-1}.draw-bet-details td:nth-child(4):before{content:'返还点数 ';font-size:12px;color:#7192a3}.draw-bet-details small{white-space:normal!important;font-size:12px;line-height:1.5}.draw-bet-details .record-number{font-size:22px}
 .player-bet-lines{overflow-x:auto}.player-bet-lines td:first-child{max-width:220px;white-space:normal!important;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){.action-confirmed{animation:none!important;outline:3px solid #3eb2dd}.balance-gain{animation:none!important}}

.selection-money-summary[data-range-note]:after{content:attr(data-range-note);display:block;font-size:12px;font-weight:500;color:#688593;line-height:1.5;margin-top:2px}

/* Use the header for live progress, with a light current flowing into the scene. */
.draw-header-progress{display:none}
@media(max-width:760px){
 .draw-closebar{gap:8px;min-height:56px;margin-bottom:7px;padding:6px 12px;background:linear-gradient(110deg,#e0f2faee,#eff9fcee 70%,#e5f2f9ee);border-bottom:1px solid #a8d2e4;box-shadow:0 5px 12px #25758a0a;overflow:visible}
 .draw-closebar:before{content:'';position:absolute;left:12px;right:65px;bottom:0;height:2px;background:linear-gradient(90deg,#3e9fb8,#82c9d7,transparent);opacity:.6;pointer-events:none}
 .draw-header-progress{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1;margin-right:auto;position:relative;color:#286781}
 .draw-header-progress strong{font-size:14px;line-height:1.3;white-space:nowrap;font-weight:750;letter-spacing:.3px}
 .draw-header-steps{display:flex;align-items:center;gap:5px;font-size:11px;line-height:1.3;color:#8da5b0}
 .draw-header-steps span{display:flex;align-items:center;gap:4px;white-space:nowrap}.draw-header-steps span:before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:#c4d8e2}
 .draw-header-steps i{height:1px;width:10px;background:#c7dde6}
 .draw-header-steps .is-active{color:#227f9f;font-weight:750}.draw-header-steps .is-active:before{background:#2ca3bd;box-shadow:0 0 0 3px #4fb6cf22;animation:header-stage-glow 1.5s ease-in-out infinite}
 .draw-header-steps .is-done{color:#4a9388}.draw-header-steps .is-done:before{background:#61a697}
 .draw-closebar[data-stage=DONE]:before{background:linear-gradient(90deg,#bd9143,#ead49a,transparent)}
 .draw-closebar>.dialog-balance{flex:0 1 auto;margin:0 2px 0 auto;max-width:none;min-width:0}
 .draw-closebar.has-balance .draw-header-progress{flex:1;min-width:90px}.draw-closebar.has-balance .draw-header-progress strong{font-size:12px}.draw-closebar.has-balance .draw-header-steps{gap:3px;font-size:10px}.draw-closebar.has-balance .draw-header-steps i{width:5px}
 .draw-closebar.has-balance .account-balance{gap:3px;padding:3px 4px}.draw-closebar.has-balance .balance-menu-trigger{min-width:0}
}
@media(max-width:390px){.draw-closebar.has-balance .balance-menu-trigger>span:first-child{display:none}.draw-closebar.has-balance .account-balance strong{font-size:14px}.draw-closebar.has-balance .draw-header-progress{min-width:84px}}
@keyframes header-stage-glow{50%{box-shadow:0 0 0 4px #4fb6cf33,0 0 10px #5cc3dc66}}
@media(prefers-reduced-motion:reduce){.draw-header-steps .is-active:before{animation:none}}

/* Balance the close control with an equal left rail, centering on the whole dialog. */
@media(max-width:760px){
 .draw-header-progress{align-items:center;text-align:center;margin-right:0}
 .draw-header-steps{justify-content:center}
 .draw-closebar:not(.has-balance){display:grid;grid-template-columns:40px minmax(0,1fr) 40px;column-gap:8px}
 .draw-closebar:not(.has-balance)>.draw-header-progress{grid-column:2;grid-row:1}
 .draw-closebar:not(.has-balance)>.dialog-close{grid-column:3;grid-row:1}
 .draw-closebar:not(.has-balance):before{right:12px;background:linear-gradient(90deg,transparent,#65b7cc,transparent)}
}

/* Mobile header: logo and balance share one compact, vertically centered row. */
@media(max-width:760px){
 .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:8px 12px;align-items:center}
 .topbar .brand{min-width:0;max-width:100%;--height:30px;gap:3px}.topbar .brand-wordmark{max-width:calc(100% - 35px)}
 .topbar .top-actions{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:0;min-height:0;margin-left:auto;width:max-content;max-width:100%}
 .topbar #rulesButton{display:none!important}
 .topbar .top-actions .account-balance{padding:0 4px 0 0;gap:0;margin:0;white-space:nowrap}
 .topbar .balance-menu-trigger{flex-wrap:nowrap;padding:7px 6px;gap:4px;min-height:38px}
 .topbar .top-actions .account-balance strong{font-size:18px}.topbar .balance-menu-arrow{margin-left:0}
 .draw-dialog.live-animation-dialog .draw-result-header{display:grid;grid-template-columns:1fr;gap:3px;min-height:0;margin:7px 0 3px;padding:0}
 .draw-dialog.live-animation-dialog .draw-result-header .draw-dialog-head{display:flex!important;grid-column:1;grid-row:1;min-height:0;width:100%;padding:8px 0!important;align-items:center;justify-content:center;text-align:center}
 .draw-dialog.live-animation-dialog .draw-dialog-head .eyebrow{font-size:11px;letter-spacing:2px;color:#7897a7}
 .draw-dialog.live-animation-dialog .draw-dialog-head h2{font-size:21px;line-height:1.4;margin:6px 0 2px;color:#1f526d}
 .draw-dialog.live-animation-dialog .draw-result-header .draw-inline-actions{grid-column:1;grid-row:2;justify-self:end;align-self:center;min-height:0;margin:0!important;max-width:none}
}
@media(max-width:390px){.topbar{gap:6px;padding-left:10px;padding-right:10px}.topbar .brand{--height:26px}.topbar .top-actions .account-balance strong{font-size:16px}.topbar .balance-menu-trigger{font-size:10px;padding-left:5px;padding-right:4px}}
