:root{--bg:#0c1521;--panel:#152332;--line:#2b4051;--text:#f2f3ec;--muted:#a0b2c1;--green:#4bd6bb;--gold:#ffd074;--orange:#ff914d;--red:#ef5b5b;--well:#0e1c29;--tap:44px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;-webkit-text-size-adjust:100%;font-family:Avenir Next,Segoe UI,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}html,body{height:100%;color:var(--text);overscroll-behavior:none;background:#090f18;margin:0;overflow:hidden}body{-webkit-tap-highlight-color:transparent}#app{height:100vh;background:var(--bg);max-width:960px;height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);grid-template-rows:auto minmax(0,1fr) auto auto;grid-template-columns:minmax(0,1fr);margin:0 auto;display:grid}header{align-items:center;gap:4px;min-height:56px;padding:4px 8px 4px 16px;display:flex}.brand{letter-spacing:.025em;text-transform:uppercase;color:var(--orange);white-space:nowrap;margin-right:auto;font-family:Impact,Arial Narrow,sans-serif;font-size:24px;font-style:italic;font-weight:400}.brand-icon{width:26px;height:26px;color:var(--orange);flex:none;margin-right:7px}.wallet{background:var(--panel);border:1px solid var(--line);border-radius:999px;align-items:center;height:36px;padding:0 12px;display:flex}.wallet:has(#topupMini:not([hidden])){border-color:var(--gold);padding-right:0;box-shadow:0 0 0 3px #f2c14e33}.balance{font-variant-numeric:tabular-nums;white-space:nowrap;transform-origin:100%;font-size:15px;font-weight:600;display:inline-block}#currency{color:var(--muted);font-size:12px;font-weight:500}.balance.up{animation:.7s ease-out balance-up}@keyframes balance-up{25%{color:var(--green);transform:scale(1.15)}70%{color:var(--green)}}@media (prefers-reduced-motion:reduce){.balance.up{animation:none}}button.icon{width:var(--tap);color:var(--muted);background:0 0;border-color:#0000;place-items:center;padding:0;display:grid}button.icon svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}#fairOpen[aria-expanded=true]{color:var(--green);background:#134556}.plus{margin:-4px 0 -4px 2px}.plus svg{background:var(--gold);stroke:#2a1d00;stroke-width:3px;border-radius:999px;width:26px;height:26px;padding:6px}#mute .speaker{fill:currentColor}#mute[aria-pressed=true] .on,#mute[aria-pressed=false] .off{display:none}#stage{isolation:isolate;background:#101827;min-height:0;position:relative;overflow:hidden}#stage canvas{width:100%;height:100%;display:block;position:absolute;inset:0}#toast{z-index:3;text-align:center;background:#000000b3;border-radius:999px;max-width:calc(100% - 32px);padding:8px 14px;font-size:14px;position:absolute;top:12px;left:50%;transform:translate(-50%)}#result{z-index:2;pointer-events:none;--badge-x:28px;max-width:calc(100% - 32px);position:absolute;top:12px;left:50%;translate:-50%}#result .pill{white-space:nowrap;background:#08181ef0;border:1px solid #f2c14e8c;border-radius:999px;align-items:center;gap:12px;padding:8px 18px 8px 8px;display:flex;position:relative;overflow:hidden;box-shadow:0 8px 28px #00000073,0 0 0 4px #f2c14e14}#result .badge{box-sizing:border-box;background:var(--green);border-radius:50%;flex:none;place-items:center;width:40px;height:40px;display:grid}#result .badge svg{fill:none;width:20px;height:20px;stroke:var(--bg);stroke-width:3px;stroke-linecap:round;stroke-linejoin:round}#result .badge path{stroke-dasharray:20;stroke-dashoffset:20px;animation:.26s ease-out .38s forwards result-draw}#result .text{gap:1px;min-width:0;display:grid}#result .label{letter-spacing:.02em;color:var(--muted);text-overflow:ellipsis;font-size:11px;font-weight:600;overflow:hidden}#result .sum{color:var(--gold);font-variant-numeric:tabular-nums;font-size:22px;line-height:1.1}#result .sum small{color:var(--muted);font-size:13px;font-weight:600}#result .sheen{background:linear-gradient(90deg,#fff0,#ffecb438,#fff0);width:60px;animation:.7s ease-in-out .7s both result-sheen;position:absolute;top:0;bottom:0;left:0}#result .spark{left:var(--badge-x);background:var(--gold);border-radius:50%;width:6px;height:6px;margin:-3px;animation:.62s ease-out .3s both result-spark;position:absolute;top:50%}#result .spark:nth-of-type(2n){background:var(--green);width:5px;height:5px}#result.win{animation:.52s cubic-bezier(.2,1.5,.4,1) both result-drop}#result.win .badge,#result.perfect .badge{animation:.42s cubic-bezier(.2,1.8,.4,1) .14s both result-badge}#result.perfect{--badge-x:31px;animation:.6s cubic-bezier(.2,1.6,.4,1) both result-drop-big}#result.perfect .pill{background:var(--gold);border-color:#0000;padding:9px 20px 9px 9px;box-shadow:0 10px 34px #f2c14e73,0 0 0 4px #f2c14e2e}#result.perfect .badge{background:#2a1d00;width:44px;height:44px}#result.perfect .badge svg{width:22px;height:22px;fill:var(--gold);stroke:none}#result.perfect .badge path{animation:none}#result.perfect .label{color:#5a4200;font-weight:700}#result.perfect .sum{color:#2a1d00;font-size:26px}#result.perfect .sum small{color:#5a4200;font-size:14px;font-weight:700}#result.perfect .sheen{background:linear-gradient(90deg,#fff0,#ffffff8c,#fff0);animation-duration:.8s;animation-delay:.65s}#result.perfect .spark{width:7px;height:7px;animation-duration:.8s;animation-delay:.26s;left:50%}#result .ring{border:2px solid var(--gold);border-radius:999px;animation:.9s ease-out .2s both result-ring;position:absolute;inset:0}#result .rays{background:repeating-conic-gradient(#f2c14e29 0deg 10deg,#f2c14e00 10deg 30deg);border-radius:50%;width:360px;height:360px;margin:-180px;animation:1.4s ease-out both result-rays;position:absolute;top:50%;left:50%}#result.loss{animation:.3s ease-out both result-in,.42s ease-in-out .28s both result-shake}#result.loss .pill{background:#240c10f2;border-color:#ef5b5b8c;box-shadow:0 8px 28px #00000073}#result.loss .badge{border:2px solid var(--red);background:#ef5b5b2e;animation:.26s ease-out .12s both result-badge-in}#result.loss .badge svg{stroke:#ff8a8a;stroke-width:2.6px;width:18px;height:18px}#result.loss .badge path{stroke-dasharray:14;stroke-dashoffset:14px;animation-duration:.2s;animation-delay:.26s}#result.loss .badge path+path{animation-delay:.38s}#result.loss .label,#result.loss .sum small{color:#c9a3a6}#result.loss .sum{color:#ff8a8a}.miss-flash{pointer-events:none;animation:.7s ease-out both result-flash;position:absolute;inset:0;box-shadow:inset 0 0 60px 10px #ef5b5b59}#result.leaving{animation:.26s ease-in both result-leave}@keyframes result-drop{0%{opacity:0;transform:translateY(-18px)scale(.85)}}@keyframes result-drop-big{0%{opacity:0;transform:translateY(-24px)scale(.6)}}@keyframes result-in{0%{opacity:0;transform:translateY(-12px)}}@keyframes result-shake{20%{transform:translate(-7px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(2px)}}@keyframes result-leave{to{opacity:0;transform:translateY(-10px)}}@keyframes result-badge{0%{transform:scale(0)rotate(-40deg)}}@keyframes result-badge-in{0%{opacity:0;transform:scale(.4)}}@keyframes result-draw{to{stroke-dashoffset:0}}@keyframes result-spark{0%{opacity:0;transform:translate(0)scale(.4)}25%{opacity:1}to{transform:translate(var(--dx), var(--dy)) scale(1);opacity:0}}@keyframes result-sheen{0%{transform:translate(-120%)skew(-20deg)}to{transform:translate(420%)skew(-20deg)}}@keyframes result-ring{0%{opacity:.9;transform:scale(.9)}to{opacity:0;transform:scale(1.35)}}@keyframes result-rays{0%{opacity:0;transform:scale(.4)rotate(0)}30%{opacity:1}to{opacity:0;transform:scale(1.1)rotate(40deg)}}@keyframes result-flash{25%{opacity:1}0%,to{opacity:0}}@media (prefers-reduced-motion:reduce){#result,#result *{animation:none!important}#result .badge path{stroke-dashoffset:0}#result .spark,#result .sheen,#result .ring,#result .rays{display:none}}#results{background:var(--panel);border-top:1px solid var(--line);gap:6px;height:34px;margin:0;padding:6px 16px;list-style:none;display:flex;position:relative;overflow:hidden}#results:after{content:"";background:linear-gradient(to right, transparent, var(--panel));width:40px;position:absolute;top:0;bottom:0;right:0}#results:empty:before{content:"Your last 10 rounds show here";color:var(--muted);align-self:center;font-size:12px}#results li{font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:999px;flex:none;place-items:center;min-width:30px;height:22px;padding:0 8px;font-size:12px;font-weight:700;display:grid}#results .win{background:var(--gold);color:#2a1d00}#results .loss{background:var(--red);color:#fff}#results li:first-child{animation:.24s ease-out chip-in}@keyframes chip-in{0%{opacity:0;transform:scale(.6)}}@media (prefers-reduced-motion:reduce){#results li:first-child{animation:none}}#panel{background:var(--panel);padding:14px 16px max(14px, env(safe-area-inset-bottom));gap:12px;display:grid}.swap{display:grid}.swap>*{grid-area:1/1;align-content:start;gap:16px;min-width:0;display:grid}.swap>.off{visibility:hidden}.row{gap:8px;display:flex}button{font:inherit;color:var(--text);border:1px solid var(--line);min-height:var(--tap);cursor:pointer;touch-action:manipulation;background:#203547;border-radius:12px;padding:8px 14px;transition:background-color .16s,border-color .16s,box-shadow .16s,transform .16s}button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button:active:not(:disabled){transform:translateY(2px)}@media (hover:hover){button:hover:not(:disabled){border-color:#71929e}button.icon:hover:not(:disabled){color:var(--text);background:var(--panel)}.primary:hover:not(:disabled){background:#ffa569}.cash:hover:not(:disabled){background:#ffdc99}}button:disabled{opacity:.45;cursor:default}.num{font-variant-numeric:tabular-nums}.cap{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0;font-size:11px;font-weight:600}.kv{color:var(--muted);justify-content:space-between;align-items:baseline;gap:8px;margin:0;padding:10px 0;font-size:14px;display:flex}.kv>:last-child{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.pick{gap:10px;display:grid}.segments{background:var(--well);border-radius:12px;gap:2px;padding:3px;display:flex}.segments button{min-height:var(--tap);min-width:0;color:var(--muted);background:0 0;border:0;border-radius:9px;flex:auto;padding:0 8px}.segments strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:700;display:block;overflow:hidden}.segments [aria-checked=true]{color:var(--text);background:#24414a;box-shadow:inset 0 0 0 1px #4bd6bb80}.segments [aria-checked=true]:disabled{opacity:1}.risk{color:var(--muted);align-items:center;gap:8px;margin:0;font-size:12px;display:flex}.risk #topX{color:var(--green);font-variant-numeric:tabular-nums;margin-left:auto;font-weight:600}.bars{gap:3px;display:flex}.bars i{background:var(--line);border-radius:3px;width:16px;height:5px}.bars[data-risk="1"] i:nth-child(-n+1){background:var(--green)}.bars[data-risk="2"] i:nth-child(-n+2){background:var(--gold)}.bars[data-risk="3"] i{background:var(--orange)}.stake{gap:12px;display:grid}.bet{border-bottom:1px solid var(--line);align-items:center;padding-bottom:10px}.stake:focus-within .bet{border-bottom-color:var(--muted)}.stake.over .bet{border-bottom-color:var(--red)}.bet button{width:var(--tap);min-height:var(--tap);background:0 0;border-radius:999px;flex:none;padding:0;font-size:15px;font-weight:700}.bet input{width:100%;min-width:0;color:var(--text);font:inherit;font-variant-numeric:tabular-nums;background:0 0;border:0;outline:none;flex:1;padding:0;font-size:40px;font-weight:700;line-height:1.1}.bet input:disabled{opacity:.6}.chips{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;display:grid}.chips button{font-variant-numeric:tabular-nums;background:0 0;border-radius:10px;min-height:40px;padding:0 4px;font-size:13px;font-weight:700}.chips button[aria-pressed=true]{color:var(--green);border-color:var(--green);background:#4bd6bb1f}.info strong{color:var(--gold);font-size:18px;font-weight:700}.info.bad,.info.bad>:last-child{color:#ff8a8a}.meta{color:var(--text);justify-content:space-between;align-items:center;gap:8px;margin:0;font-size:15px;display:flex}.lock{white-space:nowrap;min-width:0;color:var(--muted);align-items:center;gap:5px;font-size:12px;display:flex}.lock svg{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:12px;height:12px}.pips{grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:4px;display:grid}.pips span{background:var(--line);border-radius:3px;height:6px}.pips .made{background:var(--gold)}.pips .next{background:var(--green);box-shadow:0 0 0 2px #4bd6bb4d}.banked{gap:4px;margin:8px 0 0;display:grid}.banked strong{color:var(--gold);font-variant-numeric:tabular-nums;transform-origin:0 100%;font-size:56px;line-height:1}.rows .kv+.kv{border-top:1px solid #22364a}#nextBox strong{color:var(--green);font-size:18px}#nextBox small{color:var(--green);font-size:12px}.actions button{border:0;border-radius:14px;flex-direction:column;flex:1;justify-content:center;align-items:center;min-width:0;min-height:60px;padding:6px 12px;font-size:20px;font-weight:700;display:inline-flex}.actions small{opacity:.75;font-variant-numeric:tabular-nums;font-size:12px;font-weight:600}.actions small:empty{display:none}#play{flex-direction:row;gap:.3em}.primary{background:var(--orange);color:#24180f;box-shadow:inset 0 1px #ffd4a8,0 4px #ad542c,0 7px 18px #0003}.primary:active:not(:disabled){box-shadow:inset 0 1px #ffd4a8,0 2px #ad542c}.cash{background:var(--gold);color:#2a1d00;box-shadow:inset 0 1px #ffe9be,0 4px #9d7132}.hint{color:var(--muted);text-align:center;margin:0;font-size:12px}@media (pointer:coarse){.hint{display:none}}.sr{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}#fair{width:min(100%,960px);max-width:100%;max-height:calc(100dvh - 56px);padding:8px 16px max(24px, env(safe-area-inset-bottom));overscroll-behavior:contain;color:var(--text);background:var(--panel);border:0;border-top:1px solid var(--line);border-radius:20px 20px 0 0;margin:auto auto 0;overflow-y:auto}#fair[open]{gap:14px;animation:.22s ease-out sheet-in;display:grid}#fair::backdrop{background:#020e12a6}@keyframes sheet-in{0%{opacity:0;transform:translateY(24px)}}@media (prefers-reduced-motion:reduce){#fair[open]{animation:none}}#fair .grab{background:var(--line);border-radius:2px;justify-self:center;width:36px;height:4px}#fair .head{justify-content:space-between;align-items:center;display:flex}#fair h2{margin:0;font-size:20px}#fairClose{margin-right:-10px}#fair p{margin:0}#fair .lede{color:var(--muted);font-size:14px;line-height:1.45}#fair .label{letter-spacing:.02em;color:var(--muted);margin-bottom:6px;font-size:11px;font-weight:600;display:block}.field{min-height:var(--tap);background:var(--well);border:1px solid var(--line);border-radius:12px;align-items:center;padding:0 12px;display:flex}.hash{gap:8px;padding:6px 0 6px 12px}.hash #seedHash{overflow-wrap:anywhere;flex:1;min-width:0;font-size:13px;line-height:1.4}.seeds{grid-template-columns:88px minmax(0,1fr);gap:8px;display:grid}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.seed{gap:6px;display:flex}.seed input{min-width:0;min-height:var(--tap);background:var(--well);color:var(--text);border:1px solid var(--line);border-radius:12px;flex:1;padding:6px 12px;font-size:16px}.seed button{padding:6px 16px;font-weight:600}#lastRound{overflow-wrap:anywhere;border:1px solid;border-radius:12px;gap:4px;padding:12px;display:grid}#lastRound.ok{background:#52d17c1a;border-color:#52d17c59}#lastRound.bad{background:#ef5b5b1f;border-color:#ef5b5b73}#lastRound strong{font-size:14px}#lastRound.ok strong{color:var(--green)}#lastRound.bad strong{color:var(--red)}#lastRound p{color:var(--muted);font-size:13px}#lastRound .mono{font-size:12px}@media (min-width:720px) and (min-height:600px){header{padding:8px 12px 8px 20px}#panel{padding:16px 20px}}@media (min-width:1050px) and (min-height:640px){#app{border:1px solid #293b4a;border-radius:22px;grid-template-rows:68px minmax(0,1fr) 38px;grid-template-columns:minmax(0,1fr) 310px;width:calc(100% - 64px);max-width:1280px;height:min(820px,100dvh - 64px);margin:32px auto;overflow:hidden;box-shadow:0 24px 80px #0005}header{border-bottom:1px solid var(--line);grid-column:1/-1;padding:10px 18px 10px 24px}.brand{font-size:28px}#stage{grid-area:2/1}#results{grid-area:3/1;height:38px;padding:8px 20px}#panel{border-left:1px solid var(--line);grid-area:2/2/4;align-content:center;gap:22px;padding:24px 18px}.swap>*{gap:28px}.segments strong{font-size:13px}.actions{flex-direction:column;gap:14px}.actions button{flex:auto;min-height:64px}.hint{font-size:10px}}@media (max-height:700px) and (max-width:1049px){header{min-height:48px}#panel{padding-top:10px;padding-bottom:max(10px, env(safe-area-inset-bottom));gap:8px}.swap>*{gap:8px}.segments button{min-height:44px}.pick>.cap,.stake>.cap{display:none}.stake{gap:8px}.bet{padding-bottom:6px}.bet input{font-size:30px}.banked{margin-top:0}.banked strong{font-size:40px}.kv{padding:6px 0}.actions button{min-height:52px}}@media (max-width:699px){header{min-height:48px}#results{height:28px;padding:3px 16px}#results li{height:22px}#panel{padding:8px 16px max(8px, env(safe-area-inset-bottom));gap:8px}.swap>*{gap:8px}.pick{gap:6px}.pick>.cap,.stake>.cap{display:none}.segments button{min-height:38px}.stake{gap:8px}.bet{padding-bottom:2px}.bet button{width:40px;min-height:40px}.bet input{font-size:28px}.chips button{min-height:36px}.kv{padding:4px 0}.info strong{font-size:16px}.banked{margin-top:0}.banked strong{font-size:36px}#nextBox strong{font-size:16px}.actions button{min-height:50px;font-size:18px}}@media (prefers-reduced-motion:reduce){button{transition:none}button:active:not(:disabled){transform:none}.miss-flash{animation:none;display:none}}@media (max-width:380px){header{gap:0;padding-left:12px;padding-right:4px}.brand{font-size:20px}.brand-icon{width:22px;height:22px;margin-right:5px}.wallet{padding:0 8px}.balance{font-size:13px}#currency{font-size:10px}.segments strong{font-size:13px}}@media (min-width:700px) and (max-height:639px){#app{grid-template-rows:48px minmax(0,1fr) 34px;grid-template-columns:minmax(0,1fr) 300px;max-width:none}header{grid-column:1/-1;min-height:48px}#stage{grid-area:2/1}#results{grid-area:3/1}#panel{border-left:1px solid var(--line);grid-area:2/2/4;align-content:center;gap:8px;padding:10px 14px}.swap>*{gap:8px}.segments button{min-height:44px}.segments strong{font-size:12px}.pick>.cap,.stake>.cap{display:none}.stake{gap:8px}.bet input{font-size:28px}.banked strong{font-size:36px}.kv{padding:6px 0}.actions button{min-height:52px}.hint{font-size:10px}}
