:root{--bg:#0b0818;--surface:#211431;--text:#f9f3ff;--muted:#b9a9cf;--neon:#b63eff;--pink:#ef62f7;--accent:#a435eb;--edge:#8c39bc;--gold:#ffca57}
*{box-sizing:border-box}html{color-scheme:dark;background:var(--bg);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--text)}body{margin:0;min-width:320px;min-height:100dvh;background:radial-gradient(ellipse 90% 62% at 50% 40%,#31104e80,transparent 73%),#0b0818}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}button:focus-visible,input:focus-visible{outline:2px solid #e1a1ff;outline-offset:3px}a{color:#e9b3ff}.hidden{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.crown{width:100%;height:100%;color:#ffb1ff;filter:drop-shadow(0 0 7px #ed38ff)}
.shell{width:100%;max-width:540px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(180deg,#100b1d 0%,#110a20 37%,#110b21 80%,#0b0816 100%);position:relative}.shell::before{content:'';position:absolute;inset:85px -100px 65px;pointer-events:none;background:radial-gradient(ellipse at center,#4811686b,transparent 69%)}
.top{position:relative;z-index:5;min-height:60px;padding:calc(12px + env(safe-area-inset-top)) 18px 8px;display:flex;align-items:center;justify-content:space-between;background:#0c0918db}.brand{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:850;letter-spacing:.35px;text-shadow:0 0 13px #bd3bff66}.brand-crown{width:37px;height:33px}.balance-pill{border:1px solid #8c35bd88;border-radius:24px;background:linear-gradient(145deg,#301445,#1b112d);padding:7px 11px;color:#fff;display:flex;align-items:center;gap:5px;font-size:13px}.balance-caption{font-size:10px;color:#c4acd0}.star{color:var(--gold);text-shadow:0 0 7px #fcae45}
main{flex:1;position:relative;z-index:2;display:flex;flex-direction:column}.view{display:none;width:100%;padding:0 17px 16px;flex:1}.view.active{display:block}#homeView{padding-bottom:9px}.hero{height:196px;position:relative;margin:0 -17px;overflow:hidden;background:radial-gradient(ellipse 57% 55% at 50% 75%,#8c1de06b,transparent 100%)}.hero-rays{position:absolute;inset:0;background:repeating-conic-gradient(from -18deg at 50% 100%,#b23dff22 0deg,transparent 2deg,transparent 17deg);mask-image:linear-gradient(transparent 3%,black 70%);opacity:.85}.hero-item{position:absolute;bottom:-1px;filter:drop-shadow(0 0 16px #a23dff80)}.hero-ps{width:65%;height:195px;left:1px}.hero-ps img{width:100%;height:100%;object-fit:contain;object-position:center bottom}.hero-gta{width:35%;height:166px;right:8%;bottom:4px}.hero-gta img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 6px 8px #10051f)}
h1{text-align:center;position:relative;font-size:clamp(23px,6vw,30px);line-height:1.11;letter-spacing:-.35px;margin:5px 0 12px;font-weight:850;text-shadow:0 0 10px #b02bff70}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric{height:54px;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #af61df80;border-radius:15px;background:linear-gradient(145deg,#42205cdb,#21162fda 67%,#291637);box-shadow:inset 0 1px #ffffff20,0 2px 16px #dd40ef14;color:#fff}.metric b{font-size:18px;font-weight:780;display:block;line-height:1.12;white-space:nowrap}.metric small{display:block;color:#f2eafa;font-size:11px;margin-top:1px;white-space:nowrap}.metric-icon{font-size:26px;line-height:1}.metric-icon.gold{color:#ffc351;text-shadow:0 2px 6px #ffac4099}.metric-icon.percent{border:2px solid #dcc6fa;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:21px}.metric-button{cursor:pointer;width:100%}
.wheel-zone{position:relative;min-height:0}.wheel-wrap{--wheel-size:min(85vw,336px);width:var(--wheel-size);height:var(--wheel-size);margin:8px auto 6px;position:relative;display:grid;place-items:center;isolation:isolate}.wheel-glow{position:absolute;inset:-8px;border-radius:50%;background:conic-gradient(from 10deg,#9b2dfa99,#8b28df44,#ee4fff66,#8c25efcc,#9b2dfa99);filter:blur(24px);opacity:.9;z-index:-2}.wheel-wrap:before{content:'';position:absolute;inset:3px;border-radius:50%;background:conic-gradient(from 80deg,#e842ff,#3514fd,#e56aff,#fa62ff,#6129f2,#c12fff,#e842ff);box-shadow:0 0 0 2px #dda2ff,0 0 0 5px #541188,0 0 17px 8px #9b32ed99,inset 0 0 9px 2px #e89bff;z-index:-1}.wheel-wrap:after{content:'';pointer-events:none;position:absolute;inset:12px;border-radius:50%;border:1px solid #f9c2ffad;box-shadow:inset 0 0 11px #c95aff,0 0 8px #e443ff}.wheel{position:absolute;inset:16px;border:3px solid #aa58ec;border-radius:50%;background:conic-gradient(from 0deg,#9e4bdb 0deg,#52218f 45deg,#38115f 45deg,#1d124b 90deg,#512187 90deg,#1b0e4c 135deg,#563294 135deg,#271247 180deg,#5a2a85 180deg,#231244 225deg,#56318a 225deg,#25124c 270deg,#74319a 270deg,#2c1654 315deg,#65269b 315deg,#9e4bdb 360deg);box-shadow:inset 0 0 38px #050612,0 0 11px #de51ff;transform:rotate(0deg);will-change:transform;overflow:hidden}.wheel::before{content:'';position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(from 0deg,#ffb8fb52 0deg 1deg,transparent 1deg 45deg);mix-blend-mode:screen;pointer-events:none}.wheel::after{content:'';position:absolute;inset:10px;border-radius:50%;border:1px solid #b878ff55;pointer-events:none}.wedge-item{position:absolute;top:50%;left:50%;width:42px;height:42px;margin-left:-21px;margin-top:-21px;display:grid;place-items:center;font-size:34px;filter:drop-shadow(0 4px 5px #0b031b);transform:rotate(calc(var(--i) * 45deg + 22.5deg)) translateY(calc((min(85vw,336px) - 86px) * -.5)) rotate(calc(var(--i) * -45deg - 22.5deg))}.wheel-center{position:absolute;width:27%;height:27%;border-radius:50%;background:radial-gradient(circle at 40% 35%,#421773,#0c0518 70%);border:5px solid #d45aff;box-shadow:0 0 0 3px #481480,0 0 15px 4px #ed5bf5,inset 0 0 11px #7d0dd0;display:grid;place-items:center}.wheel-center .crown{width:58%;height:52%}.wheel-pointer{z-index:9;position:absolute;top:-5px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:19px solid transparent;border-right:19px solid transparent;border-top:36px solid #ffd36c;filter:drop-shadow(0 0 6px #fff4ae) drop-shadow(0 0 9px #ff9627)}
.spinning-label{font-size:23px;line-height:1.1;font-weight:850;font-style:italic;text-align:center;text-shadow:0 0 14px #e55dff;margin:8px auto 18px}.wheel-zone.is-spinning .wheel-wrap{--wheel-size:min(89vw,356px);margin:25px auto 7px}.wheel-zone.is-spinning .wheel-glow{filter:blur(19px);opacity:1}.wheel-zone.is-spinning+.main-cta{display:none}
.button{width:100%;min-height:52px;border:1px solid #ebb2ff;border-radius:17px;color:#fff;font-size:17px;font-weight:800;background:linear-gradient(180deg,#ee74ff 0%,#a734ef 42%,#6a1ce1 100%);box-shadow:inset 0 2px #ffffff75,0 4px 17px #b02eff6b,0 0 0 1px #8f2cbd;transition:filter .15s,transform .15s}.button:not(:disabled):active{transform:scale(.985);filter:brightness(1.12)}.main-cta{display:flex;align-items:center;justify-content:center;gap:11px}.cta-star{font-size:26px;color:#ffd67d;text-shadow:0 0 10px #ffc65b}.balance-line{font-size:11px;color:#bcb0d1;text-align:center;margin:9px 0 0}.balance-line strong{color:#fff}.notice{font-size:12px;color:#ffb5bf;text-align:center}.dev-button{display:block;background:transparent;border:0;color:#a790b4;font-size:11px;text-decoration:underline;margin:6px auto 0}
.bottom-nav{min-height:64px;padding:6px 6px calc(5px + env(safe-area-inset-bottom));background:linear-gradient(#130f22ee,#100b1c);border-top:1px solid #61356b9c;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:relative;z-index:4}.bottom-nav button{border:0;background:transparent;color:#e0d6ed;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:11px;min-width:0}.bottom-nav button.selected{color:#f6c6ff;text-shadow:0 0 9px #d545ff}.nav-icon{font-size:27px;line-height:1.2;font-family:'Segoe UI Symbol',sans-serif}
.view:not(#homeView){padding-top:18px}.view h2{font-size:27px;margin:11px 0 10px}.subtitle{color:#cbb9d5;margin:0 0 18px;font-size:13px}.section-heading{font-size:17px;margin:22px 0 12px}.prize-list{display:grid;gap:15px;margin-bottom:18px}.prize-list-card{background:linear-gradient(145deg,#34144d,#160d2a);border:1px solid #a143d055;border-radius:20px;padding:12px;display:grid;grid-template-columns:115px 1fr;align-items:center;gap:12px;min-height:152px}.prize-list-card img{width:112px;height:128px;object-fit:contain;filter:drop-shadow(0 5px 10px #ae34c766)}.prize-list-card strong{font-size:17px}.prize-list-card p{font-size:12px;color:var(--muted);margin:6px 0}.chance-value{color:#eccaff!important;font-weight:bold}.panel,.history-card{background:linear-gradient(155deg,#2a183d,#180e29);border:1px solid #74359e88;border-radius:17px;padding:17px;margin-bottom:12px;box-shadow:inset 0 1px #ffffff14}.panel h3{margin-top:7px}.panel p,.history-card{font-size:13px;line-height:1.5}.panel p{color:#ddd0e8}.profile-summary{display:grid;gap:10px}.profile-summary p{display:flex;justify-content:space-between;gap:20px;margin:0}.profile-summary b{color:#fff;text-align:right}.profile-actions{display:grid;gap:11px;margin-top:20px}.profile-actions button{min-height:49px;text-align:left;padding:0 18px;color:#f8efff;border-radius:14px;border:1px solid #8b46b6;background:#2d1648;font-weight:700}.tokens{display:flex;flex-wrap:wrap;gap:7px}.token{border-radius:18px;background:#552184;border:1px solid #a15cc9;padding:6px 10px;font-size:12px}.muted{color:var(--muted)}.back,.link-action,.result-back{background:none;border:0;color:#e4b2ff;padding:10px 2px}.back{margin:0 0 4px}.history-card small{color:#a8a0ba;display:block;margin-top:5px}.copy-row{display:flex;gap:7px}.copy-row input{min-width:0;flex:1}.small-button{border-radius:11px;border:1px solid #c06be4;background:#50217b;color:white;padding:9px 12px}.panel input,.panel select,.panel textarea,.sheet input,.sheet textarea{background:#110a1e;border:1px solid #854baa;color:white;border-radius:10px;padding:10px;max-width:100%;width:100%;margin:4px 0 9px}.panel label{display:block;font-size:12px;margin:7px 0}.panel label input[type=checkbox]{width:auto;margin-right:6px}.admin-form{display:grid;grid-template-columns:1fr 1fr;gap:8px}.admin-prize{border-top:1px solid #6f357e;margin-top:15px}.admin-prize h4{margin-bottom:6px}.admin-line{display:flex;gap:7px;align-items:center}.admin-line select{flex:1}.odds-table{border-collapse:collapse;width:100%;font-size:12px}.odds-table td{border-bottom:1px solid #54306b;padding:7px 3px}.odds-table td:last-child{text-align:right;white-space:nowrap}
#resultView{text-align:center;position:relative;padding-top:22px}.result-heading{font-size:clamp(27px,8vw,34px)!important;margin:8px 0 8px!important;color:#fae5ff;text-shadow:0 0 22px #df40ff}.result-subtitle{font-size:18px;font-weight:700;margin:0;color:#f2ddff}.result-title{font-size:clamp(24px,7vw,32px);line-height:1.18;margin:2px 0 10px;text-shadow:0 0 17px #eb39ff}.result-product-wrap{height:min(47vh,385px);min-height:256px;display:grid;place-items:center;position:relative;margin:8px auto 15px}.result-halo{position:absolute;width:min(92vw,420px);height:85%;background:radial-gradient(ellipse at 50% 61%,#d844f885,#8622d077 32%,transparent 71%);filter:blur(20px)}.result-product-wrap::after{content:'';position:absolute;bottom:12px;width:82%;height:24px;border-radius:50%;border:2px solid #a34deb;box-shadow:0 0 18px #c52cff,0 0 30px #a42df5;transform:perspective(150px) rotateX(60deg)}.result-product-wrap img{z-index:1;position:relative;width:96%;height:100%;object-fit:contain;filter:drop-shadow(0 0 20px #e64effa0)}.result-product-wrap img.gta-win{width:65%}.result-celebration{position:absolute;inset:25px 5px auto;pointer-events:none}.result-celebration span{position:absolute;color:#d85bff;font-size:22px;filter:drop-shadow(0 0 7px #e958ff)}.result-celebration span:nth-child(1){left:5%;top:15px}.result-celebration span:nth-child(2){right:6%;top:18px;color:#ffc46a}.result-celebration span:nth-child(3){left:14%;top:160px;color:#ffb454}.result-celebration span:nth-child(4){right:12%;top:180px}.result-celebration span:nth-child(5){left:25%;top:275px}.result-celebration span:nth-child(6){right:4%;top:270px;color:#ff8eda}.result-cta{margin:0 0 10px}.link-action{display:block;margin:7px auto;font-size:16px;text-decoration:underline;text-underline-offset:4px}.result-back{font-size:12px;color:#b395c6;margin-top:2px}
.backdrop{position:fixed;inset:0;display:grid;align-items:end;z-index:20;background:#080412ba;backdrop-filter:blur(8px)}.sheet{width:100%;max-width:540px;margin:auto auto 0;background:linear-gradient(160deg,#301646,#160d29);border:1px solid #9f47ca;border-radius:25px 25px 0 0;padding:30px 22px calc(28px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px #b12be24f;position:relative;max-height:90vh;overflow:auto}.sheet-icon{font-size:39px;text-align:center;color:#ffd187}.sheet h2{text-align:center;margin:9px 0 15px;font-size:24px}.sheet p{font-size:14px;color:#e0d2eb;line-height:1.55}.sheet .button,.sheet .small-button{margin-top:10px;width:100%}.close{position:absolute;right:16px;top:13px;border:0;background:#ffffff12;color:#fff;border-radius:50%;width:31px;height:31px;font-size:23px}.toast{position:fixed;z-index:30;bottom:calc(87px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#3b1d56;border:1px solid #ba65f2;box-shadow:0 0 18px #ac39ef77;color:#fff;border-radius:12px;padding:12px 16px;font-size:13px;min-width:190px;text-align:center;max-width:90vw}
@media(max-width:380px){.top{min-height:55px;padding:9px 14px 6px}.brand{font-size:16px}.brand-crown{width:31px}.hero{height:172px}.hero-ps{height:170px}.hero-gta{height:147px}h1{font-size:23px;margin:3px 0 10px}.metrics{gap:7px}.metric{height:49px}.metric b{font-size:16px}.metric small{font-size:10px}.wheel-wrap{--wheel-size:min(79vw,305px);margin:8px auto 5px}.wedge-item{transform:rotate(calc(var(--i) * 45deg + 22.5deg)) translateY(calc((min(79vw,305px) - 86px) * -.5)) rotate(calc(var(--i) * -45deg - 22.5deg))}.button{min-height:49px}.balance-line{margin-top:5px}.bottom-nav{min-height:61px}.result-product-wrap{height:39vh;min-height:230px}}
@media(min-width:431px){.hero{height:205px}.wheel-wrap{--wheel-size:342px}.wedge-item{transform:rotate(calc(var(--i) * 45deg + 22.5deg)) translateY(-125px) rotate(calc(var(--i) * -45deg - 22.5deg))}}
@media(max-height:760px){.hero{height:155px}.hero-ps{height:158px}.hero-gta{height:137px}.wheel-wrap{--wheel-size:min(70vw,285px);margin-top:5px}.wedge-item{transform:rotate(calc(var(--i) * 45deg + 22.5deg)) translateY(-100px) rotate(calc(var(--i) * -45deg - 22.5deg))}.bottom-nav{min-height:58px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Visual QA pass 2: keep the four-tab rail visible at supported Telegram WebView sizes. */
.shell{height:100dvh;min-height:0}.shell main{min-height:0;overflow-y:auto;scrollbar-width:none}.shell main::-webkit-scrollbar{display:none}
.hero{height:173px}.hero-ps{height:173px}.hero-gta{height:150px}
.wheel-wrap{--wheel-size:min(76vw,315px);--icon-radius:calc((var(--wheel-size) - 86px)*.5);margin:7px auto 5px}
.wedge-item{transform:rotate(calc(var(--i)*45deg + 22.5deg)) translateY(calc(var(--icon-radius)*-1)) rotate(calc(var(--i)*-45deg - 22.5deg))}
.wheel-zone.is-spinning .wheel-wrap{--wheel-size:min(79vw,325px);margin:15px auto 8px}
@media(max-width:380px){.hero{height:158px}.hero-ps{height:156px}.hero-gta{height:140px}.wheel-wrap{--wheel-size:min(76vw,286px)}.wheel-zone.is-spinning .wheel-wrap{--wheel-size:min(78vw,300px)}}
@media(min-width:431px){.hero{height:191px}.hero-ps{height:193px}.hero-gta{height:172px}.wheel-wrap{--wheel-size:332px}}
@media(max-height:760px){.hero{height:150px}.hero-ps{height:151px}.hero-gta{height:130px}.wheel-wrap{--wheel-size:min(69vw,280px)}.wheel-zone.is-spinning .wheel-wrap{--wheel-size:min(70vw,292px)}}

.wedge-photo{width:51px;height:55px;margin-left:-25.5px;margin-top:-27.5px}.wedge-photo img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 5px #ad33eaa0)}
