:root{font-family:Arial,Helvetica,sans-serif;color-scheme:light}*{box-sizing:border-box;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#fff}body{touch-action:none}.loader{position:fixed;inset:0;display:flex;justify-content:center;overflow:hidden;background:radial-gradient(circle at 46% 45%,#fff 0 18%,#fffafb 48%,#fff4f5 100%)}.hero{position:relative;z-index:5;width:min(1100px,80vw);padding-top:10.5vh;text-align:center}
.gift{display:block;width:150px;height:140px;object-fit:contain;margin:0 auto 3px;filter:drop-shadow(0 7px 12px #ec69732b)}.hero h1{margin:0;color:#06101e;font-size:clamp(52px,5vw,80px);line-height:1;font-weight:800;letter-spacing:-3px;text-shadow:0 4px 7px #bfc3c9}.hero h1 em{display:inline-block;padding:2px 14px 5px;margin-left:6px;color:#fff;background:linear-gradient(135deg,#fa3441,#df071b);border-radius:12px;font-size:.58em;font-style:italic;vertical-align:14%;letter-spacing:-2px}.tagline{margin:20px 0 50px;color:#54565f;font-size:clamp(25px,2.1vw,35px);line-height:1.18;font-weight:600}
.cards{display:grid;grid-template-columns:repeat(6,1fr);gap:20px}.card{height:164px;padding:22px 8px 18px;border:1px solid #eee7e9;border-radius:35px;background:linear-gradient(145deg,#fff,#fffcfd);box-shadow:0 12px 25px #664b511c;display:flex;flex-direction:column;align-items:center;justify-content:space-between}.card strong{font-size:clamp(16px,1.25vw,22px);white-space:nowrap}.brand-icon{display:block;width:112px;height:82px;object-fit:contain;object-position:center;mix-blend-mode:multiply;pointer-events:none}
.loader__progress{width:min(610px,58vw);margin:88px auto 0}.loader__track{height:21px;overflow:hidden;border-radius:99px;background:#e3e2e7}.loader__fill{width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff3441,#f00f20);transition:width 80ms linear}.loader__label{margin:20px 0 0;color:#555860;font-size:30px;line-height:1}.loader--done{opacity:0;transition:opacity .18s ease;pointer-events:none}.empty{width:100%;height:100%;background:#fff}
.scene{position:absolute;z-index:2;pointer-events:none;object-fit:contain}.scene-waves{z-index:1;inset:0;width:100%;height:100%;object-fit:fill}.scene-palms{left:-2vw;bottom:26vh;width:310px;height:390px;object-position:left bottom;opacity:.92}.scene-temples{right:-1vw;bottom:29vh;width:470px;height:330px;object-position:right bottom;opacity:.86}
.deco{position:absolute;z-index:4;object-fit:contain;pointer-events:none;filter:drop-shadow(0 12px 18px #bd44542c)}.coin-one{width:165px;height:165px;left:13vw;top:10vh;transform:rotate(-12deg)}.coin-two{width:165px;height:165px;right:9vw;bottom:7vh;transform:rotate(18deg)}.ticket-game{width:220px;height:150px;right:10vw;top:14vh;transform:rotate(-4deg)}.ticket-sale{width:205px;height:140px;left:10vw;bottom:5vh;transform:rotate(6deg)}
@media(max-width:760px){.hero{width:92vw;padding-top:4.5vh}.gift{width:92px;height:86px}.hero h1{font-size:40px;letter-spacing:-2px;margin-top:8px}.hero h1 em{font-size:.56em;padding:2px 8px;border-radius:7px}.tagline{font-size:17px;margin:13px auto 20px;max-width:340px}.tagline br{display:none}.cards{grid-template-columns:repeat(3,1fr);gap:9px}.card{height:118px;border-radius:20px;padding:9px 4px 10px}.card strong{font-size:12px}.brand-icon{width:88px;height:70px}.loader__progress{width:78vw;margin-top:32px}.loader__track{height:12px}.loader__label{font-size:20px;margin-top:12px}.coin-one,.coin-two{width:82px;height:82px}.coin-one{left:-18px;top:2vh}.coin-two{right:-18px;bottom:3vh}.ticket-game,.ticket-sale{width:112px;height:80px}.ticket-game{right:-28px;top:20vh}.ticket-sale{left:-30px;bottom:8vh}.scene-palms{left:-55px;bottom:32vh;width:170px;height:250px;opacity:.55}.scene-temples{right:-45px;bottom:34vh;width:230px;height:180px;opacity:.45}}
@media(max-height:700px) and (min-width:761px){.hero{padding-top:3vh;transform:scale(.82);transform-origin:top center}.loader__progress{margin-top:50px}}@media(prefers-reduced-motion:reduce){.loader__fill,.loader--done{transition:none}}

/* Main screen */
.home[hidden]{display:none}.home{position:relative;min-height:100%;overflow:auto;background:radial-gradient(circle at 72% 26%,#faf7ff,#fff 57%);color:#090d18;user-select:none}.home-header{position:relative;z-index:5;height:98px;padding:0 5.5vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9e6ef;background:#ffffffd9}.home-logo{display:flex;align-items:center;gap:8px;color:#0a0d15;text-decoration:none}.home-logo>span{font-size:47px;filter:hue-rotate(225deg) saturate(1.8)}.home-logo b{font-size:38px;letter-spacing:-2px}.home-logo em{padding:4px 10px;color:#fff;background:linear-gradient(135deg,#9246e9,#6420ce);border-radius:8px;font:bold italic 27px Arial}.home-actions{display:flex;gap:18px;align-items:center}.balance{height:64px;min-width:190px;padding:8px 25px 8px 14px;border:1px solid #e7e0ef;border-radius:25px;background:#f8f5fb;display:flex;align-items:center;gap:12px}.balance img{width:44px;height:44px;object-fit:contain}.balance strong{font-size:29px}.store-btn,.game button{border:0;color:#fff;background:linear-gradient(135deg,#9546e8,#6820d2);font-weight:700;cursor:pointer;box-shadow:0 8px 18px #7c35d326;transition:transform .15s ease,filter .15s ease}.store-btn{height:64px;padding:0 30px;border-radius:22px;font-size:25px}.store-btn:hover,.game button:hover{filter:brightness(1.08);transform:translateY(-2px)}.store-btn:active,.game button:active{transform:translateY(1px) scale(.98)}.home-bg{position:fixed;z-index:0;inset:98px 0 0;pointer-events:none;opacity:.25}.home-bg img{width:100%;height:100%;object-fit:cover}.home-content{position:relative;z-index:2;width:min(1530px,91vw);margin:0 auto;padding:30px 0 38px}.home-intro{height:290px;display:flex;justify-content:space-between;align-items:center;padding:0 20px}.home-intro h2{margin:0 0 20px;font-size:55px;line-height:1.08;letter-spacing:-2px}.home-intro p{margin:0;color:#5d606a;font-size:27px;line-height:1.2}.home-intro>img{width:min(620px,43vw);height:280px;object-fit:cover;mix-blend-mode:multiply}.games{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}.game{height:235px;border:4px solid #fff;border-radius:40px;display:grid;grid-template-columns:39% 61%;align-items:center;overflow:hidden;box-shadow:0 8px 25px #66578212}.game--purple{background:linear-gradient(135deg,#f7f3ff,#eee9ff)}.game--blue{background:linear-gradient(135deg,#f2f8ff,#e9f1ff)}.game--orange{background:linear-gradient(135deg,#fff9ef,#fff0de)}.game--green{background:linear-gradient(135deg,#f5fffc,#edf7f3)}.game>img{width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply}.game>div{align-self:center;padding-right:20px}.game h3{margin:0 0 5px;font-size:31px}.game p{min-height:60px;margin:0 0 10px;color:#646773;font-size:24px;line-height:1.15}.game button{min-width:178px;height:57px;border-radius:18px;font-size:23px}.toast{position:fixed;z-index:20;left:50%;bottom:25px;transform:translate(-50%,30px);padding:13px 24px;border-radius:16px;background:#181220e8;color:#fff;font-weight:700;opacity:0;pointer-events:none;transition:.25s}.toast--visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){.home-header{height:68px;padding:0 16px}.home-logo>span{font-size:29px}.home-logo b{font-size:24px;letter-spacing:-1px}.home-logo em{font-size:15px;padding:3px 6px}.home-actions{gap:7px}.balance{min-width:0;height:45px;padding:5px 10px;gap:4px}.balance img{width:29px;height:29px}.balance strong{font-size:17px}.store-btn{height:45px;padding:0 12px;border-radius:15px;font-size:0}.store-btn span{font-size:22px}.home-bg{inset:68px 0 0}.home-content{width:92vw;padding:18px 0 28px}.home-intro{height:auto;min-height:260px;padding:0 4px;display:block;text-align:center}.home-intro h2{font-size:37px;margin-bottom:12px}.home-intro p{font-size:18px}.home-intro>img{width:90%;height:170px;margin-top:10px}.games{grid-template-columns:1fr;gap:12px}.game{height:170px;border-width:3px;border-radius:28px;grid-template-columns:42% 58%}.game>div{padding-right:10px}.game h3{font-size:20px}.game p{min-height:45px;font-size:15px}.game button{min-width:118px;height:43px;border-radius:14px;font-size:16px}}
.home{width:100%;height:100%}

/* PromoBox red theme and strict card alignment */
.home{background:radial-gradient(circle at 72% 26%,#fff8f9,#fff 58%)}
.home-logo>span{display:none}.home-logo>img{width:52px;height:52px;object-fit:contain}.home-logo em{background:linear-gradient(135deg,#ff3d4b,#df071b)}
.balance{background:#fff8f9;border-color:#f1e1e4}.store-btn,.game button{background:linear-gradient(135deg,#ff3c4b,#e2081d);box-shadow:0 8px 18px #e51e3530}
.store-btn{min-width:162px;display:flex;align-items:center;justify-content:center;gap:9px}.store-btn span{font-size:29px;line-height:1}
.store-btn>img{display:block;width:34px;height:34px;object-fit:contain}
.home-intro{display:grid;grid-template-columns:45% 55%;padding:0 20px}.home-intro>div{text-align:left}.home-intro>img{justify-self:end;width:100%;max-width:650px;height:280px;border-radius:0;object-fit:cover}
.games{align-items:stretch}.game{grid-template-columns:40% 60%;height:235px}.game>img{display:block;width:100%;height:100%;object-fit:cover}.game>div{height:100%;padding:30px 24px 25px;display:grid;grid-template-rows:auto 1fr 57px;align-items:start}.game h3{line-height:1.05}.game p{min-height:0;margin:6px 0 0}.game button{align-self:end;justify-self:start;width:180px;min-width:180px;height:57px;margin:0;padding:0;display:inline-flex;align-items:center;justify-content:center;gap:9px}
.game--purple{background:linear-gradient(135deg,#fff4f6,#ffecef)}.game--blue{background:linear-gradient(135deg,#f5f9ff,#eaf3ff)}.game--orange{background:linear-gradient(135deg,#fff9ef,#fff0de)}.game--green{background:linear-gradient(135deg,#f5fffc,#edf7f3)}
@media(max-width:760px){.home-logo>img{width:34px;height:34px}.store-btn{min-width:45px;padding:0}.store-btn span{font-size:22px}.home-intro{display:flex;flex-direction:column;padding:0 4px}.home-intro>div{text-align:center}.home-intro>img{width:100%;height:170px}.game{grid-template-columns:42% 58%;height:174px}.game>div{padding:18px 10px 14px;grid-template-rows:auto 1fr 43px}.game button{width:122px;min-width:122px;height:43px}.game h3{font-size:19px}.game p{font-size:14px}}
@media(max-width:760px){.store-btn{gap:0}.store-btn>img{width:31px;height:31px;margin:auto}.store-btn>span{display:none}}

/* Compact home layout */
.home-content{width:min(1532px,91vw);padding-top:46px}.home-intro{height:286px;padding:0 65px;border-radius:34px;overflow:hidden;background:linear-gradient(135deg,#fff7f8 0%,#fff 52%,#fff0f2 100%);box-shadow:inset 0 0 50px #f8dfe430}.home-intro h2{font-size:52px;margin-bottom:15px}.home-intro p{font-size:27px;line-height:1.22}.home-intro p br{display:none}.home-intro>img{height:286px;max-width:610px;mix-blend-mode:multiply}.games-title{margin:46px 0 26px;font-size:39px;line-height:1}.game-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.game-tile{position:relative;height:240px;padding:15px 24px 23px;border:2px solid #ebe7e8;border-radius:30px;background:#fff;box-shadow:0 10px 28px #4f39470b;color:#0b0e16;cursor:pointer;display:grid;grid-template-columns:1fr 30px;grid-template-rows:165px 1fr;align-items:center;text-align:left;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.game-tile:hover{transform:translateY(-4px);border-color:#ffc8cf;box-shadow:0 15px 30px #e3294020}.game-tile:active{transform:translateY(-1px) scale(.99)}.game-tile img{grid-column:1/3;justify-self:center;width:250px;height:160px;object-fit:contain;mix-blend-mode:multiply}.game-tile span{align-self:end;font-size:25px;font-weight:800;white-space:nowrap}.game-tile i{align-self:end;justify-self:end;font:normal 43px/25px Arial;color:#575a62}.game-tile:focus-visible{outline:4px solid #ffabb5;outline-offset:3px}
@media(max-width:1000px){.home-intro{padding:0 35px}.home-intro h2{font-size:43px}.home-intro p{font-size:22px}.game-grid{grid-template-columns:repeat(2,1fr)}.game-tile span{font-size:23px}}
@media(max-width:760px){.home-content{padding-top:18px}.home-intro{height:auto;min-height:0;padding:25px 18px 0;border-radius:26px}.home-intro h2{font-size:35px}.home-intro p{font-size:17px}.home-intro>img{height:155px;margin:8px auto 0}.games-title{margin:28px 0 18px;font-size:28px}.game-grid{grid-template-columns:1fr 1fr;gap:10px}.game-tile{height:190px;padding:9px 12px 15px;border-radius:22px;grid-template-columns:1fr 22px;grid-template-rows:130px 1fr}.game-tile img{width:150px;height:125px}.game-tile span{font-size:15px;white-space:normal}.game-tile i{font-size:32px}}
.home-intro p br{display:block}
.home-intro>img{object-fit:contain;object-position:center}
.game-tile{min-width:0;grid-template-columns:minmax(0,1fr) 30px}.game-tile img{max-width:100%}
.online-badge{position:absolute;z-index:3;top:12px;right:12px;height:27px;padding:0 10px;border:1px solid #dcebe0;border-radius:999px;background:#fffffff0;box-shadow:0 4px 12px #234d2d12;display:inline-flex;align-items:center;gap:6px;color:#31713f;font-size:12px;line-height:1;white-space:nowrap;pointer-events:none}.online-badge i{width:8px;height:8px;border-radius:50%;background:#25b84b;box-shadow:0 0 0 0 #25b84b70;animation:online-pulse 1.7s ease-out infinite}.online-badge b{font-weight:800}@keyframes online-pulse{0%{box-shadow:0 0 0 0 #25b84b70}70%{box-shadow:0 0 0 6px #25b84b00}100%{box-shadow:0 0 0 0 #25b84b00}}
@media(max-width:760px){.game-tile{grid-template-columns:minmax(0,1fr) 22px}}
@media(max-width:375px){.home-header{padding:0 10px;gap:6px}.home-logo{min-width:0;gap:4px}.home-logo>img{width:27px;height:27px}.home-logo b{font-size:20px;letter-spacing:-1px}.home-logo em{font-size:12px;padding:2px 4px}.home-actions{flex-shrink:0;gap:5px}.balance{height:41px;padding:4px 7px;gap:3px}.balance img{width:25px;height:25px}.balance strong{font-size:15px}.store-btn{width:41px;min-width:41px;height:41px}.store-btn>img{width:28px;height:28px}.game-grid{gap:8px}.game-tile{width:100%;padding-left:8px;padding-right:8px;grid-template-columns:minmax(0,1fr) 18px}.game-tile img{width:100%;max-width:135px}.game-tile span{font-size:14px}.game-tile i{font-size:28px}}
.game-tile .online-badge{display:inline-flex;align-self:auto;justify-self:auto;font-size:12px;line-height:1;white-space:nowrap}.game-tile .online-badge i{width:8px;height:8px;align-self:center;justify-self:auto;font:inherit}
@media(max-width:560px){.game-tile .online-badge{top:8px;right:8px;height:24px;padding:0 8px;font-size:10px;gap:5px;white-space:nowrap}.game-tile .online-badge i{width:7px;height:7px}}
@media(prefers-reduced-motion:reduce){.online-badge i{animation:none}}

/* Rewards store */
.shop[hidden]{display:none}.shop{width:100%;height:100%;overflow:auto;background:linear-gradient(145deg,#fff,#fff9fa);color:#10131b}.shop-home{border:0;background:none;padding:0;cursor:pointer}.store-active{cursor:default}.shop-shell{width:min(1615px,96vw);margin:0 auto;padding:62px 0;display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px}.shop-sidebar{position:sticky;top:25px;height:665px;padding:18px 14px;border:1px solid #eee4e6;border-radius:24px;background:#fff;box-shadow:0 10px 30px #66333d0b}.category{width:100%;height:62px;padding:0 16px;border:0;border-radius:14px;background:transparent;color:#20232b;font:700 19px Arial;text-align:left;display:flex;align-items:center;gap:17px;cursor:pointer}.category span{width:28px;text-align:center;font-size:24px}.category:hover,.category.active{background:#fff0f2;color:#e20a20}.shop-main{min-width:0}.shop-top{display:flex;align-items:center;justify-content:space-between;gap:35px;margin:5px 0 58px}.shop-top h1{margin:0 0 9px;font-size:42px}.shop-top p{margin:0;color:#626570;font-size:19px}.shop-search{flex:0 1 450px;height:62px;padding:0 20px;border:2px solid #ece4e6;border-radius:20px;background:#fff;display:flex;align-items:center;gap:13px}.shop-search span{font-size:31px}.shop-search input{width:100%;border:0;outline:0;background:transparent;font-size:19px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product{min-width:0;height:240px;border:1px solid #ece5e6;border-radius:22px;background:#fff;box-shadow:0 8px 22px #3e26300d;display:grid;grid-template-rows:1fr 58px;overflow:hidden}.product-body{padding:22px 18px 12px;display:grid;grid-template-columns:78px minmax(0,1fr);gap:15px}.product-logo{width:78px;height:78px;padding:9px;border-radius:18px;background:#fff5f6;object-fit:contain}.product h2{margin:2px 0 9px;font-size:20px;line-height:1.05}.product p{margin:0;color:#5e616b;font-size:14px;line-height:1.28;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.product-foot{padding:0 14px 0 18px;border-top:1px solid #f0e9ea;display:flex;align-items:center;justify-content:space-between}.product-cost{font-size:20px;font-weight:800}.product-cost:before{content:'★';display:inline-grid;place-items:center;width:27px;height:27px;margin-right:8px;border-radius:50%;color:#fff5ba;background:#f3ae13;font-size:16px}.redeem{height:40px;padding:0 27px;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,#ff3c4b,#df071b);font-size:16px;font-weight:800;cursor:pointer}.redeem:hover{filter:brightness(1.08)}.product-empty{text-align:center;color:#777;font-size:20px}.shop-toast{background:#301319}
@media(max-width:1250px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-shell{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:900px){.shop-shell{display:block;padding:22px 0}.shop-sidebar{position:static;width:100%;height:auto;padding:8px;display:flex;overflow-x:auto;gap:4px}.category{flex:0 0 auto;width:auto;height:45px;padding:0 13px;font-size:15px}.category span{width:auto;font-size:18px}.shop-top{margin:25px 0;display:block}.shop-top h1{font-size:32px}.shop-top p{font-size:16px}.shop-search{margin-top:18px;max-width:none;height:52px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.shop-shell{width:94vw}.product-grid{grid-template-columns:1fr;gap:12px}.product{height:218px}.product-body{padding:16px;grid-template-columns:68px minmax(0,1fr)}.product-logo{width:68px;height:68px}.product h2{font-size:18px}.shop-top p{line-height:1.35}}
.product-foot{gap:10px}.product-cost{display:inline-flex;align-items:center;min-width:0;white-space:nowrap;flex-shrink:0}.product-cost:before{display:inline-grid;flex:0 0 27px}.redeem{flex:0 0 auto;white-space:nowrap}
.category img{width:27px;height:27px;object-fit:contain;filter:none}.category.active img{filter:invert(13%) sepia(99%) saturate(5413%) hue-rotate(348deg) brightness(89%) contrast(96%)}.product-cost:before{content:'';width:29px;height:29px;flex:0 0 29px;background:url('../assets/images/coin.png') center/contain no-repeat;border-radius:0;color:transparent}
.redeem--disabled,.redeem--disabled:hover{background:#a7a8ad;color:#f4f4f5;box-shadow:none;filter:none;cursor:not-allowed}

/* Rock paper scissors */
.rps-page[hidden],.room-modal[hidden]{display:none}.rps-page{width:100%;height:100%;overflow:auto;background:radial-gradient(circle at 70% 25%,#fff6f7,#fff 60%);color:#10131b}.rps-home{border:0;background:none;padding:0;cursor:pointer}.rps-wrap,.match-wrap{width:min(1530px,92vw);margin:0 auto;padding:28px 0 60px}.rps-back,.match-back{border:0;background:none;padding:0;color:#181b22;font:800 22px Arial;cursor:pointer}.rps-back:first-letter,.match-back:first-letter{font-size:38px}.rps-heading{min-height:190px;display:grid;grid-template-columns:190px minmax(0,1fr) auto;align-items:center;gap:28px}.rps-heading>img{width:185px;height:155px;object-fit:cover;border-radius:25px;mix-blend-mode:multiply}.rps-heading h1{margin:0 0 12px;font-size:42px}.rps-heading p{margin:0;color:#60636d;font-size:21px}.create-room{height:70px;padding:0 38px;border:0;border-radius:20px;color:#fff;background:linear-gradient(135deg,#ff3d4b,#df071b);font-size:24px;font-weight:800;cursor:pointer;box-shadow:0 10px 25px #e01a3030}.lobby-table{margin-top:20px;border:1px solid #eee3e5;border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 12px 34px #4b28300b}.lobby-head,.lobby-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(180px,.75fr) 170px;align-items:center}.lobby-head{height:72px;padding:0 42px;background:#fff5f6;font-size:21px}.lobby-row{min-height:86px;padding:0 35px;border-top:1px solid #f0e8e9}.room-name{font-size:22px;font-weight:800}.room-name:before{content:'♟';margin-right:18px;color:#70737c}.room-wager-label{display:flex;align-items:center;font-size:24px;font-weight:800;white-space:nowrap}.room-wager-label:before{content:'★';display:grid;place-items:center;width:31px;height:31px;margin-right:11px;border-radius:50%;color:#fff1a8;background:#f4ae13;font-size:18px}.join-room{height:46px;border:0;border-radius:14px;color:#fff;background:linear-gradient(135deg,#ff3d4b,#df071b);font-size:18px;font-weight:800;cursor:pointer}.join-room:disabled{background:#b5b6ba;cursor:not-allowed}.waiting-room{color:#e20a20;font-size:14px;font-weight:800}.room-modal{position:fixed;z-index:100;inset:0;background:#19080d70;display:grid;place-items:center;padding:20px}.room-dialog{position:relative;width:min(430px,100%);padding:32px;border-radius:26px;background:#fff;box-shadow:0 25px 70px #24080e50}.room-dialog h2{margin:0 0 8px;font-size:30px}.room-dialog p{margin:0 0 24px;color:#666}.modal-close{position:absolute;right:18px;top:14px;border:0;background:none;font-size:32px;cursor:pointer}.room-dialog label{display:grid;gap:8px;font-weight:800}.room-dialog input{height:54px;padding:0 15px;border:2px solid #eadfe1;border-radius:14px;font-size:20px;outline:none}.room-error{display:block;min-height:25px;padding-top:6px;color:#df071b}.room-submit{width:100%;height:55px;border:0;border-radius:15px;color:#fff;background:linear-gradient(135deg,#ff3d4b,#df071b);font-size:17px;font-weight:800;cursor:pointer}
.match-wrap{position:relative;text-align:center}.match-back{position:absolute;left:0;top:28px}.match-title h1{margin:34px 0 8px;font-size:42px}.match-title p{margin:0;color:#666a74;font-size:23px}.match-wager:before{content:'★';display:inline-grid;place-items:center;width:27px;height:27px;margin:0 7px;border-radius:50%;color:#fff1a8;background:#f4ae13;font-size:15px}.players{margin:60px auto 35px;display:grid;grid-template-columns:1fr 100px 1fr;align-items:center;max-width:1170px}.player{position:relative;height:210px;border:1px solid #ede4e6;border-radius:28px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 12px 30px #4a27300a}.avatar{width:82px;height:82px;border-radius:50%;background:#90929a;color:#fff;font-size:0}.avatar:before{content:'●';font-size:55px}.player strong{margin-top:10px;font-size:25px}.score{position:absolute;right:22px;top:18px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#ed1b31;font-size:22px;font-weight:800}.player em{position:absolute;left:22px;top:18px;font:normal 32px Arial}.versus{font-size:42px;font-weight:900;color:#b5b7be}.round-status{min-height:36px;margin:0 0 25px;font-size:27px;font-weight:800}.move-list{display:flex;justify-content:center;gap:25px}.move-list button{width:250px;height:170px;border:2px solid #ece4e6;border-radius:25px;background:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;transition:.15s}.move-list button:hover{border-color:#ff8d9a;transform:translateY(-3px)}.move-list button:disabled{opacity:.55;cursor:wait}.move-list span{font-size:64px}.move-list b{font-size:24px}
@media(max-width:760px){.rps-wrap,.match-wrap{width:92vw;padding-top:18px}.rps-heading{grid-template-columns:105px 1fr;gap:14px;padding:18px 0}.rps-heading>img{width:105px;height:95px}.rps-heading h1{font-size:25px}.rps-heading p{font-size:14px}.create-room{grid-column:1/3;width:100%;height:52px;font-size:18px}.lobby-head{display:none}.lobby-row{grid-template-columns:1fr auto;padding:13px 15px;gap:7px}.room-name{font-size:17px}.room-wager-label{font-size:17px}.join-room{grid-column:1/3;height:42px}.match-back{position:static;display:block}.match-title h1{margin-top:12px;font-size:28px}.match-title p{font-size:17px}.players{margin:30px 0 22px;grid-template-columns:1fr 45px 1fr}.player{height:155px}.avatar{width:58px;height:58px}.avatar:before{font-size:38px}.player strong{font-size:18px}.score{right:8px;top:8px;width:31px;height:31px;font-size:16px}.player em{left:9px;top:10px;font-size:23px}.versus{font-size:25px}.round-status{font-size:21px}.move-list{gap:8px}.move-list button{width:31%;height:125px}.move-list span{font-size:44px}.move-list b{font-size:16px}}
.active-game-notice{position:fixed;z-index:80;left:22px;bottom:22px;width:315px;min-height:78px;padding:12px 14px;border:1px solid #ffd0d5;border-radius:20px;background:#fff;box-shadow:0 15px 45px #6d18283b;color:#161820;display:grid;grid-template-columns:13px 1fr auto;align-items:center;gap:11px;text-align:left;cursor:pointer}.active-game-notice[hidden]{display:none}.active-game-notice>i{width:10px;height:10px;border-radius:50%;background:#23b74b;box-shadow:0 0 0 0 #23b74b70;animation:online-pulse 1.7s infinite}.active-game-notice span{display:grid;gap:4px}.active-game-notice b{font-size:15px}.active-game-notice small{color:#666;font-size:13px}.active-game-notice strong{color:#e20a20}.active-game-notice em{color:#e20a20;font:800 12px Arial}.create-room:disabled{background:#aaa;box-shadow:none;cursor:not-allowed}@media(max-width:560px){.active-game-notice{left:12px;bottom:12px;width:calc(100% - 24px)}}
.avatar{padding:13px;background:linear-gradient(135deg,var(--avatar-a,#ff5363),var(--avatar-b,#d90b3b));box-shadow:none}.avatar:before{display:none}.avatar svg{display:block;width:100%;height:100%;fill:#fff}@media(max-width:760px){.avatar{padding:9px}}
.lobby-row--active{background:#fff4f5;box-shadow:inset 4px 0 #ef1d33}.lobby-row--active .join-room{background:linear-gradient(135deg,#ff3d4b,#df071b);font-size:15px}
.turn-timer{width:max-content;margin:18px auto 0;padding:8px 15px;border:1px solid #ffd3d8;border-radius:14px;background:#fff6f7;display:flex;align-items:center;gap:11px;color:#676a73;font-size:14px}.turn-timer strong{min-width:52px;color:#e20a20;font-size:21px;font-variant-numeric:tabular-nums}.turn-timer--waiting{border-color:#dde1e7;background:#f7f8fa}.turn-timer--waiting strong{min-width:0;color:#656972;font-size:14px}@media(max-width:760px){.turn-timer{margin-top:12px}}
.dice-page[hidden]{display:none}.dice-page{width:100%;height:100%;overflow:auto;background:radial-gradient(circle at 50% 15%,#fff7f8,#fff 58%);color:#11141c}.dice-home{border:0;background:none;padding:0;cursor:pointer}.dice-wrap{position:relative;width:min(1200px,92vw);margin:0 auto;padding:24px 0 55px}.dice-back{position:absolute;left:0;top:22px;border:0;background:none;font:800 20px Arial;cursor:pointer}.dice-title{text-align:center}.dice-title img{width:100px;height:85px;object-fit:contain;mix-blend-mode:multiply}.dice-title h1{margin:-4px 0 6px;font-size:42px}.dice-title p{margin:0;color:#666a74;font-size:20px}.dice-panel{position:relative;margin-top:25px;padding:38px 48px 28px;border:1px solid #eee3e5;border-radius:24px;background:#fff;box-shadow:0 12px 35px #5025300b}.range-values{display:grid;grid-template-columns:165px minmax(0,1fr) 165px;align-items:center;gap:35px}.range-values output{height:58px;border:2px solid #eee6e8;border-radius:15px;display:grid;place-items:center;font-size:27px;font-weight:800}.dual-range{position:relative;height:42px}.range-track{position:absolute;left:0;right:0;top:18px;height:8px;border-radius:9px;background:#f1d5d9}.dual-range input{position:absolute;inset:0;width:100%;height:42px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}.dual-range input::-webkit-slider-thumb{width:30px;height:30px;border:0;border-radius:50%;background:#fff;box-shadow:0 3px 12px #6d657b55;pointer-events:auto;-webkit-appearance:none}.dual-range input::-moz-range-thumb{width:30px;height:30px;border:0;border-radius:50%;background:#fff;box-shadow:0 3px 12px #6d657b55;pointer-events:auto}.dice-bet-label{display:block;margin:24px 0 10px;font-size:19px;font-weight:800}.dice-bet{height:62px;padding:7px 10px 7px 14px;border:2px solid #eee4e6;border-radius:17px;display:flex;align-items:center;gap:10px}.dice-bet>img{width:38px;height:38px;object-fit:contain}.dice-wager{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:25px;font-weight:800}.dice-bet button{height:40px;min-width:72px;border:0;border-radius:11px;background:#f1eff2;font-size:18px;font-weight:800;cursor:pointer}.dice-hint{min-height:20px;margin:7px 0 0;color:#696c75;font-size:13px}.roll-dice{display:flex;align-items:center;justify-content:center;gap:13px;width:min(640px,90%);height:64px;margin:12px auto 0;border:0;border-radius:17px;color:#fff;background:linear-gradient(135deg,#ff3d4b,#df071b);box-shadow:0 10px 24px #dd19302b;font-size:24px;font-weight:800;cursor:pointer}.roll-dice:disabled{background:#aaa;box-shadow:none;cursor:not-allowed}.dice-result{position:absolute;left:50%;bottom:98px;transform:translateX(-50%);padding:10px 18px;border-radius:14px;background:#fff;box-shadow:0 8px 24px #3c17203b;text-align:center}.dice-result b{display:block;font-size:29px}.dice-result span{font-weight:800}.dice-history{margin-top:18px;padding:18px 28px;border:1px solid #eee3e5;border-radius:22px;background:#fff}.dice-history h2{margin:0 0 12px;font-size:20px}.dice-history h2 i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#22b84a}.history-row{min-height:44px;border-top:1px solid #f0e9ea;display:grid;grid-template-columns:90px 1fr 1fr 80px 110px;align-items:center;gap:12px}.history-row:first-child{border-top:0}.history-row span{font-weight:700}.history-row .win,.history-row .lose{padding:5px 10px;border-radius:10px;text-align:center}.history-row .win{color:#16822c;background:#dff5e3}.history-row .lose{color:#d51427;background:#ffe1e5}.history-empty{color:#777}.history-list:not(:empty)+.history-empty{display:none}@media(max-width:760px){.dice-wrap{padding-top:18px}.dice-back{position:static}.dice-title img{width:82px;height:65px}.dice-title h1{font-size:32px}.dice-title p{font-size:16px}.dice-panel{padding:24px 15px 22px}.range-values{grid-template-columns:65px minmax(0,1fr) 65px;gap:8px}.range-values output{height:48px;font-size:20px}.dual-range input::-webkit-slider-thumb{width:24px;height:24px}.dice-bet{height:auto;min-height:58px;flex-wrap:wrap}.dice-wager{width:120px}.dice-bet button{min-width:58px;flex:1}.roll-dice{width:100%;font-size:20px}.dice-history{padding:15px}.history-row{grid-template-columns:55px 1fr 65px;gap:7px;padding:8px 0}.history-row span:nth-child(3),.history-row span:nth-child(4){display:none}}
