/* Reference artwork: genuine raster assets, no simulated glossy button. */
:root{--atlas:none;--ink:#082900;--nav-h:86px}
html{background:#eef2e5;color:var(--ink);font-family:Arial,Helvetica,sans-serif}
.app{max-width:480px;padding:calc(22px + env(safe-area-inset-top) + var(--tg-content-safe-area-inset-top,0px)) 15px calc(112px + env(safe-area-inset-bottom));background:#eef3e3 url('/static/art/background.webp') center center/100% 100dvh no-repeat;background-attachment:local;min-height:100dvh}
.app:before,.app:after{display:none}.demo{display:none!important}.glass{background:linear-gradient(115deg,#ffffffe0,#f7fbf0a6 53%,#ffffffe0);border:1px solid #ffffffed;border-radius:23px;box-shadow:0 5px 18px #6b8b2530,inset 0 1px 1px white}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.game-page{height:calc(100dvh - 146px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--tg-content-safe-area-inset-top,0px));min-height:470px;position:relative;display:flex;flex-direction:column}
.balance-card{border-radius:25px;padding:7px 13px 7px 10px;gap:13px;min-height:88px;flex-shrink:0}.balance-card>strong{font-size:21px;letter-spacing:-.5px;font-weight:700}.balance{gap:3px}.balance strong{font-size:49px;letter-spacing:-2px;font-weight:800}.avatar{background:none;border:0;box-shadow:none;width:76px;height:76px;display:block}.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar .default-avatar{border:0}.avatar .telegram-avatar{border:3px solid #efcc4f;box-shadow:0 0 0 1px #fff4b0,inset 0 0 0 1px #9b6b00}.balance-card>.avatar:after,.profile-card>.avatar:after{width:18px;height:18px;right:0;bottom:0;border:2px solid white;box-shadow:0 0 5px #cfff78}
.gold-coin{border:0!important;box-shadow:none!important;transform:none!important;background:var(--atlas) 0 0/400% 400% no-repeat!important;width:57px;height:62px;border-radius:0;display:inline-block}.gold-coin .icon{display:none}.play{height:auto;max-height:none;min-height:0!important;flex:1;display:grid;place-items:center;width:100%;margin:0}.button-wrap{width:calc(100% + 6px);max-width:none;aspect-ratio:1;margin:0;transform:translateY(3px)}.button-wrap:before,.button-wrap:after{display:none}.money-button{border:0;border-radius:50%;background:transparent;box-shadow:none;display:block;padding:0;position:relative;transform:translateZ(0);transition:transform 65ms ease-out;will-change:transform}.money-button:before,.money-button:after{display:none}.button-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}.money-button:active{transform:scale(.965)}.money-button:disabled{opacity:.78}.pop{right:15%;top:13%;z-index:2;text-shadow:0 2px 5px #efffd1}.game-status{position:absolute;bottom:-2px;left:0;right:0;margin:0;z-index:1}.game-status .subtle{font-size:11px;max-width:260px;margin:5px auto;color:#52663e}.game-status .syncing{font-size:10px;color:#687e53}.queue-card{position:absolute;bottom:24px;left:18px;right:18px;width:calc(100% - 36px);margin:0;box-shadow:0 2px 15px #5a841221;background:#fafff0eb;z-index:2;font-size:11px}.queue-card[hidden]{display:none}.game-status:has(#resumeSelfie:not([hidden])){bottom:0}.game-status .primary{min-height:39px;padding:8px 12px}
.bottom-nav{bottom:calc(17px + env(safe-area-inset-bottom));max-width:452px;width:calc(100% - 28px);height:var(--nav-h);padding:5px;border-radius:28px;background:linear-gradient(125deg,#ffffffd9,#f5f8ebd9);box-shadow:0 6px 20px #617a2822;backdrop-filter:blur(12px)}.bottom-nav button{min-height:0;border-radius:24px;padding:1px 0 4px;gap:2px;font-size:15px;font-weight:500;color:#777d6b}.bottom-nav .icon{width:38px;height:38px;stroke-width:1.6}.bottom-nav button.active{color:#0c3400;background:radial-gradient(ellipse at 50% 25%,#e5ffd1,#e7f3d6 73%);font-weight:600}.bottom-nav button.active>.icon{width:43px;height:43px;filter:none;background:var(--atlas) 33.333333% 0/400% 400% no-repeat}.bottom-nav button.active>.icon use{display:none}#navProfile.active>.icon{background-position:66.666667% 33.333333%}#navRanking.active>.icon{background-position:100% 33.333333%}#navGame:not(.active)>.icon{border:2px solid #7c8172;border-radius:50%;padding:4px}
.page h1{font-size:31px;font-weight:800;letter-spacing:-1px;margin:3px 0 15px;line-height:1.06}.page-heading{margin-bottom:0;gap:9px}.page-heading h1{margin-bottom:0}.period{border:1px solid white;background:#f7faefc9;color:#11280a;font-size:11px;padding:9px 11px;gap:6px;min-height:32px}.period .icon{width:17px;height:17px}.period-arrow{font-size:19px;font-weight:700;margin-left:10px;line-height:10px}
#rankingStatus:empty,#profileStatus:empty{display:none}.podium{height:218px;min-height:0;margin:0 0 9px;padding:43px 12px 0;gap:8px;position:relative}.podium:after{content:"";position:absolute;bottom:-7px;left:-15px;right:-15px;height:25px;border-radius:50%;background:radial-gradient(ellipse,#ffffffb8,transparent 72%);pointer-events:none}.podium-card{height:143px;flex:1;border-radius:22px 22px 0 0;padding:6px 4px 8px;background:radial-gradient(ellipse at 25% 0%,#ffffffd9,transparent 38%),linear-gradient(110deg,#b5beaa,#82916e 52%,#d0d9bf);box-shadow:inset 0 1px 3px #fff,inset 0 0 7px #fff8,0 0 0 1px #abb499}.podium-card.first{height:180px;flex:1.2;background:radial-gradient(ellipse at 30% 1%,#ddfca1cc,transparent 40%),linear-gradient(115deg,#a8d84b,#417808 55%,#6c9f22 85%,#d9fa9e);box-shadow:inset 0 1px 3px #fff,inset 0 0 6px #eaff9b,0 0 0 1px #9cce43,0 0 15px #d7ff8b}.podium-card.third{height:137px;background:radial-gradient(ellipse at 20% 0%,#fffbc5d9,transparent 38%),linear-gradient(115deg,#ddc77d,#a28a45 55%,#dbc78c);box-shadow:inset 0 1px 3px #fff,inset 0 0 7px #fff6,0 0 0 1px #b8a56a}.podium-card .avatar{width:58px;height:58px}.podium-card.first .avatar{width:73px;height:73px}.podium-card .name{margin-top:4px;font-size:13px;line-height:1.2;max-width:100%}.podium-card strong{font-size:18px;margin:5px 0 4px;font-weight:700;letter-spacing:-.3px}.podium-card.first strong{font-size:22px}.podium-card .gold-coin{width:26px;height:27px;border-radius:0}.podium-crown{top:-36px;width:56px;height:42px;filter:none;background:var(--atlas) 33.333333% 66.666667%/400% 400% no-repeat}.podium-crown .icon,.podium-place{display:none}.first .podium-crown{top:-46px;width:68px;height:54px;background-position:0 66.666667%}.third .podium-crown{background-position:66.666667% 66.666667%}.rank-row{min-height:40px;padding:3px 14px;gap:9px;border-radius:17px;background:#ffffffb5;border:1px solid #ffffffe0;box-shadow:0 3px 9px #71804b0c}.ranking-list{gap:4px}.rank-row.mine{background:linear-gradient(110deg,#e8facdcc,#edffdcbb);border-color:#a4d765;box-shadow:0 0 9px #eaffb3}.rank-number{font-size:14px;width:24px}.rank-row .avatar{width:33px;height:33px}.rank-name{font-size:14px;color:#4d5b43}.mine .rank-name,.mine .rank-number{color:#17350a;font-weight:700}.rank-row strong{font-size:15px;font-weight:700}.rank-row .gold-coin{width:25px;height:29px}.rank-row.mine .gold-coin{background-position:100% 100%!important}.rank-note{font-size:11px;margin:10px 0;color:#6b775d}
.profile-card{border-radius:23px;padding:7px 12px 7px 8px;gap:12px;min-height:104px}.profile-card .avatar{width:91px;height:91px}.profile-person>strong{font-size:21px;font-weight:700;letter-spacing:-.6px}.profile-person .subtle{font-size:11px;white-space:nowrap;color:#777e70;margin:6px 0}.profile-money strong{font-size:45px;letter-spacing:-2px;font-weight:800}.profile-money>div{gap:0}.profile-money .gold-coin{width:53px;height:59px}.profile-money>span{font-size:9px;letter-spacing:2px;margin-top:0;text-align:left;padding-left:3px}.stats-main{gap:5px;margin-top:8px}.stat{min-height:65px;padding:8px 15px;gap:14px;border-radius:21px}.stat strong{font-size:25px;font-weight:750;line-height:1.15}.stat div>span{font-size:11px;margin-top:3px;white-space:nowrap}.orb{width:46px;height:46px;border:0;box-shadow:none;background:var(--atlas) 33.333333% 0/400% 400% no-repeat;border-radius:0}.orb>.icon{display:none}.orb:has(use[href="#i-calendar"]){background-position:66.666667% 0}.orb:has(use[href="#i-like"]){background-position:100% 0}.orb.silver{background-position:0 33.333333%}.orb.red{background-position:33.333333% 33.333333%}.stats-ratings{gap:6px;margin-top:5px}.rating-stat{border-radius:22px;min-height:97px;padding:7px 2px 8px;gap:3px}.rating-stat .orb{width:37px;height:37px}.rating-stat strong{font-size:22px;font-weight:750}.rating-stat>span:last-child{font-size:11px;line-height:1.16}.gift{background:linear-gradient(110deg,#fffffff2,#eaffdcce)}.fine{background:linear-gradient(110deg,#fffffff2,#f9e1d9bd)}.withdraw-card{gap:12px;padding:9px 13px 10px 10px;min-height:110px;margin-top:8px;border-radius:23px}.wallet-art{width:88px;height:93px;flex-shrink:0;background:var(--atlas) 100% 66.666667%/400% 400% no-repeat;filter:none}.wallet-art>.icon,.wallet-art>.gold-coin{display:none}.withdraw-heading h2{font-size:16px;letter-spacing:-.7px;line-height:1.2;white-space:nowrap}.soon{font-size:11px;padding:6px 10px;line-height:1}.withdraw-copy p{font-size:10px;color:#7b8175;line-height:1.25;margin:7px 0 8px}.withdraw-copy button{font-size:12px;border-radius:14px;padding:9px 3px;gap:7px;min-height:35px}.settings-list{margin-top:9px;padding:3px 12px;border-radius:23px}.settings-list button{font-size:14px;padding:4px 0;gap:15px;min-height:40px}.settings-list button>span{width:37px;height:36px;background:#e4f3d4;border-radius:10px;padding:2px}.settings-list button>span .icon,.art{display:block;width:100%;height:100%;background:var(--atlas) 0 100%/400% 400% no-repeat}.settings-list button>span .icon use{display:none}.settings-list button>span .icon:has(use[href="#i-shield"]){background-position:33.333333% 100%}.art-question{background-position:66.666667% 100%}.settings-list button b{font-size:27px;line-height:1;color:#6e7665}.photo-tools{margin-bottom:16px}.message{bottom:112px}
@media(min-width:600px){.app{margin:0 auto;border-radius:0;box-shadow:0 0 80px #334b1b15}.button-title{font-size:inherit}.bottom-nav{bottom:17px}.game-page{min-height:500px}}
@media(max-width:370px){.app{padding-left:12px;padding-right:12px}.balance-card{gap:10px;padding:7px 9px}.balance-card>strong{font-size:18px}.balance strong{font-size:43px}.balance .gold-coin{width:50px;height:57px}.balance-card .avatar{width:70px;height:70px}.profile-card{gap:9px;padding:7px}.profile-card .avatar{width:75px;height:75px}.profile-person>strong{font-size:18px}.profile-money strong{font-size:38px}.profile-money .gold-coin{width:45px;height:51px}.profile-person .subtle{font-size:10px}.wallet-art{width:75px;height:84px}.withdraw-heading h2{font-size:14px}.soon{font-size:10px;padding:5px 8px}.stat{padding:9px 11px;gap:10px}.stat strong{font-size:23px}.stat .orb{width:42px;height:42px}.withdraw-card{gap:9px}.settings-list{margin-top:8px}.bottom-nav{height:82px}.bottom-nav button{font-size:14px}.game-page{min-height:430px}}
@media(prefers-reduced-motion:reduce){.money-button{transition:none}}
.app:has(#profilePage:not([hidden])),.app:has(#rankingPage:not([hidden])){background-image:url('/static/art/background-soft.webp')}
.orb.red:has(use[href="#i-like"]){background-position:33.333333% 33.333333%}
.bottom-nav button.active>.icon{width:49px;height:49px}.bottom-nav button{gap:0}
.profile-card{min-height:101px}.profile-card .avatar{width:87px;height:87px}.rating-stat{padding:6px 2px;gap:2px}.rating-stat .orb{width:34px;height:34px}.rating-stat strong{font-size:21px}.rating-stat>span:last-child{font-size:10.5px;line-height:1.1}.withdraw-card{padding:8px 12px 8px 9px;min-height:108px}.wallet-art{height:84px}.withdraw-copy p{margin:6px 0;font-size:10px}.withdraw-copy button{padding:8px 3px;min-height:33px}.soon{padding-top:5px;padding-bottom:5px}.settings-list button{padding:2px 0;min-height:39px}.settings-list button>span{height:34px;width:35px}.podium{height:235px}.podium-card{height:155px}.podium-card.first{height:195px}.podium-card.third{height:151px}.podium-card .name{flex-shrink:0}.podium-card strong{flex-shrink:0}.podium-card .gold-coin{flex-shrink:0}

/* Touch feedback is independent of network acknowledgements. */
.tap-effects{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:visible;contain:layout style}.tap-burst{position:absolute;width:0;height:0;pointer-events:none}.tap-reward{position:absolute;color:#fff0a0;font:900 35px/1 Arial,sans-serif;letter-spacing:-1px;white-space:nowrap;text-shadow:0 -1px #fff,0 2px #bf8615,0 4px 1px #755000,0 7px 14px #1946009e;will-change:transform,opacity;z-index:2}.tap-ring{position:absolute;width:150px;height:150px;border-radius:50%;border:2px solid #f4ffd1;box-shadow:0 0 9px #eaff9f,inset 0 0 9px #deff84;background:radial-gradient(circle,transparent 58%,#f3ffbc40 70%,transparent 73%);will-change:transform,opacity}.tap-spark{position:absolute;font-size:19px;line-height:1;color:#fff7be;text-shadow:0 0 4px #fff,0 0 9px #ffd938;will-change:transform,opacity}.money-button:active:not(:disabled){transform:scale(.955) translateY(3px)}
@media(prefers-reduced-motion:reduce){.money-button:active:not(:disabled){transform:none}.tap-ring,.tap-spark{display:none}.tap-reward{font-size:28px}}

.tap-reward{display:block;width:116px;height:77px;line-height:0;letter-spacing:0;text-shadow:none;filter:drop-shadow(0 3px 4px #36550055)}.tap-reward img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}.profile-person>strong{white-space:nowrap}.balance-card>strong{min-width:0}@media(prefers-reduced-motion:reduce){.tap-reward{width:92px;height:61px}}

/* Referrals and live game settings, in the existing green and gold system. */
#fileFallback {display:none!important}
.rank-person {min-width:0;display:flex;flex-direction:column;gap:3px}
.rank-person .rank-name {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-votes {font-size:11px;font-weight:500;color:#687758;white-space:nowrap}
.friends-badge {margin-left:auto;border-radius:30px;background:#e5f3cf;padding:5px 10px}
.invite-hero {text-align:center;padding:6px 0 12px}
.invite-hero .gold-coin {width:66px;height:66px;display:inline-block}
.invite-link {width:100%;border:1px solid #ccdbb9;background:#fff9;border-radius:14px;padding:13px;font:inherit;font-size:13px;color:#214812;box-sizing:border-box}
.friend-totals {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
.friend-totals>div {padding:14px;border:1px solid #fff;background:#f2f9e7;border-radius:20px;text-align:center}
.friend-totals strong {display:block;font-size:30px;color:#174400}
.friend-totals span {font-size:13px;color:#687758}
.milestone-summary {border-radius:14px;background:#edf5e3;padding:11px 13px;font-size:13px;margin:7px 0}
.friend-card {background:linear-gradient(135deg,#fff,#eef7df);border:1px solid #fff;border-radius:22px;padding:15px;margin:14px 0;box-shadow:0 5px 18px #4662150b}
.friend-heading {display:flex;gap:12px;align-items:center}
.friend-heading .avatar {width:48px;height:48px;flex-shrink:0}
.friend-heading strong {overflow-wrap:anywhere}
.friend-card p {font-size:13px;color:#637455;line-height:1.5}
.friend-progress {display:grid;gap:5px;font-size:12px;margin:12px 0}
.friend-progress progress {width:100%;height:8px;accent-color:#64b922;border:0;border-radius:20px;overflow:hidden}
.friend-progress progress::-webkit-progress-bar{background:#dfe9d0}
.friend-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#418906,#a1df3d)}
.friend-card button {margin:4px 0}
.settings-form {display:grid;gap:14px}.settings-form label{display:grid;gap:6px;font-size:13px;color:#405638}
.settings-form input{box-sizing:border-box;width:100%;border:1px solid #ccdbb9;border-radius:12px;background:white;padding:12px;font:inherit}
.custom-reward {color:#ffe98b;font-size:40px;font-weight:900;text-shadow:0 2px #965300,0 4px 5px #22440e;display:flex;align-items:center;gap:4px}
.custom-reward .gold-coin{width:48px;height:48px}
body.game-active {height:var(--app-height,100dvh);overflow:hidden}
body.game-active .app {min-height:0}
body.game-active #gamePage {min-height:0;height:calc(var(--app-height,100dvh) - 146px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - var(--tg-content-safe-area-inset-top,0px));display:flex;flex-direction:column}
body.game-active .play {min-height:0;flex:1}
body.game-active .button-wrap {width:min(100%, calc(var(--app-height,100dvh) - 265px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - var(--tg-content-safe-area-inset-top,0px)));}

.rank-person {flex:1}.rank-row>.avatar,.rank-row>.gold-coin,.rank-number{flex-shrink:0}
.invite-link {display:flex;gap:8px;padding:8px}.invite-link input{min-width:0;flex:1;background:transparent;border:0;font:inherit;color:inherit}.invite-link button{border:0;background:#e4f3cf;border-radius:9px;padding:10px;font-size:11px;color:#234a12}
.link-label{display:block;font-size:12px;color:#687758;margin:15px 0 7px}
#friendsBadge{margin-left:auto;font-weight:600;background:#e4f3cf;padding:4px 8px;border-radius:12px}#inviteFriends b{margin-left:0}
.settings-list .invite-symbol .icon{background-position:66.666667% 33.333333%}
.photo-tools{flex-wrap:wrap}.photo-tools button{flex:1 1 130px}

.rank-votes,.rank-votes>span{display:flex;align-items:center;gap:3px}.rank-votes{gap:8px}.rank-votes .icon{width:16px;height:16px;background:var(--atlas) 100% 0/400% 400% no-repeat}.rank-votes .icon use{display:none}.rank-votes .negative .icon{background-position:33.333333% 33.333333%}

/* Never leave an empty control when artwork is delayed or unavailable. */
.button-art:not([data-ready="true"]){opacity:0}
.button-label{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(32px,12vw,65px);font-weight:900;color:#ffe99a;text-shadow:0 2px #fff5d1,0 5px #93600d,0 8px 9px #133400;pointer-events:none}
.money-button:has(.button-art:not([data-ready="true"])){background:radial-gradient(ellipse at 40% 22%,#dbff8b,#65c411 38%,#175d03 73%,#a9e93d);border:5px solid #d5ef9c;box-shadow:inset 0 0 0 4px #275b09,0 0 0 2px #fff,0 10px 24px #597c2944}
.money-button:has(.button-art[data-ready="true"]) .button-label{display:none}
html:not(.atlas-ready) .gold-coin{background:linear-gradient(140deg,#fff4ac,#e7b832 50%,#9d640f)!important;border-radius:50%;display:inline-grid;place-items:center;color:#fff4bb}
html:not(.atlas-ready) .gold-coin .icon{display:block;width:65%;height:65%}
html:not(.atlas-ready) .orb{display:grid;place-items:center;background:linear-gradient(#a0df5e,#246803);border-radius:50%;color:white}
html:not(.atlas-ready) .orb>.icon{display:block}
html:not(.atlas-ready) .orb.red{background:linear-gradient(#f98c79,#bd170a)}
html:not(.atlas-ready) .orb.silver{background:linear-gradient(#cccec6,#777d70)}
html:not(.atlas-ready) .bottom-nav button.active>.icon use,html:not(.atlas-ready) .settings-list button>span .icon use,html:not(.atlas-ready) .rank-votes .icon use{display:initial}
html:not(.atlas-ready) .wallet-art>.icon{display:block}
html:not(.atlas-ready) .wallet-art>.gold-coin{display:inline-grid}
html:not(.atlas-ready) .podium-crown .icon,html:not(.atlas-ready) .podium-place{display:block}
html:not(.atlas-ready) .art-question:after{content:'?';display:grid;place-items:center;font-size:25px;font-weight:bold}

/* Isolate the neutral disc from neighbouring sprite artwork. */
.orb.silver{clip-path:circle(42% at 52% 53%)}

/* Friends: one clear invitation, then rewards and each friend's next step. */
#referralsDialog{background:#f4f8ec;max-width:440px}.friends-sheet{padding:20px;background:radial-gradient(ellipse at 80% 0,#e6f6cc,transparent 45%),#f5f8ee}.friends-sheet .sheet-top h2{font-size:23px;letter-spacing:-.7px}.friends-sheet .close{flex-shrink:0;background:#fff9}.friends-sheet .invite-hero{position:relative;text-align:left;padding:19px 75px 18px 18px;border-radius:24px;border:1px solid #fff;background:linear-gradient(125deg,#fffffff2,#e7f6cc);box-shadow:0 8px 22px #537d1310}.invite-hero .eyebrow{font-size:9px;letter-spacing:1.2px;color:#65803f}.invite-hero #referralIntro{font-size:26px;font-weight:800;letter-spacing:-.7px;line-height:1.12;color:#123d06;margin:10px 0}.invite-hero>.gold-coin{position:absolute;right:8px;top:43px;width:66px;height:72px}.invite-hero .newcomer-intro{font-size:12px;line-height:1.45;margin:10px 0 0;color:#4f633e}.invite-actions{display:grid;grid-template-columns:1fr 65px;gap:8px;margin-top:14px}.invite-actions .primary{margin:0;min-height:54px;border:1px solid #4e890d;background:linear-gradient(150deg,#579e18,#2f6c0c);color:#fff;font-size:15px;box-shadow:0 5px 12px #3f721125;border-radius:17px}.copy-invite{border:1px solid #d5dfc5;background:#ffffffc9;color:#315221;border-radius:17px;display:grid;place-content:center;justify-items:center;gap:3px}.copy-invite .icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}.copy-invite span{font-size:10px}.copy-invite:disabled{opacity:.5}.invite-link-details{margin-top:12px;color:#62734e;font-size:12px}.invite-link-details summary{cursor:pointer;padding:4px 0}.invite-link-details .invite-link{margin-top:8px;font-size:11px}.friends-sheet .friend-totals{gap:9px;margin:18px 0 22px}.friends-sheet .friend-totals>div{background:#ffffffb8;padding:13px 6px;border-radius:19px;box-shadow:0 4px 15px #6685330b}.friends-sheet .friend-totals strong{font-size:29px;letter-spacing:-1px}.friends-sheet .friend-totals span{font-size:11px}.friends-sheet h3{font-size:17px;letter-spacing:-.3px;margin:22px 0 8px}.friends-sheet .section-hint{font-size:12px;margin:0 0 12px;color:#728063}.referral-stages{border:1px solid white;border-radius:21px;background:#fff9;padding:3px 13px}.referral-stage{display:flex;align-items:center;gap:10px;padding:13px 0}.referral-stage+.referral-stage{border-top:1px solid #dfe8d3}.stage-number{display:grid;place-items:center;flex-shrink:0;width:27px;height:27px;border-radius:50%;font-size:12px;font-weight:700;color:#466328;background:#e8f2d8}.referral-stage>div{flex:1;min-width:0}.referral-stage>div strong{display:block;font-size:13px;color:#29421b}.referral-stage>div span{display:block;font-size:10px;color:#7a856d;margin-top:4px}.stage-reward{font-size:19px;letter-spacing:-.5px;color:#668117;background:linear-gradient(135deg,#fff6bc,#f4e6a8);border:1px solid #fff9;padding:6px 8px;border-radius:12px;white-space:nowrap}.friends-sheet .friend-card{margin:10px 0 0;padding:15px;border-radius:22px}.friend-heading strong{font-size:13px;flex:1}.friend-heading .avatar{width:39px;height:39px}.friend-earned{font-size:16px;font-weight:750;color:#46770d;white-space:nowrap}.friend-card .friend-activity{font-size:11px;margin:10px 0}.friend-card .friend-next{font-size:12px;line-height:1.5;background:#e9f3db;border-radius:12px;padding:10px;margin:0;color:#3f5b29}.friend-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px}.friend-steps .friend-progress{margin:0;font-size:12px;gap:7px}.friend-progress>span{color:#7c896b;font-weight:700}.friend-progress.complete>span{color:#448217}.friend-progress small{font-size:9px;white-space:nowrap;color:#819071}.friend-progress progress{height:5px}.invite-rules{font-size:12px;color:#657554;border-top:1px solid #dce5cf;margin-top:20px;padding:15px 0 0}.invite-rules summary{cursor:pointer;font-weight:650;color:#405733}.invite-rules p{line-height:1.6;margin:10px 0}.friends-sheet #referralMessage{font-size:12px;color:#6d7d5a;line-height:1.6}.friends-sheet button:focus-visible,.friends-sheet summary:focus-visible{outline:2px solid #528a1a;outline-offset:3px}

#rulesCopy section+section{border-top:1px solid #dfe7d3;margin-top:18px;padding-top:2px}#rulesCopy h3{color:#244913;font-size:17px;margin:17px 0 9px}#rulesCopy p{font-size:13px;line-height:1.65;color:#607151;margin:9px 0}

.friends-sheet .sheet-top{position:sticky;top:0;z-index:2;background:#f3f8e9;padding:8px 0;border-radius:12px}

.withdraw-heading h2{white-space:normal;font-size:14px;letter-spacing:-.4px}.withdraw-heading{align-items:flex-start}.withdraw-heading .soon{flex-shrink:0}

/* Size the whole task from Telegram's actual visible viewport, not screen height. */
#selfieDialog{--selfie-height:min(var(--app-height,100dvh),100dvh);position:fixed;inset:0;width:100%;max-width:520px;height:var(--selfie-height);max-height:var(--selfie-height);margin:auto;padding:0;border-radius:24px;background:#edf4df url('/static/art/background.webp') center/cover;color:#002c0b;overflow:hidden;overscroll-behavior:none}
#selfieDialog::backdrop{background:#dce9ce}
#selfieDialog .selfie-sheet{position:relative;display:flex;align-items:center;flex-direction:column;height:100%;min-height:0;box-sizing:border-box;padding:14px 22px max(16px,env(safe-area-inset-bottom));gap:clamp(7px,1.5vh,12px);text-align:center;background:radial-gradient(ellipse at 50% 12%,#fffbdbaa,transparent 38%),linear-gradient(120deg,#f8ffe24d,#ebf8d033)}
#selfieDialog .selfie-close{position:absolute;left:14px;top:14px;width:40px;height:40px;background:#ffffffed;color:#002c18;font-size:36px;z-index:3;box-shadow:0 4px 22px #71933e18}
.selfie-crown{width:180px;height:clamp(60px,calc(var(--app-height,100dvh)*.15),124px);flex-shrink:0;margin:0;filter:drop-shadow(0 6px 10px #d0a41755)}
.selfie-crown img{display:block;width:100%;height:100%;object-fit:contain}
#selfieDialog h2{font-size:clamp(25px,calc(var(--app-height,100dvh)*.052),39px);font-weight:850;line-height:1.04;letter-spacing:-1px;flex-shrink:0;margin:0;color:#002609}
#selfieDialog .selfie-intro{font-size:clamp(13px,calc(var(--app-height,100dvh)*.024),17px);line-height:1.3;color:#4c6054;margin:0;max-width:360px;flex-shrink:0}
#selfieDialog .camera-frame{position:relative;flex:1 1 0;min-height:60px;aspect-ratio:auto;width:100%;max-height:none;margin:2px 0 0;border:2px solid #fff;border-radius:30px;background:linear-gradient(135deg,#aebdad66,#fff9d077,#8eab8766);box-shadow:inset 0 0 30px #ffffff80,0 0 26px #e4ffb499;backdrop-filter:blur(8px);overflow:hidden}
#selfieDialog .camera-frame video,#selfieDialog .camera-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#cameraPlaceholder{color:#607b5c;z-index:1}
#cameraPlaceholder svg{width:clamp(48px,calc(var(--app-height,100dvh)*.12),86px);height:clamp(48px,calc(var(--app-height,100dvh)*.12),86px);fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:round}
#selfieDialog #cameraPlaceholder p{font-size:clamp(13px,calc(var(--app-height,100dvh)*.024),17px);margin:7px 0}
.frame-corner{position:absolute;width:26px;height:26px;border:4px solid #fff;border-radius:0;z-index:2;pointer-events:none}
.frame-corner.tl{top:14px;left:14px;border-right:0;border-bottom:0;border-top-left-radius:13px}.frame-corner.tr{top:14px;right:14px;border-left:0;border-bottom:0;border-top-right-radius:13px}.frame-corner.bl{bottom:14px;left:14px;border-right:0;border-top:0;border-bottom-left-radius:13px}.frame-corner.br{bottom:14px;right:14px;border-left:0;border-top:0;border-bottom-right-radius:13px}
.shutter-controls{display:flex;justify-content:center;flex-shrink:0;margin:5px 0 4px}
.camera-shutter{display:grid;place-items:center;width:clamp(64px,calc(var(--app-height,100dvh)*.135),98px);height:clamp(64px,calc(var(--app-height,100dvh)*.135),98px);padding:22px;border-radius:50%;border:4px solid #fff;color:white;background:radial-gradient(ellipse at 32% 22%,#7bdf1e 0%,#159606 34%,#005a0b 68%,#003804 100%);box-shadow:0 0 0 3px #baff60,0 0 0 6px #fff9,0 0 23px #bcfa48,inset 0 2px 8px #d9ff97;transition:transform .15s,filter .15s;touch-action:manipulation}
.camera-shutter:active{transform:scale(.92);filter:brightness(1.18)}
.camera-shutter svg{width:100%;height:100%;fill:white;stroke:white;stroke-width:2;stroke-linejoin:round}.camera-shutter svg circle{fill:#005f11;stroke:#005f11}
#selfieDialog:has(#confirmPhoto:not([hidden])) .shutter-controls{display:none}
#selfieDialog #confirmPhoto{width:100%;flex-shrink:0}
#selfieDialog #confirmPhoto .primary{background:linear-gradient(#3cba13,#00660c);color:white;border:1px solid #baff67;border-radius:24px;box-shadow:0 5px 16px #3f7f2733;font-size:17px;min-height:42px;margin:0}
#selfieDialog #confirmPhoto .secondary{min-height:34px;margin-top:6px;padding:7px}
#selfieDialog .selfie-permission{font-size:10px;line-height:1.25;color:#63735d;margin:7px 0 0}
#selfieDialog .inline-message{flex-shrink:0;font-size:11px;line-height:1.3;padding:0 5px;margin:0;max-width:100%}
@media(prefers-reduced-motion:reduce){.camera-shutter{transition:none}}
