.mobile-member-nav,.mobile-balance-strip{display:none}.mobile-member-drawer:not([open]){display:none}
.mobile-detail-tabs{display:none}
.mobile-function-drawer:not([open]){display:none}
@media(max-width:720px){
  .mobile-play-modes{margin:3px 0 12px}
  .mobile-play-modes .mobile-section-heading{display:block;margin:0 0 8px;font-size:13px;font-weight:600}
  .mobile-play-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mobile-play-mode{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:30px auto;align-items:center;gap:7px 8px;min-width:0;height:84px;min-height:84px;box-sizing:border-box;padding:12px;border:1px solid var(--theme-line,#dce5ef);border-radius:12px;background:#fff;color:var(--theme-ink,#344e69);text-align:left;font-family:inherit;box-shadow:0 3px 9px #183a6006;cursor:pointer}
  .mobile-play-mode strong{font-size:16px;font-weight:650;white-space:nowrap}
  .mobile-play-mode small{display:block;grid-column:1/-1;font-size:11px;line-height:1.5;color:#697b8b;white-space:nowrap}
  .mobile-mode-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--theme-light,#eef5fb);color:var(--theme-primary,#237f9b)}
  .mobile-mode-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .mobile-mode-check{position:absolute;right:7px;top:6px;display:none;width:14px;height:14px;border-radius:50%;background:var(--theme-primary,#237f9b);color:#fff;font:10px/14px sans-serif;text-align:center}
  .mobile-play-mode[aria-pressed=true]{border-color:var(--theme-primary,#237f9b);background:linear-gradient(125deg,var(--theme-light,#eef5fb),#fff);box-shadow:inset 0 0 0 1px var(--theme-primary,#237f9b),0 3px 9px #183a6008}
  .mobile-play-mode[aria-pressed=true] .mobile-mode-check{display:block}
  .mobile-play-mode:focus-visible{outline:2px solid var(--theme-primary,#237f9b);outline-offset:3px}
  .mobile-play-mode-note{margin:5px 1px 0;font-size:11px;line-height:1.6;color:#6e7f8e}
}
@media(max-width:720px){
  .mobile-function-drawer{box-sizing:border-box;width:calc(100vw - 24px);max-width:430px;max-height:80dvh;padding:16px;border:1px solid #dce5ef;border-radius:16px;background:#f8fafc;color:#36546e;overflow:auto}
  .mobile-function-drawer::backdrop{background:#172d4766}
  .mobile-function-drawer nav{display:grid;gap:14px}
  .mobile-function-drawer nav h2{margin:0 0 8px;padding-left:8px;border-left:3px solid #719bbd;color:#58758e;font-size:12px;font-weight:600;line-height:16px}
  .mobile-function-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .mobile-function-drawer nav :is(a,button){box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:43px;padding:8px 3px;border:1px solid #dee7f0;border-radius:9px;background:white;color:#456580;text-decoration:none;font:13px/1.3 sans-serif}
  .mobile-function-drawer .mobile-drawer-head button{width:36px;height:36px;border:0;border-radius:9px;background:#eaf0f6;color:#456580;font-size:24px}
  html[data-member-theme] body.legacy-skin .mobile-portal-hero .mobile-functions-trigger{display:flex;align-items:center;justify-content:center;flex:none;order:-1;width:32px;height:32px;min-height:32px;margin:0 2px 0 0;padding:6px;border:0;border-radius:9px;background:#ffffff12;color:white}
  .mobile-functions-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  html[data-member-theme] body.legacy-skin .mobile-portal-hero .mobile-mine-identity{font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-portal-hero{justify-content:flex-start!important;text-align:left!important}
}
@media(max-width:720px){
  .mobile-member-drawer .shortcut-links .shortcut-agent-row{display:flex!important;flex-direction:row!important;grid-column:1/-1;margin:0;min-height:42px;padding:7px 10px;white-space:nowrap}
  .mobile-member-drawer .shortcut-agent-row strong{font-size:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated #dashboard-view.member-panel-open>.mobile-detail-tabs:not([hidden]){display:flex!important;flex-shrink:0}
  html[data-member-theme] body.legacy-skin.is-authenticated #dashboard-view>.mobile-detail-tabs[hidden]{display:none!important}
  .mobile-detail-tabs a{min-width:0;white-space:normal}
  .mobile-portal,.mobile-menu-row,.mobile-menu-row strong,.mobile-menu-row small,.mobile-review-items li{overflow-wrap:anywhere}
  .mobile-quick-amounts{flex-wrap:wrap}
  .mobile-quick-amounts button{min-width:0}
  .mobile-review-items li>span{min-width:0}
  .mobile-review-items strong{white-space:normal!important;overflow-wrap:anywhere}
  #member-panel,#member-panel-frame{width:100%;min-width:0;max-width:100%}
}
@media(max-width:720px){.mobile-detail-tabs:not([hidden]){display:flex;flex:none;background:white;border-bottom:1px solid #dde5ed;gap:0}.mobile-detail-tabs a{flex:1;text-align:center;text-decoration:none;padding:11px 8px;color:#7890a7;font-size:14px}.mobile-detail-tabs a.is-active{color:#267fb6;font-weight:700;box-shadow:inset 0 -3px #267fb6}.mobile-portal-hero>span{overflow-wrap:anywhere;min-width:0}.mobile-portal-hero h1{flex:none}}
@media(max-width:720px){
  html{touch-action:manipulation}input,select,textarea{font-size:16px}
  html[data-member-theme] body.legacy-skin.is-authenticated #main-content{height:calc(100dvh - 60px - env(safe-area-inset-bottom));}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-draw-strip{display:block;padding:8px 12px 5px;min-height:0;overflow:hidden}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card,html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card:has(.race-header-balls){height:108px;min-height:108px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:24px 76px;gap:3px;padding:0}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card .legacy-draw-title{grid-column:1;grid-row:1;width:calc(100% - 96px);height:24px;flex-direction:row;align-items:center;justify-content:flex-start;padding:0;border:0;gap:8px;text-align:left}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card .legacy-draw-title strong{font-size:15px}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card .legacy-draw-title span{font-size:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card #legacy-draw-numbers{grid-column:1;grid-row:2;height:76px;grid-template-rows:46px 24px;gap:4px}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-ball-row{height:46px;gap:3px;align-items:center;scrollbar-width:none;justify-content:flex-start}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-ball-row>i{width:31px;min-width:31px;height:46px;gap:4px}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-ball-row>i>small{font-size:10px;line-height:13px;height:13px}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card #legacy-draw-numbers .header-draw-properties{height:24px;scrollbar-width:none;gap:4px;font-size:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .ssc-result-tag{font-size:11px;padding:1px 6px;line-height:20px}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-top-nav{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-session{top:6px;right:10px;gap:0;display:block}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-logout-button{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .member-theme-picker>span{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .member-theme-picker select{width:86px;font-size:11px;padding:3px;height:26px;min-height:0}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-game-nav{padding:0 8px;min-height:48px}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-game-list{padding:6px 0;gap:6px;scrollbar-width:none;scroll-snap-type:x proximity}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-game-list::-webkit-scrollbar,html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-ball-row::-webkit-scrollbar{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-game-option{min-width:112px;min-height:36px;padding:6px 9px;border-radius:7px;scroll-snap-align:start}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-game-copy strong{font-size:12px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-balance-strip{flex:none;display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 12px;min-height:36px;border:0;border-bottom:1px solid var(--desk-line);background:#fff;color:#62758b;font-size:12px;box-shadow:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-balance-strip strong{color:var(--member-primary,#247d72);font-size:15px;font-variant-numeric:tabular-nums}
  .mobile-account{max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-left-rail{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .bet-control-card{margin:6px 6px 0;max-height:170px;overflow:auto;flex-shrink:0}
  html[data-member-theme] body.legacy-skin.is-authenticated .play-tabs,html[data-member-theme] body.legacy-skin.is-authenticated .hk6-play-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:5px;padding:6px;min-height:44px}
  html[data-member-theme] body.legacy-skin.is-authenticated .play-tab,html[data-member-theme] body.legacy-skin.is-authenticated .hk6-play-tab{flex:none;min-height:34px;font-size:13px;padding:6px 12px}
  html[data-member-theme] body.legacy-skin.is-authenticated .hk6-play-nav>button{flex:0 0 auto;min-width:62px;min-height:36px;white-space:nowrap;font-size:13px;padding:7px 12px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-message{min-height:25px;padding:4px 8px;font-size:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-bet-tools{display:flex;flex-wrap:wrap!important;gap:5px;padding:6px;max-height:none;overflow:visible}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-live-info{width:100%;display:flex;flex-wrap:wrap;overflow:visible;gap:4px 10px;padding:0 0 5px;font-size:10px;min-height:0}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-live-info strong{font-size:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-live-info>span{white-space:normal}
  html[data-member-theme] body.legacy-skin.is-authenticated .preset-toggle,html[data-member-theme] body.legacy-skin.is-authenticated .preset-amount,html[data-member-theme] body.legacy-skin.is-authenticated .preset-action{display:flex;align-items:center;gap:4px;font-size:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated .preset-toggle input{width:18px;height:18px}
  html[data-member-theme] body.legacy-skin.is-authenticated .preset-amount input{height:34px;width:64px;font-size:16px}
  html[data-member-theme] body.legacy-skin.is-authenticated .preset-action{min-width:44px;height:34px;justify-content:center;padding:4px 8px}
  html[data-member-theme] body.legacy-skin.is-authenticated .trend-action{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .bet-workspace,html[data-member-theme] body.legacy-skin.is-authenticated .member-panel-open .bet-workspace{display:flex;flex:1;min-height:0;padding:6px;gap:0;margin:0;overflow:hidden}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center{flex:1;width:100%;min-height:0;gap:6px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-board,html[data-member-theme] body.legacy-skin.is-authenticated .pending-play{overflow:auto;min-height:0;padding-bottom:8px;scrollbar-gutter:auto}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-group{overflow:visible}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-options-four{grid-template-columns:repeat(4,minmax(0,1fr))}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell{grid-template-columns:26px minmax(0,1fr);grid-template-rows:24px 34px;gap:3px;padding:5px;min-height:70px;min-width:0;font-size:13px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell input{grid-column:1/-1;width:100%;max-width:none;height:34px;font-size:16px;line-height:1.2;padding:3px;border-radius:5px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-odds{font-size:12px;text-align:right}
  html[data-member-theme] body.legacy-skin.is-authenticated .rank-market-list,html[data-member-theme] body.legacy-skin.is-authenticated .dragon-market-list{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  html[data-member-theme] body.legacy-skin.is-authenticated .rank-column-options,html[data-member-theme] body.legacy-skin.is-authenticated .dragon-column-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-row-label{font-size:13px;min-height:30px}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-position-row{min-width:0;width:100%;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-bottom:10px}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-position-row>strong{grid-column:1/-1;min-height:30px;justify-content:flex-start;padding:6px 10px;font-size:13px}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-position-row .market-option-cell{grid-template-columns:26px minmax(0,1fr);grid-template-rows:24px 34px;min-height:70px;padding:5px}
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-options,html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-section:not(.ssc-digits) .ssc-market-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;min-width:0}
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-digits .ssc-market-options,html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-section.hk6-number-grid .ssc-market-options{grid-template-columns:repeat(5,minmax(0,1fr))}
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-options .market-option-cell{grid-template-columns:26px minmax(0,1fr);grid-template-rows:24px 34px;min-height:70px;padding:5px}
  html[data-member-theme] body.legacy-skin.is-authenticated .hk6-combo-choices{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:8px}
  html[data-member-theme] body.legacy-skin.is-authenticated .hk6-combo-zodiac{grid-template-columns:repeat(4,minmax(0,1fr))}
  html[data-member-theme] body.legacy-skin.is-authenticated .hk6-combo-choices button{min-width:0;min-height:38px;padding:5px;font-size:14px}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center .bet-slip{position:static;flex:none;padding:8px;gap:6px;border-radius:8px}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center .bet-totals{flex:1 1 110px;gap:8px;font-size:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center .bet-totals strong{font-size:15px}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center .bet-submit{min-height:42px;min-width:106px;flex:0 0 106px;font-size:13px}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center .bet-reset{min-height:42px;flex:0 0 44px;font-size:12px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-member-nav{position:fixed;z-index:30;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:60px;box-sizing:content-box;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #d7e3ed;box-shadow:0 -4px 16px #183a6010}
  .mobile-member-nav a,.mobile-member-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;border:0;background:none;text-decoration:none;color:#74899a;font:12px/1.2 Arial,sans-serif}
  .mobile-member-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .mobile-member-nav .is-active{color:#217971;font-weight:700;background:#f1faf6}
  .mobile-member-drawer{width:calc(100% - 24px);max-width:430px;max-height:85dvh;margin:auto auto 0;padding:12px 12px max(12px,env(safe-area-inset-bottom));border:0;border-radius:16px 16px 0 0;background:#f4f8fb;color:#28465d;overflow:auto;box-sizing:border-box}
  .mobile-member-drawer::backdrop{background:#102c4a88}
  .mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:17px}
  .mobile-drawer-head button{width:40px;height:40px;border:0;border-radius:50%;background:#e5edf3;color:#325267;font-size:28px;line-height:1}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-member-drawer .member-shortcuts{margin:0;width:100%;max-height:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-member-drawer .shortcut-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-member-drawer .shortcut-links a{min-height:42px;display:grid;place-items:center;font-size:12px;padding:6px}
  .mobile-member-logout{width:100%;min-height:42px;margin-top:10px;border:1px solid #d4dfe8;background:white;color:#aa4c4c;border-radius:6px;font:14px Arial}
  body:not(.is-authenticated) .mobile-member-nav,body:not(.is-authenticated) .mobile-balance-strip{display:none}
}
@media(max-width:360px){html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-ball-row{gap:2px}html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-ball-row>i{width:27px;min-width:27px}html[data-member-theme] body.legacy-skin.is-authenticated .market-option-odds{font-size:11px}}

/* Rebuilt from the original web/m/Lottery mobile structure, not a shrunken desktop. */
.mobile-appbar,.mobile-period-bar,.mobile-play-sidebar,.mobile-today{display:none}
.mobile-game-drawer:not([open]){display:none}
@media(max-width:720px){
  /* The iOS visual viewport can be shorter than the layout viewport.  Reset
     the desktop body's 100vh minimum so the fixed mobile shell (including
     the bottom navigation) stays inside the actually visible area. */
  html[data-member-theme] body.legacy-skin.is-authenticated{--mobile-accent:var(--member-primary,#216b9c);--mobile-line:#dde5ed;background:#f1f4f8;min-height:0!important}
  .mobile-appbar{display:flex;align-items:center;justify-content:space-between;flex:none;height:48px;padding:0 14px;color:white;background:linear-gradient(115deg,#287fa5,#173c64);border-bottom:1px solid #ffffff20}
  .mobile-appbar button{border:0;background:none;color:inherit;min-height:44px;padding:0;font-size:19px}
  .mobile-game-trigger{display:flex;align-items:center;gap:12px}.mobile-game-trigger strong{font-size:17px;letter-spacing:.04em}.mobile-account-trigger{width:44px}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-draw-strip{background:white;color:#294057;padding:5px 12px 6px;border-bottom:1px solid var(--mobile-line)}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card,html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card:has(.race-header-balls){height:52px;min-height:52px;grid-template-rows:15px 29px;gap:5px}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card .legacy-draw-title{width:100%;height:15px;padding:0!important;justify-content:flex-start;gap:6px}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card .legacy-draw-title strong{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card .legacy-draw-title span{color:#6b8094;font-size:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card #legacy-draw-numbers{height:29px;grid-template-rows:29px}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-ball-row{height:29px;align-items:center;justify-content:flex-start;gap:6px}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-ball-row>i{width:27px;min-width:27px;height:29px;gap:0;justify-content:center}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-ball-row>i>small,
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card #legacy-draw-numbers .header-draw-properties,
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-session{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .draw-pc28-operator,
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .hk6-special-plus{color:#56738d;font-size:18px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-balance-strip{min-height:37px;padding:7px 12px;background:#f8fbfe;border-bottom:1px solid var(--mobile-line);flex-direction:row-reverse}
  .mobile-balance-strip .mobile-account{display:none}.mobile-today{display:inline;font-size:12px;color:#718096}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-balance-strip .mobile-today strong{font-size:13px;color:#d66b3b}
  .mobile-period-bar{display:flex;flex:none;align-items:center;justify-content:space-between;gap:6px;min-height:35px;padding:7px 12px;background:white;border-bottom:1px solid var(--mobile-line);font-size:11px;color:#718096}
  .mobile-period-bar strong{font-size:12px;font-variant-numeric:tabular-nums;color:#325f86}.mobile-period-bar>span:nth-child(2) strong{color:#d06a43}.mobile-period-bar>span:nth-child(3) strong{color:#278166}
  .mobile-period-bar.is-result-review{flex-wrap:wrap}
  .mobile-period-bar.is-result-review>span:last-child{flex-basis:100%;white-space:normal;line-height:1.5}
  html[data-member-theme] body.legacy-skin.is-authenticated .bet-control-card{margin:0;border:0;border-radius:0;box-shadow:none;max-height:none;overflow:visible}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-message{min-height:23px;font-size:10px;padding:4px 12px;background:#edf4fb;border-bottom:1px solid var(--mobile-line)}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-bet-tools{min-height:43px;padding:5px 12px;gap:6px;background:white;border-bottom:1px solid var(--mobile-line)}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-live-info{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .preset-amount input{height:32px;width:70px}.preset-toggle input{accent-color:#287fa5}
  html[data-member-theme] body.legacy-skin.is-authenticated .preset-action{height:32px;border-radius:5px}
  html[data-member-theme] body.legacy-skin.is-authenticated .bet-workspace{padding:0;gap:0;background:#edf2f7}
  .mobile-play-sidebar{display:block;flex:0 0 82px;max-width:82px;min-height:0;overflow-y:auto;scrollbar-width:none;background:#e8eff6;border-right:1px solid #d7e1eb}
  .mobile-trend-toggle{flex:none;display:block;width:100%;min-height:48px;padding:10px 5px;white-space:normal;line-height:1.4;font-size:13px;color:#526c85;border:0;border-bottom:1px solid #d7e1eb;background:#f0f6fb}.mobile-trend-toggle.is-active{color:#176c9c;background:#fff;font-weight:700;box-shadow:inset 3px 0 #258eb9}.mobile-trend-toggle::before{content:'↗';display:block;font-size:15px;margin-bottom:2px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar .play-tabs,
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar .hk6-play-nav{display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;padding:0;gap:0;min-height:0;background:none;border:0}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar .play-tabs[hidden],
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar .hk6-play-nav[hidden]{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar button{flex:none;display:block;width:100%;min-width:0;min-height:48px;padding:10px 5px;white-space:normal;line-height:1.4;font-size:13px;color:#526c85;border:0;border-bottom:1px solid #d7e1eb;border-radius:0;background:transparent;box-shadow:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar button.is-active{color:#176c9c;background:white;font-weight:700;box-shadow:inset 3px 0 #258eb9}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center{width:0;gap:0;background:#fff}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-board,
  html[data-member-theme] body.legacy-skin.is-authenticated .pending-play{padding:8px 7px;scrollbar-width:thin;background:#f8fafc}
  html[data-member-theme] body.legacy-skin.is-authenticated .rank-market-list,
  html[data-member-theme] body.legacy-skin.is-authenticated .dragon-market-list{grid-template-columns:minmax(0,1fr);gap:8px}
  html[data-member-theme] body.legacy-skin.is-authenticated #dragon-market-section{margin-top:0}
  html[data-member-theme] body.legacy-skin.is-authenticated #dragon-market-section[hidden],
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar .play-tab[hidden]{display:none!important}
  .dragon-market-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px}.dragon-market-column{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:6px}.dragon-column-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.dragon-column-options .market-option-cell{min-height:60px!important}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-board>.trend-panel{display:block!important;position:static;width:auto;min-height:0;margin:10px 0 0;border:1px solid #dce6ef;border-radius:8px;background:#fff;padding:0;overflow:visible}.market-board>.trend-panel[hidden]{display:none!important}.market-board>.trend-panel .trend-heading{padding:8px 10px;background:#edf5fb;color:#315d80}.market-board>.trend-panel .trend-heading h4{margin:0;font-size:14px}.market-board>.trend-panel .trend-heading .eyebrow{font-size:9px}.market-board>.trend-panel .long-streak-list{max-height:220px;overflow:auto;padding:4px 8px;margin:0}.market-board>.trend-panel .long-streak-list li{min-height:30px;padding:5px 2px;font-size:12px}.market-board>.trend-panel .trend-note{padding:0 10px 8px;margin:0;font-size:10px;color:#8295a7}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center>#mobile-trend-panel{position:static;flex:1;width:auto;min-height:0;margin:0;border:0;padding:8px 10px;background:#fff;overflow:auto}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center>#mobile-trend-panel[hidden]{display:none!important}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-trends-open>.market-board,
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-trends-open>.pending-play{display:none!important}
  html[data-member-theme] body.legacy-skin.is-authenticated #mobile-trend-panel .trend-heading{padding:8px;background:#edf5fb;border-radius:6px}
  html[data-member-theme] body.legacy-skin.is-authenticated #mobile-trend-panel .long-streak-list{margin:8px 0;padding:0;max-height:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-options-four,
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-options,
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-section:not(.ssc-digits) .ssc-market-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-digits .ssc-market-options,
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-section.hk6-number-grid .ssc-market-options{grid-template-columns:repeat(4,minmax(0,1fr))}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-position-row{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:8px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell,
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-options .market-option-cell,
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-position-row .market-option-cell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:25px 18px 30px;gap:2px;min-height:81px;padding:4px 3px;align-items:center;justify-items:center;background:white;border:1px solid #e1e7ee}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell .market-option-name{max-width:100%;font-size:14px;text-align:center;color:#294d6b;white-space:normal;line-height:1.2}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell .market-option-odds{font-size:12px;color:#d06a43;line-height:18px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell input{height:30px;padding:3px 1px;font-size:16px;width:100%;border:1px solid #dce4ed;background:#fafcfe;border-radius:4px;text-align:center}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell.has-stake{background:#e9f6ff;border-color:#49a4d0}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-group-heading,
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-section h4,
  html[data-member-theme] body.legacy-skin.is-authenticated .market-row-label{background:#eef4fa;color:#486b8b;text-align:center;font-size:13px;min-height:31px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-group-heading h4{background:none;min-height:0;margin:0;font-size:13px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell .market-option-name[data-number]:is([data-game=jssc],[data-game=hk6]){color:white}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell{grid-template-columns:minmax(0,1fr)!important}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell .market-option-name{grid-column:1!important;grid-row:1!important}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell .market-option-odds{grid-column:1!important;grid-row:2!important;text-align:center}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell input{grid-column:1!important;grid-row:3!important}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center .bet-slip{border-radius:0;border-width:1px 0 0;padding:7px 5px;gap:5px;flex-wrap:wrap;justify-content:flex-end;background:white}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center .bet-totals{flex-basis:100%;justify-content:space-between;padding:0 3px 2px;font-size:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center .bet-submit{flex:1 1 auto;min-height:36px;min-width:0;background:#287fa5;border-radius:5px}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center .bet-reset{min-height:36px;flex-basis:54px}
  .mobile-game-drawer{width:calc(100vw - 24px);max-width:430px;padding:16px;border:0;border-radius:14px;background:#f6f9fc;color:#2b4c68;max-height:80dvh;overflow:auto}
  .mobile-game-drawer::backdrop{background:#0b284866}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-game-drawer .betting-game-nav{padding:0;min-height:0;background:none;border:0}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-game-drawer .betting-game-list{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible;padding:0;gap:8px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-game-drawer .betting-game-option{width:100%;min-width:0;min-height:52px;padding:10px 14px;font-size:15px;border:1px solid #d7e4ee;background:white;text-align:left}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-game-drawer .betting-game-option.is-active{background:#e6f5fc;border-color:#3d91b7;color:#245b80}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-game-drawer .betting-game-option.is-active strong{color:#245b80}
  .member-panel-open .mobile-play-sidebar{display:none}
  html[data-member-theme] body.legacy-skin.is-authenticated #dashboard-view.member-panel-open>.mobile-appbar,
  html[data-member-theme] body.legacy-skin.is-authenticated #dashboard-view.member-panel-open>.mobile-balance-strip{display:flex!important}
  .member-panel-open .mobile-period-bar{display:none}
  body:not(.is-authenticated) .mobile-appbar,body:not(.is-authenticated) .mobile-period-bar{display:none}
  .mobile-member-nav .is-active{color:#287fa5;background:#eef7fb}
}
@media(max-width:360px){
  .mobile-play-sidebar{flex-basis:70px;max-width:70px}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-ball-row{gap:3px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-period-bar{font-size:10px;padding-left:8px;padding-right:8px}
}

.mobile-portal,.mobile-stake-footer,.mobile-page-title,.mobile-page-back{display:none}
.mobile-bet-review:not([open]){display:none}
@media(max-width:720px){
  html[data-member-theme] body.legacy-skin.is-authenticated{--phone-blue:#286bb0;--phone-dark:#183e70;--phone-bg:#f3f6fb;--phone-text:#263d59}
  html[data-member-theme] body.legacy-skin.is-authenticated #main-content{height:calc(100dvh - 58px - env(safe-area-inset-bottom))}
  .mobile-appbar{height:52px;background:#fff;color:var(--phone-text);border-bottom:1px solid #e6ecf4;padding:0 16px}
  .mobile-appbar button{color:var(--phone-dark)}.mobile-game-trigger strong{font-size:18px}.mobile-account-trigger{font-size:21px}
  .mobile-appbar .draw-sound-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;min-height:34px;margin-left:auto;margin-right:8px;padding:0;border:1px solid #cfe0ef;border-radius:7px;background:#f4f8fc;color:#286ba5;font-size:18px;line-height:1}
  .mobile-appbar .draw-sound-toggle[aria-pressed=true]{background:#eaf7f0;border-color:#a8d5bc;color:#22745c}
  .mobile-return-game{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:32px;padding:0 8px;border:1px solid #cfe0ef;border-radius:6px;background:#edf5fc;color:#276a9f;text-decoration:none;font-size:12px;white-space:nowrap}.mobile-return-game[hidden]{display:none!important}
  .mobile-member-nav{height:58px!important;box-shadow:0 -2px 12px #1b37500a!important}.mobile-member-nav .is-active{color:var(--phone-blue);background:none}
  .mobile-portal-open .mobile-page-title,.mobile-inner-open .mobile-page-title{display:block;font-size:17px;flex:1;text-align:center;padding-right:4px}
  .mobile-portal-open .mobile-game-trigger,.mobile-inner-open .mobile-game-trigger{display:none}
  .mobile-page-back{font-size:32px!important;width:28px;text-align:left}
  .mobile-inner-open .mobile-page-back{display:block}.mobile-portal-open .mobile-account-trigger{visibility:hidden}.mobile-portal-open .mobile-page-title{text-align:left}
  html[data-member-theme] body.legacy-skin.is-authenticated.mobile-portal-open .games-section,
  html[data-member-theme] body.legacy-skin.is-authenticated.mobile-portal-open .legacy-draw-strip,
  html[data-member-theme] body.legacy-skin.is-authenticated.mobile-portal-open .mobile-balance-strip,
  html[data-member-theme] body.legacy-skin.is-authenticated.mobile-inner-open .legacy-draw-strip,
  html[data-member-theme] body.legacy-skin.is-authenticated.mobile-inner-open #dashboard-view.member-panel-open>.mobile-balance-strip{display:none!important}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-portal{display:block;flex:1;min-height:0;overflow:auto;padding:16px 16px 24px;background:var(--phone-bg);color:var(--phone-text)}
  .mobile-portal[hidden]{display:none!important}.mobile-portal-hero{padding:22px;border-radius:18px;background:linear-gradient(115deg,#1e4f89,#3484bc);color:white;margin-bottom:16px}
  .mobile-portal-hero>span{font-size:12px;letter-spacing:.08em;color:#d7e8fa}.mobile-portal-hero h1{font-size:23px;line-height:1.4;margin:8px 0 0;overflow-wrap:anywhere}
  .mobile-home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;background:white;border:1px solid #e5ecf4;border-radius:14px;padding:14px 4px;margin-bottom:22px}
  .mobile-menu-row{display:flex;align-items:center;gap:12px;padding:15px 14px;text-decoration:none;color:var(--phone-text);min-width:0;min-height:62px;border-bottom:1px solid #edf1f7}
  .mobile-menu-row:last-child{border:0}.mobile-menu-row>span:nth-child(2){display:grid;gap:5px;min-width:0;flex:1}.mobile-menu-row strong{font-size:14px;font-weight:600}.mobile-menu-row small{font-size:11px;color:#8290a3;line-height:1.4}.mobile-row-arrow{font-size:22px;color:#a9b6c5}
  .mobile-feature-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#eef5fd;color:#3d7eb5;font-size:21px}
  .mobile-home-shortcuts .mobile-menu-row{display:flex;flex-direction:column;gap:8px;padding:0;border:0;min-height:0;text-align:center}.mobile-home-shortcuts .mobile-row-arrow{display:none}.mobile-home-shortcuts .mobile-feature-icon{width:40px;height:40px;background:#eaf3fc}.mobile-home-shortcuts strong{font-size:12px}
  .mobile-section-heading{font-size:17px;margin:0 0 12px;font-weight:700}.mobile-home-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}
  .mobile-home-game{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;gap:5px 9px;align-items:center;text-align:left;border:1px solid #e0e8f2;border-radius:14px;background:white;padding:16px 12px;min-height:94px;color:#304e70}
  .mobile-home-game>span{grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;background:#edf4fd;border-radius:12px;color:#3876aa;font-size:20px;font-weight:700}.mobile-home-game:nth-child(2)>span{background:#fff1ed;color:#c47656}.mobile-home-game:nth-child(3)>span{background:#eef7ec;color:#6d9a58}.mobile-home-game:nth-child(4)>span{background:#f2edfc;color:#9269b7}.mobile-home-game:nth-child(5)>span{background:#fff6e4;color:#b89839}
  .mobile-home-game strong{font-size:13px;white-space:normal;line-height:1.4}.mobile-home-game small{font-size:10px;color:#95a4b4}
  .mobile-home-games{grid-template-columns:minmax(0,1fr);gap:8px}.mobile-home-game-card{display:flex;align-items:center;border:1px solid #e0e8f2;border-radius:10px;background:white;min-width:0}.mobile-home-game-card .mobile-home-game{flex:1;min-width:0;width:0;border:0;min-height:66px;padding:10px 12px;border-radius:10px;font-size:14px}.mobile-home-game-card .mobile-home-game strong{font-size:15px}.mobile-game-favorite{flex:none;width:44px;min-height:44px;margin-right:6px;border:0;background:transparent;color:#8c9daf;font-size:26px}.mobile-game-favorite[aria-pressed=true]{color:#d59b21}.mobile-favorite-empty{margin:0;padding:12px;color:#8495a8;font-size:12px;border:1px dashed #d4e0ed;border-radius:8px}
  .mobile-portal-group{background:white;border:1px solid #e5ecf4;border-radius:14px;margin-bottom:16px;overflow:hidden}.mobile-portal-group h2{font-size:12px;color:#8a9bae;padding:13px 14px 0;margin:0;font-weight:500}
  .mobile-assets-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.mobile-asset-card{position:relative;display:grid;gap:10px;padding:18px 14px;background:white;border:1px solid #e0e8f2;border-radius:13px;min-width:0}.mobile-asset-card:first-child{grid-column:1/-1;background:#eaf2fb;border-color:#dbe8f6}.mobile-asset-card>span{font-size:12px;color:#7b8fa5}.mobile-asset-card strong{font-size:20px;color:#2e6293;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.mobile-asset-card:first-child strong{font-size:28px}.mobile-asset-eye{position:absolute;right:10px;top:8px;min-height:36px;min-width:36px;border:0;background:none;color:#789dc1;font-size:17px}
  .mobile-theme-setting{display:flex;justify-content:space-between;align-items:center;padding:16px 14px;background:white;border:1px solid #e5ecf4;border-radius:12px;color:#426181;font-size:14px}.mobile-theme-setting select{max-width:55%;min-height:36px;border:1px solid #d9e4ef;border-radius:6px;font-size:14px;color:#426181;background:white}
  .mobile-portal-logout{width:100%;min-height:44px;border:1px solid #e8d6d6;border-radius:10px;background:white;color:#b77070;font-size:14px;margin-top:18px}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-bet-tools{display:none!important}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-period-bar{background:#f8fafc;min-height:38px;color:#71839a}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar{flex-basis:78px;max-width:78px;background:#f0f4f9;border-color:#e3e9f1}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar button{font-size:12px;min-height:52px;color:#72859b;border-bottom:1px solid #e1e8f0}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar button.is-active{color:#2b6fa9;background:white;box-shadow:inset 3px 0 #3487c1}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell,
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-options .market-option-cell,
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-position-row .market-option-cell{position:relative;grid-template-rows:29px 19px!important;min-height:65px;gap:3px;padding:7px 3px;border:1px solid #e7ecf3;background:white;cursor:pointer;touch-action:manipulation}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell input{display:none!important}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell .market-option-name{font-size:16px;font-weight:600;color:#3c5471}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell .market-option-odds{font-size:12px;font-weight:500;color:#cf875e}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell.has-stake{background:#e6f2fd;border-color:#438fc4;box-shadow:inset 0 0 0 1px #438fc4}
  .market-option-cell.has-stake:after{content:'✓';position:absolute;right:3px;top:2px;color:#2678b5;font-size:12px;font-weight:700}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell.mobile-pending-pick{background:#e6f2fd;border-color:#438fc4;box-shadow:inset 0 0 0 1px #438fc4}.market-option-cell.mobile-pending-pick:after{content:'✓';position:absolute;right:3px;top:2px;color:#2678b5;font-size:12px;font-weight:700}
  .market-option-cell[aria-disabled=true]{opacity:.55;cursor:not-allowed}.market-option-cell:focus-visible{outline:2px solid #2a78b2;outline-offset:-2px}
  html[data-member-theme] body.legacy-skin.is-authenticated .betting-center .bet-slip{display:none!important}
  .mobile-stake-footer{display:block;flex:none;background:white;border-top:1px solid #e0e8f1;padding:9px 12px 8px}
  .mobile-quick-amounts{display:flex;align-items:center;gap:5px;margin-bottom:8px}.mobile-quick-amounts>span{font-size:10px;white-space:nowrap;color:#8b9bad;margin-right:2px}.mobile-quick-amounts button{flex:1;min-height:29px;border:1px solid #e0e8f1;border-radius:5px;background:#f9fbfe;color:#647e99;font-size:11px}
  .mobile-stake-entry{display:flex;align-items:center;gap:7px}.mobile-stake-entry .preset-amount{display:flex!important;align-items:center;gap:5px;min-width:0;flex:1;font-size:11px;color:#72859b;white-space:nowrap}.mobile-stake-entry .preset-amount input{width:74px!important;min-width:0;height:38px!important;border:1px solid #d4e0ec;border-radius:7px;font-size:16px!important;background:#fafcff;text-align:center;padding:4px}
  .mobile-clear-picks{min-height:38px;padding:0 8px;border:0;background:#eff4fa;border-radius:7px;color:#7790a7;font-size:12px}
  .mobile-review-trigger{min-height:38px;min-width:112px;border:0;border-radius:7px;background:#2d78b3;color:white;font-size:13px;padding:0 10px;font-weight:600}.mobile-review-trigger:disabled{background:#dce5ef;color:#91a3b7}
  .mobile-stake-summary{display:flex;justify-content:space-between;gap:8px;padding-top:8px;font-size:10px;color:#96a3b3}.mobile-stake-summary strong{font-size:11px;color:#6c829c;font-weight:500}.mobile-stake-warning{font-size:11px;color:#b86a4c;line-height:1.5;margin:5px 0 0}
  .member-panel-open .mobile-stake-footer{display:none}
  .mobile-bet-review{width:calc(100vw - 20px);max-width:440px;max-height:85dvh;border:0;border-radius:17px;padding:18px;background:white;color:#36546e;overflow:auto}.mobile-bet-review::backdrop{background:#17334c88}.mobile-bet-review .mobile-drawer-head>div{display:grid;gap:5px}.mobile-bet-review small{font-size:11px;color:#8498ac}.mobile-review-hint{font-size:11px;color:#889aad;line-height:1.5}.mobile-review-items{list-style:none;margin:12px 0;padding:0;border:1px solid #e2e9f2;border-radius:9px;max-height:42dvh;overflow:auto}.mobile-review-items li{display:flex;justify-content:space-between;gap:8px;padding:12px;border-bottom:1px solid #edf2f7;font-size:12px}.mobile-review-items li:last-child{border:0}.mobile-review-items strong{white-space:nowrap;color:#5f84a3;font-size:12px}.mobile-review-total{text-align:right;font-size:15px;color:#315c81;padding:12px 0}.mobile-review-warning{font-size:12px;color:#bf7456;line-height:1.5}.mobile-review-actions{display:flex;gap:10px}.mobile-review-actions button{flex:1;min-height:44px;border-radius:8px;font-size:14px;border:1px solid #dce7f1;color:#6b86a0;background:#f5f9fd}.mobile-review-actions .bet-submit{background:#2b79b3;color:white;border:0}.mobile-review-actions .bet-submit:disabled{background:#cddbe8;color:#839bb2}
  html[data-member-theme] body.legacy-skin.is-authenticated.mobile-inner-open .bet-workspace{padding:0!important}
  html[data-member-theme] body.legacy-skin.is-authenticated.mobile-inner-open .betting-center .member-panel{border:0;border-radius:0}
  body:not(.is-authenticated) .mobile-portal,body:not(.is-authenticated) .mobile-stake-footer{display:none}
}
@media(max-width:360px){.mobile-stake-entry .preset-amount>span{display:none}.mobile-review-trigger{min-width:100px}.mobile-home-game{padding:14px 9px;grid-template-columns:34px minmax(0,1fr);gap:4px 7px}.mobile-home-game>span{width:34px;height:34px;font-size:17px}.mobile-home-game strong{font-size:12px}}
@media(max-width:720px){
  body.legacy-skin:not(.is-authenticated){background:#f3f6fb;color:#35536e}
  body.legacy-skin:not(.is-authenticated) .site-header{background:white;border-bottom:1px solid #e5ecf4;padding:12px 18px;min-height:56px;box-shadow:none}
  body.legacy-skin:not(.is-authenticated) .brand-mark,body.legacy-skin:not(.is-authenticated) .brand-copy small{display:none}
  body.legacy-skin:not(.is-authenticated) .brand-copy strong{font-size:18px;color:#365775}
  body.legacy-skin:not(.is-authenticated) .auth-shell{display:block;min-height:0;margin:0;padding:20px 16px;border:0;background:transparent;box-shadow:none;border-radius:0}
  body.legacy-skin:not(.is-authenticated) .auth-visual{display:none}
  body.legacy-skin:not(.is-authenticated) .auth-panel{padding:0;min-height:0;background:transparent}
  body.legacy-skin:not(.is-authenticated) .auth-card{padding:24px 20px;background:white;border:1px solid #e0e8f2;border-radius:17px;box-shadow:0 8px 30px #25476808;max-width:440px;margin:auto}
  body.legacy-skin:not(.is-authenticated) .auth-heading h2{font-size:24px;color:#355d83;line-height:1.4}
  body.legacy-skin:not(.is-authenticated) .auth-heading p{font-size:12px;color:#8b9bad}
  body.legacy-skin:not(.is-authenticated) .auth-tabs{background:#f0f5fb;border-radius:9px;padding:4px;gap:5px;margin:22px 0}
  body.legacy-skin:not(.is-authenticated) .auth-tab{font-size:14px;min-height:40px;border-radius:7px}.auth-tab.is-active{box-shadow:none}
  body.legacy-skin:not(.is-authenticated) .field>span{font-size:12px;color:#7990a6}
  body.legacy-skin:not(.is-authenticated) .field input{min-height:46px;border:1px solid #dbe6f1;border-radius:8px;background:#fbfdff;font-size:16px;color:#426380}
  body.legacy-skin:not(.is-authenticated) .form-submit{min-height:46px;border:0;border-radius:8px;background:#2e78b1;font-size:15px;margin-top:10px;box-shadow:none}
  body.legacy-skin:not(.is-authenticated) .security-note{font-size:10px;line-height:1.7;color:#9aa7b6}
}
@media(max-width:720px){
  .mobile-review-actions [hidden],.mobile-review-receipt[hidden]{display:none!important}
  .mobile-bet-review.is-accepted .mobile-drawer-head strong,.mobile-review-warning.is-success{color:#21845f}
  .mobile-bet-review.is-accepted .mobile-review-total{background:#edf8f2;border-radius:8px;padding:12px;color:#21845f}
  .mobile-review-receipt{font-size:11px;overflow-wrap:anywhere;color:#8093a4;line-height:1.6}
  .mobile-review-actions .mobile-review-done{background:#21845f;color:white;border:0}
}

/* Compact phone layout: denser information, not scaled-down text or controls. */
@media(max-width:720px){
  html[data-member-theme] body.legacy-skin.is-authenticated #main-content{height:calc(100dvh - 50px - env(safe-area-inset-bottom))}
  .mobile-appbar{height:44px;padding:0 10px}.mobile-game-trigger strong{font-size:16px}
  .mobile-member-nav{height:50px!important}.mobile-member-nav a{gap:2px;font-size:11px}.mobile-member-nav svg{width:19px;height:19px}
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-draw-strip{padding:3px 10px 4px}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card,
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card:has(.race-header-balls){height:46px;min-height:46px;gap:2px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-balance-strip{padding:4px 10px;min-height:28px;font-size:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-balance-strip strong{font-size:13px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-period-bar{min-height:30px;padding:3px 10px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-message{padding:3px 10px;min-height:22px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar{flex-basis:68px;max-width:68px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-play-sidebar button{min-height:44px;padding:7px 3px;font-size:12px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-trend-toggle{min-height:44px;padding:7px 3px;font-size:12px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-board,
  html[data-member-theme] body.legacy-skin.is-authenticated .pending-play{padding:4px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-options-four{grid-template-columns:repeat(4,minmax(0,1fr))}
  html[data-member-theme] body.legacy-skin.is-authenticated .rank-market-list,
  html[data-member-theme] body.legacy-skin.is-authenticated .dragon-market-list{gap:4px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell,
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-options .market-option-cell,
  html[data-member-theme] body.legacy-skin.is-authenticated .legacy-position-row .market-option-cell{grid-template-rows:24px 16px!important;min-height:48px;gap:1px;padding:3px 2px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell .market-option-name{font-size:15px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-option-cell .market-option-odds{font-size:12px;line-height:16px}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-group-heading,
  html[data-member-theme] body.legacy-skin.is-authenticated .ssc-market-section h4,
  html[data-member-theme] body.legacy-skin.is-authenticated .market-row-label{min-height:25px;padding:3px 4px;margin-top:0;margin-bottom:0;font-size:12px}
  .mobile-stake-footer{padding:5px 8px}.mobile-quick-amounts{margin-bottom:4px;gap:4px}.mobile-quick-amounts button{min-height:28px}
  .mobile-stake-summary{padding-top:4px}.mobile-stake-summary>span{font-size:10px}
  .mobile-stake-entry{gap:5px}.mobile-review-trigger{min-width:102px}.mobile-stake-entry .preset-amount input{width:64px!important}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-portal{padding:8px 10px 12px}
  .mobile-portal-hero{padding:12px 14px;margin-bottom:8px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:8px}
  .mobile-portal-hero h1{font-size:18px;margin:0}.mobile-portal-hero>span{font-size:11px}
  .mobile-portal-hero .mobile-mine-funding{margin-left:auto;min-width:0}.mobile-portal-hero .mobile-mine-funding .member-trial-management{margin:0;padding:0;border:0;background:transparent;color:inherit}.mobile-portal-hero .mobile-mine-funding .member-trial-management summary{font-size:11px;color:inherit;white-space:nowrap}.mobile-portal-hero .mobile-mine-funding .member-trial-management[open]{position:absolute;z-index:4;right:10px;margin-top:34px;padding:8px;background:white;color:#48647b;border:1px solid #d5e3ee;border-radius:8px}
  .mobile-portal-hero .mobile-return-game{flex:none;font-size:11px;padding:0 7px;min-height:32px}
  /* Member mobile visual pass: restrained purple/lilac palette matching the reference. */
  html[data-member-theme] body.legacy-skin.is-authenticated{--phone-bg:#f7f5fa;--phone-text:#4b3c68;--phone-blue:#7860a9;--phone-line:#e2d9ef}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-portal{background:#f7f5fa;color:#4b3c68}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-portal-hero{background:#3d3357;border-radius:15px;color:#fff;border:0;box-shadow:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-home-shortcuts,
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-portal-group{border-color:#ded3ed;border-radius:13px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-home-shortcuts .mobile-feature-icon{background:#eee8f8;color:#7057a0}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-section-heading{color:#574574}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-home-game-card{border-color:#ded3ed;border-radius:13px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-home-game{color:#4b3c68;background:#fff}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-home-game>span{background:#eee8f8;color:#7057a0}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-game-favorite{color:#94a6ba}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-game-favorite[aria-pressed=true]{color:#d59617}
  .mobile-home-shortcuts{padding:8px 3px;margin-bottom:10px;border-radius:9px}
  .mobile-home-shortcuts .mobile-menu-row{gap:4px}.mobile-home-shortcuts .mobile-feature-icon{width:30px;height:30px;font-size:18px;border-radius:7px}
  .mobile-section-heading{font-size:15px;margin-bottom:7px}.mobile-home-games{gap:6px;margin-bottom:10px}
  .mobile-home-game{min-height:64px;padding:9px 8px;grid-template-columns:32px minmax(0,1fr);gap:2px 7px;border-radius:9px}
  .mobile-home-game>span{width:30px;height:30px;font-size:17px;border-radius:8px}
  .mobile-menu-row{min-height:46px;padding:8px 10px;gap:9px}.mobile-menu-row>span:nth-child(2){gap:2px}
  .mobile-feature-icon{width:28px;height:28px;border-radius:7px;font-size:18px}
  .mobile-portal-group{margin-bottom:8px;border-radius:9px}.mobile-portal-group h2{padding:8px 10px 0}
  .mobile-assets-grid{gap:6px;margin-bottom:10px}.mobile-asset-card{padding:10px;gap:5px;border-radius:9px}.mobile-asset-card strong{font-size:18px}.mobile-asset-card:first-child strong{font-size:23px}
  .mobile-theme-setting{padding:8px 10px;border-radius:9px}.mobile-portal-logout{margin-top:10px}
  .mobile-bet-review{padding:12px;border-radius:12px}.mobile-drawer-head{margin-bottom:6px;font-size:16px}
  .mobile-review-hint{margin:6px 0}.mobile-review-items{margin:8px 0}.mobile-review-items li{padding:8px 10px}
  .mobile-review-total{padding:8px 0}.mobile-review-warning:empty{display:none}.mobile-review-warning{margin:6px 0}
  html[data-member-theme] body.legacy-skin.is-authenticated .rank-column-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
  html[data-member-theme] body.legacy-skin.is-authenticated .market-group{margin-bottom:5px}
}

/* Only the content panes scroll. Anchor navigation and focus must not move the shell. */
@media(max-width:720px){
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-portal-hero{height:46px!important;min-height:46px!important;max-height:46px!important;box-sizing:border-box;padding:7px 12px!important;flex-shrink:0;align-items:center;gap:8px;border-radius:11px!important}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-portal-hero .mobile-return-game{height:28px;min-height:28px;box-sizing:border-box;padding:0 8px;font-size:11px}
  .mobile-section-hero{flex:none;margin:8px 10px!important;min-height:56px;box-sizing:border-box}
  .mobile-section-hero[hidden]{display:none!important}
  html[data-member-theme] body.legacy-skin.is-authenticated #main-content #dashboard-view.member-panel-open>.mobile-section-hero:not([hidden]){display:flex!important}
  .mobile-section-hero>div{display:flex;align-items:center;gap:12px;min-width:0}
  .mobile-section-hero strong{font-size:18px;letter-spacing:1px;color:#fff}
  .mobile-section-hero>div>span{font-size:11px;color:#ffffffb8}
  .mobile-section-hero .mobile-return-game{margin-left:auto;color:#fff;border-color:#ffffff55;background:#ffffff12;white-space:nowrap}
  /* Center pages already have their own headings. Keep the game bar only in-game. */
  html[data-member-theme] body.legacy-skin.is-authenticated.mobile-portal-open .mobile-appbar,
  html[data-member-theme] body.legacy-skin.is-authenticated.mobile-inner-open #dashboard-view.member-panel-open>.mobile-appbar{display:none!important}
  html:has(body.legacy-skin.is-authenticated){height:100%;overflow:hidden;overscroll-behavior:none}
  html[data-member-theme] body.legacy-skin.is-authenticated{--phone-nav-height:50px;position:fixed;inset:auto 0;top:var(--phone-viewport-top,0px);width:100%;min-height:0;height:var(--phone-viewport-height,100dvh);max-height:var(--phone-viewport-height,100dvh);overflow:hidden;overscroll-behavior:none}
  html[data-member-theme] body.legacy-skin.is-authenticated #main-content{position:absolute;top:env(safe-area-inset-top,0px);left:0;right:0;bottom:calc(var(--phone-nav-height) + env(safe-area-inset-bottom,0px));height:auto;margin:0;padding:0;overflow:hidden}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-member-nav{position:absolute;height:var(--phone-nav-height)!important;border-top:0;box-shadow:0 -1px #d7e3ed!important}
  html[data-member-theme] body.legacy-skin.is-authenticated :is(#main-content,#dashboard-view,.games-section,.games-shell,.game-detail,.betting-console,.bet-workspace,.betting-center){overflow:clip}
  .mobile-appbar{position:relative;z-index:10;flex-shrink:0;touch-action:manipulation}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-portal,
  html[data-member-theme] body.legacy-skin.is-authenticated .market-board,
  html[data-member-theme] body.legacy-skin.is-authenticated .pending-play,
  .mobile-play-sidebar{overscroll-behavior:contain;overflow-anchor:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-stake-footer{position:relative;flex:0 0 auto;padding:6px 8px;background:#fff}
  .mobile-stake-entry{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1.6fr);gap:5px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-stake-entry .preset-amount{display:grid!important;grid-template-columns:minmax(0,1fr);gap:0;font-size:10px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-stake-entry .preset-amount input{width:100%!important;max-width:100%;height:36px!important}
  .mobile-review-trigger{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.3;padding:7px 5px}
  .mobile-stake-summary{display:none}
}
.mobile-amount-dialog:not([open]){display:none}
@media(max-width:720px){
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-member-nav{padding:4px 8px max(4px,env(safe-area-inset-bottom));gap:4px;border-top:1px solid var(--theme-line);box-shadow:0 -3px 12px #17374f0b!important}
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-member-nav a{border-radius:10px;gap:3px;min-height:46px;font-size:11px;color:#708395}
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-member-nav a.is-active{color:var(--theme-primary)!important;background:var(--theme-light)!important;box-shadow:inset 0 2px var(--theme-primary)}
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-tabs .mobile-detail-funding [data-detail-funding]{display:none}
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-tabs .mobile-detail-funding-toggle{border-radius:7px;min-width:78px;max-width:96px;height:32px;padding:5px 9px;background:var(--theme-light);border:1px solid var(--theme-line);color:var(--theme-primary);font-weight:600;white-space:nowrap}
}
@media(max-width:720px){
 html[data-member-theme] body.legacy-skin.is-authenticated #dashboard-view>.mobile-detail-tabs:not([hidden]){display:flex!important;align-items:center;justify-content:space-between;gap:10px;background:var(--theme-bg,#edf3f8);padding:7px 10px!important}
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-tabs .mobile-detail-status-tabs{order:0;flex:1;margin:0;gap:2px}
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-tabs .mobile-detail-funding{order:1;flex:none;margin:0}
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-tabs .mobile-detail-funding button{min-width:0;min-height:34px;padding:5px 10px}
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-tabs .mobile-detail-status-tabs a{min-height:28px;padding:5px 9px;white-space:nowrap}
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-tabs .mobile-detail-status-tabs a.is-active{background:var(--theme-light,#e8f1f8)!important;color:var(--theme-primary,#1c6089)!important;box-shadow:inset 0 -2px var(--theme-primary,#1c6089)!important}
 html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-tabs .mobile-detail-funding button[aria-pressed=true]{background:var(--theme-primary,#1c6089);border-color:var(--theme-primary,#1c6089);color:#fff}
}
.mobile-amount-dialog{position:fixed;top:calc(var(--phone-viewport-top,0px) + var(--phone-viewport-height,100dvh)/2);left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);margin:0;width:calc(100% - 32px);max-width:360px;max-height:calc(var(--phone-viewport-height,100dvh) - 32px);box-sizing:border-box;border:0;border-radius:14px;padding:20px;overflow:auto;background:#fff;color:#36546e}
.mobile-amount-dialog::backdrop{background:#17334c88}
.mobile-amount-dialog h2{margin:0 0 8px;font-size:19px}.mobile-amount-dialog p{font-size:13px;line-height:1.5;color:#788da1}
.mobile-amount-dialog label{display:grid;gap:7px;font-size:14px}.mobile-amount-dialog input{width:100%;box-sizing:border-box;min-height:44px;font-size:16px;padding:10px;border:1px solid #c8d9e8;border-radius:7px}
.mobile-amount-dialog form>div{display:flex;gap:10px;margin-top:18px}.mobile-amount-dialog button{flex:1;min-height:44px;border:0;border-radius:7px;background:#2d78b3;color:#fff;font-size:15px}.mobile-amount-dialog .mobile-amount-cancel{background:#edf3f9;color:#627d96}.mobile-amount-dialog .mobile-amount-error{color:#b94f42}
/* Detail switch: make 未结／已结 a clear compact segmented control. */
@media(max-width:720px){
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-tabs:not([hidden]){padding:7px 10px;background:var(--phone-bg,#f7f9fc);border-bottom:1px solid var(--phone-line,#dde5ed)}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-status-tabs{display:flex;gap:3px;padding:3px;border:1px solid var(--phone-line,#dde5ed);border-radius:10px;background:#edf2f7}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-status-tabs a{padding:8px 6px;border-radius:7px;color:#71869a;font-size:13px;line-height:1.2;box-shadow:none}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-status-tabs a.is-active{background:#fff;color:var(--phone-blue,#3477ad);font-weight:700;box-shadow:0 1px 4px rgba(35,76,112,.12)}
  html[data-member-theme] body.legacy-skin.is-authenticated #open .output,html[data-member-theme] body.legacy-skin.is-authenticated #today .output{padding:0 10px 10px;background:var(--phone-bg,#f7f9fc)}
  html[data-member-theme] body.legacy-skin.is-authenticated #today #settled-summary{margin:0 10px 8px;padding:8px 10px;border:1px solid var(--phone-line,#dde5ed);border-radius:8px;background:#fff;color:#6e8295}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-funding{margin-bottom:7px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-funding button{min-width:92px;min-height:31px;font-size:12px}
  html[data-member-theme] body.legacy-skin.is-authenticated .mobile-detail-status-tabs a{min-height:34px;display:grid;place-items:center;font-size:14px}
  html[data-member-theme] body.legacy-skin.is-authenticated #open .phone-record-table>tbody>tr{box-shadow:0 3px 12px rgba(42,73,103,.07);border-radius:11px}
  html[data-member-theme] body.legacy-skin.is-authenticated #open .phone-record-table>tbody>tr>td:nth-child(2){padding:10px 12px!important;font-size:15px}
  html[data-member-theme] body.legacy-skin.is-authenticated #open .phone-record-table>tbody>tr>td:nth-child(3){padding:10px 12px 8px!important;font-size:14px;line-height:1.5}
  html[data-member-theme] body.legacy-skin.is-authenticated #open .phone-record-table>tbody>tr>td:nth-child(4),html[data-member-theme] body.legacy-skin.is-authenticated #open .phone-record-table>tbody>tr>td:nth-child(5){padding:8px 12px 11px!important;font-size:15px;text-align:right}
}
/* Betting header properties match the desktop summary; no view-switching tabs. */
@media(max-width:360px){
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers.race-header-balls .header-draw-ball-row{gap:2px}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers.race-header-balls .header-draw-ball-row>i{width:24px;min-width:24px}
}
@media(max-width:720px){
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card,
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card:has(.race-header-balls){height:auto;min-height:0;grid-template-rows:15px auto;gap:4px}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card #legacy-draw-numbers{height:auto;grid-template-rows:29px auto;gap:4px;overflow:visible}
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card #legacy-draw-numbers .header-draw-properties{display:flex;flex-wrap:wrap;grid-row:2;justify-content:flex-start;align-items:center;gap:4px;height:auto;min-height:21px;margin:0;padding:0;overflow:visible;white-space:normal}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-properties .ssc-result-tag{font-size:12px;line-height:20px;padding:1px 6px;color:#53718b;background:#edf3f9}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-properties .ssc-result-tag-0{color:#946719;background:#fff2d6;font-weight:600}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-properties .ssc-result-tag-1{color:#aa6247;background:#fff0e8}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-properties .ssc-result-tag-2{color:#2e789d;background:#eaf5fc}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-properties .ssc-result-tag-3{color:#43836c;background:#ecf6ef}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers .header-draw-properties .ssc-result-tag-4{color:#776296;background:#f2eef9}
}

/* Mobile HK6 keeps the traditional result details visible: each ball carries
   its zodiac below it, followed by the total/special/wave attribute chips. */
@media(max-width:720px){
  html[data-member-theme] body.legacy-skin.is-authenticated .header-draw-card:has(#legacy-draw-numbers.hk6-header-balls){height:auto;min-height:0;grid-template-rows:15px auto;gap:4px}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers.hk6-header-balls{height:auto;grid-template-rows:48px auto;gap:4px;overflow:visible}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers.hk6-header-balls .header-draw-ball-row{height:48px;align-items:flex-start;gap:5px;overflow:visible}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers.hk6-header-balls .header-draw-ball-row>i{display:flex!important;width:29px;min-width:29px;height:48px;align-items:center;justify-content:flex-start;gap:3px;overflow:visible}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers.hk6-header-balls .header-draw-ball-row>i>small{display:block!important;font-size:10px;line-height:12px;height:12px;color:#526174;white-space:nowrap}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers.hk6-header-balls .header-draw-properties{display:flex!important;grid-row:2;min-height:21px;height:auto;gap:4px;overflow-x:auto;overflow-y:hidden;white-space:nowrap}
  html[data-member-theme] body.legacy-skin.is-authenticated #legacy-draw-numbers.hk6-header-balls .header-draw-properties .ssc-result-tag{display:inline-flex;flex:none;font-size:11px;line-height:19px;padding:1px 6px;border-radius:5px;color:#526174;background:#edf3f9}
}
