/* Production Friends screen, arranged on the supplied 368 x 654 composition. */
body:has(.friends-active){min-width:0!important;min-height:100dvh!important;background:#24452b!important}
#root:has(.friends-active){position:relative;isolation:isolate;display:grid;place-items:center;min-height:100dvh;overflow:hidden}
#root:has(.friends-active):before{content:'';position:fixed;inset:-24px;z-index:-1;background:url('/assets/inner-pages-farm-background-JXrjFmUh.webp') center/cover no-repeat;filter:blur(18px) brightness(.55)}
.app-shell.friends-active{container-type:inline-size;position:relative;width:var(--farm-canvas-width,min(100vw,480px,calc(100dvh / 1.772)))!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:100dvh!important;aspect-ratio:942 / 1670!important;padding:0!important;margin:auto!important;overflow:hidden!important;background:#85bd41 url('/assets/inner-pages-farm-background-JXrjFmUh.webp') center top/100% 100% no-repeat!important;box-shadow:0 0 40px #10291399!important;transform:scaleY(var(--farm-canvas-stretch,1))!important;transform-origin:center center!important;color:#4a230f}
.friends-active .farm-sky{position:absolute!important;inset:0!important;background:none!important;pointer-events:none}
.friends-active .page-content,.friends-active .inner-page{position:absolute!important;inset:0!important;width:100%!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:none!important}

.friends-active .topbar{position:absolute!important;z-index:15;left:3.5%;right:3%;top:6cqw;height:11cqw;display:flex!important;align-items:center;gap:.8cqw;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important}
.friends-active .profile-chip{position:relative!important;flex:none;width:10cqw;height:11cqw;padding:0!important;border:0!important;background:none!important}
.friends-active .profile-portrait{width:100%;height:100%;overflow:hidden;border:.7cqw solid #f4ac2d;border-radius:3cqw;background:#b27e27;box-shadow:0 .5cqw #5a2e0c}
.friends-active .profile-portrait img{width:100%;height:100%;object-fit:cover}
.friends-active .profile-chip>b{position:absolute;right:-1cqw;bottom:-1cqw;display:grid;place-items:center;width:4.4cqw;height:4.4cqw;border:.45cqw solid #e8d87c;border-radius:50%;background:#31a525;color:#fff;font-size:2.7cqw;line-height:1}
.friends-active .brand{flex:none;min-width:0;margin-right:auto;color:#ffa20b;font-size:4.6cqw;white-space:nowrap;text-shadow:0 .3cqw #944716,0 .55cqw .3cqw #48230788}
.friends-active .brand svg{width:3.8cqw;height:3.8cqw}
.friends-active .balance{display:flex;align-items:center;gap:.45cqw;flex:none;width:22.5cqw;height:7cqw;min-width:0;padding:.3cqw .45cqw;border:.5cqw solid #a9570d;border-radius:4cqw;background:linear-gradient(#a45b1e,#5d2a0a);box-shadow:inset 0 .4cqw #e6a849,0 .4cqw #4a230a;color:#fff8e3}
.friends-active .balance i{flex:none;width:6.5cqw;height:6.5cqw;margin-left:-1.2cqw}
.friends-active .balance i img{width:100%;height:100%;object-fit:contain}
.friends-active .balance strong{flex:1;min-width:0;font-family:Nunito,Arial,sans-serif;font-size:2.6cqw;font-weight:900;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.friends-active .balance button{display:grid;place-items:center;flex:none;width:4.9cqw;height:4.9cqw;min-width:0;padding:0;border:.35cqw solid #347319;border-radius:50%;background:linear-gradient(#8de44d,#37ab24 70%,#198421);color:#fff;box-shadow:inset 0 .3cqw #c8ff98,0 .3cqw #3f260f}
.friends-active .balance button svg{width:3.8cqw;height:3.8cqw;stroke-width:3.5}
.friends-active .xp-row{display:none!important}

.friends-active .inner-page>header{position:absolute!important;z-index:4;left:2%;top:16.7cqw;width:96%;height:20.7cqw;display:flex!important;align-items:center;justify-content:center;padding:0 5cqw 0 25cqw!important;margin:0!important;border:0!important;background:url('/assets/wallet-reference/light-title-board-f8eeb622a65c3f62.webp') center/100% 100% no-repeat!important;box-shadow:none!important;text-align:left}
.friends-active .inner-page>header i{position:absolute;left:10%;top:23%;width:12.7cqw;height:12.7cqw;margin:0;background:none!important;border:0!important;box-shadow:none!important}
.friends-active .inner-page>header i img{width:100%;height:100%;object-fit:contain}
.friends-active .inner-page>header>div{min-width:0;width:100%;margin:0!important}
.friends-active .inner-page>header h1{margin:0!important;color:#5a280a!important;font-family:Georgia,serif!important;font-size:7cqw!important;font-weight:900!important;line-height:1!important;text-shadow:0 .15cqw #f9d684!important;white-space:nowrap}
.friends-active .inner-page>header p{margin:.5cqw 0 0!important;color:#865026!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.8cqw!important;font-weight:900!important;line-height:1!important;white-space:nowrap}

.friends-active .invite-card{position:absolute!important;z-index:4;left:1.8%;top:37.1cqw;width:96.4%;height:25.4cqw;display:block!important;margin:0!important;padding:0!important;border:0!important;background:url('/assets/friends-reference/invite-board-cfcde202cbd1f11c.webp') center/100% 100% no-repeat!important;box-shadow:none!important;overflow:visible!important}
.friends-active .invite-avatar{display:none!important}
.friends-active .invite-content{position:absolute!important;left:29%;top:21%;width:48%;height:70%;display:block!important;margin:0!important;padding:0!important;background:none!important}
.friends-active .invite-content>small{display:block!important;margin:0 0 1.3cqw!important;color:#4c230e!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.4cqw!important;font-weight:900!important;line-height:1!important;white-space:nowrap;text-transform:none!important}
.friends-active .referral-link{display:flex!important;align-items:center;justify-content:space-between;width:100%!important;height:7cqw!important;min-height:0!important;margin:0!important;padding:0 .9cqw!important;border:.3cqw solid #caa86b!important;border-radius:1.5cqw!important;background:#fff8e8!important;box-shadow:0 .2cqw .25cqw #73401444!important;color:#35251e!important}
.friends-active .referral-link>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:2.15cqw!important;font-weight:900!important}
.friends-active .referral-link i{flex:none;display:grid;place-items:center;width:4.3cqw;height:4.3cqw;margin-left:.3cqw;padding:0;border-left:.2cqw solid #d5bd91;background:none!important}
.friends-active .referral-link svg{width:3.4cqw;height:3.4cqw;stroke:#66381b}
.friends-active .invite-content>p{display:block!important;margin:1.1cqw 0 0!important;color:#9d8562!important;font-size:1.8cqw!important;font-weight:800!important;line-height:1!important;white-space:nowrap}
.friends-active .invite-content>p svg{display:none!important}
.friends-active .invite-button{position:absolute!important;right:5%;top:33%;width:19.5%;height:9.3cqw;min-height:0!important;display:grid!important;place-items:center;margin:0!important;padding:.6cqw!important;border:.45cqw solid #2e721b!important;border-radius:2.1cqw!important;background:linear-gradient(#7ae63b,#29a62b 75%,#18851d)!important;box-shadow:inset 0 .4cqw #caff96,0 .6cqw #865222!important;color:#fff!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.35cqw!important;font-weight:900!important;line-height:1.03!important;text-align:center!important;text-shadow:0 .2cqw #267920!important}

.friends-active .referral-rules{position:absolute!important;z-index:3;left:2%;top:62.3cqw;width:96%;height:16.9cqw;display:grid!important;grid-template-columns:1fr 1fr;gap:0!important;margin:0!important;padding:1.7cqw 2cqw!important;border:0!important;background:url('/assets/friends-reference/bonus-board-6eb16109aa85e67d.webp') center/100% 100% no-repeat!important;box-shadow:none!important}
.friends-active .referral-rules>div{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-width:0;height:100%;margin:0!important;padding:0 1cqw!important;border:0!important;background:none!important;box-shadow:none!important}
.friends-active .referral-rules img{flex:none;width:10cqw!important;height:10cqw!important;margin:0 1.5cqw 0 0!important;object-fit:contain!important}
.friends-active .referral-rules span{display:flex!important;flex-direction:column;align-items:flex-start;min-width:0;margin:0!important;padding:0!important}
.friends-active .referral-rules b{color:#168b27!important;font-family:Georgia,serif!important;font-size:4.4cqw!important;font-weight:900!important;line-height:1!important}
.friends-active .referral-rules small{color:#6a3c23!important;font-family:Nunito,Arial,sans-serif!important;font-size:1.8cqw!important;font-weight:850!important;line-height:1.05!important;white-space:pre-line!important}

.friends-active .referral-summary{position:absolute!important;z-index:3;left:2%;top:79.2cqw;width:96%;height:17.5cqw;display:grid!important;grid-template-columns:1.5fr repeat(3,1fr);align-items:center!important;gap:0!important;margin:0!important;padding:2.1cqw 3cqw!important;border:0!important;background:url('/assets/friends-reference/summary-board-2be34b7177e86e7d.webp') center/100% 100% no-repeat!important;box-shadow:none!important;color:#fff9e4!important}
.friends-active .referral-summary>div,.friends-active .referral-summary>span{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:0;height:11cqw;margin:0!important;padding:0 .5cqw!important;border:0!important;background:none!important;color:#fff9e4!important;text-align:center!important}
.friends-active .referral-summary>div{align-items:flex-start!important;border-right:.25cqw solid #bd7937!important}
.friends-active .referral-summary small{color:#ffefd0!important;font-family:Nunito,Arial,sans-serif!important;font-size:1.9cqw!important;font-weight:800!important;line-height:1.1!important;white-space:nowrap}
.friends-active .referral-summary strong{display:flex;align-items:center;gap:.6cqw;margin:.5cqw 0 0;color:#fff!important;font-family:Nunito,Arial,sans-serif!important;font-size:4.4cqw!important;font-weight:1000!important;line-height:1!important;white-space:nowrap}
.friends-active .referral-summary strong svg{width:5.2cqw;height:5.2cqw}
.friends-active .referral-summary>span:before{content:'♟';display:block;height:2.8cqw;color:#ffe3a4;font-size:2.6cqw;line-height:1}
.friends-active .referral-summary>span:nth-of-type(2):before{content:'▥'}
.friends-active .referral-summary>span:nth-of-type(3):before{content:'🌱';font-size:2.4cqw}
.friends-active .referral-summary>span b{display:block;color:#fff!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.4cqw!important;font-weight:1000!important;line-height:1!important}
.friends-active .referral-summary>span small{display:block;margin-top:.5cqw!important;font-size:1.6cqw!important}

.friends-active .leaderboard-board{position:absolute!important;z-index:3;left:2%;top:96.9cqw;width:96%;height:60.5cqw;min-height:0!important;display:block!important;margin:0!important;padding:0!important;border:0!important;background:url('/assets/friends-reference/leaderboard-board-29492e8accfcdc1e.webp') center/100% 100% no-repeat!important;box-shadow:none!important;overflow:hidden!important}
.friends-active .leaderboard-title{position:absolute!important;left:14%;top:7%;height:7cqw;margin:0!important;padding:0!important;color:#fff3d8!important;font-family:Georgia,serif!important;font-size:4.5cqw!important;font-weight:900!important;line-height:1!important;text-shadow:0 .3cqw #5a230a!important}
.friends-active .leaderboard-title:before{content:'🏆';position:absolute;left:-8cqw;top:-.8cqw;font-family:Arial,sans-serif;font-size:5.2cqw}
.friends-active .leaderboard-list{position:absolute!important;left:5.5%;right:5.5%;top:17.5%;height:77%;display:grid!important;grid-template-rows:repeat(5,1fr)!important;gap:0!important;margin:0!important;padding:0!important;overflow-y:auto!important;scrollbar-width:none;background:none!important}
.friends-active .leaderboard-list::-webkit-scrollbar{display:none}
.friends-active .leaderboard-list article{display:grid!important;grid-template-columns:9% 11% minmax(0,1fr) auto;align-items:center!important;gap:.5cqw;min-width:0;min-height:0;margin:0!important;padding:0 1.3cqw!important;border:0!important;background:none!important;box-shadow:none!important;color:#4a220f!important}
.friends-active .leader-rank{display:grid!important;place-items:center;width:5.3cqw;height:5.3cqw;margin:0!important;border-radius:50%;background:#f4d09c;color:#a87331!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.5cqw!important;font-weight:1000!important}
.friends-active .leaderboard-list article:first-child .leader-rank{background:#ffbd29;color:#6c390b!important}
.friends-active .leaderboard-list article:nth-child(2) .leader-rank{background:#c6e0f7;color:#39729e!important}
.friends-active .leaderboard-list article:nth-child(3) .leader-rank{background:#f1ad76;color:#8d491f!important}
.friends-active .leaderboard-list article>span{display:grid;place-items:center;width:6.6cqw;height:6.6cqw;overflow:hidden;border:.4cqw solid #e7c887;border-radius:50%;background:#795032;font-size:4cqw}
.friends-active .leaderboard-list article>span img{width:100%;height:100%;object-fit:cover}
.friends-active .leaderboard-list article strong{min-width:0;overflow:hidden;color:#4a220f!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.55cqw!important;font-weight:1000!important;text-overflow:ellipsis;white-space:nowrap}
.friends-active .leaderboard-list article em{display:flex!important;align-items:center;gap:.5cqw;margin:0!important;color:#4a220f!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.45cqw!important;font-style:normal!important;font-weight:1000!important;white-space:nowrap}
.friends-active .leaderboard-list article em svg{width:4.4cqw;height:4.4cqw}

.friends-active .bottom-nav{position:absolute!important;z-index:10;left:50%!important;top:157.6cqw!important;bottom:auto!important;width:97%!important;height:19.2cqw!important;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:.6cqw!important;margin:0!important;padding:1.5cqw 1.7cqw!important;border:.8cqw solid #7a390d!important;border-radius:4cqw!important;background:linear-gradient(#a85b1d,#76340f)!important;box-shadow:inset 0 0 0 .4cqw #d98e38,0 .65cqw #51280c!important;transform:translateX(-50%)!important}
.friends-active .bottom-nav button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:.5cqw;min-width:0;height:100%;padding:0!important;border:.4cqw solid #7b3b16!important;border-radius:2.2cqw!important;background:linear-gradient(#b06429,#78350f)!important;box-shadow:inset 0 .35cqw #df9e54,0 .3cqw #54260e!important;color:#fff5da!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.3cqw!important;font-weight:900!important;text-shadow:0 .2cqw #54270f!important}
.friends-active .bottom-nav button:before{display:none!important}
.friends-active .bottom-nav button svg{width:5.6cqw!important;height:5.6cqw!important;stroke-width:2.6!important;filter:drop-shadow(0 .2cqw .2cqw #3b1b0a)!important}
.friends-active .bottom-nav button.active{border-color:#b2d73f!important;background:linear-gradient(#61d031,#0d8d1f)!important;box-shadow:inset 0 0 0 .45cqw #82df35,inset 0 -.5cqw #086719,0 0 0 .4cqw #e0bf52!important}

/* Clear inherited centering used by the old referral cards. */
.friends-active .invite-button{left:auto!important;right:5%!important;width:19.5%!important;height:9.3cqw!important;transform:none!important}
.friends-active .leaderboard-title{top:16%!important;left:14%!important;width:auto!important;height:auto!important;transform:none!important}
.friends-active .leaderboard-list{left:5.5%!important;right:5.5%!important;top:27%!important;width:89%!important;max-width:none!important;height:68%!important;transform:none!important}

/* Taller bonus and earnings boards, with the link and invite action beside the cat. */
.friends-active .inner-page>header{background-image:url('/assets/wallet-title-frame-v2-Q-RXEF-i-c3b37c90371f3e89.webp')!important}
.friends-active .invite-content{left:38%!important;top:18%!important;width:54%!important;height:42%!important}
.friends-active .invite-content>small{margin-bottom:1.2cqw!important;font-size:2.25cqw!important}
.friends-active .invite-content>p{display:none!important}
.friends-active .invite-button{left:38%!important;right:auto!important;top:60%!important;width:54%!important;height:7.4cqw!important;font-size:2.5cqw!important;white-space:nowrap!important}
.friends-active .referral-rules{top:61.5cqw!important;height:20cqw!important;background-image:url('/assets/friends-reference/bonus-board-thick-3541cffd0477afa5.webp')!important;background-size:100% 150%!important}
.friends-active .referral-rules img{width:11.2cqw!important;height:11.2cqw!important}
.friends-active .referral-rules b{font-size:4.7cqw!important}
.friends-active .referral-rules small{font-size:1.85cqw!important}
.friends-active .referral-summary{top:81.1cqw!important;height:19.5cqw!important;background-image:url('/assets/friends-reference/summary-board-thick-a84ade7e686be7a7.webp')!important;background-size:100% 150%!important}
.friends-active .leaderboard-board{top:100.8cqw!important;height:56.5cqw!important}
.friends-active .leaderboard-title{top:16%!important}
.friends-active .leaderboard-list{top:27%!important;height:68%!important}

/* Farm Wallet title artwork and the deeper cat invitation panel. */
.friends-active .inner-page>header{background-image:url('/assets/wallet-reference/light-title-board-f8eeb622a65c3f62.webp')!important;background-size:100% 150%!important;padding-left:11cqw!important;text-align:center!important}
.friends-active .inner-page>header i{left:7.5%!important;top:3%!important;width:18cqw!important;height:18cqw!important}
.friends-active .inner-page>header>div{transform:translateY(-.3cqw)!important}
.friends-active .invite-card{top:35.5cqw!important;height:36cqw!important;background-image:url('/assets/friends-reference/invite-board-tall-d9e27a0f25f9a855.webp')!important}
.friends-active .invite-content{left:38%!important;top:20%!important;width:54%!important;height:42%!important}
.friends-active .invite-content>small{font-size:2.55cqw!important;margin-bottom:1.5cqw!important}
.friends-active .referral-link{height:8cqw!important}
.friends-active .invite-button{left:38%!important;top:62%!important;width:54%!important;height:8.5cqw!important;font-size:2.8cqw!important}
.friends-active .referral-rules{top:71.2cqw!important;height:19.5cqw!important}
.friends-active .referral-summary{top:90.5cqw!important;height:19cqw!important}
.friends-active .leaderboard-board{top:108.6cqw!important;height:48.6cqw!important}

/* Readable referral bonuses and a tighter invite action. */
.friends-active .invite-button{top:58%!important}
.friends-active .referral-rules>div{padding-left:2.3cqw!important;padding-right:.6cqw!important}
.friends-active .referral-rules img{margin-right:2.25cqw!important}
.friends-active .referral-rules b{font-family:Nunito,Arial,sans-serif!important;font-size:5.25cqw!important;font-weight:1000!important;line-height:1.05!important}
.friends-active .referral-rules small{font-family:Nunito,Arial,sans-serif!important;font-size:2.25cqw!important;font-weight:800!important;line-height:1.08!important}

/* Reference proportions for the earned-coins panel. */
.friends-active .referral-summary{grid-template-columns:48% repeat(3,minmax(0,1fr))!important;padding:2cqw 3cqw!important}
.friends-active .referral-summary>div,.friends-active .referral-summary>span{height:14cqw!important;padding:0!important}
.friends-active .referral-summary>div{align-items:flex-start!important;padding-left:2.5cqw!important;border-right:.23cqw solid #d79248!important}
.friends-active .referral-summary>div small{font-family:Nunito,Arial,sans-serif!important;font-size:2.55cqw!important;font-weight:850!important}
.friends-active .referral-summary strong{gap:1cqw!important;margin-top:1.2cqw!important;font-size:5.5cqw!important;font-variant-numeric:tabular-nums!important}
.friends-active .referral-summary strong svg{width:7cqw!important;height:7cqw!important;flex:none!important}
.friends-active .referral-summary>span:before{content:''!important;width:4.5cqw!important;height:4.5cqw!important;margin:0 auto .45cqw!important;background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important}
.friends-active .referral-summary>span:nth-of-type(1):before{background-image:url('/assets/friends-reference/stat-friends.svg')!important}
.friends-active .referral-summary>span:nth-of-type(2):before{background-image:url('/assets/friends-reference/stat-ads.svg')!important}
.friends-active .referral-summary>span:nth-of-type(3):before{background-image:url('/assets/friends-reference/stat-harvest.svg')!important}
.friends-active .referral-summary>span b{font-size:2.95cqw!important;font-weight:1000!important;font-variant-numeric:tabular-nums!important}
.friends-active .referral-summary>span small{margin-top:.65cqw!important;font-size:1.95cqw!important;font-weight:800!important}

/* Give the leaderboard its own generous space instead of compressing its rows. */
#root:has(.friends-active){overflow:visible!important}
.app-shell.friends-active:before{display:none!important}
.app-shell.friends-active{height:calc(var(--farm-canvas-width) * 2.01)!important;aspect-ratio:auto!important;max-height:none!important;transform:none!important}
.friends-active .inner-page>header i{left:9%!important;top:17%!important;width:13cqw!important;height:13cqw!important}
.friends-active .invite-card{top:37cqw!important}
.friends-active .referral-rules{top:71.5cqw!important}
.friends-active .referral-summary{top:93cqw!important}
.friends-active .leaderboard-board{top:113cqw!important;height:65cqw!important;background-image:url('/assets/friends-reference/leaderboard-board-wide-421cf1581451f4c5.webp')!important}
.friends-active .leaderboard-title{left:14%!important;top:9.5%!important;font-size:4.8cqw!important;line-height:1!important}
.friends-active .leaderboard-list{left:4.7%!important;right:4.7%!important;width:90.6%!important;top:23%!important;height:69.6%!important}
.friends-active .leaderboard-list article>span{width:7cqw!important;height:7cqw!important}
.friends-active .leaderboard-list article strong{font-size:2.75cqw!important}
.friends-active .leaderboard-list article em{font-size:2.7cqw!important}
.friends-active .bottom-nav{top:179cqw!important}
/* A single grid owns the link, full-height copy area and dashed separator. */
.friends-active .invite-card .referral-link{
  display:grid!important;grid-template-columns:minmax(0,1fr) 8cqw!important;
  align-items:stretch!important;padding:0!important;overflow:hidden!important;
  font-family:Nunito,Arial,sans-serif!important;
}
.friends-active .invite-card .referral-link>span{
  align-self:center!important;min-width:0!important;padding:0 2cqw!important;
  font-family:inherit!important;font-size:2.5cqw!important;line-height:1.2!important;
}
.friends-active .invite-card .referral-link>i{
  position:relative!important;align-self:stretch!important;display:grid!important;
  place-items:center!important;width:100%!important;height:100%!important;
  margin:0!important;padding:0!important;border:0!important;background:#fffaf0!important;
}
.friends-active .invite-card .referral-link>i:before{
  content:'';position:absolute;left:0;top:18%;bottom:18%;
  border-left:1.5px dashed #ba925b;
}
.friends-active .invite-card .referral-link>i svg{
  display:block!important;width:4.4cqw!important;height:4.4cqw!important;
  stroke:#75421f!important;stroke-width:2.2!important;
}
.friends-active .invite-card .referral-link:active{filter:brightness(.95);transform:translateY(1px)}
