@font-face{font-family:Vaz;src:url(../fonts/Vazirmatn-Regular.woff2) format('woff2');font-weight:400}
@font-face{font-family:Vaz;src:url(../fonts/Vazirmatn-Bold.woff2) format('woff2');font-weight:700}
@font-face{font-family:Vaz;src:url(../fonts/Vazirmatn-Black.woff2) format('woff2');font-weight:900}
:root{--accent:#F4F6F9;--accent2:#97A3B6;--onAccent:#101318;--line:#4A4F58;--txt:#EEF3FB;--sub:#B9C2D0;--panel:linear-gradient(180deg,#23272E 0%,#0C0D10 60%,#050607 100%)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
html,body{margin:0;height:100%;background:#000;overflow:hidden;font-family:Vaz,Tahoma,sans-serif;color:var(--txt)}
button{font-family:inherit;color:inherit}
#stage{position:absolute;left:0;top:0;height:720px;transform-origin:0 0;overflow:hidden;background:radial-gradient(ellipse 80% 70% at 50% 40%,#1C1F25 0%,#0B0C0F 60%,#020203 100%)}
.screen{position:absolute;top:0;right:0;bottom:0;left:0;display:none;direction:rtl}
.screen.on{display:block;animation:fadein .25s ease}
@keyframes fadein{from{opacity:0}to{opacity:1}}
.scroll{overflow-y:auto;-webkit-overflow-scrolling:touch}
.scroll::-webkit-scrollbar{width:0}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 18px rgba(0,0,0,.6)}
.btn{min-height:48px;padding:0 22px;border-radius:16px;border:1px solid #fff;font-size:17px;font-weight:700;cursor:pointer;color:var(--onAccent);background:linear-gradient(180deg,var(--accent),var(--accent2));box-shadow:0 0 22px rgba(255,255,255,.18),inset 0 1px 0 rgba(255,255,255,.6);transition:transform .08s,filter .15s}
.btn:active{transform:scale(.96)}
.btn.ghost{background:rgba(255,255,255,.04);color:var(--txt);border-color:#6A7280;box-shadow:none}
.btn.sm{min-height:38px;font-size:14px;padding:0 14px;border-radius:12px}
.btn[disabled]{opacity:.38;filter:grayscale(1);pointer-events:none}
.round{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#2C2F36,#0C0D10);border:1px solid #6A7280;cursor:pointer;padding:0}
.round:active{transform:scale(.93)}
.round svg{width:24px;height:24px}
.back{position:absolute;top:22px;right:24px;z-index:5}
.h1{font-size:28px;font-weight:900;margin:0}
.sub{font-size:14px;color:var(--sub)}
.coinpill{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;border:1px solid #4A4F58;background:rgba(255,255,255,.04);font-weight:700;font-size:17px;direction:rtl}
.coin{width:22px;height:22px;border-radius:50%;flex:none;background:radial-gradient(circle at 35% 30%,#fff,#C3CBD6 60%,#6A7280);border:1.5px solid #fff;display:inline-flex;align-items:center;justify-content:center;color:#0A0E16;font-size:12px;line-height:1}
.coin::after{content:'★'}
.tag{font-size:12px;color:var(--sub)}
.toggle{position:relative;width:46px;height:26px;border-radius:999px;background:#2C2C2C;border:1px solid #7D7D7D;flex:none;transition:background .2s}
.toggle::after{content:'';position:absolute;top:3px;right:3px;width:18px;height:18px;border-radius:50%;background:linear-gradient(180deg,#fff,#97A3B6);transition:right .2s}
.toggle.on{background:linear-gradient(180deg,#4ADE80,#16A34A);border-color:#86EFAC}
.toggle.on::after{right:23px;background:#101318}
.av{border-radius:50%;background:#111 center/cover no-repeat;flex:none}

/* modal + toast */
#modal{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.66);display:none;align-items:center;justify-content:center;z-index:100;direction:rtl}
#modal.on{display:flex;animation:fadein .2s}
#modal .box{min-width:420px;max-width:760px;max-height:640px;padding:26px 28px;display:flex;flex-direction:column;gap:16px;align-items:center;text-align:center}
#modal .box h2{margin:0;font-size:24px}
#modal .row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
#toast{position:absolute;left:50%;top:26px;transform:translate(-50%,-30px);opacity:0;z-index:120;padding:12px 24px;border-radius:16px;background:#F4F6F9;color:#101318;font-weight:700;font-size:17px;pointer-events:none;transition:all .3s;direction:rtl;box-shadow:0 10px 30px rgba(0,0,0,.6);white-space:nowrap}
#toast.on{opacity:1;transform:translate(-50%,0)}
input.inp{width:100%;height:52px;border-radius:14px;border:1px solid #6A7280;background:#0B0C0F;color:#fff;font-family:inherit;font-size:18px;padding:0 16px;text-align:right;outline:none;user-select:text;-webkit-user-select:text}
input.inp:focus{border-color:var(--accent)}

/* HOME */
.home-top{direction:ltr;position:absolute;top:22px;left:28px;right:28px;height:112px;display:flex;align-items:center;justify-content:space-between}
.pcard{direction:ltr;display:flex;align-items:center;gap:16px;height:112px;padding:0 12px 0 24px;border-radius:56px;cursor:pointer}
.lvlbar{width:230px;height:16px;border-radius:999px;border:1px solid #6A7280;background:#0B0C0F;overflow:hidden;direction:ltr}
.lvlbar i{display:block;height:100%;background:linear-gradient(180deg,#fff,#97A3B6);border-radius:999px}
.star{position:relative;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-weight:900;color:#101318;font-size:14px}
.star svg{position:absolute;top:0;right:0;bottom:0;left:0}
.star b{position:relative}
.home-grid{position:absolute;top:152px;left:28px;right:28px;bottom:22px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1fr;gap:18px}
.tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-radius:22px;cursor:pointer;border:1px solid #3A3F48;background:linear-gradient(180deg,#23272E 0%,#0C0D10 55%,#050607 100%);transition:transform .1s}
.tile:active{transform:scale(.97)}
.tile .ic{width:86px;height:86px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid #8E97A6;background:radial-gradient(circle at 50% 30%,#3A3F48,#0C0D10)}
.tile .ic svg{width:36px;height:36px}
.tile h3{margin:0;font-size:24px;font-weight:900}
.tile p{margin:0;font-size:14px;color:var(--sub)}
.tile.hero{background:linear-gradient(180deg,#fff 0%,#C3CBD6 60%,#97A3B6 100%);color:#0A0E16;border-color:#fff;box-shadow:0 0 30px rgba(255,255,255,.18)}
.tile.hero p{color:#2A2F38}
.tile.hero .ic{background:#0A0E16;border-color:#0A0E16}
.tile .soon{position:absolute;top:14px;left:14px;font-size:12px;padding:3px 10px;border-radius:999px;border:1px solid #6A7280;color:var(--sub)}
.wheelbtn{direction:rtl;display:flex;align-items:center;gap:12px;padding:10px 18px;border-radius:999px;cursor:pointer;border:1.5px solid #D4D4D4;background:linear-gradient(180deg,#2C2F36,#0C0D10);box-shadow:0 0 20px rgba(255,255,255,.15)}
.wheelbtn.ready{animation:pulse 1.8s infinite}
@keyframes pulse{50%{box-shadow:0 0 32px rgba(255,255,255,.45)}}

/* generic page */
.page{position:absolute;top:0;right:0;bottom:0;left:0;padding:22px 28px}
.page-head{display:flex;align-items:center;gap:16px;margin-bottom:18px;padding-right:72px;min-height:56px}
.cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.lcard{display:flex;flex-direction:column;align-items:center;gap:12px;padding:26px 20px 22px;border-radius:24px;text-align:center}
.lcard h3{margin:0;font-size:26px;font-weight:900}
.lcard .big{font-size:30px;font-weight:900}
.note{margin-top:16px;padding:14px;border:1px dashed #4A4F58;border-radius:18px;text-align:center;color:var(--sub);font-size:14px}

/* GAME */
#game{background:radial-gradient(ellipse 75% 70% at 50% 48%,#292929 0%,#151515 55%,#0A0A0A 100%)}
.gcol{position:absolute;top:10px;bottom:10px;display:flex;flex-direction:column;gap:10px}
.gcol.left{left:12px;width:140px;justify-content:space-between}
.gcol.right{right:12px;width:110px;justify-content:space-between}
.pbox{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:22px;position:relative}
.pbox.active{border:1.5px solid #D4D4D4;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 30px rgba(255,255,255,.22),0 8px 18px rgba(0,0,0,.7)}
.avwrap{position:relative;width:96px;height:96px}
.avwrap .av{position:absolute;top:6px;right:6px;bottom:6px;left:6px}
.avwrap svg.ring{position:absolute;top:0;right:0;bottom:0;left:0;transform:rotate(-90deg)}
.avwrap .badge{position:absolute;right:-2px;bottom:-2px;width:28px;height:28px;border-radius:50%;border:2px solid #101010}
.pname{font-size:15px;font-weight:700;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pcoins{padding:2px 10px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid #7D7D7D;font-size:12px;font-weight:700}
.pstat{font-size:12px;color:var(--sub);min-height:18px}
.turnpill{padding:2px 12px;border-radius:999px;background:#fff;color:#101318;font-size:13px;font-weight:700;visibility:hidden}
.pbox.active .turnpill{visibility:visible}
.scorebox{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;border-radius:20px}
.scorebox .sc{display:flex;align-items:center;gap:8px;direction:ltr}
.scorebox .sc span{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900}
.sw{align-self:stretch;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 8px;border-radius:14px;background:rgba(5,8,15,.65);border:1px solid #646464;font-size:12px;font-weight:700;cursor:pointer;margin:0 4px}
.sw .toggle{width:38px;height:22px}.sw .toggle::after{width:14px;height:14px}.sw .toggle.on::after{right:19px}
.rbtn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 4px;border-radius:20px;cursor:pointer;min-height:76px;font-size:14px;font-weight:700;text-align:center}
.rbtn:active{transform:scale(.96)}
.rbtn small{font-size:11px;color:var(--sub);font-weight:400}
.rbtn .ci{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff,#97A3B6);color:#101318}
.rbtn .ci svg{width:18px;height:18px}
.rbtn.primary{background:linear-gradient(180deg,var(--accent),var(--accent2));color:var(--onAccent);border-color:#fff;box-shadow:0 0 22px rgba(255,255,255,.2)}
.rbtn.primary .ci{background:#101318;color:#fff}
.rbtn.dis{opacity:.35;pointer-events:none}
.rbtn.hidden{visibility:hidden}
.strikes{display:flex;gap:6px;justify-content:center;direction:ltr}
.strikes i{width:22px;height:22px;border-radius:50%;border:1.5px solid #7D7D7D;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:15px;font-weight:900;color:#fff}
.strikes i.x{background:#E5383B;border-color:#FF8A8C;box-shadow:0 0 10px rgba(229,56,59,.7)}
.infobox{padding:8px 4px;border-radius:18px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;text-align:center}
.infobox b{font-size:15px}
.rounds{display:flex;flex-direction:column;gap:8px;align-items:center}
#boardWrap{position:absolute;top:8px;bottom:8px}
#board{direction:ltr;position:absolute;left:0;top:0;width:960px;height:700px;transform-origin:0 0;perspective:1200px}
#board svg.bg{position:absolute;top:0;right:0;bottom:0;left:0}
.ck{position:absolute;left:0;top:0;width:62px;height:62px;border-radius:50%;transition:transform .32s cubic-bezier(.3,.7,.3,1);will-change:transform;pointer-events:none}
.ck .face{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%}
.ck.sel .face{box-shadow:0 0 0 3px #fff,0 0 22px 6px rgba(255,255,255,.8)!important}
.ck.can .face{box-shadow:0 0 14px 2px rgba(255,255,255,.55),0 4px 6px rgba(0,0,0,.6)}
.ck.drag{transition:none;z-index:50}
.ck.mini{width:46px;height:12px;border-radius:4px}
.ck.mini .face{border-radius:4px}
.tgt{position:absolute;left:0;top:0;width:58px;height:58px;border-radius:50%;border:3px dashed rgba(255,255,255,.85);box-shadow:0 0 16px rgba(255,255,255,.6),inset 0 0 14px rgba(255,255,255,.35);pointer-events:none;animation:tg 1s infinite alternate}
.tgt.tray{border-radius:8px;width:50px;height:300px}
@keyframes tg{to{opacity:.55}}
.die{position:absolute;width:56px;height:56px;left:0;top:0;transform-style:preserve-3d;pointer-events:none;z-index:40}
.die .cube{position:absolute;top:0;right:0;bottom:0;left:0;transform-style:preserve-3d}
.die .f{position:absolute;width:56px;height:56px;border-radius:12px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:7px;backface-visibility:hidden}
.die .f i{width:11px;height:11px;border-radius:50%;place-self:center;visibility:hidden}
.die .f i.p{visibility:visible}
.die .shadow{position:absolute;left:4px;top:8px;width:56px;height:56px;border-radius:14px;background:rgba(0,0,0,.55);filter:blur(5px)}
.die.used .f{filter:brightness(.42) saturate(.6)}
.hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:12px 22px;border-radius:16px;background:rgba(0,0,0,.72);border:1px solid #8E97A6;font-weight:700;font-size:18px;pointer-events:none;white-space:nowrap;direction:rtl;z-index:45;transition:opacity .25s}
.bubble{position:absolute;z-index:60;min-width:170px;max-width:300px;padding:14px 22px;border-radius:22px;background:linear-gradient(180deg,#fff,#DCE2EB);color:#101318;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.6);direction:rtl;animation:pop .25s ease;pointer-events:none}
.bubble small{display:block;font-size:12px;color:#4A4F58}
.bubble b{display:block;font-size:24px;font-weight:900;line-height:1.4}
@keyframes pop{from{transform:scale(.6);opacity:0}}
.chatpanel{position:absolute;right:134px;bottom:12px;width:430px;height:470px;z-index:70;display:none;flex-direction:column;padding:14px;gap:10px;direction:rtl}
.chatpanel.on{display:flex}
.tabs{display:flex;gap:8px}
.tabs button{flex:1;height:40px;border-radius:12px;border:1px solid #4A4F58;background:transparent;font-weight:700;cursor:pointer}
.tabs button.on{background:linear-gradient(180deg,var(--accent),var(--accent2));color:var(--onAccent);border-color:#fff}
.msgs{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:start}
.msgs button{min-height:44px;border-radius:12px;border:1px solid #3A3F48;background:rgba(255,255,255,.04);font-size:15px;font-weight:700;cursor:pointer}
.msgs button:active{background:rgba(255,255,255,.15)}

/* SHOP */
.grid6{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.grid8{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}
.item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;border-radius:18px;text-align:center;font-size:13px;font-weight:700}
.item .pr{display:flex;align-items:center;gap:4px;font-size:13px}
.item .pr .coin{width:16px;height:16px;font-size:9px}
.item.g{border:1.5px solid #F5C542;box-shadow:0 0 18px rgba(245,197,66,.35)}
.item.s{border:1.5px solid #E6ECF5;box-shadow:0 0 18px rgba(255,255,255,.22)}
.item.b{border:1.5px solid #CD7F32;box-shadow:0 0 18px rgba(205,127,50,.3)}
.item.eq{outline:2px solid var(--accent);outline-offset:-2px}
.item .btn{min-height:34px;font-size:13px;width:100%;padding:0 6px;border-radius:10px}
.secttl{display:flex;align-items:baseline;justify-content:space-between;margin:22px 0 10px}
.secttl h2{margin:0;font-size:22px}
.pack{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 10px;border-radius:20px}
.pack .n{font-size:26px;font-weight:900}

/* wheel */
#wheelSvg{transition:transform 5.2s cubic-bezier(.12,.6,.05,1)}

/* result */
.resav{position:relative;width:230px;height:230px}
.resav .av{position:absolute;top:0;right:0;bottom:0;left:0;border:4px solid #3A3F48}
.resav.win .av{border-color:#22C55E;box-shadow:0 0 40px rgba(34,197,94,.55)}
.resav.lose .av{filter:grayscale(1) brightness(.75)}
.resav .xx{position:absolute;top:18px;right:18px;bottom:18px;left:18px}
.resav .cup{position:absolute;right:-6px;bottom:-6px;width:78px;height:78px;border-radius:50%;border:3px solid #F5C542;background:#101318;display:flex;align-items:center;justify-content:center}

table.rank{width:100%;border-collapse:separate;border-spacing:0 8px}
table.rank td{padding:8px 14px;background:rgba(255,255,255,.03);font-weight:700}
table.rank tr td:first-child{border-radius:0 14px 14px 0}
table.rank tr td:last-child{border-radius:14px 0 0 14px}
table.rank tr.me td{background:rgba(255,255,255,.12)}
.setrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-radius:18px;font-size:17px;font-weight:700;cursor:pointer}
@font-face{font-family:Lalezar;src:url(../fonts/Lalezar-arabic.woff2) format('woff2');unicode-range:U+0600-06FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:Lalezar;src:url(../fonts/Lalezar-latin.woff2) format('woff2');unicode-range:U+0000-00FF}
/* v0.2 */
#board{touch-action:none}
#game{touch-action:none}
.round{width:66px;height:66px}
.round svg{width:32px;height:32px}
.rounds{gap:10px}
.lvlbar i{background:linear-gradient(180deg,#86EFAC,#16A34A)!important;box-shadow:0 0 10px rgba(34,197,94,.6)}
.rdrow{display:flex;gap:8px;justify-content:center;direction:ltr}
.rdrow i{width:24px;height:24px;border-radius:50%;border:2px solid #6A7280;background:#0B0C0F}
.rdrow i.on{background:radial-gradient(circle at 35% 30%,#BBF7D0,#22C55E 55%,#15803D);border-color:#86EFAC;box-shadow:0 0 12px rgba(34,197,94,.85)}
.scorebox{gap:10px}
.ck .cnt{position:absolute;top:0;right:0;bottom:0;left:0;align-items:center;justify-content:center;font-weight:900;font-size:22px;font-family:Vaz}
.ck.hitflash .face{box-shadow:0 0 0 3px #FF4D4F,0 0 26px 8px rgba(255,77,79,.85)!important}
.flashmsg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.7);opacity:0;padding:12px 26px;border-radius:18px;background:rgba(229,56,59,.92);color:#fff;font-weight:900;font-size:24px;z-index:46;pointer-events:none;transition:all .25s;white-space:nowrap;direction:rtl}
.flashmsg.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.wordmark{font-family:Lalezar,Vaz;font-weight:400;font-size:62px;line-height:1;background:linear-gradient(180deg,#FFFFFF 0%,#E6ECF5 38%,#8E97A6 52%,#F4F6F9 70%,#B9C2D0 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 3px 0 #000) drop-shadow(0 0 14px rgba(255,255,255,.25));letter-spacing:1px}
.home-main{position:absolute;top:150px;left:28px;right:28px;height:372px;display:grid;grid-template-columns:1fr 1.32fr 1fr;gap:18px}
.home-bottom{position:absolute;left:28px;right:28px;bottom:20px;height:150px;display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.tile.big h3{font-size:30px}
.tile.big .gico{width:150px;height:150px}
.tile.mid .gico{width:118px;height:118px}
.tile.online{border:1.5px solid #3BA7FF;box-shadow:0 0 34px rgba(59,167,255,.28),inset 0 1px 0 rgba(255,255,255,.12)}
.tile.small{gap:8px}
.tile.small h3{font-size:19px}
.tile.small .gico{width:72px;height:72px}
.gico{display:block;filter:drop-shadow(0 8px 14px rgba(0,0,0,.55))}
.home-coin{font-size:24px;padding:8px 18px}
.home-coin .coin{width:30px;height:30px;font-size:16px}
.guide-card{padding:18px 20px;border-radius:20px;display:flex;gap:16px;align-items:flex-start}
.guide-card h3{margin:0 0 6px;font-size:20px}
.guide-card p{margin:0;font-size:15px;line-height:1.9;color:#D5DCE8}
.seg{display:flex;gap:8px;align-items:center}
.privtag{font-size:12px;color:#FDE68A;display:flex;align-items:center;gap:4px}

/* v0.3 */
.gcol.right{width:134px}
.autobox{display:flex;flex-direction:column;gap:8px}
.sw.big{margin:0;min-height:50px;font-size:14px;padding:0 10px;border-radius:16px;border-color:#7D7D7D;background:linear-gradient(180deg,#2C2F36,#0C0D10)}
.sw.big .toggle{width:44px;height:26px}.sw.big .toggle::after{width:18px;height:18px}.sw.big .toggle.on::after{right:21px}
.rounds{flex-direction:row;flex-wrap:wrap;justify-content:center}
.warn5{position:absolute;width:120px;height:120px;z-index:48;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;transform:scale(.4);transition:opacity .25s,transform .25s;pointer-events:none;filter:drop-shadow(0 0 22px rgba(255,60,60,.85))}
.warn5.on{opacity:1;transform:scale(1)}
.warn5 svg{position:absolute;top:0;left:0}
.warn5 b{position:relative;font-size:52px;font-weight:900;color:#fff;line-height:1;text-shadow:0 2px 6px rgba(0,0,0,.6)}
.warn5 small{position:relative;font-size:13px;font-weight:700;color:#FFE4E4}
.warn5.on.beat{animation:beat .5s ease}
@keyframes beat{0%{transform:scale(1.25)}100%{transform:scale(1)}}
.wheelbtn.big{padding:12px 26px;gap:14px}
.wordmark{font-size:56px}
.gcol.right{width:150px}
.sw.big{white-space:nowrap;font-size:13px;padding:0 8px;gap:6px}
.warn5.on ~ .hint{top:24%}
.pcoins{white-space:nowrap;max-width:134px}
.coinpill{white-space:nowrap}
.warn5{width:96px;height:96px;z-index:65}
.warn5 svg{width:96px;height:96px}
.warn5 b{font-size:40px}
.warn5 small{font-size:11px}
.warn5 b{font-size:46px}
.rounds{flex-direction:column;flex-wrap:nowrap;align-items:center;gap:10px}
.rounds .row2{display:flex;gap:12px}
.round.rbig{width:80px;height:80px}
.round.rbig svg{width:38px;height:38px}
.round.rsm{width:56px;height:56px}
.round.rsm svg{width:26px;height:26px}

/* v0.4 */
.btn.sel,.btn.ghost.sel{background:linear-gradient(180deg,#4ADE80,#16A34A);color:#fff;border-color:#86EFAC;box-shadow:0 0 16px rgba(34,197,94,.45)}
.tabs button.on{background:linear-gradient(180deg,#4ADE80,#16A34A)!important;color:#fff!important;border-color:#86EFAC!important}
.rsel{justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.rsel .btn{min-width:74px}
.pack .gico{margin:4px 0}
body.ltr .screen,body.ltr #modal,body.ltr #toast,body.ltr .bubble,body.ltr .hint,body.ltr .flashmsg,body.ltr .chatpanel{direction:ltr}
body.ltr .back{right:auto;left:24px}
body.ltr .back svg{transform:scaleX(-1)}
body.ltr .page-head{padding-right:0;padding-left:72px}
body.ltr input.inp{text-align:left}

/* v0.5.4 */
.hintcd{margin:6px auto 0;width:30px;height:30px;border-radius:50%;background:#fff;color:#101318;font-size:17px;font-weight:900;display:flex;align-items:center;justify-content:center;border:2px solid #101318;box-shadow:0 0 0 2px #fff}
.hintcd.tick{animation:cdtick .35s ease}
@keyframes cdtick{0%{transform:scale(1.35)}100%{transform:scale(1)}}
.ck.can .face{animation:ckblink 1.6s ease-in-out infinite}
@keyframes ckblink{0%,100%{box-shadow:0 4px 6px rgba(0,0,0,.6),0 0 0 0 rgba(255,255,255,0);filter:brightness(1)}50%{box-shadow:0 4px 6px rgba(0,0,0,.6),0 0 18px 5px rgba(255,255,255,.75);filter:brightness(1.35)}}
.ck.sel .face{animation:none}
/* v0.5.6: active player's frame is green */
.pbox.active{border:2px solid #22C55E!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 0 28px rgba(34,197,94,.55),0 8px 18px rgba(0,0,0,.7)!important}
.turnpill{background:linear-gradient(180deg,#4ADE80,#16A34A);color:#fff}

/* active frame follows the board theme */
:root{--turn:#22C55E;--turnGlow:rgba(34,197,94,.6)}
.pbox.active{border:2px solid var(--turn)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 0 28px var(--turnGlow),0 8px 18px rgba(0,0,0,.7)!important}
.turnpill{background:var(--turn);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.5)}

/* leaderboard top 6 */
.top6{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:16px}
.topcard{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px 14px;border-radius:22px;text-align:center;position:relative}
.topcard .av{border:3px solid #6A7280}
.topcard.g{border:2px solid #F5C542;box-shadow:0 0 26px rgba(245,197,66,.4)}.topcard.g .av{border-color:#F5C542}
.topcard.s{border:2px solid #E6ECF5;box-shadow:0 0 22px rgba(255,255,255,.28)}.topcard.s .av{border-color:#E6ECF5}
.topcard.b{border:2px solid #CD7F32;box-shadow:0 0 22px rgba(205,127,50,.35)}.topcard.b .av{border-color:#CD7F32}
.topcard.me{outline:3px solid var(--turn,#22C55E);outline-offset:2px}
.topcard .tmedal{position:absolute;top:10px;right:10px;font-size:18px;font-weight:900}
body.ltr .topcard .tmedal{right:auto;left:10px}
.topcard .tmedal span{width:38px!important;height:38px!important;font-size:18px}
.topcard .tname{font-size:18px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topcard .tcups{font-size:17px;font-weight:700;color:#FDE68A}
/* v0.5.8: inner pages 40% bigger */
.page{zoom:1.4;overflow-y:auto;-webkit-overflow-scrolling:touch;bottom:auto;min-height:calc(720px / 1.4);height:calc(720px / 1.4)}
.page::-webkit-scrollbar{width:0}
.page .lcard{min-height:0!important}
#modal .box{zoom:1.25;max-height:calc(640px / 1.25)}
.rsel{flex-wrap:nowrap;gap:6px}
.rsel .btn{min-width:0;padding:0 10px}
.rsel .sub{white-space:nowrap}
#wheel .page{zoom:1.12;height:calc(720px / 1.12);min-height:calc(720px / 1.12)}

/* +/- and green submit */
.pm{width:50px;height:50px;border-radius:50%;border:2px solid rgba(255,255,255,.75);color:#fff;font-size:30px;font-weight:900;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0 0 3px;text-shadow:0 2px 3px rgba(0,0,0,.45);transition:transform .08s}
.pm:active{transform:scale(.9)}
.pm.minus{background:radial-gradient(circle at 35% 28%,#FF9A9A,#E5383B 55%,#9B1C1C);box-shadow:0 0 16px rgba(229,56,59,.55),inset 0 -3px 6px rgba(0,0,0,.35),inset 0 2px 3px rgba(255,255,255,.45)}
.pm.plus{background:radial-gradient(circle at 35% 28%,#BBF7D0,#22C55E 55%,#15803D);box-shadow:0 0 16px rgba(34,197,94,.55),inset 0 -3px 6px rgba(0,0,0,.35),inset 0 2px 3px rgba(255,255,255,.45)}
.btn.gobtn{background:linear-gradient(180deg,#4ADE80,#16A34A);color:#fff;border-color:#86EFAC;box-shadow:0 0 20px rgba(34,197,94,.5),inset 0 1px 0 rgba(255,255,255,.5);text-shadow:0 1px 2px rgba(0,0,0,.35)}
/* v0.6: larger, more readable menu text */
.page .tag{font-size:14.5px}
.page .sub{font-size:16px}
.page .sw{font-size:15px;min-height:46px}
.page .sw .toggle{width:48px;height:28px}.page .sw .toggle::after{width:20px;height:20px}.page .sw .toggle.on::after{right:23px}
.page .btn.sm{font-size:16px;min-height:42px}
.page .item{font-size:15px;gap:8px}
.page .item .pr{font-size:15px}
.page .pack b{font-size:17px}
.page .coinpill{font-size:18px}
.page .privtag{font-size:14px}
.page .setrow{font-size:19px}
.page .guide-card p{font-size:16.5px}
.page .guide-card h3{font-size:21px}
.page table.rank td{font-size:17px}
.page .lcard h3{font-size:28px}
.page .rsel .btn{font-size:15px;min-height:40px}
.tile.small h3{font-size:21px}
.tile p{font-size:15.5px}
#modal .sub{font-size:16px}
#modal .tag{font-size:14px}
.page .tabs button{font-size:16.5px;height:48px;border-radius:14px}

/* v1.2 social & chat */
.home-bottom{grid-template-columns:repeat(7,1fr);gap:12px}
.gwrap{position:relative;display:inline-block}
.nbadge{position:absolute;top:-4px;right:-6px;min-width:26px;height:26px;padding:0 7px;border-radius:13px;background:radial-gradient(circle at 35% 30%,#FF8A8A,#E5383B 60%,#B91C1C);color:#fff;font-weight:900;font-size:15px;display:none;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 0 12px rgba(229,56,59,.8);z-index:3}
.nbadge.static{position:static;display:flex}
.tabs .nbadge{display:flex;position:absolute}
.avw{position:relative;flex:none}
.odot{position:absolute;bottom:2px;right:2px;width:16px;height:16px;border-radius:50%;background:#6A7280;border:2.5px solid #101318}
.odot.on{background:radial-gradient(circle at 35% 30%,#BBF7D0,#22C55E 60%,#15803D);box-shadow:0 0 10px rgba(34,197,94,.9);animation:odot 1.8s ease-in-out infinite}
@keyframes odot{50%{box-shadow:0 0 16px 3px rgba(34,197,94,.95)}}
.frow,.crow{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px}
.crow{margin-bottom:10px;cursor:pointer}
.crow:active{background:rgba(255,255,255,.06)}
.frow .nm,.crow .nm{font-size:18px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crow .last{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.btn.blk{border-color:#B91C1C;color:#FCA5A5}
.page.convo{display:flex;flex-direction:column;padding:14px 20px;overflow:hidden}
.chead{display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:18px}
.chead .round{width:46px;height:46px}
body:not(.ltr) .chead .round svg{transform:none}
.msgsbox{flex:1;overflow-y:auto;padding:12px 4px;display:flex;flex-direction:column;gap:8px}
.mrow{display:flex}
.mrow.me{justify-content:flex-start}
.mrow:not(.me){justify-content:flex-end}
.mb{max-width:70%;padding:10px 14px;border-radius:18px;font-size:17px;line-height:1.6;background:#2C2F36;color:#fff;word-wrap:break-word;user-select:text;-webkit-user-select:text}
.mrow.me .mb{background:linear-gradient(180deg,#2F855A,#22543D)}
.mb small{display:block;font-size:12px;color:#C3CBD6;margin-top:2px}
.tk{font-style:normal;color:#C3CBD6;font-weight:900}
.tk.seen{color:#4ADE80}
.cinput{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:18px}
.emobtn{width:48px;height:48px;border-radius:50%;border:1px solid #6A7280;background:#1C1F25;font-size:26px;cursor:pointer;flex:none}
.emopanel{display:none;grid-template-columns:repeat(10,1fr);gap:4px;padding:8px;border-radius:16px;margin-bottom:8px}
.emopanel.on{display:grid}
.emopanel button{font-size:28px;background:none;border:none;cursor:pointer;padding:4px;border-radius:10px}
.emopanel button:active{background:rgba(255,255,255,.12)}

.reqbar{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px;border-radius:18px;margin-top:8px;border-color:#F59E0B}
.reqtag{display:inline-block;font-size:12.5px;font-weight:700;color:#101318;background:#FBBF24;border-radius:999px;padding:1px 10px;margin-bottom:2px}

/* auth */
.authbox{width:560px;padding:30px;display:flex;flex-direction:column;gap:16px;align-items:center}
.authbox .h1{font-size:34px}
input.inp.big{height:62px;font-size:21px;border-radius:16px}
.btn.big{min-height:60px;font-size:21px;border-radius:18px}
.authbox .sub{font-size:17px;text-align:center}
.authbox .tag{font-size:14.5px;text-align:center}
.authsep{width:100%;display:flex;align-items:center;gap:10px;color:#B9C2D0;font-size:16px}
.authsep::before,.authsep::after{content:'';flex:1;height:1px;background:#3A3F48}
#signup > div{zoom:1.22}
.authbox{gap:11px;padding:20px 30px}
.tagline{font-size:28px;font-weight:700;color:#E6ECF5;letter-spacing:.5px;text-shadow:0 2px 6px rgba(0,0,0,.6)}

/* v1.3: compact game-option pages (fit on one screen) */
#offline .page,#online .page{zoom:1.18;height:calc(720px / 1.18);min-height:calc(720px / 1.18);overflow:hidden}
#offline .lcard,#online .lcard{padding:14px 16px;gap:7px}
#offline .lcard h3,#online .lcard h3{font-size:24px}
#offline .lcard .sub{font-size:14.5px;line-height:1.5}
#online .lcard .big{font-size:24px}
#offline .note{margin-top:10px;padding:10px}
#offline .page-head,#online .page-head{margin-bottom:10px}
/* leaderboard: top 3 big */
.top3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}
.top3 .topcard{padding:18px 10px 16px}
.top3 .topcard .tname{font-size:21px}
.top3 .topcard .tcups{font-size:19px}
.top3 .topcard .tmedal span{width:46px!important;height:46px!important;font-size:22px}
/* announcement banner */
.annbar{position:absolute;top:142px;left:28px;right:28px;height:44px;display:flex;align-items:center;gap:12px;padding:0 14px;border-radius:14px;cursor:pointer;
  background:linear-gradient(90deg,rgba(245,197,66,.22),rgba(245,197,66,.08));border:1.5px solid #F5C542;box-shadow:0 0 18px rgba(245,197,66,.25);direction:rtl}
body.ltr .annbar{direction:ltr}
.annicon{font-size:22px;animation:annpulse 2s ease-in-out infinite}
@keyframes annpulse{50%{transform:scale(1.18)}}
.anntext{flex:1;font-size:16px;font-weight:700;color:#FDE68A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.annmore{font-size:14px;font-weight:700;color:#101318;background:#F5C542;border-radius:999px;padding:3px 12px}
.annx{width:32px;height:32px;border-radius:50%;border:1px solid #F5C542;background:transparent;color:#FDE68A;font-size:16px;cursor:pointer;flex:none}
.home-main.withann{top:196px;height:326px}

/* leaderboard: one list, first 3 rows slightly bigger */
table.rank tr.top td{padding:12px 14px}
table.rank tr.top .rn{font-size:21px}
table.rank tr.top .rc{font-size:20px;color:#FDE68A}
table.rank tr.top td:first-child span{width:40px!important;height:40px!important;font-size:19px}
table.rank tr.t0 td{background:rgba(245,197,66,.12);border-top:1.5px solid #F5C542;border-bottom:1.5px solid #F5C542}
table.rank tr.t1 td{background:rgba(230,236,245,.09);border-top:1.5px solid #C3CBD6;border-bottom:1.5px solid #C3CBD6}
table.rank tr.t2 td{background:rgba(205,127,50,.12);border-top:1.5px solid #CD7F32;border-bottom:1.5px solid #CD7F32}
table.rank tr.t0 td:first-child{border-right:1.5px solid #F5C542}table.rank tr.t0 td:last-child{border-left:1.5px solid #F5C542}
table.rank tr.t1 td:first-child{border-right:1.5px solid #C3CBD6}table.rank tr.t1 td:last-child{border-left:1.5px solid #C3CBD6}
table.rank tr.t2 td:first-child{border-right:1.5px solid #CD7F32}table.rank tr.t2 td:last-child{border-left:1.5px solid #CD7F32}
table.rank tr.t0 .av{border:3px solid #F5C542}table.rank tr.t1 .av{border:3px solid #E6ECF5}table.rank tr.t2 .av{border:3px solid #CD7F32}

/* v1.4 tournament */
.home-bottom{grid-template-columns:repeat(8,1fr);gap:10px}
.tile.small h3{font-size:19px}
.tourtile{position:relative}
.tourlab{font-size:12px;color:#B9C2D0;text-align:center;line-height:1.3;padding:0 4px}
.tourtile.tour-open{animation:tourglow 2.4s linear infinite;border-width:2px}
.tourtile.tour-open .gico{animation:tourhue 3s linear infinite}
.tourtile.tour-open .tourlab{color:#FDE68A;font-weight:700}
@keyframes tourglow{0%{border-color:#F43F5E;box-shadow:0 0 18px rgba(244,63,94,.55)}25%{border-color:#F59E0B;box-shadow:0 0 22px rgba(245,158,11,.6)}50%{border-color:#22C55E;box-shadow:0 0 18px rgba(34,197,94,.55)}75%{border-color:#3B82F6;box-shadow:0 0 22px rgba(59,130,246,.6)}100%{border-color:#F43F5E;box-shadow:0 0 18px rgba(244,63,94,.55)}}
@keyframes tourhue{0%{filter:hue-rotate(0deg) drop-shadow(0 8px 14px rgba(0,0,0,.55))}100%{filter:hue-rotate(360deg) drop-shadow(0 8px 14px rgba(0,0,0,.55))}}
.tourtile.tour-off{opacity:.62}
.tourtile.tour-off .gico{filter:grayscale(.85) drop-shadow(0 8px 14px rgba(0,0,0,.55))}
.tourhead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;margin-bottom:14px;border-color:#F5C542}
.tprize{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-weight:900;font-size:19px;color:#FDE68A}
body:not(.ltr) .tprize{align-items:flex-start}
.tprize small{font-size:12px;color:#B9C2D0;font-weight:400}
.tbar{width:70%;height:16px;border-radius:999px;background:#0B0C0F;border:1px solid #6A7280;overflow:hidden}
.tbar i{display:block;height:100%;background:linear-gradient(90deg,#F59E0B,#22C55E);border-radius:999px}
.tgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tpl{padding:6px 10px;border-radius:14px}
.tp{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.tp .tn{font-size:16px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp .tme{font-size:11px;background:#22C55E;color:#fff;border-radius:999px;padding:1px 8px;font-weight:700}
.tp .ts{margin-inline-start:auto;font-size:20px}
.tp.win .tn{color:#4ADE80}
.tp.win .av{border:2.5px solid #22C55E}
.tp.lose{opacity:.5}
.tp.lose .tn{text-decoration:line-through}
.tmatches{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tmatch{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px}
.tmatch .tp:last-child{flex-direction:row-reverse;text-align:end}
.tmatch .tp:last-child .ts{margin-inline-start:0;margin-inline-end:auto}
.tscore{font-size:20px;font-weight:900;white-space:nowrap;padding:0 6px}
.tpend{font-size:13px;color:#8E97A6;white-space:nowrap}
.tready{font-size:13px;font-weight:700;color:#FDE68A;white-space:nowrap}
.livebtn{display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 12px;border-radius:14px;border:2px solid #86EFAC;cursor:pointer;color:#fff;
  background:radial-gradient(circle at 35% 25%,#4ADE80,#16A34A 60%,#14532D);box-shadow:0 0 14px rgba(34,197,94,.7);animation:livepulse 1.6s ease-in-out infinite;flex:none}
.livebtn b{font-size:12.5px;white-space:nowrap}
.livebtn small{font-size:11.5px;opacity:.95;white-space:nowrap}
.ldot{width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 6px #fff;animation:ldot 1s ease-in-out infinite}
@keyframes livepulse{50%{box-shadow:0 0 24px 4px rgba(34,197,94,.85);transform:scale(1.04)}}
@keyframes ldot{50%{opacity:.25}}
.champ{display:flex;align-items:center;gap:14px;padding:12px 18px;margin-bottom:12px;border-color:#F5C542;box-shadow:0 0 24px rgba(245,197,66,.3)}
.champ .tp{flex:none}
.myturn{display:flex;align-items:center;gap:16px;justify-content:center;padding:12px 18px;margin-bottom:12px;border-color:#22C55E;box-shadow:0 0 22px rgba(34,197,94,.35)}
.myturn b{font-size:20px;color:#4ADE80}

.tmatch.third{position:relative;border-color:#CD7F32;padding-top:20px}
.thirdtag{position:absolute;top:2px;left:50%;transform:translateX(-50%);font-size:11.5px;font-weight:700;color:#F3C09A;white-space:nowrap}
.champ{flex-wrap:wrap;justify-content:center;gap:18px}
.podium{display:flex;align-items:center;gap:8px}
.podium>span{font-size:28px}

/* tournament strip: fixed place on home */
.home-bottom{grid-template-columns:repeat(7,1fr)}
.home-main{height:310px}
.home-main.withann{top:196px;height:264px}
.tourstrip{position:absolute;left:28px;right:28px;top:472px;height:64px;display:flex;align-items:center;gap:14px;padding:0 16px;border-radius:18px;cursor:pointer;border:2px solid #6A7280}
.home-bottom{top:548px;height:152px;bottom:auto}
.tourstrip .tsinfo{display:flex;flex-direction:column;gap:2px;min-width:0}
.tourstrip .tsinfo b{font-size:22px}
.tourstrip .tourlab{font-size:14px;color:#B9C2D0;white-space:nowrap}
.tourstrip .tsprize{margin-inline-start:auto;font-size:18px;font-weight:900;color:#FDE68A;white-space:nowrap}
.tourstrip .tsprize small{font-size:13px;color:#B9C2D0;font-weight:400}
.tourstrip .tsbtn{min-width:150px;font-size:17px;pointer-events:none}
.tourstrip.tour-open{animation:tourglow 2.4s linear infinite}
.tourstrip.tour-open .gico{animation:tourhue 3s linear infinite}
.tourstrip.tour-open .tourlab{color:#FDE68A;font-weight:700}
.tourstrip.tour-off{opacity:.7}
.tourstrip.tour-off .gico{filter:grayscale(.85)}
.tourstrip:active{transform:scale(.99)}
.tourstrip .tsbtn{display:flex;align-items:center;justify-content:center}
.tgt.dark{border-color:#2A2F38;box-shadow:0 0 0 2px rgba(255,255,255,.55),0 0 14px rgba(0,0,0,.55),inset 0 0 12px rgba(0,0,0,.35);background:rgba(42,47,56,.18)}

/* house rule card + popup */
.guide-card.rulecard{border:2px solid #F59E0B;box-shadow:0 0 22px rgba(245,158,11,.3);grid-column:1/-1;background:linear-gradient(180deg,rgba(245,158,11,.14),rgba(12,13,16,.9))}
.guide-card.rulecard h3{color:#FDE68A;font-size:23px}
.guide-card.rulecard p{font-size:17.5px;color:#fff}
.rulebig{max-width:640px;display:flex;flex-direction:column;align-items:center;gap:10px}
.rulebig .ruleicon{font-size:54px;line-height:1}
.rulebig h2{color:#FDE68A;font-size:26px}
.rulebig p{margin:0;font-size:18px;line-height:2;text-align:center}
/* prize claim */
.prizebig{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:460px;overflow:hidden}
.prizebig h2{font-size:24px;max-width:520px;line-height:1.6}
.prizebig .pemo{font-size:52px;line-height:1;position:relative;z-index:1;animation:pemo 1.6s ease-in-out infinite}
.prizebig .bigtrophy{position:relative;z-index:1;filter:drop-shadow(0 10px 18px rgba(0,0,0,.6));animation:trophyin .7s cubic-bezier(.2,1.6,.4,1)}
.prizebig .rays{position:absolute;top:30px;left:50%;width:360px;height:360px;margin-left:-180px;border-radius:50%;opacity:.35;animation:rays 9s linear infinite;
  background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.0) 0deg 10deg,var(--rc) 10deg 20deg)}
.prizebig.p0{--rc:rgba(255,208,0,.55)}.prizebig.p1{--rc:rgba(201,209,220,.5)}.prizebig.p2{--rc:rgba(181,98,43,.55)}
.prizebig.p0 h2{color:#FFE066}.prizebig.p1 h2{color:#E6ECF5}.prizebig.p2 h2{color:#F6C29C}
@keyframes rays{to{transform:rotate(360deg)}}
@keyframes trophyin{from{transform:scale(.3) rotate(-12deg);opacity:0}}
@keyframes pemo{50%{transform:translateY(-6px) scale(1.08)}}

/* prize: soft glow background + green claim button */
.prizebig .rays{display:none}
.prizebig .glow{position:absolute;top:40px;left:50%;width:300px;height:300px;margin-left:-150px;border-radius:50%;background:radial-gradient(circle,var(--gc) 0%,rgba(0,0,0,0) 65%);animation:pglow 2.6s ease-in-out infinite}
.prizebig.p0{--gc:rgba(255,208,0,.45)}.prizebig.p1{--gc:rgba(220,228,240,.38)}.prizebig.p2{--gc:rgba(205,110,50,.45)}
@keyframes pglow{50%{transform:scale(1.12);opacity:.75}}
.btn.claimbtn{min-height:60px;min-width:260px;font-size:22px;border-radius:20px;position:relative;overflow:hidden;
  background:linear-gradient(180deg,#86EFAC 0%,#22C55E 45%,#15803D 100%);border:2px solid #BBF7D0;color:#fff;text-shadow:0 2px 3px rgba(0,0,0,.4);
  box-shadow:0 0 26px rgba(34,197,94,.7),inset 0 2px 0 rgba(255,255,255,.55),inset 0 -4px 8px rgba(0,0,0,.25);animation:claimpulse 1.8s ease-in-out infinite}
.btn.claimbtn::after{content:'';position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.55),rgba(255,255,255,0));animation:shine 2.4s ease-in-out infinite}
@keyframes claimpulse{50%{box-shadow:0 0 38px 6px rgba(34,197,94,.85),inset 0 2px 0 rgba(255,255,255,.55),inset 0 -4px 8px rgba(0,0,0,.25)}}
@keyframes shine{0%{left:-60%}60%,100%{left:130%}}

/* v1.5: confirm = glossy green, cancel/reject = glossy red (no white buttons) */
.btn:not(.ghost):not(.nobtn){background:linear-gradient(180deg,#86EFAC 0%,#22C55E 48%,#15803D 100%);border:1.5px solid #BBF7D0;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4);
  box-shadow:0 0 16px rgba(34,197,94,.45),inset 0 2px 0 rgba(255,255,255,.5),inset 0 -3px 6px rgba(0,0,0,.22)}
.btn.nobtn,#modal .btn.ghost{background:linear-gradient(180deg,#FCA5A5 0%,#EF4444 48%,#B91C1C 100%);border:1.5px solid #FECACA;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4);
  box-shadow:0 0 16px rgba(239,68,68,.45),inset 0 2px 0 rgba(255,255,255,.45),inset 0 -3px 6px rgba(0,0,0,.22)}
#modal .btn{min-width:140px;min-height:52px;font-size:18px;border-radius:16px}
.btn[disabled]{filter:grayscale(1);opacity:.45}
.tabs .nbadge{right:auto!important;width:auto}
.btn.blk{background:linear-gradient(180deg,#FCA5A5 0%,#EF4444 48%,#B91C1C 100%)!important;border:1.5px solid #FECACA!important;color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.4);box-shadow:0 0 14px rgba(239,68,68,.4),inset 0 2px 0 rgba(255,255,255,.45)}
/* notification badges: round red circle on the corner */
.nbadge{min-width:28px;height:28px;padding:0 6px;border-radius:14px;font-size:16px;line-height:1;
  background:radial-gradient(circle at 32% 28%,#FFB4B4 0%,#FF4D4F 38%,#D61F2C 75%,#9B1C1C 100%);border:2.5px solid #fff;
  box-shadow:0 0 0 2px rgba(214,31,44,.35),0 0 14px rgba(255,77,79,.85),0 3px 6px rgba(0,0,0,.5)}
.tabs .nbadge{top:-12px!important;left:-10px!important;right:auto!important}
body.ltr .tabs .nbadge{left:auto!important;right:-10px!important}
.crow .nbadge.static{min-width:30px;height:30px;border-radius:15px}
.nbadge{min-width:33px;height:33px;border-radius:17px;font-size:18px;padding:0 7px}
.tabs .nbadge{top:-14px!important;left:-12px!important}
body.ltr .tabs .nbadge{right:-12px!important}
.crow .nbadge.static{min-width:34px;height:34px;border-radius:17px;font-size:18px}
.gwrap .nbadge{top:-7px;right:-9px}
.prizebig{padding-top:10px}.prizebig .pemo{margin-top:4px}
#result .btn{min-height:56px;font-size:19px}

/* wheel: lift wheel and side texts so nothing leaves the frame */
#wheel .page > div:last-child{margin-top:-34px;transform:scale(.94);transform-origin:top center}

/* disconnected player */
.avwrap.dc .av{filter:grayscale(1) brightness(.55)}
.avwrap.dc::after{content:'DISCONNECTED';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-12deg);background:rgba(0,0,0,.82);color:#fff;
  font:900 10.5px/1 Vaz,Arial,sans-serif;letter-spacing:.6px;padding:5px 7px;border-radius:6px;border:1.5px solid #fff;z-index:4;white-space:nowrap;direction:ltr}

/* result screen: larger texts */
#result .h1{font-size:40px!important}
#result .sub{font-size:21px}
#result .tag{font-size:18px}
#result .rname{font-size:25px}
#result .rmid .sub{font-size:22px}
#result .rmid .tag{font-size:18px}
#result .rmid div[style*="gap:60px"]{font-size:20px;gap:80px!important}
#result .coinpill{font-size:21px;padding:7px 16px}
#result .coinpill .coin{width:24px;height:24px}

#result .h1{font-size:50px!important}
#result > div > .sub{font-size:27px}
#result .rname{font-size:32px}
#result .rmid .sub{font-size:28px}
#result .rmid .tag{font-size:24px}
#result .rmid div[style*="gap:60px"]{font-size:25px}
#result .rmid div[style*="font-size:60px"]{font-size:84px!important}
#result .resav + div{font-size:54px!important}
#result .coinpill{font-size:25px;padding:8px 18px}
#result .btn{min-height:66px;font-size:24px;min-width:200px!important}

.avwrap.dc::after{display:flex;align-items:center;justify-content:center;height:22px;padding:0 8px;line-height:22px;text-align:center;font-family:Arial,Helvetica,sans-serif;font-size:10.5px;box-sizing:border-box}

.guidefoot{margin:26px 4px 0;font-size:12px;color:#6A7280;text-align:center;line-height:1.8}

/* studio intro (SM STUDIO) */
@font-face{font-family:SmSub;src:url(../fonts/Michroma.woff2) format('woff2')}
#splash{position:absolute;top:0;right:0;bottom:0;left:0;z-index:200;direction:ltr;overflow:hidden;background:#000;transition:opacity 1.2s ease}
#splash.out{opacity:0;pointer-events:none}
#splash .sp-all{position:absolute;inset:0;will-change:opacity;animation:spOut .8s ease-in 4.8s forwards}
#splash .sp-cam{position:absolute;inset:0;background:#000;display:flex;flex-direction:column;align-items:center;justify-content:center;will-change:transform;animation:spCam 4s cubic-bezier(.22,.61,.36,1) .4s both}
#splash .sp-pl{position:relative;height:70%;aspect-ratio:1403/708;flex:none;margin-top:0}
#splash .sp-pb,#splash .sp-img{position:absolute;inset:0;background-position:center;background-size:100% 100%;background-repeat:no-repeat;will-change:opacity}
#splash .sp-pb{background-image:url(../img/sm_cut_blur.webp);opacity:0;animation:spOp .5s ease .5s forwards}
#splash .sp-img{background-image:url(../img/sm_cut.webp);opacity:0;animation:spOp 1s cubic-bezier(.4,0,.2,1) .85s forwards}
#splash .sp-shine{position:absolute;left:0;top:50%;width:100%;height:55%;overflow:hidden;mix-blend-mode:overlay;
  -webkit-mask:linear-gradient(180deg,transparent,#000 25%,#000 75%,transparent);mask:linear-gradient(180deg,transparent,#000 25%,#000 75%,transparent)}
#splash .sp-shine i{position:absolute;top:0;left:0;width:22%;height:100%;transform:translateX(-120%) skewX(-18deg);will-change:transform;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.95) 50%,transparent);animation:spSweep 1.2s cubic-bezier(.45,0,.55,1) 1.8s forwards}
#splash .sp-flash{position:absolute;left:-20%;top:-20%;width:140%;height:140%;mix-blend-mode:screen;opacity:0;will-change:opacity;
  background:radial-gradient(ellipse 45% 35% at 50% 62%,rgba(150,195,255,.45),rgba(80,140,255,.12) 50%,transparent 75%);animation:spFlash 1s ease-out 1.45s forwards}
#splash .sp-glow{position:absolute;width:34%;height:10%;mix-blend-mode:screen;opacity:0;will-change:opacity,transform;background:radial-gradient(circle at 50% 50%,#fff 0,rgba(160,210,255,.95) 1.5%,rgba(90,160,255,.25) 6%,transparent 12%),radial-gradient(ellipse 50% 22% at 50% 50%,rgba(110,175,255,.75),rgba(60,130,255,.15) 55%,transparent 75%);animation:spGlow 2.6s ease-in-out 1.7s infinite}
#splash .g1{left:-7.3%;top:55%}#splash .g2{left:74.6%;top:55%;animation-delay:2.1s}#splash .g3{left:41%;top:18.6%;animation-delay:2.4s}
#splash .sp-sub{font-family:SmSub,sans-serif;color:#fff;font-size:15px;line-height:1;letter-spacing:5px;white-space:nowrap;opacity:0;will-change:opacity,transform;animation:spSub .9s cubic-bezier(.22,.61,.36,1) forwards}
#splash .s1{margin-top:1.2%;animation-delay:2.15s}#splash .s2{margin-top:.7%;animation-delay:2.35s}
@keyframes spOp{to{opacity:1}}
@keyframes spOut{to{opacity:0}}
@keyframes spCam{0%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes spFlash{0%{opacity:0}18%{opacity:1}100%{opacity:0}}
@keyframes spSweep{to{transform:translateX(560%) skewX(-18deg)}}
@keyframes spGlow{0%,100%{opacity:.15;transform:scaleX(.8)}50%{opacity:1;transform:scaleX(1.08)}}
@keyframes spSub{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* website tip */
.webaddr{display:inline-block;direction:ltr;font-family:Arial,Helvetica,sans-serif;font-weight:700;color:#5FB4FF;letter-spacing:.5px}
.webaddr.big{font-size:30px;margin-top:4px;padding:8px 26px;border-radius:14px;background:rgba(95,180,255,.1);border:1px solid rgba(95,180,255,.35)}
.webtip{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:560px;text-align:center}
.webtip h2{margin:6px 0 0}
.webtip p{margin:0;font-size:19px;line-height:1.9;color:#D5DAE2}

/* portrait warning (phones/tablets in browser; the Android app is locked to landscape) */
#rotate{display:none;position:fixed;inset:0;z-index:10000;background:#050607;color:#fff;flex-direction:column;align-items:center;justify-content:center;gap:14px;font-family:Vaz,Tahoma,sans-serif;text-align:center;padding:24px}
#rotate b{font-size:24px}#rotate span{font-size:16px;color:#9AA3AF}
#rotate .rphone{transform-origin:60px 54px;animation:rphone 2.2s ease-in-out infinite}
@keyframes rphone{0%,25%{transform:rotate(0)}55%,85%{transform:rotate(-90deg)}100%{transform:rotate(0)}}
@media (orientation:portrait) and (pointer:coarse){#rotate{display:flex}}
