:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;color:#19264c;background:#f6f8ff;font-synthesis:none;-webkit-text-size-adjust:100%;font-size:16px;line-height:1.5;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:#f6f8ff}.dashboard{max-width:1040px;margin:auto;padding:28px 28px 22px}.card{background:#fff;border:1px solid #e8ecf7;border-radius:20px;padding:30px 32px;margin-bottom:22px;box-shadow:0 8px 28px rgba(32,57,121,.035)}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}h1,h2,h3,p{margin:0}h1,h2{font-size:25px;font-weight:650;line-height:1.45;letter-spacing:.1px}.period-pill{padding:7px 13px;background:#eff4ff;color:#2563eb;border-radius:9px;font-size:16px;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}.countdown{display:flex;align-items:baseline;justify-content:center;gap:12px;padding:25px 0 30px;font-variant-numeric:tabular-nums;color:#2563eb}.countdown strong{font-size:98px;line-height:1.15;font-weight:650;letter-spacing:-3px}.countdown span{font-size:24px;color:#8a96b4;font-weight:500;margin-right:12px}.countdown span:last-child{margin-right:0}.countdown-meta{display:flex;justify-content:space-between;gap:16px;color:#929bb3;font-size:15px}.countdown-meta b{font-variant-numeric:tabular-nums;color:#7281a3;font-weight:500;margin-left:5px}.progress-track{height:7px;border-radius:9px;background:#edf2ff;overflow:hidden;margin-top:14px}.progress-fill{width:24%;height:100%;border-radius:9px;background:#2563eb}.title-group{display:flex;align-items:center;gap:14px}.latest-period{font-size:16px;color:#7683a3;white-space:nowrap}.draw-time{font-size:16px;color:#929db7;font-variant-numeric:tabular-nums}.result-equation{display:flex;align-items:center;justify-content:center;gap:17px;padding:32px 0 23px;font-variant-numeric:tabular-nums}.number-square{display:grid;place-items:center;flex:0 0 92px;height:96px;background:#fff;border:1px solid #e6eaf5;border-radius:17px;box-shadow:0 5px 12px rgba(25,49,105,.045);color:#2563eb;font-size:58px;font-weight:650;line-height:1;letter-spacing:-1px}.operator{font-size:28px;font-weight:400;color:#aab3c9}.sum-square{color:#f43f43;border-color:#ffe4e7;background:#fff8f8;font-size:54px}.result-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px}.result-note{font-size:15px;color:#96a0b8}.result-tags{display:flex;gap:9px}.result-tags span{display:grid;place-items:center;min-width:40px;height:32px;border-radius:8px;color:#f43f43;background:#fff0f1;font-size:17px;font-weight:600}.bets-overview{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f5f8ff;border:1px solid #edf1fb;border-radius:14px;padding:21px 23px;margin:24px 0 22px}.eyebrow{display:block;color:#8a97b3;font-size:15px;line-height:1.5}.total-amount{font-size:42px;font-weight:650;letter-spacing:-1px;line-height:1.35;color:#2563eb;font-variant-numeric:tabular-nums}.total-amount>span{font-size:28px;letter-spacing:-.3px}.bets-count{display:flex;flex-direction:column;align-items:flex-end;gap:5px;color:#99a3bb;font-size:13px;white-space:nowrap}.bets-count>strong{font-size:26px;color:#314772;font-weight:600;font-variant-numeric:tabular-nums}.bets-count strong span{font-size:15px;font-weight:400;color:#8492af}.ball-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;align-items:start}.ball-summary{border:1px solid #e9edf7;border-radius:13px;padding:17px 15px 13px;background:#fff;min-width:0}.ball-summary-heading{display:flex;align-items:center;gap:7px;white-space:nowrap}.ball-dot{display:grid;place-items:center;flex:0 0 24px;height:24px;background:#edf3ff;color:#2563eb;border-radius:8px;font-size:12px;font-weight:600}.ball-summary h3{font-size:15px;font-weight:550;color:#536488}.row-count{font-size:11px;color:#a2acc0;margin-left:auto}.ball-amount{font-size:28px;color:#263c68;font-weight:600;letter-spacing:-.8px;line-height:1.4;margin-top:14px;font-variant-numeric:tabular-nums}.ball-amount>span{font-size:18px;color:#6e7e9d;font-weight:500}.mini-divider{height:1px;background:#eff2f8;margin:12px 0 6px}.mini-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:37px;font-variant-numeric:tabular-nums}.mini-row>span{display:grid;place-items:center;width:25px;height:25px;background:#f5f7fc;color:#7a88a7;border-radius:7px;font-size:13px}.mini-row>b{font-size:15px;font-weight:500;color:#5b6d90}.finance-primary{padding:23px 0 24px}.win-amount{font-size:60px;line-height:1.4;font-weight:650;letter-spacing:-1.8px;color:#f43f43;font-variant-numeric:tabular-nums;margin-top:5px}.win-amount>span{font-size:43px;letter-spacing:-.8px}.finance-change{font-size:14px;color:#9aa4ba;margin-top:4px;font-variant-numeric:tabular-nums}.change-arrow{color:#f43f43;margin-right:3px;font-size:17px}.finance-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding:22px 0 23px;border-top:1px solid #edf0f8;border-bottom:1px solid #edf0f8}.finance-secondary strong{display:block;font-size:26px;font-weight:600;color:#344970;letter-spacing:-.6px;margin-top:8px;font-variant-numeric:tabular-nums}.finance-footer{display:flex;justify-content:space-between;gap:15px;font-size:13px;color:#a0aac0;padding-top:17px}.preview-note{text-align:center;font-size:12px;color:#a3adc3;padding:5px 12px 12px;line-height:1.8}
@media(min-width:900px){.dashboard{padding:35px 44px}.card{padding:32px 38px}.countdown strong{font-size:108px}.result-equation{gap:26px}.number-square{flex-basis:112px;height:112px;font-size:66px}.sum-square{font-size:62px}.ball-summary{padding:21px 23px 16px}.ball-summary h3{font-size:17px}.row-count{font-size:13px}.mini-row{min-height:40px}.mini-row>b{font-size:16px}}
@media(max-width:600px){.dashboard{padding:18px 15px}.card{padding:23px 20px;margin-bottom:16px;border-radius:18px}h1,h2{font-size:21px}.period-pill{font-size:13px;padding:6px 9px}.countdown{gap:8px;padding:25px 0}.countdown strong{font-size:76px}.countdown span{font-size:19px;margin-right:8px}.countdown-meta{font-size:12px}.title-group{gap:9px}.latest-period,.draw-time{font-size:12px}.result-equation{gap:10px;padding:28px 0 20px}.number-square{flex-basis:66px;height:72px;border-radius:13px;font-size:44px}.sum-square{font-size:40px}.operator{font-size:23px}.result-note{font-size:12px}.result-tags span{height:28px;min-width:34px;font-size:15px}.bets-overview{padding:16px;margin:20px 0 18px}.eyebrow{font-size:13px}.total-amount{font-size:34px}.total-amount>span{font-size:23px}.bets-count{font-size:11px}.bets-count>strong{font-size:23px}.ball-breakdown{gap:8px}.ball-summary{padding:13px 9px 9px}.ball-summary-heading{gap:5px;flex-wrap:wrap}.ball-dot{flex-basis:20px;height:20px;border-radius:6px;font-size:10px}.ball-summary h3{font-size:12px}.row-count{display:none}.ball-amount{font-size:23px;margin-top:10px}.ball-amount>span{font-size:14px}.mini-row{min-height:33px}.mini-row>b{font-size:13px}.mini-row>span{width:21px;height:21px;font-size:11px;border-radius:5px}.finance-primary{padding:21px 0}.win-amount{font-size:46px;letter-spacing:-1.2px}.win-amount>span{font-size:34px}.finance-change{font-size:12px}.finance-secondary{padding:19px 0;gap:16px}.finance-secondary strong{font-size:21px}.finance-footer{font-size:11px;gap:7px}.preview-note{font-size:10px}}
@media(max-width:370px){.card{padding:20px 15px}.card-heading{gap:8px}.result-equation{gap:7px}.number-square{flex-basis:56px;height:63px;font-size:37px}.sum-square{font-size:34px}.operator{font-size:20px}.latest-period{font-size:10px}.draw-time{font-size:10px}.win-amount{font-size:40px}.win-amount>span{font-size:30px}.finance-secondary strong{font-size:18px}}
.login-body{min-height:100svh;background:radial-gradient(ellipse at 18% 5%,#edf2ff 0,transparent 55%),radial-gradient(ellipse at 95% 95%,#eef3ff 0,transparent 45%),#f6f8ff;display:grid;place-items:center;padding:36px 24px}.login-layout{width:min(100%,520px)}.login-card{text-align:center;padding:44px 40px 30px;margin-bottom:18px;box-shadow:0 16px 60px rgba(40,65,130,.06)}.login-mark{display:grid;place-items:center;width:66px;height:66px;border-radius:19px;background:#eff4ff;border:1px solid #e5edff;color:#2563eb;margin:0 auto 23px}.login-mark svg{width:32px;height:32px}.login-card h1{font-size:30px;font-weight:650;letter-spacing:.1px}.login-subtitle{font-size:15px;line-height:1.8;color:#8d99b3;margin:11px 0 32px}.login-form{text-align:left}.login-form label{display:block;font-size:14px;font-weight:500;color:#52658b;margin-bottom:10px}.password-field{display:flex;align-items:center;gap:12px;height:58px;padding:0 16px;background:#fbfcff;border:1px solid #e2e8f5;border-radius:11px}.password-field>svg{width:19px;height:21px;flex:0 0 19px;color:#a0abc3}.password-field input{font:16px -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;border:0;background:transparent;min-width:0;width:100%;outline:0;color:#263b67;padding:0}.password-field input::placeholder{color:#b1bad0;font-size:15px}.password-field:focus-within{border-color:#8fb0ff;box-shadow:0 0 0 3px #2563eb0c}.login-form button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:58px;border:0;border-radius:11px;background:#2563eb;color:white;font:550 17px -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;margin-top:20px;box-shadow:0 5px 13px #2563eb1f;cursor:pointer}.login-form button>span{font-size:21px;font-weight:400}.login-form button:hover{background:#1f58da}.login-privacy{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;color:#a0abc1;margin-top:28px}.login-privacy svg{width:16px;height:18px}.login-body .preview-note{font-size:11px}@media(max-width:600px){.login-body{padding:28px 22px}.login-card{padding:34px 26px 26px;border-radius:20px}.login-card h1{font-size:27px}.login-subtitle{font-size:13px;margin:10px 0 27px}.login-mark{margin-bottom:21px;width:60px;height:60px;border-radius:17px}.login-form label{font-size:13px}.password-field,.login-form button{height:55px}.login-form button{font-size:16px}.password-field input::placeholder{font-size:14px}}
/* Source-matched preview refinement. */
:root{color:#0f172a;background:#f6f8ff}.dashboard{padding:16px;max-width:1040px}.card{border-color:#e2e8f0;border-radius:20px;padding:24px;margin-bottom:18px;box-shadow:0 3px 12px rgba(15,23,42,.025)}h1,h2{font-size:22px;color:#0f172a;letter-spacing:0}.countdown-card h1{color:#64748b;font-size:21px;font-weight:500}.countdown-card .period-pill{padding:0;background:transparent;border-radius:0;color:#64748b;font-size:20px;font-weight:400}.countdown{color:#0f172a;font-size:44px;gap:7px;padding:25px 0 27px}.countdown strong{font-size:44px;line-height:1.3;letter-spacing:0;font-weight:650}.countdown span{font-size:44px;font-weight:650;color:#0f172a;margin-right:5px}.countdown-meta{color:#64748b;font-size:20px}.countdown-meta b{color:#64748b;font-weight:400}.progress-track{height:7px;background:#e2e8f0;margin-top:15px}.progress-fill{background:#2563eb;width:24%}.result-heading p{font-size:20px;color:#64748b;font-weight:400;white-space:nowrap;line-height:1.5}.result-equation{gap:10px;justify-content:flex-start;padding:24px 0 7px}.number-square{flex:0 0 80px;height:88px;border-radius:14px;border:1px solid #e2e8f0;background:#fff;color:#0f172a;font-size:49px;font-weight:650;box-shadow:0 3px 8px #0f172a06;letter-spacing:0}.operator{font-size:25px;color:#64748b;flex:0 0 auto}.sum-square{background:#f43f43;border-color:#f43f43;color:#fff;box-shadow:0 5px 16px #f43f4340;font-size:46px}.kind-square{flex-basis:70px;height:76px;background:#f43f43;border-color:#f43f43;color:#fff;font-size:39px;box-shadow:0 4px 12px #f43f4326}.result-dot{font-size:28px;color:#64748b;line-height:1;flex:0 0 8px;text-align:center}.period-pill{background:#f1f5f9;color:#64748b;border-radius:8px}.eyebrow,.bets-count,.report-date,.finance-change,.finance-footer,.preview-note{color:#64748b}.bets-overview{background:#f8fafc;border-color:#e2e8f0}.total-amount{color:#0f172a}.bets-count>strong,.ball-amount,.finance-secondary strong{color:#0f172a}.ball-summary{border-color:#e2e8f0}.ball-summary h3{color:#475569}.ball-dot{color:#2563eb;background:#eff6ff}.mini-row>span{color:#64748b;background:#f1f5f9}.mini-row>b{color:#475569}.ball-amount>span{color:#64748b}.mini-divider,.finance-secondary{border-color:#e2e8f0}.mini-divider{background:#e2e8f0}.win-amount,.change-arrow{color:#f43f43}.login-body{color:#0f172a}.login-card{padding:44px 40px 30px}.login-card h1{font-size:30px}.login-subtitle,.login-privacy{color:#64748b}
@media(min-width:900px){.dashboard{padding:22px 24px}.card{padding:27px 30px}.result-equation{gap:16px}.number-square{flex-basis:103px;height:108px;font-size:60px}.kind-square{flex-basis:90px;height:96px;font-size:48px}.sum-square{font-size:56px}.countdown strong,.countdown span{font-size:44px}.ball-summary{padding:21px 23px 16px}}
@media(max-width:700px){.card{padding:20px}.countdown-card h1,h1,h2{font-size:20px}.countdown-card .period-pill,.countdown-meta{font-size:17px}.result-heading p{font-size:17px}.result-equation{gap:8px}.number-square{flex-basis:65px;height:73px;font-size:42px;border-radius:12px}.sum-square{font-size:40px}.kind-square{flex-basis:55px;height:63px;font-size:32px}.operator{font-size:21px}.result-dot{font-size:24px;flex-basis:6px}.countdown strong,.countdown span{font-size:44px}.login-card{padding:34px 26px 26px}}
@media(max-width:520px){.dashboard{padding:14px}.card{padding:17px;margin-bottom:15px}.countdown-card h1,h1,h2{font-size:18px}.countdown-card .period-pill{font-size:15px}.countdown-meta{font-size:14px}.result-heading p{font-size:15px}.result-equation{gap:6px;justify-content:space-between;padding:21px 0 5px}.number-square{flex-basis:45px;height:53px;font-size:30px;border-radius:9px}.sum-square{font-size:28px}.kind-square{flex-basis:38px;height:46px;font-size:25px}.operator{font-size:18px}.result-dot{font-size:20px;flex-basis:4px}.countdown{padding:23px 0}.countdown strong,.countdown span{font-size:44px}.finance-secondary strong{font-size:20px}.login-card{padding:34px 26px 26px}}
@media(max-width:380px){.dashboard{padding:12px}.card{padding:15px}.result-equation{gap:4px}.number-square{flex-basis:38px;height:47px;font-size:27px}.sum-square{font-size:25px}.kind-square{flex-basis:34px;height:43px;font-size:23px}.operator{font-size:16px}.result-heading p{font-size:14px}.countdown-card .period-pill{font-size:13px}.countdown-meta{font-size:12px}.finance-secondary strong{font-size:18px}}
@media(min-width:701px) and (max-width:899px){.number-square{flex-basis:90px;height:96px;font-size:55px}.sum-square{font-size:51px}.kind-square{flex-basis:80px;height:88px;font-size:43px}}
[hidden]{display:none!important}.result-heading{position:relative;gap:10px;flex-wrap:wrap}.result-heading p{flex:1;min-width:0}.result-controls{display:flex;align-items:center;gap:7px;margin-left:auto}.mipai-button,.settings-button{display:flex;align-items:center;justify-content:center;height:34px;border:1px solid #e2e8f0;background:#fff;color:#64748b;border-radius:8px;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}.mipai-button{padding:0 12px}.mipai-button[aria-pressed=true]{background:#eff6ff;color:#2563eb;border-color:#bfdbfe}.settings-button{width:34px;padding:7px}.settings-button svg{width:20px;height:20px}.settings-menu{position:absolute;right:0;top:44px;z-index:5;width:216px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 10px 35px #0f172a1a;padding:6px 15px}.settings-menu label{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:45px;color:#334155;font-size:15px;cursor:pointer}.settings-menu input{appearance:none;-webkit-appearance:none;position:relative;width:35px;height:21px;flex:0 0 35px;margin:0;border:0;border-radius:20px;background:#cbd5e1;cursor:pointer;transition:background .15s}.settings-menu input::before{content:"";position:absolute;left:3px;top:3px;height:15px;width:15px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}.settings-menu input:checked{background:#2563eb}.settings-menu input:checked::before{transform:translateX(14px)}.result-stage{position:relative;min-height:110px;margin-top:0}.scratch-cover{position:absolute;inset:8px 0 0;width:100%;height:calc(100% - 8px);border-radius:13px;z-index:2;touch-action:none;cursor:grab}.scratch-cover:active{cursor:grabbing}.sum-square,.kind-square{background:#ef4444;border-color:#ef4444;box-shadow:0 5px 16px #ef444440}.blue-square{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 5px 16px #2563eb30}.pattern-badge{display:table;margin:8px auto 1px;padding:5px 14px;border-radius:8px;background:#10b981;color:white;font-size:15px;font-weight:600}.draw-history{margin-top:24px;border-top:1px solid #e2e8f0}.draw-history summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0 2px;list-style:none;cursor:pointer;font-size:17px;color:#334155;font-weight:500}.draw-history summary::-webkit-details-marker{display:none}.history-date{display:flex;align-items:center;gap:10px;font-size:14px;color:#94a3b8;font-weight:400}.history-date svg{height:16px;width:16px;transition:transform .15s}.draw-history[open] .history-date svg{transform:rotate(180deg)}.history-table-wrap{overflow-x:auto;margin-top:16px}.draw-history table{width:100%;border-collapse:collapse;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:14px}.draw-history th{font-weight:400;background:#f8fafc;color:#94a3b8;font-size:13px;padding:12px 7px;border-bottom:1px solid #e2e8f0}.draw-history td{padding:15px 7px;border-bottom:1px solid #f1f5f9;color:#475569}.draw-history tr:last-child td{border-bottom:0}.draw-history td button{font:inherit;background:transparent;border:0;padding:0;color:#64748b;cursor:pointer}.draw-history tr[data-preview-period]{cursor:pointer}.draw-history tr[data-preview-period]:hover{background:#f8fafc}.draw-history td.history-red{color:#ef4444;font-weight:650}.draw-history td.history-blue{color:#2563eb;font-weight:650}.history-tag{display:inline-grid;place-items:center;min-width:27px;height:25px;background:#ef4444;color:white;border-radius:5px;margin:0 2px;font-size:13px;font-weight:550}.history-tag.blue-tag{background:#2563eb}.ad-placeholder{display:grid;place-items:center;min-height:85px;color:#94a3b8;background:#f1f5f9;border:1px dashed #cbd5e1;border-radius:12px;font-size:13px;margin-bottom:18px}.progress-fill{transition:width 1s linear}
@media(max-width:700px){.result-heading p{font-size:16px}.mipai-button{font-size:12px;height:30px;padding:0 9px}.settings-button{height:30px;width:30px;padding:6px}.result-controls{gap:5px}.draw-history summary{font-size:16px}.draw-history table{font-size:13px}.draw-history th{font-size:12px}.history-date{font-size:12px}}
@media(max-width:520px){.result-heading p{font-size:13px}.mipai-button{height:27px;font-size:11px;padding:0 7px}.settings-button{height:27px;width:27px;padding:5px}.result-controls{gap:4px}.result-heading{gap:5px}.result-stage{min-height:85px}.draw-history{margin-top:17px}.draw-history summary{font-size:14px}.history-date{font-size:11px;gap:5px}.draw-history table{font-size:11px}.draw-history th{font-size:10px;padding:10px 5px}.draw-history td{padding:12px 5px}.history-tag{min-width:21px;height:22px;font-size:11px;margin:0 1px}.settings-menu{top:37px;width:203px}}
.countdown{min-height:109px;align-items:center;font-weight:650;line-height:1.3;letter-spacing:0;white-space:nowrap}.progress-fill{width:0}.result-heading p{white-space:normal}.section-state{font-size:12px;line-height:1.8;color:#64748b;margin:12px 0 0}.section-state.is-warning{color:#a16207}.bets-card>.section-state{margin:-8px 0 15px}.finance-card>.section-state{margin-top:12px}.ball-number-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:14px}.ball-number-table th{font-size:11px;color:#94a3b8;font-weight:400;text-align:center;padding:0 0 8px}.ball-number-table th:first-child,.ball-number-table td:first-child{text-align:left}.ball-number-table th:last-child,.ball-number-table td:last-child{text-align:right}.ball-number-table td{padding:8px 0;color:#475569;text-align:center;border-top:1px solid #f1f5f9}.ball-number-table .number-count{font-size:11px;color:#94a3b8}.number-chip{display:inline-grid;place-items:center;width:25px;height:25px;background:#f1f5f9;color:#64748b;border-radius:7px;font-size:13px}.negative{color:#2563eb!important}.history-table-wrap{max-height:70svh;overflow:auto}.draw-history th{position:sticky;top:0;z-index:1}.ball-amount{font-size:26px;letter-spacing:-.6px;overflow-wrap:anywhere}.report-date{font-size:14px;white-space:nowrap}.total-amount,.win-amount{overflow-wrap:anywhere}.win-amount{line-height:1.4}.finance-secondary strong{overflow-wrap:anywhere}.card{min-width:0}.ball-breakdown{align-items:start}.result-stage{min-height:0}.result-equation{min-height:110px}.scratch-cover{inset:8px 0 0;height:calc(100% - 8px)}button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #93b4fb;outline-offset:3px}
@media(max-width:700px){.report-date{font-size:12px}.ball-amount{font-size:22px}.ball-number-table{font-size:12px}.ball-number-table th{font-size:10px}.result-equation{min-height:97px}}
@media(max-width:520px){.countdown{min-height:103px;font-size:44px}.report-date{font-size:11px}.ball-amount{font-size:18px}.ball-number-table{font-size:11px}.ball-number-table th{font-size:9px}.ball-number-table .number-count{font-size:9px}.number-chip{width:20px;height:21px;font-size:11px}.result-equation{min-height:78px}.section-state{font-size:11px}.win-amount{font-size:43px}.total-amount{font-size:32px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Keep the four live values together on a phone-sized first screen. */
.dashboard{width:100%;max-width:860px;padding:14px 16px 24px;overflow-wrap:break-word}
.dashboard .card{padding:18px 20px;margin-bottom:12px;border-radius:18px}
.dashboard .card-heading{gap:10px;min-width:0}
.dashboard h1,.dashboard h2{font-size:18px;line-height:1.4}
.dashboard .period-pill{max-width:65%;font-size:12px;padding:5px 8px;overflow:hidden;text-overflow:ellipsis}
.dashboard .section-state{margin-top:8px;font-size:11px;line-height:1.6}
.dashboard .finance-card .card-heading{align-items:center}
.multiplier-pill{display:inline-flex;align-items:center;justify-content:center;min-width:36px;padding:3px 9px;border-radius:7px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.dashboard .win-amount{font-size:48px;line-height:1.2;letter-spacing:-1.4px;font-weight:650;margin:3px 0 10px;overflow-wrap:anywhere}
.multiplier-controls{display:flex;align-items:center;gap:12px;min-width:0;min-height:32px;color:#64748b;font-size:12px}
.multiplier-controls>label{flex:0 0 auto}
.multiplier-controls>input[type=range]{flex:1;min-width:0;width:100%;height:24px;margin:0;accent-color:#2563eb;cursor:pointer}
.multiplier-number{display:flex;align-items:center;gap:3px;height:32px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:0 8px 0 3px;color:#64748b}
.multiplier-number input{width:46px;min-width:0;border:0;padding:3px 2px;font:inherit;font-size:13px;font-weight:550;text-align:right;color:#334155;background:transparent;outline:0;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
.multiplier-number input::-webkit-inner-spin-button,.multiplier-number input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.dashboard .finance-card>.section-state{margin:7px 0 0}
.dashboard .countdown-card{padding-top:14px;padding-bottom:14px}
.dashboard .countdown-card h1{color:#64748b;font-weight:500}
.dashboard .countdown-card .period-pill{padding:0;background:transparent;color:#64748b;font-size:14px;font-weight:400}
.dashboard .countdown{min-height:0;padding:5px 0 6px;gap:4px;font-size:36px;font-weight:650;line-height:1.25}
.dashboard .countdown strong,.dashboard .countdown span{font-size:36px;line-height:1.25;margin:0;letter-spacing:0;color:#0f172a}
.dashboard .countdown-meta{gap:8px;font-size:12px;line-height:1.5;color:#64748b}
.dashboard .countdown-meta b{margin-left:2px;white-space:nowrap}
.dashboard .progress-track{height:5px;margin-top:8px}
.dashboard .result-heading{flex-wrap:nowrap;gap:8px}
.dashboard .result-heading p{flex:1;font-size:14px;font-weight:500;line-height:1.4;min-width:0}
.dashboard .result-controls{flex:0 0 auto;gap:5px}
.dashboard .mipai-button{height:30px;padding:0 9px;font-size:12px}
.dashboard .settings-button{width:30px;height:30px;padding:6px}
.dashboard .settings-menu{top:38px;width:190px;padding:5px 13px}
.dashboard .settings-menu label{min-height:43px;font-size:14px}
.dashboard .result-stage{position:relative;width:100%;max-width:100%;min-width:0;min-height:0;margin-top:12px;border-radius:12px;overflow:hidden;isolation:isolate}
.dashboard .result-equation{display:grid;grid-template-columns:minmax(0,1fr) 13px minmax(0,1fr) 13px minmax(0,1fr) 13px minmax(0,1fr) 5px minmax(0,.92fr) minmax(0,.92fr);align-items:center;justify-content:normal;gap:7px;width:100%;max-width:100%;min-width:0;min-height:0;margin:0;padding:2px 0 7px}
.dashboard .result-equation.combined-off{grid-template-columns:minmax(0,1fr) 13px minmax(0,1fr) 13px minmax(0,1fr) 13px minmax(0,1fr)}
.dashboard .number-square{width:100%;min-width:0;height:80px;flex:none;max-width:100%;font-size:48px;border-radius:12px;letter-spacing:0}
.dashboard .sum-square{font-size:45px}
.dashboard .kind-square{height:80px;font-size:42px}
.dashboard .operator,.dashboard .result-dot{display:block;min-width:0;width:100%;font-size:22px;line-height:1;text-align:center}
.dashboard .scratch-cover{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:100%;min-width:0;margin:0;border:0;border-radius:0;z-index:2;touch-action:none}
.dashboard .draw-history{margin-top:9px}
.dashboard .draw-history summary{padding:10px 0 0;font-size:13px;line-height:1.4}
.dashboard .history-date{font-size:11px;gap:6px}
.dashboard .history-table-wrap{margin-top:12px}
.dashboard .bets-card .bets-overview-controls{align-items:center}
.dashboard .bets-overview{padding:12px 14px;margin:10px 0 8px;gap:12px}
.dashboard .total-amount{font-size:36px;line-height:1.15;letter-spacing:-.8px}
.dashboard .bets-count{gap:2px;font-size:10px;line-height:1.5}
.dashboard .bets-count>strong{font-size:21px;line-height:1.3}
.dashboard .bets-card>.section-state{margin:0;font-size:11px;line-height:1.55}
.bet-details{margin-top:9px;border-top:1px solid #e2e8f0}
.bet-details summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0 0;color:#475569;font-size:13px;font-weight:500;line-height:1.4;list-style:none;cursor:pointer}
.bet-details summary::-webkit-details-marker{display:none}
.bet-details summary svg{width:15px;height:15px;color:#94a3b8;transition:transform .15s}
.bet-details[open] summary svg{transform:rotate(180deg)}
.bet-details .ball-breakdown{margin-top:12px}
@media(min-width:700px){.dashboard .card{padding:20px 24px}.dashboard .countdown-card{padding-top:15px;padding-bottom:15px}.dashboard .finance-card{display:grid;grid-template-columns:1fr 1fr;column-gap:30px;align-items:center}.dashboard .finance-card>.card-heading{grid-column:1;grid-row:1}.dashboard .finance-card .win-amount{grid-column:1;grid-row:2;margin-bottom:0}.dashboard .finance-card .multiplier-controls{grid-column:2;grid-row:1/3}.dashboard .finance-card>.section-state{grid-column:1/-1}.dashboard .countdown{padding-top:1px;padding-bottom:4px}.dashboard .number-square,.dashboard .kind-square{height:86px}}
@media(max-width:520px){
.dashboard{padding:10px 10px 20px}
.dashboard .card{padding:13px 14px;margin-bottom:10px;border-radius:16px}
.dashboard h1,.dashboard h2{font-size:16px}
.dashboard .win-amount{font-size:40px;line-height:1.18;margin:2px 0 7px;letter-spacing:-1px}
.multiplier-controls{min-height:30px;gap:9px;font-size:11px}
.multiplier-number{height:30px;border-radius:7px}
.multiplier-number input{width:41px;font-size:12px}
.multiplier-pill{padding:2px 7px;font-size:11px;min-width:32px}
.dashboard .countdown-card{padding-top:11px;padding-bottom:11px}
.dashboard .countdown-card h1{font-size:15px}
.dashboard .countdown-card .period-pill{font-size:12px}
.dashboard .countdown{padding:3px 0 4px;font-size:31px;line-height:1.2}
.dashboard .countdown strong,.dashboard .countdown span{font-size:31px;line-height:1.2}
.dashboard .countdown-meta{font-size:10px}
.dashboard .progress-track{height:4px;margin-top:7px}
.dashboard .result-heading p{font-size:11px;line-height:1.5}
.dashboard .result-heading{gap:5px}
.dashboard .result-controls{gap:4px}
.dashboard .mipai-button{height:26px;padding:0 7px;font-size:11px}
.dashboard .settings-button{width:26px;height:26px;padding:5px}
.dashboard .settings-menu{top:33px}
.dashboard .result-stage{margin-top:10px;border-radius:10px}
.dashboard .result-equation{grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) 10px minmax(0,1fr) 10px minmax(0,1fr) 4px minmax(0,.92fr) minmax(0,.92fr);gap:4px;padding:2px 0 6px}
.dashboard .result-equation.combined-off{grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) 10px minmax(0,1fr) 10px minmax(0,1fr)}
.dashboard .number-square,.dashboard .kind-square{height:51px;border-radius:8px;font-size:31px}
.dashboard .sum-square{font-size:29px}
.dashboard .kind-square{font-size:28px}
.dashboard .operator,.dashboard .result-dot{font-size:17px}
.dashboard .draw-history{margin-top:7px}
.dashboard .draw-history summary{padding-top:8px;font-size:12px}
.dashboard .history-date{font-size:10px}
.dashboard .period-pill{font-size:10px;padding:4px 7px}
.dashboard .bets-overview{padding:10px 12px;margin-top:9px;margin-bottom:7px}
.dashboard .total-amount{font-size:32px;line-height:1.2}
.dashboard .bets-count>strong{font-size:18px}
.dashboard .bets-count{font-size:9px}
.dashboard .bets-card>.section-state{font-size:10px;line-height:1.5}
.bet-details{margin-top:8px}
.bet-details summary{font-size:12px;padding-top:8px}
.dashboard .section-state{font-size:10px}
}
@media(max-width:350px){.dashboard{padding:8px}.dashboard .card{padding:12px}.dashboard .result-heading p{font-size:10px}.dashboard .number-square,.dashboard .kind-square{height:44px;font-size:27px}.dashboard .kind-square{font-size:24px}.dashboard .sum-square{font-size:26px}.dashboard .result-equation{gap:3px}.dashboard .operator,.dashboard .result-dot{font-size:15px}.dashboard .win-amount{font-size:36px}.dashboard .total-amount{font-size:29px}.dashboard .history-date{font-size:9px}.dashboard .card-heading{gap:7px}}
/* Keep synchronization announcements accessible without moving the live values. */
.dashboard #settled-state,.dashboard #draw-source-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
/* Center the primary daily result across the full finance card. */
.dashboard .finance-card>.win-amount{width:100%;text-align:center}
@media(min-width:700px){.dashboard .finance-card{display:block}.dashboard .finance-card>.card-heading{width:100%}.dashboard .finance-card .win-amount{margin-bottom:10px}.dashboard .finance-card .multiplier-controls{max-width:560px;margin:0 auto}}
.dashboard .ball-number-table .number-chip{width:28px;height:29px;border:1px solid #b7d0ff;background:#e9f1ff;color:#1252e8;border-radius:8px;font-size:15px;font-weight:700;box-shadow:0 2px 7px #2563eb16}
@media(max-width:350px){.dashboard .ball-number-table .number-chip{width:24px;height:26px;font-size:14px}}
.hand-level{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:3px 7px;margin-left:auto;border:1px solid #c7d7fe;border-radius:6px;background:#eff5ff;color:#1d4ed8;font-size:11px;font-weight:650;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.ball-summary-heading .hand-level{flex:0 0 100%;justify-content:flex-start;width:max-content;margin:3px 0 0;padding:3px 6px;font-size:11px}}

.dashboard{min-height:100svh;display:flex;flex-direction:column;padding-top:12px}.dashboard>.card{flex-shrink:0;margin-bottom:12px}.dashboard>.bets-card{flex-grow:1}
@media(min-height:740px){.dashboard{padding-top:18px}.dashboard>.card{margin-bottom:14px}}
.multiplier-number{height:34px;padding:0 7px;background:#fff;border-color:#cbd9f0}.multiplier-number:focus-within{border-color:#6c9bff;box-shadow:0 0 0 3px #2563eb12}.multiplier-number input{width:56px;font-size:14px;line-height:1.3;padding:4px 1px;text-align:center}.multiplier-save{flex:0 0 auto;min-width:48px;height:34px;padding:0 10px;border:0;border-radius:7px;background:#2563eb;color:#fff;font:550 12px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;cursor:pointer}.multiplier-save:hover{background:#1d4ed8}.multiplier-state.is-warning{color:#b45309}
.previous-win-row{display:flex;align-items:center;justify-content:center;gap:8px;min-height:18px;margin:-2px 0 8px;color:#64748b;font-size:12px;line-height:1.5}
#previous-net{font-variant-numeric:tabular-nums;font-weight:600;color:#ef4444}
.hand-base-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px;color:#64748b;font-size:12px}
.hand-base-number{display:flex;align-items:center;gap:4px;width:90px;height:32px;min-width:0;border:1px solid #cbd9f0;border-radius:7px;background:#fff;padding:4px 7px;color:#334155;text-align:center;font:550 13px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-variant-numeric:tabular-nums}
.hand-base-number input{width:100%;min-width:0;border:0;background:transparent;padding:0;color:inherit;text-align:center;font:inherit;outline:0}
.hand-base-number:focus-within{border-color:#6c9bff;box-shadow:0 0 0 3px #2563eb12}
.hand-base-save{height:32px;min-width:48px;padding:0 10px;border:0;border-radius:7px;background:#2563eb;color:#fff;font:550 12px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;cursor:pointer}
#hand-base-state{margin:0 0 10px}
.win-masked{filter:blur(6px);opacity:.65;user-select:none;-webkit-user-select:none;pointer-events:none}
#previous-net.win-masked{filter:blur(4px)}
.ball-summary.is-highest-ball{border-color:#fecaca;background:#fffafa}
.ball-summary.is-highest-ball .ball-summary-heading h3,.ball-amount.is-highest-amount,.ball-number-table td.is-highest-amount{color:#ef4444}
.ball-summary.is-highest-ball .ball-dot{background:#fee2e2;color:#dc2626}
.dashboard .draw-ball.number-green,.dashboard .draw-history .history-number.number-green{background:#e9fbf1;border-color:#9ce1bc;color:#11834c;box-shadow:0 2px 7px #16a34a16}
.dashboard .draw-ball.number-blue,.dashboard .draw-history .history-number.number-blue{background:#e9f1ff;border-color:#b7d0ff;color:#1252e8;box-shadow:0 2px 7px #2563eb16}
.dashboard .draw-ball.number-red,.dashboard .draw-history .history-number.number-red{background:#fff0f0;border-color:#ffbcbc;color:#d92d35;box-shadow:0 2px 7px #ef444416}
.dashboard .draw-ball.number-yellow,.dashboard .draw-history .history-number.number-yellow{background:#fff6d5;border-color:#ebce76;color:#956400;box-shadow:0 2px 7px #d69a0d16}
.dashboard .draw-history .history-number{display:inline-block;min-width:17px;border:1px solid transparent;border-radius:5px;padding:1px 3px;line-height:1.4;font-weight:650}
.dashboard .ball-number-table .number-chip.is-highest-number{border-color:#ef4444;background:#ef4444;color:#fff;box-shadow:0 2px 7px #ef444426}
.dashboard .result-equation.is-opening .number-square{background:#e2e8f0;border-color:#cbd5e1;color:#64748b;box-shadow:none}
.dashboard .result-equation.scratch-active .number-square:not(.scratch-revealed){background:#e2e8f0;border-color:#cbd5e1;box-shadow:none}
.bets-view-tabs{display:flex;gap:6px;margin-top:12px;padding:3px;width:max-content;max-width:100%;border-radius:9px;background:#f1f5f9}
.bets-view-tab{min-height:30px;padding:5px 12px;border:0;border-radius:6px;background:transparent;color:#64748b;font:550 12px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;cursor:pointer;white-space:nowrap}
.bets-view-tab.is-active{background:#fff;color:#2563eb;box-shadow:0 1px 4px #0f172a12}
.bets-view-tab:focus-visible{outline:2px solid #6c9bff;outline-offset:2px}
#bets-view-state{margin-top:10px;margin-bottom:0}
#bets-view-state.is-loading{display:flex;align-items:center;justify-content:center;min-height:112px;border-top:1px solid #e2e8f0;text-align:center;color:#64748b;font-size:13px}
#bets-view-state.is-loading+.bet-details{border-top:0;margin-top:0}
.win-stale{opacity:.7}
.bet-details>summary{display:none}
.dashboard .bets-overview{position:relative}
.bets-waiting-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:calc(100% - 112px);color:#64748b;font-size:clamp(11px,3.8vw,15px);font-weight:550;line-height:1.5;white-space:nowrap;text-align:center;pointer-events:none}
.dashboard .bets-overview.is-waiting .total-amount{max-width:22%}
.dashboard .bets-overview.is-waiting .bets-count{max-width:26%}
@media(max-width:350px){.bets-waiting-hint{max-width:calc(100% - 96px);font-size:11px}}

/* Preview only: two compact summaries, with shared multiplier controls. */
.dashboard .top-summary-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;flex-shrink:0;padding:14px 16px}
.dashboard .top-summary-row>.card{display:block;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;min-width:0}
.dashboard .top-summary-row .finance-card{padding-right:4px}
.dashboard .top-summary-row .countdown-card{border-left:1px solid #e2e8f0;padding-left:12px}
.dashboard .top-summary-row h1,.dashboard .top-summary-row h2{font-size:14px;line-height:1.4}
.dashboard .top-summary-row .win-amount{font-size:clamp(20px,5.7vw,32px);line-height:1.15;letter-spacing:-.7px;margin:10px 0 5px;overflow-wrap:anywhere;text-align:center}
.dashboard .top-summary-row .previous-win-row{font-size:10px;gap:5px;line-height:1.4;margin:0;flex-wrap:wrap}
.dashboard .top-summary-row .multiplier-pill{min-width:24px;padding:2px 5px;font-size:10px}
.dashboard .top-summary-row .countdown-card .card-heading{display:flex;flex-direction:column;align-items:center;gap:3px}
.dashboard .top-summary-row .countdown-card h1{font-size:13px}
.dashboard .top-summary-row .countdown-card .period-pill{max-width:100%;padding:0;font-size:10px;line-height:1.4}
.dashboard .top-summary-row .countdown{font-size:clamp(22px,6vw,32px);line-height:1.2;padding:5px 0;letter-spacing:-.6px}
.dashboard .top-summary-row .countdown-meta{justify-content:center;font-size:9px;line-height:1.5;gap:0}
.dashboard .top-summary-row .countdown-meta>span:first-child{display:none}
.dashboard .top-summary-row .progress-track{margin-top:5px;height:3px}
.summary-multiplier{grid-column:1/-1;min-width:0;padding-top:9px;margin-top:10px;border-top:1px solid #edf1f7}
.summary-multiplier .multiplier-controls{max-width:none;margin:0;gap:8px;min-height:28px;font-size:11px}
.summary-multiplier .multiplier-number{height:28px;padding:0 5px;border-radius:6px}
.summary-multiplier .multiplier-number input{width:40px;font-size:12px}
.summary-multiplier .multiplier-save{height:28px;min-width:44px;padding:0 9px;font-size:11px}
.dashboard .bets-card .bets-overview-controls{gap:7px;flex-wrap:nowrap}
.dashboard .bets-card .hand-base-controls{margin:0;gap:5px;flex-wrap:nowrap;font-size:11px;white-space:nowrap}
.dashboard .bets-card .hand-base-number{width:68px;height:28px;padding:3px 5px;gap:3px;font-size:12px}
.dashboard .bets-card .hand-base-save{height:28px;min-width:40px;padding:0 8px;font-size:11px}
.dashboard .bets-card #bet-period{display:none}
@media(max-width:520px){
.dashboard .top-summary-row{padding:12px;gap:0 10px}
.dashboard .top-summary-row .countdown-card{padding-left:10px}
.dashboard .bets-card .bets-overview-controls h2{font-size:15px}
.dashboard .ball-number-table td{padding:3px 0}
.dashboard .ball-number-table .number-chip{width:25px;height:25px;font-size:14px}
.dashboard .ball-amount{font-size:21px;margin-top:7px}
.dashboard .ball-summary{padding:11px 9px}
.dashboard .ball-number-table th{padding-bottom:6px}
.dashboard .ball-summary .mini-divider{margin:8px 0}
}
@media(max-width:350px){
.dashboard .top-summary-row{padding:10px;gap:0 8px}
.dashboard .top-summary-row .countdown-card{padding-left:8px}
.dashboard .top-summary-row h2{font-size:12px}
.dashboard .top-summary-row .countdown-card h1{font-size:12px}
.dashboard .top-summary-row .win-amount{font-size:19px}
.dashboard .top-summary-row .countdown{font-size:22px}
.dashboard .bets-card .bets-overview-controls h2{font-size:14px}
.dashboard .bets-card .hand-base-controls{gap:4px;font-size:10px}
.dashboard .bets-card .hand-base-number{width:60px}
.dashboard .bets-card .hand-base-save{min-width:36px;padding:0 6px;font-size:10px}
}

/* Preview revision: input-only multiplier, header tabs and compact number rows. */
.dashboard .top-summary-row .finance-card .multiplier-controls{justify-content:center;gap:4px;min-height:26px;margin:7px 0 0;flex-wrap:nowrap;font-size:10px}
.dashboard .top-summary-row .finance-card .multiplier-number{width:60px;height:26px;padding:0 4px;gap:2px;border-radius:6px;flex:0 0 auto}
.dashboard .top-summary-row .finance-card .multiplier-number input{width:100%;font-size:12px;padding:1px 0;text-align:center}
.dashboard .top-summary-row .finance-card .multiplier-save{height:26px;min-width:36px;padding:0 6px;font-size:10px;border-radius:6px}
.dashboard .top-summary-row .countdown-card{display:flex;flex-direction:column;justify-content:center}
.dashboard .top-summary-row .countdown{padding:7px 0;font-size:clamp(24px,6.5vw,34px)}
.dashboard .bets-card .bets-overview-controls .bets-view-tabs{margin:0;padding:2px;gap:3px;border-radius:8px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab{min-height:27px;padding:4px 7px;font-size:11px;line-height:1.4}
.dashboard .bets-amount-block{min-width:0}
.dashboard .bets-amount-block>h2{font-size:11px;font-weight:500;color:#64748b;line-height:1.4;margin:0 0 3px}
@media(max-width:520px){
.dashboard .top-summary-row{padding:11px 12px}
.dashboard .top-summary-row .win-amount{margin-top:8px;margin-bottom:4px}
.dashboard .top-summary-row .previous-win-row{font-size:9px}
.dashboard .bets-overview{padding:9px 11px;margin-top:9px;margin-bottom:7px}
.dashboard .bets-overview .total-amount{font-size:29px;line-height:1.15}
.dashboard .bets-amount-block>h2{font-size:10px}
.dashboard .unsettled-group>.card-heading h3{font-size:12px!important;line-height:1.4}
.dashboard .unsettled-group>.card-heading .period-pill{font-size:9px!important;padding:3px 5px}
.dashboard .unsettled-group>.section-state{margin-bottom:7px!important;font-size:10px}
.dashboard .bet-details .ball-breakdown{margin-top:6px}
.dashboard .ball-summary{padding:9px 7px}
.dashboard .ball-summary-heading{gap:3px}
.dashboard .ball-summary-heading .ball-dot{width:17px;height:17px;flex-basis:17px;border-radius:5px;font-size:10px}
.dashboard .ball-summary-heading h3{font-size:11px}
.dashboard .ball-summary-heading .hand-level{font-size:9px;line-height:1.3;padding:1px 4px;margin-top:2px}
.dashboard .ball-amount{font-size:20px;line-height:1.1;margin-top:5px}
.dashboard .ball-summary .mini-divider{margin:6px 0}
.dashboard .ball-number-table{font-size:12px}
.dashboard .ball-number-table th{font-size:9px;padding-bottom:4px}
.dashboard .ball-number-table td{padding:2px 0}
.dashboard .ball-number-table .number-chip{width:22px;height:22px;font-size:13px;border-radius:6px}
}
@media(max-width:350px){
.dashboard .top-summary-row .win-amount{font-size:18px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab{padding:4px 6px;font-size:10px}
.dashboard .bets-card .hand-base-controls{font-size:10px}
.dashboard .bets-overview .total-amount{font-size:26px}
}

.dashboard .top-summary-row .finance-card>.card-heading{justify-content:center}
@media(max-width:520px){.dashboard .ball-amount{font-size:clamp(14px,4.4vw,18px);line-height:1.15}}

/* Preview: amount and its starting value on the left, period selection on the right. */
.dashboard .bets-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:0;padding:12px}
.bets-amount-side{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
.dashboard .bets-amount-block{width:100%;min-width:0;position:relative;text-align:center}
.dashboard .bets-card .hand-base-controls{justify-content:center;margin:0;flex-wrap:nowrap;gap:4px;font-size:10px}
.dashboard .bets-card .hand-base-number{width:62px;height:27px;font-size:12px}
.dashboard .bets-card .hand-base-save{height:27px;min-width:36px;padding:0 6px;font-size:10px}
.dashboard .bets-period-side{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-left:14px;border-left:1px solid #e2e8f0}
.bets-heading-context{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;width:100%}
.bets-selected-period{color:#475569;font-size:11px;font-weight:550;line-height:1.5;text-align:center;max-width:100%;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard .bets-card .bets-overview-controls .bets-view-tab{font-size:14px;min-height:34px;padding:5px 10px}
.dashboard .bets-amount-block>h2{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;margin:0 0 5px;border:1px solid #e8edf5;border-radius:8px;background:#fff;box-shadow:0 2px 5px #0f172a06;font-size:12px;font-weight:550;line-height:1.4}
.dashboard #bets-view-current{color:#ef4444}
.dashboard #bets-view-previous{color:#2563eb}
.dashboard .bets-overview.is-waiting .total-amount{max-width:none;visibility:hidden}
.dashboard .bets-overview.is-waiting .bets-waiting-hint{top:auto;bottom:5px;transform:translateX(-50%);max-width:100%;font-size:13px}
@media(max-width:440px){
.dashboard .bets-overview{gap:9px;padding:10px 8px}
.dashboard .bets-period-side{padding-left:9px}
.dashboard .bets-card .hand-base-controls{font-size:9px;gap:3px}
.dashboard .bets-card .hand-base-number{width:45px;height:26px;font-size:11px;padding:2px 3px}
.dashboard .bets-card .hand-base-save{min-width:29px;height:26px;font-size:9px;padding:0 4px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab{font-size:12px;min-height:31px;padding:4px 6px}
.dashboard .bets-amount-block>h2{font-size:11px;padding:3px 8px}
.bets-selected-period{font-size:10px}
}
@media(max-width:350px){.dashboard .bets-card .bets-overview-controls .bets-view-tab{font-size:11px;padding:4px}.dashboard .bets-card .bets-overview-controls .bets-view-tabs{gap:2px}}

/* Align the two headings and give the selected period equal visual weight. */
.dashboard .bets-overview{align-items:stretch}
.dashboard .bets-amount-side{justify-content:flex-start;gap:7px}
.dashboard .bets-amount-block>h2{min-height:38px;font-size:14px;padding:5px 12px;margin-bottom:5px}
.dashboard .bets-overview .total-amount{min-height:40px;line-height:40px;font-size:34px;letter-spacing:-.7px}
.dashboard .bets-period-side{justify-content:flex-start}
.dashboard .bets-heading-context{gap:25px}
.dashboard .bets-card .bets-overview-controls .bets-view-tabs{min-height:38px}
.dashboard .bets-selected-period{display:flex;align-items:center;justify-content:center;min-height:40px;font-size:14px;font-weight:550;line-height:1.4;letter-spacing:0;color:#64748b;white-space:nowrap;overflow-wrap:normal}
@media(max-width:440px){
.dashboard .bets-amount-block>h2{min-height:34px;font-size:12px;padding:4px 9px}
.dashboard .bets-card .bets-overview-controls .bets-view-tabs{min-height:34px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab{min-height:30px}
.dashboard .bets-overview .total-amount{font-size:29px}
.dashboard .bets-selected-period{font-size:12px}
}
@media(max-width:350px){
.dashboard .bets-overview .total-amount{font-size:25px}
.dashboard .bets-selected-period{font-size:12px}
}

/* Put the large period above its current/previous controls. */
.dashboard .bets-selected-period{min-height:38px;line-height:1.4}
.dashboard .bets-card .bets-overview-controls .bets-view-tabs{min-height:40px}
@media(max-width:440px){.dashboard .bets-selected-period{min-height:34px;line-height:1.4}}

/* Give the selected period tab a stronger visual state without moving the panel. */
.dashboard .bets-card .bets-overview-controls .bets-view-tab{font-weight:500;transition:font-size .12s ease}
.dashboard .bets-card .bets-overview-controls .bets-view-tab.is-active{font-size:17px;font-weight:700}
@media(max-width:440px){.dashboard .bets-card .bets-overview-controls .bets-view-tab.is-active{font-size:14px}}
@media(max-width:380px){.dashboard .bets-card .bets-overview-controls .bets-view-tab{padding-inline:4px}.dashboard .bets-card .bets-overview-controls .bets-view-tab.is-active{font-size:13px}}
@media(max-width:350px){.dashboard .bets-card .bets-overview-controls .bets-view-tab.is-active{font-size:12px}}

/* Brighter figures and an unmistakable selected period tab. */
.dashboard .bets-amount-block>h2{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#111827;font-size:18px;font-weight:650}
.dashboard .bets-overview .total-amount{color:#111827;font-weight:700}
.dashboard .bets-selected-period{position:relative;top:8px;width:max-content;max-width:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#111827;font-size:18px;font-weight:650}
.dashboard .bets-heading-context{gap:21px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab{font-size:14px;font-weight:500;min-height:34px;padding:5px 6px;border:1px solid transparent;opacity:.6;transition:background-color .12s ease}
.dashboard .bets-card .bets-overview-controls .bets-view-tab.is-active{font-size:22px;font-weight:750;line-height:1.2;min-height:44px;padding:6px 8px;opacity:1;box-shadow:0 2px 6px #0f172a0d}
.dashboard #bets-view-current.is-active{color:#dc2626;background:#fff1f2;border-color:#fca5a5}
.dashboard #bets-view-previous.is-active{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}
@media(max-width:500px){
.dashboard .bets-heading-context{gap:23px}
.dashboard .bets-selected-period,.dashboard .bets-amount-block>h2{font-size:16px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab{font-size:12px;padding:4px 5px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab.is-active{font-size:18px;min-height:40px;padding:5px 6px}
}
@media(max-width:400px){
.dashboard .bets-heading-context{gap:24px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab{font-size:11px;padding:4px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab.is-active{font-size:16px;min-height:38px;padding:5px}
}
@media(max-width:380px){
.dashboard .bets-card .bets-overview-controls .bets-view-tab{font-size:10px;padding:4px 3px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab.is-active{font-size:15px;padding:5px 4px}
}
@media(max-width:350px){
.dashboard .bets-heading-context{gap:25px}
.dashboard .bets-selected-period,.dashboard .bets-amount-block>h2{font-size:14px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab{font-size:10px;min-height:28px;padding:4px 1px}
.dashboard .bets-card .bets-overview-controls .bets-view-tab.is-active{font-size:14px;min-height:36px;padding:4px 3px}
}

/* Empty data keeps the same card geometry while its data cells remain hidden. */
.bet-details{position:relative}
.ball-summary.is-placeholder>*{visibility:hidden}
.ball-summary.is-placeholder{border-color:transparent;background:transparent;box-shadow:none}
#bets-view-state.is-empty{position:absolute;inset:0;z-index:1;display:grid;place-items:center;min-height:0;margin:0;padding:0;border:0;color:#64748b;text-align:center;font-size:13px;line-height:1.6;pointer-events:none}
#bets-view-state.is-empty.is-loading{display:flex;align-items:center;justify-content:center;white-space:nowrap;color:#2563eb;font-size:28px;font-weight:650;line-height:1.8;overflow:hidden}
.bets-loading-line{display:inline-flex;align-items:baseline;justify-content:center;white-space:nowrap}
.bets-loading-dots{display:inline-flex;align-items:baseline}
.bets-loading-dot{display:inline-block;animation:bets-loading-jump 1.2s ease-in-out infinite}
.bets-loading-dot:nth-child(2){animation-delay:.15s}
.bets-loading-dot:nth-child(3){animation-delay:.3s}
#bets-view-state.is-empty.is-loading .bets-loading-line{position:relative;isolation:isolate;align-items:center;width:min(310px,calc(100% - 32px));min-width:0;min-height:100px;padding:16px 18px;border:1px solid #93c5fd;border-radius:18px;background:#f8fbff;box-shadow:0 8px 28px #2563eb0c}
#bets-view-state.is-empty.is-loading .bets-loading-border{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;border-radius:inherit;pointer-events:none}
#bets-view-state.is-empty.is-loading .bets-border-track{stroke:#bfdbfe;stroke-width:1}
#bets-view-state.is-empty.is-loading .bets-border-flow{stroke:#2563eb;stroke-width:2.4;stroke-linecap:round;animation:bets-border-orbit 6s linear infinite}
#bets-view-state.is-empty.is-loading .bets-border-head{stroke:#dbeafe;stroke-width:2.4;stroke-linecap:round;animation:bets-border-head-orbit 6s linear infinite}
#bets-view-state.is-empty.is-loading .bets-loading-dot:nth-child(1){color:#2563eb}
#bets-view-state.is-empty.is-loading .bets-loading-dot:nth-child(2){color:#60a5fa}
#bets-view-state.is-empty.is-loading .bets-loading-dot:nth-child(3){color:#3b82f6}
@keyframes bets-loading-jump{0%,45%,100%{transform:translateY(0)}18%,28%{transform:translateY(-.22em)}}
@media(prefers-reduced-motion:reduce){.bets-loading-dot{animation:none;transform:none}}
@keyframes bets-border-orbit{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
@keyframes bets-border-head-orbit{from{stroke-dashoffset:-25}to{stroke-dashoffset:-125}}
@media(prefers-reduced-motion:reduce){#bets-view-state.is-empty.is-loading .bets-border-flow{animation:none;stroke-dashoffset:0}#bets-view-state.is-empty.is-loading .bets-border-head{animation:none;stroke-dashoffset:-25}}

/* Preserve the two-part overview composition; trim only its vertical whitespace. */
.dashboard .bets-overview{zoom:.82;padding-block:6px}
.dashboard .bets-amount-side{gap:3px}
.dashboard .bets-amount-block>h2{min-height:26px;margin-bottom:3px}
.dashboard .bets-overview .total-amount{min-height:38px;line-height:38px}
.dashboard .bets-selected-period{min-height:26px}
.dashboard .bets-heading-context{gap:20px}
/* Phone spacing keeps all nine number rows visible. */
.dashboard .finance-card h2{color:#0f172a}
.dashboard .finance-card .win-amount{color:#155dfb}
.dashboard .finance-card .win-amount.negative{color:#155dfb!important}
.dashboard .finance-card .win-stale:not(.win-masked){opacity:1}
.dashboard .finance-card .previous-win-row,.dashboard .finance-card .multiplier-controls{color:#475569}
@media(max-width:600px){
.dashboard{padding:6px 8px 8px}
.dashboard>.card{margin-bottom:8px}
.dashboard .card{padding:8px 10px;border-radius:14px}
.dashboard .top-summary-row{padding:8px 10px;gap:0 9px}
.dashboard .top-summary-row>.card{padding:0;margin:0}
.dashboard .top-summary-row .finance-card{padding-right:2px}
.dashboard .top-summary-row .countdown-card{padding-left:9px}
.dashboard .top-summary-row h1,.dashboard .top-summary-row h2{font-size:14px;line-height:1.25}
.dashboard .top-summary-row .win-amount{font-size:clamp(22px,7.2vw,30px);line-height:1.1;margin:3px 0 2px;letter-spacing:-.7px}
.dashboard .top-summary-row .previous-win-row{font-size:10px;min-height:14px;line-height:1.3;gap:4px}
.dashboard .top-summary-row .finance-card .multiplier-controls{min-height:25px;margin-top:5px;gap:4px;font-size:10px}
.dashboard .top-summary-row .finance-card .multiplier-number{width:54px;height:25px;border-radius:5px}
.dashboard .top-summary-row .finance-card .multiplier-number input{font-size:12px;line-height:1.2;padding:0}
.dashboard .top-summary-row .finance-card .multiplier-save{height:25px;min-width:34px;padding:0 5px;border-radius:5px;font-size:10px}
.dashboard .top-summary-row .countdown-card .card-heading{gap:1px}
.dashboard .top-summary-row .countdown-card h1{font-size:13px;line-height:1.25}
.dashboard .top-summary-row .countdown-card .period-pill{font-size:10px;line-height:1.25}
.dashboard .top-summary-row .countdown{font-size:27px;line-height:1.1;padding:5px 0}
.dashboard .top-summary-row .countdown-meta{font-size:10px;line-height:1.3}
.dashboard .top-summary-row .progress-track{height:3px;margin-top:4px}
.dashboard .latest-card{padding:10px}
.dashboard .result-heading{gap:6px}
.dashboard .result-heading p{font-size:11px;line-height:1.3}
.dashboard .result-controls{gap:4px}
.dashboard .mipai-button{height:23px;padding:0 6px;font-size:10px}
.dashboard .settings-button{width:23px;height:23px;padding:4px}
.dashboard .result-stage{margin-top:7px}
.dashboard .result-equation{gap:4px;padding:1px 0 3px}
.dashboard .number-square,.dashboard .kind-square{height:50px;font-size:30px;border-radius:7px}
.dashboard .sum-square{font-size:29px}
.dashboard .kind-square{font-size:28px}
.dashboard .operator,.dashboard .result-dot{font-size:16px}
.dashboard .draw-history{margin-top:5px}
.dashboard .draw-history summary{padding-top:4px;font-size:12px;line-height:1.3}
.dashboard .history-date{font-size:10px}
.dashboard .bets-overview{padding-block:5px}
.dashboard .bets-amount-block>h2,.dashboard .bets-selected-period{min-height:24px}
.dashboard .bets-overview .total-amount{min-height:34px;line-height:34px}
.dashboard .bet-details{margin-top:4px}
.dashboard .bet-details .ball-breakdown{margin-top:4px;gap:7px}
.dashboard .ball-summary{padding:7px 6px;border-radius:10px}
.dashboard .ball-summary-heading{gap:3px}
.dashboard .ball-summary-heading .ball-dot{width:16px;height:16px;flex-basis:16px;border-radius:4px;font-size:10px}
.dashboard .ball-summary-heading h3{font-size:12px;line-height:1.25}
.dashboard .ball-summary-heading .hand-level{font-size:10px;line-height:1.2;padding:1px 4px;margin:2px 0 0;border-radius:4px}
.dashboard .ball-amount{font-size:18px;line-height:1.15;margin-top:4px;letter-spacing:-.6px}
.dashboard .ball-summary .mini-divider{margin:4px 0}
.dashboard .ball-number-table{font-size:13px;line-height:1.25}
.dashboard .ball-number-table th{font-size:10px;line-height:1.3;padding-bottom:3px}
.dashboard .ball-number-table td{padding:2px 0}
.dashboard .ball-number-table .number-chip{width:20px;height:20px;font-size:13px;line-height:1;border-radius:5px}
}
@media(max-width:600px) and (max-height:719px){
.dashboard .ball-number-table .number-chip{width:18px;height:18px;font-size:12px}
}

/* Optional decoration lives only in measured spare space, outside document flow. */
.dashboard .bets-card{position:relative}
.bets-spare-decoration{position:absolute;left:0;top:0;width:0;height:0;overflow:hidden;border-radius:14px;background:linear-gradient(120deg,#fbfdff,#f1f7ff 55%,#fafcff);pointer-events:none;user-select:none}
.bets-spare-decoration[hidden]{display:none}
.bets-spare-lines,.bets-spare-border{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.bets-spare-lines{stroke:#93c5fd;stroke-width:1.4;opacity:.45}
.bets-spare-lines path{vector-effect:non-scaling-stroke}
.bets-spare-border rect{width:calc(100% - 2px);height:calc(100% - 2px)}
.bets-spare-track{stroke:#bfdbfe;stroke-width:1}
.bets-spare-flow{stroke:#2563eb;stroke-width:2;stroke-linecap:round;animation:bets-spare-orbit 6s linear infinite}
.bets-spare-head{stroke:#93c5fd;stroke-width:2;stroke-linecap:round;animation:bets-spare-head-orbit 6s linear infinite}
@keyframes bets-spare-orbit{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
@keyframes bets-spare-head-orbit{from{stroke-dashoffset:-25}to{stroke-dashoffset:-125}}
@media(prefers-reduced-motion:reduce){.bets-spare-flow{animation:none;stroke-dashoffset:0}.bets-spare-head{animation:none;stroke-dashoffset:-25}}

/* Numbered balls and readable hand labels share a single compact row. */
.dashboard .ball-summary-heading{flex-wrap:nowrap;gap:7px;position:relative}
.dashboard .ball-summary-heading h3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.dashboard .ball-summary-heading .ball-dot{width:38px;height:38px;flex:0 0 38px;border:1px solid #b4caff;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff 0%,#e8f0ff 45%,#cbdcff 100%);box-shadow:inset 0 1px 2px #fff,0 2px 4px #2563eb12;color:#1d4ed8;font-size:23px;font-weight:800;line-height:1}
.dashboard .ball-summary.is-highest-ball .ball-dot{border-color:#ffb8bf;background:radial-gradient(circle at 30% 25%,#fff 0%,#ffe7ea 45%,#ffcbd2 100%);color:#e73543;box-shadow:inset 0 1px 2px #fff,0 2px 4px #ef444412}
.dashboard .ball-summary-heading .hand-level{flex:0 0 auto;width:auto;min-width:0;min-height:27px;max-width:100%;margin:0;padding:3px 9px;border:1px solid #a8c3ff;border-radius:8px;background:#eaf2ff;color:#1454d8;font-size:16px;font-weight:750;line-height:1.2;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
@media(max-width:600px){
.dashboard .ball-summary-heading{gap:4px}
.dashboard .ball-summary-heading .ball-dot{width:30px;height:30px;flex-basis:30px;font-size:20px}
.dashboard .ball-summary-heading .hand-level{min-height:24px;margin:0;padding:3px 4px;border-radius:7px;font-size:14px;line-height:1.15}
}

/* Center each ball with its hand label above its amount. */
.dashboard .ball-summary{display:grid;grid-template-columns:38px minmax(0,1fr);column-gap:7px;align-items:center}
.dashboard .ball-summary-heading{display:contents}
.dashboard .ball-summary-heading .ball-dot{grid-column:1;grid-row:1 / 3;justify-self:center;align-self:center}
.dashboard .ball-summary-heading .hand-level{grid-column:2;grid-row:1;justify-self:center}
.dashboard .ball-summary .ball-amount{grid-column:2;grid-row:2;text-align:center;margin-top:4px}
.dashboard .ball-summary>.mini-divider{grid-column:1 / -1;grid-row:3}
.dashboard .ball-summary>.ball-number-table{grid-column:1 / -1;grid-row:4;width:100%}
@media(max-width:600px){
.dashboard .ball-summary{grid-template-columns:30px minmax(0,1fr);column-gap:4px}
.dashboard .ball-summary .ball-amount{font-size:16px;margin-top:3px;letter-spacing:-.6px}
}

/* Hand intensity changes only the existing label background. */
.dashboard .ball-summary-heading .hand-level{border-radius:4px}
.dashboard .ball-summary-heading .ball-dot{background:#edf3ff;box-shadow:none}
.dashboard .ball-summary.is-highest-ball .ball-dot{background:#fff0f0;box-shadow:none}
.dashboard .ball-summary-heading .hand-level-cool{--hand-start:37,99,235;--hand-end:59,130,246;color:#1454d8;border-color:#93b9ff}
.dashboard .ball-summary-heading .hand-level-gold{--hand-start:202,138,4;--hand-end:234,164,8;color:#794a00;border-color:#dba53b}
.dashboard .ball-summary-heading .hand-level-warm{--hand-start:249,115,22;--hand-end:251,146,60;color:#873506;border-color:#fb923c}
.dashboard .ball-summary-heading .hand-level-cool,.dashboard .ball-summary-heading .hand-level-gold,.dashboard .ball-summary-heading .hand-level-warm{background:linear-gradient(120deg,rgba(var(--hand-start),calc(var(--hand-strength)*.55)),rgba(var(--hand-end),var(--hand-strength)))}
.dashboard .ball-summary-heading .hand-level-hot{color:#f5d58a;border-color:#a78a4b;background:linear-gradient(115deg,#111b2d,#24334b 58%,#142035);background-size:100% 100%;text-shadow:none;box-shadow:inset 0 1px 0 #d2b57533;animation:none}
.dashboard .ball-summary-heading .hand-level-max{color:#ffe4a2;border-color:#d0ac60;background:linear-gradient(115deg,#0b1323,#1b2a43 58%,#101b2e);box-shadow:inset 0 1px 0 #edd39b44}
.dashboard .ball-summary-heading .hand-level-unknown{color:#64748b;border-color:#d8e2ef;background:#f8fafc;animation:none}

/* Improve text clarity without changing typefaces, sizes or palette. */
.dashboard .countdown-card h1{font-weight:700}
.dashboard .countdown-card .period-pill,.dashboard .countdown-meta{font-weight:550}
.dashboard .countdown-meta b{font-weight:600}
.dashboard .previous-win-row>span,.dashboard .multiplier-controls>label,.dashboard .multiplier-number>span,.dashboard .hand-base-controls>label{font-weight:550}
.dashboard .result-heading p,.dashboard .draw-history summary{font-weight:600}
.dashboard .mipai-button,.dashboard .history-date{font-weight:550}
.dashboard .draw-history th,.dashboard .ball-number-table th{font-weight:600}
.dashboard .draw-history td:not(.history-red):not(.history-blue),.dashboard .ball-number-table td:last-child{font-weight:500}
.dashboard .section-state{font-weight:500}
.dashboard .bets-card .bets-overview-controls .bets-view-tab:not(.is-active){font-weight:600;opacity:.9}

/* Preview: ordinary balls exactly match the card; maxima exactly match the badge. */
.dashboard .ball-summary:has(.hand-level-cool){--hand-card-fill:#eaf3ff;--hand-start:37,99,235;--hand-end:59,130,246;--hand-card-ink:#1454d8;--hand-badge-ink:#1454d8;--hand-badge-edge:#93b9ff;--hand-badge-paint:linear-gradient(120deg,rgba(var(--hand-start),calc(var(--hand-strength,.165)*.55)),rgba(var(--hand-end),var(--hand-strength,.165)));border-color:var(--hand-badge-edge);background:var(--hand-card-fill)}
.dashboard .ball-summary:has(.hand-level-gold){--hand-card-fill:#fff4d6;--hand-start:202,138,4;--hand-end:234,164,8;--hand-card-ink:#794a00;--hand-badge-ink:#794a00;--hand-badge-edge:#dba53b;--hand-badge-paint:linear-gradient(120deg,rgba(var(--hand-start),calc(var(--hand-strength,.360)*.55)),rgba(var(--hand-end),var(--hand-strength,.360)));border-color:var(--hand-badge-edge);background:var(--hand-card-fill)}
.dashboard .ball-summary:has(.hand-level-warm){--hand-card-fill:#fff0e3;--hand-start:249,115,22;--hand-end:251,146,60;--hand-card-ink:#873506;--hand-badge-ink:#873506;--hand-badge-edge:#fb923c;--hand-badge-paint:linear-gradient(120deg,rgba(var(--hand-start),calc(var(--hand-strength,.555)*.55)),rgba(var(--hand-end),var(--hand-strength,.555)));border-color:var(--hand-badge-edge);background:var(--hand-card-fill)}
.dashboard .ball-summary:has(.hand-level-hot){--hand-card-fill:#e7ecf6;--hand-card-ink:#24334b;--hand-badge-ink:#f5d58a;--hand-badge-edge:#a78a4b;--hand-badge-paint:linear-gradient(115deg,#111b2d,#24334b 58%,#142035);border-color:var(--hand-badge-edge);background:var(--hand-card-fill)}
.dashboard .ball-summary:has(.hand-level-max){--hand-card-fill:#e3e8f2;--hand-badge-ink:#ffe4a2;--hand-badge-edge:#d0ac60;--hand-badge-paint:linear-gradient(115deg,#0b1323,#1b2a43 58%,#101b2e);border-color:var(--hand-badge-edge);background:var(--hand-card-fill)}
.dashboard .ball-summary:has(.hand-level[data-hand-level="1"]){--hand-strength:.165}
.dashboard .ball-summary:has(.hand-level[data-hand-level="2"]){--hand-strength:.230}
.dashboard .ball-summary:has(.hand-level[data-hand-level="3"]){--hand-strength:.295}
.dashboard .ball-summary:has(.hand-level[data-hand-level="4"]){--hand-strength:.360}
.dashboard .ball-summary:has(.hand-level[data-hand-level="5"]){--hand-strength:.425}
.dashboard .ball-summary:has(.hand-level[data-hand-level="6"]){--hand-strength:.490}
.dashboard .ball-summary:has(.hand-level[data-hand-level="7"]){--hand-strength:.555}
.dashboard .ball-summary:has(.hand-level[data-hand-level="8"]){--hand-strength:.620}
.dashboard .ball-summary:has(.hand-level[data-hand-level="9"]){--hand-strength:.685}
.dashboard .ball-summary:is(:has(.hand-level-cool),:has(.hand-level-gold),:has(.hand-level-warm),:has(.hand-level-hot)) .hand-level{background:var(--hand-badge-paint)}
.dashboard .ball-summary:is(:has(.hand-level-cool),:has(.hand-level-gold),:has(.hand-level-warm),:has(.hand-level-hot)) .ball-dot,
.dashboard .ball-summary:is(:has(.hand-level-cool),:has(.hand-level-gold),:has(.hand-level-warm),:has(.hand-level-hot)) .ball-number-table .number-chip{background:var(--hand-card-fill);border-color:var(--hand-badge-edge);color:var(--hand-card-ink);box-shadow:none}
.dashboard .ball-summary.is-highest-ball:is(:has(.hand-level-cool),:has(.hand-level-gold),:has(.hand-level-warm),:has(.hand-level-hot)) .ball-dot,
.dashboard .ball-summary:is(:has(.hand-level-cool),:has(.hand-level-gold),:has(.hand-level-warm),:has(.hand-level-hot)) .ball-number-table .number-chip.is-highest-number{background:var(--hand-badge-paint);color:var(--hand-badge-ink);box-shadow:none}
.dashboard .ball-summary:has(.hand-level-unknown){--hand-badge-paint:#f8fafc;--hand-badge-ink:#64748b;--hand-badge-edge:#d8e2ef}
.dashboard .ball-summary.is-highest-ball .ball-amount{font-weight:800}
.dashboard .ball-summary.is-highest-ball .ball-amount.is-highest-amount,
.dashboard .ball-summary.is-highest-ball .ball-number-table td.is-highest-amount{color:var(--hand-badge-ink)}
.dashboard .ball-summary.is-highest-ball .amount-chip{display:inline-block;max-width:calc(100% + 4px);padding:0 2px;margin-inline:-2px;line-height:inherit;vertical-align:baseline;border-radius:4px;background:var(--hand-badge-paint);color:var(--hand-badge-ink);box-shadow:inset 0 0 0 1px var(--hand-badge-edge)}

/* Keep framed amounts as clear as the unframed total. */
.dashboard .ball-summary.is-highest-ball .amount-chip{font-weight:700}
.dashboard .ball-summary.is-highest-ball:is(:has(.hand-level-cool),:has(.hand-level-gold),:has(.hand-level-warm)) .amount-chip{color:#0f172a}

/* Keep the open card surface white while retaining the colored details. */
.dashboard .ball-summary:not(.is-placeholder){background:#fff}

/* Ball totals stay plain; individual maximum stakes retain their frame. */
.dashboard .ball-summary.is-highest-ball .ball-amount>.amount-chip{background:none;box-shadow:none;padding:0;margin-inline:0;border-radius:0;color:#0f172a}

/* A single light follows the full border; it never occupies the card layout. */
.dashboard .ball-summary{position:relative}
.highest-ball-flow{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;border-radius:inherit;pointer-events:none;user-select:none}
.highest-ball-orbit{width:calc(100% - 1px);height:calc(100% - 1px);stroke:var(--highest-ball-stroke,var(--hand-badge-edge,#dba53b));stroke-width:2.6;stroke-linecap:round;stroke-dasharray:36 64;vector-effect:non-scaling-stroke;animation:highest-ball-orbit 3s linear infinite}
.ball-summary:has(.hand-level-gold) .highest-ball-flow{--highest-ball-stroke:#f2b900}
.ball-summary:has(.hand-level-warm) .highest-ball-flow{--highest-ball-stroke:#f36b12}
.ball-summary:has(.hand-level-hot) .highest-ball-flow{--highest-ball-stroke:#e9be52}
#bets-card:has(.highest-ball-flow) .bets-spare-flow,#bets-card:has(.highest-ball-flow) .bets-spare-head{animation:none;visibility:hidden}
@keyframes highest-ball-orbit{from{stroke-dashoffset:0px}to{stroke-dashoffset:-100px}}
@media(prefers-reduced-motion:reduce){.highest-ball-orbit{animation:none;stroke-dashoffset:0px}}
