.phone.room-active{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-bottom:0;background:#f3f3f9;overflow:hidden}.room-active #app-header{padding:0;height:66px;flex:none;background:linear-gradient(110deg,#5485fa,#30b8ef);color:#fff}.room-active #page{flex:1;min-height:0;overflow:hidden}.room-active #bottom-nav,.room-active #app-footer{display:none}.room-active #app-header .room-nav{width:100%;height:100%;display:flex;align-items:center;padding:9px 13px;gap:12px}.room-nav .room-back{width:30px;color:white;display:grid;place-items:center}.room-nav-title{flex:1;text-align:center;min-width:0}.room-nav-title h1{font-size:17px;letter-spacing:.2px;margin:0 0 4px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-nav-title small{font-size:10px;color:#daf0ff;display:block}.room-nav button{color:#fff;background:none;padding:4px;display:flex}.room-nav svg{width:22px;height:22px}.room-page{height:100%;display:flex;flex-direction:column;min-height:0}.room-account-strip{flex:none;display:grid;grid-template-columns:1.35fr 1fr;background:#fff;border-bottom:1px solid #edf0f5;padding:12px 10px 10px;text-align:center;font-size:11px;gap:9px}.room-round-box{border-right:1px solid #e7e9f1;padding-right:8px}.room-round-box .round-label{font-size:10px;color:#5d8ac3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-round-box .round-time{display:inline-block;margin-top:7px;padding:3px 8px;background:#34434d;color:#fff;border-radius:3px;font-variant-numeric:tabular-nums;letter-spacing:1px}.room-round-box small{display:block;font-size:8px;color:#a7b3c6;margin-top:4px}.room-account-box span{color:#7d8ba3;font-size:10px}.room-account-box strong{display:block;margin-top:8px;font-size:19px;color:#e05b68;font-weight:650}.room-last-result{padding:10px 9px;background:#fff;text-align:center;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;flex:none;font-size:10px;color:#8d9ab0;min-height:42px;border-bottom:1px solid #edf0f5}.room-last-result .digit{width:22px;height:23px;display:inline-grid;place-items:center;background:#5f99fa;color:white;font-size:14px}.room-last-result .room-sum{background:#ff4c57;color:white;width:23px;height:23px;display:inline-grid;place-items:center;font-size:14px}.room-last-result .badge{font-size:8px;padding:3px 5px}.room-notice{padding:7px 12px;font-size:9px;color:#9a83a2;background:#f8f3fb;border-bottom:1px solid #eee8f4;flex:none;line-height:1.6}.room-notice.fixture{color:#ae455a;background:#fff0f3;font-weight:650}.room-feed{flex:1;min-height:40px;overflow-y:auto;padding:16px 12px;overscroll-behavior:contain;scroll-behavior:smooth}.room-system-note{max-width:95%;margin:0 auto 18px;border-radius:8px;background:#e7eaf2;color:#8e99ae;padding:9px 12px;text-align:center;font-size:10px;line-height:1.8}.chat-line{display:flex;align-items:flex-start;gap:10px;margin-bottom:20px}.chat-line.mine{flex-direction:row-reverse}.chat-avatar{position:relative;flex-shrink:0;width:41px;text-align:center}.chat-avatar .avatar{width:38px;height:38px;border:2px solid white;box-shadow:0 1px 3px #59678220}.chat-avatar .avatar svg{width:25px;height:25px}.chat-avatar small{position:relative;display:block;border-radius:3px;background:linear-gradient(#ffe9a3,#efba6e);color:#ab723b;font-size:8px;margin-top:-4px;border:1px solid #ffe5a4}.chat-content{max-width:calc(100% - 65px);min-width:80px}.chat-author{font-size:10px;color:#969eb0;margin:1px 0 7px}.mine .chat-author{text-align:right}.chat-bubble{position:relative;background:#fff;border:1px solid #f0f1f7;padding:11px 13px;border-radius:0 17px 17px 17px;font-size:13px;color:#35475f;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}.mine .chat-bubble{background:#e5f3ff;border-color:#dceafa;border-radius:17px 0 17px 17px}.chat-stamp{color:#bcc3d0;font-size:8px;margin-top:5px}.mine .chat-stamp{text-align:right}.chat-label{display:inline-block;font-size:8px;padding:2px 5px;border-radius:4px;background:#f0f3f9;color:#91a0ba;margin-right:5px}.sim-bubble{background:linear-gradient(145deg,#fff,#f4f8ff);border:1px solid #dce8fa;border-radius:12px;padding:12px;margin:12px 3px 20px;font-size:11px;color:#6f86aa;line-height:1.8}.sim-bubble .record-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.sim-bubble .record-top b{font-size:11px;color:#4d79b5}.sim-bubble .record-picks{font-size:12px;color:#425e87;margin:7px 0}.sim-bubble button{font-size:10px;background:none;color:#4c91dd;padding:0}.sim-bubble small{font-size:8px;color:#a1b0c6}.record-state{font-size:9px;padding:2px 6px;background:#f5eddc;color:#ad8a51;border-radius:4px;white-space:nowrap}.record-state.won,.record-state.mixed{background:#e3f3ee;color:#448c79}.record-state.lost{background:#eef0f5;color:#92a0b6}.record-state.refunded{background:#edf3ff;color:#668cbb}.record-state.review{background:#ffeaf0;color:#c86b7c}.room-composer{flex:none;display:flex;align-items:center;gap:5px;padding:8px 7px max(8px,env(safe-area-inset-bottom));background:#fbfcff;border-top:1px solid #e2e8f3;position:relative;z-index:5}.room-composer button{font-size:11px;padding:10px 9px;border-radius:5px;background:#fff;color:#748198;border:1px solid #e9edf5;min-width:43px;white-space:nowrap}.room-composer button.active,.room-composer .send{color:white;border-color:#71a6fc;background:#5796f6}.room-composer input{flex:1;width:0;border:1px solid #f1f3f8;border-radius:6px;font-size:10px;padding:11px 8px;background:white;color:#546a8d;min-width:40px}.room-panel{flex:none;background:#f5f6fb;border-top:2px solid #6e9ef7;padding:8px 7px 9px;max-height:50dvh;overflow-y:auto;position:relative}.room-panel.hidden{display:none}.panel-title{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8d9db8;margin-bottom:7px}.panel-title button{background:none;color:#8ea5c8;padding:1px 4px;font-size:13px}.panel-selection{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #e5eaf4;border-radius:7px;padding:7px;margin-bottom:7px;min-height:39px}.selected-summary{flex:1;font-size:10px;color:#6884b0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.panel-selection button{padding:5px 8px;border-radius:4px;font-size:10px;background:#edf1f7;color:#8998b0}.digit-picks{display:flex;gap:6px;overflow-x:auto;padding:2px 0 9px;scrollbar-width:none}.digit-picks::-webkit-scrollbar{display:none}.pick-digit{flex:0 0 51px;width:51px;height:51px;border-radius:50%;border:1px solid #8eb2f2;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:15px;color:#5f97e9;padding:0}.pick-digit small{font-size:8px;margin-top:3px}.pick-digit.selected{background:#4ba8f4;color:#fff;border-color:#3e9aec;box-shadow:0 2px 5px #4c9af633}.quick-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.rule-pick{height:41px;border-radius:4px;border:1px solid #a6c1f1;background:#fff;color:#7099d7;font-size:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:3px}.rule-pick small{font-size:8px;line-height:1.5}.rule-pick.selected{color:#fff;background:#3db8f4;border-color:#50bafa}.rule-pick:disabled,.pick-digit:disabled{opacity:.35}.quick-grid .key{height:41px;font-size:18px;background:#42b5ee;color:#fff;border:1px solid #d8f3ff;border-radius:4px}.quick-grid .key.utility{font-size:12px;background:white;color:#8c9bb3;border-color:#e1e8f3}.quick-grid .key.confirm{font-size:12px;background:#ee626e;color:#fff;border-color:#ef7680}.panel-stake{display:flex;gap:6px;align-items:center;margin:8px 0 0;font-size:10px;color:#8a99b1}.panel-stake input{width:65px;min-width:0;text-align:center;padding:7px 4px;border-color:#cddcf4;border-radius:5px;font-size:12px;background:#fff}.panel-stake strong{color:#5d92d1;margin-left:auto;font-size:12px}.panel-stake small{font-size:8px;max-width:100px;line-height:1.5}.panel-extras{display:flex;justify-content:space-between;margin-top:7px;gap:6px}.panel-extras button,.panel-extras a{font-size:9px;background:none;color:#869dc1;padding:0}.mode-compact .chat-line{margin-bottom:11px;gap:7px}.mode-compact .chat-avatar{width:29px}.mode-compact .chat-avatar .avatar{width:27px;height:27px}.mode-compact .chat-avatar svg{width:19px;height:19px}.mode-compact .chat-avatar small{font-size:6px}.mode-compact .chat-bubble{padding:7px 11px;border-radius:8px;font-size:11px}.mode-table .room-feed{background:linear-gradient(#edf5ff,#f3f4fa)}.mode-table .room-panel{max-height:55dvh;background:#eef5ff}.rooms-toolbar{display:flex;justify-content:space-between;align-items:center;margin:8px 0 15px;gap:10px}.rooms-toolbar h1{font-size:23px;margin:0}.rooms-toolbar button{background:#fff;border:1px solid #e4ebf6;border-radius:7px;font-size:10px;color:#7295c3;padding:8px 10px}.room-choices{display:grid;gap:12px}.room-choice{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e8edf7;border-radius:15px;padding:17px 13px;box-shadow:0 4px 8px #244e8310}.room-choice img{width:55px;height:55px;object-fit:contain;border-radius:50%;mix-blend-mode:multiply}.room-choice h2{font-size:14px;margin:0 0 8px;color:#425f88}.room-choice p{margin:4px 0;font-size:10px;color:#9aacbf;line-height:1.7}.room-choice .room-choice-arrow{margin-left:auto;color:#a4b5ce}.rooms-grid{grid-template-columns:1fr 1fr;gap:10px}.rooms-grid .room-choice{flex-direction:column;align-items:flex-start;padding:16px 12px;position:relative}.rooms-grid .room-choice img{width:53px;height:53px;margin-bottom:4px}.rooms-grid .room-choice h2{font-size:12px;line-height:1.8}.rooms-grid .room-choice-arrow{position:absolute;right:10px;top:20px}.rooms-grid .room-choice p{font-size:9px}.simulation-link-row{display:flex;gap:9px;margin:15px 0}.simulation-link-row a{flex:1;text-align:center;font-size:11px}.sim-record-card{border:1px solid #e1e9f7;background:#fff;border-radius:13px;padding:15px;margin-bottom:12px}.sim-record-card h3{font-size:12px;color:#6484ae}.sim-record-card p{font-size:11px;color:#8a9bb3;line-height:1.8}.sim-record-card .row{display:flex;align-items:center;justify-content:space-between;gap:10px}.sim-confirm-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f7;font-size:12px;color:#7590b4}.sim-confirm-row b{color:#4772a7}.sim-confirm-total{display:flex;justify-content:space-between;font-size:15px;color:#416a9f;margin:18px 0}.sim-error{color:#c66a7c;font-size:11px;line-height:1.7;margin-top:10px}.sim-proof-title{font-size:12px;color:#6485b3;margin:14px 0 7px}.simulation-badge{font-size:9px;color:#9c87ae;background:#f5effb;border-radius:5px;padding:4px 6px}.room-rules-list{font-size:11px;line-height:1.9;color:#7991b1}.room-rules-list>div{border-bottom:1px solid #edf0f7;padding:9px 0}.sim-mode-select{display:flex;gap:5px;padding:10px 12px 0;background:#f3f3f9;flex:none}.sim-mode-select button{font-size:10px;padding:5px 9px;border-radius:20px;color:#8095b6;background:#fff;border:1px solid #e5eaf4}.sim-mode-select button.selected{background:#e5f1ff;color:#5b96dc;border-color:#bcd8fc}@media(min-width:700px){.phone.room-active{height:calc(100dvh - 44px);min-height:0}.room-panel{max-height:45dvh}}@media(max-width:350px){.room-nav-title h1{font-size:15px}.room-round-box .round-label{font-size:8px}.room-composer button{padding:9px 6px;min-width:37px;font-size:10px}.pick-digit{flex-basis:46px;width:46px;height:46px}.rule-pick,.quick-grid .key{height:37px}.panel-stake small{display:none}.room-account-strip{font-size:10px}.room-choice h2{font-size:12px}}

.quick-grid .span2{grid-column:span 2}.quick-grid .span3{grid-column:span 3}@media(max-height:900px){.room-panel .rule-pick,.room-panel .quick-grid .key{height:35px}.room-panel .pick-digit{height:45px;flex-basis:45px;width:45px}.room-panel .digit-picks{padding-bottom:6px}}

/* Reference keypad: six circles, five columns, explicit space/dragon/tiger/leopard. */
.reference-panel{padding:5px 5px 4px;max-height:52dvh;background:#f3f3f9;overflow:hidden;border-top:2px solid #568efa}
.command-line{height:37px;display:flex;gap:3px;margin-bottom:4px;background:#fff;border-radius:4px;padding:3px}
.command-line input{flex:1;min-width:0;border:0;border-radius:0;background:#fff;padding:5px;font-size:13px;color:#222}
.command-line input::placeholder{color:#c6c8ce}.command-line button{background:#c7c7c7;color:white;border:0;padding:4px 10px;font-size:13px;border-radius:2px}
.number-strip{display:flex;align-items:center;gap:3px;margin-bottom:4px}.number-strip>button{background:none;color:#99cafa;border:0;padding:0;flex:0 0 15px;font-size:21px}
.reference-panel .digit-picks{flex:1;min-width:0;gap:5px;padding:0;scroll-snap-type:x mandatory}
.reference-panel .pick-digit{height:51px;width:51px;flex-basis:51px;border:1px solid #87aef0;color:#5c94ee;font-size:14px;scroll-snap-align:start;box-shadow:0 1px 2px #c7d4ee}
.reference-panel .pick-digit small{font-size:10px;margin-top:3px}
.reference-panel .quick-grid{gap:3px}.reference-panel .rule-pick,.reference-panel .quick-grid .key{height:36px;font-size:14px;border-radius:4px;padding:1px}
.reference-panel .rule-pick{color:#6b9ce8;border-color:#8aacec;background:#fff;font-weight:400}.reference-panel .rule-pick small{font-size:10px;line-height:1.15}
.reference-panel .rule-pick.selected{background:#dcefff;color:#247adf;box-shadow:inset 0 0 0 1px #4c9bfa}
.reference-panel .quick-grid .key{background:#39b6f4;border-color:#8fdafa;font-size:20px;font-weight:400}
.reference-panel .quick-grid .key.utility{color:#161616;background:#fff;border-color:#fff;font-size:13px}
.reference-panel .quick-grid .key.confirm{color:#fff;background:#fa0000;border-color:#fa0000;font-size:13px}
.reference-panel .quick-grid .key.confirm:disabled{background:#ef7777;border-color:#ef7777}
.command-foot{display:flex;align-items:center;gap:7px;padding:5px 2px 0;color:#9c9eab;font-size:8px;line-height:1.1}
.command-foot b{margin-left:auto;color:#5a8bc7;font-size:10px}.command-foot button{border:0;background:none;color:#6e92c6;padding:0;font-size:9px}
.room-account-strip{grid-template-columns:1fr 1fr;font-size:13px;padding:10px 8px}.room-account-box span{font-size:12px;color:#333}
.room-last-result{font-size:12px;color:#343434;gap:5px;min-height:43px}.room-last-result .digit,.room-last-result .room-sum{width:20px;height:20px}
.room-notice{font-size:9px;padding:4px 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}
.sim-mode-select{padding:4px 9px 0}.sim-mode-select button{font-size:9px;padding:3px 7px}
.room-system-note{font-size:9px;padding:6px;margin-bottom:13px}.room-feed{padding:13px 9px}
@media(max-height:740px){.reference-panel{max-height:59dvh}.reference-panel .rule-pick,.reference-panel .quick-grid .key{height:32px}.reference-panel .pick-digit{height:45px;width:45px;flex-basis:45px}.command-foot{padding-top:3px}.command-line{height:32px}}

.live-status{background:#eaf4ff;border:1px solid #d8e9fc;color:#5e88bd;border-radius:8px;padding:9px 11px;font-size:10px;line-height:1.8;margin:12px 0}

/* Room draw summary matches the supplied reference. */
.room-account-strip{padding:10px 12px 12px;gap:0;min-height:60px;align-items:center}
.room-round-box{padding-right:0;border-right:1px solid #e8e8e8}
.room-round-box .round-label{font-size:12px;color:#222;line-height:20px}
.room-issue{color:#6496e5}
.room-round-box .round-time{font-size:12px;line-height:16px;padding:1px 5px;margin-top:7px;border-radius:2px;background:#303030;letter-spacing:0}
.room-account-box span{font-size:12px;color:#222;line-height:20px}
.room-account-box strong{font-size:15px;color:#f04a50;margin-top:7px;line-height:18px;font-weight:600}

.room-directory{padding:12px 0}.room-directory .rooms-toolbar{padding:0 16px}.room-directory .room-choices{display:flex;flex-direction:column;gap:0;background:#fff;border-radius:12px;overflow:hidden}.room-directory .room-choice{border:0;border-bottom:1px solid #dedee4;border-radius:0;box-shadow:none;min-height:89px;padding:14px 17px;gap:15px}.room-directory .room-choice:last-child{border-bottom:0}.room-directory .room-choice img{width:58px;height:58px;border-radius:50%;object-fit:contain}.room-directory .room-choice h2{font-size:17px;font-weight:500;color:#25293b;margin:0;line-height:1.5}.room-directory .room-choice-arrow{color:#bcbcbc;font-size:32px;font-weight:300}.room-directory .simulation-link-row{padding:0 12px}

.room-page{position:relative}.room-side-actions{position:absolute;right:5px;bottom:calc(80px + env(safe-area-inset-bottom,0px));z-index:4;display:flex;flex-direction:column;gap:5px;width:44px;max-height:calc(100% - 230px - env(safe-area-inset-bottom,0px));overflow-y:auto;scrollbar-width:none}.room-side-actions #room-extra-tools{display:flex;flex-direction:column;gap:5px}.room-side-actions #room-extra-tools[hidden]{display:none}.room-side-actions button,.room-side-actions a{padding:0;border:0;background:none;text-align:center;color:#888;font-size:9px;display:flex;align-items:center;flex-direction:column;gap:3px;text-decoration:none}.room-side-actions i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#afc8f6;color:#fff;font-style:normal;font-size:16px}.room-side-actions svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6}.room-side-actions #room-tools-toggle i{font-size:29px;line-height:1}.room-side-actions .support i{background:#ad48e3;font-size:12px}.room-side-actions .deposit i{background:#ff7a32;font-size:12px}.room-side-actions .withdraw i{background:#49b0f4;font-size:12px}.room-feed{padding-right:57px}.room-panel,.room-composer{z-index:5}.room-panel{position:relative}.reference-panel{max-height:57dvh}.multi-pick-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#8390a5;padding:7px 0}.multi-pick-controls label{display:flex;align-items:center;gap:6px;white-space:nowrap}.multi-pick-controls input{width:70px;padding:5px;border:1px solid #dce4f2;border-radius:4px;background:white}.multi-pick-controls span{font-size:9px}.multi-pick-row{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dce6f5;border-radius:5px;padding:4px 8px;font-size:11px}.multi-pick-row strong{min-width:38px}.multi-pick-row input{flex:1;min-width:0;border:0;background:#f4f7fb;padding:5px;text-align:right;font-size:12px}.multi-pick-row button{background:none;color:#c76f80;font-size:19px;padding:0 3px}#multi-pick-list{display:grid;grid-template-columns:1fr 1fr;gap:5px;max-height:125px;overflow:auto}.pick-hint{grid-column:1/-1;font-size:10px;color:#b47d66}.room-trend>div{display:grid;grid-template-columns:1fr 1fr 35px 1fr;gap:7px;padding:10px 0;border-bottom:1px solid #edf0f5;font-size:12px}.room-trend strong{color:#ef6373}.chase-record{padding:12px 0;border-bottom:1px solid #e7edf6}.chase-record p{font-size:12px}.chase-record button{font-size:12px;padding:6px 10px;background:#eef4ff;color:#5b83c3;border-radius:5px}

.reference-panel .command-foot{position:sticky;bottom:-9px;background:#f5f6fb;padding:8px 0 5px;z-index:3;box-shadow:0 -4px 8px #f5f6fb;font-size:9px;flex-wrap:wrap}.reference-panel .command-foot .confirm{font-size:12px;background:#f54954;color:white;border-radius:4px;padding:8px 13px}.reference-panel .command-foot b{color:#416da8;font-size:12px;margin-left:auto}.reference-panel .command-foot>span{font-size:8px}.reference-panel #multi-pick-list{max-height:100px}.room-side-actions #room-tools-toggle i{font-family:Arial,sans-serif;font-size:28px;padding-bottom:7px}

/* Full-height draw views, matching the supplied history and card references. */
#draw-trend{position:fixed;inset:0;margin:auto;width:100%;max-width:480px;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;background:#fff;color:#333;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 0 35px #223b6020}#draw-trend:not([open]){display:none}#draw-trend::backdrop{background:#23365355;backdrop-filter:none}.trend-nav{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;flex:none;height:57px;padding:0 15px;background:#fff}.trend-nav h2{font-size:16px;font-weight:500;text-align:center;margin:0;white-space:nowrap}.trend-nav button{display:flex;align-items:center;gap:8px;padding:0;background:none;color:#171d31;font-size:15px;justify-self:start}.trend-nav svg{width:20px;height:25px;fill:none;stroke:#29335d;stroke-width:2.6}.trend-tabs{display:flex;width:60%;margin:2px auto 4px;border:1px solid #4c8ff5;border-radius:4px;overflow:hidden;flex:none}.trend-tabs button{width:50%;padding:5px 0;font-size:15px;background:#fff;color:#303030;border-radius:0;line-height:20px;font-weight:400}.trend-tabs button[aria-selected=true]{background:#4a8df5;color:#fff}.trend-filter{display:grid;grid-template-columns:1fr 1fr 67px;align-items:center;padding:7px 17px 10px;gap:12px;flex:none;height:43px}.trend-date{position:relative;min-width:0;color:#999;display:block;height:26px}.trend-date input{width:100%;height:26px;border:0;padding:0;background:transparent;color:#777;border-radius:0;font-size:11px;min-width:0;font-family:inherit}.trend-date span{display:none;pointer-events:none;position:absolute;left:0;top:5px;font-size:12px;color:#999}.trend-date.empty span{display:block}.trend-date.empty input{color:transparent}.trend-date input::-webkit-calendar-picker-indicator{opacity:.45;cursor:pointer}.trend-filter>button{display:flex;align-items:center;justify-content:flex-end;gap:4px;color:#999;background:none;padding:0;font-size:11px}.trend-filter>button svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.5}#trend-message{flex:none;margin:0;font-size:11px;color:#b17c66;text-align:center;background:#fff7f1;padding:7px}#trend-message:empty{display:none}.trend-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#fff}.trend-history table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:center}.trend-history th{position:sticky;top:0;background:#eee;color:#999;height:32px;font-size:10px;font-weight:400;z-index:1}.trend-history th:first-child{width:20%}.trend-history td{height:47px;border-bottom:1px solid #e9e9e9;padding:5px 5px;font-size:10px;color:#777}.trend-chip{display:block;width:100%;max-width:48px;margin:auto;padding:7px 0;border-radius:4px;line-height:15px;font-size:13px;font-weight:400}.trend-chip.neutral{background:#eee;color:#444}.trend-chip.blue{background:#498df5;color:#fff}.trend-chip.red{background:#ff4a34;color:#fff}.trend-card-list{padding:6px 8px;background:#f0eff5;min-height:100%}.trend-result-card{background:#fff;border-radius:5px;padding:9px 10px 14px;margin:0 0 7px;min-height:87px;display:flex;flex-direction:column;justify-content:space-between;gap:18px}.trend-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.trend-equation{display:flex;align-items:center;gap:8px;flex-shrink:0;font-size:14px;color:#333}.trend-equation b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#4a8df5;color:#fff;font-size:18px;font-weight:400}.trend-equation .sum{background:#ff4c57}.trend-classification{font-size:12px;color:#444;text-align:right;white-space:nowrap}.trend-card-bottom{display:flex;justify-content:space-between;gap:8px;color:#a0a0a0;font-size:10px;line-height:15px}.trend-empty{padding:40px 10px;text-align:center;font-size:13px;color:#999}#trend-more{display:block;margin:15px auto 20px;background:#f1f5fc;color:#7290bb;font-size:12px;padding:9px 24px;border-radius:5px}#trend-more[hidden]{display:none}@media(max-width:350px){.trend-equation{gap:5px}.trend-equation b{width:25px;height:25px;font-size:16px}.trend-classification{font-size:10px}.trend-filter{gap:7px;padding-left:12px;padding-right:12px}.trend-history td{padding-left:4px;padding-right:4px}}

#draw-trend .trend-date,#draw-trend .trend-date.empty{padding:0;margin:0;height:26px;min-height:0;text-align:left;line-height:normal}

.room-result-wrap{position:relative;flex:none}.room-result-wrap .room-last-result{width:100%;cursor:pointer;font-family:inherit;font-weight:400;border-radius:0}.room-result-wrap .room-last-result:focus-visible{outline:2px solid #4a8df5;outline-offset:-2px}.room-last-result[aria-expanded=true]{box-shadow:inset 0 -2px #518ef5}.room-recent-history{position:absolute;top:100%;left:0;right:0;z-index:8;background:#fff;box-shadow:0 8px 18px #22395b20;max-height:min(65dvh,510px);overflow:auto;overscroll-behavior:contain;padding:0 10px 9px}.room-recent-history[hidden]{display:none}.room-recent-history table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:center;color:#252525;font-size:11px}.room-recent-history th{position:sticky;top:0;z-index:1;background:#fff;height:31px;font-weight:400;font-size:11px}.room-recent-history th:nth-child(1){width:21%}.room-recent-history th:nth-child(2){width:29%}.room-recent-history td{padding:4px 0;height:27px;line-height:19px;white-space:nowrap}.room-recent-history td:nth-child(-n+2){color:#6495e6;font-size:10px}.recent-equation{display:flex;align-items:center;justify-content:center;gap:4px;color:#222;font-size:11px}.recent-equation b{display:inline-grid;place-items:center;flex:none;background:#598ff4;color:white;font-size:12px;font-weight:400;width:18px;height:20px}.recent-equation .recent-sum{background:#ff4c57;width:20px}.recent-equation .recent-combo{font-size:10px;white-space:nowrap}.room-recent-history #room-recent-more,.room-recent-history #room-recent-retry{display:block;width:94%;margin:7px auto 0;background:#528cf6;color:#fff;border-radius:4px;font-size:12px;padding:8px 6px;font-weight:400}.recent-message{padding:12px;text-align:center;font-size:11px;color:#8c9db4}@media(max-width:350px){.room-recent-history{padding-left:5px;padding-right:5px}.recent-equation{gap:3px}.recent-equation b{width:16px;height:19px;font-size:11px}.recent-equation .recent-sum{width:18px}.recent-equation .recent-combo{font-size:9px}.room-recent-history td:nth-child(-n+2){font-size:9px}}

/* Compact reference quick-entry keyboard; all six keypad rows stay visible. */
.room-active .room-notice,.room-active .sim-mode-select{display:none!important}.room-nav-title small:empty{display:none}.quick-open .room-composer,.quick-open .room-side-actions{display:none}.quick-open #room-panel-host{flex:none}.quick-open .reference-panel{padding:5px 5px max(4px,env(safe-area-inset-bottom));max-height:none;overflow:hidden;background:#f3f3f9}.quick-open .command-line{height:38px;margin-bottom:4px}.quick-open .number-strip{margin-bottom:4px}.quick-open .digit-picks{gap:5px}.quick-open .pick-digit{width:calc((100% - 25px)/6);flex:0 0 calc((100% - 25px)/6);height:auto;aspect-ratio:1;border-radius:50%;font-size:13px}.quick-open .pick-digit small{font-size:10px}.quick-open .quick-grid{gap:3px;grid-template-columns:repeat(5,minmax(0,1fr))}.quick-open .rule-pick,.quick-open .quick-grid .key{height:clamp(31px,4.5dvh,43px);min-height:0}.quick-open .quick-grid .key.confirm{background:#f60000;color:white;border-color:#f60000;font-size:12px}.quick-open .quick-grid .key.confirm:disabled{background:#f60000;border-color:#f60000;opacity:1}.quick-open .rule-pick small{font-size:10px}.quick-open .room-feed{min-height:0}.quick-open .room-panel{border-top:2px solid #548dfa}.room-nav-title h1:only-child{margin-bottom:0}@media(max-height:650px){.quick-open .command-line{height:34px}.quick-open .rule-pick,.quick-open .quick-grid .key{height:30px}.quick-open .pick-digit{max-height:47px}.quick-open .number-strip{margin-bottom:3px}}

#room-table-host{display:none}.room-page.table-open #room-table-host{display:flex;flex:1;min-height:0;flex-direction:column;background:#f0f0f0;border-top:2px solid #528ff5}.room-page.table-open .room-feed,.room-page.table-open .room-composer,.room-page.table-open #room-panel-host,.room-page.table-open .room-side-actions{display:none}.table-bet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:5px;height:45px;flex:none;background:white;padding:4px 5px}.table-bet-toolbar>button{background:none;color:#a1a6b5;padding:4px 0;font-size:10px;white-space:nowrap}.table-bet-toolbar [role=tablist]{display:flex;background:#f0f0f0;padding:3px;border-radius:3px}.table-bet-toolbar [role=tab]{background:transparent;padding:8px 9px;font-size:12px;color:#aaa}.table-bet-toolbar [role=tab][aria-selected=true]{background:#fff;color:#6c9be4;box-shadow:0 0 2px #ddd}.table-bet-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px}.table-bet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.table-bet-card{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;height:55px;background:#fff;box-shadow:1px 2px 2px #ccc8;border:1px solid #eee;border-radius:4px;padding:3px 4px;font-weight:400;min-width:0}.table-bet-card.wide{grid-column:span 2}.table-bet-card strong{font-size:15px;line-height:19px;font-weight:400;color:#252525}.table-bet-card small{font-size:9px;line-height:12px;color:#aaa}.table-card-stats{position:absolute;bottom:3px;left:4px;right:4px;display:flex;justify-content:space-between;color:#a6adbf;font-size:9px;line-height:10px}.table-bet-card.selected{border-color:#6ba2f4;background:#f0f7ff}.table-bet-card mark{position:absolute;top:2px;right:2px;background:#5599f4;color:white;font-size:9px;border-radius:3px;padding:1px 3px}.table-bet-footer{flex:none;background:white;padding:8px 8px max(10px,env(safe-area-inset-bottom));min-height:85px}.table-chips{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) 32px;gap:4px;margin-bottom:8px}.table-chips button{background:#c1ddf5;color:#fff;padding:8px 0;font-size:10px;border:1px solid transparent}.table-chips button[aria-pressed=true]{background:#83b7ef;border-color:#408ce8}.table-chips #table-settings{font-size:19px;line-height:16px;border-radius:3px}.table-submit-row{display:flex;align-items:center;gap:4px}.table-submit-row>button{padding:7px 9px;font-size:12px;border-radius:3px;color:white;background:#528df7;white-space:nowrap}.table-submit-row #table-summary{flex:1;min-width:0;background:#f0f0f0;color:#333;text-align:left;font-size:11px}.table-submit-row #table-summary b{font-weight:400;color:#ef5c63}.table-submit-row #table-summary>span{float:right;color:#aaa}#room-sound{font-size:20px;line-height:24px;width:28px;justify-content:center}@media(max-height:650px){.table-bet-toolbar{height:40px}.table-bet-card{height:51px}.table-bet-footer{min-height:78px;padding-top:5px}.table-chips{margin-bottom:5px}}

.table-card-stats>span{display:flex;align-items:center;gap:2px}.table-card-stats svg{width:9px;height:10px;stroke:currentColor;fill:none;stroke-width:2}

#room-chase-host{display:none}.room-page.chase-open #room-chase-host{display:flex;flex:1;min-height:0;flex-direction:column;background:white;border-top:2px solid #538df4}.room-page.chase-open .room-feed,.room-page.chase-open .room-composer,.room-page.chase-open .room-side-actions,.room-page.chase-open #room-panel-host,.room-page.chase-open #room-table-host{display:none}.chase-toolbar{position:relative;flex:none;height:37px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:center}.chase-toolbar h2{margin:0;font-size:14px;font-weight:600;color:#111}.chase-toolbar button{position:absolute;right:10px;background:none;color:#bbb;font-size:10px;padding:3px}.chase-layout{display:flex;flex:1;min-height:0}.chase-layout nav{width:25%;border-right:1px solid #eee;flex:none}.chase-layout nav button{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 8px;border-bottom:1px solid #f0f0f0;background:#fff;color:#aaa;text-align:left;font-size:12px}.chase-layout nav button span{visibility:hidden;font-size:24px;line-height:12px;color:#528ef5}.chase-layout nav button[aria-pressed=true]{color:#528ef5;box-shadow:inset 4px 0 #528ef5}.chase-layout nav button[aria-pressed=true] span{visibility:visible}.chase-rule-scroll{flex:1;min-width:0;overflow:auto;padding:9px 8px;overscroll-behavior:contain}.chase-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.chase-rule-grid button{display:flex;align-items:center;justify-content:space-between;gap:5px;border-radius:5px;background:#f3f2f8;color:#a3a3a7;padding:12px 13px;font-size:12px;min-width:0;border:1px solid transparent}.chase-rule-grid button small{font-size:11px;white-space:nowrap}.chase-rule-grid button[aria-pressed=true]{border-color:#6c9ded;background:#eaf3ff;color:#4f8fe5}.chase-footer{flex:none;background:#f3f2f8;padding:9px 10px max(14px,env(safe-area-inset-bottom));margin:0}.chase-fields{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto;align-items:center;gap:8px}.chase-fields input{min-width:0;width:100%;padding:9px 3px;background:#fff;border:1px solid #e0e0e7;border-radius:5px;font-size:12px;text-align:center;height:33px;color:#222}.chase-fields input::placeholder{color:#c2c2c8}.chase-fields span{font-size:12px;color:#222}.chase-actions{display:flex;gap:5px;align-items:center;justify-content:flex-end;margin-top:9px}.chase-actions label{margin-right:auto;display:flex;align-items:center;gap:4px;font-size:12px;color:#111;white-space:nowrap}.chase-actions label input{appearance:auto;width:18px;height:18px;margin:0;accent-color:#709bf4}.chase-actions button{padding:10px 11px;border-radius:4px;background:#aaa;color:white;font-size:12px;white-space:nowrap}.chase-actions #chase-generate{background:#f75043}.chase-footer #chase-builder-error{font-size:11px;color:#c55c65;margin:8px 0 0}.chase-footer #chase-builder-error:empty{display:none}.chase-preview{max-height:42dvh;overflow:auto}.chase-preview table{width:100%;border-collapse:collapse;text-align:center;font-size:12px}.chase-preview th{position:sticky;top:0;background:#eef5ff;color:#6387b8}.chase-preview td,.chase-preview th{padding:8px;border-bottom:1px solid #edf0f6}@media(max-width:350px){.chase-fields{gap:5px}.chase-actions label{font-size:11px}.chase-actions button{padding:9px 8px;font-size:11px}.chase-rule-grid button{padding:10px 8px}.chase-rule-grid{gap:6px}.chase-toolbar button{right:7px;font-size:9px}}

#chip-settings{position:fixed;inset:0;margin:auto;width:100%;max-width:480px;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;background:#f0f0f0;color:#222;overflow:auto;box-shadow:0 0 30px #182c5020}#chip-settings:not([open]){display:none}#chip-settings>header{height:64px;display:grid;grid-template-columns:85px 1fr 85px;align-items:center;background:linear-gradient(110deg,#5485fa,#30b8ef);color:white;padding:0 13px}#chip-settings>header h2{margin:0;font-size:16px;font-weight:500;text-align:center}#chip-settings>header button{padding:0;color:white;background:none;font-size:13px;white-space:nowrap}#chip-settings #chips-back{font-size:32px;text-align:left}#chip-settings>section{background:#fff;padding:10px 9px 9px;border-bottom:1px solid #eee;min-height:70px}#chip-settings>section:nth-of-type(2){min-height:100px;padding-bottom:25px}.chip-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.chip-section-title h3{font-size:13px;font-weight:400;margin:0}.chip-section-title button{background:none;color:#5c93ea;font-size:12px;padding:0}.chip-config-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.chip-config-grid button{position:relative;min-width:0;padding:9px 1px;background:#c1ddf2;color:white;border-radius:4px;font-size:10px;height:29px}.chip-config-grid button span{position:absolute;top:0;right:0;width:10px;height:10px;border-radius:50%;font-size:9px;line-height:9px;background:#f77a70;color:white}#chip-settings #chips-save{display:block;width:94%;margin:14px auto;padding:12px;background:#4e8af5;color:white;border-radius:4px;font-size:14px}#chip-custom-form{display:flex;align-items:flex-end;gap:8px;margin-top:14px}#chip-custom-form[hidden]{display:none}#chip-custom-form label{display:grid;gap:6px;font-size:12px;flex:1;min-width:0}#chip-custom-form input{width:100%;min-width:0;font-size:13px;padding:9px;border:1px solid #d9e2ee;border-radius:4px}#chip-custom-form button{padding:10px 16px;background:#4e8af5;color:#fff;border-radius:4px}#chip-config-error{color:#bf6470;font-size:11px;margin:10px 0 0}#chip-config-error:empty{display:none}.sound-toggle{display:flex;align-items:center;gap:8px;font-size:14px;margin:16px 0}.sound-toggle input{appearance:auto;width:20px;height:20px;accent-color:#5a94ed}.sound-volume{display:grid;gap:12px;font-size:13px;margin:20px 0}.sound-volume input{width:100%;accent-color:#5a94ed}.table-chips[data-count="1"]{grid-template-columns:1fr 32px}.table-chips[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr)) 32px}.table-chips[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr)) 32px}.table-chips[data-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr)) 32px}.table-chips[data-count="5"]{grid-template-columns:repeat(5,minmax(0,1fr)) 32px}

#table-help-page{position:fixed;inset:0;margin:auto;width:100%;max-width:480px;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;background:#fff;color:#333;display:flex;flex-direction:column;overflow:hidden}#table-help-page:not([open]){display:none}#table-help-page>header{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;height:59px;flex:none;border-bottom:1px solid #f3f3f3;padding:0 16px}#table-help-page>header h2{margin:0;text-align:center;font-size:16px;font-weight:500;white-space:nowrap}#table-help-page>header button{display:flex;align-items:center;gap:8px;padding:0;background:none;color:#273052;font-size:28px;justify-self:start}#table-help-page>header button span{font-size:15px;color:#222}.table-help-body{flex:1;min-height:0;overflow:auto;padding:17px 20px 36px;overscroll-behavior:contain}.table-help-body section{margin:0 0 24px}.table-help-body p{font-size:11px;line-height:1.7;color:#808080;margin:0 0 12px}.help-room-demo{position:relative;padding:10px 12px 12px;background:#e7e9ed;border:1px solid #e0e3e8}.help-room-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:17px;color:#5c6c8d}.help-room-nav strong{font-weight:500;font-size:14px}.help-room-nav b{display:grid;place-items:center;background:#fff;color:#568ff1;border:2px solid #76a5ee;border-radius:3px;width:32px;height:29px}.help-room-balance{display:grid;grid-template-columns:1fr 1fr;text-align:center;border-radius:5px;background:#548ff0;color:#e2edff;padding:12px;font-size:10px;line-height:1.9}.help-room-balance strong{color:white;font-weight:500;font-size:13px}.help-illustration-label{position:absolute;right:14px;bottom:2px;font-size:7px;color:#8e99ab}.help-chip-demo{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) 28px;gap:4px;padding:5px 8px}.help-chip-demo>span{display:grid;place-items:center;height:29px;background:#bbdef4;color:#fff;border-radius:4px;font-size:10px}.help-chip-demo>.chosen{background:#548df5}.help-card-demo{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#f3f3f7;padding:9px}.help-card-demo>div{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;background:#fff;border:1px solid #edf0f4;border-radius:5px;height:71px;padding:7px}.help-card-demo strong{font-size:16px;font-weight:400;color:#555}.help-card-demo small{font-size:9px;color:#a1a5ae;margin-top:3px}.help-card-demo footer{position:absolute;bottom:5px;left:6px;right:6px;display:flex;justify-content:space-between;font-size:8px;color:#9ba5bc}.help-card-demo>.chosen{border:2px solid #8ac3ec}.help-card-demo>.chosen strong{color:#6c9be7}.help-card-demo mark{font-size:9px;color:white;background:#548ef1;border-radius:2px;padding:2px 8px;margin-top:2px}.help-summary-demo{display:flex;align-items:center;gap:5px;padding:10px 7px;background:#ededf2;font-size:10px}.help-summary-demo>span{flex:1;min-width:0;padding:8px;background:#fff;border:2px solid #b3cff6}.help-summary-demo b{font-weight:400;color:#ed666b}.help-summary-demo i{float:right;font-style:normal;color:#8a9bba}.help-summary-demo em{background:#91b4ec;color:#fff;padding:9px 6px;font-style:normal;border-radius:3px;font-size:9px}

.robot-avatar{flex:none;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#123d83,#358edb);display:grid;place-content:center;text-align:center;font-size:22px;color:white;box-shadow:inset 0 0 0 2px #fff5}.robot-avatar small{font-size:7px}.robot-line{align-items:flex-start}.robot-line .chat-author{color:#538ce5}.robot-line .chat-author span{background:#538ce5;color:white;border-radius:50%;padding:0 3px}.robot-line .chat-content{min-width:0;max-width:calc(100% - 52px);width:290px}.robot-bill,.robot-result{background:white;border-radius:5px;overflow:hidden;font-size:12px}.robot-bill header{padding:8px}.robot-total{font-size:10px;color:#8c96aa;padding:0 8px 7px}.robot-bill details{margin:0 6px;background:#f8f8f8;border-bottom:1px solid white}.robot-bill summary{display:flex;align-items:center;padding:6px 8px;gap:8px;cursor:pointer;list-style:none}.robot-bill summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.robot-bill summary b{font-size:11px;font-weight:400;color:#8b95a6}.robot-bill summary:after{content:'▶';font-size:10px;color:#4b4d54}.robot-bill details[open] summary:after{transform:rotate(90deg)}.robot-bill details p{padding:4px 8px 8px;margin:0;line-height:1.8;color:#657897}.robot-result header{background:#5089fb;padding:8px;color:white}.robot-result>div{display:flex;align-items:center;justify-content:center;gap:5px;padding:18px 6px}.robot-result b{display:grid;place-items:center;background:#548dfc;color:white;width:24px;height:24px;font-weight:400}.robot-result b.sum{background:#ff4c57}.robot-result span{font-size:11px}.win-feed{text-align:center;margin:12px 0}.win-feed button{background:linear-gradient(125deg,#fff1a4,#ffe0a1);color:#925319;border:1px solid #efd08b;border-radius:10px;padding:12px 18px;box-shadow:0 2px 8px #d3973220;font-size:13px}.win-feed span{display:block;margin-top:5px;font-size:11px}#win-treasure{top:50%;bottom:auto;transform:translateY(-50%);width:calc(100% - 40px);max-width:360px;background:radial-gradient(ellipse at 50% 30%,#7045a3,#251444 85%);color:#ffe6a6;border-radius:24px;text-align:center;padding:30px 18px;overflow:hidden}#win-treasure::backdrop{background:#100b22aa}#win-treasure h2{font-size:28px;letter-spacing:4px;margin:4px 0}#win-treasure>strong{display:block;font-size:34px;color:#ffd167}#win-treasure p{font-size:12px;color:#e4d5ef}.win-close{position:absolute;right:12px;top:8px;background:none;color:#e4d5ef;font-size:27px}.win-done{border-radius:25px;background:linear-gradient(#ffe497,#f1af37);color:#67391c;padding:12px 50px;margin-top:10px;font-weight:bold}.treasure-scene{height:205px;position:relative;display:grid;place-items:end center;padding-bottom:25px}.treasure-glow{position:absolute;inset:10px;background:radial-gradient(ellipse,#ffd75f88,transparent 65%);animation:treasure-pulse 1.2s ease-in-out infinite alternate}.treasure-box{width:114px;height:68px;border:7px solid #ffca50;background:linear-gradient(90deg,#974117,#cf6c23,#974117);border-radius:9px;position:relative;box-shadow:0 7px 20px #0005;z-index:2}.treasure-box:before{content:'';position:absolute;left:-7px;right:-7px;top:-40px;height:39px;border:7px solid #ffd473;border-radius:22px 22px 3px 3px;background:linear-gradient(#df9637,#9e471d);transform:rotate(-16deg);transform-origin:0 100%;animation:chest-open .65s ease-out}.treasure-box span{position:absolute;top:13px;left:38px;color:#ffe9a6;font-size:25px}.prize-coin{position:absolute;left:calc(50% - 12px);bottom:60px;border-radius:50%;width:25px;height:25px;border:2px solid #fff1a2;color:#b17a16;background:linear-gradient(135deg,#fff191,#ffc12d);font-style:normal;font-size:16px;line-height:21px;opacity:0;animation:coin-burst 1.6s var(--delay) ease-out 2;z-index:3}@keyframes coin-burst{0%{opacity:0;transform:translate(0,0) scale(.4)}15%{opacity:1}60%{opacity:1;transform:translate(var(--x),var(--y)) rotate(var(--r))}100%{opacity:0;transform:translate(var(--x),80px) rotate(var(--r))}}@keyframes chest-open{from{transform:rotate(0)}to{transform:rotate(-16deg)}}@keyframes treasure-pulse{to{opacity:.45;transform:scale(1.2)}}@media(prefers-reduced-motion:reduce){.prize-coin{animation:none;opacity:.7;transform:translate(var(--x),var(--y))}.treasure-glow,.treasure-box:before{animation:none}}

.bet-record-route #app-header,.bet-record-route #bottom-nav{display:none}.bet-record-route .phone{padding-bottom:0;background:#f5f7fc}.bet-record-page{min-height:100dvh;color:#28324c}.bet-record-nav{height:64px;display:flex;align-items:stretch;background:white;border-bottom:1px solid #f5f5f5;padding:0 12px;gap:12px}.bet-record-nav>a{display:grid;place-items:center;width:27px}.bet-record-nav button{position:relative;flex:1;background:none;color:#27314d;font-size:14px;white-space:nowrap;padding:0}.bet-record-nav button.active{color:#3193ec}.bet-record-nav button.active:after{content:'';position:absolute;bottom:0;left:35%;right:35%;height:4px;background:#3193ec;border-radius:4px}.bet-record-filters{background:#fff;padding:13px 14px 16px;border-bottom:9px solid #f5f8fc}.bet-date-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.bet-date-presets button{background:white;border:1px solid #e5e5e5;border-radius:3px;height:40px;font-size:14px;color:#202638}.bet-date-presets button.active{color:white;border-color:transparent;background:linear-gradient(100deg,#20cbe9,#008cfa)}.bet-record-filters>p{font-size:11px;color:#7882a2;margin:14px 0 0}.bet-room-filter{display:flex;align-items:center;justify-content:space-between;padding:15px 14px;font-size:12px;gap:12px}.bet-room-filter select{background:white;color:#3e435c;border:0;max-width:70%;font-size:12px}.bet-record-overview{background:white}.bet-record-metrics{display:flex;align-items:center}#bet-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:1}#bet-metrics>div{padding:12px 2px;text-align:center;border-right:1px solid #f5f5fa;display:flex;flex-direction:column;gap:5px;min-width:0}#bet-metrics span{font-size:11px}#bet-metrics b{font-size:12px;color:#ef548b;font-weight:500;overflow-wrap:anywhere}.bet-record-metrics>span{font-size:12px;padding:0 12px;white-space:nowrap}.bet-record-empty{min-height:55dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#969ebd;font-size:15px}.bet-record-empty svg{width:70px;height:62px;stroke:#b0b5cc;stroke-width:3}.bet-record-empty p{margin:10px 0}.bet-order{background:white;margin:10px;padding:13px;border-radius:7px;font-size:12px}.bet-order header{display:flex;justify-content:space-between;gap:8px}.bet-order header span{color:#4696e5}.bet-order p{color:#939cb0;font-size:10px;display:flex;justify-content:space-between;gap:5px}.bet-order>div{line-height:1.8;padding:6px 0}.bet-order footer{display:flex;justify-content:space-between;border-top:1px solid #f0f2f6;padding-top:9px;color:#8e99ae}.bet-order b{color:#ee5891;font-weight:500}.bet-room-totals section{margin:10px;background:white;padding:12px;border-radius:6px}.bet-room-totals h3{font-size:13px;margin:0 0 10px}.bet-room-totals small{float:right;color:#8c96aa;font-weight:400}.bet-room-totals section>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));text-align:center}.bet-room-totals section>div>div{display:flex;flex-direction:column;gap:6px;font-size:10px}.bet-room-totals b{font-size:12px;font-weight:400;color:#ee5891;overflow-wrap:anywhere}.bet-record-pager{display:flex;align-items:center;justify-content:center;gap:20px;font-size:12px;padding:15px}.bet-record-pager button,#bet-custom-date button{background:#338ff1;color:white;padding:8px;border-radius:4px}.bet-report-error{padding:25px;text-align:center;color:#df5767;font-size:12px}#bet-custom-date{display:flex;align-items:center;gap:4px;margin-top:12px;font-size:11px}#bet-custom-date input{min-width:0;width:38%;padding:6px 2px;border:1px solid #e1e5ee;border-radius:3px;background:white}#bet-custom-date button{white-space:nowrap}@media(max-width:350px){.bet-record-nav{gap:5px}.bet-record-nav button{font-size:13px}.bet-date-presets button{font-size:12px}.bet-record-metrics>span{padding:0 7px;font-size:10px}#bet-metrics span{font-size:10px}}

.room-composer #room-table:disabled,.room-composer #room-quick:disabled,.room-composer #chat-send:disabled{background:#aaa!important;color:white!important;opacity:1;cursor:default;box-shadow:none}.room-composer input:disabled{background:#fff;color:#b5b5b5;opacity:1}.room-composer input:disabled::placeholder{color:#c5c5c5}

.room-composer #room-table:not(:disabled){background:#5089fa;color:#fff;border-color:#5089fa;opacity:1}

.room-choice .room-logo{width:54px;height:54px;flex:none;display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:50%;color:white;background:radial-gradient(circle at 35% 25%,#728fda,#303888 65%,#171e56);box-shadow:inset 0 0 0 2px #dfc67b,0 2px 5px #242b6025;line-height:1}.room-logo>span{font-size:23px}.room-logo>b{font-size:20px;letter-spacing:1px;margin-top:1px}

.room-choice img.room-logo{display:block;object-fit:cover;border-radius:50%;background:#1c083a;box-shadow:0 2px 6px #37104425}

.robot-avatar>img{width:29px;height:29px;object-fit:contain;border-radius:50%;display:block;margin:0 auto}

.pending-bet .bet-bubble small{display:block;font-size:10px;color:#94a0b6;margin-top:6px}.pending-bet [data-retry-bet]{background:#eaf2ff;color:#4187c7;font-size:11px;padding:5px 9px;margin-top:7px;border-radius:5px}

/* One shared draw-result color prevents header/history/robot divergence. */
.room-page{--draw-result-red:#ff4c57}.room-last-result .room-sum,.recent-equation .recent-sum,.robot-result b.sum{background-color:var(--draw-result-red)}

/* Coin paths are stylesheet rules so CSP does not block the win animation. */
#win-treasure .prize-coin:nth-of-type(1){--x:0px;--y:-90px;--r:0deg;--delay:0.0s}
#win-treasure .prize-coin:nth-of-type(2){--x:98px;--y:-114px;--r:51deg;--delay:0.025s}
#win-treasure .prize-coin:nth-of-type(3){--x:-144px;--y:-138px;--r:102deg;--delay:0.05s}
#win-treasure .prize-coin:nth-of-type(4){--x:115px;--y:-162px;--r:153deg;--delay:0.075s}
#win-treasure .prize-coin:nth-of-type(5){--x:-25px;--y:-186px;--r:204deg;--delay:0.1s}
#win-treasure .prize-coin:nth-of-type(6){--x:-78px;--y:-90px;--r:255deg;--delay:0.125s}
#win-treasure .prize-coin:nth-of-type(7){--x:140px;--y:-114px;--r:306deg;--delay:0.15s}
#win-treasure .prize-coin:nth-of-type(8){--x:-129px;--y:-138px;--r:357deg;--delay:0.175s}
#win-treasure .prize-coin:nth-of-type(9){--x:50px;--y:-162px;--r:408deg;--delay:0.2s}
#win-treasure .prize-coin:nth-of-type(10){--x:55px;--y:-186px;--r:459deg;--delay:0.225s}
#win-treasure .prize-coin:nth-of-type(11){--x:-131px;--y:-90px;--r:510deg;--delay:0.25s}
#win-treasure .prize-coin:nth-of-type(12){--x:138px;--y:-114px;--r:561deg;--delay:0.275s}
#win-treasure .prize-coin:nth-of-type(13){--x:-73px;--y:-138px;--r:612deg;--delay:0.3s}
#win-treasure .prize-coin:nth-of-type(14){--x:-31px;--y:-162px;--r:663deg;--delay:0.325s}
#win-treasure .prize-coin:nth-of-type(15){--x:119px;--y:-186px;--r:714deg;--delay:0.35s}
#win-treasure .prize-coin:nth-of-type(16){--x:-144px;--y:-90px;--r:765deg;--delay:0.375s}
#win-treasure .prize-coin:nth-of-type(17){--x:94px;--y:-114px;--r:816deg;--delay:0.4s}
#win-treasure .prize-coin:nth-of-type(18){--x:6px;--y:-138px;--r:867deg;--delay:0.425s}
#win-treasure .prize-coin:nth-of-type(19){--x:-102px;--y:-162px;--r:918deg;--delay:0.45s}
#win-treasure .prize-coin:nth-of-type(20){--x:145px;--y:-186px;--r:969deg;--delay:0.475s}
#win-treasure .prize-coin:nth-of-type(21){--x:-111px;--y:-90px;--r:1020deg;--delay:0.5s}
#win-treasure .prize-coin:nth-of-type(22){--x:19px;--y:-114px;--r:1071deg;--delay:0.525s}
#win-treasure .prize-coin:nth-of-type(23){--x:83px;--y:-138px;--r:1122deg;--delay:0.55s}
#win-treasure .prize-coin:nth-of-type(24){--x:-141px;--y:-162px;--r:1173deg;--delay:0.575s}
button.room-balance-refresh{font:inherit;border:0;background:transparent;cursor:pointer;color:inherit}button.room-balance-refresh span{display:block}button.room-balance-refresh i{font-size:18px;font-style:normal;display:inline-block;color:#448fe6;margin-left:4px}button.room-balance-refresh[aria-busy=true] i{animation:room-refresh-spin 1s linear infinite}button.room-balance-refresh:disabled{opacity:.7}.room-close-notice{text-align:center;padding:0 0 12px}.room-close-title{padding:20px;border-radius:16px;background:linear-gradient(110deg,#39c8e6,#1764e9);color:white;font-size:21px;font-weight:600;margin:5px 0 26px}.room-close-notice h2{padding:0!important}.room-close-notice small{color:#9ba8be;font-size:12px}.room-close-notice button{margin-top:25px}@keyframes room-refresh-spin{to{transform:rotate(360deg)}}

.room-round-box[role=button]{cursor:pointer}.room-status-dialog{top:50%;bottom:auto!important;transform:translateY(-50%);padding:0!important;width:calc(100% - 64px);max-width:360px;border-radius:23px!important;max-height:85dvh}.room-status-dialog .sheet-grip{display:none}.room-status-dialog #sheet-close{top:11px;right:9px;color:white;z-index:3}.room-status-dialog .room-close-notice{padding:0}.room-status-dialog .room-close-title{margin:0;padding:20px 30px 30px;border-radius:0;color:#fff;font-size:21px}.room-status-dialog .room-close-content{margin-top:-12px;position:relative;background:white;border-radius:22px;padding:26px 18px 28px}.room-status-dialog .room-close-content h2{font-size:17px;margin:0 0 12px}.room-close-pill{display:inline-block;border-radius:24px;padding:8px 20px;background:#f7f5fd;color:#e95d8d;font-size:14px}.room-status-dialog .room-close-content>p{margin:22px 0 16px;font-size:15px;color:#6279a3}.room-close-info{padding:20px 14px;border-radius:18px;background:linear-gradient(135deg,#f5f7fd,#fff);color:#7b90b2;font-size:13px}.room-close-info strong{color:#5b74a1;font-size:14px}.room-close-info p{font-size:12px!important}.room-status-dialog #room-close-stay{width:100%;margin:0;padding:18px;border:0;border-radius:0;background:#f6f5ff;color:#6381d4;font-size:17px}
