

* {box-sizing:border-box}

html,body {margin:0;min-height:100%;background:#183523;font-family:"Arial Rounded MT Bold",Arial,sans-serif;color:#46240f}

body {display:flex;justify-content:center;overscroll-behavior:none}

button {font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}

button:focus-visible {outline:3px solid white;outline-offset:3px}

button:active {filter:brightness(1.1);transform:scale(.96)}

.game {position:relative;isolation:isolate;width:100%;max-width:520px;min-height:100svh;min-height:100dvh;display:flex;flex-direction:column;padding:max(16px,env(safe-area-inset-top)) 12px 0;overflow:hidden;background:#639934 url('assets/island.webp') center 42%/cover no-repeat;container-type:inline-size}

.game:before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#213d2380,transparent 40%)}

.icon {display:inline-block;flex-shrink:0;width:52px;height:52px;background-image:url('assets/icons.webp');background-size:300% 300%;background-repeat:no-repeat;vertical-align:middle}

.egg {background-position:0 0}

.coin {background-position:50% 0}

.gift {background-position:100% 0}

.gear {background-position:0 50%}

.cup {background-position:50% 50%}

.house {background-position:100% 50%}

.clipboard {background-position:0 100%}

.people {background-position:50% 100%}

.purse {background-position:100% 100%}

.balances {display:flex;justify-content:space-between;gap:32px;z-index:2;padding:0 4px}

.balance {position:relative;display:flex;align-items:center;flex:1;min-width:0;height:40px;border:3px solid #d99b4e;border-radius:22px;background:linear-gradient(#75401f,#52240e);box-shadow:inset 0 2px 1px #ffd28b,0 3px 2px #54270db0;color:white;padding-left:32px}

.balance>.icon {position:absolute;width:56px;height:56px;left:-14px;filter:drop-shadow(0 2px 1px #54270d)}

.balance output {font-size:clamp(18px,5.2cqw,27px);font-weight:900;white-space:nowrap;flex:1;text-align:center;text-shadow:0 2px 1px #2e1307;letter-spacing:-.6px;font-variant-numeric:tabular-nums}

.plus {border:2px solid #529523;border-radius:15px;background:linear-gradient(#8cdf43,#3c9d16);color:#fff;font-weight:900;font-size:32px;line-height:30px;width:34px;height:34px;box-shadow:inset 0 2px 2px #d0f795,0 2px 2px #301900;text-shadow:0 2px #32731e;padding:0}

.island {position:relative;flex:1;min-height:310px;margin-top:16px}

.wooden {border:3px solid #c88b46;background:linear-gradient(125deg,#9b5c2d,#54270f);box-shadow:inset 0 2px 2px #f7cc7b,0 3px 2px #49260999;color:#fff;text-shadow:0 2px 1px #351905}

.bonus {display:flex;align-items:center;position:absolute;z-index:2;left:0;top:0;border-radius:18px;padding:3px 9px 4px 1px;height:47px;min-width:116px}

.bonus>.icon {width:46px;height:46px;margin-left:-2px}

.bonus>span:not(.notification) {font-size:15px;font-weight:900}

.bonus strong {display:block;font-size:13px!important;color:#ffdf35;font-variant-numeric:tabular-nums;margin-top:2px}

.notification {position:absolute;right:-3px;top:-4px;width:12px;height:12px;border:1px solid #b52a10;border-radius:50%;background:linear-gradient(#ff7766,#ef2016);box-shadow:0 1px 2px #57260d}

.side-actions {position:absolute;right:0;top:0;display:grid;gap:10px;z-index:2}

.side-actions button {width:45px;min-height:45px;padding:0;border-radius:17px}

.side-actions .icon {width:37px;height:37px}

.side-actions .settings {border-radius:50%}

.trophy {display:flex;flex-direction:column;align-items:center;font-size:12px;font-weight:bold}

.trophy span {margin-top:-5px;margin-bottom:3px}

.flock {position:absolute;inset:0}

.bird-group {position:absolute;width:36%;height:48%;filter:drop-shadow(0 4px 2px #324e3033)}

.bird {position:absolute;inset:0;background-image:url('assets/birds.webp');background-size:300% 200%;background-repeat:no-repeat;animation:breathe 3.6s ease-in-out infinite;transform-origin:50% 80%}

.bird-blue {background-position:0 0}

.bird-red {background-position:50% 0;animation-delay:-.5s}

.bird-yellow {background-position:100% 0;animation-delay:-1.2s}

.bird-white {background-position:0 100%;animation-delay:-2s}

.bird-purple {background-position:50% 100%;animation-delay:-2.8s}

.nest {position:absolute;bottom:-5%;left:30%;width:75%;height:49%;background:url('assets/birds.webp') 100% 100%/300% 200% no-repeat}

.blue {left:0;top:22%}

.red {right:15%;top:24%}

.yellow {left:-4%;bottom:-1%}

.white {left:31%;bottom:-3%}

.purple {right:-6%;bottom:-3%}

.harvest {position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;margin-top:8px}

.stock-panel {border:3px solid #d7ac72;border-bottom:0;border-radius:36px 36px 0 0;background:linear-gradient(#fff0d3,#f3cf99);box-shadow:inset 0 2px 0 #fff9e5,0 3px 5px #3c310e55;padding:5px 27px 7px;min-width:49%;text-align:center}

.stock-panel h1 {font-size:17px;line-height:1.3;margin:0;font-weight:900}

.stock-panel>div {display:flex;align-items:center;justify-content:center;height:34px;gap:3px}

.stock-panel .icon {width:33px;height:39px}

.stock-panel output {font-size:32px;font-weight:1000;line-height:1;color:#251205;font-variant-numeric:tabular-nums}

.collect {position:relative;display:flex;align-items:center;justify-content:center;gap:4px;width:83%;min-height:77px;margin-top:-2px;border:3px solid #e6a324;border-radius:40px;background:linear-gradient(175deg,#ffe779 0%,#ffcf35 40%,#ffb915 85%,#fba016 100%);box-shadow:inset 0 3px 1px #fff9c1,inset 0 -5px 2px #ee8b07,0 4px 0 #9b510c,0 8px 8px #24411766;color:#482205;text-shadow:0 1px #ffe175;font-size:clamp(20px,6.1cqw,31px);font-weight:1000;letter-spacing:-1px;white-space:nowrap;padding:4px 14px}

.collect .icon {width:52px;height:60px;filter:drop-shadow(0 2px 2px #9d630e)}

.gloss {position:absolute;left:13px;top:12px;width:16px;height:7px;transform:rotate(-40deg);border-radius:100%;background:#fff6bd}

.partner-card {display:flex;align-items:center;gap:8px;background:linear-gradient(120deg,#fff0d6,#f7d6a5);border:3px solid #c89357;border-radius:23px;box-shadow:inset 0 2px 0 #fff7e7,inset 0 -3px 0 #e9b475,0 4px 3px #59431966;padding:6px;margin-top:18px;margin-bottom:15px;min-height:72px}

.gift-tile {background:#fff4da;border-radius:17px;box-shadow:0 2px 2px #c1955e;width:61px;flex-shrink:0}

.gift-tile .icon {width:61px;height:61px}

.partner-copy {flex:1;min-width:0}

.partner-copy h2 {font-size:clamp(13px,3.8cqw,19px);font-weight:900;margin:0 0 5px;white-space:nowrap}

.partner-copy p {display:flex;align-items:center;gap:3px;font-size:clamp(11px,3.2cqw,16px);margin:0;white-space:nowrap}

.partner-copy .icon {width:19px;height:24px}

.green {flex-shrink:0;border:2px solid #4d9220;border-radius:24px;padding:9px 10px;background:linear-gradient(#81d540,#3e9d15);box-shadow:inset 0 2px 1px #bcec71,0 3px 1px #286508;color:#fff;font-size:clamp(12px,3.6cqw,18px);font-weight:900;text-shadow:0 2px #397420}

.green span {font-size:25px;line-height:10px;margin-left:2px}



.primary {display:block;width:100%;margin-top:18px;padding:15px 10px;border:2px solid #438825;border-radius:18px;background:linear-gradient(#83d745,#46a119);box-shadow:0 4px 0 #31720f;color:white;font-weight:800;font-size:17px;text-shadow:0 1px 1px #355e22}

.primary:disabled {opacity:.6;cursor:default}

.card {background:#fff8e9aa;border:1px solid #d7ae72;border-radius:16px;padding:15px;margin:12px 0}

.big {font-size:35px;font-weight:900}

.muted {font-size:14px;opacity:.75}

.particle {position:absolute;z-index:4;left:50%;top:65%;font-size:30px;animation:fly 1s ease-out forwards;pointer-events:none}@keyframes fly{

to {transform:translate(var(--x),-300px) rotate(30deg);opacity:0}}@keyframes breathe{

50% {transform:translateY(-3px) rotate(1deg)}}@media(min-width:600px){

body {background:radial-gradient(ellipse at center,#537b37,#15251b)}

.game {box-shadow:0 0 80px #0006}}@media(max-width:350px){

.balances {gap:23px}

.balance {padding-left:25px}

.partner-card {gap:4px;padding:5px}

.gift-tile,.gift-tile .icon {width:49px;height:49px}

.green {padding:9px 6px}

.island {min-height:280px}}@media(prefers-reduced-motion:reduce){

* {animation:none!important;transition:none!important}}
/* Compact phones retain the complete game controls; landscape can scroll. */
@media (max-height:740px) {

.island { min-height:220px; margin-top:12px; }

.game { padding-top:max(12px,env(safe-area-inset-top)); }

.collect { min-height:66px; }

.collect .icon { height:49px; width:43px; }

.stock-panel { padding-top:3px; padding-bottom:4px; }

.stock-panel h1 { font-size:15px; }

.stock-panel>div { height:30px; }

.partner-card { margin-top:13px; margin-bottom:10px; min-height:64px; }

.gift-tile,.gift-tile .icon { width:51px; height:51px; }

}
@media (max-height:600px) {

.island { min-height:175px; }

.bonus { transform:scale(.9); transform-origin:top left; }

.side-actions { gap:5px; }

.side-actions button { width:39px; min-height:39px; }
}
/* Individual transparent assets keep birds independent from the scenery. */
.bird-group { width:39%; height:auto; aspect-ratio:1; }

.bird { background-size:contain; background-position:center; }

.bird-blue { background-image:url('assets/blue.webp'); }

.bird-red { background-image:url('assets/red.webp'); }

.bird-yellow { background-image:url('assets/yellow.webp'); }

.bird-white { background-image:url('assets/white.webp'); }

.bird-purple { background-image:url('assets/purple.webp'); }

.nest { background-image:url('assets/nest.webp'); background-size:contain; background-position:center; width:75%; height:60%; bottom:-17%; left:26%; }

.blue { top:28%; left:-2%; }

.red { top:29%; right:19%; }

.yellow { bottom:1%; left:-5%; }

.white { bottom:0; left:29%; }

.purple { bottom:0; right:-6%; }
@media(max-height:740px) {

.bird-group { width:34%; }

.blue { top:22%; }

.red { top:22%; }

.white { left:32%; }

.yellow { left:-2%; }

.purple { right:-3%; } }
/* Shop is a real fifth screen; the balances and navigation remain in place. */
[hidden] { display:none !important; }

.game { height:100dvh; min-height:568px; }

.bird-group { padding:0; border:0; background:none; cursor:pointer; }

.bird-group:active { filter:brightness(1.1); }

.empty-island {
 position:absolute;
 left:50%;
 right:auto;
 bottom:27%;
 width:min(88%,390px);
 min-height:116px;
 transform:translateX(-50%);
 padding:24px clamp(46px,12cqw,66px) 29px;
 border:0;
 background:transparent url('assets/empty-island-plaque.webp') center/100% 100% no-repeat;
 filter:drop-shadow(0 7px 5px #18391880);
 color:#fff2c5;
 text-align:center;
 text-shadow:0 2px 1px #4a210c,0 0 3px #6d2e0a;
}

.empty-island[hidden] { display:none; }

.empty-island span {
 display:block;
 margin-bottom:9px;
 font-size:clamp(15px,4.2cqw,21px);
 font-weight:1000;
 line-height:1.05;
 white-space:nowrap;
}

.empty-island strong {
 display:block;
 color:#ffe35a;
 font-size:clamp(12px,3.5cqw,17px);
 line-height:1;
 white-space:nowrap;
}

.empty-island:active { transform:translateX(-50%) scale(.97); }
@media(max-width:350px) {

.empty-island { left:50%; right:auto; width:96%; min-height:100px; bottom:27%; padding:21px 42px 24px; }

.empty-island span { margin-bottom:7px; font-size:14px; }

.empty-island strong { font-size:12px; }
}

.shop-icon { background-image:url('assets/shop.webp'); background-size:contain; background-position:center; }

.shop-open { background-position:center; }

.shop-open:before { background:#203e2266; }

.shop-open .island,.shop-open .harvest,.shop-open .partner-card { display:none; }

.shop-view { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; margin:19px -2px 12px; padding:16px 12px; border:3px solid #c99757; border-radius:25px; background:linear-gradient(#fff0d5f5,#f2d09ff5); box-shadow:inset 0 2px #fff7e2,0 4px 12px #29401644; }

.shop-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }

.shop-heading p { margin:0 0 3px; font-size:12px; font-weight:700; color:#906b3e; text-transform:uppercase; letter-spacing:1px; }

.shop-heading h1 { font-size:27px; margin:0; line-height:1.2; }

.shop-heading .icon { width:58px; height:58px; }

.shop-intro { margin:10px 0 12px; font-size:14px; line-height:1.5; }

.shop-summary { border-top:1px solid #d5b27e; padding-top:12px; font-size:13px; font-weight:800; }

.shop-list { display:grid; gap:10px; margin-top:12px; }

.bird-card { display:grid; grid-template-columns:82px 1fr; align-items:center; gap:3px 8px; padding:10px; border:2px solid #d8ad70; border-radius:20px; background:linear-gradient(130deg,#fffaf0,#ffe6bf); box-shadow:0 3px 0 #bd85472b; }

.bird-card.owned { border-color:#8cad56; }

.shop-portrait { grid-row:1/3; display:flex; align-items:center; justify-content:center; border-radius:16px; background:radial-gradient(#ffe7a6,transparent 70%); }

.shop-portrait img { width:90px; height:113px; object-fit:contain; filter:drop-shadow(0 3px 2px #92622d33); }

.bird-card h2 { font-size:16px; margin:0 0 6px; }

.bird-card p { margin:3px 0; font-size:13px; color:#805230; }

.bird-price { display:flex; align-items:center; gap:4px; font-size:19px; font-weight:900; }

.bird-price .icon { width:25px; height:25px; }

.bird-status { display:block; margin:7px 0 3px; color:#4d792b; font-weight:bold; font-size:12px; font-variant-numeric:tabular-nums; }

.buy-button { grid-column:2; padding:8px 12px; width:100%; font-size:14px; }

.buy-button:disabled { background:linear-gradient(#c7d5a9,#a8bb87); border-color:#8d9f6f; box-shadow:none; color:#fff; cursor:default; text-shadow:none; }

.shop-footnote { font-size:12px; line-height:1.5; color:#87613e; margin-bottom:0; }

.bird-detail { text-align:center; margin-top:-10px; }

.bird-detail img { width:150px; height:150px; object-fit:contain; }

.detail-expiry { display:block; margin-top:8px; color:#548827; font-variant-numeric:tabular-nums; }

.particle.icon { width:32px; height:32px; }
@media(max-width:350px) {

.shop-view { padding:12px 8px; }

.shop-heading h1 { font-size:23px; }

.bird-card { grid-template-columns:70px 1fr; padding:8px; }

.shop-portrait img { width:77px; }

.bird-card h2 { font-size:14px; } }
/* Full-screen illustrated bird catalogue. */
.game.shop-open { padding:0; }

.shop-open > .balances { display:none; }

.shop-open:before { background:none; }

.shop-view { display:flex; flex-direction:column; flex:1; margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; overflow-y:auto; scrollbar-width:none; }

.shop-stage { position:relative; flex:1; min-height:260px; background:url('assets/island.webp') center 35% / cover; overflow:hidden; }

.bird-shop-header { position:absolute; z-index:3; top:max(9px,env(safe-area-inset-top)); left:12px; right:12px; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }

.shop-round { flex-shrink:0; display:grid; place-items:center; width:39px; height:39px; border:2px solid #d9a771; border-radius:50%; background:linear-gradient(135deg,#aa6934,#693717); box-shadow:inset 0 2px 1px #f0b671,0 2px 3px #3e220b66; color:#fff7df; font-size:38px; line-height:25px; padding:0 0 5px; text-shadow:0 2px #6c391b; }

.shop-help { font-size:23px; font-weight:900; padding:0; }

.shop-title { text-align:center; }

.shop-title h1 { color:white; font-size:clamp(24px,6.5cqw,34px); margin:2px 0 5px; font-weight:900; line-height:1.1; text-shadow:0 2px 2px var(--bird-glow),0 0 8px var(--bird-glow),0 0 16px var(--bird-glow); }

.bird-shop-header .shop-title { flex:1; min-width:0; margin-left:47px; }

.shop-arrow { position:absolute; z-index:4; top:55%; transform:translateY(-50%); width:44px; height:44px; touch-action:manipulation; }

.shop-arrow-prev { left:10px; }

.shop-arrow-next { right:10px; }

.shop-arrow:active { transform:translateY(-50%) scale(.94); }

.rarity-badge { display:inline-block; background:linear-gradient(#ffffff25,#0000000d),var(--rarity); border:1px solid #ffffff85; color:white; border-radius:12px; padding:3px 15px; font-size:12px; font-weight:bold; box-shadow:0 1px 2px #3d426966; }

.showcase-bird { position:absolute; z-index:2; width:84%; height:calc(100% - 64px); object-fit:contain; left:8%; bottom:12px; filter:drop-shadow(0 8px 4px #42301555); animation:breathe 4s ease-in-out infinite; transform-origin:center bottom; }

.showcase-nest { position:absolute; width:66%; height:40%; object-fit:contain; bottom:-15px; left:19%; z-index:1; }

.shop-sheet { position:relative; z-index:3; flex-shrink:0; margin-top:-10px; padding:16px 16px max(10px,env(safe-area-inset-bottom)); border:3px solid #fff1cd; border-bottom:0; border-radius:30px 30px 0 0; background:linear-gradient(115deg,#fff2dc,#f9e4c3); box-shadow:0 -3px 8px #78692b33,inset 0 0 0 1px #e9c997; }

.shop-offer { display:flex; gap:10px; height:54px; }

.production-chip { flex:1; display:flex; align-items:center; gap:5px; min-width:0; padding:4px 6px; border:1px solid #edcfa9; border-radius:15px; background:#fff5e477; }

.production-chip .icon { width:35px; height:41px; }

.production-chip strong { display:block; color:#392719; font-size:20px; font-weight:900; }

.production-chip span { display:block; font-size:12px; color:#75573d; white-space:nowrap; }

.shop-purchase { flex:1; display:flex; align-items:center; justify-content:center; gap:5px; border-radius:17px; padding:4px; min-width:0; }

.shop-purchase .icon { width:30px; height:30px; }

.shop-purchase strong { font-size:23px; text-shadow:0 2px #317718; }

.shop-purchase:disabled { cursor:default; filter:saturate(.7); }

.shop-purchase:disabled strong { font-size:16px; }

.owned-check { font-size:24px!important; }

.showcase-description { font-size:14px; line-height:1.4; margin:14px 12px 12px; color:#765439; min-height:39px; }

.bird-stats { padding:7px 0 4px; border:1px solid #edd4ae; border-radius:14px; background:#fff0d733; }

.bird-stats h2 { font-size:13px; margin:0 12px 5px; color:#4d3727; }

.stat-row { display:flex; align-items:center; gap:8px; padding:3px 12px; min-height:27px; font-size:12px; color:#75553a; }

.stat-row:nth-child(even) { background:#fff6e68f; border-radius:11px; }

.stat-row>.icon { width:22px; height:22px; }

.stat-symbol { width:22px; text-align:center; font-size:23px; line-height:20px; color:#c48530; }

.stat-row>b { margin-left:auto; font-size:12px; color:#3d2e23; white-space:nowrap; }

.stat-row>.rarity-value { color:var(--rarity); }

.shop-ownership { display:flex; align-items:center; justify-content:center; min-height:25px; padding:4px; font-size:11px; color:#876342; font-variant-numeric:tabular-nums; }

.shop-ownership button { border:0; background:none; color:#54852c; padding:0; font-size:12px; text-decoration:underline; }

.bird-picker { display:flex; gap:8px; overflow-x:auto; padding:6px 2px 3px; scrollbar-width:none; scroll-snap-type:x mandatory; }

.bird-thumb { position:relative; flex:1 0 54px; min-width:0; max-width:88px; height:73px; padding:0; border:2px solid #d7ac75; border-radius:13px; background:linear-gradient(155deg,#87caed,#4387bd 55%,#c9ab67); scroll-snap-align:center; }

.bird-thumb img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 2px 1px #432e2155); }

.bird-thumb.selected { border-color:#efbeff; box-shadow:0 0 0 2px var(--rarity),0 0 12px var(--rarity),inset 0 0 8px #fff; background:linear-gradient(135deg,#b2ecff,#9889ec); }

.thumb-owned { position:absolute; right:-3px; top:-5px; width:17px; height:17px; border-radius:50%; border:1px solid #fff4ce; background:#69a937; color:white; font-size:11px; line-height:15px; }
@media(max-height:740px) {

.shop-stage { min-height:230px; }

.shop-sheet { padding:12px 12px 6px; }

.shop-offer { height:48px; }

.showcase-description { font-size:12px; margin:10px 10px 8px; min-height:0; }

.stat-row { min-height:24px; padding-top:1px; padding-bottom:1px; }

.bird-picker { padding-top:4px; }

.bird-thumb { height:62px; }

.shop-title h1 { font-size:25px; } }
@media(max-width:350px) {

.shop-view { padding:0; }

.shop-title h1 { font-size:23px; }

.shop-round { width:34px; height:34px; }

.shop-offer { gap:8px; }

.production-chip { padding:3px; gap:2px; }

.production-chip strong { font-size:17px; }

.production-chip span { font-size:11px; }

.production-chip .icon { width:29px; }

.shop-purchase strong { font-size:21px; }

.bird-picker { gap:7px; }

.bird-thumb { flex-basis:48px; } }
@media(max-height:600px) {

.shop-stage { min-height:190px; }

.bird-thumb { height:56px; }

.showcase-description { margin-top:8px; margin-bottom:6px; }
}
/* Keep the main navigation visible while browsing birds. */

.shop-open > .shop-view {
 height:100%;
 min-height:100%;
 overflow-y:auto;
 overscroll-behavior-y:contain;
 scroll-padding-bottom:96px;
}

.shop-open .shop-sheet {
 padding-bottom:calc(94px + env(safe-area-inset-bottom));
}

.shop-open .shop-title {
 display:flex;
 min-height:39px;
 align-items:center;
 justify-content:center;
}

.shop-open .bird-thumb.selected {
 border-color:#fff;
 box-shadow:0 0 0 2px var(--bird-accent),0 0 12px var(--bird-accent),inset 0 0 8px #fff;
}
/* Coin economy: income is credited continuously, the main action starts rewarded video. */
.passive-income {
 position:relative;
 display:flex;
 align-items:center;
 justify-content:center;
 gap:clamp(4px,1.5cqw,9px);
 width:min(76%,320px);
 min-height:55px;
 margin-bottom:4px;
 padding:10px clamp(34px,9cqw,49px) 12px;
 background:url('assets/passive-wood-plaque.webp') center/100% 100% no-repeat;
 filter:drop-shadow(0 4px 3px #24150780);
 color:#fff4cc;
 font-size:clamp(11px,3.1cqw,15px);
 font-weight:900;
 line-height:1;
 text-shadow:0 2px 1px #4a210c,0 0 2px #4a210c;
 white-space:nowrap;
}

.passive-income span { opacity:.96; }

.passive-income[hidden] { display:flex; visibility:hidden; pointer-events:none; }

.passive-income strong {
 color:#ffe35a;
 font-size:1.05em;
 font-variant-numeric:tabular-nums;
 text-shadow:0 2px 1px #4a210c,0 0 3px #6d2e0a;
}

.collect {
 margin-top:0;
 gap:2px;
 padding-inline:9px;
 font-size:clamp(16px,4.8cqw,24px);
 letter-spacing:-.7px;
}

.collect .icon { width:46px; height:52px; }

.collect span { display:flex; min-width:0; align-items:baseline; justify-content:center; gap:4px; }

.collect span b { flex-shrink:0; font-size:.66em; white-space:nowrap; }

.collect:disabled { filter:saturate(.65); opacity:.82; cursor:wait; }

.production-chip .coin { height:35px; }
@media(max-width:390px) {

.passive-income { width:82%; min-height:49px; padding:8px 31px 10px; font-size:clamp(10px,3.25cqw,12px); }

.collect { width:94%; min-height:68px; padding-inline:6px; font-size:clamp(15px,4.7cqw,18px); letter-spacing:-.45px; }

.collect .icon { width:40px; height:44px; }

.collect span { gap:3px; }
}
/* Full task screen, built to remain usable in compact Telegram viewports. */
.game.tasks-open { padding:0; background:#f6dfb8; }

.tasks-open:before { background:none; }

.tasks-open > .balances,.tasks-open > .island,.tasks-open > .harvest,.tasks-open > .partner-card { display:none; }

.tasks-view {
 display:flex;
 flex:1;
 min-height:0;
 flex-direction:column;
 overflow:hidden;
 color:#372516;
 background:
   radial-gradient(circle at 0 100%,#82a72c 0 3%,transparent 12%),
   linear-gradient(#f7e8cd,#f5dab0);
}

.tasks-hero {
 position:relative;
 flex:0 0 clamp(150px,27dvh,205px);
 overflow:hidden;
 background:
   linear-gradient(90deg,#14233822,#14233800 65%),
   url('assets/tasks-header-v2.webp') center/100% 100% no-repeat;
 box-shadow:inset 0 -8px 14px #10241655;
}

.tasks-hero:after {
 content:"";
 position:absolute;
 left:0; right:0; bottom:-1px;
 height:24px;
 background:linear-gradient(175deg,transparent 0 42%,#f7e5c5 45% 100%);
}

.tasks-topline {
 position:relative;
 z-index:3;
 display:grid;
 grid-template-columns:38px 1fr 38px;
 align-items:center;
 padding:max(12px,env(safe-area-inset-top)) 12px 0;
 color:#fff;
}

.tasks-topline h1 {
 margin:0;
 text-align:center;
 font-size:clamp(22px,6cqw,30px);
 line-height:1;
 text-shadow:0 3px 2px #172239,0 0 8px #203555;
}

.tasks-topline button {
 width:34px;
 height:34px;
 border:2px solid #e9b873;
 border-radius:50%;
 background:linear-gradient(#a66833,#633215);
 box-shadow:inset 0 2px #f6c47f,0 2px 3px #0006;
 color:#fff;
 font-weight:900;
 font-size:20px;
 text-shadow:0 2px #5b2a10;
}

.tasks-callout {
 position:absolute;
 z-index:2;
 left:7%;
 bottom:27px;
 width:47%;
 min-height:64px;
 display:flex;
 flex-direction:column;
 justify-content:center;
 padding:10px 18px;
 border:3px solid #d18d45;
 border-radius:10px 18px 12px 8px;
 background:linear-gradient(150deg,#9c5a2c,#633117);
 box-shadow:inset 0 2px #efbc75,0 4px 5px #18302077;
 color:#fff7df;
 text-align:center;
 transform:rotate(-1deg);
 text-shadow:0 2px #4b210e;
}

.tasks-callout:before,.tasks-callout:after {
 content:"";
 position:absolute;
 top:-7px;
 width:13px;
 height:13px;
 border-radius:50%;
 background:linear-gradient(#ffd96b,#c97717);
 box-shadow:0 1px 2px #44200d;
}

.tasks-callout:before { left:14px; }

.tasks-callout:after { right:14px; }

.tasks-callout strong { font-size:clamp(12px,3.4cqw,17px); }

.tasks-callout span { margin-top:3px; font-size:clamp(11px,3.1cqw,15px); font-weight:800; }

.task-content {
 position:relative;
 z-index:2;
 display:flex;
 flex:1;
 min-height:0;
 flex-direction:column;
 margin-top:-4px;
 padding:0 10px 8px;
}

.task-tabs {
 display:grid;
 grid-template-columns:repeat(4,1fr);
 flex-shrink:0;
 gap:1px;
 padding:3px;
 border:1px solid #e0bd8a;
 border-radius:16px;
 background:#f4d9b3;
 box-shadow:inset 0 1px #fff7e7,0 2px 3px #8d643433;
}

.task-tabs button {
 min-width:0;
 height:32px;
 padding:0 3px;
 border:0;
 border-radius:12px;
 background:transparent;
 color:#6c4a2f;
 font-size:clamp(10px,2.8cqw,13px);
 font-weight:700;
}

.task-tabs button.active {
 background:linear-gradient(#ffd64d,#ffb91f);
 box-shadow:inset 0 1px #fff3a6,0 2px 2px #b8731e55;
 color:#34200f;
}

.task-list {
 display:grid;
 gap:7px;
 flex:1;
 min-height:0;
 margin-top:8px;
 padding:0 1px 5px;
 overflow-y:auto;
 overscroll-behavior:contain;
 scrollbar-width:none;
}

.task-item {
 display:grid;
 grid-template-columns:48px minmax(0,1fr) auto;
 align-items:center;
 gap:9px;
 min-height:62px;
 padding:6px 8px;
 border:1px solid #e5c79e;
 border-radius:15px;
 background:linear-gradient(115deg,#fff9ec,#ffedd4);
 box-shadow:0 3px 3px #93663225,inset 0 1px #fff;
}

.task-logo {
 display:grid;
 place-items:center;
 width:45px;
 height:45px;
 border-radius:11px;
 box-shadow:inset 0 2px 2px #ffffff88,0 2px 3px #6e4d2d44;
 color:#fff;
 font-size:24px;
 font-weight:900;
 text-shadow:0 1px 2px #0004;
}

.task-logo.telegram { background:linear-gradient(145deg,#40c9ff,#1686e3); transform:none; padding-right:3px; }

.task-logo.games { background:linear-gradient(145deg,#c94bff,#7525c9); font-size:22px; }

.task-logo.youtube { background:linear-gradient(145deg,#ff2525,#dc0000); }

.task-logo.miniapp { background:linear-gradient(145deg,#8e67ff,#5732d8); font-size:30px; }

.task-logo.x-logo { background:linear-gradient(145deg,#191919,#000); font-family:Arial,sans-serif; }

.task-logo.review { background:linear-gradient(145deg,#8c5cff,#5031d4); color:#ffe844; }

.tasks-open { --task-scale:clamp(1px,.395cqw,1.65px); }

.tasks-open .tasks-hero { flex:0 0 auto; height:calc(var(--task-scale)*143); }

.tasks-open .tasks-hero:after { display:none; }

.tasks-open .tasks-topline { padding:calc(var(--task-scale)*14) calc(var(--task-scale)*8) 0; grid-template-columns:26px 1fr 26px; }

.tasks-open .tasks-topline h1 { font-size:calc(var(--task-scale)*19); }

.tasks-open .tasks-topline button { width:calc(var(--task-scale)*23); height:calc(var(--task-scale)*23); font-size:calc(var(--task-scale)*14); border-width:1px; }

.tasks-open .tasks-callout { left:8%; top:62%; bottom:auto; width:48%; min-height:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; transform:translateY(-50%); }

.tasks-open .tasks-callout:before,.tasks-open .tasks-callout:after { display:none; }

.tasks-open .tasks-callout strong,.tasks-open .tasks-callout span { font-size:calc(var(--task-scale)*12); line-height:1.25; margin:0; }

.tasks-open .task-content { margin-top:0; padding:calc(var(--task-scale)*4) calc(var(--task-scale)*5) calc(var(--task-scale)*5); }

.tasks-open .task-tabs { padding:1px; border:0; background:#ecd1ae; border-radius:calc(var(--task-scale)*11); }

.tasks-open .task-tabs button { height:calc(var(--task-scale)*27); font-size:calc(var(--task-scale)*9); border-radius:calc(var(--task-scale)*10); }

.tasks-open .task-list { display:flex; flex-direction:column; gap:calc(var(--task-scale)*6); margin-top:calc(var(--task-scale)*10); padding:0 0 5px; }

.tasks-open .task-item { flex-shrink:0; grid-template-columns:calc(var(--task-scale)*42) minmax(0,1fr) calc(var(--task-scale)*69); gap:calc(var(--task-scale)*8); min-height:calc(var(--task-scale)*56); padding:calc(var(--task-scale)*5) calc(var(--task-scale)*7); border-radius:calc(var(--task-scale)*13); background:linear-gradient(110deg,#fff8e9,#ffecd6); }

.tasks-open .task-logo { width:calc(var(--task-scale)*39); height:calc(var(--task-scale)*39); border-radius:calc(var(--task-scale)*10); }

.tasks-open .task-item h2 { font-size:calc(var(--task-scale)*10.5); line-height:1.1; margin-bottom:calc(var(--task-scale)*5); color:#251d14; }

.tasks-open .task-item p { font-size:calc(var(--task-scale)*13); gap:calc(var(--task-scale)*4); }

.tasks-open .mini-egg { width:calc(var(--task-scale)*15); height:calc(var(--task-scale)*19); }

.tasks-open .task-item>button { min-width:0; min-height:calc(var(--task-scale)*28); font-size:calc(var(--task-scale)*9); border-radius:calc(var(--task-scale)*13); padding:calc(var(--task-scale)*6) 2px; border-width:1px; background:linear-gradient(#20a9ff,#0080ec); }



.task-logo svg { width:72%; height:72%; overflow:visible; }

.tasks-open .task-list { gap:calc(var(--task-scale)*5); }

.tasks-open .task-item { grid-template-columns:calc(var(--task-scale)*35) minmax(0,1fr) calc(var(--task-scale)*61); gap:calc(var(--task-scale)*7); min-height:calc(var(--task-scale)*47); padding:calc(var(--task-scale)*4) calc(var(--task-scale)*7); }

.tasks-open .task-logo { width:calc(var(--task-scale)*33); height:calc(var(--task-scale)*33); }

.tasks-open .task-item h2 { font-size:calc(var(--task-scale)*9.5); margin-bottom:calc(var(--task-scale)*3); }

.tasks-open .task-item p { font-size:calc(var(--task-scale)*11.5); }

.tasks-open .mini-egg { width:calc(var(--task-scale)*13); height:calc(var(--task-scale)*16); }

.tasks-open .task-item>button { min-height:calc(var(--task-scale)*25); padding:calc(var(--task-scale)*5) 2px; font-size:calc(var(--task-scale)*8.5); }

.tasks-open .task-reward-coin { width:calc(var(--task-scale)*17); height:calc(var(--task-scale)*17); }

.game.friends-open { padding:0; background:#f9dfb8; }

.friends-open:before { background:none; }

.friends-open>.balances,.friends-open>.island,.friends-open>.harvest,.friends-open>.partner-card { display:none; }

.friends-view { flex:1; min-height:0; display:flex; background:linear-gradient(110deg,#ffe5bc,#fbe6cc); }

.friends-scroll { width:100%; overflow-y:auto; scrollbar-width:none; overscroll-behavior:contain; }

.friends-hero { position:relative; height:clamp(220px,61cqw,315px); background:url('assets/friends-header.webp') center/100% 100% no-repeat; }

.friends-hero h1 { position:absolute; top:4%; left:0; right:0; margin:0; color:white; text-align:center; font-size:clamp(27px,7cqw,38px); text-shadow:0 2px 2px #166fc3; }

.friends-help { position:absolute; right:4%; top:5%; width:36px; height:36px; border:2px solid #e0ae75; border-radius:50%; color:white; background:linear-gradient(#a96831,#633112); font-size:25px; box-shadow:inset 0 2px #f2c582,0 3px #583018; }

.referral-board { position:absolute; left:14%; right:14%; bottom:7%; }

.referral-board h2 { text-align:center; color:#fff7e9; font-size:clamp(12px,3.3cqw,18px); margin:0 0 5px; text-shadow:0 2px #6d3416; }

.referral-field { display:flex; align-items:center; gap:5px; background:linear-gradient(#fff5e5,#ffe2b9); border:1px solid #9d5f2b; border-radius:12px; padding:8px 10px; box-shadow:inset 0 1px white,0 2px #6e381a55; }

.referral-field>span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:clamp(9px,2.6cqw,13px); font-weight:800; }

.referral-field button { border:0; padding:0; background:none; color:#0085ff; width:24px; height:27px; flex-shrink:0; }

.friends-view svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }

.friends-body { padding:10px 12px 16px; }

.invite-actions { display:grid; grid-template-columns:1fr; margin-bottom:14px; }

.invite-actions button { display:flex; justify-content:center; align-items:center; gap:7px; min-width:0; height:52px; border-radius:21px; color:white; font-weight:900; padding:6px; text-shadow:0 2px #0003; }

.invite-actions .invite-button { height:60px; gap:14px; padding:10px 20px; border:2px solid #499527; border-radius:24px; background:linear-gradient(#8ada42,#2fa109); box-shadow:inset 0 2px #c4f28a,inset 0 -3px #26940d,0 3px #307415; font-size:clamp(17px,4.6cqw,23px); }

.invite-button>span { font-size:inherit; white-space:nowrap; }

.invite-button>b { font-size:32px; line-height:1; }

.friends-view .invite-button svg { width:32px; height:32px; flex-shrink:0; fill:white; stroke:none; filter:drop-shadow(0 2px 1px #327c23); }

.friends-view .invite-button .invite-plus { fill:none; stroke:white; stroke-width:4; }

.copy-button { border:2px solid #167de0; background:linear-gradient(#28b5ff,#005fe8); box-shadow:inset 0 2px #7ad1ff,0 3px #1653aa; font-size:clamp(11px,2.8cqw,15px); }

.copy-button svg { width:24px; height:28px; flex-shrink:0; }

.referral-levels,.friend-totals,.friend-list,.friend-rewards { border:1px solid #ebc89e; border-radius:19px; background:linear-gradient(115deg,#fff5e6,#ffecd3); box-shadow:inset 0 1px white,0 2px 2px #a9753522; }

.referral-levels { display:grid; grid-template-columns:repeat(3,1fr); padding:10px 5px; margin-bottom:9px; }

.referral-levels>div { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; }

.referral-levels>div+div { border-left:1px solid #dfba90; }

.referral-levels .mini-egg { width:25px; height:34px; flex-shrink:0; }

.referral-levels b { display:block; color:#32130c; font-size:clamp(21px,6cqw,31px); }

.referral-levels small { display:block; color:#916643; font-size:clamp(9px,2.5cqw,13px); white-space:nowrap; }

.silver-egg { background:radial-gradient(circle at 35% 25%,white,#d8e6f8 50%,#8b9aba); border-color:#6e8cbe; }

.gold-egg { background:radial-gradient(circle at 35% 25%,#fffadc,#ffd941 45%,#ffa300); border-color:#f28a13; }

.friend-totals { display:grid; grid-template-columns:1fr 1fr; padding:10px 5px; margin-bottom:10px; }

.friend-totals>div { text-align:center; }

.friend-totals>div+div { border-left:1px solid #dfba90; }

.friend-totals>div>span { color:#916643; font-size:clamp(12px,3cqw,16px); font-weight:700; }

.friend-totals strong { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:4px; font-size:clamp(26px,7cqw,38px); color:#211009; }

.friend-totals .icon { width:33px; height:33px; }

.friend-totals .mini-egg { width:25px; height:34px; }

.friend-tabs { display:grid; grid-template-columns:1fr 1fr; margin-bottom:10px; border:1px solid #e7bf91; background:#efd3af; border-radius:19px; }

.friend-tabs button { border:0; border-radius:18px; background:none; height:38px; color:#6b3a20; font-weight:900; font-size:clamp(14px,3.7cqw,19px); }

.friend-tabs button.active { background:linear-gradient(#ffe359,#ffb50a); box-shadow:inset 0 2px #fff5ad,0 2px #d28b25; color:#40250a; }

.friend-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; min-height:155px; color:#956844; padding:18px; }

.friend-empty strong { color:#633a22; }

.friend-empty p { font-size:13px; line-height:1.5; }

.friend-empty .icon { margin-bottom:8px; }

.friend-rewards { padding:15px; }

.friend-rewards h2 { font-size:17px; }

.friend-rewards p { font-size:14px; line-height:1.5; }

.friend-row { display:grid; grid-template-columns:28px 37px 1fr auto; align-items:center; gap:9px; padding:7px 9px; }

.friend-row+.friend-row { border-top:1px solid #e9ccaa; }

.friend-rank { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#f7debd; border:1px solid #e5ba87; font-size:18px; font-weight:900; color:#94603b; }

.friend-row:nth-child(1) .friend-rank { background:linear-gradient(#ffe763,#ffad05); color:#59300a; border-color:#ed9609; }

.friend-row:nth-child(2) .friend-rank { background:linear-gradient(#eee,#a3a6ad); color:#333; }

.friend-row:nth-child(3) .friend-rank { background:linear-gradient(#ffd28b,#f58c22); color:#693314; }

.friend-avatar { width:37px; height:37px; border-radius:50%; display:grid; place-items:center; background:linear-gradient(145deg,#53bacb,#336a97); color:white; font-weight:900; }

.friend-row h3 { font-size:14px; margin:0 0 4px; color:#28160d; }

.friend-row small { font-size:11px; color:#9a6341; }

.friend-row>strong { display:flex; align-items:center; gap:5px; color:#66321b; font-size:17px; }

.friend-row .mini-egg { width:19px; height:25px; }

.friends-demo { font-size:10px; margin:0 0 6px; text-align:right; color:#916643; }

.referral-bonus { display:flex; align-items:center; justify-content:center; gap:12px; min-height:86px; margin-bottom:10px; padding:14px 18px; border:1px solid #ebc89e; border-radius:19px; background:linear-gradient(115deg,#fff5e6,#ffecd3); box-shadow:inset 0 1px white,0 2px 2px #a9753522; }

.referral-bonus>.icon { width:40px; height:40px; flex-shrink:0; }

.referral-bonus>div { display:flex; align-items:center; gap:12px; }

.referral-bonus strong { color:#54270e; font-size:clamp(30px,8cqw,42px); }

.referral-bonus span { color:#916643; font-size:clamp(12px,3.3cqw,17px); font-weight:800; line-height:1.35; }

.friend-row .icon { width:23px; height:23px; }

.referral-bonus,.friend-totals { position:relative; overflow:hidden; border-color:#fff9eb; background:linear-gradient(120deg,#fff9e9,#fae9ca); box-shadow:inset 0 1px white,0 3px 7px #ae753c25; }

.referral-bonus { justify-content:flex-start; gap:14px; padding:12px 20px; min-height:94px; }

.referral-bonus:after,.friend-totals:after { content:""; position:absolute; right:-4px; bottom:-22px; width:90px; height:85px; border-radius:95% 0 95% 0; transform:rotate(-15deg); background:linear-gradient(135deg,#d9e8a64d,#afcc6440); pointer-events:none; }

.referral-bonus:before { content:""; position:absolute; right:48px; bottom:-22px; width:44px; height:54px; border-radius:0 90% 0 90%; transform:rotate(-20deg); background:#bacd7633; }

.referral-bonus>div:last-child { position:relative; z-index:1; display:block; }

.referral-bonus strong { display:block; font-size:clamp(30px,8cqw,40px); line-height:1; margin-bottom:3px; color:#54250e; font-weight:1000; }

.referral-bonus span { display:block; font-size:clamp(12px,3.1cqw,15px); line-height:1.15; }

.referral-bonus>.referral-coins { position:relative; display:block; flex-shrink:0; width:74px; height:66px; filter:drop-shadow(0 3px 2px #bf7b2440); }

.referral-coins>i:not(.icon) { position:absolute; width:35px; height:14px; bottom:1px; left:5px; border:2px solid #e18a00; border-radius:50%; background:linear-gradient(#ffe767 35%,#ffb109 40% 75%,#df8704); box-shadow:0 -6px #ffc326,0 -8px #ed9b0b; }

.referral-coins>i:nth-child(2) { left:30px; bottom:4px; }

.referral-coins>.icon { position:absolute; width:58px; height:58px; top:0; left:15px; }

.referral-coins>span { position:absolute; top:2px; left:0; color:#ffc000; font-size:23px; text-shadow:0 1px #fff2a9; }

.referral-coins>b { position:absolute; bottom:14px; left:-3px; color:#ffb600; font-size:20px; }

.friend-totals { min-height:90px; padding:13px 7px; }

.friend-totals>div { position:relative; z-index:1; }

.friend-totals strong { gap:9px; color:#54250e; }

.friend-totals .icon { width:39px; height:39px; filter:drop-shadow(0 2px 1px #ba7b3433); }

.friend-totals>div>span { font-weight:800; font-size:clamp(12px,3cqw,15px); }
@media(max-width:350px) {

.referral-bonus { gap:9px; padding-inline:13px; }

.referral-bonus>.referral-coins { width:65px; } }

.referral-bonus { padding-right:clamp(75px,20cqw,104px); }

.referral-bonus .referral-chick { position:absolute; z-index:1; right:-3px; bottom:-12px; width:clamp(78px,23cqw,115px); height:108%; object-fit:contain; object-position:center bottom; transform:rotate(-7deg); filter:drop-shadow(0 3px 2px #ab712e44); pointer-events:none; }

.friends-body .invite-actions { grid-template-columns:1.5fr 1fr; gap:7px; margin-bottom:12px; }

.friends-body .invite-actions button { height:46px; min-height:44px; border-radius:15px; padding:7px 9px; gap:7px; }

.friends-body .invite-actions .invite-button { font-size:clamp(11px,3.05cqw,16px); }

.friends-body .invite-button svg { width:25px; height:25px; }

.friends-body .invite-actions .copy-button { justify-content:flex-start; font-size:clamp(10px,2.8cqw,14px); gap:7px; }

.friends-body .copy-button span { text-align:left; line-height:1.15; }

.friends-body .copy-button svg { width:23px; height:26px; }

.friends-body .referral-levels { min-height:78px; border-color:#fff9eb; background:linear-gradient(120deg,#fff9e9,#fae9ca); box-shadow:inset 0 1px white,0 3px 7px #ae753c25; }

.friends-body .referral-levels .mini-egg { width:25px; height:34px; border:1px solid #a86032; border-radius:50% 50% 45% 45%; background:radial-gradient(ellipse at 32% 24%,#fff0d9 0%,#efc397 28%,#c78b55 62%,#a75c2b 100%); box-shadow:inset 1px 1px 2px #fff8, inset -1px -2px 2px #80431855,0 2px 2px #92572e33; }

.friends-body .referral-levels .silver-egg { border-color:#8194b3; background:radial-gradient(ellipse at 32% 24%,#fff 0%,#e4edf8 28%,#b4c3d9 65%,#8094b2 100%); box-shadow:inset 1px 1px 2px #fff,inset -1px -2px 2px #52668044,0 2px 2px #6d7c9233; }

.friends-body .referral-levels .gold-egg { border-color:#e79206; background:radial-gradient(ellipse at 32% 24%,#fffdd7 0%,#ffe87d 28%,#ffc323 62%,#f79b05 100%); box-shadow:inset 1px 1px 2px #fff8,inset -1px -2px 2px #c56e0044,0 2px 2px #b77d1233; }

.friends-body .friend-totals { min-height:65px; padding:8px 5px; border-radius:16px; }

.friends-body .friend-totals>div>span { font-size:clamp(11px,2.7cqw,13px); }

.friends-body .friend-totals strong { margin-top:2px; gap:6px; font-size:clamp(23px,6cqw,30px); line-height:1.1; }

.friends-body .friend-totals .icon { width:28px; height:28px; }
@font-face { font-family:Nunito; src:url('assets/Nunito-Variable.ttf') format('truetype'); font-style:normal; font-weight:200 1000; font-display:swap; }
@font-face { font-family:Onest; src:url('assets/Onest-Variable.ttf') format('truetype'); font-style:normal; font-weight:100 900; font-display:swap; }

body { font-family:Nunito,Arial,sans-serif; font-weight:500; }

button,input,output { font-family:inherit; }

h1,h2,h3,.collect,.balance output,.shop-purchase,.referral-levels b,.friend-totals strong,.wallet-balance strong { font-family:Nunito,Arial,sans-serif; font-weight:900; }

.collect { font-weight:1000; letter-spacing:-.4px; }

.task-item h2,.tasks-open .task-item h2,.friend-row h3,.wallet-row h2 { font-family:Nunito,Arial,sans-serif; font-weight:650; letter-spacing:-.15px; }

.showcase-description { font-weight:400; line-height:1.5; }

.tasks-callout,.referral-board h2,.empty-island { font-family:Nunito,Arial,sans-serif; }

.invite-actions button,.wallet-actions button { font-weight:750; }

.friend-tabs button,.wallet-tabs button { font-weight:700; }

.shop-view,.shop-view button,.shop-view h1,.shop-view h2,.shop-view p,.shop-view span,.shop-view strong,.shop-view b { font-family:Nunito,Arial,sans-serif; }

.shop-title h1 { font-weight:900; }

.showcase-description { font-weight:600; }

.stat-row,.shop-ownership { font-weight:600; }

.tasks-view,.tasks-view button,.tasks-view h1,.tasks-view h2,.tasks-view p,.tasks-view span,.tasks-view strong { font-family:Nunito,Arial,sans-serif; }

.tasks-open .task-item h2 { font-family:Nunito,Arial,sans-serif; font-weight:800; }

html,body,button,input,select,textarea,output,.task-logo.x-logo { font-family:Nunito,Arial,sans-serif; }

.referral-bonus>div:last-of-type { position:relative; z-index:2; display:block; }
@media(max-width:350px) {

.referral-bonus { padding-right:65px; gap:5px; }

.referral-bonus>.referral-coins { width:57px; }

.referral-bonus span { font-size:11px; }

.referral-bonus .referral-chick { right:-8px; width:72px; } }

.game.wallet-open { padding:0; background:#fbe5c9; }

.wallet-open:before { background:none; }

.wallet-open>.balances,.wallet-open>.island,.wallet-open>.harvest,.wallet-open>.partner-card { display:none; }

.wallet-view { display:flex; flex:1; min-height:0; flex-direction:column; background:linear-gradient(110deg,#fff0d7,#f7dfc2); }

.wallet-hero { position:relative; flex-shrink:0; height:clamp(165px,64cqw,245px); background:url('assets/wallet-header.webp') center/100% 100% no-repeat; }

.wallet-hero h1 { margin:0; position:absolute; top:7%; left:0; right:0; text-align:center; color:white; font-size:clamp(20px,5.8cqw,28px); text-shadow:0 2px #183922; }

.wallet-hero>button { position:absolute; top:7%; right:4%; border:1px solid #d3a574; border-radius:50%; background:#ffe9ca; color:#6d391f; font-weight:900; width:25px; height:25px; font-size:18px; }

.wallet-balance { position:absolute; top:31%; bottom:25%; left:23%; right:23%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:white; text-shadow:0 2px #592e13; }

.wallet-balance>span { font-size:clamp(12px,3.3cqw,16px); font-weight:800; }

.wallet-balance strong { display:flex; justify-content:center; align-items:center; gap:6px; margin:2px 0; font-size:clamp(27px,7.5cqw,39px); line-height:1; font-weight:900; white-space:nowrap; }

.wallet-balance .icon { width:32px; height:32px; }

.wallet-balance small { color:#ffe356; font-size:clamp(11px,3cqw,14px); font-weight:700; }

.wallet-sheet { position:relative; flex:1; min-height:0; display:flex; flex-direction:column; padding:14px 9px 4px; margin-top:-4px; border-radius:22px 22px 0 0; border-top:2px solid #fff4d9; background:linear-gradient(110deg,#fff0da,#f9dfc2); }

.wallet-actions { padding:0 4px; display:grid; gap:8px; flex-shrink:0; }

.wallet-actions button { position:relative; display:flex; justify-content:center; align-items:center; gap:12px; min-height:44px; border-radius:17px; font-size:clamp(13px,3.5cqw,17px); font-weight:900; padding:5px 12px; }

.wallet-connect { border:1px solid #e59d14; background:linear-gradient(#ffe77b,#ffb608); color:#492b04; box-shadow:inset 0 2px #fff5ac,0 3px #dba04955; }

.wallet-connect .icon { width:25px; height:25px; }

.wallet-exchange { border:1px solid #388c1e; background:linear-gradient(#75d83a,#26930d); box-shadow:inset 0 2px #b5ed83,0 3px #638b3155; color:white; text-shadow:0 2px #34760e; }

.wallet-exchange>.exchange-icon { position:static; width:25px; height:25px; flex-shrink:0; object-fit:contain; pointer-events:none; }

.wallet-exchange>b { position:absolute; right:7%; font-size:29px; }

.wallet-withdraw { border:1px solid #d2b597; background:linear-gradient(#ead7c5,#dac1ad); color:#765641; box-shadow:inset 0 1px #fff1e5,0 3px #b6917255; }

.wallet-withdraw svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }

.wallet-tabs { margin:14px 0 6px; display:grid; grid-template-columns:1fr 1fr; border-radius:14px; background:#f1d6b6; flex-shrink:0; }

.wallet-tabs button { border:0; border-radius:14px; min-height:29px; padding:4px; font-size:12px; font-weight:900; color:#7c4b32; background:none; }

.wallet-tabs button.active { background:linear-gradient(#ffdf63,#ffb51c); box-shadow:inset 0 1px #fff1a6,0 2px #e0a74955; color:#3c240c; }

.wallet-history,.wallet-withdrawals { flex:1; min-height:0; overflow-y:auto; scrollbar-width:none; padding:0 5px; overscroll-behavior:contain; }

.wallet-row { display:grid; grid-template-columns:33px minmax(0,1fr) auto; gap:9px; align-items:center; padding:6px 0; border-bottom:1px solid #ead0b0; }

.wallet-operation { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; color:white; font-size:22px; font-weight:900; text-shadow:0 1px #0004; box-shadow:inset 0 1px #ffffff70,0 2px #986c3822; background:linear-gradient(#f9c547,#cd710d); }

.wallet-operation.task,.wallet-operation.exchange { background:linear-gradient(#72d440,#239610); }

.wallet-operation.ref { background:linear-gradient(#9c6bff,#5e30d9); }

.wallet-operation.buy { background:linear-gradient(#ff6363,#ec1515); }

.wallet-operation.withdraw { background:linear-gradient(#ae7343,#7b3c1a); }

.wallet-operation.ad { background:linear-gradient(#45caff,#078de2); }

.wallet-row h2 { margin:0 0 4px; font-size:clamp(11px,3cqw,15px); color:#412c1e; }

.wallet-row small { font-size:clamp(9px,2.5cqw,12px); color:#9b7255; }

.wallet-row>strong { display:flex; align-items:center; gap:3px; font-size:clamp(13px,3.5cqw,17px); color:#259113; }

.wallet-row>strong.negative { color:#d72718; }

.wallet-row .icon { width:20px; height:24px; }

.wallet-demo { display:block; font-size:9px; text-align:right; color:#a77d59; }

.wallet-empty,.wallet-withdrawals p { text-align:center; color:#956f50; font-size:14px; padding:20px 0; }
@media(max-height:650px) {

.wallet-hero { height:180px; }

.wallet-sheet { padding-top:9px; }

.wallet-actions { gap:6px; }

.wallet-actions button { min-height:38px; }

.wallet-tabs { margin-top:10px; }

.wallet-row { padding:5px 0; } }

.task-item h2 {
 margin:0 0 2px;
 font-size:clamp(11px,3.1cqw,15px);
 line-height:1.12;
}

.task-item p {
 display:flex;
 align-items:center;
 gap:3px;
 margin:0;
 color:#4b2917;
 font-size:15px;
 font-weight:900;
}

.mini-egg {
 display:inline-block;
 width:17px;
 height:21px;
 border:1px solid #d9a167;
 border-radius:50% 50% 45% 45%;
 background:radial-gradient(circle at 38% 27%,#fff,#fff1d4 45%,#e6bd85 100%);
 box-shadow:0 1px 1px #9d673c66;
}

.task-item>button {
 min-width:77px;
 min-height:35px;
 padding:7px 11px;
 border:2px solid #167fd3;
 border-radius:18px;
 background:linear-gradient(#31b7ff,#087bd8);
 box-shadow:inset 0 2px #83dcff,0 2px 2px #07579966;
 color:#fff;
 font-size:12px;
 font-weight:900;
 text-shadow:0 1px #075994;
}
@media(max-height:650px) {

.tasks-hero { flex-basis:135px; }

.tasks-callout { bottom:18px; min-height:56px; padding:7px 13px; }

.task-item { min-height:55px; }

.task-logo { width:41px; height:41px; }
}
@media(max-width:350px) {

.tasks-callout { left:4%; width:52%; }

.task-content { padding-inline:6px; }

.task-item { grid-template-columns:42px minmax(0,1fr) auto; gap:6px; padding-inline:6px; }

.task-logo { width:40px; height:40px; font-size:20px; }

.task-item>button { min-width:66px; padding-inline:8px; font-size:11px; }
}
/* Shared controls keep their geometry across every screen. */
.game { --navigation-height:calc(78px + env(safe-area-inset-bottom)); }

.game.shop-open > .shop-view { flex:1; height:auto; min-height:0; scroll-padding-bottom:12px; }

.game.shop-open .shop-sheet { padding-bottom:12px; }

.game .shop-help,.game .tasks-topline button,.game .friends-help,.game .wallet-hero > button {
 display:grid; place-items:center; width:36px; height:36px; min-width:36px;
 padding:0; border:2px solid #e0ae75; border-radius:50%;
 background:linear-gradient(145deg,#b8783c,#713b1b);
 box-shadow:inset 0 2px 1px #f2c582,0 2px 3px #43230b66;
 color:#fff4dc; font-family:Nunito,Arial,sans-serif;
 font-size:23px; font-weight:900; line-height:1; text-shadow:0 2px #603015;
}

.game .friends-help,.game .wallet-hero > button { top:max(12px,env(safe-area-inset-top)); right:12px; z-index:4; }

.game .bird-shop-header { top:max(12px,env(safe-area-inset-top)); }

.game .bird-shop-header .shop-title { margin-left:44px; }

.game .tasks-topline { padding:max(12px,env(safe-area-inset-top)) 12px 0; grid-template-columns:36px 1fr 36px; }

.gram-symbol { position:absolute; left:-12px; display:grid; place-items:center; width:48px; height:48px; border:3px solid #bcefff; border-radius:50%; background:linear-gradient(145deg,#82e4ff,#168ac9 65%,#08609c); box-shadow:inset 0 2px 2px #e0faff,0 2px 2px #44280b; color:white; font-style:normal; font-size:30px; font-weight:900; text-shadow:0 2px #17628c; }

.balance-gram { padding-left:33px; gap:3px; }

.balance-gram output { font-size:clamp(13px,3.7cqw,19px); letter-spacing:-.4px; }

.gram-unit { position:absolute; bottom:1px; left:33px; right:34px; text-align:center; font-size:8px; font-weight:800; color:#bdeaff; line-height:1; }

.balance-gram output { padding-bottom:7px; }
@media(max-width:350px) {

.balance-gram { padding-left:28px; }

.gram-symbol { width:43px; height:43px; font-size:27px; } }

.gram-symbol { padding:4px; }

.gram-symbol img { display:block; width:100%; height:100%; object-fit:contain; border-radius:50%; }

.gram-symbol { padding:0; border:0; background:none; box-shadow:none; text-shadow:none; }

.gram-symbol { border:1px solid #a6e3ff; }

.balance-gram output { padding-bottom:0; }

.gram-symbol { border:0; }

.partner-card {
 position:relative; flex-shrink:0; min-height:86px;
 padding:22px 12px 12px; gap:7px;
 border:0; border-radius:0;
 background:url('assets/partner-wood-panel.webp') center/100% 100% no-repeat;
 box-shadow:none; filter:drop-shadow(0 3px 2px #263b2560);
}

.partner-card .gift-tile { width:48px; background:none; border-radius:0; box-shadow:none; }

.partner-card .gift-tile .icon { width:48px; height:48px; }

.partner-card .partner-copy h2 { color:#fff4db; font-size:clamp(12px,3.7cqw,19px); margin:0 0 3px; text-shadow:0 2px 1px #743513; }

.partner-card .partner-copy p { color:#fff0ce; font-size:clamp(10px,3cqw,15px); text-shadow:0 1px 1px #743513; gap:2px; }

.partner-card > .green { padding:8px 9px; font-size:clamp(11px,3.2cqw,16px); }
@media(max-width:350px) {

.partner-card { padding:20px 9px 10px; gap:4px; min-height:78px; }

.partner-card .gift-tile,.partner-card .gift-tile .icon { width:39px; height:39px; }

.partner-card > .green { padding:8px 6px; } }

.partner-card { min-height:98px; padding-top:26px; padding-bottom:16px; }
@media(max-width:350px) {

.partner-card { min-height:90px; padding-top:24px; padding-bottom:14px; } }

.partner-card { min-height:120px; padding:0; }
@media(max-width:350px) {

.partner-card { min-height:110px; padding:0; } }

.game.top-open { padding:0; background:#385a29 url('assets/island.webp') center/cover; }

.top-open:before { background:linear-gradient(#10281644,#14280b88); }

.top-open > .balances,.top-open > .island,.top-open > .harvest,.top-open > .partner-card { display:none; }

.top-view { display:flex; flex:1; min-height:0; flex-direction:column; }

.top-hero { position:relative; flex-shrink:0; padding:20px 50px 12px; text-align:center; color:#fff2ca; }

.top-hero > .icon { width:65px; height:65px; filter:drop-shadow(0 3px 2px #341b10); }

.top-hero h1 { margin:0; font-size:clamp(24px,7cqw,34px); font-weight:900; text-shadow:0 3px #54321b; }

.top-hero p { margin:3px 0 0; font-size:12px; font-weight:800; text-shadow:0 2px #34431b; }

.top-scroll { flex:1; min-height:0; overflow-y:auto; padding:0 12px 12px; scrollbar-width:none; }

.top-demo { margin:0 0 5px; text-align:center; color:#fff4cc; font-size:10px; text-shadow:0 1px #253814; }

.top-list { list-style:none; padding:0; margin:0; display:grid; gap:2px; }

.top-row { display:flex; align-items:center; gap:7px; min-height:68px; padding:15px 17px 8px; background:url('assets/partner-wood-panel.webp') center/100% 100% no-repeat; color:#fff5dc; text-shadow:0 2px 1px #663416; }

.top-rank { display:grid; place-items:center; flex:0 0 27px; width:27px; height:27px; border:1px solid #f1c489; border-radius:50%; background:#723e23; font-size:14px; font-weight:900; }

.rank-1 { background:linear-gradient(#fff080,#ffa412); color:#6b350b; }

.rank-2 { background:linear-gradient(#f5fbff,#96b2c7); color:#354d65; }

.rank-3 { background:linear-gradient(#ffc286,#bd642f); color:#68330d; }

.top-avatar { width:36px; height:40px; object-fit:contain; filter:drop-shadow(0 2px #64341955); }

.top-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:clamp(12px,3.7cqw,18px); font-weight:900; }

.top-coins { display:flex; align-items:center; gap:3px; white-space:nowrap; font-size:clamp(12px,3.8cqw,19px); font-weight:900; font-variant-numeric:tabular-nums; }

.top-coins .icon { width:25px; height:25px; }

.top-self { filter:drop-shadow(0 0 4px #ffe18b); }

.top-own { margin:9px 0 0; border:1px solid #e2b16b; border-radius:15px; background:#583018e6; padding:10px; text-align:center; color:#ffe3a1; font-size:13px; font-weight:900; }
@media(max-width:350px) {

.top-row { gap:4px; padding-left:12px; padding-right:12px; }

.top-avatar { width:30px; }

.top-scroll { padding-left:8px; padding-right:8px; } }

.top-back { position:absolute; top:max(12px,env(safe-area-inset-top)); left:12px; width:36px; height:36px; z-index:4; }

.bonus-modal,.settings-modal { text-align:center; }

.bonus-modal-gift { width:72px; height:72px; filter:drop-shadow(0 3px 2px #94532d55); }

.bonus-modal h2,.settings-modal h2 { margin:0 0 8px; font-weight:900; }

.bonus-modal p { font-size:13px; margin:0 4px 16px; color:#805337; font-weight:700; }

.bonus-week { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }

.bonus-day { position:relative; display:flex; flex-direction:column; align-items:center; gap:3px; min-height:102px; padding:10px 4px; border:2px solid #bd8140; border-radius:15px; background:linear-gradient(#ba7b3e,#81431f); box-shadow:inset 0 2px #e3af66,0 2px #8f5c34; color:#fff0cf; }

.bonus-day > span { font-size:11px; font-weight:800; }

.bonus-day .icon { width:37px; height:37px; }

.bonus-day strong { font-size:18px; font-weight:900; }

.bonus-day:last-child { grid-column:3 / 5; background:linear-gradient(#db9b3a,#a0571e); }

.bonus-day.available { border-color:#ffdb60; box-shadow:0 0 0 2px #ffbf3555,inset 0 2px #fff0a0; }

.bonus-day.claimed { background:linear-gradient(#78984c,#436828); border-color:#9dbb6a; }

.bonus-tick { position:absolute; right:5px; top:4px; color:#e1ffba; }

.bonus-modal small { display:block; margin-top:13px; font-size:11px; color:#845a3d; }

.bonus-modal .primary:disabled { box-shadow:none; background:#b4a28a; border-color:#978369; text-shadow:none; }

.settings-modal > .icon { width:54px; height:54px; }

.settings-panel { padding:15px; margin-top:18px; border:1px solid #d8ad76; border-radius:17px; background:#fff5df80; }

.settings-panel h3 { font-size:15px; margin:0 0 12px; }

.language-options { display:flex; gap:8px; }

.language-options button { flex:1; border:2px solid #b88142; border-radius:12px; padding:10px 4px; background:linear-gradient(#c5894c,#905024); color:#fff5e2; font-weight:800; }

.language-options button[aria-pressed="true"] { background:linear-gradient(#87cf4b,#4d9327); border-color:#548d2d; box-shadow:inset 0 2px #b7e781; }

.settings-toggle { width:100%; display:flex; justify-content:space-between; align-items:center; padding:15px; margin-top:12px; border:1px solid #d8ad76; border-radius:17px; background:#fff5df80; color:#64391f; font-weight:800; }

.settings-toggle b { color:#478629; }

.settings-modal .muted { font-size:12px; }

.friends-list-title { margin:10px 5px 8px; font-size:17px; font-weight:900; color:#734526; }

.top-demo:empty { display:none; }

.wallet-actions .wallet-exchange { min-height:44px; border:1px solid #388c1e; border-radius:15px; background:linear-gradient(#75d83a,#26930d); box-shadow:inset 0 2px #b5ed83,0 3px #638b3155; padding:5px 12px; justify-content:center; align-items:center; color:white; text-shadow:0 2px #34760e; }

