@font-face{font-family:Adlinnaka;src:url('assets/adlinnaka.ttf') format('truetype');font-display:swap}
:root{color-scheme:dark;--screen-height:100vh;--viewport-height:calc(var(--screen-height) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));--u:calc(var(--viewport-height) / 1080);--login-scale:1}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{background:#130404 url('assets/bg-for-splash-16-9.png') center/100% 100% no-repeat;color:#fff;font-family:Arial,sans-serif}.login-screen::before{content:'';position:fixed;inset:0;background:#0004;pointer-events:none}.lobby-screen{background-image:url('assets/bg.png')}button,input{font:inherit}button{cursor:pointer;color:inherit}button,a,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #fff39b;outline-offset:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.version,.demo-mark{position:fixed;top:calc(12 * var(--u));left:calc(8 * var(--u));font-size:calc(15 * var(--u));color:#ccc;z-index:20;text-shadow:1px 1px 2px #000}.demo-mark{left:auto;right:calc(12 * var(--u));font-size:calc(12 * var(--u));color:#f0d192;letter-spacing:1px}
.login-stage{position:absolute;width:700px;height:1080px;top:50%;left:50%;transform:translate(-50%,-50%) scale(var(--login-scale));transform-origin:center}.pin-display{position:absolute;top:70px;left:0;width:700px;height:140px;background:transparent url('assets/pin-numerics-panel.png') center/100% 100% no-repeat;border:0;border-radius:18px;color:#fff7a2;text-align:center;font-family:Adlinnaka,Arial,sans-serif;font-size:66px;letter-spacing:8px;padding:15px 25px}.pin-display:focus{outline:0}.keypad{position:absolute;left:-5px;top:320px;display:grid;grid-template-columns:repeat(3,200px);grid-auto-rows:120px;column-gap:55px;row-gap:30px}.key{width:200px;height:120px;border:0;padding:0;background:transparent url('assets/numeric-btn.png') center/100% 100% no-repeat}.key span{display:block;font-family:Adlinnaka,'Arial Narrow',sans-serif;font-size:66px;font-weight:700;color:#591b00;-webkit-text-stroke:1.5px #ffce39;text-shadow:0 2px #ffe968;line-height:1;transform:translateY(3px)}.key:hover{filter:brightness(1.1)}.key:active{filter:brightness(.87);transform:scale(.97)}.key-clear{background-image:url('assets/clear-btn.png')}.key-ok{background-image:url('assets/ok-btn.png')}.remember{position:absolute;top:914px;left:0;width:700px;height:76px;display:flex;align-items:center;gap:20px;cursor:pointer}.remember>img{width:560px;height:96px;object-fit:contain}.remember input{position:absolute;opacity:0;width:66px;height:66px;left:0;top:5px}.checkbox-art{width:66px;height:67px;background:url('assets/check-box.png') center/100% 100% no-repeat;flex-shrink:0;position:relative}.remember input:checked+.checkbox-art::after{content:'';position:absolute;inset:9px -1px 6px;background:url('assets/check-mark.png') center/contain no-repeat}.remember input:focus-visible+.checkbox-art{outline:3px solid white;outline-offset:3px}.login-message{position:absolute;top:229px;left:-50px;width:800px;text-align:center;color:#ffefb2;text-shadow:0 2px 5px #000;font-size:24px;line-height:1.5}.setup-hint{position:absolute;top:230px;left:-80px;width:860px;font-size:23px;text-align:center;color:#ffebae;text-shadow:0 2px 5px #000}.login-stage:has(.setup-hint) .login-message{top:1000px}.noscript-confirm{position:absolute;top:235px;left:40px;font-size:22px}.noscript-confirm input{width:350px}.noscript-note{position:absolute;top:1030px;width:100%;text-align:center}
.lobby-stage{position:relative;width:100%;height:100%}.top-hud{position:absolute;top:0;left:0;width:100%;height:calc(85 * var(--u));background:url('assets/top-hud.png') center/100% 100% no-repeat;z-index:3}.top-middle{position:absolute;top:0;left:50%;transform:translateX(-50%);width:calc(620 * var(--u));height:calc(85 * var(--u))}.av-logo{position:absolute;left:50%;top:calc(-5 * var(--u));transform:translateX(-50%);width:calc(200 * var(--u));height:calc(105 * var(--u));object-fit:contain}.jackpots{position:absolute;top:calc(105 * var(--u));height:calc(73 * var(--u));left:50%;transform:translateX(-50%);display:flex;justify-content:center;gap:calc(31 * var(--u));width:max-content}.jackpot{position:relative;width:calc(265 * var(--u));height:calc(65 * var(--u));border:calc(2 * var(--u)) solid #ffdb63;border-radius:calc(44 * var(--u));background:linear-gradient(#260000,#370605);box-shadow:0 0 calc(6 * var(--u)) #bb7c31,inset 0 0 calc(8 * var(--u)) #a86d3280;display:flex;align-items:center;justify-content:flex-end;padding:0 calc(21 * var(--u)) 0 calc(68 * var(--u))}.jackpot-1{background:linear-gradient(#21002c,#3f124b)}.jackpot-2{background:linear-gradient(#071737,#122f4d)}.jackpot-3{background:linear-gradient(#05230c,#154c20)}.jackpot img{position:absolute;width:calc(100 * var(--u));height:calc(100 * var(--u));object-fit:contain;left:calc(-33 * var(--u));top:calc(-25 * var(--u))}.jackpot span{font-size:calc(35 * var(--u));font-family:Adlinnaka,Arial,sans-serif;letter-spacing:calc(2 * var(--u));white-space:nowrap;text-shadow:0 2px 2px #000}.multi-title{position:absolute;top:calc(201 * var(--u));left:50%;transform:translateX(-50%);height:calc(72 * var(--u));width:calc(602 * var(--u));border:calc(4 * var(--u)) solid #edc52b;border-radius:calc(42 * var(--u));background:linear-gradient(#170000,#3b0703);box-shadow:inset 0 0 calc(6 * var(--u)) #e6b94e,0 0 calc(6 * var(--u)) #9d5615;display:flex;align-items:center;justify-content:center;gap:calc(10 * var(--u));padding:calc(6 * var(--u)) calc(20 * var(--u))}.multi-game{width:calc(207 * var(--u));height:calc(50 * var(--u));object-fit:contain}.multi-denom{width:calc(344 * var(--u));height:calc(50 * var(--u));object-fit:contain}
.game-carousel{position:absolute;top:calc(303 * var(--u));left:0;width:100%;height:calc(539 * var(--u));display:flex;gap:calc(43 * var(--u));overflow-x:auto;overflow-y:hidden;padding:calc(6 * var(--u)) calc(14 * var(--u)) calc(10 * var(--u));scrollbar-width:none;scroll-snap-type:x proximity;cursor:grab;user-select:none;touch-action:pan-x}.game-carousel::-webkit-scrollbar{display:none}.game-carousel.dragging{cursor:grabbing;scroll-snap-type:none}.game-tile{display:block;position:relative;flex:0 0 calc(298 * var(--u));height:calc(520 * var(--u));border:0;border-radius:calc(15 * var(--u));padding:calc(7 * var(--u));background:transparent;scroll-snap-align:start;-webkit-user-drag:none}.game-thumbnail{display:block;width:100%;height:100%;object-fit:fill;border-radius:calc(7 * var(--u));pointer-events:none}.game-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.game-tile:hover{filter:brightness(1.1)}.carousel-controls{position:absolute;top:calc(858 * var(--u));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:calc(25 * var(--u));color:#fff5c0;text-shadow:0 2px 4px #000;opacity:.6}.carousel-controls span{font-size:calc(14 * var(--u));letter-spacing:calc(2 * var(--u))}.carousel-controls button{background:transparent;border:0;color:#ffe698;font-size:calc(33 * var(--u));height:calc(36 * var(--u));padding:0 calc(13 * var(--u));line-height:1}
.bottom-hud{position:absolute;bottom:0;left:0;width:100%;height:calc(158 * var(--u));z-index:3}.bottom-left,.bottom-right{position:absolute;top:0;bottom:0;width:48%;background:url('assets/bottom-left-right.png') right top/100% 100% no-repeat}.bottom-left{left:0;transform:scaleX(-1)}.bottom-right{right:0}.bottom-center{position:absolute;top:0;height:calc(80 * var(--u));left:50%;transform:translateX(-50%);width:calc(580 * var(--u));background:url('assets/bottom-middle.png') center/100% 100% no-repeat}.credit-display,.win-display{position:absolute;top:calc(20 * var(--u));left:calc(42 * var(--u));width:calc(380 * var(--u));height:calc(130 * var(--u));border:0;padding:0;background:none;text-align:center}.win-display{left:auto;right:calc(42 * var(--u))}.wallet-label{width:calc(195 * var(--u));height:calc(44 * var(--u));object-fit:contain;display:block;margin:0 auto}.amount-panel{position:absolute;left:0;top:calc(39 * var(--u));height:calc(91 * var(--u));width:100%;background:url('assets/jackpot-panel.png') center/100% 100% no-repeat;display:flex;align-items:center;justify-content:center;font-size:calc(52 * var(--u));font-family:Adlinnaka,Arial,sans-serif;text-shadow:0 2px 3px #000;padding-top:calc(3 * var(--u))}.logout-form{position:absolute;top:calc(37 * var(--u));left:50%;transform:translateX(-50%);z-index:4}.logout-button{background:none;border:0;padding:0;display:block;width:calc(255 * var(--u));height:calc(62 * var(--u))}.logout-button img{width:100%;height:100%}.logout-button:hover{filter:brightness(1.12)}.local-options{position:fixed;bottom:calc(4 * var(--u));left:50%;transform:translateX(-50%);z-index:5;border:0;background:none;color:#f9da88bb;font-size:calc(22 * var(--u));padding:calc(6 * var(--u)) calc(18 * var(--u))}
.original-dialog{width:min(90vw,600px);max-height:calc(var(--viewport-height) * .86);overflow:auto;border:2px solid #eac34b;border-radius:15px;background:linear-gradient(#661609,#250400);padding:36px;color:#fff;box-shadow:0 0 0 3px #6c3515,0 15px 60px #000b}.original-dialog::backdrop{background:#0009}.original-dialog h2{font-family:Adlinnaka,Arial,sans-serif;font-size:29px;color:#ffe468;text-shadow:0 2px 3px #8c1400;margin:0 24px 20px 0}.original-dialog p{font-size:14px;line-height:1.8;color:#ffe9d8}.original-dialog code{color:#ffe083;font-size:13px}.close-dialog{position:absolute;top:8px;right:8px;width:32px;height:32px;padding:0;border:0;background:none}.close-dialog img{width:100%;height:100%}.gold-action{display:block;width:100%;min-height:58px;background:linear-gradient(#ffe775,#dc880f 70%,#a65105);border:2px solid #e9b851;border-radius:25px;color:#532002;font-family:Adlinnaka,Arial,sans-serif;font-size:20px;padding:12px 20px;text-shadow:0 1px #ffec73;margin-top:22px}.wallet-amount{font-size:44px;font-family:Adlinnaka,Arial,sans-serif;text-align:center}.original-dialog details{margin-top:25px;color:#e9c78f;font-size:13px}.original-dialog summary{cursor:pointer}.activity-list p{border-bottom:1px solid #a8663433;padding:8px 0;font-size:12px}.activity-list strong{float:right}.toast{position:fixed;left:50%;top:21%;transform:translateX(-50%);z-index:25;border:2px solid #eec256;background:#360800ee;color:#ffdf8a;padding:15px 25px;border-radius:12px;font-size:15px;text-align:center;box-shadow:0 7px 30px #0008;max-width:90vw}form[aria-busy=true]{opacity:.6;pointer-events:none}
@media(max-aspect-ratio:4/5){:root{--u:calc(100vw / 1000)}.lobby-stage{height:calc(1080 * var(--u));position:absolute;top:50%;transform:translateY(-50%)}.lobby-screen{background-color:#000;background-size:100% calc(1080 * var(--u))}.lobby-screen .version,.lobby-screen .demo-mark{top:calc(50% - 530 * var(--u))}.local-options{position:absolute}.credit-display,.win-display{width:calc(325 * var(--u));left:calc(20 * var(--u))}.win-display{left:auto;right:calc(20 * var(--u))}.logout-button{width:calc(240 * var(--u))}.jackpots{gap:calc(18 * var(--u))}.jackpot{width:calc(232 * var(--u))}.jackpot span{font-size:calc(30 * var(--u))}.jackpot img{width:calc(80 * var(--u));height:calc(80 * var(--u));left:calc(-17 * var(--u));top:calc(-15 * var(--u))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Refinements from the original live screen at the same viewport size. */
body{background-size:cover}
.top-hud{height:calc(87 * var(--u))}
.top-middle{width:calc(570 * var(--u));height:calc(87 * var(--u))}
.av-logo{width:calc(218 * var(--u));height:calc(112 * var(--u));top:calc(-6 * var(--u))}
.jackpots{top:calc(109 * var(--u));gap:calc(20 * var(--u));width:calc(100% - 28 * var(--u))}
.jackpot{flex:1;width:auto;padding-right:calc(18 * var(--u));height:calc(65 * var(--u))}
.jackpot span{letter-spacing:calc(3 * var(--u))}
.multi-title{top:calc(204 * var(--u))}
.game-carousel{perspective:calc(1500 * var(--u));perspective-origin:50% 50%;height:calc(565 * var(--u));overflow:visible;clip-path:inset(-4% 0 -4% 0)}
.game-tile{height:calc(533 * var(--u));transform-origin:center;will-change:transform}
.carousel-controls{display:none}
.bottom-hud{height:calc(184 * var(--u))}
.bottom-left,.bottom-right{width:52%;z-index:2}
.bottom-center{z-index:1;top:calc(27 * var(--u));height:calc(125 * var(--u));width:calc(390 * var(--u))}
.credit-display,.win-display{z-index:4;top:calc(60 * var(--u));width:calc(330 * var(--u));left:calc(40 * var(--u))}
.win-display{left:auto;right:calc(40 * var(--u))}
.wallet-label{position:absolute;top:0;left:50%;transform:translateX(-50%);width:calc(180 * var(--u));height:calc(38 * var(--u))}
.amount-panel{top:calc(33 * var(--u));height:calc(82 * var(--u));font-family:Arial,sans-serif;font-weight:400;font-size:calc(52 * var(--u));color:#efdddf}
.logout-form{z-index:3;top:calc(60 * var(--u))}
.logout-button{width:calc(330 * var(--u));height:calc(80 * var(--u))}
.local-options{font-size:calc(15 * var(--u));opacity:.45}
@media(max-aspect-ratio:4/5){.lobby-screen{background-size:auto calc(1080 * var(--u))}.credit-display,.win-display{width:calc(290 * var(--u));left:calc(25 * var(--u))}.win-display{left:auto;right:calc(25 * var(--u))}.logout-button{width:calc(285 * var(--u))}}
.game-carousel{overflow-x:auto;overflow-y:hidden;top:calc(290 * var(--u));height:calc(575 * var(--u));padding-top:calc(20 * var(--u));perspective:calc(1500 * var(--u));z-index:2}
.game-tile{transform:rotateY(var(--angle,0deg))}
#lobby-particles{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.jackpots,.multi-title{z-index:2}
/* Original textures replace the last approximated title and jackpot frames. */
.multi-title{background:transparent url('assets/denominationbg.png') center/100% 100% no-repeat;border:0;box-shadow:none;top:calc(202 * var(--u));height:calc(75 * var(--u));padding:calc(8 * var(--u)) calc(21 * var(--u));gap:calc(6 * var(--u))}
.jackpot{background:transparent url('assets/grandcommunity-prize-panel.png') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:0}
.jackpot-1{background-image:url('assets/community-prize-panel.png')}
.jackpot-2{background-image:url('assets/luckywinner-prize-panel.png')}
.jackpot-3{background-image:url('assets/winner-prize-panel.png')}
.av-logo{width:calc(208 * var(--u))}

/* Dynamic browser bars on modern phones; 100vh remains a WebView fallback. */
@supports(height:100dvh){:root{--screen-height:100dvh}}

/* Keep controls outside notches and the home indicator when viewport-fit=cover. */
body{position:relative;top:env(safe-area-inset-top,0px);left:env(safe-area-inset-left,0px);width:calc(100% - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));height:var(--viewport-height)}
.lobby-stage{overflow:hidden}
