/* Keep scrolling available while removing the visible page track. */
html,body,.main-content{scrollbar-width:none}
html::-webkit-scrollbar,body::-webkit-scrollbar,.main-content::-webkit-scrollbar{width:0;height:0;display:none}
.sidebar-edge-toggle{display:none}
/* Keep funding controls neutral and use the account avatar as the header accent. */
.app-header .wallet-header-buttons .deposit-button{background:transparent;border-color:var(--line);color:var(--text);font-weight:400}
.app-header .header-controls .header-avatar{background:var(--accent);border-color:var(--accent);color:var(--bg)}
#play-section #last-label{display:none}
@media(min-width:701px){
 .app-header{height:44px;padding:0 18px}
 .app-header .brand{font-size:18px;gap:7px}
 .app-header .brand img{width:28px;height:28px}
 .app-header .brand-en{font-size:7px;margin-top:3px}
 .app-header .header-controls{gap:8px}
 .app-header .icon-button{padding:4px 7px}
 .app-header .workspace-label{font-size:11px;padding-left:14px;margin-left:10px}
 .app-header .header-avatar{width:28px;height:28px}
 .app-header .wallet-header-buttons button{padding:4px 9px}
 .workspace{height:calc(100dvh - 44px);min-height:0}
 .sidebar{position:relative}
 .sidebar-edge-toggle{display:grid;place-items:center;position:absolute;right:-12px;top:44%;width:24px;height:46px;padding:0;z-index:30;border:1px solid #dfbf7660;border-radius:8px;background:var(--panel);color:var(--accent);box-shadow:0 3px 10px #0004}
 .sidebar-edge-toggle svg{width:14px;height:14px;transition:transform .15s}
 body.sidebar-collapsed .sidebar-edge-toggle svg{transform:rotate(180deg)}
 body.sidebar-collapsed .workspace,body.sidebar-collapsed .workspace:has(#play-section:not([hidden])){grid-template-columns:68px minmax(0,1fr);min-width:0}
 body.sidebar-collapsed:has(#play-section:not([hidden])) .app-header{min-width:0}
 body.sidebar-collapsed .sidebar{padding:18px 8px 12px}
 body.sidebar-collapsed .user-card{justify-content:center;padding:0 0 16px}
 body.sidebar-collapsed .user-copy,body.sidebar-collapsed .member-level,body.sidebar-collapsed .member-benefit-area,body.sidebar-collapsed .nav-label,body.sidebar-collapsed .nav-item>span{display:none}
 body.sidebar-collapsed .nav-item{justify-content:center;gap:0;padding:11px 8px}
 body.sidebar-collapsed .nav-submenu{grid-template-columns:1fr;padding:3px 8px 8px;gap:3px}
 body.sidebar-collapsed .submenu-item{justify-content:center;padding:5px 2px;gap:0}
 body.sidebar-collapsed .submenu-item span,body.sidebar-collapsed .submenu-item small{display:none}
 body.sidebar-collapsed .sidebar-bottom{padding-top:12px}
 body.sidebar-collapsed .account-preview{display:block;border:1px solid #dfbf7640;border-radius:8px;padding:7px 3px;background:linear-gradient(145deg,#26231a,#111315);text-align:center}
 body.sidebar-collapsed .account-preview>div{justify-content:center;font-size:8px;color:var(--accent)}
 body.sidebar-collapsed .account-preview strong{font-size:10px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5;color:var(--accent)}
 body.sidebar-collapsed .account-preview small{display:block;font-size:7px;margin:0}
 body.sidebar-collapsed .sidebar-actions{flex-direction:column;align-items:center;gap:14px}
 body.sidebar-collapsed .sidebar-actions button{font-size:0;gap:0;padding:3px}
 body.sidebar-collapsed .sidebar-actions svg{width:18px;height:18px}
}
.workspace .main-content{--workspace-inset:24px;padding-inline:var(--workspace-inset);padding-bottom:0}
.workspace .main-content .page-trail{display:none}
.workspace .main-content .page-trail>:not(.mobile-balance){display:none}
.main-content .workspace-footer,.main-content:has(#play-section:not([hidden])) .workspace-footer{display:grid;grid-template-columns:1fr minmax(0,auto) 1fr;align-items:center;flex:0 0 auto;min-height:22px;margin:12px 0 0;padding:5px 0;border-top:1px solid var(--line);background:transparent;font-size:9px;gap:12px}
.workspace-footer>span:nth-child(2){justify-self:center;text-align:center;max-width:none}
.workspace-footer>button{justify-self:end;font-size:9px}
#play-section .history-panel.has-workspace-footer{position:relative;padding-bottom:30px;container-type:inline-size;container-name:history-orders}
#play-section .history-panel:has(.current-records:not([hidden])){display:flex;flex-direction:column}
#play-section .history-panel:has(.activity-feed:not([hidden])){display:flex;flex-direction:column;overflow:hidden}
#play-section .history-panel>.panel-heading{flex-shrink:0}
#play-section .history-panel .workspace-footer.panel-footer{position:absolute;bottom:5px;left:10px;right:10px;height:20px;min-height:0;margin:0;padding:4px 0 0;border-top:1px solid var(--line);background:transparent;font-size:8px;gap:6px;line-height:1.3}
#play-section .history-panel .workspace-footer.panel-footer>button{padding:0;font-size:8px;line-height:1.3}
@media(min-width:701px) and (max-width:1100px){.workspace .main-content{--workspace-inset:16px}}
@media(max-width:700px){.app-header{height:48px;padding-inline:12px}.workspace{min-height:calc(100dvh - 48px)}.workspace .main-content{--workspace-inset:12px;min-height:calc(100dvh - 48px)}.main-content .workspace-footer,.main-content:has(#play-section:not([hidden])) .workspace-footer{font-size:8px;gap:6px}}
#play-section .sound-toggle{width:21px;height:21px;padding:3px;background:#ffffff04;color:var(--muted);transform:translateY(-4px);border-color:var(--line)}
#play-section .sound-toggle[aria-pressed=true]{color:var(--muted)}
#play-section .sound-toggle svg{width:14px;height:14px}
#play-section .sound-toggle[data-muted=true]{color:var(--muted);opacity:.6}
@media(min-width:701px){
 #play-section .play-header-shell{grid-template-rows:auto auto;row-gap:4px;min-height:0}
 #play-section .play-header-shell .play-identity,#play-section .play-header-shell .play-tabs{grid-row:1 / span 2;align-self:end}
 #play-section .play-header-shell .play-market-brand{position:static;grid-column:2;grid-row:1;justify-self:end;align-self:end;max-width:250px}
 #play-section .play-header-shell .period-tabs{grid-column:2;grid-row:2;align-self:start}
}
#play-section .table-camera-stage{position:relative}
#play-section .prediction-panel{position:relative}
.table-rules-button{position:absolute;top:7px;right:13px;z-index:8;border:0;background:none;color:var(--accent);font-size:10px;padding:2px 4px;line-height:1.4}
.table-rules-button:hover{text-decoration:underline}
.play-rules-dialog{width:min(520px,calc(100vw - 28px));max-height:80dvh;padding:20px;overflow:auto;border-color:#dfbf7645}
.play-rules-dialog .dialog-header h2{font-size:17px;margin:0;color:var(--accent)}
.play-rules-dialog .play-rules{margin:16px 0 0;border:0;padding:0;font-size:13px;line-height:1.85}
.play-rules-dialog .play-rules>summary{display:none}
.play-rules-dialog .play-rules p{margin:12px 0;color:var(--text);font-size:13px;line-height:1.85}
.play-rules-dialog .dice-source-details{margin:10px 0}
#play-section .result-view-tabs{flex:1;gap:clamp(5px,.7vw,10px);white-space:nowrap;min-width:0}
#play-section .result-view-tabs button{font-size:clamp(9px,.9vw,12px);line-height:1.3}
#play-section .result-view-tabs button[aria-pressed=true]{font-size:clamp(10px,1vw,13px)}
#play-section .result-view-tabs button{position:relative;font-weight:400;display:inline-flex;align-items:center;gap:3px}
#play-section .result-view-tabs button[aria-pressed=true]{font-weight:650}
#play-section .result-tab-icon{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.activity-source-label{margin-left:auto;color:var(--muted);font-size:8px;white-space:nowrap;font-weight:400}
#play-section .activity-feed .activity-track{animation:none;transform:none}
#play-section .activity-feed .activity-viewport{overflow:auto;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-y}
#play-section .activity-feed .activity-viewport::-webkit-scrollbar{display:none}
#play-section .activity-feed .activity-row>.activity-reward{font-size:12px;font-weight:650}
#play-section .result-view-tabs button+button:before{content:"";position:absolute;left:calc(clamp(5px,.7vw,10px)/-2 - 1px);top:15%;height:65%;width:2px;background:#090b0d;box-shadow:inset 1px 0 2px #000b,1px 0 0 #ffffff0b;border-radius:2px}
#pending-orders-tab .order-basket{width:13px;height:13px;vertical-align:-2px;margin-right:3px;stroke-width:1.8}
.orders-count{display:inline-grid;place-items:center;min-width:15px;height:15px;margin-left:3px;padding:0 3px;background:var(--accent);color:#181b1c;border-radius:8px;font-size:9px;font-weight:700;vertical-align:middle}
#play-section .history-panel .current-records{margin:0;padding:0;border:0;min-height:0}
#play-section .history-panel .current-records{height:auto;max-height:none;overflow:visible}
#play-section .history-panel .current-records:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#play-section .history-panel .current-records .panel-heading{margin:4px 0 6px;justify-content:flex-end}
#play-section .history-panel .current-records .panel-heading{flex-shrink:0}
#play-section .history-panel #current-title{display:none}
#play-section .history-panel #current-list{max-height:240px;overflow:auto;font-size:11px}
#play-section .history-panel #current-list{flex:1;height:auto;max-height:228px;min-height:0;line-height:1.4}
.pending-order-row{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr) auto;gap:6px;align-items:center;min-height:36px;padding:5px 0;border-bottom:1px solid var(--line);font-size:10px}
.pending-order-number{font:600 9px/1.3 Consolas,monospace;color:var(--accent);min-width:0;max-width:140px;overflow-wrap:anywhere;white-space:normal}
.pending-order-summary{min-width:0;overflow:visible;white-space:normal;overflow-wrap:anywhere;color:var(--muted);font-size:10px;line-height:1.5}
.pending-order-wager{color:var(--accent);font-weight:750}
.pending-order-game{color:var(--muted)}
.pending-order-cancel{font-size:10px;white-space:nowrap;padding:4px 7px;color:var(--accent);border:1px solid #dfbf7638;border-radius:5px;background:#dfbf7608;min-width:44px}
.pending-order-cancel:hover:not(:disabled){background:#dfbf761c}
.pending-order-cancel:disabled{color:var(--muted);background:transparent;border-color:var(--line);cursor:default;opacity:.7}
@container history-orders (max-width:380px){
 .pending-order-row{gap:5px}
 .pending-order-number{font-size:8px;max-width:115px}
 .pending-order-summary{font-size:9px;line-height:1.4}
 .pending-order-cancel{min-width:40px;padding-inline:5px}
}
#play-section .history-panel .cart-order{padding:8px 0}
#play-section .history-panel .cart-order-head{flex-wrap:wrap;row-gap:3px}
#play-section .history-panel .order-reference{overflow-wrap:anywhere}
#play-section .history-panel .cart-order-detail{white-space:normal;line-height:1.6}
.client-download-link{color:var(--accent);font-size:11px;text-decoration:none;white-space:nowrap}
.client-download-link:hover{text-decoration:underline}
.client-download-group{display:flex;align-items:center;gap:5px}
.client-download-group .client-download-link{border:1px solid #dfbf7628;border-radius:7px;padding:4px 7px;font-size:10px;background:#dfbf7608}
.balance-visibility{display:grid;place-items:center;padding:0;width:20px;height:18px;background:transparent;border:0;color:var(--accent)}
.balance-visibility svg{width:15px;height:15px}
.balance-visibility .eye-slash{display:none}
.balance-hidden .balance-visibility .eye-slash{display:block}
@media(max-width:700px){.pending-order-number{font-size:8px;max-width:122px}}
body.sidebar-collapsed .balance-visibility{width:14px;height:14px}
body.sidebar-collapsed .balance-visibility svg{width:12px;height:12px}
.mobile-balance{display:none}
@media(max-width:700px){.workspace .main-content .page-trail{display:flex;align-items:center;justify-content:flex-end;gap:0;min-height:16px;margin:0 0 6px;font-size:10px}.mobile-balance{display:flex;align-items:center;gap:4px;margin-left:auto;color:var(--accent);white-space:nowrap}.mobile-balance strong{font-size:11px;font-weight:650}.mobile-balance small,.mobile-balance-caption{font-size:8px}.mobile-balance .balance-visibility{width:15px;height:15px}}
@media(max-width:700px){
 #play-section .activity-feed{flex:1;min-height:0;overflow:hidden}
 #play-section .activity-feed .activity-viewport{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
 #play-section .activity-feed .activity-track{animation:none;transform:none}
 #play-section .activity-feed .activity-row{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1fr) auto;gap:7px;white-space:normal;padding:8px 0;line-height:1.5}
 #play-section .activity-feed .activity-row>strong{font-size:10px;min-width:0;overflow-wrap:anywhere}
 #play-section .activity-feed .activity-row>.activity-game{grid-column:auto;font-size:10px;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
 #play-section .activity-feed .activity-row>.activity-reward{font-size:11px;white-space:nowrap;font-weight:650}
 #play-section[data-mobile-view=records] .result-panel,#play-section[data-mobile-view=records] .chart-panel,#play-section[data-mobile-view=records] .table-camera-stage,#play-section[data-mobile-view=records] .prediction-panel{display:none!important}
 #play-section[data-mobile-view=records] .play-primary{display:none!important}
 #play-section[data-mobile-view=records] .play-secondary{display:block!important}
 #play-section[data-mobile-view=records] .history-panel{display:flex!important;flex-direction:column;min-height:220px}
 #play-section[data-mobile-view=records] .history-panel .current-records:not([hidden]){display:flex!important}
 #play-section .mobile-play-views .order-basket{width:12px;height:12px;vertical-align:-2px;margin-right:3px}
 #play-section .mobile-play-views{gap:13px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;padding:2px 0;margin-bottom:9px}
 #play-section .mobile-play-views::-webkit-scrollbar{display:none}
 #play-section .mobile-play-views button{flex:0 0 auto;white-space:nowrap;font-size:10px;padding:5px 0}
 #play-section .history-panel .result-view-tabs{display:none!important}
 #play-section .history-panel>.panel-heading:has(.result-view-tabs){justify-content:flex-end;min-height:0}
}
@media(max-width:700px){.client-download-group .client-download-link{font-size:8px;padding:3px 4px}.table-rules-button{font-size:9px;top:6px}.play-rules-dialog{padding:16px}.play-rules-dialog .play-rules p{font-size:12px}.header-controls .client-download-group{display:flex}}
.login-password-note{color:var(--muted);font-size:11px;line-height:1.6;margin:0 0 12px}
.workspace-footer .footer-connection-status{justify-self:end;display:inline-flex;align-items:center;gap:5px;font-size:9px;line-height:1.3;color:var(--muted);white-space:nowrap}
.workspace-footer .footer-connection-status[data-state=normal]{color:#64bf91}
.footer-connection-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#82909d;flex:none}
.footer-connection-status[data-state=normal] .footer-connection-dot{background:#55a8ed}
.footer-connection-status[data-state=offline]{color:#db8a86}
.footer-connection-status[data-state=offline] .footer-connection-dot{background:#db8a86}
#play-section .result-view-tabs button{font-size:13px}
