/* Pound's landscape game lobby. The table retains its own presentation layer. */
body{overflow:hidden;background:#071c27}
body>.topbar,#app>.topbar,#app>footer{display:none}
body:not(.in-game) main{padding:0}
#lobbyStage{--lobby-gold:#edca84;--lobby-ink:#081c28;--lobby-muted:#aac0cc;position:fixed;left:50%;top:50%;width:1280px;height:640px;transform:translate(-50%,-50%) scale(var(--stage-scale,1));transform-origin:center;background:#0c2838 url('/lobby-uae-v1.webp') center/cover;color:#f4f5ee;isolation:isolate;overflow:hidden}
body.portrait-stage #lobbyStage{transform:translate(-50%,-50%) rotate(90deg) scale(var(--stage-scale,1))}
#lobbyStage[hidden]{display:none}
#lobbyStage::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#071b2be8 0%,#123349d9 50%,#071b29ef 100%);z-index:-1}
#lobbyStage:not([data-page=home])::before{background:linear-gradient(135deg,#0a2437f5,#0b2133ed)}
#lobbyStage button,#lobbyStage input,#lobbyStage select,.game-modal button{font-family:inherit}
#lobbyStage button{touch-action:manipulation;cursor:pointer}
#lobbyStage button:focus-visible{outline:3px solid #f5d68e;outline-offset:4px}
#lobbyStage button:disabled{opacity:.5;cursor:not-allowed}
#lobbyStage input{background:#0b2536;color:#f4f5ee;border:1px solid #7293a5;border-radius:9px}
#lobbyStage .page{margin:0;padding:0;max-width:none;height:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#58778b #0a2130}
#lobbyPages{position:absolute;inset:106px 0 91px}
#lobbyStage .page:not(.active){display:none}
#lobbyStage .page.active{display:block}
#lobbyStage h1,#lobbyStage h2,#lobbyStage p{margin:0}
#lobbyStage h1{font-size:29px;font-weight:800}
#lobbyStage h2{font-size:21px}
.ui-icon{width:24px;height:24px;flex:none;vertical-align:middle}

/* Account, progress, brand and wallet stay available in every lobby section. */
.lobby-hud{height:103px;display:flex;align-items:center;justify-content:space-between;padding:14px 38px;direction:ltr;position:relative;z-index:3;border-bottom:1px solid #d7be7b20;background:linear-gradient(180deg,#071c27aa,#071c2730)}
.player-card{display:flex;gap:13px;text-align:left;align-items:center;width:300px;border:0;background:transparent;padding:0;direction:ltr;color:#f4f5ee;box-shadow:none}
.portrait{display:inline-block;flex:none;width:100px;height:115px;background-repeat:no-repeat;background-size:300% 200%}
.player-card .portrait{width:65px;height:72px;border:2px solid #e1bd78;border-radius:14px;background-color:#22445b;box-shadow:0 5px 15px #0004}
.player-card>div{flex:1;min-width:0}
.player-card b{font-size:19px;max-width:210px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.player-card small{font-size:11px;display:block;color:#a8bdc9;margin-top:4px}
.hud-level{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;color:#edca84;margin-top:6px}
.xp-track{display:block;height:7px;background:#061927;border:1px solid #82919e4d;border-radius:20px;overflow:hidden;flex:1}
.xp-track i{display:block;height:100%;background:linear-gradient(90deg,#b9914e,#f3d38f);border-radius:20px}
.lobby-logo{position:absolute;left:50%;transform:translateX(-50%);top:7px;display:grid;place-items:center;width:140px;height:91px;background:none;border:0;padding:0;box-shadow:none}
.lobby-logo .primary-logo{height:87px;width:auto;max-width:140px;object-fit:contain;filter:drop-shadow(0 3px 5px #0005)}
.hud-right{display:flex;gap:16px;align-items:center;direction:ltr}
.journey-tool{height:51px;min-width:169px;padding:7px 11px;display:flex;gap:10px;align-items:center;border:1px solid #d2c18a40;border-radius:11px;background:#1535489c;color:#edca84;text-align:right;direction:rtl}
.journey-tool .ui-icon{width:27px;height:27px}
.journey-tool b{font-size:13px;display:block;color:#f2e5c5}.journey-tool small{display:block;font-size:11px;color:#9ab6c5;margin-top:3px}
.round-tool{display:inline-grid;place-items:center;width:43px;height:43px;padding:0;background:#193a4bc9;border:1px solid #98b6c850;color:#dae8ed;border-radius:11px;box-shadow:0 3px 9px #0002}
.round-tool .ui-icon{width:23px;height:23px}
.coin-wallet{display:flex;align-items:center;gap:10px;height:53px;min-width:187px;border:1px solid #b995585e;border-radius:12px;background:#122e3ed9;padding:6px 9px;direction:ltr;color:#f4e7c4;box-shadow:0 4px 14px #0002}
.wallet-copy{display:block;flex:1;min-width:55px;text-align:left}.wallet-copy small{display:block;color:#aabcc2;font-size:10px;line-height:1.1}.coin-wallet b{display:block;font-size:22px;line-height:1.3}
.coin-icon{display:grid;place-items:center;color:#edca84}.coin-icon .ui-icon{width:30px;height:30px;stroke-width:1.7}
.add-icon{background:#edca84;border:1px solid #ffdfa4;border-radius:8px;width:29px;height:29px;display:grid;place-items:center;font-size:22px;font-weight:700;color:#0c2936}
.resume-game{position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);padding:4px 16px;font-size:12px;line-height:1.3;border:1px solid #c9aa65;border-radius:16px;background:#112f41;color:#f5dfaa;box-shadow:0 2px 5px #0004}
.resume-game[hidden]{display:none}#lobbyStage[data-resume=true] .lobby-logo{top:2px;height:80px}#lobbyStage[data-resume=true] .primary-logo{height:72px}

/* Four distinct play choices, using the game's own characters and cards. */
#lobbyStage[data-page=home] #home.page.active{display:flex;flex-direction:column;gap:13px;overflow:auto;padding:0 0 11px}
.home-caption{flex:none;padding:7px 38px 0;text-align:center}
.home-caption h1{font-size:25px!important;line-height:1.45;color:#f0e6d0}.home-caption>span{font-size:14px;color:#abc3ce;line-height:1.5;display:block;margin-top:3px}
.home-notices{position:relative;z-index:5;isolation:isolate;flex:none;display:flex;gap:12px;margin:0 38px;max-height:100px;overflow:auto;border-radius:11px;scrollbar-width:thin}
.lobby-notice{display:flex;align-items:center;gap:14px;flex:1;min-width:0;padding:11px 15px;background:#14394b;border:1px solid #b9cfda66;color:#fff;border-radius:11px;text-align:right;direction:rtl}
.lobby-notice>div{min-width:0;flex:1}.lobby-notice b{display:block;font-size:14px;color:#f3d89e}.lobby-notice p{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.maintenance-notice{background:#46391d;border-color:#d6b575}.lobby-notice .ui-icon{width:27px;height:27px;color:#edca84}
.mode-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));direction:ltr;gap:20px;padding:2px 38px 0;flex:1;min-height:213px;align-items:stretch}
.mode-card{height:100%;min-height:213px;border:1px solid #ffffff44;border-radius:18px;box-shadow:0 7px 0 #04131e6b,0 15px 22px #0003;display:flex;align-items:center;flex-direction:column;padding:13px 15px 0;overflow:hidden;color:#fff;position:relative;direction:rtl;transition:transform .18s,box-shadow .18s}
.mode-card::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,#ffffff16,transparent 68%)}
.mode-card:hover:not(:disabled){transform:translateY(-4px);box-shadow:0 10px 0 #04131e6b,0 18px 24px #0003}.mode-card:active:not(:disabled){transform:translateY(1px)}
.mode-top{display:flex;justify-content:space-between;align-items:center;gap:7px;width:100%;font-size:11px;color:#d9e8eccc;position:relative;z-index:1}
.mode-top>span{padding:3px 7px;border:1px solid #ffffff33;border-radius:6px;font-size:10px;white-space:nowrap;color:#fff8e7;background:#ffffff0c}
.mode-art{flex:1;min-height:88px;max-height:135px;width:100%;position:relative;display:block;margin:7px 0 2px;pointer-events:none}
.mode-card b{font-size:25px;line-height:1.45;position:relative;text-shadow:0 2px 2px #0002}
.mode-card small{font-size:13px;color:#deeaedc9;margin:3px 0 13px;position:relative}
.mode-foot{display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#00000020;width:calc(100% + 32px);margin-top:auto;min-height:42px;font-size:13px;font-weight:700;border-top:1px solid #ffffff1a;position:relative;flex:none}
.mode-foot i{font-style:normal;font-size:20px;font-weight:400;opacity:.8}
.mode-vip{background:linear-gradient(150deg,#68502e,#3b3323 90%);border-color:#ddba72b8}.mode-vip .mode-top{color:#ecd49f}.mode-vip .mode-top>span{color:#1d2a2e;background:#edca84;border-color:#edca84}.mode-vip b{color:#f9dfa5}.mode-vip small{color:#d9c395}
.vip-art{display:grid;place-items:center}.vip-art img{width:114px;height:114px;max-height:100%;object-fit:contain;border-radius:18px;border:1px solid #eccb8060;box-shadow:0 6px 15px #0004}
.vip-ribbon{position:absolute;bottom:0;left:50%;transform:translateX(-50%);padding:3px 16px;background:linear-gradient(90deg,#b78d46,#f3d591,#b78d46);border:1px solid #ffe8b5;border-radius:5px;font-size:15px;font-weight:900;letter-spacing:3px;color:#3d311c;box-shadow:0 3px 8px #0004}
.mode-public{background:linear-gradient(150deg,#236f9c,#154869 90%)}.mode-friends{background:linear-gradient(150deg,#388375,#20554e 90%)}.mode-training{background:linear-gradient(150deg,#776495,#504265 90%)}
.mode-portraits .portrait,.friends-art .portrait{position:absolute;bottom:2px;background-color:#153648;border:2px solid #ecf3e0bd;border-radius:15px;box-shadow:0 7px 10px #0003;z-index:2}
.mode-portraits .portrait{width:80px;height:91px;left:21px;transform:rotate(-9deg) scale(.9);transform-origin:bottom center;opacity:.87}
.mode-portraits .portrait:nth-child(2){left:82px;width:91px;height:106px;transform:none;border-color:#f6d691;z-index:3;opacity:1}
.mode-portraits .portrait:nth-child(3){left:150px;transform:rotate(9deg) scale(.9)}
.mode-orbit{position:absolute;width:170px;height:94px;border:1px solid #98d4ef44;border-radius:50%;left:50%;top:13px;transform:translateX(-50%);z-index:1}
.friends-art .portrait{width:87px;height:104px;left:49px;transform:rotate(-8deg)}.friends-art .portrait:nth-child(2){left:121px;transform:rotate(8deg)}
.friends-link{position:absolute;left:50%;bottom:-3px;transform:translateX(-50%);z-index:3;background:#d3ebe0;color:#26584d;width:40px;height:33px;border-radius:8px;display:grid;place-items:center;border:2px solid #f5fff8}
.friends-link .ui-icon{width:23px;height:23px}
.training-card{position:absolute;width:73px;height:100px;border-radius:8px;border:3px solid #efeadd;box-shadow:0 7px 12px #0003;display:block;background-repeat:no-repeat}
.training-card-back{left:64px;top:19px;transform:rotate(-19deg)}.training-card-face{left:112px;top:8px;transform:rotate(13deg);background:#fff9ed;color:#132b3b;direction:ltr}
.training-card-face i{position:absolute;font:700 16px Georgia,serif;font-style:normal;top:3px;left:5px}.training-card-face i:last-child{top:auto;left:auto;bottom:3px;right:5px;transform:rotate(180deg)}.training-card-face strong{position:absolute;inset:21px 0 auto;font:55px Georgia,serif;line-height:1;text-align:center}
.training-spark{position:absolute;left:43px;top:16px;color:#f0d49b;font-size:25px}
.home-bottom{display:flex;justify-content:space-between;align-items:center;padding:4px 38px 0;direction:ltr;min-height:50px;flex:none;gap:15px}.home-bottom>div{display:flex;gap:9px}.home-bottom p{font-size:12px;color:#a3bcc9;text-align:center}
.gift-button{display:flex;align-items:center;gap:11px;background:#193748b0;border:1px solid #a98e5566;border-radius:11px;padding:8px 13px;color:#fff;direction:rtl;min-height:49px}
.gift-button>span{color:#edca84}.gift-button .ui-icon{width:27px;height:27px}.gift-button b{font-size:12px}.gift-button small{display:block;font-size:10px;color:#e1c990;margin-top:2px}.gift-button i{font-style:normal;font-size:17px;margin-right:6px;color:#cab982}.gift-ready{border-color:#edca84;box-shadow:0 0 0 2px #edca8422}

/* Stable bottom navigation mirrors the section order in the reference. */
.bottom-nav{position:absolute;bottom:0;left:0;right:0;height:87px;display:grid;grid-template-columns:1fr 1fr 1.16fr 1fr 1fr;direction:ltr;border-top:1px solid #d7be7b66;background:#0a2131;z-index:4;box-shadow:0 -8px 25px #04131c77}
.bottom-nav button{color:#b1c5cf;display:flex;gap:12px;align-items:center;justify-content:center;background:linear-gradient(#19384b,#0f2b3e);border:0;border-left:1px solid #78909e22;border-right:1px solid #0002;border-radius:0;font-size:17px;font-weight:700;padding:0;direction:rtl;box-shadow:none;position:relative}
.bottom-nav button span{display:grid;place-items:center}.bottom-nav .ui-icon{width:27px;height:27px;stroke-width:1.7}.bottom-nav button.active{background:linear-gradient(#284c61,#16394e);color:#f3d593}.bottom-nav button.active::after{content:'';position:absolute;top:0;left:28%;right:28%;height:3px;border-radius:0 0 4px 4px;background:#edca84}.bottom-nav .nav-play{font-size:21px;color:#e8d09e}.bottom-nav .nav-play span{width:45px;height:45px;border-radius:50%;border:1px solid #e5c48177;background:#dcb87813}.bottom-nav .nav-play .ui-icon{width:23px;height:23px}

/* Store categories, large artwork, and independent voice-preview controls. */
.shop-tabs{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;direction:ltr;align-items:stretch;height:74px;margin:0 42px;border-bottom:1px solid #8ca3b433}
.shop-tabs button{background:transparent;border:0;color:#9ab2c3;padding:5px 4px 10px;border-radius:0;box-shadow:none;position:relative}.shop-tabs button>span{display:block;height:32px}.shop-tabs .ui-icon{width:27px;height:27px}.shop-tabs small{font-size:12px;font-weight:700;display:block;margin-top:3px}.shop-tabs button.selected{color:#f4d69c;background:linear-gradient(#cfb97b0d,#cfb97b0a)}.shop-tabs button.selected::after{content:'';position:absolute;bottom:-1px;left:20%;right:20%;height:3px;border-radius:5px;background:#edca84}
.shop-heading{display:flex;align-items:center;justify-content:space-between;margin:12px 44px 11px;height:31px;gap:12px}.shop-heading h1{font-size:24px!important;color:#f1e8d5}.shop-heading>span{font-size:12px;color:#99b0bf}
.shop-scroll{overflow:auto;height:calc(100% - 130px);padding:4px 42px 24px;scrollbar-width:thin;scrollbar-color:#7898a9 #102a3b}
.cosmetic-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;direction:rtl}.cosmetic-entry{position:relative;min-width:0}
.cosmetic-tile{position:relative;width:100%;min-height:209px;border:1px solid #69889980;border-radius:13px;background:linear-gradient(150deg,#24475f,#153245);box-shadow:0 5px 12px #0003;color:#f0f5f3;overflow:hidden;padding:0;display:flex;align-items:center;flex-direction:column;transition:border-color .16s,transform .16s}
.cosmetic-tile:hover{border-color:#c2d6d9}.cosmetic-tile.available{background:linear-gradient(150deg,#29546b,#193b50)}.cosmetic-tile.for-sale{background:linear-gradient(150deg,#2b4255,#172d40)}.cosmetic-tile.equipped{background:linear-gradient(150deg,#37514c,#1f3d43);border:2px solid #eac681;box-shadow:0 0 0 2px #edca8414,0 6px 16px #0003}
.item-status{align-self:stretch;padding:6px 9px;font-size:10px;text-align:right;color:#b9ccd3;background:#07192733;min-height:24px}.equipped .item-status{color:#f6d796;background:#edca841a}
.item-art{height:129px;display:flex;align-items:center;justify-content:center;width:100%;padding:5px;position:relative}.item-art::before{content:'';position:absolute;width:104px;height:104px;border-radius:50%;background:#83acc313}.item-art .portrait{width:108px;height:118px;z-index:1;border-radius:11px}.cosmetic-tile>b{font-size:15px;line-height:1.3;padding:5px 7px;font-weight:700}
.item-price{background:#071b2a66;align-self:stretch;font-size:13px;font-weight:700;margin-top:auto;line-height:31px;color:#f1cd84;border-top:1px solid #c2d5db16}.equipped .item-price{color:#f7dfae;background:#e7c7860a}.available .item-price{color:#cce6df}
.character-voice-button{position:absolute;left:7px;top:7px;width:28px;height:28px;border:1px solid #91b4c188;border-radius:50%;background:#0e2b3deb;color:#f5d59a;padding:0;display:grid;place-items:center;z-index:2;box-shadow:0 2px 5px #0004}.character-voice-button .ui-icon{width:17px;height:17px;stroke-width:1.9}.character-voice-button:hover{background:#35576d;border-color:#edca84}
.back-preview{height:116px;width:80px;border:2px solid #f7e9cf;border-radius:7px;box-shadow:0 4px 9px #0006;display:inline-block;background-repeat:no-repeat;position:relative;z-index:1}
.face-preview{position:relative;background:#fff9ec;color:#b82b40;border:2px solid #f3e1bb;border-radius:7px;height:116px;width:81px;display:inline-block;box-shadow:0 4px 9px #0006;overflow:hidden;flex:none;direction:ltr;z-index:1}.face-preview b{position:absolute;left:4px;top:1px;font:700 19px Georgia,serif;line-height:1.1;z-index:2}.face-preview small{display:block;font-size:17px}.face-preview .inverted{left:auto;top:auto;right:4px;bottom:1px;transform:rotate(180deg)}.preview-court{position:absolute;inset:10px 18px;background:url('/courts-v2.png') 50% center/300% 100% no-repeat}.face-royal{background:#ffefd0;border-color:#c8963b}.face-bold b{font-family:Arial,sans-serif;font-weight:900}.face-bold .preview-court{inset:15px 22px}.face-night{background:#192334;border-color:#879cbd;color:#ed95a7}
.table-preview{width:132px;height:92px;border:4px solid #bb9d63;border-radius:12px;box-shadow:0 5px #081923;display:flex;align-items:center;justify-content:center;position:relative;z-index:1}.preview-logo{height:62px;width:auto;opacity:.48}
.shop-footnote{font-size:12px;text-align:center;color:#a2bdc8;margin-top:18px!important}.vip-grid{grid-template-columns:repeat(2,270px);justify-content:center}.vip-grid .cosmetic-tile{background:linear-gradient(150deg,#5d4a2e,#273a40);border-color:#b99b62;min-height:242px}.vip-grid .item-art{height:145px}.vip-crown{font-size:93px;line-height:1.1;color:#f5d38a;text-shadow:0 4px #614c2c;z-index:1}.vip-description{text-align:center;font-size:14px;margin-bottom:17px!important;line-height:1.7;color:#c3d3d9}.vip-expiry{color:#e6c789;text-align:center;margin-top:12px!important;font-size:14px}

/* Friends, leaderboard, player profile and waiting room share the new surfaces. */
.screen-title{text-align:center;padding:5px 0 19px}.screen-title p{font-size:14px;color:#9eb8c7;margin-top:4px!important}.glass-panel{background:#143246db;border:1px solid #718c9d55;border-radius:15px;padding:20px;box-shadow:0 9px 24px #0002}
.chunky-button{background:linear-gradient(#e9c984,#c7a568);color:#112d3c;border:1px solid #f4dba7;border-radius:9px;box-shadow:0 3px #06192455;padding:9px 18px;font-size:15px;font-weight:700}
.friends-layout{display:grid;grid-template-columns:360px 1fr;gap:22px;margin:0 56px;max-height:350px}.friends-layout>.glass-panel{overflow:auto}.friends-layout .panel.join{border:0;background:none;box-shadow:none;padding:22px 0 0}.friends-layout .panel-title .number{display:none}.friends-layout .panel h2{font-size:18px!important}.friends-layout .panel p,.friends-layout .panel label{font-size:13px!important}.friends-layout .panel .secondary{background:#254b61;color:#f4e0b1;border-color:#708c9d}.friends-layout .panel input{padding:11px;font-size:16px;min-width:0}.friend-code{font-size:12px;color:#abc2cd;margin:5px 0 12px!important}
#friendRequest{display:block}#friendRequest input{font-size:18px;flex:1;min-width:0;height:46px}#friendRequest button{padding:8px 22px;font-size:17px;white-space:nowrap}
.person-row{display:flex;align-items:center;gap:15px;padding:12px 8px;border-bottom:1px solid #c6dce320}.person-row:last-child{border-bottom:0}.person-row .portrait{width:48px;height:52px;border-radius:8px;background-color:#2e4d63;border:1px solid #b7c9d060}.person-row>div{flex:1}.person-row b{font-size:17px;display:block}.person-row small{display:block;font-size:12px;color:#9fbac7;margin-top:3px}.person-row .friend-actions{flex:none;display:flex;gap:5px}.friend-actions button{font-size:11px;padding:6px;background:#264b61;color:#e6efef;border-color:#809eac}
.ranking-list{margin:0 120px;max-height:347px;overflow:auto;padding:0 18px}.rank-number{color:#edca84;font-size:27px;width:55px;text-align:center}.rank-xp{color:#b8d5df;direction:ltr;font-size:15px}.person-row:nth-child(-n+3) .rank-number{color:#f6d597;text-shadow:0 2px 5px #c5983833}
.empty-state{padding:30px;text-align:center;color:#b9cdd5;font-size:15px!important}.empty-state>span{font-size:64px;color:#edca84}.empty-state h2{margin-bottom:12px!important;color:#eaddbf}.empty-state button{margin-top:20px}
.profile-layout{display:grid;grid-template-columns:320px 1fr;gap:24px;margin:0 100px;max-height:350px}.profile-identity{text-align:center;padding:16px;display:flex;align-items:center;flex-direction:column;gap:6px}.profile-identity .portrait{width:90px;height:95px;background-color:#25465b;border-radius:13px;border:2px solid #d8bf84}.profile-identity h2{font-size:23px!important}.profile-identity .xp-track{width:90%;flex:none}.profile-identity>small{font-size:11px;color:#a7bfca}.level-pill{font-size:13px;color:#e7cc95;font-weight:700}.code-button{border:0;background:none;color:#a7ccdd;font-size:12px;padding:5px}.profile-identity>button:last-child{font-size:14px;margin-top:auto;width:100%}.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.profile-stats article{padding:12px;border-radius:12px;background:#234456a3;text-align:center;border:1px solid #73919f55}.profile-stats b{display:block;font-size:27px;color:#edca84}.profile-stats span{font-size:12px;color:#b1c9d3}.profile-collection{margin-top:13px;position:relative;height:241px}.profile-collection p{font-size:12px!important;color:#a8c0cb;margin-top:5px!important}.mini-collection{display:flex;align-items:center;justify-content:center;gap:25px;margin-top:10px}.mini-collection .portrait{height:102px;width:94px}.mini-collection .back-preview,.mini-collection .face-preview{width:66px;height:94px;transform:rotate(-7deg)}.mini-collection .face-preview{transform:rotate(7deg)}.profile-collection button{display:block;margin:12px auto 0;font-size:13px;padding:6px 26px}
.is-vip .portrait{border-color:#f2ce85!important;box-shadow:0 0 10px #edca8438}.is-vip b,.is-vip h2{color:#f6d799}.vip-tag,.player-card em{font-size:10px;font-style:normal;background:#b48b43;color:#fff5d0;padding:2px 5px;border-radius:4px;margin-inline:5px}
#lobbyStage #publicRooms,#lobbyStage #lobby,#lobbyStage #rules{padding:5px 110px 22px}#lobbyStage .section-heading{text-align:center;margin:0 0 15px}#lobbyStage .section-heading .eyebrow{display:none}#lobbyStage .section-heading p{font-size:13px;margin-top:6px;color:#b4cbd6}
#lobbyStage .panel{background:#143246de;border:1px solid #738e9d66;border-radius:13px;box-shadow:none}#lobbyStage #publicRooms>.panel{padding:16px 25px}#lobbyStage .directory-toolbar{display:flex;align-items:end;gap:15px;margin-bottom:5px}#lobbyStage .directory-toolbar>div{flex:1}#lobbyStage label{font-size:12px}#lobbyStage select{height:40px;min-width:150px;color:#edf4f4;background:#16384d;border:1px solid #7b98a9;border-radius:8px}#lobbyStage .directory-toolbar button{height:40px;padding:7px 17px;background:#2c5268;color:#ecddba;border-color:#7894a1}#lobbyStage #directoryStatus{font-size:13px;margin:12px 0!important}#lobbyStage .public-list{max-height:135px;overflow:auto;margin-bottom:12px}#lobbyStage .public-room{padding:10px;gap:12px;border-color:#73919f;background:#234759}#lobbyStage .public-room h2{font-size:17px!important}#lobbyStage .public-room p{font-size:12px}#lobbyStage .public-room .secondary{background:#31576b;color:#f5e4bc}#lobbyStage .fine{font-size:11px;line-height:1.7;margin-top:10px;color:#b1cad5}#lobbyStage .back-button{position:absolute;right:25px;top:10px;border:0;background:none;color:#b9cfda;font-size:13px;z-index:2}
#lobbyStage #rules>h1{margin-bottom:14px;color:#ecd5a8}#lobbyStage #rules details{border-color:#718d9f66;color:#edf4f4;background:#16354a}#lobbyStage #rules summary{color:#edca84}#lobbyStage #rules p{font-size:16px;line-height:1.8}
#lobbyStage .lobby-panel{padding:12px 20px}#lobbyStage .room-share{margin:0 0 12px}#lobbyStage .room-share strong{font-size:24px;color:#edca84}#lobbyStage .lobby-seats{gap:10px}#lobbyStage .lobby-seat{padding:8px;min-height:88px;background:#25485a;border-color:#7898a8}#lobbyStage .lobby-seat .avatar{height:44px;width:44px}#lobbyStage .lobby-seat span{font-size:11px}#lobbyStage .lobby-seat button{font-size:12px;padding:5px;background:#385c6f;color:#f4e4bf}#lobbyStage .lobby-panel .economy-note{font-size:12px;padding:5px;margin:5px 0}#lobbyStage .lobby-panel #startRoom{padding:8px}#lobbyStage .lobby-panel #leaveRoom{font-size:12px;padding:5px}#lobbyStage .lobby-panel #hostControls label{margin:5px 0}

/* Modal dialogs use the same colors, with landscape sizing in presentation-v8. */
#app>dialog,.game-modal{background:#163449;color:#f0f5f4;border:1px solid #a58e5e;border-radius:18px;box-shadow:0 20px 80px #001728bf;padding:24px}
.game-modal{max-width:min(540px,95vw)}.game-modal::backdrop{background:#051927cf}.game-modal p{font-size:14px;line-height:1.8}.game-modal .dialog-heading h2{margin:0;font-size:22px;color:#eed4a0}.game-modal .dialog-heading button{background:#24495d;border-color:#809dac;color:#fff}.game-modal .panel{padding:15px 0 0;margin:0;box-shadow:none;border:0;background:none}.game-modal .panel-title{display:none}.game-modal input{background:#0b283a;color:#fff}.game-modal .fine{color:#a8c1cb;font-size:12px}.game-modal .detail-preview{height:180px;display:flex;justify-content:center;align-items:center}.detail-preview .portrait{height:155px;width:146px;border-radius:14px}.detail-preview .back-preview,.detail-preview .face-preview{height:161px;width:112px}.detail-preview .table-preview{width:240px;height:150px}.detail-preview .preview-logo{height:105px}.cosmetic-dialog{text-align:center;min-width:350px}.level-medal{font-size:85px;position:relative;text-align:center;color:#edca84}.level-medal b{position:absolute;inset:30px 0 auto;font-size:24px;color:#6a522c}#levelDialog h3{text-align:center}#settingsDialog [hidden],[hidden]{display:none!important}#toast{z-index:1000}#app>#toast{margin:0;border:1px solid #c6ab73;inset:auto;top:var(--view-center-y,50%);left:var(--view-center-x,50%)}
.native-ios #lobbyInstall,.native-ios #installBtn{display:none}:is(#lobbyStage,.game-modal) a{color:#eed09c}
.coin-summary{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;gap:16px}.coin-summary>div{display:flex;align-items:center;gap:12px}.coin-summary b{font-size:24px}.coin-summary small{font-size:12px;color:#aec4d3}.cash-packs{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.cash-pack{position:relative;text-align:center;border:1px solid #7794a6;border-radius:15px;background:linear-gradient(140deg,#24495f,#163349);padding:15px;display:flex;flex-direction:column;gap:7px;align-items:center}.cash-pack.featured{border-color:#edca84;background:linear-gradient(145deg,#53482f,#203b50)}.cash-pack>span{font-size:11px;color:#b8d3e3}.cash-pack.featured>span{color:#ffe49e}.pack-coins{font-size:42px;color:#edca84;text-shadow:0 3px #816334}.cash-pack h2{font-size:28px!important}.cash-pack h2 small{font-size:15px}.cash-pack>p{font-size:13px;color:#bcd1da}.cash-pack button{width:90%;margin-top:4px}.cash-pack>small{font-size:10px;color:#cadde5}.coin-rewards{display:flex;gap:15px;margin:16px 0}.coin-rewards button{flex:1;background:#2d5066;border:1px solid #849eac;color:#eaf6fe;font-size:13px;border-radius:10px;padding:12px}.order-history{grid-column:1/-1;max-height:310px;overflow:auto}.order-history article{border-bottom:1px solid #ffffff20;padding:12px}.order-history small{font-size:12px;color:#bed0d9}

/* Low-contrast table watermark never covers a played card or a notice. */
#gameStage .felt-mark{width:120px;height:150px;display:grid;place-items:center;opacity:.1;pointer-events:none}#gameStage .felt-logo{display:block;max-width:100%;max-height:100%;object-fit:contain}
@media(prefers-reduced-motion:reduce){.mode-card,.cosmetic-tile{transition:none}}

/* Direct cash membership */
.vip-intro{display:flex;align-items:center;gap:18px;padding:17px 22px;border:1px solid #d9b87444;border-radius:20px;background:linear-gradient(115deg,#b9914020,#19394c99);margin-bottom:18px}.vip-intro>img{width:78px;height:78px;border-radius:20px}.vip-intro h2{font-size:25px;margin:5px 0}.vip-intro p{margin:0 0 8px;color:#ead7b6}.vip-intro small{color:#aec4cc}.vip-intro .quiet{margin-inline-start:auto}.eyebrow{color:#e7be70;font-size:13px;letter-spacing:1px}.vip-subscriptions{display:grid;grid-template-columns:1fr 1fr;gap:20px}.vip-subscription{padding:21px 26px;border:1px solid #9db9c449;border-radius:22px;background:linear-gradient(145deg,#294b5fc9,#102a3aca);text-align:center}.vip-subscription.featured{border-color:#e7be7080;background:linear-gradient(140deg,#8c673035,#142c3bc9)}.vip-plan-label{font-size:13px;color:#e7be70}.vip-subscription h2{font-size:24px;margin:10px 0}.vip-subscription p{display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 0 16px}.vip-subscription strong{font-size:28px;color:#f4d698}.vip-subscription p span{border-inline-start:1px solid #7c939960;padding-inline-start:18px;color:#c5d6de}.vip-subscription .chunky-button{width:100%}.vip-subscription>small{display:block;margin-top:12px;color:#a8c1ca;font-size:12px}.vip-detail-logo{width:114px;height:114px;border-radius:25px}.vip-intro .quiet{padding:10px 14px;white-space:nowrap}
/* Keep both VIP purchase actions above the landscape navigation. */
#lobbyStage .vip-intro{height:95px;padding:10px 18px;margin-bottom:12px;gap:14px}
#lobbyStage .vip-intro>img{width:64px;height:64px;border-radius:16px}
#lobbyStage .vip-intro .eyebrow{display:none}
#lobbyStage .vip-intro h2{font-size:22px;line-height:1.25;margin:0 0 4px}
#lobbyStage .vip-intro p{font-size:14px;line-height:1.3;margin:0 0 4px}
#lobbyStage .vip-intro small{font-size:11px;line-height:1.25}
#lobbyStage .vip-subscription{display:grid;gap:7px;padding:13px 20px}
#lobbyStage .vip-plan-label{font-size:12px;line-height:1.3}
#lobbyStage .vip-subscription h2{font-size:21px;line-height:1.25;margin:0}
#lobbyStage .vip-subscription p{margin:0;line-height:1.2}
#lobbyStage .vip-subscription strong{font-size:26px;line-height:1.2}
#lobbyStage .vip-subscription .chunky-button{min-height:43px;padding:10px 18px;font-size:16px;line-height:1.2}
#lobbyStage .vip-subscription>small{margin:0;font-size:11px;line-height:1.2}

/* Friends: readable identity, explicit requests and private-table invitations. */
#friends .screen-title{padding-bottom:12px}
#friends .screen-title p{font-size:16px}
.friends-layout{grid-template-columns:330px minmax(0,1fr);gap:20px;margin:0 40px;max-height:354px}
.friends-layout>.glass-panel{padding:16px 20px;min-width:0}
.friends-identity{display:flex;flex-direction:column;align-items:center;gap:5px;border-bottom:1px solid #718c9d55;padding-bottom:13px;margin-bottom:15px}
.friends-identity>span{font-size:16px;color:#edf4f6}
.friends-identity .code-button{font-size:22px;letter-spacing:1px;margin:0;padding:9px 14px}
.friends-identity small{font-size:13px;color:#aac0cc}
#newFriendsRoom{width:100%;font-size:17px;padding:12px 8px}
.friends-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.friend-refresh{padding:6px 10px;background:transparent;color:#d0e1e9;font-size:14px;border:1px solid #7293a588;box-shadow:none}
.friend-search-label{display:block;font-size:14px;color:#b9d0db;margin-bottom:6px}
.friend-search-fields{display:flex;gap:9px}
.friend-search-results{font-size:16px;color:#d1e0e6}
.friend-search-results:not(:empty){margin-top:10px;padding:6px 8px;border:1px solid #d8b87470;border-radius:10px;background:#173b50}
.friend-search-empty{padding:6px;font-size:15px;line-height:1.7}
.friend-tabs{display:flex;gap:8px;margin-top:15px;border-bottom:1px solid #7293a544;padding-bottom:8px}
.friend-tabs button{flex:1;white-space:nowrap;padding:9px 6px;border:1px solid #617f92;background:#17364a;color:#b9d0db;font-size:16px;box-shadow:none}
.friend-tabs button[aria-pressed=true]{background:#edca84;color:#112b39;border-color:#edca84}
.friend-row{gap:12px;padding:12px 0}
.friend-row .portrait{width:52px;height:58px}
.friend-row .friend-player{min-width:0}
.friend-row .friend-player b{font-size:19px;overflow-wrap:anywhere}
.friend-row .friend-player small{font-size:14px;line-height:1.45}
.friend-row .player-code{font-size:13px!important;letter-spacing:.4px;width:fit-content;color:#aec7d5}
.friend-row .friend-online{color:#80dcad}
.friend-row .friend-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:215px}
.friend-row .friend-actions button{font-size:15px;min-height:39px;padding:8px 10px;border-radius:8px}
.friend-row [data-friend-request],.friend-row [data-friend-accept],.friend-row [data-invite-open]{background:#edca84;color:#102a39;border-color:#edca84}
.friend-connected{color:#9fd9bd;font-size:15px}
.friend-room-hint{font-size:14px;color:#c5d9e1;padding:12px 0 3px;line-height:1.6}
#friendsList .empty-state{padding:22px 8px;font-size:17px;line-height:1.8}
#friendsAccount>p{font-size:17px;line-height:1.8;margin:12px 0!important}
.bottom-nav [data-go=friends]{position:relative}
.friends-badge{position:absolute;top:1px;right:calc(50% - 34px);display:grid;place-items:center;min-width:23px;height:23px;padding:0 4px;border-radius:20px;background:#e0b464;color:#132c3b;border:2px solid #0a2333;font-size:12px}
.friends-badge[hidden]{display:none}

/* Static rank emblems keep turn rendering small; no animated filters. */
.mode-cards{grid-template-columns:repeat(5,minmax(0,1fr))}.mode-ranked{background:linear-gradient(145deg,#44384f,#18263d);border-color:#aa83cf}.ranked-art .rank-badge{width:110px;height:125px}.rank-badge{--rank-color:#bd8750;display:inline-flex;position:relative;align-items:center;justify-content:center;width:80px;height:90px;color:var(--rank-color);vertical-align:middle;flex-shrink:0}.rank-badge svg{width:80%;height:80%;fill:color-mix(in srgb,var(--rank-color) 15%,#142234);stroke:var(--rank-color);stroke-width:1.5;stroke-linejoin:round}.rank-badge b{position:absolute;bottom:9%;font-size:18px;color:#fff;background:#142234;border:1px solid var(--rank-color);border-radius:9px;padding:1px 6px}.rank-small{width:30px;height:34px}.rank-small b{font-size:9px;padding:0 3px;bottom:0}.ranked-layout{display:grid;grid-template-columns:270px 1fr;gap:18px;margin:0 50px;max-height:360px;overflow:auto}.ranked-card{text-align:center}.ranked-card .xp-track{margin:12px 0}.ranked-card p,.ranked-guide p{font-size:12px!important;line-height:1.6;color:#c2d6e3;margin:8px 0!important}.ranked-card>small{font-size:11px;display:block;color:#b6c5d9;margin:8px 0}.ranked-play{display:grid;gap:8px;margin-top:12px}.ranked-play button{font-size:13px}.ranked-ban{color:#ffb0b9!important;padding:8px;border:1px solid #c57282;border-radius:8px}.rank-ladder{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:12px 0}.rank-ladder>span{display:flex;flex-direction:column;align-items:center;font-size:10px;text-align:center}.rank-ladder small{color:#bdccdb}.season-row{display:flex;align-items:center;gap:8px;border-top:1px solid #ffffff18;padding:5px}.season-row>span{flex:1}.profile-rank{display:flex;align-items:center;gap:4px;font-size:10px}.table-rank{position:absolute;inset-inline-end:-5px;top:48px}.ranked-forfeited{opacity:.55}

.home-events{display:flex;gap:10px;justify-content:center;flex:none;margin:0 38px}.home-events button{background:#14384a;border:1px solid #d7b66d77;border-radius:9px;padding:8px 18px;color:#f5de9f;font-size:13px}.home-events span{padding-inline-start:16px;color:#a6c9d7}
.event-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}.event-gift,.event-rules{padding:22px}.event-gift>.table-pack-preview{height:158px;margin-bottom:13px}.event-gift h2{margin-bottom:8px!important}.event-gift p,.event-rules p{line-height:1.8;margin:12px 0!important}.event-gift>.xp-track{margin:10px 0 16px}.event-points{color:#f5d98b;font-size:23px}#eventCount{display:block;color:#a7d9e8;font-size:24px}.event-condition{color:#f4c878}.founder-badge{display:block;border:1px solid #b59b5d;background:#123348;color:#f5d991;border-radius:8px;padding:6px 10px;font-size:13px;margin:10px 0}.market-toolbar{padding:13px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px}.market-list-form{margin:14px 0;display:flex;align-items:end;gap:16px;padding:15px}.market-list-form label{flex:1;font-size:13px;display:grid;gap:6px}.market-list-form select,.market-list-form input{width:100%;font-size:15px;padding:10px;background:#0c2939;border:1px solid #7da2b777;border-radius:8px;color:#eaf4f6}.market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}.market-item{display:grid;gap:13px;padding:20px}.market-item>small{color:#c3c98c}.market-item>p{font-size:14px;color:#a7c5cf;overflow-wrap:anywhere}.market-item>strong{font-size:22px;color:#f4dba1}.market-item>h2{font-size:18px!important}.market-confirm p{line-height:1.8;margin:14px 0}.market-confirm{max-width:500px}

.tournament-events{display:grid;gap:18px;margin-top:14px}.tournament-event{padding:20px;display:grid;gap:15px}.tournament-event header{display:flex;justify-content:space-between;align-items:center;gap:14px}.tournament-event header small{color:#9fced6}.tournament-event header strong{font-size:19px;color:#edce88}.tournament-event p{line-height:1.8!important;font-size:14px}.tournament-event details p{margin:6px 0!important}.tournament-form{display:flex;gap:15px;align-items:end}.tournament-form label{flex:1;display:grid;gap:7px;font-size:13px}.tournament-form input{width:100%;padding:10px;border-radius:8px;border:1px solid #82adc466;background:#0e2c3d;color:#f6e7c1}.tournament-invite{padding:12px;border:1px solid #e5c07877;border-radius:9px;background:#1e3540}.tournament-invite button{margin:8px}.tournament-bracket{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tournament-bracket article{display:grid;gap:10px;border:1px solid #809dac66;background:#0e2a3b;padding:15px;border-radius:10px}.tournament-bracket small{color:#d7c382}.tournament-bracket span{font-size:13px;color:#a4c8d1}.tournament-champion{color:#f2d790;font-size:20px!important}.tournament-my-team{color:#b5dcbc}
/* Store value framing and the first top-up bonus (coin packs only). */
.first-bonus{margin:0 0 12px;padding:10px 14px;border:1px dashed #edca84;border-radius:12px;background:linear-gradient(90deg,rgba(237,202,132,.2),rgba(237,202,132,.05));color:#ffe9b5;font-size:15px;line-height:1.5;text-align:center}
.first-bonus b{color:#ffe49e}
.cash-pack .pack-value{font-style:normal;font-size:12px;font-weight:700;color:#ffe49e;border:1px solid #edca84;border-radius:999px;padding:1px 9px;background:rgba(237,202,132,.12)}
.cash-pack .pack-value.best{background:#edca84;color:#1b2a36}
.cash-pack .pack-bonus,.pack-bonus{margin:0;font-size:13px;font-weight:700;color:#ffe49e}
.pack-value-line{margin:0;font-weight:700;color:#ffe49e}
.pack-value-line.best::after{content:' ★'}
/* Starter pack: once per account, above the coin packs and in the home slot. */
.starter-pack{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;margin:6px 0 14px;padding:14px 18px;border:1px solid #edca84;border-radius:15px;background:linear-gradient(115deg,#5b2330,#2a3f52 62%,#1a3448);box-shadow:0 8px 22px #0006}
.starter-ribbon{position:absolute;top:-10px;right:20px;padding:1px 11px;border-radius:999px;background:#edca84;color:#1b2a36;font-size:12px;font-weight:800}
.starter-art{display:flex;align-items:flex-end;gap:8px}
.starter-art .portrait{width:74px;height:86px;border:2px solid #e1bd78;border-radius:12px;background-color:#22445b}
.starter-art .back-preview{width:58px;height:86px}
.starter-coin{align-self:center;color:#edca84;font-size:20px;white-space:nowrap}.starter-coin b{font-size:22px}
.starter-copy{min-width:0}.starter-copy h2{margin:0;font-size:24px!important;color:#ffe9b5}
.starter-copy ul{display:flex;flex-wrap:wrap;gap:3px 16px;margin:6px 0 7px;padding:0;list-style:none;font-size:15px;color:#eaf6fe}
.starter-copy li::before,.starter-contents li::before{content:'✦ ';color:#edca84}
.starter-copy li.owned,.starter-contents li.owned{color:#aec4d3}.starter-copy li small,.starter-contents li small{color:#8fd3a8;font-size:12px}
.starter-copy .pack-value{font-style:normal;font-size:12px;font-weight:700;border-radius:999px;padding:1px 9px;background:#edca84;color:#1b2a36}
.starter-pack .chunky-button{min-width:150px;min-height:44px;font-size:20px}
#app>#cosmeticDialog .starter-detail{display:flex;align-items:flex-end;justify-content:center;flex-wrap:wrap;gap:8px 10px;align-content:center}
#app>#cosmeticDialog .starter-detail .portrait{width:104px;height:120px;border:2px solid #e1bd78;border-radius:14px;background-color:#22445b}
#app>#cosmeticDialog .starter-detail .back-preview{width:66px;height:96px}
#app>#cosmeticDialog .starter-detail .starter-coin{flex-basis:100%;text-align:center;font-size:22px}
#cosmeticDialog .starter-contents{margin:2px 0 6px;padding:0;list-style:none;font-size:17px;line-height:1.9;color:#f3e6c8}
#lobbyStage .home-bottom>.identity-ad.starter-ad{border-color:#edca84b3;background:linear-gradient(115deg,#5b2330f2,#2a3f52ed)}
#lobbyStage .starter-ad .identity-ad-cta{color:#ffe9b5}
