/* MannBets v3 UI: auth, dice, profile panel, affiliate, settings. All selectors are prefixed (mbx-, dzx-) so
   they cannot collide with the older layered styles in index.html. */
:root{--mbx-bg:#131618;--mbx-card:#1f2428;--mbx-card2:#282e32;--mbx-in:#161a1d;--mbx-line:#373d43;
--mbx-tx:#eef3f6;--mbx-mu:#97a6b2;--mbx-blue:#6e90c8;--mbx-blue2:#5c78a9;--mbx-green:#5fdc47;--mbx-red:#ef3855;--mbx-teal:#6fd3c0}

/* ---------- toast ---------- */
#mbxToast{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);z-index:10090;background:#161b1f;color:#fff;border:1px solid var(--mbx-line);padding:11px 16px;border-radius:12px;font:650 13.5px system-ui;opacity:0;pointer-events:none;transition:.25s;max-width:min(92vw,420px);text-align:center;box-shadow:0 12px 30px #000a}
#mbxToast.on{opacity:1;transform:translate(-50%,0)}

/* ---------- AUTH ---------- */
.mbx-auth{max-width:460px;margin:8px auto 28px;color:var(--mbx-tx)}
.mbx-hero{position:relative;height:150px;border-radius:20px;overflow:hidden;margin-bottom:12px;background:radial-gradient(ellipse at 70% 80%,#5688c155,transparent 60%),linear-gradient(145deg,#253649,#11171e);border:1px solid #425b74}
.mbx-hero img{position:absolute;right:6px;bottom:-6px;height:158px;width:auto;object-fit:contain;filter:drop-shadow(0 10px 18px #0009)}
.mbx-hero-copy{position:absolute;left:18px;top:20px}
.mbx-hero-copy small{display:block;letter-spacing:.16em;font:700 11px system-ui;color:#a3bedb}
.mbx-hero-copy b{display:block;font:900 30px/1.1 system-ui;margin:4px 0 4px}
.mbx-hero-copy b em{font-style:normal;color:#89b0db}
.mbx-hero-copy span{font:600 13px system-ui;color:#b9cde2}
.mbx-sheet{background:var(--mbx-card);border:1px solid var(--mbx-line);border-radius:22px;padding:6px 18px 20px;box-shadow:0 18px 44px #0007}
.mbx-tabs{display:flex;gap:22px;border-bottom:1px solid var(--mbx-line);margin:0 0 18px}
.mbx-tabs button{background:none;border:0;color:var(--mbx-mu);font:750 20px system-ui;padding:16px 0 13px;position:relative;cursor:pointer;touch-action:manipulation}
.mbx-tabs button.on{color:#fff}
.mbx-tabs button.on:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--mbx-teal);border-radius:2px}
.mbx-field{margin:0 0 4px}
.mbx-field>label{display:block;font:700 15px system-ui;color:#d9e2e8;margin:14px 0 8px}
.mbx-input{display:flex;align-items:center;gap:11px;background:var(--mbx-in);border:1.5px solid var(--mbx-line);border-radius:13px;padding:0 14px;height:52px;transition:border-color .15s,box-shadow .15s}
.mbx-input:focus-within{border-color:#607482}
.mbx-input.ok{border-color:#5fb89e;box-shadow:0 0 0 3px #5fb89e22}
.mbx-input.bad{border-color:#d9566a;box-shadow:0 0 0 3px #d9566a22}
.mbx-input svg{width:19px;height:19px;flex:0 0 19px;stroke:#8697a4;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mbx-input input{flex:1;min-width:0;background:none;border:0;outline:0;color:#fff;font:600 16px system-ui;padding:0;margin:0;height:100%;box-shadow:none}
.mbx-input input::placeholder{color:#697884;font-weight:500}
.mbx-input button.mbx-eye{background:none;border:0;padding:6px;margin:-6px;cursor:pointer;display:flex}
.mbx-input .mbx-tick{stroke:#7be0bd;stroke-width:2.4}
.mbx-status{display:flex;align-items:center;gap:8px;min-height:22px;margin:9px 0 0;font:600 14px system-ui;color:var(--mbx-mu)}
.mbx-status i{width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-size:11px;font-weight:900;color:#0b1a17;background:#7be0bd;flex:0 0 18px}
.mbx-status.bad{color:#ff8a9a}.mbx-status.bad i{background:#ff6a80;color:#2a0710}
.mbx-status.wait i{background:#56626c;color:#56626c;animation:mbxp 1s infinite}
@keyframes mbxp{50%{opacity:.35}}
.mbx-check{display:flex;gap:13px;align-items:flex-start;margin:16px 0 0;font:500 15px/1.4 system-ui;color:#b5c2cb;cursor:pointer}
.mbx-check input{position:absolute;opacity:0;pointer-events:none}
.mbx-box{flex:0 0 26px;width:26px;height:26px;border:1.6px solid #52626f;border-radius:7px;background:var(--mbx-in);display:flex;align-items:center;justify-content:center;transition:.15s;margin-top:-1px}
.mbx-box svg{width:16px;height:16px;stroke:#0b1a17;stroke-width:3;fill:none;opacity:0;stroke-linecap:round;stroke-linejoin:round}
.mbx-check input:checked+.mbx-box{background:var(--mbx-teal);border-color:var(--mbx-teal)}
.mbx-check input:checked+.mbx-box svg{opacity:1}
.mbx-check a{color:#cfe4ea;text-decoration:underline;text-underline-offset:3px}
.mbx-promo{border-top:1px solid var(--mbx-line);border-bottom:1px solid var(--mbx-line);margin:18px -18px 0;padding:0 18px}
.mbx-promo-head{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:0;color:#aab8c2;font:600 15px system-ui;padding:16px 0;cursor:pointer;text-align:left}
.mbx-promo-head svg{width:18px;height:18px;stroke:#aab8c2;fill:none;stroke-width:2;transition:.2s}
.mbx-promo.open .mbx-promo-head svg{transform:rotate(180deg)}
.mbx-promo-body{display:none;padding:0 0 16px}.mbx-promo.open .mbx-promo-body{display:block}
.mbx-err{color:#ff8a9a;font:600 14px system-ui;min-height:20px;margin:12px 0 0}
.mbx-ok{color:#7be0bd;font:600 14px system-ui;margin:12px 0 0}
.mbx-go{width:100%;height:54px;border:0;border-radius:14px;background:linear-gradient(135deg,#7d9fd3,#5c78a9);color:#fff;font:800 17px system-ui;margin-top:16px;cursor:pointer;box-shadow:0 8px 20px #5c78a955;transition:.15s;touch-action:manipulation}
.mbx-go:disabled{background:#2a3034;color:#5d6c77;box-shadow:none;cursor:not-allowed}
.mbx-go:not(:disabled):active{transform:scale(.985)}
.mbx-link{background:none;border:0;color:#a3bedb;font:650 14px system-ui;padding:0;cursor:pointer}
.mbx-or{display:flex;align-items:center;gap:12px;color:#8b99a4;font:600 13.5px system-ui;margin:20px 0 14px}
.mbx-or:before,.mbx-or:after{content:"";flex:1;height:1px;background:var(--mbx-line)}
.mbx-social{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.mbx-social button{height:54px;border-radius:13px;border:1px solid var(--mbx-line);background:var(--mbx-card2);display:flex;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation}
.mbx-social button:active{background:#333a40}
.mbx-social svg{width:24px;height:24px}
.mbx-foot{text-align:center;color:#74838e;font:500 12.5px system-ui;margin-top:14px}
.mbx-code input{text-align:center;font:800 24px/1 ui-monospace,Menlo,monospace!important;letter-spacing:.3em}

/* ---------- DICE ---------- */
.dzx{background:linear-gradient(160deg,#1f252b,#161a1e);border:1px solid #353d44;border-radius:22px;padding:14px 14px 18px;margin-bottom:12px;overflow:hidden}
.dzx-chips{display:flex;justify-content:flex-end;gap:8px;min-height:44px;overflow:hidden;margin-bottom:10px}
.dzx-chip{min-width:70px;height:40px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border-radius:22px;font:800 16px system-ui;flex:0 0 auto;animation:dzin .25s ease}
.dzx-chip.win{background:#6bde4a;color:#102208}.dzx-chip.lose{background:#3c4349;color:#d0dae1}
@keyframes dzin{from{transform:translateX(18px) scale(.8);opacity:0}}
.dzx-axis{position:relative;margin:30px 14px 0;height:44px}
.dzx-axis span{position:absolute;top:0;transform:translateX(-50%);font:800 19px system-ui;color:#e9eef2}
.dzx-axis i{position:absolute;top:30px;width:18px;height:12px;margin-left:-9px;background:#3c4349;clip-path:polygon(50% 0,100% 100%,0 100%)}
.dzx-wrap{position:relative;margin:0}
.dzx-rail{position:relative;height:84px;border-radius:44px;background:#3c4349;touch-action:none;user-select:none;-webkit-user-select:none;cursor:pointer;margin-bottom:52px}
.dzx-inner{position:absolute;left:14px;right:14px;top:50%;height:44px;margin-top:-22px;border-radius:24px;background:#15181b;box-shadow:inset 0 2px 7px #000a}
.dzx-bar{position:absolute;left:14px;right:14px;top:50%;height:14px;margin-top:-7px;border-radius:9px;pointer-events:none;overflow:hidden}
.dzx-bar b{position:absolute;top:0;bottom:0}
.dzx-bar .r{background:var(--mbx-red)}.dzx-bar .g{background:var(--mbx-green)}
.dzx-track{position:absolute;left:14px;right:14px;top:0;bottom:0}
.dzx-thumb{position:absolute;top:50%;width:54px;height:56px;margin:-28px 0 0 -27px;border-radius:10px;background:linear-gradient(160deg,#7f9fd4,#617eb2);box-shadow:0 6px 14px #0009,inset 0 1px 0 #ffffff40;display:flex;align-items:center;justify-content:center;gap:5px;cursor:grab;z-index:3;touch-action:none}
.dzx-thumb:active{cursor:grabbing;transform:scale(1.04)}
.dzx-thumb i{width:3.5px;height:24px;border-radius:2px;background:#fff;opacity:.95}
.dzx-mark{position:absolute;top:calc(100% + 8px);transform:translate(-50%,0) scale(.7);opacity:0;pointer-events:none;z-index:4;transition:left .45s cubic-bezier(.2,.9,.3,1.1),opacity .2s,transform .2s;display:flex;flex-direction:column;align-items:center}
.dzx-mark.show{opacity:1;transform:translate(-50%,0) scale(1)}
.dzx-mark span{min-width:62px;text-align:center;padding:7px 11px;border-radius:12px;font:900 17px system-ui;color:#fff;box-shadow:0 6px 16px #000a;background:#373f45}
.dzx-mark.win span{background:#2aa84a}.dzx-mark.lose span{background:#d63b57}
.dzx-mark:before{content:"";width:0;height:0;border:8px solid transparent;border-bottom-color:#373f45;margin-bottom:-1px}
.dzx-mark.win:before{border-bottom-color:#2aa84a}.dzx-mark.lose:before{border-bottom-color:#d63b57}
.dzx-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px;background:#24292f;border-radius:18px;padding:14px 12px 12px}
.dzx-fields label{font:700 15px system-ui;color:#a7b4be;display:block;margin:0 0 8px 2px;white-space:nowrap}
.dzx-in{display:flex;align-items:center;height:54px;border:1.5px solid #3d454b;background:#1b2024;border-radius:16px;padding:0 10px 0 12px;gap:4px}
.dzx-in:focus-within{border-color:#6b85a5}
.dzx-in input{flex:1;min-width:0;width:100%;background:none;border:0;outline:0;color:#fff;font:650 17px system-ui;padding:0;margin:0;height:100%;box-shadow:none}
.dzx-in span,.dzx-in button{color:#cfd9e0;font:700 16px system-ui}
.dzx-in button{background:none;border:0;padding:6px;margin:-4px -4px -4px 0;cursor:pointer;display:flex}
.dzx-in svg{width:22px;height:22px;stroke:#e5edf2;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dzx-bet .btn{margin-bottom:12px}
.dzx-money{display:flex;align-items:center;gap:8px;height:52px;border:1.5px solid #3d454b;background:#171b1e;border-radius:14px;padding:0 12px;margin:6px 0 4px;color:#9aa9b4;font:650 18px system-ui}
.dzx-money input{flex:1;min-width:0;background:none!important;border:0!important;outline:0;color:#fff;font:650 18px system-ui;padding:0!important;margin:0!important;height:100%;box-shadow:none!important}
.dzx-money input[readonly]{color:#cfd9e0}
.dzx-flag{width:30px;height:20px;border-radius:3px;flex:0 0 30px;background:linear-gradient(#b22234 0 7.7%,#fff 7.7% 15.4%,#b22234 15.4% 23.1%,#fff 23.1% 30.8%,#b22234 30.8% 38.5%,#fff 38.5% 46.2%,#b22234 46.2% 53.9%,#fff 53.9% 61.6%,#b22234 61.6% 69.3%,#fff 69.3% 77%,#b22234 77% 84.7%,#fff 84.7% 92.4%,#b22234 92.4%);position:relative;overflow:hidden}
.dzx-flag:before{content:"";position:absolute;left:0;top:0;width:45%;height:54%;background:#4f4e6b}
.dzx-lab{display:flex;justify-content:space-between;align-items:center;font:700 16px system-ui;color:#c5d0d8;margin:12px 2px 2px}
.dzx-lab small{font:600 14px system-ui;color:#8b9aa6}
.dzx-fair{width:100%;display:flex;align-items:center;gap:12px;margin-top:12px;border:0;border-radius:14px;background:#2d3439;color:#e8eff3;font:700 15px system-ui;padding:14px 16px;cursor:pointer}
.dzx-fair svg{width:20px;height:20px;stroke:#a8bad3;fill:none;stroke-width:2}
@media(max-width:400px){.dzx-axis span{font-size:17px}.dzx-fields{gap:7px;padding:12px 9px}.dzx-fields label{font-size:13.5px}.dzx-in{padding:0 8px;height:50px}.dzx-in input{font-size:15.5px}}

/* ---------- PROFILE PANEL (dropdown) ---------- */
html body #pm.mbx-pm{position:fixed!important;z-index:10030!important;right:10px!important;left:auto!important;top:calc(70px + env(safe-area-inset-top,0px))!important;width:min(344px,calc(100vw - 20px))!important;max-height:calc(100dvh - 92px)!important;overflow-y:auto!important;padding:0!important;border-radius:20px!important;background:#1c2125!important;border:1px solid #3d454d!important;box-shadow:0 24px 60px #000c!important;-webkit-overflow-scrolling:touch}
#pm.mbx-pm[hidden]{display:none!important}
.mbx-pm-head{padding:16px 16px 14px;background:linear-gradient(150deg,#33455b,#1d252e 70%);border-radius:20px 20px 0 0;border-bottom:1px solid #353e45}
.mbx-pm-user{display:flex;gap:13px;align-items:center}
.mbx-av{width:52px;height:52px;border-radius:16px;background:linear-gradient(145deg,#90b6db,#5b7bb3);display:flex;align-items:center;justify-content:center;font:900 24px system-ui;color:#fff;box-shadow:inset 0 1px 0 #fff6,0 6px 14px #0007;flex:0 0 52px;text-transform:uppercase}
.mbx-pm-user b{display:block;font:800 18px system-ui;color:#fff;word-break:break-all}
.mbx-pm-user small{display:block;font:500 12.5px system-ui;color:#9fb6cc;margin-top:2px;word-break:break-all}
.mbx-pm-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.mbx-tag{display:inline-flex;align-items:center;gap:6px;background:#14191fa8;border:1px solid #445363;color:#cfe3f7;border-radius:20px;padding:5px 10px;font:700 12px system-ui}
.mbx-tag svg{width:13px;height:13px;stroke:#a3bedb;fill:none;stroke-width:2}
.mbx-pm-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 12px 4px}
.mbx-pm-stats section{background:#262c31;border-radius:13px;padding:10px 12px}.mbx-pm-stats .wide{grid-column:1/-1}
.mbx-pm-stats small{display:block;font:700 10.5px system-ui;letter-spacing:.08em;color:#8a9ba8}
.mbx-pm-stats b{display:block;font:800 16px system-ui;color:#fff;margin-top:3px}
.mbx-pm-list{padding:8px 8px 10px}
.mbx-pm-grp{font:800 10.5px system-ui;letter-spacing:.12em;color:#6f808d;padding:10px 10px 4px}
.mbx-pm-item{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;color:#e9f0f5;text-align:left;border-radius:12px;padding:10px;font:650 14.5px system-ui;cursor:pointer;touch-action:manipulation}
.mbx-pm-item:active,.mbx-pm-item:hover{background:#2e363e}
.mbx-pm-ic{width:34px;height:34px;border-radius:10px;background:#2c333a;display:flex;align-items:center;justify-content:center;flex:0 0 34px}
.mbx-pm-ic svg{width:18px;height:18px;stroke:#a3bedb;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mbx-pm-txt{flex:1;min-width:0}
.mbx-pm-txt small{display:block;font:600 12px system-ui;color:#95a7b8;margin-top:1px}
.mbx-pm-copy{border:1px solid #4a5a6a;background:#28323b;color:#aec1d4;border-radius:9px;font:800 11.5px system-ui;padding:6px 10px;cursor:pointer}
.mbx-pm-item.out .mbx-pm-ic svg{stroke:#ff8c9b}.mbx-pm-item.out{color:#ffb3bd}

/* ---------- PAGES (profile / affiliate / settings) ---------- */
.mbx-page{color:var(--mbx-tx);padding-bottom:26px}
.mbx-title{display:flex;align-items:center;gap:12px;font:850 26px system-ui;margin:14px 2px 16px}
.mbx-title svg{width:30px;height:30px;stroke:#8da3b5;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mbx-nav{display:flex;gap:10px;margin:0 0 18px}
.mbx-navbtn{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;background:#3a444e;border:0;border-radius:14px;color:#fff;font:700 17px system-ui;padding:0 16px;height:58px;cursor:pointer;touch-action:manipulation}
.mbx-navbtn.sq{flex:0 0 74px;justify-content:center}
.mbx-navbtn svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.mbx-menu{background:#1f2226;border:1px solid #30363b;border-radius:20px;padding:10px;margin-bottom:14px}
.mbx-menu button{display:block;width:100%;text-align:left;background:none;border:0;color:#eef3f6;font:600 18px system-ui;padding:20px 16px;border-radius:12px;cursor:pointer}
.mbx-menu button.on{background:#30363b}
.mbx-card{background:#21262a;border:1px solid #32383e;border-radius:20px;padding:18px;margin-bottom:14px}
.mbx-card h3{font:800 20px system-ui;margin:0 0 6px;display:flex;align-items:center;gap:10px}
.mbx-card h4{font:800 16px system-ui;margin:0 0 8px}
.mbx-card p{color:#98a8b4;font:500 15px/1.55 system-ui;margin:0 0 12px}
.mbx-hr{height:1px;background:#353b41;margin:14px -18px}
.mbx-badge{display:inline-block;font:800 13px system-ui;padding:3px 10px;border-radius:12px;background:#52d38a;color:#07261a;vertical-align:middle}
.mbx-badge.no{background:#e9b44c;color:#2b1c03}
.mbx-badge.mu{background:#434950;color:#cdd8df}
.mbx-label{display:block;font:700 15px system-ui;color:#c4d0d8;margin:12px 0 8px}
.mbx-in2{display:flex;align-items:center;gap:8px;background:#161a1d;border:1.5px solid #3d454b;border-radius:14px;padding:0 14px;height:52px}
.mbx-in2:focus-within{border-color:#6b85a5}
.mbx-in2 input,.mbx-in2 select{flex:1;min-width:0;background:none!important;border:0!important;outline:0;color:#fff;font:600 16px system-ui;padding:0!important;margin:0!important;height:100%;box-shadow:none!important}
.mbx-in2 select{appearance:none;-webkit-appearance:none;color:#fff}
.mbx-in2 select option{background:#1f2226}
.mbx-in2 input[readonly]{color:#aebbc5}
.mbx-in2 button{background:none;border:0;padding:4px;cursor:pointer;display:flex}
.mbx-in2 svg{width:20px;height:20px;stroke:#b6c4ce;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mbx-row{display:flex;gap:10px;align-items:center}.mbx-row>*{flex:1}
.mbx-save{display:block;margin:16px 0 0 auto;min-width:110px;height:48px;border:0;border-radius:13px;background:#6e90c8;color:#fff;font:800 16px system-ui;padding:0 22px;cursor:pointer}
.mbx-save:disabled{opacity:.45;cursor:not-allowed}
.mbx-save.ghost{background:#3c4349}
.mbx-save.full{width:100%;margin:14px 0 0}
.mbx-msg{font:600 14px system-ui;min-height:18px;margin-top:10px;color:#95a7b8}.mbx-msg.bad{color:#ff8a9a}.mbx-msg.good{color:#7be0bd}
.mbx-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.mbx-stat{background:#282e32;border-radius:16px;padding:15px 16px}
.mbx-stat small{display:flex;align-items:center;gap:6px;font:700 14.5px system-ui;color:#9aa9b4}
.mbx-stat b{display:block;font:800 24px system-ui;margin-top:6px;color:#fff;word-break:break-word}
.mbx-stat.wide{grid-column:1/-1}
.mbx-stat .pos{color:#6fe39c}.mbx-stat .neg{color:#ff8a9a}
.mbx-big3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:8px 0 16px}
.mbx-big3 b{display:block;font:800 30px system-ui}.mbx-big3 small{color:#9aa9b4;font:600 15px system-ui;display:block;margin-top:4px}
.mbx-link-row{display:flex;gap:0;margin-top:6px}
.mbx-link-row input{flex:1;min-width:0;background:#161a1d;border:1.5px solid #3d454b;border-right:0;border-radius:14px 0 0 14px;color:#fff;font:600 16px system-ui;padding:0 14px;height:54px;outline:0}
.mbx-link-row button{width:60px;border:0;border-radius:0 14px 14px 0;background:#394046;cursor:pointer;display:flex;align-items:center;justify-content:center}
.mbx-link-row svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2}
.mbx-ben{display:flex;gap:14px;align-items:center;background:#282e32;border-radius:16px;padding:16px;margin-top:10px}
.mbx-ben span{width:44px;height:44px;border-radius:12px;background:#6e90c8;display:flex;align-items:center;justify-content:center;flex:0 0 44px}
.mbx-ben span svg{width:24px;height:24px;stroke:#fff;fill:none;stroke-width:2}
.mbx-ben b{font:800 17px system-ui;display:block}.mbx-ben small{color:#98a8b4;font:500 14px/1.4 system-ui}
.mbx-camp{background:#282e32;border-radius:18px;margin-bottom:10px;overflow:hidden}
.mbx-camp>button{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:0;color:#fff;padding:16px 18px;text-align:left;cursor:pointer}
.mbx-camp>button b{display:block;font:700 18px system-ui}.mbx-camp>button small{display:flex;justify-content:space-between;font:600 15px system-ui;color:#98a8b4;margin-top:8px;gap:24px}
.mbx-camp>button svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2.2;transition:.2s;flex:0 0 20px}
.mbx-camp.open>button svg{transform:rotate(180deg)}
.mbx-camp-body{display:none;padding:2px 18px 16px;border-top:1px solid #353b41}
.mbx-camp.open .mbx-camp-body{display:block}
.mbx-kv{display:flex;justify-content:space-between;gap:14px;padding:9px 0;font:600 15px system-ui;border-bottom:1px solid #2f3439}
.mbx-kv:last-child{border:0}.mbx-kv span{color:#98a8b4}.mbx-kv b{text-align:right;word-break:break-all}
.mbx-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:14px;border:1px solid #32383e}
.mbx-table{width:100%;border-collapse:collapse;min-width:640px;font:600 14.5px system-ui}
.mbx-table th{background:#191d20;color:#9aa9b4;font:800 12px system-ui;letter-spacing:.06em;text-transform:uppercase;text-align:left;padding:13px 14px;white-space:nowrap}
.mbx-table td{padding:13px 14px;border-top:1px solid #2f3439;white-space:nowrap;color:#e7eef3}
.mbx-table td.n,.mbx-table th.n{text-align:right}
.mbx-table tfoot td{background:#1f2429;font-weight:800;border-top:2px solid #3d454b}
.mbx-pos{color:#6fe39c}.mbx-empty{text-align:center;color:#8091a0;padding:26px 10px!important;white-space:normal!important}
.mbx-faq details{background:#282e32;border-radius:14px;margin-bottom:9px;padding:0 16px}
.mbx-faq summary{font:700 16px system-ui;padding:16px 0;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px}
.mbx-faq summary::-webkit-details-marker{display:none}
.mbx-faq details p{padding:0 0 14px;margin:0}
.mbx-seg{display:flex;background:#161a1d;border-radius:14px;padding:4px;margin:0 0 14px;gap:4px}
.mbx-seg button{flex:1;border:0;background:none;color:#a7b4be;font:700 15px system-ui;border-radius:11px;padding:12px 4px;cursor:pointer}
.mbx-seg button.on{background:#394046;color:#fff}
.mbx-switch{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #2f3439}
.mbx-switch:last-child{border:0}
.mbx-switch b{display:block;font:700 16px system-ui}.mbx-switch small{color:#8fa0ac;font:500 13.5px/1.4 system-ui}
.mbx-tg{position:relative;width:52px;height:30px;flex:0 0 52px}
.mbx-tg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;z-index:2}
.mbx-tg i{position:absolute;inset:0;border-radius:20px;background:#434950;transition:.2s}
.mbx-tg i:after{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:.2s}
.mbx-tg input:checked+i{background:#6e90c8}.mbx-tg input:checked+i:after{transform:translateX(22px)}
.mbx-qr{display:block;margin:10px auto;background:#fff;border-radius:12px;padding:8px;width:176px;height:176px}
.mbx-secret{word-break:break-all;background:#161a1d;border-radius:12px;padding:12px;font:600 13px ui-monospace,Menlo,monospace;color:#cfe0ee;margin:8px 0}
.mbx-file{display:block;background:#161a1d;border:1.5px dashed #464f55;border-radius:14px;padding:16px;color:#a7b4be;font:600 14.5px system-ui;text-align:center;cursor:pointer}
.mbx-file input{display:none}
.mbx-steps{display:flex;gap:8px;margin:0 0 12px}
.mbx-steps div{flex:1;background:#282e32;border-radius:14px;padding:12px;text-align:center;font:700 13px system-ui;color:#9aa9b4}
.mbx-steps div.on{background:#39495f;color:#fff}
.mbx-steps div.ok{background:#1b3a2e;color:#7be0bd}
.mbx-prof-hero{display:flex;gap:16px;align-items:center;background:linear-gradient(150deg,#33455b,#1c232a 70%);border:1px solid #445568;border-radius:22px;padding:20px;margin-bottom:14px}
.mbx-prof-hero .mbx-av{width:72px;height:72px;font-size:34px;border-radius:22px;flex:0 0 72px}
.mbx-prof-hero b{font:850 24px system-ui;display:block;word-break:break-all}
.mbx-prof-hero small{display:block;color:#a9c3dd;font:500 14px system-ui;margin-top:3px}
.mbx-codebox{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#161a1d;border:1.5px dashed #576b7f;border-radius:14px;padding:12px 14px}
.mbx-codebox b{font:850 22px ui-monospace,Menlo,monospace;letter-spacing:.14em;color:#aac1db}
.mbx-note{font:500 13px/1.5 system-ui;color:#7d8d99;margin-top:10px}

/* ---- v47 compatibility: neutralise old global input/label/#pm rules ---- */
html body #pm.mbx-pm section{display:block;padding:0;gap:0;border-radius:0;background:none}
html body #pm.mbx-pm .mbx-pm-user{display:flex;gap:13px}
html body #pm.mbx-pm .mbx-pm-tags{display:flex}
html body #pm.mbx-pm .mbx-pm-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 12px 4px}
html body #pm.mbx-pm .mbx-pm-stats section{background:#262c31;border-radius:13px;padding:10px 12px}
html body #pm.mbx-pm .mbx-pm-stats .wide{grid-column:1/-1}
html body #pm.mbx-pm .mbx-pm-head{padding:16px 16px 14px;background:linear-gradient(150deg,#33455b,#1d252e 70%);border-radius:20px 20px 0 0}
html body #pm.mbx-pm .mbx-pm-list{padding:8px 8px 10px}
html body #pm.mbx-pm .mbx-pm-grp{padding:10px 10px 4px}
html body #pm.mbx-pm button.mbx-pm-item{display:flex!important;align-items:center;gap:12px;width:100%;min-height:0!important;background:none!important;border:0!important;border-radius:12px!important;padding:10px!important;color:#e9f0f5!important;font:650 14.5px system-ui!important;text-align:left}
html body #pm.mbx-pm button.mbx-pm-item:hover,html body #pm.mbx-pm button.mbx-pm-item:active{background:#2e363e!important}
html body #pm.mbx-pm .mbx-pm-ic{width:34px;height:34px;flex:0 0 34px;background:#2c333a}
html body #pm.mbx-pm .mbx-pm-item.out{color:#ffb3bd!important}
html body #pm.mbx-pm .mbx-pm-txt{flex:1;min-width:0}
html body #pm.mbx-pm .mbx-pm-user b{display:block;font:800 18px system-ui;word-break:break-word}
html body #pm.mbx-pm .mbx-pm-user small{display:block;word-break:break-all}
.mbx-input input,.mbx-in2 input,.mbx-in2 select,.dzx-in input,.dzx-money input{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;outline:0!important;padding:0!important;margin:0!important;width:auto;min-width:0}
.mbx-input input{flex:1;height:100%}
.dzx-in input{flex:1;width:100%}
.mbx-check{display:flex!important;justify-content:flex-start!important;align-items:flex-start;gap:13px;margin:16px 0 0}
.mbx-check>span:last-child{flex:1;text-align:left}
.mbx-field>label,.mbx-label,.dzx-fields label{display:block;justify-content:flex-start}
.mbx-page{padding-bottom:110px}.mbx-auth{margin-bottom:110px}
/* hero: keep the title readable, fade the artwork in from the right */
.mbx-hero img{right:0;bottom:0;height:100%;width:62%;object-fit:cover;object-position:60% 30%;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 38%);mask-image:linear-gradient(90deg,transparent 0,#000 38%)}
.mbx-hero-copy{z-index:2}

html body #pm.mbx-pm .mbx-av{display:flex;align-items:center;justify-content:center;width:52px;height:52px;flex:0 0 52px;border-radius:16px;background:linear-gradient(145deg,#90b6db,#5b7bb3);color:#fff;font:900 24px system-ui}
.mbx-faq summary svg{width:20px;height:20px;flex:0 0 20px;stroke:#fff;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:.2s}
.mbx-faq details[open] summary svg{transform:rotate(180deg)}
.mbx-faq details{display:block}.mbx-faq summary{width:100%}
.mbx-row{flex-wrap:wrap}.mbx-row>*{flex:1 1 150px;min-width:0}
.dzx-rail{margin-bottom:64px}

/* =====================================================================
   COMPACT SIZING (v48.1): scales every new screen down to the app's theme
   ===================================================================== */
/* --- pages --- */
.mbx-title{font:750 20px system-ui;gap:10px;margin:6px 2px 12px}.mbx-title svg{width:22px;height:22px}
.mbx-nav{gap:8px;margin:0 0 12px}
.mbx-navbtn{height:44px;border-radius:12px;font:650 15px system-ui;padding:0 14px}
.mbx-navbtn.sq{flex:0 0 52px}.mbx-navbtn svg{width:18px;height:18px}
.mbx-menu{border-radius:14px;padding:6px;margin-bottom:12px}
.mbx-menu button{font:600 14.5px system-ui;padding:12px 14px;border-radius:10px}
.mbx-card{border-radius:16px;padding:14px;margin-bottom:10px}
.mbx-card h3{font:750 16px system-ui;margin:0 0 4px;gap:8px}
.mbx-card h4{font:750 14px system-ui}
.mbx-card p{font:500 13px/1.5 system-ui;margin:0 0 10px}
.mbx-hr{margin:10px -14px}
.mbx-badge{font:750 11px system-ui;padding:2px 8px}
.mbx-label{font:650 13px system-ui;margin:10px 0 6px}
.mbx-in2{height:44px;border-radius:12px;padding:0 12px}
.mbx-in2 input,.mbx-in2 select{font:600 14.5px system-ui!important}
.mbx-in2 svg{width:17px;height:17px}
.mbx-save{min-width:96px;height:40px;border-radius:11px;font:750 14px system-ui;padding:0 18px;margin-top:12px}
.mbx-msg{font:600 12.5px system-ui;margin-top:8px}
.mbx-stats{gap:8px;margin-bottom:10px}
.mbx-stat{border-radius:13px;padding:11px 13px}
.mbx-stat small{font:650 12px system-ui}
.mbx-stat b{font:780 17px system-ui;margin-top:4px}
.mbx-big3{gap:8px;margin:6px 0 12px}.mbx-big3 b{font:780 20px system-ui}.mbx-big3 small{font:600 12px system-ui;margin-top:2px}
.mbx-link-row input{height:44px;font:600 13.5px system-ui;border-radius:12px 0 0 12px;padding:0 12px}
.mbx-link-row button{width:46px;border-radius:0 12px 12px 0}.mbx-link-row svg{width:18px;height:18px}
.mbx-ben{gap:12px;border-radius:13px;padding:11px 12px;margin-top:8px}
.mbx-ben span{width:34px;height:34px;flex:0 0 34px;border-radius:10px}.mbx-ben span svg{width:19px;height:19px}
.mbx-ben b{font:700 14px system-ui}.mbx-ben small{font:500 12.5px/1.4 system-ui}
.mbx-camp{border-radius:14px;margin-bottom:8px}
.mbx-camp>button{padding:12px 14px}.mbx-camp>button b{font:700 14.5px system-ui}
.mbx-camp>button small{font:600 12.5px system-ui;margin-top:5px}.mbx-camp>button svg{width:17px;height:17px;flex:0 0 17px}
.mbx-camp-body{padding:2px 14px 12px}
.mbx-kv{font:600 13px system-ui;padding:8px 0}
.mbx-table-wrap{border-radius:12px}
.mbx-table{font:600 12.5px system-ui;min-width:600px}
.mbx-table th{font:750 10.5px system-ui;padding:10px 11px}.mbx-table td{padding:10px 11px}
.mbx-faq details{border-radius:12px;padding:0 13px;margin-bottom:7px}
.mbx-faq summary{font:650 13.5px system-ui;padding:12px 0}.mbx-faq summary svg{width:17px;height:17px;flex:0 0 17px}
.mbx-faq details p{font-size:12.5px;padding:0 0 11px}
.mbx-seg button{font:650 13px system-ui;padding:9px 4px}
.mbx-switch{padding:11px 0}.mbx-switch b{font:650 14px system-ui}.mbx-switch small{font:500 12px/1.4 system-ui}
.mbx-tg{width:44px;height:26px;flex:0 0 44px}.mbx-tg i:after{width:20px;height:20px}.mbx-tg input:checked+i:after{transform:translateX(18px)}
.mbx-file{padding:12px;font:600 13px system-ui;border-radius:12px}
.mbx-steps div{padding:9px;font:650 12px system-ui;border-radius:11px}
.mbx-prof-hero{gap:13px;border-radius:18px;padding:14px;margin-bottom:10px}
.mbx-prof-hero .mbx-av{width:56px;height:56px;flex:0 0 56px;font-size:26px;border-radius:17px}
.mbx-prof-hero b{font:780 19px system-ui}.mbx-prof-hero small{font:500 12.5px system-ui}
.mbx-codebox{border-radius:12px;padding:9px 12px}.mbx-codebox b{font:800 17px ui-monospace,Menlo,monospace}
.mbx-pm-copy{font:750 11px system-ui;padding:5px 9px}
.mbx-note{font-size:12px}
.mbx-qr{width:150px;height:150px}
.mbx-secret{font-size:12px;padding:9px}
/* --- profile dropdown --- */
html body #pm.mbx-pm{width:min(300px,calc(100vw - 20px))!important;border-radius:16px!important}
html body #pm.mbx-pm .mbx-pm-head{padding:12px 13px 11px;border-radius:16px 16px 0 0}
html body #pm.mbx-pm .mbx-av{width:42px;height:42px;flex:0 0 42px;border-radius:13px;font:800 19px system-ui}
html body #pm.mbx-pm .mbx-pm-user b{font:750 15px system-ui}
html body #pm.mbx-pm .mbx-pm-user small{font:500 11.5px system-ui}
.mbx-tag{font:650 11px system-ui;padding:4px 8px}.mbx-tag svg{width:12px;height:12px}
html body #pm.mbx-pm .mbx-pm-stats{gap:6px;padding:10px 10px 2px}
html body #pm.mbx-pm .mbx-pm-stats section{border-radius:11px;padding:8px 10px}
.mbx-pm-stats small{font:700 9.5px system-ui}.mbx-pm-stats b{font:750 14px system-ui;margin-top:2px}
html body #pm.mbx-pm .mbx-pm-list{padding:4px 6px 8px}
html body #pm.mbx-pm .mbx-pm-grp{font:800 9.5px system-ui;padding:8px 8px 3px}
html body #pm.mbx-pm button.mbx-pm-item{padding:7px 8px!important;gap:10px;border-radius:10px!important;font:600 13.5px system-ui!important}
html body #pm.mbx-pm .mbx-pm-ic{width:28px;height:28px;flex:0 0 28px;border-radius:9px}
.mbx-pm-ic svg{width:15px;height:15px}.mbx-pm-txt small{font:600 11px system-ui}
/* --- login / register --- */
.mbx-hero{height:118px;border-radius:16px;margin-bottom:10px}
.mbx-hero-copy{left:15px;top:16px}.mbx-hero-copy small{font-size:10px}.mbx-hero-copy b{font-size:24px}.mbx-hero-copy span{font-size:12px}
.mbx-sheet{border-radius:18px;padding:2px 15px 16px}
.mbx-tabs{gap:20px;margin-bottom:12px}.mbx-tabs button{font:700 16px system-ui;padding:13px 0 10px}
.mbx-field>label{font:650 13.5px system-ui;margin:11px 0 6px}
.mbx-input{height:46px;border-radius:12px;gap:10px;padding:0 12px}
.mbx-input svg{width:17px;height:17px;flex:0 0 17px}
.mbx-input input{font:600 15px system-ui!important}
.mbx-status{font:600 12.5px system-ui;min-height:18px;margin-top:7px}
.mbx-status i{width:16px;height:16px;flex:0 0 16px;font-size:10px}
.mbx-check{font:500 13.5px/1.4 system-ui;gap:11px;margin-top:13px}
.mbx-box{width:22px;height:22px;flex:0 0 22px;border-radius:6px}.mbx-box svg{width:14px;height:14px}
.mbx-promo-head{font:600 13.5px system-ui;padding:13px 0}
.mbx-err,.mbx-ok{font-size:13px}
.mbx-go{height:46px;border-radius:12px;font:750 15.5px system-ui;margin-top:13px}
.mbx-link{font-size:13px}.mbx-or{font-size:12px;margin:16px 0 11px}
.mbx-social{gap:8px}.mbx-social button{height:44px;border-radius:11px}.mbx-social svg{width:21px;height:21px}
.mbx-foot{font-size:11.5px}
.mbx-code input{font:800 19px/1 ui-monospace,Menlo,monospace!important}
/* --- dice --- */
.dzx{border-radius:18px;padding:11px 11px 14px}
.dzx-chips{min-height:34px;margin-bottom:6px}.dzx-chip{min-width:58px;height:32px;padding:0 11px;font:750 14px system-ui}
.dzx-axis{margin:22px 12px 0;height:36px}.dzx-axis span{font:750 15px system-ui}.dzx-axis i{top:24px;width:14px;height:9px;margin-left:-7px}
.dzx-rail{height:66px;border-radius:34px;margin-bottom:50px}
.dzx-inner{left:11px;right:11px;height:34px;margin-top:-17px;border-radius:18px}
.dzx-bar{left:11px;right:11px;height:11px;margin-top:-5.5px}.dzx-track{left:11px;right:11px}
.dzx-thumb{width:44px;height:46px;margin:-23px 0 0 -22px;border-radius:9px;gap:4px}.dzx-thumb i{width:3px;height:19px}
.dzx-mark span{min-width:52px;padding:5px 9px;border-radius:10px;font:800 14px system-ui}
.dzx-fields{gap:8px;margin-top:14px;border-radius:14px;padding:10px 9px 9px}
.dzx-fields label{font:650 12.5px system-ui;margin:0 0 6px 2px}
.dzx-in{height:42px;border-radius:12px;padding:0 9px 0 10px}
.dzx-in input{font:650 14.5px system-ui!important}.dzx-in span{font:650 14px system-ui}.dzx-in svg{width:18px;height:18px}
.dzx-lab{font:650 13.5px system-ui;margin:10px 2px 2px}.dzx-lab small{font:600 12px system-ui}
.dzx-money{height:42px;border-radius:12px;font:650 15px system-ui;margin:5px 0 3px}.dzx-money input{font:650 15px system-ui!important}
.dzx-flag{width:24px;height:16px;flex:0 0 24px}
.dzx-fair{border-radius:12px;font:650 13.5px system-ui;padding:11px 14px;margin-top:10px}.dzx-fair svg{width:17px;height:17px}
@media(max-width:400px){.dzx-axis span{font-size:14px}.dzx-in{height:40px}.dzx-in input{font-size:14px!important}.dzx-fields label{font-size:12px}}
