/* 2WIN Ultra Game UI — mobile-first enhancement */
:root{--u-bg:#070a08;--u-panel:rgba(17,23,19,.88);--u-line:rgba(198,244,50,.14);--u-green:#c6f432;--u-text:#f5f8f4;--u-muted:#91a096}
html{background:var(--u-bg)}body{background:radial-gradient(900px 520px at 50% -180px,rgba(198,244,50,.10),transparent 60%),var(--u-bg)!important;min-height:100dvh}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(rgba(255,255,255,.015) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(to bottom,#000,transparent 72%)}
button,input,select{touch-action:manipulation}button{transition:transform .12s ease,filter .12s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}button:active{transform:scale(.975)}
/* polish generic cards/panels without breaking game internals */
[style*="border: 1px solid #253128"],[style*="border:1px solid #253128"]{border-color:rgba(255,255,255,.09)!important;box-shadow:0 12px 35px rgba(0,0,0,.16)}
@media(max-width:700px){
 body{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important;overflow-x:hidden}
 header{min-height:58px!important;height:auto!important;padding-left:12px!important;padding-right:12px!important;background:rgba(7,10,8,.88)!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,255,255,.07)!important;position:sticky!important;top:0!important;z-index:50!important}
 header nav{display:none!important}
 main{padding-left:10px!important;padding-right:10px!important;max-width:100%!important}
 /* game stage: prominent, cinematic, bounded */
 canvas{max-width:100%!important;border-radius:18px!important}
 /* common form controls */
 input,select{min-height:46px!important;font-size:16px!important;border-radius:13px!important}
 button{min-height:44px}
 /* quick stake buttons and small chips */
 button[style*="height: 34px"],button[style*="height:34px"],button[style*="height: 36px"],button[style*="height:36px"]{height:44px!important;min-height:44px!important;border-radius:12px!important}
 /* betting wrappers */
 .betw{width:100%!important;justify-content:center!important;background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.07)!important;border-radius:16px!important;padding:7px!important;box-sizing:border-box!important}
 .betw button{width:48px!important;height:48px!important;border-radius:14px!important}
 /* primary CTAs: visually unmistakable */
 button[style*="background: #C6F432"],button[style*="background:#C6F432"],button[style*="background: #FFD36B"],button[style*="background:#FFD36B"]{box-shadow:0 10px 28px rgba(198,244,50,.16)!important;font-weight:900!important;letter-spacing:.01em}
 /* reduce desktop side padding and excessive gaps */
 [style*="padding: 24px"]{padding:14px!important}
 [style*="gap: 24px"]{gap:14px!important}
 [style*="border-radius: 20px"]{border-radius:17px!important}
 [style*="border-radius: 18px"]{border-radius:16px!important}
 /* prevent tiny informational text */
 [style*="font-size: 10px"],[style*="font-size:10px"]{font-size:11px!important}
 /* tables/history remain horizontally usable */
 table{font-size:12px!important}
}
@media(max-width:430px){main{padding-left:8px!important;padding-right:8px!important}.ttl{letter-spacing:-.035em!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* 2WIN No-Scroll Betting Cockpit v3 — phone UX */
@media (max-width:700px){
  body:has(.slots){height:100dvh!important;min-height:100dvh!important;overflow:hidden!important;padding-bottom:0!important}
  body:has(.slots) .app{height:100dvh!important;min-height:100dvh!important;overflow:hidden!important}
  body:has(.slots) .hdr{position:relative!important;top:auto!important;z-index:80!important;min-height:50px!important;height:50px!important;padding:5px 10px!important;gap:8px!important;flex-shrink:0!important}
  body:has(.slots) .hdr>a:first-child{font-size:21px!important}
  body:has(.slots) .hdr .hright{gap:6px!important;min-width:0!important}
  body:has(.slots) .hdr [aria-label="Wallet mode"]{padding:2px!important;border-radius:10px!important}
  body:has(.slots) .hdr [aria-label="Wallet mode"] button{height:34px!important;min-height:34px!important;padding:0 9px!important;font-size:11px!important}
  body:has(.slots) .hdr .hright>div:nth-child(2){min-width:0!important;padding:3px 7px!important;border-radius:9px!important}
  body:has(.slots) .hdr .hright>div:nth-child(2)>span:first-child{display:none!important}
  body:has(.slots) .hdr .hright>div:nth-child(2)>span:last-child{font-size:13px!important}
  body:has(.slots) .hdr .hright>a{height:36px!important;min-height:36px!important;width:36px!important;padding:0!important;font-size:0!important;border-radius:10px!important;justify-content:center!important}
  body:has(.slots) .hdr .acct{display:none!important}

  body:has(.slots) .body{flex:1 1 auto!important;min-height:0!important;height:auto!important;padding:6px 6px calc(238px + env(safe-area-inset-bottom))!important;overflow:hidden!important;display:block!important}
  body:has(.slots) .body>main{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:6px!important;overflow:hidden!important}
  body:has(.slots) .trow{flex:0 0 auto!important;min-height:34px!important;order:0!important;overflow:hidden!important}
  body:has(.slots) .trow button{min-height:32px!important;height:32px!important}
  body:has(.slots) .hist{white-space:nowrap!important;min-height:32px!important}
  body:has(.slots) .stage{position:relative!important;top:auto!important;flex:1 1 auto!important;height:auto!important;min-height:190px!important;max-height:none!important;border-radius:15px!important;margin:0!important;box-shadow:0 16px 35px rgba(0,0,0,.28)!important}
  body:has(.slots) .mult{font-size:clamp(48px,15vw,72px)!important}
  body:has(.slots) .multbox{top:8px!important}
  body:has(.slots) .rail,body:has(.slots) .ftr{display:none!important}

  /* Betting deck stays under the thumb, above the safe area. */
  body:has(.slots) .slots{position:fixed!important;z-index:90!important;left:0!important;right:0!important;bottom:0!important;height:calc(232px + env(safe-area-inset-bottom))!important;padding:7px 7px calc(7px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;background:linear-gradient(180deg,rgba(7,10,8,.82),rgba(7,10,8,.985) 14%)!important;border-top:1px solid rgba(255,255,255,.10)!important;box-shadow:0 -18px 42px rgba(0,0,0,.52)!important;backdrop-filter:blur(22px)!important;-webkit-backdrop-filter:blur(22px)!important}
  body:has(.slots) .slot{height:100%!important;min-width:0!important;box-sizing:border-box!important;padding:7px!important;gap:6px!important;border-radius:15px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 58px!important;background:linear-gradient(180deg,rgba(22,30,24,.98),rgba(13,18,15,.99))!important;border-color:rgba(255,255,255,.10)!important;box-shadow:0 10px 30px rgba(0,0,0,.25)!important;overflow:hidden!important}
  body:has(.slots) .slot>div:first-child{gap:5px!important;min-height:0!important}
  body:has(.slots) .slot>div:first-child>div:first-child{min-height:24px!important;gap:4px!important;flex-wrap:nowrap!important}
  body:has(.slots) .slot>div:first-child>div:first-child strong{font-size:10px!important;letter-spacing:.06em!important;white-space:nowrap!important}
  body:has(.slots) .slot label{font-size:0!important;gap:3px!important;min-height:24px!important;white-space:nowrap!important}
  body:has(.slots) .slot label:before{content:"AUTO";font-size:9px;font-weight:900;color:#91a096;letter-spacing:.04em}
  body:has(.slots) .slot input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px!important;margin:0!important}
  body:has(.slots) .slot input[aria-label*="auto cash-out"]{width:48px!important;height:25px!important;min-height:25px!important;padding:0 4px!important;border-radius:7px!important;font-size:12px!important}
  body:has(.slots) .slot label{color:transparent!important}
  body:has(.slots) .slot label input,body:has(.slots) .slot label:before{color:#EEF3EC!important}
  body:has(.slots) .slot>div:first-child>div:nth-child(2){height:45px!important;min-height:45px!important;padding:0 3px!important;gap:3px!important;border-radius:11px!important}
  body:has(.slots) .slot button[aria-label="Halve stake"],body:has(.slots) .slot button[aria-label="Double stake"]{width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;font-size:11px!important;border-radius:9px!important}
  body:has(.slots) .slot input[aria-label*="stake in KES"]{height:38px!important;min-height:38px!important;font-size:18px!important;text-align:center!important;padding:0!important}
  body:has(.slots) .slot>div:first-child>div:nth-child(2)>span{font-size:9px!important}
  body:has(.slots) .slot [style*="repeat(4"]{gap:3px!important}
  body:has(.slots) .slot [style*="repeat(4"] button{height:32px!important;min-height:32px!important;padding:0 2px!important;font-size:10px!important;border-radius:8px!important}
  body:has(.slots) .slotbtn{height:58px!important;min-height:58px!important;border-radius:12px!important;padding:0 5px!important;box-shadow:0 8px 20px rgba(0,0,0,.22)!important}
  body:has(.slots) .slotbtn span:first-child{font-size:16px!important;line-height:1!important}
  body:has(.slots) .slotbtn span:last-child{font-size:10px!important;line-height:1.15!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body:has(.slots) .slotbtn:not(:disabled):active{transform:scale(.965)!important}
}
@media (max-width:380px){
 body:has(.slots) .body{padding-bottom:calc(220px + env(safe-area-inset-bottom))!important}
 body:has(.slots) .slots{height:calc(214px + env(safe-area-inset-bottom))!important;padding:5px 5px calc(5px + env(safe-area-inset-bottom))!important;gap:5px!important}
 body:has(.slots) .slot{padding:5px!important;gap:4px!important;grid-template-rows:minmax(0,1fr) 54px!important}
 body:has(.slots) .slot [style*="repeat(4"] button{height:29px!important;min-height:29px!important;font-size:9px!important}
 body:has(.slots) .slotbtn{height:54px!important;min-height:54px!important}
 body:has(.slots) .stage{min-height:170px!important}
}
@media (max-height:690px) and (max-width:700px){
 body:has(.slots) .trow{display:none!important}
 body:has(.slots) .body{padding-top:4px!important}
 body:has(.slots) .stage{min-height:160px!important}
}
