/* Scorpion Arena — unified cinematic luxury system v4 */
:root{
  --lux-bg:#05050a;--lux-panel:rgba(11,11,19,.76);--lux-panel-strong:rgba(14,13,23,.94);
  --lux-line:rgba(255,255,255,.105);--lux-line-hot:rgba(243,200,105,.38);
  --lux-text:#f7f5fb;--lux-muted:#9791a4;--lux-gold:#f3c869;--lux-gold-2:#b77a21;
  --lux-violet:#8e62ff;--lux-cyan:#35c9f2;--lux-green:#42e1a0;--lux-red:#ff657d;
  --lux-shadow:0 24px 70px rgba(0,0,0,.48);--lux-radius:24px;
}
*{box-sizing:border-box}
html{background:var(--lux-bg);color-scheme:dark}
body{color:var(--lux-text);background:#05050a!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
body:before{content:""!important;position:fixed!important;inset:0!important;z-index:-3!important;opacity:.5!important;background:linear-gradient(180deg,rgba(5,5,10,.2),#05050a 86%),url("/assets/arena-world-v4.webp") center top/cover no-repeat!important;mask-image:none!important;animation:luxWorld 20s ease-in-out infinite alternate;pointer-events:none}
body:after{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:radial-gradient(circle at var(--lux-x,50%) var(--lux-y,20%),rgba(80,193,255,.11),transparent 24%),linear-gradient(180deg,rgba(2,2,7,.05),rgba(3,3,8,.6));mix-blend-mode:screen}
.lux-atmosphere{position:fixed;inset:0;width:100%;max-width:100%;contain:strict;z-index:8999;overflow:clip!important;clip-path:inset(0);pointer-events:none;opacity:.7}
.lux-atmosphere:before,.lux-atmosphere:after{content:"";position:absolute;border:1px solid rgba(243,200,105,.13);border-radius:50%;filter:drop-shadow(0 0 16px rgba(142,98,255,.16))}
.lux-atmosphere:before{width:78vw;height:78vw;right:-44vw;top:8vh;animation:luxOrbit 28s linear infinite}
.lux-atmosphere:after{width:64vw;height:64vw;left:-42vw;bottom:8vh;border-color:rgba(53,201,242,.11);animation:luxOrbit 34s linear infinite reverse}
.lux-particle{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--lux-gold);box-shadow:0 0 11px currentColor;opacity:.45;animation:luxFloat var(--lux-speed,8s) ease-in-out infinite alternate}
@keyframes luxWorld{to{background-position:center 2%;filter:saturate(1.08)}}
@keyframes luxOrbit{to{transform:rotate(360deg)}}
@keyframes luxFloat{to{transform:translate3d(0,-34px,0);opacity:.12}}

/* Global chrome */
.app{width:min(100%,1120px)!important;padding:calc(12px + env(safe-area-inset-top)) 12px calc(110px + env(safe-area-inset-bottom))!important}
.topbar{position:sticky!important;top:8px;z-index:7000;width:100%!important;min-height:62px;margin:0 0 14px!important;padding:8px 9px 8px 12px;border:1px solid var(--lux-line);border-radius:21px;background:linear-gradient(135deg,rgba(20,19,29,.85),rgba(8,8,14,.72));backdrop-filter:blur(22px) saturate(1.25);box-shadow:0 15px 45px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.06)}
.brand{flex:1 1 auto;min-width:0;gap:9px!important}.brand-logo{width:43px!important;height:43px!important;border-radius:14px!important;border-color:rgba(243,200,105,.32)!important;background:radial-gradient(circle at 30% 20%,rgba(255,223,145,.25),transparent 36%),linear-gradient(145deg,#211a2b,#0b0a10)!important;box-shadow:inset 0 1px rgba(255,255,255,.09),0 8px 24px #0008!important;font-size:21px!important}
.brand-title{font-size:14px!important;letter-spacing:.08em!important}.brand-subtitle{color:#817b89!important;font-size:9px!important;text-transform:uppercase;letter-spacing:.12em}
.topbar-actions{gap:7px!important}.profile-chip,.launch-notification-button,.motion-toggle,.mobile-header-balance{height:43px!important;min-height:43px!important;border:1px solid var(--lux-line)!important;border-radius:14px!important;background:rgba(255,255,255,.045)!important;box-shadow:inset 0 1px rgba(255,255,255,.05)!important;color:#fff!important}
.profile-chip,.launch-notification-button,.motion-toggle{min-width:44px!important;min-height:44px!important}.section-link-button{min-height:44px!important;padding:8px 10px!important}.arena-safety-card p{margin:9px 0 12px;color:var(--lux-muted);font-size:11px;line-height:1.6}
.mobile-header-balance{border-color:rgba(243,200,105,.22)!important;background:linear-gradient(135deg,rgba(243,200,105,.12),rgba(142,98,255,.08))!important}.mobile-header-balance>span,.mobile-header-balance b{color:#ffe19a!important}

/* Home hero + cards */
.hero{min-height:330px!important;padding:26px 20px!important;border-radius:28px!important;border:1px solid rgba(243,200,105,.24)!important;background:linear-gradient(110deg,rgba(5,5,10,.91) 10%,rgba(8,7,14,.7) 62%,rgba(8,7,14,.38)),url("/assets/arena-world-v4.webp") center 42%/cover!important;box-shadow:0 28px 80px rgba(0,0,0,.54),inset 0 1px rgba(255,255,255,.08)!important;isolation:isolate}
.hero:before{inset:0!important;width:auto!important;height:auto!important;right:auto!important;top:auto!important;border-radius:inherit!important;background:linear-gradient(180deg,transparent 45%,rgba(5,5,10,.9)),radial-gradient(circle at 82% 25%,rgba(142,98,255,.2),transparent 30%)!important;filter:none!important;z-index:-1}
.hero:after{content:""!important;right:-12%!important;bottom:-40%!important;width:62vw;height:62vw;border:1px solid rgba(243,200,105,.13);border-radius:50%;opacity:1!important;filter:drop-shadow(0 0 22px rgba(142,98,255,.16))!important;animation:luxOrbit 32s linear infinite!important}
.eyebrow{border-color:rgba(66,225,160,.24)!important;background:rgba(5,14,13,.46)!important;color:#8af5c4!important;font-size:9px!important;letter-spacing:.1em;backdrop-filter:blur(10px)}
.hero h1{max-width:520px!important;margin:18px 0 12px!important;font-size:clamp(36px,10vw,68px)!important;line-height:.92!important;letter-spacing:-.045em!important;text-wrap:balance}.gradient-text{background:linear-gradient(100deg,#fff0b9,#e9b94f 44%,#b99cff)!important;background-clip:text!important;-webkit-background-clip:text!important}
.hero-description{max-width:500px!important;color:#b9b3c0!important;font-size:13px!important;line-height:1.65!important}.hero-actions{margin-top:20px!important}.btn{min-height:51px!important;border-radius:15px!important;font-size:13px!important;letter-spacing:.01em}.btn-primary{background:linear-gradient(135deg,#ffe394,#d79a27)!important;color:#171006!important;box-shadow:0 12px 32px rgba(214,151,34,.28),inset 0 1px rgba(255,255,255,.58)!important}.btn-secondary{background:rgba(255,255,255,.055)!important;backdrop-filter:blur(12px);border-color:var(--lux-line)!important}
.section{margin-top:18px!important}.section-head{margin-bottom:11px!important}.section-title{font-size:17px!important;letter-spacing:-.02em}.section-link{color:var(--lux-gold)!important;font-size:10px!important}
.stats-grid{gap:8px!important}.stat-card,.glass-card{border:1px solid var(--lux-line)!important;background:linear-gradient(145deg,rgba(19,18,29,.76),rgba(7,7,12,.7))!important;backdrop-filter:blur(18px) saturate(1.15);box-shadow:0 16px 40px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.05)!important}.stat-card{min-height:103px!important;padding:14px!important;border-radius:18px!important}.stat-icon{margin-bottom:9px!important;font-size:18px!important}.stat-value{font-size:19px!important}.stat-label{font-size:9px!important;color:var(--lux-muted)!important}
.games-grid{gap:9px!important}.game-card{isolation:isolate;min-height:210px!important;padding:15px!important;border-radius:22px!important;border:1px solid var(--lux-line)!important;background-color:#0a0910!important;box-shadow:0 18px 48px #0007!important}.game-card:hover{transform:translateY(-2px)!important}.game-card:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,4,8,.03),rgba(5,5,9,.93) 82%);pointer-events:none}.game-card>*{position:relative;z-index:2}.game-card .game-card-art{position:absolute;z-index:0!important}.game-card .game-card-shade{position:absolute;z-index:1!important}.game-card-dice-duel .game-card-art,.game-card[data-game="dice-duel"],.game-card[data-gp-game="dice-duel"]{background-image:url("/assets/dice-arena-v4.webp")!important;background-size:cover!important;background-position:center 46%!important}.game-card-pvp-duel .game-card-art,.game-card[data-game="pvp-duel"],.game-card[data-gp-game="pvp-duel"]{background-image:url("/assets/wheel-arena-v4.webp")!important;background-size:cover!important;background-position:center 44%!important}.game-card .game-card-shade{background:linear-gradient(180deg,rgba(3,3,7,.08),rgba(5,5,9,.86) 88%)!important}

/* Keep the universal deposit entry useful without covering mobile game cards. */
.stars-ton-launcher{right:12px!important;bottom:calc(89px + env(safe-area-inset-bottom))!important;min-width:52px!important;width:52px!important;height:52px!important;padding:0!important;border-radius:17px!important;border:1px solid rgba(243,200,105,.4)!important;background:linear-gradient(145deg,#ffe599,#ca8a20)!important;color:#171006!important;font-size:0!important;box-shadow:0 14px 36px #0009,0 0 25px rgba(243,200,105,.17)!important}.stars-ton-launcher:before{content:"+";font-size:25px;font-weight:700;line-height:1}
html[data-lux-scene="home"] .stars-ton-launcher{position:absolute!important;top:86px!important;right:24px!important;bottom:auto!important}

/* Bottom navigation */
.bottom-nav{left:50%!important;right:auto!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;width:min(calc(100% - 22px),540px)!important;min-height:68px!important;padding:7px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:23px!important;background:linear-gradient(135deg,rgba(20,19,28,.91),rgba(7,7,12,.89))!important;backdrop-filter:blur(24px) saturate(1.3)!important;box-shadow:0 20px 55px #000b,inset 0 1px rgba(255,255,255,.07)!important}.bottom-nav .nav-item{min-height:53px!important;border-radius:17px!important;color:#807a88!important;font-size:9px!important;font-weight:800!important;transition:.22s ease!important}.bottom-nav .nav-item.active{color:#fff!important;background:linear-gradient(135deg,rgba(243,200,105,.17),rgba(142,98,255,.18))!important;box-shadow:inset 0 1px rgba(255,255,255,.08),0 8px 22px #0004!important}.bottom-nav .nav-icon{font-size:18px!important}.bottom-nav .nav-item.active .nav-icon{filter:drop-shadow(0 0 9px rgba(243,200,105,.45))}

/* Unified full-screen sections */
#akMainSections,.gift-center,#arenaGamesV2Root{background:#05050a!important}
#akMainSections:before,.gift-center:before,#arenaGamesV2Root:before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(5,5,10,.34),#05050a 82%),url("/assets/arena-world-v4.webp") center top/cover no-repeat;opacity:.52;animation:luxWorld 22s ease-in-out infinite alternate;pointer-events:none}
#akMainSections{height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;padding:calc(14px + env(safe-area-inset-top)) 12px calc(112px + env(safe-area-inset-bottom))!important;scroll-padding-bottom:calc(112px + env(safe-area-inset-bottom))}.ak2-head{position:sticky;top:0;z-index:5;margin:0 -2px 12px!important;padding:9px 6px;border:1px solid var(--lux-line);border-radius:18px;background:rgba(9,9,15,.78);backdrop-filter:blur(20px)}.ak2-title{font-size:19px!important;letter-spacing:-.02em}.ak2-close{width:42px!important;height:42px!important;border:1px solid var(--lux-line)!important;background:rgba(255,255,255,.05)!important;border-radius:14px!important}.ak2-tabs{position:sticky;top:73px;z-index:4;gap:6px!important;padding:5px;margin-bottom:12px!important;border:1px solid var(--lux-line);border-radius:18px;background:rgba(9,9,15,.82);backdrop-filter:blur(20px)}.ak2-tab{min-height:47px!important;border:0!important;border-radius:13px!important;background:transparent!important;color:#7e7888!important;font-size:11px!important}.ak2-tab.active{background:linear-gradient(135deg,rgba(243,200,105,.2),rgba(142,98,255,.2))!important;box-shadow:inset 0 1px rgba(255,255,255,.08)!important;color:#fff!important}.ak2-panel.active{animation:luxPanelIn .34s cubic-bezier(.2,.75,.2,1)}
@keyframes luxPanelIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ak2-card,.wp-card,.pp-card{border:1px solid var(--lux-line)!important;background:linear-gradient(145deg,rgba(18,17,27,.82),rgba(8,8,13,.76))!important;backdrop-filter:blur(18px) saturate(1.15);box-shadow:0 16px 44px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.05)!important}

/* Games lobby */
.gp-hero{min-height:190px!important;padding:20px!important;border-radius:26px!important;border:1px solid rgba(243,200,105,.25)!important;background:linear-gradient(120deg,rgba(5,5,9,.88),rgba(8,7,13,.48)),url("/assets/arena-world-v4.webp") center 56%/cover!important;box-shadow:var(--lux-shadow)!important}.gp-hero:after{content:""!important;width:130px;height:130px;right:-42px;bottom:-55px;border:1px solid rgba(243,200,105,.17);border-radius:50%;opacity:1!important;animation:luxOrbit 24s linear infinite}.gp-kicker{color:#e8c870!important;letter-spacing:.14em!important}.gp-title{font-size:26px!important;letter-spacing:-.035em}.gp-sub{color:#aaa3b1!important}.gp-stat{background:rgba(8,8,13,.5)!important;border-color:var(--lux-line)!important;backdrop-filter:blur(12px)}
#gamesGrid.games-pro-grid{gap:9px!important}#gamesGrid.games-pro-grid:before{inset:0!important}#gamesGrid .game-card.gp-card{min-height:226px!important;border-radius:22px!important;border-color:var(--lux-line)!important;background-color:#09080e!important;box-shadow:0 18px 50px #0008,inset 0 1px rgba(255,255,255,.05)!important}#gamesGrid .game-card.gp-card:before{background:linear-gradient(180deg,rgba(3,3,7,.02),rgba(4,4,8,.9) 76%)!important}#gamesGrid .gp-card .game-icon{border-color:rgba(243,200,105,.18)!important;background:rgba(8,8,13,.5)!important;backdrop-filter:blur(12px);box-shadow:inset 0 1px rgba(255,255,255,.08)!important}.gp-arrow{background:linear-gradient(135deg,#f3cf79,#b77a21)!important;color:#161006!important}

/* Wallet + profile */
.wp-hero,.pp-hero{border-radius:26px!important;border:1px solid rgba(243,200,105,.26)!important;background:linear-gradient(120deg,rgba(9,8,14,.77),rgba(22,13,38,.66)),url("/assets/arena-world-v4.webp") center 58%/cover!important;box-shadow:0 24px 65px #0008,inset 0 1px rgba(255,255,255,.08)!important}.wp-kicker,.pp-level-line{color:#e9c875!important}.wp-balance{font-size:clamp(33px,11vw,52px)!important;letter-spacing:-.045em!important}.wp-action{border-radius:17px!important;border-color:var(--lux-line)!important;background:rgba(255,255,255,.045)!important}.wp-action-primary{border-color:rgba(243,200,105,.26)!important;background:linear-gradient(145deg,rgba(243,200,105,.15),rgba(142,98,255,.1))!important}.wp-summary-card,.wp-row,.pp-stat,.pp-activity-row,.pp-detail-grid>div,.pp-game-breakdown>div{border-color:var(--lux-line)!important;background:rgba(255,255,255,.035)!important}.wp-filter.active{background:linear-gradient(135deg,#f3cf79,#b77a21)!important;color:#161006!important}.pp-avatar-shell{background:linear-gradient(135deg,#f3cf79,#7d50ef,#31c8f0)!important}.pp-progress>span{background:linear-gradient(90deg,#35c9f2,#8e62ff,#f3c869)!important}.pp-rank{border-color:rgba(243,200,105,.25)!important;background:rgba(243,200,105,.1)!important}.pp-pay-debt{background:linear-gradient(135deg,#ffe498,#c98a22)!important}

/* Gifts and money sheets */
.gift-center{z-index:9000!important}.gift-shell{width:min(100%,560px)!important;padding:calc(15px + env(safe-area-inset-top)) 12px calc(108px + env(safe-area-inset-bottom))!important}.gift-head{position:sticky!important;top:0;z-index:4;padding:10px!important;border:1px solid var(--lux-line);border-radius:19px;background:rgba(9,9,15,.8)!important;backdrop-filter:blur(21px)}.gift-title{font-size:22px!important;letter-spacing:-.03em}.gift-close,.gift-refresh{border-color:var(--lux-line)!important;background:rgba(255,255,255,.05)!important;border-radius:14px!important}.gift-vault,.gift-deposit-card,.gift-summary,.gift-card{border:1px solid var(--lux-line)!important;background:linear-gradient(145deg,rgba(18,17,27,.8),rgba(8,8,13,.75))!important;box-shadow:0 16px 42px #0005,inset 0 1px rgba(255,255,255,.05)!important}.gift-vault{border-color:rgba(243,200,105,.22)!important;background:linear-gradient(120deg,rgba(31,20,45,.82),rgba(10,9,15,.76)),url("/assets/arena-world-v4.webp") center 70%/cover!important}.gift-tabs{padding:5px;border:1px solid var(--lux-line)!important;border-radius:17px!important;background:rgba(7,7,12,.72)!important}.gift-tab{border-radius:13px!important}.gift-tab.active{background:linear-gradient(135deg,rgba(243,200,105,.2),rgba(142,98,255,.2))!important;color:#fff!important}.gift-main-action{background:linear-gradient(135deg,#ffe492,#c9881f)!important;color:#171006!important}.gift-art{box-shadow:inset 0 1px rgba(255,255,255,.14),0 12px 34px #0007!important}
.deposit-panel,.withdraw-clean-panel,.stars-ton-sheet,.arena-deposit-chooser>section,.gift-detail-sheet,.wp-sheet,.launch-settings-sheet,.launch-rules section{border:1px solid var(--lux-line-hot)!important;border-radius:27px 27px 22px 22px!important;background:radial-gradient(circle at 50% 0,rgba(142,98,255,.13),transparent 36%),linear-gradient(155deg,rgba(23,21,32,.98),rgba(7,7,12,.99))!important;box-shadow:0 30px 100px #000d,inset 0 1px rgba(255,255,255,.08)!important}.deposit-panel:before,.withdraw-clean-panel:before,.stars-ton-sheet:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.025),transparent 65%)}
.deposit-submit,.withdraw-clean-submit,.stars-ton-buy{border:0!important;background:linear-gradient(135deg,#ffe392,#d29524)!important;color:#171006!important;box-shadow:0 13px 34px rgba(207,145,28,.24),inset 0 1px rgba(255,255,255,.55)!important}

/* Game stage: different cinematic worlds */
#arenaGamesV2Root{padding:0!important;isolation:isolate}#arenaGamesV2Root:before{opacity:.68;background:linear-gradient(180deg,rgba(4,4,9,.28),#05050a 90%),url("/assets/arena-world-v4.webp") center/cover no-repeat}
#arenaGamesV2Root[data-active-game="dice-duel"]:before{background:linear-gradient(180deg,rgba(4,4,9,.18),#05050a 93%),url("/assets/dice-arena-v4.webp") center/cover no-repeat}
#arenaGamesV2Root[data-active-game="pvp-duel"]:before{background:linear-gradient(180deg,rgba(4,4,9,.15),#05050a 94%),url("/assets/wheel-arena-v4.webp") center/cover no-repeat}
.ag2-panel{width:min(100%,620px)!important;min-height:100dvh!important;padding:calc(13px + env(safe-area-inset-top)) 12px calc(42px + env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important;background:linear-gradient(180deg,rgba(5,5,10,.25),rgba(5,5,10,.64))!important;backdrop-filter:none!important;box-shadow:none!important}.ag2-header{position:sticky!important;top:0;z-index:15;padding:9px 10px!important;margin-bottom:12px!important;border:1px solid var(--lux-line);border-radius:18px;background:rgba(8,8,14,.78)!important;backdrop-filter:blur(22px) saturate(1.2)}.ag2-title{font-size:17px!important}.ag2-description{font-size:9px!important;color:#85808d!important}.ag2-close,.ag3-sound-button{width:43px!important;height:43px!important;border:1px solid var(--lux-line)!important;border-radius:14px!important;background:rgba(255,255,255,.05)!important}.ag2-balance{padding:13px 15px!important;border:1px solid rgba(243,200,105,.23)!important;border-radius:18px!important;background:linear-gradient(135deg,rgba(243,200,105,.12),rgba(142,98,255,.09))!important;backdrop-filter:blur(16px)}
.launch-dice{padding:10px 0 30px!important}.launch-game-kicker span{color:#75edbe!important}.launch-game-kicker em{color:#f2ca70!important}.launch-dice h2{font-size:31px!important;letter-spacing:-.04em}.launch-game-sub{color:#8e8995!important}.launch-dice-stage{min-height:186px!important;padding:22px!important;border-color:rgba(243,200,105,.22)!important;border-radius:26px!important;background:linear-gradient(135deg,rgba(4,4,8,.66),rgba(13,8,21,.58)),url("/assets/dice-arena-v4.webp") center 53%/cover!important;box-shadow:0 22px 65px #0008,inset 0 1px rgba(255,255,255,.08)!important}.launch-dice-stage strong{width:78px!important;height:78px!important;border-radius:23px!important;border-color:rgba(243,200,105,.25)!important;background:radial-gradient(circle at 35% 22%,rgba(255,255,255,.12),transparent 35%),linear-gradient(145deg,rgba(33,25,46,.94),rgba(9,8,14,.95))!important;box-shadow:inset 0 1px rgba(255,255,255,.11),0 15px 38px #000a,0 0 26px rgba(142,98,255,.12)!important}.launch-tier-grid button,.launch-open-bets>button,.launch-dice-history>button{border-color:var(--lux-line)!important;background:rgba(8,8,13,.7)!important;backdrop-filter:blur(14px)}.launch-tier-grid button.active{border-color:rgba(243,200,105,.45)!important;background:linear-gradient(145deg,rgba(243,200,105,.16),rgba(142,98,255,.12))!important}.launch-primary{background:linear-gradient(135deg,#ffe598,#ce9025)!important;color:#171006!important}.launch-dice-turn{border-color:rgba(243,200,105,.28)!important;background:rgba(10,9,15,.78)!important;backdrop-filter:blur(16px)}
.launch-wheel-rooms{position:relative!important;top:auto!important;z-index:20;margin:0 10px 8px;padding:6px!important;border:1px solid var(--lux-line);border-radius:17px;background:rgba(8,8,14,.9);backdrop-filter:blur(19px)}.launch-wheel-rooms button{border:0!important;background:transparent!important}.launch-wheel-rooms button.active{background:linear-gradient(135deg,rgba(243,200,105,.18),rgba(142,98,255,.14))!important}.wwg-root{border-radius:26px!important;border:1px solid rgba(243,200,105,.22)!important;background:linear-gradient(180deg,rgba(6,5,10,.48),rgba(6,5,10,.82)),url("/assets/wheel-arena-v4.webp") center top/cover!important;box-shadow:0 25px 80px #000a,inset 0 1px rgba(255,255,255,.07)!important}.wwg-card,.wwg-stat,.wwg-entry-panel,.wwg-player-row,.wwg-recent-row{background:rgba(8,7,13,.72)!important;border-color:var(--lux-line)!important;backdrop-filter:blur(15px)}

/* Wheel owns one scroll container. This prevents iOS safe-area padding and
   nested sticky layers from creating the blank strip visible above the game. */
#arenaGamesV2Root[data-active-game="pvp-duel"] .ag2-panel{width:min(100%,620px)!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;padding:0!important;overflow:hidden!important}
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2PvpView{position:relative!important;height:100dvh!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2PvpView::-webkit-scrollbar{display:none}
#arenaGamesV2Root[data-active-game="pvp-duel"] .ag-wheel-original-shell{min-height:100dvh!important;padding:0 0 calc(24px + env(safe-area-inset-bottom))!important}
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-root{min-height:100dvh!important;overflow:visible!important;border-radius:0!important;border-left:0!important;border-right:0!important}
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-topbar{top:0!important}

/* The older elite layer enlarged every stat value, including the waiting
   sentence. Keep the three columns fluid and the status copy inside its card. */
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-stats{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-stat{
  min-width:0!important;
  overflow:hidden!important;
}
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-timer[data-mode="waiting"] .wwg-value,
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-timer[data-mode="settling"] .wwg-value{
  max-width:100%!important;
  font-size:clamp(13px,4vw,17px)!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-stat .wwg-sub{
  max-width:100%;
  line-height:1.25!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* Paint behind Telegram's transparent fullscreen header while keeping all
   controls inside the content-safe area published by the WebApp SDK. */
html.tg-is-fullscreen,
html.tg-is-fullscreen body{background:#050409!important}
html.tg-is-fullscreen .app{
  padding-top:calc(12px + var(--tg-content-safe-area-inset-top,0px))!important;
}
html.tg-is-fullscreen #akMainSections{
  padding-top:calc(14px + var(--tg-content-safe-area-inset-top,0px))!important;
}
html.tg-is-fullscreen .gift-shell{
  padding-top:calc(15px + var(--tg-content-safe-area-inset-top,0px))!important;
}
html.tg-is-fullscreen #arenaGamesV2Root:not([data-active-game="pvp-duel"]) .ag2-panel{
  padding-top:calc(13px + var(--tg-content-safe-area-inset-top,0px))!important;
}
html.tg-is-fullscreen #arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-topbar{
  padding-top:max(10px,var(--tg-content-safe-area-inset-top,0px),env(safe-area-inset-top))!important;
}

/* Micro-interactions */
button,.game-card,.gift-card,.wp-row,.pp-activity-row{transition:transform .18s ease,border-color .18s ease,background-color .18s ease,box-shadow .18s ease!important}button:active,.gift-card:active,.wp-row:active,.pp-activity-row:active{transform:scale(.975)!important}.lux-reveal{animation:luxReveal .48s cubic-bezier(.2,.8,.2,1) both}@keyframes luxReveal{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}

@media(max-width:520px){
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.games-grid,#gamesGrid.games-pro-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hero{min-height:310px!important}.hero h1{font-size:clamp(35px,12vw,50px)!important}.gp-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.launch-dice-turn{grid-template-columns:50px 1fr!important}.launch-dice-turn button{grid-column:1/-1!important}.gift-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:360px){.app{padding-inline:8px!important}.topbar{padding-inline:7px!important}.brand-subtitle{display:none}.hero{padding:22px 16px!important}.games-grid,#gamesGrid.games-pro-grid{grid-template-columns:1fr!important}.game-card,#gamesGrid .game-card.gp-card{min-height:190px!important}.launch-dice-stage{gap:7px!important;padding:16px 10px!important}.launch-dice-stage strong{width:67px!important;height:67px!important}.ak2-tabs{top:71px}.gift-shell{padding-inline:8px!important}#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-stat{padding:10px 8px!important}#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-stat .wwg-label{font-size:9px!important}#arenaGamesV2Root[data-active-game="pvp-duel"] #ag2WheelView .wwg-stat .wwg-sub{font-size:9px!important}}
@media(min-width:700px){.gift-shell{margin:auto}.ag2-panel{margin:auto}.pp-wrap,.wp-wrap{max-width:760px;margin:auto}}
@media(prefers-reduced-motion:reduce){body:before,.lux-atmosphere:before,.lux-atmosphere:after,.lux-particle,.hero:after,.gp-hero:after{animation:none!important}.lux-reveal{animation:none!important}}
html[data-motion="off"] .lux-atmosphere{display:none}html[data-motion="off"] body:before{animation:none!important}

/* First-run trust, connectivity and active-game recovery */
.lux-network-state{position:fixed;z-index:100500;left:50%;top:calc(10px + env(safe-area-inset-top));width:min(calc(100% - 24px),420px);min-height:0;max-height:0;opacity:0;overflow:hidden;transform:translate(-50%,-14px);pointer-events:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px;border-radius:14px;transition:.25s ease}.lux-network-state.is-offline,.lux-network-state.is-online{min-height:52px;max-height:70px;opacity:1;transform:translate(-50%,0)}.lux-network-state.is-offline{color:#fff;background:rgba(82,10,24,.96);border:1px solid rgba(255,101,125,.5);box-shadow:0 18px 50px #000a}.lux-network-state.is-online{color:#fff;background:rgba(8,55,42,.96);border:1px solid rgba(66,225,160,.45)}.lux-network-state b{font-size:12px}.lux-network-state span{color:#ddd7e1;font-size:9px;text-align:right}
.lux-resume-strip{position:fixed;z-index:8800;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 28px),430px);min-height:58px;padding:9px 12px;border:1px solid rgba(66,225,160,.3);border-radius:17px;background:linear-gradient(135deg,rgba(13,26,24,.96),rgba(12,11,19,.96));box-shadow:0 18px 54px #000b;color:#fff;display:flex;align-items:center;justify-content:space-between;text-align:left}.lux-resume-strip span{display:grid;grid-template-columns:9px auto;align-items:center;column-gap:8px}.lux-resume-strip i{grid-row:1/3;width:7px;height:7px;border-radius:50%;background:var(--lux-green);box-shadow:0 0 12px var(--lux-green)}.lux-resume-strip small{font-size:7px;letter-spacing:.14em;color:#79eabd}.lux-resume-strip b{font-size:12px}.lux-resume-strip strong{color:#f3d37d;font-size:11px}
.lux-onboarding{position:fixed;inset:0;z-index:100400;display:grid;place-items:end center;padding:18px 12px max(18px,env(safe-area-inset-bottom));background:rgba(2,2,7,.78);backdrop-filter:blur(16px)}.lux-onboarding>section{position:relative;width:min(100%,420px);padding:24px 20px 18px;border:1px solid rgba(243,200,105,.3);border-radius:28px;background:radial-gradient(circle at 80% 0,rgba(142,98,255,.18),transparent 32%),linear-gradient(155deg,rgba(23,21,32,.99),rgba(7,7,12,.99));box-shadow:0 35px 100px #000d,inset 0 1px rgba(255,255,255,.08)}.lux-onboarding-skip{position:absolute;right:14px;top:13px;min-height:40px;padding:0 10px;border:0;background:transparent;color:#8f8998}.lux-onboarding-mark{width:48px;height:48px;margin-bottom:20px;border:1px solid rgba(243,200,105,.32);border-radius:15px;background:linear-gradient(145deg,rgba(243,200,105,.15),rgba(142,98,255,.12));display:grid;place-items:center;color:#f4cc70;font-size:20px}.lux-onboarding small{color:#d9b75f;font-size:8px;font-weight:900;letter-spacing:.16em}.lux-onboarding h2{margin:7px 0 10px;font-size:25px;letter-spacing:-.035em}.lux-onboarding p{min-height:78px;margin:0;color:#aaa4b1;font-size:12px;line-height:1.65}.lux-onboarding-dots{display:flex;gap:6px;margin:17px 0}.lux-onboarding-dots i{width:6px;height:6px;border-radius:3px;background:#3b3743}.lux-onboarding-dots i.active{width:24px;background:linear-gradient(90deg,#f3c869,#8e62ff)}.lux-onboarding-next{width:100%;min-height:52px;border:0;border-radius:15px;background:linear-gradient(135deg,#ffe394,#d79a27);color:#171006;font-weight:900}.lux-onboarding em{display:block;margin-top:11px;color:#706b77;font-size:8px;font-style:normal;text-align:center}
