:root{--bg:#08070b;--panel:#111015;--line:#302a34;--gold:#eec66d;--gold2:#fff1b0;--text:#f7f2e8;--muted:#7d7782;--green:#70d79b}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif}
body{overflow-x:hidden;background:radial-gradient(80% 45% at 50% -5%,#331c40 0,transparent 70%),linear-gradient(#08070b,#0a090d)}
.noise{position:fixed;inset:0;opacity:.035;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.aurora{position:fixed;border-radius:50%;filter:blur(100px);opacity:.12;pointer-events:none}
.a1{width:360px;height:360px;background:#8c48ff;left:-220px;top:100px}
.a2{width:320px;height:320px;background:#e7b64e;right:-220px;top:460px}
.app{max-width:680px;margin:auto;padding:20px 16px 112px;position:relative;z-index:1}
header{display:flex;justify-content:space-between;align-items:center}
.brand{display:flex;gap:10px;align-items:center}
.mark{width:38px;height:38px;border:1px solid #4b4131;border-radius:12px;display:grid;place-items:center;font:21px Georgia;color:var(--gold);background:linear-gradient(145deg,#1b1820,#0d0c10)}
.brand small,.wallet small,.page-title small,.profile-top small,.profile-balance small,.ref-hero small{display:block;font-size:8px;letter-spacing:.2em;color:#77717b}
.brand b{display:block;font:15px Georgia;letter-spacing:.06em}
.brand i{font-style:normal;color:var(--gold)}
.wallet{border:1px solid #312c34;background:#111016cc;backdrop-filter:blur(18px);border-radius:15px;padding:8px 12px;text-align:right}
.wallet strong{font:18px Georgia}
.wallet em,.profile-balance em{font:700 9px Inter;color:var(--gold);font-style:normal}
.page{display:none;animation:enter .28s ease}
.page.active{display:block}
@keyframes enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.hero{padding:50px 1px 26px}
.pill{font-size:8px;letter-spacing:.18em;border:1px solid #39333e;border-radius:99px;padding:7px 10px;color:#a39ca6}
.pill i{display:inline-block;width:5px;height:5px;background:var(--green);border-radius:50%;box-shadow:0 0 10px var(--green);margin-right:5px}
.hero h1,.page-title h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.04em}
.hero h1{font-size:52px;line-height:.92;margin:20px 0 11px}
.hero h1 em{font-style:normal;color:var(--gold)}
.hero p,.page-title p{color:#716b74;font-size:11px;line-height:1.5}
.machine{position:relative;padding:18px;border-radius:30px;background:linear-gradient(150deg,#19171e,#0d0c11 58%,#151219);border:1px solid #39323e;box-shadow:0 35px 90px #000b,inset 0 1px #ffffff0a;overflow:hidden}
.machine:before{content:"";position:absolute;left:15%;right:15%;top:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.machine-head{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.17em;color:#77717b;margin:2px 3px 16px}
.machine-head b{color:var(--gold)}
.hot{animation:blink .5s infinite}
@keyframes blink{50%{opacity:.25}}
.reels{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.reel{height:132px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(180deg,#0c0b0f,#26222b 48%,#0c0b0f);border:1px solid #3a343e;box-shadow:inset 0 22px 35px #000a,inset 0 -22px 35px #000a;overflow:hidden}
.symbol-shell{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--gold2);transition:transform .08s}
.symbol-shell svg{width:58px;height:58px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 11px #eec66d24)}
.symbol-shell[data-symbol="BEAR"] svg{fill:#eec66d16}
.symbol-shell small{font-size:7px;letter-spacing:.16em;color:#77717b;font-weight:800}
.payline{height:1px;background:linear-gradient(90deg,transparent,#eec66d75,transparent);position:relative;top:-66px;pointer-events:none}
.jackpot-rule{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;border:1px solid #342e36;border-radius:14px;background:#0d0c10;padding:10px 12px;margin:-1px 0 12px}
.jackpot-rule span{font-size:7px;letter-spacing:.15em;color:#706a72}
.jackpot-rule b{font:11px Georgia;color:#eee2c1}
.jackpot-rule em{font-style:normal;font-size:9px;color:var(--gold)}
#spin{width:100%;height:60px;border:0;border-radius:18px;background:linear-gradient(100deg,#b88b38,#f6d77f 45%,#fff0b1 55%,#c99c47);color:#171108;box-shadow:0 14px 35px #d7ad5140,inset 0 1px #fff8d4;font-weight:900;letter-spacing:.12em}
#spin span{display:block;font-size:15px}
#spin small{font-size:8px;opacity:.58}
#spin:disabled{filter:saturate(.45);transform:scale(.99)}
.page-title{padding:45px 2px 20px}
.page-title h2{font-size:40px;margin:5px 0 8px}
.segment{display:flex;gap:5px;padding:4px;border:1px solid #28242c;background:#0e0d11;border-radius:14px;margin-bottom:7px}
.segment button{flex:1;border:0;border-radius:10px;background:transparent;color:#77717b;padding:11px 5px;font-size:10px;font-weight:700}
.segment button.active{background:#242028;color:#f0dfb8;box-shadow:inset 0 0 0 1px #39313d}
.history-list article{display:flex;align-items:center;gap:11px;padding:13px 4px;border-bottom:1px solid #1e1b21}
.event-icon,.menu-ico{width:37px;height:37px;border-radius:12px;background:#17151b;border:1px solid #2d2931;display:grid;place-items:center;color:var(--gold);font:15px Georgia}
.history-list article>div:nth-child(2){flex:1;min-width:0}
.history-list b{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-list small{font-size:8px;color:#66616a}
.history-list strong{font-size:10px}
.plus{color:#7bd7a2}
.minus{color:#a79da8}
.empty{text-align:center;padding:38px 0;color:#625d65}
.empty span{width:42px;height:42px;border:1px solid #302b32;border-radius:14px;display:grid;place-items:center;margin:auto;color:var(--gold);font:20px Georgia}
.empty b{display:block;color:#9a929d;font:15px Georgia;margin:8px}
.empty small{font-size:9px}
.ref-hero{padding:24px;border:1px solid #493d2c;border-radius:25px;background:radial-gradient(circle at 85% 0,#80652d35,transparent 42%),linear-gradient(135deg,#1a1716,#100e12)}
.ref-hero strong{display:block;font:54px Georgia;color:var(--gold2);margin:5px 0}
.ref-hero span{font-size:9px;color:#79727c}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.stat-grid article{border:1px solid #29252d;background:#100f14;border-radius:18px;padding:14px}
.stat-grid span{font-size:7px;letter-spacing:.17em;color:#6d6870;display:block}
.stat-grid b{font:25px Georgia;display:block;margin:7px 0 2px}
.stat-grid small{font-size:8px;color:#625d65}
.section-label{font-size:8px;letter-spacing:.18em;color:#6d6870;margin-top:24px}
.profile-top{display:flex;align-items:center;gap:15px;padding:44px 2px 22px}
.avatar{width:68px;height:68px;border-radius:22px;display:grid;place-items:center;font:34px Georgia;color:#171108;background:linear-gradient(145deg,#fff0b3,#b98937);box-shadow:0 15px 45px #d4a64b26}
.profile-top h2{font:25px Georgia;margin:4px 0 3px}
.profile-top span{font-size:9px;color:#77717b}
.profile-balance{position:relative;overflow:hidden;padding:23px;border:1px solid #493d2c;border-radius:25px;background:radial-gradient(circle at 80% 0,#80652d35,transparent 45%),linear-gradient(135deg,#1a1716,#100e12)}
.profile-balance strong{display:block;font:42px Georgia;margin-top:6px;color:var(--gold2)}
.profile-balance #topupBtn{position:relative;z-index:2;margin-top:16px;width:100%;height:54px;border:0;border-radius:16px;background:linear-gradient(100deg,#b88b38,#f6d77f 45%,#fff0b1 55%,#c99c47);color:#171108;font-weight:900;letter-spacing:.1em;box-shadow:0 14px 35px #d7ad5140,inset 0 1px #fff8d4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer}
.profile-balance #topupBtn span{font-size:14px}
.profile-balance #topupBtn small{font-size:8px;opacity:.6;font-weight:700;letter-spacing:.06em;color:#171108}
.profile-balance #topupBtn:active{transform:scale(.98)}
.shine{position:absolute;width:120px;height:120px;border-radius:50%;background:#eec66d;filter:blur(65px);opacity:.1;right:-30px;top:-50px;pointer-events:none}
.profile-menu{margin-top:14px;border:1px solid #29252d;background:#0f0e12;border-radius:20px;overflow:hidden}
.profile-menu article{display:flex;align-items:center;gap:11px;padding:13px;border-bottom:1px solid #211e24}
.profile-menu article:last-child{border-bottom:0}
.profile-menu article>div:nth-child(2){flex:1}
.profile-menu b{font-size:11px;display:block}
.profile-menu small{font-size:8px;color:#67616a}
.profile-menu article>span{color:#615b65;font-size:20px}
.bottom-nav{position:fixed;z-index:10;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(430px,calc(100% - 20px));height:72px;border:1px solid #332e36;background:#100f14ea;backdrop-filter:blur(24px);border-radius:23px;display:grid;grid-template-columns:repeat(5,1fr);box-shadow:0 20px 60px #000c,inset 0 1px #ffffff08;padding:3px}
.nav{border:0;background:none;color:#625d66;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:18px}
.nav.active{color:var(--gold);background:#19161d}
.nav-icon{height:21px}
.nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav b{font-size:7px;letter-spacing:.04em}
@media(max-width:390px){.hero h1{font-size:45px}.reel{height:114px}.symbol-shell svg{width:48px;height:48px}.app{padding-left:13px;padding-right:13px}.brand small{display:none}.jackpot-rule{grid-template-columns:auto 1fr}.jackpot-rule em{display:none}}
.top-podium{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;align-items:end;margin:4px 0 18px}
.podium{position:relative;border:1px solid #302b34;background:linear-gradient(180deg,#17141b,#0f0e12);border-radius:20px;padding:16px 7px 13px;text-align:center;overflow:hidden}
.podium.p1{min-height:168px;border-color:#55472d;background:radial-gradient(circle at 50% 0,#a27d2f2c,transparent 48%),linear-gradient(180deg,#1c1815,#100e11)}
.podium.p2{min-height:148px}
.podium.p3{min-height:136px}
.podium.me{box-shadow:inset 0 0 0 1px #eec66d55}
.podium-rank{position:absolute;top:8px;left:10px;font:12px Georgia;color:var(--gold)}
.podium-avatar,.mini-avatar{display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#302936,#17141b);border:1px solid #3a333e;color:var(--gold);font:18px Georgia}
.podium-avatar{width:48px;height:48px;margin:12px auto 9px}
.podium b{display:block;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.podium strong{display:block;font:17px Georgia;color:var(--gold2);margin-top:8px}
.podium small{font-size:7px;color:#716b74}
.top-head{display:grid;grid-template-columns:1fr 50px 72px;gap:8px;padding:0 9px 7px 45px;font-size:7px;letter-spacing:.14em;color:#5f5962}
.top-head span:nth-child(2),.top-head span:nth-child(3){text-align:right}
.top-list{border:1px solid #28242c;background:#0e0d11;border-radius:20px;overflow:hidden}
.top-list article{display:grid;grid-template-columns:28px 1fr 50px 72px;gap:8px;align-items:center;padding:11px 10px;border-bottom:1px solid #201c23}
.top-list article:last-child{border-bottom:0}
.top-list article.me{background:linear-gradient(90deg,#eec66d10,transparent)}
.rank{font:14px Georgia;color:#7b747f;text-align:center}
.top-user{display:flex;gap:9px;align-items:center;min-width:0}
.mini-avatar{width:34px;height:34px;flex:0 0 auto;font-size:13px}
.top-user>div:last-child{min-width:0}
.top-user b{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-user small{font-size:7px;color:#625d65}
.top-list .spins{text-align:right;font-size:9px;color:#89818d}
.top-list strong{text-align:right;font-size:9px;color:var(--gold)}
@media(max-width:360px){.bottom-nav{width:calc(100% - 12px)}.nav b{font-size:6.5px}.top-podium{gap:5px}.podium{padding-left:4px;padding-right:4px}.podium strong{font-size:14px}}
.ref-link-card{display:flex;align-items:center;gap:12px;margin-top:12px;padding:14px;border:1px solid #332d35;background:linear-gradient(135deg,#131116,#0d0c10);border-radius:18px}
.ref-link-card>div{flex:1;min-width:0}
.ref-link-card small{display:block;font-size:7px;letter-spacing:.16em;color:#6d6870;margin-bottom:6px}
.ref-link-card b{display:block;font-size:9px;color:#c9c0cd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ref-link-card button{border:1px solid #6d582f;background:linear-gradient(135deg,#2c2417,#17120d);color:var(--gold2);border-radius:12px;padding:10px 12px;font-size:9px;font-weight:800;cursor:pointer}
.modal-back{display:none;position:fixed;inset:0;background:#000c;backdrop-filter:blur(8px);z-index:50;align-items:center;justify-content:center;padding:20px}
.modal-back.on{display:flex}
.modal{width:100%;max-width:420px;background:linear-gradient(150deg,#17141b,#0f0e12);border:1px solid #3a333e;border-radius:24px;padding:20px}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.modal-head b{font:22px Georgia;color:var(--gold2)}
.modal-head button{background:none;border:0;color:#77717b;font-size:20px;cursor:pointer}
.modal-sub{font-size:11px;color:#77717b;margin:0 0 14px}
.amounts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.amounts button{border:1px solid #332e36;background:#141218;color:var(--text);border-radius:14px;padding:14px 10px;font-weight:800;font-size:15px;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer}
.amounts button small{font-size:9px;color:var(--gold);font-weight:600}
.amounts button:active{background:#1c1922;border-color:#55472d}
.modal-status{margin-top:12px;font-size:11px;color:var(--gold);text-align:center;min-height:16px}
.win-modal{text-align:center;background:radial-gradient(circle at 50% 0,#a27d2f3a,transparent 55%),linear-gradient(150deg,#1c1815,#0f0e12);border:1px solid #55472d}
.win-crown{font-size:54px;line-height:1;margin-bottom:6px;filter:drop-shadow(0 0 24px #eec66d66)}
.win-title{font:26px Georgia;color:var(--gold2);margin:6px 0 10px;letter-spacing:.06em}
.win-reward{font:44px Georgia;color:var(--gold);margin:0 0 14px;text-shadow:0 0 24px #eec66d44}
.win-reels{display:flex;justify-content:center;gap:10px;margin-bottom:16px}
.win-reels .symbol-shell{color:var(--gold2)}
.win-reels .symbol-shell svg{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.win-note{border:1px solid #55472d;background:#0d0c10;border-radius:16px;padding:14px;margin-bottom:16px;text-align:left}
.win-note b{display:block;font-size:11px;color:#ffd777;letter-spacing:.06em;margin-bottom:8px;line-height:1.4}
.win-note p{font-size:12px;color:#c9c0cd;margin:4px 0;line-height:1.5}
.win-note a{color:var(--gold2);font-weight:800;text-decoration:none}
.btn-claim{width:100%;height:56px;border:0;border-radius:16px;background:linear-gradient(100deg,#b88b38,#f6d77f 45%,#fff0b1 55%,#c99c47);color:#171108;font-weight:900;letter-spacing:.12em;font-size:14px;box-shadow:0 14px 35px #d7ad5140,inset 0 1px #fff8d4;cursor:pointer}
.btn-claim:disabled{filter:saturate(.4);cursor:default}
.claim-status{margin-top:12px;font-size:12px;color:var(--gold);min-height:16px}