/* MannBets v53 — loads last. Header fit, brighter wallet button, glossy buttons, dashboard tint, banners,
   Keno board, Dice motion, settings theme, house-edge cards. */
body:not(.mb-authview){--bg:#0e1522;--p:#192232;--p2:#26324a;--in:#0f1623;--bd:#34415c;--mu:#9fb0d8;background:#0e1522}
/* ── header: balance pill hugs the amount, logo has room ── */
@media(max-width:620px){
  header{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;column-gap:8px!important;padding-left:12px!important;padding-right:10px!important}
  header>.logo{min-width:0!important;margin-left:0!important}
  header>.logo .mannbets-brand-logo{width:clamp(104px,27vw,122px)!important}
  header>.wallet-pill.neo-wallet-field,header>.neo-wallet-field{justify-self:end!important;width:auto!important;max-width:100%!important;min-width:0!important;flex:0 1 auto!important}
  header .neo-wallet-balance{flex:0 1 auto!important;width:auto!important;justify-content:flex-start!important;gap:6px!important;padding:0 10px 0 8px!important;min-width:0!important}
  header .neo-wallet-amount{flex:0 1 auto!important;overflow:visible!important;gap:6px!important}
  header .wallet-balance-text{font-size:clamp(13px,3.6vw,15.5px)!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;letter-spacing:-.2px}
  header .wallet-mark-img{width:22px!important;height:22px!important}
  header .wallet-chevron{width:12px!important;height:12px!important;flex:0 0 12px!important;margin-left:2px}
  header .neo-wallet-button{width:38px!important;height:38px!important;flex:0 0 38px!important}
}
header .wallet-mark-img{background:transparent!important;border-radius:50%!important;object-fit:contain}
header .neo-wallet-button{background:linear-gradient(160deg,#a9c0ee 0%,#7f9fd8 55%,#6b8cc8 100%)!important;
  box-shadow:0 3px 12px #6f93d655,inset 0 1px 0 #ffffff77,inset 0 -2px 4px #3d4c5a66!important;color:#fff!important}

/* ── glossy buttons (replaces flat gold shine) ── */
.btn:not(.g),.mbx-save:not(.ghost),.mbv4-vgo,.home-hero .hero-cta,.mbx-seg button.on,.mbv4-seg button.on{position:relative;overflow:hidden;
  box-shadow:0 6px 16px #05102a66,inset 0 1px 0 #ffffff66,inset 0 -2px 5px #20386e55}
.btn:not(.g)::after,.mbx-save:not(.ghost)::after,.mbv4-vgo::after,.home-hero .hero-cta::after{content:"";position:absolute;left:0;right:0;top:0;height:52%;pointer-events:none;
  background:linear-gradient(180deg,#ffffff4d,#ffffff0f 70%,transparent);border-radius:inherit}
.btn:not(.g):active{transform:translateY(1px)}

/* ── Home theme: crystal-blue glass + mint accent ── */
body:not(.mb-authview){--rim:#3f5a86;--mint:#5be3a0;--ice:#9dbcf0}
.home-heroes{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 18px}
.home-hero{position:relative;display:flex;flex-direction:column;min-height:232px;padding:0;border-radius:24px;overflow:hidden;isolation:isolate;border:1px solid #42608f;
  box-shadow:0 16px 34px #030812b3,inset 0 1px 0 #ffffff38,inset 0 0 0 1px #ffffff0a;transition:transform .18s}
.home-hero:active{transform:scale(.98)}
/* layered artwork: coloured light pools + a faint perspective grid + sparkle dots */
.home-hero.casino{background:
  radial-gradient(circle at 18% 12%,#a9c4ff3d 0 2px,transparent 3px),radial-gradient(circle at 82% 30%,#a9c4ff4d 0 1.5px,transparent 2.5px),radial-gradient(circle at 64% 8%,#ffffff40 0 1.5px,transparent 2.5px),
  radial-gradient(70% 55% at 50% 38%,#6f8cf06e,transparent 72%),
  repeating-linear-gradient(90deg,#9db9ff10 0 1px,transparent 1px 22px),
  linear-gradient(170deg,#2b3f68 0%,#18243f 55%,#101a2e 100%)}
.home-hero.sports{background:
  radial-gradient(circle at 20% 14%,#b7ffe03d 0 2px,transparent 3px),radial-gradient(circle at 80% 26%,#b7ffe04d 0 1.5px,transparent 2.5px),radial-gradient(circle at 60% 9%,#ffffff40 0 1.5px,transparent 2.5px),
  radial-gradient(70% 55% at 50% 38%,#47e3a45c,transparent 72%),
  repeating-linear-gradient(90deg,#9dffd10e 0 1px,transparent 1px 22px),
  linear-gradient(170deg,#21465a 0%,#122635 55%,#0d1824 100%)}
.home-hero::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;background:linear-gradient(180deg,#ffffff24,transparent 26%)}
.home-hero img{order:-1;position:relative;display:block;width:100%;height:118px;margin:8px 0 0;right:auto;bottom:auto;object-fit:contain;z-index:0;transform:none;
  mix-blend-mode:screen;filter:saturate(1.1) drop-shadow(0 8px 12px #0008);
  -webkit-mask-image:radial-gradient(ellipse 58% 62% at 50% 52%,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse 58% 62% at 50% 52%,#000 62%,transparent 100%)}
.home-hero.sports img{transform:none}
.home-hero:active img{transform:scale(1.04)}
.home-hero .hero-copy{position:relative;z-index:3;left:auto;top:auto;right:auto;max-width:none;padding:0 13px 14px;margin-top:-2px;display:flex;flex-direction:column;flex:1}
.home-hero h2{font-size:clamp(22px,5.8vw,28px);line-height:1;margin:0 0 5px;font-weight:900;letter-spacing:-.4px;color:#fff;text-shadow:0 3px 12px #000a}
.home-hero p{margin:0 0 11px;max-width:none;color:#c3d6f3;font-size:11.5px;line-height:1.35;font-weight:600}
.hero-live{display:none!important}
.home-hero .hero-cta{position:relative;left:auto;bottom:auto;margin:auto 0 0;display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;white-space:nowrap;padding:10px 12px;border-radius:24px;font-size:13px;font-weight:850;color:#fff;
  background:linear-gradient(160deg,#8fb6ec,#5b83c8 72%)}
.home-hero.sports .hero-cta{background:linear-gradient(160deg,#7fe6b4,#35a878 72%);color:#06281a}
@media(min-width:700px){.home-hero{min-height:290px}.home-hero img{height:160px}}

body:not(.mb-authview) #v .sec{display:flex;align-items:center;gap:9px;font-weight:850;letter-spacing:-.2px}
body:not(.mb-authview) #v .sec svg,body:not(.mb-authview) #v .sec .ui-ico{color:var(--mint)}
/* search: icon + glass pill */
body:not(.mb-authview) #q{height:56px;box-sizing:border-box;padding:0 20px 0 56px!important;margin-top:16px!important;border-radius:28px!important;color:#eaf1fb;font:650 16px system-ui!important;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239dbcf0' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 20px center/22px no-repeat,
  linear-gradient(160deg,#1f2e4c,#131c30)!important;
  border:1px solid #3b5782!important;box-shadow:inset 0 1px 0 #ffffff1c,inset 0 -10px 18px #0a122244,0 8px 20px #03081266;transition:border-color .18s,box-shadow .18s}
body:not(.mb-authview) #q::placeholder{color:#8296bd;font-weight:600}
body:not(.mb-authview) #q:focus{border-color:#7fa3e0!important;box-shadow:0 0 0 3px #7fa3e033,inset 0 1px 0 #ffffff1c,0 8px 20px #03081266;outline:0}
body:not(.mb-authview) .vip-card3d{background:radial-gradient(70% 90% at 0% 0%,#6f93d62e,transparent 70%),linear-gradient(155deg,#25375a,#141e33)!important;border:1px solid #3f5a86!important;border-radius:22px!important;box-shadow:0 14px 30px #030812aa,inset 0 1px 0 #ffffff26!important}
body:not(.mb-authview) .mb-vip-track{background:#0b1322!important;border:1px solid #2c4166!important}
body:not(.mb-authview) .mb-vip-fill{background:linear-gradient(90deg,#6f93d6,#5be3a0)!important;box-shadow:0 0 12px #5be3a066!important}
body:not(.mb-authview) .mb-vip-percent{background:#0f1a2e!important;border:1px solid #3b5882!important;color:#eaf6ff!important}
body:not(.mb-authview) .hs .hc{border:1px solid #3a5379;box-shadow:0 8px 18px #030812aa,inset 0 1px 0 #ffffff33}
body:not(.mb-authview) .hs .pc{color:#a9b9d8}
body:not(.mb-authview) .hs .pc .win{color:var(--mint)}
/* active bottom-nav icon follows the blue/mint theme instead of gold */
#nav .on,#nav .active,#nav [aria-current]{color:var(--ice,#9dbcf0)!important}

/* ── Keno ── */
.kn53{padding:14px;border-radius:20px;border:1px solid #3b5273;background:linear-gradient(150deg,#1d2a40,#131c2b);box-shadow:0 14px 30px #030812aa,inset 0 1px 0 #ffffff1a;margin-bottom:12px}
.kn53-head{display:flex;justify-content:space-between;align-items:center;margin:0 2px 12px;font-size:18px;font-weight:850}
.kn53-head span{font-size:12px;color:#9db8de;font-weight:650}
.kn53-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.kn53-grid .t{aspect-ratio:1/1;padding:0;min-width:0;border-radius:11px;border:1px solid #3a4d68;border-bottom-width:3px;border-bottom-color:#233246;
  background:linear-gradient(180deg,#34455c,#26354a);color:#e7eef8;font:750 clamp(12px,3.4vw,16px) system-ui;display:flex;align-items:center;justify-content:center;
  transition:transform .12s,background .18s,box-shadow .18s,border-color .18s;-webkit-tap-highlight-color:transparent;cursor:pointer}
.kn53-grid .t:active{transform:translateY(2px);border-bottom-width:1px}
.kn53-grid .t.sel{background:radial-gradient(120% 90% at 30% 15%,#b6cdf7 0%,#7f9fe2 38%,#5a78c4 100%);border-color:#c3d6fb;border-bottom-color:#38519a;color:#fff;
  text-shadow:0 1px 2px #1b2f6a99;box-shadow:0 0 0 1px #9ebbf055,0 6px 16px #5f84d855,inset 0 1px 0 #ffffffaa}
.kn53-grid .t.pop{animation:knPop .22s cubic-bezier(.3,1.6,.5,1)}
@keyframes knPop{0%{transform:scale(.82)}100%{transform:scale(1)}}
.kn53-grid .t.miss{background:#131a25;border-color:#27313f;border-bottom-color:#7c4560;color:#566175}
.kn53-grid .t.hit{position:relative;background:radial-gradient(120% 100% at 30% 10%,#4ff59a 0%,#17b960 55%,#0b7a3f 100%);border:2px solid #b8ffd2;border-bottom-width:3px;color:#fff;
  box-shadow:0 0 0 1px #5ff29c66,0 0 22px #3df28a99,inset 0 1px 0 #ffffffaa;animation:knHit .45s cubic-bezier(.3,1.5,.5,1)}
.kn53-grid .t.hit::after{content:"";position:absolute;inset:-2px;border-radius:13px;border:2px solid #7dffb4;pointer-events:none;animation:knRing .7s ease-out forwards}
.kn53-grid .t.flash{animation:knFlash .55s ease-out}
.kn53-grid .t .kgem{width:76%;height:76%;filter:drop-shadow(0 0 6px #d6ffe6aa) drop-shadow(0 2px 4px #04502a99)}
@keyframes knHit{0%{transform:scale(.7)}55%{transform:scale(1.16)}100%{transform:scale(1)}}
@keyframes knRing{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(1.55)}}
@keyframes knFlash{0%{background:#46f093;border-color:#b8ffd2;box-shadow:0 0 20px #46f093;transform:scale(1.1);color:#04301a}100%{transform:scale(1)}}
.kn53-pay{display:flex;gap:6px;overflow-x:auto;padding:14px 1px 4px;scrollbar-width:none}
.kn53-pay::-webkit-scrollbar{display:none}
.kp{flex:1 0 58px;min-width:58px;text-align:center;border-radius:11px;padding:8px 4px;background:linear-gradient(160deg,#2f4058,#1f2c3f);border:1px solid #435a79;transition:.2s}
.kp b{display:block;font-size:12.5px;color:#f2f7ff}.kp small{font-size:10px;color:#a4bddb}
.kp.off{opacity:.38}
.kp.now{border-color:#6fe39c;background:linear-gradient(160deg,#1f5a3c,#143a29);box-shadow:0 0 14px #3ddb7c44;transform:translateY(-2px)}
.kp-empty{color:#9db8de;font-size:12.5px;padding:8px 2px}
.kn53-status{text-align:center;font-size:13px;color:#a9c3e3;margin-top:10px;min-height:18px;font-weight:700}
.kn53-status.win{color:#6fe39c}.kn53-status.lose{color:#a9b4c6}.kn53-status.busy{animation:knPulse 1s infinite}
@keyframes knPulse{50%{opacity:.5}}

/* ── Dice: scroll-safe, no lag, hexagon result marker ── */
.dzx-rail{touch-action:pan-y!important;-webkit-tap-highlight-color:transparent}
.dzx-thumb{touch-action:none;transition:left .12s ease-out}
.dzx-thumb.drag{transition:none}
.dzx-bar b{transition:width .12s ease-out,left .12s ease-out}
.dzx-rail.dragging .dzx-bar b,.dzx-rail.dragging .dzx-thumb{transition:none!important}
.dzx-mark{top:auto!important;bottom:calc(100% + 2px)!important;transform:translate(-50%,6px) scale(.8);filter:drop-shadow(0 6px 10px #000a);z-index:6}
.dzx-mark.show{transform:translate(-50%,0) scale(1)}
.dzx-mark::before,.dzx-mark.win::before,.dzx-mark.lose::before{display:none!important;content:none!important}
.dzx-mark span{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:66px;height:74px;min-width:0;padding:0;border-radius:0;box-shadow:none;
  font:800 17px system-ui;color:#1f5a3f;background:#6fd49a;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.dzx-mark span::before{content:"";position:absolute;inset:3px;z-index:-1;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:linear-gradient(165deg,#ecfffb 0%,#b9efe9 55%,#8fd8e0 100%)}
.dzx-mark.win span{background:#6fd49a}
.dzx-mark.lose span{background:#e08aa0;color:#6a2a3c}
.dzx-mark.lose span::before{background:linear-gradient(165deg,#fff1f4 0%,#f3c6d1 55%,#e2a2b3 100%)}
.dzx-mark.land{animation:dzLand .3s cubic-bezier(.3,1.5,.5,1)}
@keyframes dzLand{0%{transform:translate(-50%,0) scale(1)}45%{transform:translate(-50%,-3px) scale(1.1)}100%{transform:translate(-50%,0) scale(1)}}
@media(prefers-reduced-motion:reduce){.dzx-mark.land,.kn53-grid .t.hit,.kn53-grid .t.pop,.kn53-grid .t.flash,.kn53-grid .t.hit::after{animation:none}}

/* ── Dice: matched to the blue theme ── */
.dzx{background:linear-gradient(160deg,#1c2740,#131b2d)!important;border:1px solid #2f4262!important;box-shadow:0 12px 28px #030812aa,inset 0 1px 0 #ffffff14}
.dzx-chips{margin-bottom:2px}
.dzx-axis{margin-top:48px!important}
.dzx-axis span{color:#dfe9f8}
.dzx-axis i{background:#34496e!important}
.dzx-rail{background:linear-gradient(180deg,#2b3b5a,#1d2a45)!important;border:1px solid #3c5378;box-shadow:inset 0 1px 0 #ffffff1c,0 8px 18px #03081266}
.dzx-inner{background:#0a1220!important;box-shadow:inset 0 2px 8px #000c}
.dzx-bar b.r{background:linear-gradient(90deg,#e0566f,#f07b8e)}
.dzx-bar b.g{background:linear-gradient(90deg,#4fd68d,#8bf0b6)}
.dzx-thumb{width:40px!important;height:42px!important;margin:-21px 0 0 -20px!important;border-radius:11px!important;background:linear-gradient(160deg,#a3bcef,#6a8bd0)!important;
  border:1px solid #c5d6f8;box-shadow:0 3px 8px #04102c88,inset 0 1px 0 #ffffff88!important}
.dzx-thumb.drag{box-shadow:0 3px 8px #04102c88,0 0 0 3px #8fb0ee44,inset 0 1px 0 #ffffff88!important}
.dzx-fields{background:linear-gradient(160deg,#1b2740,#141d31)!important;border:1px solid #2a3b5a}
.dzx-in{background:#0d1524!important;border-color:#2d4163!important}
.dzx-in:focus-within{border-color:#7fa3e0!important;box-shadow:0 0 0 3px #7fa3e02e}
.dzx-money{background:#0d1524!important;border-color:#2d4163!important}
.dzx-chip.win{background:linear-gradient(160deg,#6fe3a2,#46c883)!important;color:#06281a!important}
.dzx-chip.lose{background:#26324b!important;color:#b6c4de!important}
.dzx-fair{background:#1d2a44!important;border:1px solid #324a73}
/* smaller hexagon so it never covers the result chips */
.dzx-mark span{width:58px!important;height:64px!important;font-size:15.5px!important}

/* ── settings theme/* notifications */
#notifications,.mbv4-notes,.mb-notif{background:linear-gradient(170deg,#1d2940,#131c2c)!important;border:1px solid #38507a!important;box-shadow:0 20px 44px #030812d9!important}

/* ── house edge card ── */
.hx53{margin:14px 0 6px;padding:16px;border-radius:20px;border:1px solid #2c3d58;background:linear-gradient(160deg,#141f31,#0f1826)}
.hx53-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.hx53-top h3{margin:0 4px 0 0;font-size:22px;font-weight:850}
.hx53-pill{display:inline-flex;align-items:center;height:34px;padding:0 15px;border-radius:20px;background:#142535;border:1px solid #24405a;color:#e4edf8;font-size:14px;font-weight:650}
.hx53-pill b{margin-left:5px;color:#fff;font-weight:850}
.hx53 p{margin:0;color:#8ea0bb;font-size:14.5px;line-height:1.55}
.hx53 .more{display:none;margin-top:10px}
.hx53.open .more{display:block}
.hx53 .more p+p{margin-top:8px}
.hx53 .more code{background:#0b1320;border:1px solid #243650;border-radius:8px;padding:2px 7px;color:#bcd2f2;font-size:13px}
.hx53 .more ul{margin:10px 0 0;padding:12px 14px;list-style:none;background:#0d1626;border:1px solid #223450;border-radius:14px;display:grid;gap:7px;color:#b4c4de;font-size:13.5px}
.hx53 .more li{display:flex;justify-content:space-between;gap:12px}.hx53 .more li b{color:#fff}
.hx53 .tg{margin-top:8px;background:none;border:0;padding:0;color:#9fb0cc;font:800 14.5px system-ui;cursor:pointer}

/* ── result chips: green on win (Limbo and any chip row) ── */
#v .chips .chip.win,#v .chip.win{background:linear-gradient(160deg,#6fe3a2,#3fbf7a)!important;color:#06281a!important;border-color:#9cf3c4!important;font-weight:800}
#v .chips .chip.lose,#v .chip.lose{background:#222d44!important;color:#a7b7d4!important}
#v .chips{gap:8px}
#v .chips .chip{animation:chipIn .25s cubic-bezier(.2,1.2,.4,1)}
@keyframes chipIn{from{transform:scale(.8);opacity:0}to{transform:none;opacity:1}}

/* game settings popup: solid, not see-through */
.mbv4-gear{background:linear-gradient(160deg,#243149,#16202f)!important;border:1px solid #38507a!important;box-shadow:0 24px 60px #000d!important;opacity:1!important}

.hx53-live{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 8px}
.hx53-live div{background:#0d1626;border:1px solid #223450;border-radius:14px;padding:10px 8px;text-align:center}
.hx53-live small{display:block;color:#8ea0bb;font-size:11.5px;font-weight:650;margin-bottom:3px}
.hx53-live b{font-size:16px;color:#fff;font-weight:850}
.hx53-live div:nth-child(2) b{color:#6fe3a2}
.hx53 .hx53-note{font-size:12.5px;color:#7487a6}
