/* One header geometry for every production page. Telegram owns the window chrome. */
:root{--fruitfy-safe-top:0px;--fruitfy-header-lift:0px;--fruitfy-farm-safe-shift:0px;--fruitfy-nav-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px))}
html{scrollbar-gutter:stable}
.app-shell.app-shell{container-type:inline-size;width:var(--farm-canvas-width,min(100vw,560px,calc(100dvh / 1.772)))!important;max-width:none!important;transform:none!important}
.app-shell.app-shell:not(.farm-active):not(.wallet-active):not(.friends-active){padding-top:0!important;padding-left:0!important;padding-right:0!important;overflow:visible!important;height:auto!important;min-height:100dvh!important}
.app-shell.app-shell:not(.farm-active):not(.wallet-active):not(.friends-active) .page-content{padding-left:10px!important;padding-right:10px!important}
.app-shell.app-shell .topbar{position:absolute!important;z-index:30!important;left:0!important;right:auto!important;top:0!important;width:100%!important;height:18cqw!important;display:block!important;padding:0!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;transform:none!important}
.app-shell.app-shell .topbar .profile-chip{position:absolute!important;left:4%!important;top:4cqw!important;width:10cqw!important;height:11cqw!important;margin:0!important;padding:0!important;border:0!important;background:none!important;transform:none!important}
.app-shell.app-shell .topbar .profile-portrait{width:100%!important;height:100%!important;border:0!important;border-radius:3cqw!important;background:transparent!important;overflow:hidden!important;box-shadow:none!important}
.app-shell.app-shell .topbar .profile-portrait img{width:100%!important;height:100%!important;object-fit:cover!important}
.app-shell.app-shell .topbar .profile-chip>b{position:absolute!important;right:-1cqw!important;bottom:-.5cqw!important;display:grid!important;place-items:center!important;width:4.4cqw!important;height:4.4cqw!important;border:.35cqw solid #e5da80!important;border-radius:50%!important;background:#2da521!important;color:#fff!important;font-size:2.7cqw!important;line-height:1!important}
.app-shell.app-shell .topbar .brand{position:absolute!important;left:15%!important;top:6cqw!important;width:25%!important;min-width:0!important;margin:0!important;color:#ffa20b!important;font-family:Nunito,Arial,sans-serif!important;font-size:4.6cqw!important;font-weight:1000!important;line-height:1!important;white-space:nowrap!important;text-shadow:0 .3cqw #944716,0 .5cqw .3cqw #48230788!important}
.app-shell.app-shell .topbar .brand svg{width:3.5cqw!important;height:3.5cqw!important}
.app-shell.app-shell .topbar .balance{position:absolute!important;top:6cqw!important;height:7cqw!important;min-width:0!important;display:flex!important;align-items:center!important;gap:.45cqw!important;margin:0!important;padding:.3cqw .45cqw!important;border:.5cqw solid #a9570d!important;border-radius:4cqw!important;background:linear-gradient(#a45b1e,#5d2a0a)!important;box-shadow:inset 0 .4cqw #e6a849,0 .4cqw #4a230a!important;color:#fff8e3!important;transform:none!important}
.app-shell.app-shell .topbar .balance.gold{left:auto!important;right:27%!important;width:24%!important}
.app-shell.app-shell .topbar .balance.blue{left:auto!important;right:3%!important;width:21.5%!important}
.app-shell.app-shell .topbar .balance i{display:block!important;flex:none!important;width:6.5cqw!important;height:6.5cqw!important;margin:0 0 0 -1cqw!important;padding:0!important;border:0!important;background:none!important}
.app-shell.app-shell .topbar .balance i img{width:100%!important;height:100%!important;object-fit:contain!important}
.app-shell.app-shell .topbar .balance strong{flex:1!important;min-width:0!important;margin:0!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.6cqw!important;font-weight:1000!important;line-height:1!important;text-align:center!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important}
.app-shell.app-shell .topbar .balance button{position:relative!important;display:grid!important;place-items:center!important;flex:none!important;width:4.6cqw!important;height:4.6cqw!important;min-width:0!important;padding:0!important;margin:0!important;border:.3cqw solid #347319!important;border-radius:50%!important;background:linear-gradient(#8de44d,#37ab24 70%,#198421)!important;box-shadow:inset 0 .25cqw #c8ff98!important;color:#fff!important;font-size:0!important}
.app-shell.app-shell .topbar .balance button svg{display:none!important}
.app-shell.app-shell .topbar .balance button:before{content:'+'!important;display:block!important;position:static!important;color:#fff!important;font-family:Arial,sans-serif!important;font-size:4cqw!important;font-weight:700!important;line-height:1!important;background:none!important;width:auto!important;height:auto!important;transform:none!important}
.app-shell.app-shell .topbar .balance button:after{content:none!important;display:none!important}
.app-shell.app-shell.farm-active .topbar{position:relative!important;height:17cqw!important}
.app-shell.app-shell:not(.farm-active):not(.wallet-active):not(.friends-active) .topbar{position:relative!important;height:19cqw!important}

/* A stable viewport frame: only the content pane scrolls between header and tabs. */
html,body{height:100%!important;overflow:hidden!important;scrollbar-gutter:auto!important}
#root#root{position:fixed!important;inset:0!important;height:100dvh!important;min-height:0!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;overflow:hidden!important}
.app-shell.app-shell.app-shell{position:relative!important;flex:none!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;aspect-ratio:auto!important;padding:0!important;margin:0!important;overflow:hidden!important;transform:none!important}
.app-shell.app-shell.app-shell .topbar{position:absolute!important;left:0!important;top:0!important;height:17cqw!important}
.app-shell.app-shell.app-shell .page-content{position:absolute!important;left:0!important;right:0!important;top:17cqw!important;bottom:22cqw!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-width:none!important;padding-top:0!important;padding-bottom:2cqw!important;touch-action:pan-y!important}
.app-shell.app-shell .page-content::-webkit-scrollbar{display:none!important}
.app-shell.app-shell.wallet-active .fruit-wallet-page{position:relative!important;inset:auto!important;height:137cqw!important}
.app-shell.app-shell.wallet-active .inner-page{top:-17cqw!important;bottom:auto!important;height:154cqw!important}
.app-shell.app-shell.friends-active .inner-page{top:-17cqw!important;bottom:auto!important;height:178cqw!important}
.app-shell.app-shell.app-shell .bottom-nav{position:absolute!important;z-index:40!important;left:50%!important;right:auto!important;top:auto!important;bottom:2cqw!important;width:97%!important;max-width:none!important;height:19.2cqw!important;min-height:0!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}
.app-shell.app-shell.app-shell .bottom-nav button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:.5cqw!important;min-width:0!important;min-height:0!important;height:100%!important;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}
.app-shell.app-shell.app-shell .bottom-nav button:before{display:none!important}
.app-shell.app-shell.app-shell .bottom-nav button svg{width:5.6cqw!important;height:5.6cqw!important;stroke-width:2.6!important}
.app-shell.app-shell.app-shell .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}
.app-shell.app-shell .topbar,.app-shell.app-shell .bottom-nav{transition:none!important;animation:none!important}
.app-shell.app-shell.wallet-active .fruit-wallet-page{height:139cqw!important}
.app-shell.app-shell.wallet-active .inner-page{height:156cqw!important}

/* Render the complete decorative board outside its content box. */
.wallet-active .inner-page>header{--board-art:url('/assets/wallet-reference/light-title-board-f8eeb622a65c3f62.webp');--board-overhang:25%}
.wallet-active .farm-balance-grid{--board-art:url('/assets/wallet-reference/balance-two-cards-8d1db25fa702ded2.webp');--board-overhang:22.5%}
.wallet-active .farm-wallet-actions{--board-art:url('/assets/wallet-reference/action-two-buttons-71d8901ce82d1db9.webp');--board-overhang:22.5%}
.wallet-active .farm-connect-wallet{--board-art:url('/assets/wallet-reference/light-panel-board-5f5700abe0f9c8e9.webp');--board-overhang:22.5%}
.wallet-active .farm-wallet-promo{--board-art:url('/assets/wallet-reference/light-panel-board-5f5700abe0f9c8e9.webp');--board-overhang:30%}
.friends-active .inner-page>header{--board-art:url('/assets/wallet-reference/light-title-board-f8eeb622a65c3f62.webp');--board-overhang:25%}
.friends-active .referral-rules{--board-art:url('/assets/friends-reference/bonus-board-thick-3541cffd0477afa5.webp');--board-overhang:25%}
.friends-active .referral-summary{--board-art:url('/assets/friends-reference/summary-board-thick-a84ade7e686be7a7.webp');--board-overhang:25%}
.app-shell.wallet-active .inner-page>header,
.app-shell.wallet-active .farm-balance-grid,
.app-shell.wallet-active .farm-wallet-actions,
.app-shell.wallet-active .farm-connect-wallet,
.app-shell.wallet-active .farm-wallet-promo,
.app-shell.friends-active .inner-page>header,
.app-shell.friends-active .referral-rules,
.app-shell.friends-active .referral-summary{
  isolation:isolate!important;overflow:visible!important;background:none!important;
}
.app-shell.wallet-active .inner-page>header:before,
.app-shell.wallet-active .farm-balance-grid:before,
.app-shell.wallet-active .farm-wallet-actions:before,
.app-shell.wallet-active .farm-connect-wallet:before,
.app-shell.wallet-active .farm-wallet-promo:before,
.app-shell.friends-active .inner-page>header:before,
.app-shell.friends-active .referral-rules:before,
.app-shell.friends-active .referral-summary:before{
  content:''!important;display:block!important;position:absolute!important;
  inset:calc(0% - var(--board-overhang)) 0!important;
  width:auto!important;height:auto!important;z-index:-1!important;
  background:var(--board-art) center/100% 100% no-repeat!important;
  border:0!important;box-shadow:none!important;transform:none!important;
  pointer-events:none!important;
}

/* Wallet and Friends title boards occupy exactly the same canvas rectangle. */
.app-shell.app-shell.friends-active .inner-page>header,
.app-shell.app-shell.wallet-active .inner-page>header{
  left:3%!important;top:22.5cqw!important;width:94%!important;height:19.5cqw!important;
  --board-overhang:25%;
}
.app-shell.app-shell.friends-active .invite-card{top:42.8cqw!important}
.app-shell.app-shell.friends-active .referral-rules{top:77.3cqw!important}
.app-shell.app-shell.friends-active .referral-summary{top:98.8cqw!important}
.app-shell.app-shell.friends-active .leaderboard-board{top:118.8cqw!important}
.app-shell.app-shell.friends-active .inner-page{height:183.8cqw!important}
.app-shell.app-shell.friends-active .inner-page>header{min-height:0!important;max-height:none!important;box-sizing:border-box!important}

/* Task uses the same complete title board and coordinates as Wallet/Friends. */
.app-shell.app-shell.tasks-active .page-content{padding-left:0!important;padding-right:0!important}
.app-shell.tasks-active .task-screen{top:0!important;width:100%!important;margin:0!important;padding:0!important}
.app-shell.tasks-active .task-board-title{
  position:relative!important;left:3%!important;top:auto!important;
  width:94%!important;height:19.5cqw!important;min-height:0!important;
  margin:5.5cqw 0 3cqw!important;padding:0 4cqw 0 11cqw!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:none!important;border:0!important;box-shadow:none!important;
  overflow:visible!important;isolation:isolate!important;text-align:center!important;
}
.app-shell.tasks-active .task-board-title:before{
  content:''!important;position:absolute!important;inset:-25% 0!important;
  width:auto!important;height:auto!important;transform:none!important;z-index:-1!important;
  background:url('/assets/wallet-reference/light-title-board-f8eeb622a65c3f62.webp') center/100% 100% no-repeat!important;
  pointer-events:none!important;
}
.app-shell.tasks-active .task-board-title:after{content:none!important;display:none!important}
.app-shell.tasks-active .shared-task-title-icon{position:absolute;left:9%;top:17%;width:13cqw;height:13cqw}
.app-shell.tasks-active .shared-task-title-icon img{width:100%;height:100%;object-fit:contain}
.app-shell.tasks-active .shared-task-title-copy{width:100%;min-width:0;transform:translateY(-.65cqw)}
.app-shell.tasks-active .shared-task-title-copy 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}
.app-shell.tasks-active .shared-task-title-copy p{margin:.3cqw 0 0;color:#986332;font-family:Nunito,Arial,sans-serif;font-size:2.35cqw;font-weight:900;line-height:1.1;white-space:nowrap}
.app-shell.tasks-active .task-screen>section,.app-shell.tasks-active .adsgram-task-wrap{width:94%!important;margin-left:3%!important;margin-right:3%!important}
.app-shell.app-shell.tasks-active .task-screen{max-width:none!important;left:0!important;right:auto!important;box-sizing:border-box!important}
.app-shell.app-shell.app-shell.app-shell.app-shell.tasks-active .page-content{padding-left:0!important;padding-right:0!important}
.app-shell.tasks-active .shared-task-title-icon{left:6%!important;top:0!important;width:20cqw!important;height:19.5cqw!important}

/* Farm is a fixed game canvas, not a scrolling content page. */
.app-shell.app-shell.app-shell.farm-active .page-content{
  overflow:hidden!important;overscroll-behavior:none!important;touch-action:none!important;
}
.app-shell.tasks-active .shared-task-title-icon{
  left:3%!important;top:-3cqw!important;width:26cqw!important;height:25.5cqw!important;
}
.app-shell.tasks-active .shared-task-title-icon{left:4%!important;top:-2cqw!important;width:24cqw!important;height:23.5cqw!important}

/* Reference advertisement cards: full light boards, live controls above them. */
.app-shell.tasks-active .shared-task-title-icon{left:6%!important;top:1cqw!important;width:18cqw!important;height:17.5cqw!important}
.app-shell.tasks-active .task-screen .ad-task-card{
  height:45cqw!important;min-height:0!important;max-height:none!important;
  padding:0!important;border:0!important;border-radius:0!important;
  background:url('/assets/wallet-reference/task-ad-light-board-63e3ea77368ac1f7.webp') center/100% 100% no-repeat!important;
  overflow:visible!important;box-shadow:none!important;
}
.app-shell.tasks-active .ad-task-card:before{display:none!important}
.app-shell.tasks-active .task-screen .ad-task-visual{display:none!important}
.app-shell.tasks-active .task-screen .ad-task-copy{top:14%!important;left:7%!important;right:auto!important;width:57%!important}
.app-shell.tasks-active .ad-task-copy small{color:#634323!important;font-family:Nunito,Arial,sans-serif!important;font-size:1.7cqw!important;font-weight:900!important}
.app-shell.tasks-active .ad-task-copy small:before{content:'📣';position:absolute;left:-3.7cqw;top:-.4cqw;font-size:3.2cqw}
.app-shell.tasks-active .task-screen .ad-task-copy h2{font-size:4.5cqw!important;line-height:1!important;margin:.7cqw 0 .6cqw!important;white-space:nowrap!important}
.app-shell.tasks-active .task-screen .ad-task-copy p{font-family:Nunito,Arial,sans-serif!important;font-size:1.8cqw!important;line-height:1.1!important;margin:0 0 1.5cqw!important;white-space:nowrap!important}
.app-shell.tasks-active .task-screen .ad-rewards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:.6cqw!important;transform:none!important}
.app-shell.tasks-active .task-screen .ad-rewards span{grid-column:auto!important;width:auto!important;min-width:0!important;height:7.6cqw!important;padding:.5cqw!important;gap:.5cqw!important;background:#fff3d5b8!important;border:.2cqw solid #edcf8e!important;border-radius:1.7cqw!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.3cqw!important}
.app-shell.tasks-active .ad-rewards span>img,.app-shell.tasks-active .ad-rewards span>svg{width:5cqw!important;height:5cqw!important;flex:none!important;object-fit:contain!important}
.app-shell.tasks-active .ad-rewards span>div{display:flex;flex-direction:column;min-width:0}
.app-shell.tasks-active .ad-rewards span b{font-size:2.4cqw;color:#158420;line-height:1.1}
.app-shell.tasks-active .ad-rewards span small{font-size:1.55cqw!important;color:#624c26!important;line-height:1.1}
.app-shell.tasks-active .ad-rewards span small:before{display:none!important}
.app-shell.tasks-active .task-screen .ad-task-progress{left:7%!important;right:7%!important;bottom:28%!important;display:grid!important;grid-template-columns:minmax(0,1fr) 9cqw!important;gap:1.5cqw!important;align-items:center!important}
.app-shell.tasks-active .task-screen .ad-task-progress>div{height:2.6cqw!important;border:0!important;background:#788737!important;box-shadow:inset 0 .3cqw .3cqw #4e602a77!important}
.app-shell.tasks-active .task-screen .ad-task-progress b{position:static!important;color:#4d3716!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.7cqw!important;line-height:1!important;text-shadow:none!important}
.app-shell.tasks-active .task-screen .ad-task-card>.wood-action{position:absolute!important;left:5.5%!important;right:5.5%!important;bottom:8%!important;width:89%!important;height:8.5cqw!important;padding:0!important;border:.35cqw solid #459622!important;border-radius:3cqw!important;background:linear-gradient(#82dc35,#20961e)!important;box-shadow:inset 0 .35cqw #b3f378,0 .35cqw #995a2166!important;color:#fff!important;font-family:Nunito,Arial,sans-serif!important;font-size:3.7cqw!important;line-height:1!important;text-shadow:none!important}
.app-shell.tasks-active .ad-task-card>.wood-action:before{content:"";display:inline-block;vertical-align:middle;width:3.8cqw;height:3.8cqw;margin-right:1.5cqw;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5c0-1.2 1.3-1.9 2.3-1.3l10 6.5a1.5 1.5 0 0 1 0 2.6l-10 6.5C9.3 20.4 8 19.7 8 18.5z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5c0-1.2 1.3-1.9 2.3-1.3l10 6.5a1.5 1.5 0 0 1 0 2.6l-10 6.5C9.3 20.4 8 19.7 8 18.5z'/%3E%3C/svg%3E") center/contain no-repeat}
.app-shell.tasks-active .task-screen .adsgram-task-wrap{position:relative!important;isolation:isolate!important;margin-top:0!important;padding:0!important;height:20cqw!important;flex:none!important;overflow:visible!important;background:none!important}
.app-shell.tasks-active .adsgram-task-wrap:before{content:'';position:absolute;inset:-5cqw 0;z-index:-1;background:url('/assets/wallet-reference/task-adsgram-light-board-4eb3ed9293fe5196.webp') center/100% 100% no-repeat;pointer-events:none}
.app-shell.tasks-active .task-screen .adsgram-task-wrap>.fruitfy-adsgram-native{height:20cqw!important;min-height:0!important;padding:3.3cqw 4.5cqw!important;background:none!important;overflow:visible!important;--adsgram-task-font-family:Nunito,Arial,sans-serif;--adsgram-task-font-size:2.8cqw;--adsgram-task-icon-size:11cqw;--adsgram-task-button-width:23cqw;--adsgram-task-button-height:7cqw}
.app-shell.tasks-active .task-screen .fruitfy-adsgram-action{width:23cqw!important;height:7cqw!important;flex-basis:23cqw!important;transform:none!important;border:.35cqw solid #459622!important;border-radius:2.6cqw!important;background:linear-gradient(#82dc35,#20961e)!important;box-shadow:inset 0 .3cqw #b3f378!important;font-family:Nunito,Arial,sans-serif!important;font-size:2.8cqw!important;text-shadow:none!important}
.app-shell.tasks-active .fruitfy-adsgram-slot-reward{font-family:Nunito,Arial,sans-serif!important;font-size:2.7cqw!important}

/* A deeper lower compartment gives the progress and action their own space. */
.app-shell.tasks-active .task-board-title{margin-bottom:0!important}
.app-shell.tasks-active .task-screen .ad-task-card{height:54cqw!important;background-image:url('/assets/wallet-reference/task-ad-light-board-deep-760d0da7cabedc8f.webp')!important}
.app-shell.tasks-active .task-screen .ad-task-copy{top:6.3cqw!important}
.app-shell.tasks-active .task-screen .ad-task-progress{bottom:16cqw!important}
.app-shell.tasks-active .task-screen .ad-task-card>.wood-action{bottom:5.5cqw!important}
.app-shell.tasks-active .ad-rewards span:nth-child(2)>img,.app-shell.tasks-active .ad-rewards span:nth-child(3)>img{width:5.6cqw!important;height:5.6cqw!important}

/* Scale the entire Task composition from the live canvas width. */
.app-shell.tasks-active .task-screen{gap:1.2cqw!important;margin-bottom:0!important;padding-bottom:4cqw!important;min-width:0!important}
.app-shell.tasks-active .task-board-title div{padding:0!important}
.app-shell.tasks-active .task-screen .ad-task-card,.app-shell.tasks-active .task-screen .adsgram-task-wrap{min-width:0!important;box-sizing:border-box!important}
.app-shell.tasks-active .task-screen .ad-task-card>.wood-action{min-width:0!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important}
.app-shell.tasks-active .task-screen .fruitfy-adsgram-native{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;--adsgram-task-icon-border-radius:2.5cqw;--adsgram-task-icon-title-gap:1.8cqw;--adsgram-task-button-border-radius:2.6cqw}
.app-shell.tasks-active .fruitfy-adsgram-slot-reward{gap:1cqw!important;margin-top:1cqw!important}
.app-shell.tasks-active .fruitfy-adsgram-slot-reward .coin-inline{width:4cqw!important;height:4cqw!important}
.app-shell.tasks-active .task-screen .partner-tasks{gap:1cqw!important}
.app-shell.tasks-active .task-screen .partner-tasks>header{height:9cqw!important;border-radius:2.4cqw!important}
.app-shell.tasks-active .task-screen .partner-tasks header h2{font-size:3.3cqw!important}

/* Five asset-backed tabs share a single stable navigation frame. */
.app-shell.app-shell.app-shell.app-shell .bottom-nav{
  display:block!important;width:100%!important;height:21.35cqw!important;
  bottom:1cqw!important;padding:0!important;border:0!important;border-radius:0!important;
  background:url('/assets/wallet-reference/navigation-wood-7454e37ba26c04ce.webp') center/100% 100% no-repeat!important;
  box-shadow:none!important;overflow:visible!important;
}
.app-shell.app-shell.app-shell.app-shell .page-content{bottom:24.4cqw!important}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button{
  position:absolute!important;top:14%!important;bottom:auto!important;
  width:18%!important;height:65%!important;min-height:0!important;min-width:0!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:19%!important;
  background:none!important;box-shadow:none!important;font-size:0!important;color:transparent!important;
  text-shadow:none!important;overflow:hidden!important;transition:none!important;
}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button>*{visibility:hidden!important;pointer-events:none!important}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button[data-fruitfy-tab='farm']{left:5%!important;--nav-x:6.1%}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button[data-fruitfy-tab='market']{left:23%!important;--nav-x:28.05%}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button[data-fruitfy-tab='task']{left:41%!important;--nav-x:50%}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button[data-fruitfy-tab='friends']{left:59%!important;--nav-x:71.95%}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button[data-fruitfy-tab='wallet']{left:77%!important;--nav-x:93.9%}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button[data-fruitfy-tab='admin']{display:none!important}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button.active{
  background:url('/assets/wallet-reference/navigation-green-c5dbc0dccd515e90.webp') var(--nav-x) 40%/555.555% 153.846% no-repeat!important;
  box-shadow:none!important;border:0!important;
}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button:focus-visible{outline:.5cqw solid #fff3b0!important;outline-offset:-.6cqw!important}
.app-shell.tasks-active .ad-limit-note{position:absolute;left:7%;right:7%;bottom:19.8cqw;margin:0;color:#765b33;font-family:Nunito,Arial,sans-serif;font-size:2cqw;font-weight:800;line-height:1.15;text-align:left}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button.active{background-size:555.555% 240.3%!important;background-position:var(--nav-x) 46.2%!important}
/* The platform is an isolated transparent asset, with no scene behind it. */
.app-shell.app-shell.app-shell.app-shell .bottom-nav{background-image:url('/assets/wallet-reference/navigation-platform-bc77b6a3a380e5c9.webp')!important;background-size:100% 155.7%!important;background-position:center 50%!important}

/* Decorative foliage can extend beyond the navigation hit-area. */
.app-shell.app-shell.app-shell.app-shell .bottom-nav{background:none!important;isolation:isolate!important;overflow:visible!important;bottom:2cqw!important}
.app-shell.app-shell.app-shell.app-shell .bottom-nav:after{
  content:''!important;display:block!important;position:absolute!important;
  inset:-27.85% 0!important;z-index:-1!important;
  background:url('/assets/wallet-reference/navigation-platform-leaves-b0272e609a20a510.webp') center/100% 100% no-repeat!important;
  pointer-events:none!important;clip-path:none!important;
}
.app-shell.app-shell.app-shell.app-shell .bottom-nav:after{background-image:url('/assets/wallet-reference/navigation-platform-clean-5c769d07ccf77f54.webp')!important}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button.active{background-image:url('/assets/wallet-reference/navigation-green-clean-83866ba992bb9355.webp')!important}
/* Keep the selected sprite inside its button face; exclude the shared frame edge. */
.app-shell.app-shell.app-shell.app-shell .bottom-nav button.active{clip-path:inset(5% 1.5% 2% round 15%)!important}

/* Bare wooden frame: no outer foliage or flowers. */
.app-shell.app-shell.app-shell.app-shell .bottom-nav:after{background-image:url('/assets/wallet-reference/navigation-platform-bare-459670505e266418.webp')!important}

/* Clip transparent sprite padding and let the content meet the frame naturally. */
.app-shell.app-shell.app-shell.app-shell .bottom-nav:after{clip-path:inset(20.5% 0 20%)!important}
.app-shell.app-shell.app-shell.app-shell:not(.farm-active) .page-content{bottom:22.3cqw!important}
.app-shell.app-shell.app-shell.app-shell.fruitfy-modal-open .bottom-nav{visibility:hidden!important;pointer-events:none!important}

/* Small cream and wood notifications, with wrapping on narrow screens. */
.toast.toast{
  width:max-content!important;max-width:min(86vw,340px)!important;
  min-height:0!important;box-sizing:border-box!important;
  top:calc(var(--fruitfy-safe-top,0px) + 12px)!important;
  gap:8px!important;padding:9px 13px!important;
  border:2px solid #b8772e!important;border-radius:14px!important;
  background:linear-gradient(135deg,#fff8df,#ffe6ae)!important;
  color:#593216!important;box-shadow:inset 0 1px #fffdf1,0 4px 12px #44260938!important;
  font-family:Nunito,Arial,sans-serif!important;font-size:13px!important;
  font-weight:800!important;line-height:1.3!important;white-space:normal!important;
  overflow-wrap:anywhere!important;text-shadow:none!important;
}
.toast.toast svg{width:18px!important;height:18px!important;flex:none!important;color:#42972b!important;stroke-width:2.5!important}
@media(prefers-reduced-motion:no-preference){.toast.toast{animation:fruitfy-toast-in .18s ease-out}}
@keyframes fruitfy-toast-in{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}

/* Sprite art has no baked lettering; labels follow the live app language. */
.app-shell.app-shell.app-shell.app-shell .bottom-nav:after{background-image:url('/assets/wallet-reference/navigation-platform-localizable-1a0b97cde4c4d0de.webp')!important}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button.active{background-image:url('/assets/wallet-reference/navigation-green-localizable-8449d99992a8a769.webp')!important}
.app-shell.app-shell.app-shell.app-shell .bottom-nav button:after{
  content:attr(data-nav-label)!important;position:absolute!important;
  left:0!important;right:0!important;bottom:15%!important;
  color:#fff2d4!important;font-family:Nunito,Arial,sans-serif!important;
  font-size:2.6cqw!important;font-weight:1000!important;line-height:1.1!important;
  text-align:center!important;text-shadow:0 .3cqw .1cqw #3f220f!important;
  pointer-events:none!important;white-space:nowrap!important;
}
.app-shell[data-language='ru'] .bottom-nav button:after{font-size:2.45cqw!important}
.app-shell[data-language='ru'] .farm-history-panel>header strong{font-size:3.5cqw!important}
.app-shell[data-language='ru'] .farm-connect-wallet strong{font-size:3cqw!important}
.app-shell[data-language='ru'] .farm-wallet-actions>button{font-size:3cqw!important}
.app-shell[data-language='ru'] .ad-task-copy h2{font-size:4.3cqw!important}
.app-shell.app-shell[data-language='ru'].wallet-active .inner-page>header h1{font-size:5.8cqw!important}
.app-shell[data-language='ru'] .daily-card>strong{font-size:2.7cqw!important}
.app-shell[data-language='en'] .referral-rules small{font-size:2.3cqw!important}
/* Keep long Russian sale labels inside their wooden button. */
.app-shell[data-language="ru"] .market-hero-copy h1 { font-size: 5.8cqw !important; }
.app-shell[data-language="ru"] .market-listing button.fruitfy-sell-one strong {
  font-size: min(3.2cqw, 15px) !important;
  line-height: 1.1;
  white-space: nowrap;
}
.market-listing button, .market-wood-tabs button {
  transition: transform 100ms ease, filter 100ms ease;
}
.market-listing button:not(:disabled):active, .market-wood-tabs button:active {
  transform: translateY(2px) scale(.96);
  filter: brightness(.9);
}
.app-shell .toast.toast{top:max(12px,env(safe-area-inset-top),var(--tg-content-safe-area-inset-top,0px))!important;bottom:auto!important;z-index:600!important}
.wallet-form .exchange-direction{margin:0 0 12px;font-weight:900;text-align:center;color:#754119}
.wallet-form .wallet-form-note{line-height:1.55}
.app-shell.app-shell .topbar .profile-chip{filter:none!important}
.app-shell .topbar .profile-chip:before,.app-shell .topbar .profile-chip:after{content:none!important;display:none!important}
.app-shell.app-shell .topbar .profile-portrait{inset:0!important;width:10cqw!important;height:10cqw!important;border-radius:50%!important;background:#fff3d533!important}
.app-shell.app-shell .topbar .profile-portrait img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;transform:none!important;object-fit:cover!important;object-position:center!important}

/* Sheets live outside the constrained game canvas and follow the keyboard viewport. */
body>.modal-backdrop{top:var(--fruitfy-modal-top,0px)!important;bottom:auto!important;left:0!important;right:0!important;height:var(--fruitfy-modal-height,100dvh)!important;box-sizing:border-box!important;z-index:1000!important;padding:12px!important;overflow:hidden!important}
body>.modal-backdrop>.sheet{flex:none!important;box-sizing:border-box!important;width:min(100%,470px)!important;min-width:0!important;max-height:calc(var(--fruitfy-modal-height,100dvh) - 24px)!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y}
body>.modal-backdrop input{font-size:16px!important}

/* Notifications share the body layer with sheets and stay above their backdrop. */
body>.toast.toast{position:fixed!important;left:50%!important;right:auto!important;top:calc(var(--fruitfy-modal-top,0px) + max(12px,env(safe-area-inset-top),var(--tg-content-safe-area-inset-top,0px)))!important;bottom:auto!important;z-index:10000!important;display:flex!important;align-items:center!important;transform:translateX(-50%)!important;pointer-events:none!important}
/* Keep tabs and the content pane above the device's system navigation area. */
.app-shell.app-shell.app-shell.app-shell .bottom-nav{bottom:calc(2cqw + var(--fruitfy-nav-safe-bottom))!important}
.app-shell.app-shell.app-shell.app-shell .page-content{bottom:calc(22cqw + var(--fruitfy-nav-safe-bottom))!important}
