/* Twist Nebula: standalone game palette, independent of site theme. */
:root{color-scheme:dark;--ink:#141120;--muted:#b8afce;--green:#36e8a5;--orange:#ffb267;--purple:#c5a2ff;--accent:#d5b8ff}*{box-sizing:border-box}
html[data-twist-theme]{background:#141120!important}
html[data-twist-theme] body{margin:0;background:radial-gradient(ellipse at 50% 5%,#302047 0,transparent 55%),#141120!important;color:#f5efff!important;font:600 14px/1.4 system-ui,sans-serif}
button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer;border:1px solid #8b76ad55;color:#f1e8ff;background:#292237;border-radius:11px;padding:10px}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #cfacff;outline-offset:3px}a{color:#dfc6ff;text-decoration:none}
#twist-app{max-width:1000px;margin:auto;padding:0 18px 18px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,1fr);gap:16px}
html[data-twist-theme] .topbar{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:68px;border-bottom:1px solid #b9a2d52b;background:transparent!important;box-shadow:none}
html[data-twist-theme] .brand{font-size:25px;font-weight:950;font-style:italic;color:#faf2e4}.brand span{color:#b6e53c}.wallet{margin-left:auto;text-align:right}.wallet small{display:block;font-size:9px;letter-spacing:1.1px;color:#b8afce}.wallet strong{font-size:23px;line-height:1.2}.topbar button{font-size:18px;width:38px;height:38px;padding:0;background:#2c223d}
.stage{position:relative;background:radial-gradient(ellipse at 50% 40%,#47295355,#181422 70%);border:1px solid #9a7abb44;border-radius:22px;padding:17px 14px 14px;box-shadow:inset 0 1px #ffffff0a,0 12px 35px #09051055;overflow:hidden}.stage:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 20% 25%,#9e86d011 1px,transparent 2px) 0 0/41px 53px;pointer-events:none}.stage-title{text-align:center;position:relative}.stage-title>span{font-size:8px;letter-spacing:3px;color:#c4b4d7}.stage-title h1{font-size:36px;letter-spacing:6px;margin:0;line-height:1.1;color:#f1dcff;text-shadow:0 2px #65507c,0 0 28px #e18cff33}.stage-title p{display:none}.result{text-align:center;min-height:22px;margin-top:5px;font-size:12px;color:#d9cde7;position:relative}
.wheel-wrap{position:relative;width:100%;max-width:450px;margin:0 auto;aspect-ratio:1}#wheel{display:block;width:100%;height:100%;filter:drop-shadow(0 10px 12px #0008)}#wheel .ring-segment{stroke:#141020;stroke-width:4;fill:#332a42}#wheel .segment-on.green{fill:url(#green-ring)}#wheel .segment-on.orange{fill:url(#orange-ring)}#wheel .segment-on.purple{fill:url(#purple-ring)}#wheel text{font:900 19px system-ui;fill:#ebe0f5;paint-order:stroke;stroke:#16101d;stroke-width:1px}#wheel text.on{fill:#fff9ff}#wheel .wheel-rim{fill:none;stroke:url(#gold-ring);stroke-width:8}#wheel .track circle{fill:none;stroke:#bcadd922;stroke-width:1}
.centre-gem{position:absolute;inset:36%;clip-path:polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%);background:conic-gradient(from 20deg,#8affb7,#009c6e,#b0ffd4,#12bf7a,#00533a,#8affb7);filter:drop-shadow(0 0 12px #0f7);transform:rotate(8deg);transition:background .2s}.centre-gem i{display:block;position:absolute;inset:15%;clip-path:inherit;background:linear-gradient(145deg,#bbffbd,#008e68 55%,#32e3a5)}.centre-gem.orange{background:conic-gradient(#ffe5aa,#f06b33,#ffce7c,#8f3018,#fff1b1)}.centre-gem.orange i{background:linear-gradient(145deg,#fff1bd,#e06728)}.centre-gem.purple{background:conic-gradient(#f3e1ff,#7846cb,#e3bdff,#57288e,#f4e7ff)}.centre-gem.purple i{background:linear-gradient(145deg,#fff0ff,#8a44d5)}.centre-gem.stone,.centre-gem.dark{filter:grayscale(1);opacity:.8}.centre-gem.dark{opacity:.35}.sparkles{position:absolute;top:43%;left:43%;font-size:36px;color:white;pointer-events:none;text-shadow:25px 30px 0 #fff9,-8px 55px 0 #fff5}.busy .centre-gem{animation:gemspin .7s ease-in-out infinite}.busy #wheel .track{transform-origin:300px 300px;animation:ringpulse 1s ease-in-out infinite alternate}.busy #wheel .track:nth-of-type(2){animation-direction:alternate-reverse}
.ring-meter{display:flex;gap:14px;justify-content:center;text-align:center;font-size:10px;position:relative}.ring-meter b{display:inline;margin-left:5px;font-size:11px;color:#eee0ff}.ring-meter span{color:#bcaecf}.ring-meter span:first-child{color:#67e0ad}.ring-meter span:nth-child(2){color:#ffc38d}.ring-meter span:nth-child(3){color:#caa6ff}
.bank{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px;border-top:1px solid #bca1d624;margin-top:10px;padding:9px 4px 0;position:relative}.bank>span{font-size:9px;letter-spacing:1.1px;color:#bdb0d0}.bank strong{grid-column:2;grid-row:1/3;font-size:29px;line-height:1;color:#f3ddff}.bank small{font-size:10px;color:#bcb0cb}
.controls{align-self:center;border:1px solid #a18cbd44;border-radius:20px;padding:19px;background:linear-gradient(145deg,#292034,#1c1929);box-shadow:0 15px 35px #08051144}.stake-label{font-size:10px;letter-spacing:1.3px;color:#cbbddd}.stake{display:flex;margin-top:7px;border:1px solid #9682af70;border-radius:11px;overflow:hidden;background:#151223}.stake input{min-width:0;width:100%;background:transparent;color:#f6edff;border:0;text-align:center;font-size:26px;font-weight:900;padding:8px 0}.stake button{border:0;border-radius:0;background:transparent;font-size:23px;width:46px;flex-shrink:0}.limits{font-size:9px;color:#b6abc8;margin:6px 0 12px}.accept{font-size:11px;display:flex;gap:8px;align-items:flex-start;color:#d6cbe5;line-height:1.4}.accept input{accent-color:#ba8cf1;width:17px;height:17px;margin:0;flex-shrink:0}.next-odds{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;margin:10px 0;font-size:9px;font-variant-numeric:tabular-nums}.next-odds span{padding:3px 4px;border:1px solid #ac94c42b;background:#1d1728;border-radius:5px;color:#cfc1df}
.spin{width:100%;min-height:52px;font-size:20px;font-weight:950;letter-spacing:2px;background:linear-gradient(130deg,#dfc5ff,#aa79e8);color:#241032;border:1px solid #e3c4ff;box-shadow:inset 0 -3px #6c379d55,0 5px 18px #12032155}.cashouts{display:flex;gap:8px;margin-top:8px}.cashouts button{flex:1;font-size:11px;font-weight:800;min-height:40px;padding:8px 6px}#all{background:#3b2a4f;color:#efdbff;border-color:#b78ed15c}#status{font-size:11px;min-height:16px;color:#cbbbdc;text-align:center;margin:9px 0 0}#recover{width:100%;margin-top:8px;background:#744255}.login{display:block;text-align:center;padding-top:6px}footer{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#a99cbb;padding:0}footer button{padding:0;background:none;border:0;font-size:10px;color:#d6bbf6}
dialog{max-width:620px;width:calc(100% - 24px);max-height:85dvh;padding:20px;background:#20182c;color:#e9dff3;border:1px solid #b08bc588;border-radius:18px;line-height:1.6}dialog::backdrop{background:#0b0612d9;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0;color:#ead0ff}details{border-top:1px solid #b09dc530;margin-top:14px;padding-top:12px}summary{cursor:pointer;color:#e9ccff;font-weight:800}dialog p{font-size:12px}dialog input{padding:9px;background:#140f20;border:1px solid #ac8eb755;border-radius:8px;color:white;max-width:100%}dialog code{font-size:10px;overflow-wrap:anywhere}#history details{font-size:11px}#history pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px}table{width:100%;font-size:12px;border-collapse:collapse}td,th{text-align:left;padding:7px;border-bottom:1px solid #d4bcf025}#volume{accent-color:#be96ee;width:100%}[hidden]{display:none!important}
@keyframes gemspin{50%{transform:rotate(-12deg) scale(.86);filter:hue-rotate(90deg)}}@keyframes ringspin{to{transform:rotate(360deg)}}.busy #wheel .track{transform-origin:300px 300px;animation:ringspin 1.2s linear infinite}.busy #wheel .track:nth-of-type(2){animation-duration:1.6s;animation-direction:reverse}.busy #wheel .track:nth-of-type(3){animation-duration:1.9s}
@media(max-width:760px){#twist-app{display:block;max-width:540px;padding:0 10px 14px}.topbar{min-height:59px!important;margin-bottom:10px;gap:8px!important}.brand{font-size:23px!important}.topbar button{width:34px;height:34px}.wallet strong{font-size:21px}.stage{padding:10px 8px;border-radius:18px}.stage-title>span{font-size:7px;letter-spacing:2.6px}.stage-title h1{font-size:28px;letter-spacing:5px}.result{font-size:11px;min-height:18px;margin-top:4px}.wheel-wrap{width:min(100%,36dvh,310px);max-width:310px}.ring-meter{gap:10px;font-size:9px}.ring-meter b{font-size:10px;margin-left:4px}.bank{margin-top:7px;padding-top:7px}.bank strong{font-size:25px}.bank>span{font-size:8px}.bank small{font-size:9px}.controls{margin-top:10px;padding:12px 13px;border-radius:17px}.stake-label{font-size:9px}.stake{margin-top:4px}.stake input{font-size:24px;padding:6px 0}.stake button{width:43px;font-size:23px}.limits{font-size:8px;margin:4px 0 8px}.accept{font-size:10px;gap:7px}.accept input{width:16px;height:16px}.next-odds{font-size:8px;margin:7px 0;gap:3px}.next-odds span{padding:3px}.spin{min-height:47px;font-size:19px}.cashouts{margin-top:7px;gap:7px}.cashouts button{min-height:36px;font-size:10px;padding:7px 4px}#status{font-size:10px;margin-top:6px;line-height:1.35}footer{margin-top:10px;font-size:9px}footer button{font-size:9px}}
@media(max-height:700px) and (max-width:760px){.wheel-wrap{width:min(100%,33dvh,255px)}.stage-title>span{display:none}.stage-title h1{font-size:24px}.topbar{min-height:53px!important}.controls{padding:10px 12px}.result{font-size:10px}.bank small{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Keep all five disclosed probabilities in one compact row. */
.next-odds{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.next-odds span{display:grid;text-align:center;padding:4px 2px;font-size:9px;line-height:1.3}.next-odds strong{font-size:9px;font-weight:800;color:#f2e4ff;white-space:nowrap}
@media(max-width:760px){.wheel-wrap{width:min(100%,31dvh,282px)}.stage-title h1{font-size:26px}.controls{padding:10px 12px}.stake{margin-top:3px;height:42px}.stake input{height:40px;padding:0;font-size:23px;line-height:40px}.stake button{height:40px;padding:0}.limits{margin:3px 0 5px}.next-odds{margin:5px 0;gap:3px}.next-odds span{font-size:8px;padding:3px 1px}.next-odds strong{font-size:8px}.spin{height:44px;min-height:44px;padding:7px}.cashouts{margin-top:5px}#status{min-height:14px;font-size:10px;margin-top:4px}}
@media(max-height:700px) and (max-width:760px){.wheel-wrap{width:min(100%,26dvh,210px)}.stage{padding:8px}.stage-title h1{font-size:23px}.bank{margin-top:5px;padding-top:5px}}
@media(max-width:760px){#twist-app{padding-bottom:12px}}
@media(max-height:700px) and (max-width:760px){#twist-app{padding-bottom:6px}.topbar{margin-bottom:7px}.stage{padding:6px}.stage-title h1{font-size:21px}.result{margin-top:2px}.controls{margin-top:7px}footer{margin-top:6px}}
@media(max-height:700px) and (max-width:760px){#twist-app{padding-bottom:4px}}
.stake-hint{font-size:10px;color:#d3b9f0;margin:5px 0;line-height:1.4}.stake-hint:empty{display:none}#stake-confirm h2{color:#edcfff;font-size:22px}#stake-confirm-text{font-size:14px}#stake-apply{background:#bc8aee;color:#21122e;font-weight:850}#sound[aria-pressed="true"]{background:#8660a9;color:#fff;border-color:#d5b0ff;box-shadow:0 0 13px #b66eff44}
