/* Living Farm — one presentation layer; all game and payment rules stay unchanged. */
:root{color-scheme:light;--bg:#f9efd9;--panel:#fff7e8;--line:#d9c29b;--text:#422b1b;--muted:#7d684f;--gold:#9d6018;--green:#54733a;--radius:22px;--wood:url('/assets/living-farm/decor/wood.webp');font-family:'Trebuchet MS','Segoe UI',sans-serif}
body{background:#e9e3d5;color:var(--text);background-image:radial-gradient(ellipse at 30% 5%,#fffaf0,transparent 60%);font-size:15px}
body,button,input,select,textarea{font-family:'Trebuchet MS','Segoe UI',sans-serif}
.app{max-width:520px;background:#f9efd9;box-shadow:0 0 70px #57402a19;border:0;overflow:clip}
main{min-height:calc(100dvh - 87px)}
.app::after{width:min(100%,520px);border-width:7px;border-image-width:7px;opacity:.45;z-index:40}
.page,.auth-page,.welcome{padding:22px 23px 112px;background:transparent}
body[data-screen=farm] .page{animation:none}
.app .page,.app .auth-page,.app .welcome{padding-top:22px}
.page-title,.farm-title,.welcome h1{color:#422713;letter-spacing:-1px;font-weight:800}
.page-title{font-size:30px;line-height:1.15}
.eyebrow{color:#956524;letter-spacing:1.7px;font-size:10px}
.muted,.small{color:var(--muted)}
.pill{border-color:#ceb78f;background:#fff6e5;color:#7b6040;font-size:11px}
.pill::before{background:#789352}
.icon-button{background:#fff5e2;border:1px solid #cbb188;color:#70491d;box-shadow:0 2px 0 #b88e5220}
.button{border-radius:14px;font-size:14px;min-height:51px;font-weight:700;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.button.primary{color:#4b2a0e;background:linear-gradient(#ffd878bd,#efb747c7),var(--wood) center/cover;border:1px solid #d29536;box-shadow:inset 0 1px #fff4cd,0 3px 0 #be862d,0 6px 12px #88632e16}
.button.secondary{color:#644421;background:linear-gradient(#fff2d7b5,#efdbb8ce),var(--wood) center/cover;border:1px solid #c7a771;box-shadow:inset 0 1px #fff9e9,0 2px 0 #ae895c39}
.button.text{color:#796043}
.button:not(:disabled):hover{filter:brightness(1.025)}
.button:not(:disabled):active{transform:translateY(2px);box-shadow:inset 0 1px #fff4cd,0 1px 0 #b68642}
.button:disabled{opacity:.56;filter:saturate(.55);cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9d6a28;outline-offset:3px}
.inline-link{color:#8c5319}
.toast{background:#fff2d3;color:#52341a;border:1px solid #cead73;box-shadow:0 10px 25px #4c301c26;bottom:101px}

/* Shared cream header, compact language underneath the brand. */
.language-picker{padding:17px 23px 10px;min-height:87px;background:linear-gradient(110deg,#fff7e8,#f1e2c6);border-bottom:1px solid #cfb68b;box-shadow:0 3px 8px #6741210b}
.language-brand{gap:8px;height:29px;width:max-content}
.language-brand>img{width:34px;height:38px;filter:drop-shadow(0 2px 1px #a3784c44)}
.language-brand strong{color:#422715;font-size:24px;letter-spacing:-.85px;font-weight:900;line-height:1}
.language-brand strong span{color:inherit}
.language-picker details{margin:4px 0 0 42px}
.language-picker summary{color:#796042;font-size:11px;padding:2px 1px;gap:5px;min-height:24px}
.language-picker summary img{width:18px;height:13px;filter:none}
.language-options{top:83px;left:24px;background:#fff8eb;border:1px solid #cfb68b;border-radius:14px;box-shadow:0 12px 30px #51371830;color:#4f361e;z-index:100}
.language-options button{color:#50351d;background:transparent;font-size:14px}
.language-options button[aria-pressed=true]{background:#f5dda8}
.language-picker+#screen .guide-entry{top:28px;right:22px}
.guide-entry button{color:#795328;background:#fff5e2;border:1px solid #c8ab7c;box-shadow:0 2px 0 #b49a7033;min-height:37px;padding:8px 10px;font-size:10px}
.guide-entry span{border-color:#a17b4b;background:#f4e3c4}
.brand-name,.brand-name span{color:#4c3017}
.brand small{color:#9a7850}

/* Navigation remains six destinations with generous touch targets. */
.app .bottom-nav{width:min(100%,520px);grid-template-columns:repeat(6,minmax(0,1fr));padding:7px 11px max(11px,env(safe-area-inset-bottom));background:linear-gradient(#fff7e7,#f2e2c4);border:1px solid #d7bc8d;border-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -6px 20px #5b3b201c;backdrop-filter:none;gap:2px}
.nav-item{min-width:0;min-height:61px;color:#84613c;padding:7px 2px;gap:6px;font-size:10px;font-weight:700;line-height:1.2;border:1px solid transparent;border-radius:15px}
.nav-item svg{width:24px;height:24px;stroke-width:1.8;filter:drop-shadow(0 1px #fff9e9)}
.nav-item.active{color:#583212;background:linear-gradient(#ffe09a,#f9ca66);border-color:#e8ba5c;box-shadow:inset 0 1px #fff2c6}
.nav-item.active svg{stroke-width:2.2}
.message-badge{background:#b3442e;color:white;border:2px solid #fff3dd}

/* The welcome page opens onto the same sunny miniature world. */
.welcome{padding-bottom:27px;background:linear-gradient(#fff8e800,#f9efd9 82%)}
.welcome-head{padding-top:10px}
.welcome h1{font-size:41px;line-height:1.06;margin:13px 0 16px}
.welcome h1 em{color:#aa6c21}
.welcome-head>.muted{font-size:14px;color:#7b6449}
.welcome-scene{margin:24px -23px 22px;padding:0;background:none;border:0;border-radius:0;overflow:visible}
.welcome .hero-art{height:350px;position:relative;overflow:hidden;border-radius:0;background:#bbd892 url('/assets/living-farm/scenes/background-normal.webp') center/cover no-repeat;box-shadow:inset 0 1px #d6c096}
.welcome .hero-art::before{display:none}
.welcome .hero-hen{width:250px;height:275px;left:50%;top:41px;margin:0;filter:drop-shadow(0 9px 5px #62421933);mask-image:none;animation:none;transform:translateX(-50%)}
.welcome .hero-hen img{width:100%;height:100%;margin:0;filter:none}
.welcome .hero-egg{width:79px;height:110px;object-fit:contain;left:20px;bottom:15px;filter:drop-shadow(0 4px 4px #64441c55)}
.welcome .hero-chick{width:102px;height:120px;object-fit:contain;right:14px;bottom:10px;filter:drop-shadow(0 4px 4px #64441c44)}
.hero-captions{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:13px 19px;background:#fff7e7;border-block:1px solid #d5bd92;position:relative}
.hero-caption{color:#876845;font-size:11px;padding:0 10px;min-width:0}
.hero-caption+.hero-caption{border-left:1px solid #e1cda7}
.hero-caption strong,.hero-caption-count{color:#6b431c}
.hero-caption-count{font-size:29px}
.hero-caption-icon{background:#f1ddb7;color:#896529;border-color:#d5b88a}
.welcome-foot,.login-note{color:#857256}
.welcome-bottom{padding:0 2px}

/* Farm — unhurried, readable controls around a large living scene. */
.preview-ribbon{margin:-12px -23px 20px;padding:9px 23px;color:#8c7555;background:#efe1c74d;border-color:#e0cca5;font-size:9px;letter-spacing:.4px}
.preview-ribbon button{color:#875a22}
.farm-top{margin:5px 0 18px}
.greeting{font-size:12px;color:#8b7150}
.farm-title{font-size:32px;margin-top:6px}
.avatar{border-color:#c7a570;background:linear-gradient(#fff1d0,#e7c994);color:#754818;border-radius:15px;box-shadow:0 2px 0 #c3a17138}
.balance{background:linear-gradient(120deg,#fff9e8,#f5e4c4);border-color:#d5b784;border-radius:18px;padding:16px 19px;box-shadow:0 3px 0 #d9c49b55}
.balance small{color:#907049;font-size:10px;letter-spacing:1.2px}
.balance-amount{font-size:32px;color:#4f3218}
.balance-amount span{color:#99733c;font-size:10px}
.coin-symbol{background:linear-gradient(125deg,#ffdc74,#e6a639);border-color:#d39531;box-shadow:inset 0 0 0 4px #ffdf82,inset 0 0 0 5px #c6943c,0 3px 4px #87643324;color:#985711;transform:rotate(-10deg)}
.life-steps{margin:22px 0 16px;color:#a28e6d}
.life-steps span{color:#927956;font-size:11px}
.life-steps i{background:#efe0bf;border-color:#d2ba8e;color:#9e8153}
.life-steps .current,.life-steps .done{color:#71511f}
.life-steps .current i{background:#f8d886;color:#72501b;border-color:#d4a347}
.life-steps .done i{background:#dce6be;color:#517238;border-color:#afc286}
.game-stage,.game-stage.hen-farm,.game-stage.incubation-stage{height:430px;margin:18px -12px 24px;border:1px solid #c8ac78;border-radius:25px;isolation:isolate;background:#b9d899 var(--farm-background,url('/assets/living-farm/scenes/background-normal.webp')) center center/cover no-repeat;box-shadow:0 5px 0 #c0a07129,0 9px 18px #77532212}
.game-stage::before,.hen-farm::before,.incubation-stage::before{content:'';inset:0;border:0;border-radius:inherit;background:linear-gradient(180deg,#fff4d125,transparent 27%,transparent 68%,#42361977 81%,#302613cf 100%);z-index:0;pointer-events:none}
.game-stage::after,.hen-farm::after{display:none}
.game-stage .stage-badge,.hen-farm .stage-badge{margin:16px 8px 0;padding:9px 13px;background:linear-gradient(#ffe9b5eb,#e9c688eb),var(--wood) center/cover;border:1px solid #b98a40;color:#795020;border-radius:9px;box-shadow:0 2px 3px #50341425;font-size:9px;letter-spacing:1.15px;text-shadow:0 1px #fff7da;max-width:calc(100% - 24px)}
.game-stage .pet-button,.hen-farm .pet-button,.incubation-stage .pet-button{width:290px;max-width:94%;height:287px;margin:0 auto;display:flex;align-items:center;justify-content:center;padding:0;position:relative}
.game-stage .pet-button .farm-pet,.hen-farm .pet-button .farm-pet{width:285px;height:278px;max-width:100%;margin:0;object-fit:contain;filter:drop-shadow(0 7px 4px #4f321832)}
.game-stage .stage-caption,.hen-farm .stage-caption{font-size:23px;line-height:1.2;color:#fff2d5;text-shadow:0 2px 4px #33290d88;padding:0 15px;margin-top:2px}
.game-stage .stage-sub,.hen-farm .stage-sub{font-size:11px;line-height:1.5;color:#f7e9c8;padding:0 15px;margin-top:7px;text-shadow:0 1px 3px #493116}
.incubation-stage .pet-button .farm-pet{width:156px;height:205px;margin:0 0 46px;filter:drop-shadow(0 5px 4px #56391930)}
.game-stage .incubation-nest{width:295px;height:204px;top:151px}
.game-stage .nest-front{clip-path:inset(67% 0 0 0)}
.care-card{background:linear-gradient(125deg,#fff8e9,#f1e2c5);border-color:#d4bc91;border-radius:19px;box-shadow:0 2px 0 #dfc9a466;padding:19px}
.care-heading{gap:10px;color:#694a26;font-size:13px;align-items:flex-start}
.care-label{color:#9a7341;background:#eadbbf;font-size:9px;white-space:normal;text-align:right}
.timer-text{color:#856a45;font-size:12px;margin:13px 0;line-height:1.5}
.care-card progress,.tap-progress{background:#ddcaa4;border:0;height:8px;box-shadow:none}
.care-card progress::-webkit-progress-bar,.tap-progress::-webkit-progress-bar{background:#ddcaa4}
.care-card progress::-webkit-progress-value,.tap-progress::-webkit-progress-value{background:linear-gradient(90deg,#dcad4d,#f8cb68)}
.care-card progress::-moz-progress-bar,.tap-progress::-moz-progress-bar{background:#e7b857}
.feed-dots span{background:#ebdfc7;border-color:#ceb68a;color:#a28d68}
.feed-dots .fed{background:#dae4ba;border-color:#a4b97d;color:#55702f}
.feed-store,.hen-upgrade,.referral-link-card,.referral-rules,.profile-details,.info-card,.income-card,.tap-task,.chicken-growth{background:linear-gradient(125deg,#fff8eb,#f3e6cd);border:1px solid #d4bb90;border-radius:18px;box-shadow:0 3px 0 #d9c39a28;color:#573b1d}
.feed-store{padding:20px;margin-top:22px}
.feed-store h2,.feed-store h3{color:#65451f}
.feed-store-heading{gap:12px}
.feed-store-icon{background:#ecd4a3;border-color:#d5b577;color:#80582b}
.feed-store p,.store-note,.hen-upgrade-next p,.info-card p{color:#806949;font-size:11px;line-height:1.7}
.feed-free{color:#896432}.feed-free small{color:#987f5d}
.hen-upgrade-next strong{color:#926026}.hen-upgrade-next img{width:72px;height:86px}
.section-header h2{font-size:19px;color:#64421f}
.section-header button,.nest-hint{color:#947140;font-size:11px}
.egg-count{background:#f1d68e;border-color:#d9b460;color:#87531a}
.empty-nest{background:#eee4c9;border-color:#d4bd94;border-radius:18px;color:#826f4d}
.empty-nest h3{color:#6e4b25}.empty-nest p{color:#8b7351}
.empty-nest img{width:115px;height:92px;object-fit:contain;filter:drop-shadow(0 4px 3px #6d4f2026)}
.egg-nest{gap:11px}
.laid-egg{background:linear-gradient(#fff8e5,#efddbb);border-color:#d2b17a;border-radius:17px;box-shadow:0 3px 0 #ccb1844d}
.laid-egg-label{color:#845829;background:#f3d996;border-color:#d9b46c;font-weight:700;font-size:11px}
.laid-egg-shell{filter:drop-shadow(0 4px 3px #7950182e)}
.nest-more{color:#8c7756}
.preview-settings{color:#8f7a5a;border-color:#d5bf94;background:#f4e8cf;border-radius:15px;padding:14px}
.preview-settings summary{color:#79582d;font-size:12px}
.preview-settings p{color:#877252}
.resident-chip{background:#f7eacb;border-color:#ceae77;color:#6f4c22}
.resident-chip.active{background:#f9d991;border-color:#bf8834}
.resident-chip span{color:#745229}

/* Three real illustrated poses; footfall and breathing remain subtle. */
.living-hen{position:relative;display:block;isolation:isolate;overflow:visible}
.living-hen .hen-pose{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain;margin:0!important;filter:none!important;opacity:0;transform-origin:50% 86%;transition:opacity .22s ease;pointer-events:none}
.living-hen .hen-standing{opacity:1;animation:living-step 4.8s ease-in-out infinite}
.living-hen .living-ground{position:absolute;left:24%;right:24%;bottom:8%;height:5%;background:radial-gradient(ellipse,#49381266,transparent 70%);z-index:-1}
.living-hen[data-motion=peck] .hen-standing,.living-hen[data-motion=nest] .hen-standing,.living-hen[data-motion=lay] .hen-standing{opacity:0;animation:none}
.living-hen[data-motion=peck] .hen-pecking{opacity:1;animation:living-peck 1.05s ease-in-out infinite}
.living-hen[data-motion=nest] .hen-nesting,.living-hen[data-motion=lay] .hen-nesting{opacity:1;animation:living-nest 5.5s ease-in-out infinite}
.living-hen[data-motion=lay] .hen-nesting{animation:living-settle 1.1s ease-in-out 2, living-nest 5.5s 2.2s ease-in-out infinite}
.living-feed-grains{display:none;position:absolute;bottom:7%;left:54%;width:20%;height:8px}
.living-feed-grains i{position:absolute;width:5px;height:3px;border-radius:60% 30%;background:#f8cc50;box-shadow:0 1px 1px #997232;transform:rotate(20deg)}
.living-feed-grains i:nth-child(2){left:14%;top:5px;transform:rotate(-20deg)}.living-feed-grains i:nth-child(3){left:42%;top:1px}.living-feed-grains i:nth-child(4){left:68%;top:4px}.living-feed-grains i:nth-child(5){left:84%;top:-2px}
.living-hen[data-motion=peck] .living-feed-grains{display:block}
.living-laid-egg{display:none;position:absolute;width:18%;height:23%;right:15%;bottom:3%;background:var(--living-laid-egg) center/contain no-repeat;filter:drop-shadow(0 2px 3px #7e62263b);z-index:3}
.living-hen[data-motion=lay] .living-laid-egg{display:block;animation:living-lay 4.3s ease both}
.living-hen[data-motion=preview] .hen-standing{animation:living-preview-stand 16s infinite, living-step 4.8s ease-in-out infinite}
.living-hen[data-motion=preview] .hen-pecking{animation:living-preview-peck 16s infinite, living-peck 1.05s ease-in-out infinite}
.living-hen[data-motion=preview] .hen-nesting{animation:living-preview-nest 16s infinite, living-nest 5.5s ease-in-out infinite}
.living-chick{transform-origin:50% 88%;animation:living-step 4.8s ease-in-out infinite!important}
.living-chick.is-eating{animation:living-chick-peck 1s ease-in-out infinite!important}
.living-egg{animation:living-egg-idle 5s ease-in-out infinite!important;transform-origin:50% 80%}
.sheet-art .living-hen{width:260px;height:250px;max-width:100%}
.sheet-art .living-egg,.sheet-art .living-chick{width:215px;height:230px;max-width:95%;object-fit:contain}
@keyframes living-step{0%,12%,48%,62%,100%{transform:translate(0,0) rotate(0)}20%,30%{transform:translate(-2px,-3px) rotate(-1.4deg)}36%{transform:translate(-1px,0) rotate(-.5deg)}72%,82%{transform:translate(2px,-3px) rotate(1.3deg)}90%{transform:translate(1px,0) rotate(.4deg)}}
@keyframes living-peck{0%,50%,100%{transform:translateY(0) rotate(0)}24%,74%{transform:translateY(3px) rotate(1.6deg) scaleY(.99)}}
@keyframes living-nest{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-1px) scale(1.012,1.018)}}
@keyframes living-settle{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(2px) rotate(-1.2deg)}70%{transform:translateY(1px) rotate(1.2deg)}}
@keyframes living-chick-peck{0%,100%{transform:rotate(0) scale(1)}40%{transform:translateY(4px) rotate(5deg) scaleY(.96)}}
@keyframes living-lay{0%,20%{opacity:0;transform:translate(-12px,-8px) scale(.7)}44%{opacity:1;transform:translate(0,0) scale(1)}90%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(4px,1px)}}
@keyframes living-egg-idle{0%,80%,100%{transform:rotate(0)}85%{transform:rotate(-2deg)}92%{transform:rotate(2deg)}}
@keyframes living-preview-stand{0%,23%,98%,100%{opacity:1}26%,96%{opacity:0}}
@keyframes living-preview-peck{0%,23%,50%,100%{opacity:0}26%,47%{opacity:1}}
@keyframes living-preview-nest{0%,48%,100%{opacity:0}52%,96%{opacity:1}}

/* Collection: a wooden cabinet, labels below the specimens. */
body[data-screen=collection] .page{background:linear-gradient(#f9efd9 0 340px,#ead1a8 900px)}
.collection-heading{margin:20px 0 18px}.collection-heading .page-title{font-size:31px}
.collection-heading p{font-size:13px;max-width:none}
.collection-count{background:#fff8e8;border-color:#d8bf91;color:#8b704b;font-size:12px;padding:13px 15px;margin-bottom:16px}
.collection-count strong{color:#99621d}
.filters{margin:21px -2px 18px;padding:0 2px;gap:7px;flex-wrap:wrap;overflow:visible}
.filter{font-size:12px;padding:10px 14px;color:#805d30;background:#fff6e0;border-color:#ceb286}
.filter.active{background:linear-gradient(#ffdd89,#eab74e);color:#5e3611;border-color:#cca053}
.collection-grid{gap:16px 13px;align-items:start;padding:14px 12px 18px;margin:0 -12px;background:linear-gradient(#81542526,#7b4d3430),var(--wood) center/440px;border:5px solid #a77945;border-radius:20px;box-shadow:inset 0 2px 12px #68411633,0 5px 0 #c19b654d}
.collection-card{background:#fff3d8;border:1px solid #d1ac71;border-radius:14px;box-shadow:0 5px 0 #987043,0 7px 9px #57381e25;display:flex;flex-direction:column;min-width:0;overflow:hidden}
.collection-card-art{height:174px;min-height:174px;padding:10px 6px 5px;gap:5px;position:relative;background:radial-gradient(ellipse at 50% 58%,#fff1c982,#e8d5b524);isolation:isolate}
.collection-card-art::after{content:'';position:absolute;bottom:4px;left:2%;right:2%;height:15px;background:linear-gradient(#eacb9290,#bb8b44bb),var(--wood) center/cover;box-shadow:0 3px 4px #70472133;z-index:-1;border-radius:3px}
.collection-card-art.is-egg::before{content:'';position:absolute;bottom:8px;left:4%;width:92%;height:65px;background:url('/assets/living-farm/decor/nest.webp') center/contain no-repeat;z-index:-1;filter:drop-shadow(0 3px 2px #56391933)}
.collection-card-art img{width:135px;height:129px;max-width:100%;object-fit:contain;margin:0 auto;filter:drop-shadow(0 4px 3px #6d4e2530);position:relative;z-index:1}
.collection-card-art.is-egg img{height:118px;width:96px;transform:translateY(-5px)}
.collection-card .card-chip{position:static;align-self:flex-start;font-size:8px;padding:3px 6px;color:#8e6b39;background:#f8e9c5;border:1px solid #ddc695;border-radius:6px;max-width:100%;line-height:1.3;z-index:2}
.collection-card-text{width:100%;padding:13px 10px;text-align:center;background:linear-gradient(110deg,#fff3d9,#f7e4bc);border-top:1px solid #d9bd8b;min-height:85px}
.collection-card-text h3{font-size:13px;line-height:1.35;color:#64401d;font-weight:700;overflow-wrap:anywhere}
.collection-card-text p{font-size:10px;color:#967243;margin-top:4px}
.collection-card-text .card-line{display:none}
.egg-price{margin-top:9px;color:#976124}.egg-price strong{font-size:18px;font-weight:800}.egg-price small{color:#9b7b51;font-size:9px}.egg-gift{font-size:10px;color:#8b713e}
.mini-card{background:#fff1ce;border-color:#d3b480;color:#755326}.mini-card span{color:#76572d}.mini-card small{color:#9a702b}
.hen-lineage,.egg-price-detail{background:#f5e8cb;border-color:#d7bd8d}.hen-lineage h3,.hen-lineage strong{color:#654523}.hen-lineage p,.hen-lineage small,.lineage-note{color:#8b7452}.hen-lineage li{background:#fff4df;border-color:#dac39a}.hen-lineage li.lineage-selected{background:#f7dfa6;border-color:#c5a058}.lineage-step{background:#e8d1a3;color:#7e561d;border-color:#ceb073}
.hen-lineage li small,.hen-lineage .lineage-heading span{color:#856840}

/* Clicker uses the same tactile world, with grain currency kept separate. */
.clicker-page{background:none;padding-bottom:124px}
.tap-header{margin:7px 0 16px}.tap-header h1{font-size:28px;color:#563517;font-weight:800}.tap-header .eyebrow{font-size:9px;color:#987143}
.tap-badge{background:#f2e3c5;color:#8b6a3e;border-color:#d2b988;font-size:10px}
.tap-stats{gap:8px}.tap-stats>div{background:#fff7e5;border-color:#ddc89e;border-radius:12px;padding:12px 4px}
.tap-stats small,.tap-stats>div:nth-child(2) small,.tap-stats>div:nth-child(3) small{color:#987448;font-size:9px}.tap-stats b{font-size:13px;color:#69451f}
.tap-balance{background:linear-gradient(115deg,#fff8e8,#f2dfbb);border:1px solid #d4b785;border-radius:18px;padding:16px 14px 13px;margin:18px 0 14px;gap:5px 11px;box-shadow:0 3px 0 #ceb38644}
.tap-balance strong{font-size:39px;color:#4c2d13;font-weight:900}.tap-balance small{color:#997342;letter-spacing:2px;font-size:9px}
.tap-rank{font-size:11px;color:#8c6d46;margin-top:5px}
.tap-tabs{background:#ead9b7;border-color:#cfb380;border-radius:14px;margin:18px 0 0;padding:4px;gap:3px}
.tap-tabs button{color:#8b6c42;font-size:12px;min-height:42px;border-radius:10px}
.tap-tabs .selected{background:linear-gradient(#ffe4a1,#f7ce72);color:#654219;box-shadow:0 2px 0 #bc944b3b}
.tap-arena{height:355px;margin:15px -12px 0;border-radius:24px 24px 0 0;overflow:hidden;background:#abce7c url('/assets/living-farm/tap-garden.webp') center 45%/cover no-repeat;border:1px solid #c7af79;border-bottom:0}
.tap-chicken,.tap-chicken.baby,.tap-chicken.young{position:absolute;left:15%;top:18%;width:70%;height:76%;max-width:none;border:0;box-shadow:none;border-radius:0;aspect-ratio:auto;background:none;display:grid;place-items:center;transform-origin:50% 80%}
.tap-chicken img,.tap-chicken.baby img,.tap-chicken.young img{width:94%;height:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 7px 3px #55422133);transform-origin:50% 88%;animation:living-step 4.8s ease-in-out infinite}
.tap-chicken.young img{width:100%;height:105%}
.tap-orbit{display:none}
.tap-energy-row{background:#fff5df;border:1px solid #d2b582;border-block-width:0;padding:14px 17px 10px;margin:0 -12px;color:#876035}
.tap-energy-row button{background:linear-gradient(#ffe4a3,#edc371);color:#755021;border:1px solid #d7ad62;border-radius:9px;font-size:12px}
.tap-progress.energy{width:calc(100% + 24px);margin:0 -12px;border-radius:0 0 10px 10px;height:11px}
.tap-progress.energy::-webkit-progress-value{background:linear-gradient(90deg,#edb84f,#f7d172)}
.tap-hint,.tap-footnote{color:#907655;font-size:11px;line-height:1.65}
.tap-project-plan{background:linear-gradient(120deg,#fff8e8,#f1dfb9);border-color:#d1b580;color:#795a32;box-shadow:0 3px 0 #cbb17e33}
.tap-project-plan h2{color:#765023}.tap-project-plan p{color:#846b47}
.feed-store-heading p strong{color:#936a29}
.tap-daily-link{background:linear-gradient(125deg,#fff2d2,#efd5a3);border:1px solid #ccaa71;color:#795321;font-size:13px;border-radius:15px;box-shadow:0 3px 0 #c3a17040}
.tap-upgrades h2,.tap-dailies h2,.chicken-growth h2{font-size:21px;color:#674622}
.tap-upgrade{background:linear-gradient(#fff5dfa3,#f2dfbec4),var(--wood) center/cover;border-color:#cbb07f;box-shadow:0 2px 0 #b4966338;padding:16px 13px;border-radius:16px;color:#624422}
.tap-upgrade small{color:#92744b;font-size:11px}.tap-upgrade strong{color:#986225}.tap-upgrade-icon{background:#f0dcae;border:1px solid #d9b77b}
.tap-calendar>div{background:#fff5e0;border-color:#dcc296;color:#7b5527}.tap-calendar .today{background:#f8dea2;border-color:#c4913e}.tap-calendar small{color:#947344;font-size:10px}
.tap-task p{color:#8c754f}
.growth-stage{background:#fff4da;border-color:#d6ba87;color:#79532b}.growth-stage.current{background:#f6d991;border-color:#c99434}.growth-stage strong,.growth-stage b{color:#6d4823}.growth-stage small{color:#99794b}
.growth-next,.growth-track,.chicken-growth{background:#f7ecd3;border-color:#d8bf94}.growth-next p,.growth-next small{color:#8a714c}
.chicken-growth{padding:19px 14px;margin-top:22px}.chicken-growth h2{margin-top:0}.tap-upgrade:disabled{opacity:.75}
#tap-message{color:#986c30}
.tap-particles .living-tap-value{top:44%;color:#fff1b8;text-shadow:0 2px 0 #966024,1px 0 #966024,-1px 0 #966024;font-weight:900;animation:living-tap-number .95s ease-out forwards}
.living-flying-grain{position:absolute;left:50%;top:52%;width:13px;height:21px;border:1px solid #c28b20;border-radius:75% 25% 75% 25%;background:linear-gradient(125deg,#ffeb8d,#efb42c);box-shadow:inset 2px 1px #fff4b2;animation:living-grain-flight 1s var(--grain-delay) cubic-bezier(.19,.7,.4,1) forwards}
@keyframes living-tap-number{from{opacity:1;transform:translateY(0) scale(.85)}25%{transform:translateY(-18px) scale(1)}to{opacity:0;transform:translateY(-110px) scale(.94)}}
@keyframes living-grain-flight{0%{opacity:0;transform:translate(0,0) rotate(15deg) scale(.6)}25%{opacity:1;transform:translate(var(--grain-x),-40px) rotate(100deg) scale(1)}to{opacity:0;transform:translate(calc(var(--grain-x)*.25),-220px) rotate(240deg) scale(.4)}}

/* Wallet — linen and grain numerals in a sunny wooden frame. */
.wallet-card{border:5px solid #b68b52;border-radius:24px;background:#f2debb;box-shadow:0 5px 0 #a07c493b,0 10px 22px #65432017;margin:24px 0}
.wallet-scene{height:320px;background:#b7d28b url('/assets/living-farm/scenes/background-normal.webp') center 43%/cover;padding:17px 15px 18px}
.wallet-scene::before{background:linear-gradient(#fff5d314,transparent 58%,#bea56f20)}
.wallet-heading{background:linear-gradient(#ffe7b1d9,#e4bd81e8),var(--wood) center/cover;color:#754d1f;border-color:#b18b53;border-radius:9px;box-shadow:0 3px 3px #51311625;padding:9px 12px}
.wallet-heading h2{font-size:13px;font-weight:800}.wallet-heading svg{width:18px;height:18px}
.wallet-sum{background:repeating-linear-gradient(2deg,#fff4dd00 0 3px,#c6ab7d13 3px 4px),linear-gradient(#fff7e8,#f4e4c5);padding:16px 10px 14px;border:6px solid #bc9159;border-radius:15px;box-shadow:inset 0 1px 9px #966b2733,0 3px 4px #78542042}
.wallet-balance-label{color:#956f3f;text-shadow:none;font-size:10px;letter-spacing:1.4px;margin-bottom:8px}
.wallet-grain-amount{height:77px;filter:drop-shadow(0 2px 1px #b5904c60)}
.wallet-currency{color:#95652e;text-shadow:none;font-size:12px;letter-spacing:1px}
.wallet-loading,.wallet-balance-fallback{color:#966122}
.wallet-actions{background:linear-gradient(#edd2a6b8,#e5c792c4),var(--wood) center/cover;padding:15px 12px;gap:10px;border-top:1px solid #c6a571}
.wallet-actions .secondary{background:linear-gradient(#fff0d6a8,#f0d6a3c7),var(--wood) center/cover;color:#735024;border-color:#bf9b64}
.wallet-actions .button{font-size:13px;min-height:48px;gap:7px}
.wallet-sync-error{background:#fff2d8;color:#965830;padding:13px;font-size:12px}.wallet-sync-error button{color:#985f1c}
.wallet-sheet-icon{background:#f5e0b7;color:#8d632c;border-color:#c4a264}
.profile-details{padding:0 17px;margin:25px 0}
.detail-row{border-color:#decba6;font-size:12px;gap:15px;padding:17px 0}.detail-row dt{color:#9a7c53}.detail-row dd{color:#674c2c;overflow-wrap:anywhere}
.country-flag{filter:drop-shadow(1px 2px 2px #8a6d3c40)}
.logout{color:#9b613d}

/* Referrals, messages, help and administration share the cream material. */
.referral-link-card label{color:#75562b}.referral-link-card input{background:#fff9ec;color:#8c6835;border-color:#d7bf90;font-size:12px}
.referral-stats>div{background:#fff5df;border-color:#d4b886}.referral-stats strong{color:#a06b25}.referral-stats span{color:#91754f;font-size:11px}
.referral-rules ol{color:#846b47;font-size:12px}.referral-rules>p{border-color:#d5c095;color:#957d57;font-size:11px}
.puzzle-grid{gap:14px}.puzzle-card{background:linear-gradient(#fff7e6,#f0ddba);border:1px solid #ceac72;border-radius:18px;box-shadow:0 3px 0 #bfa17240;padding:16px 11px;color:#715029}
.puzzle-card h3{font-size:13px}.puzzle-progress{color:#9a7c53}.puzzle-progress strong{color:#a1712c}.puzzle-card>small{color:#957a55}.puzzle-piece-shell{fill:#e3d1ac}.puzzle-piece-gap{stroke:#eedebc}.puzzle-piece-edge{stroke:#bd9b66}.puzzle-piece.filled .puzzle-piece-edge{stroke:#c79136}.puzzle-piece-badge{fill:#fff4db;stroke:#c9a469}.puzzle-piece-check{stroke:#7c5a24}.puzzle-piece-number{fill:#826139}.puzzle-piece{opacity:.27;filter:grayscale(.8)}.puzzle-piece.filled{opacity:1;filter:none}
.puzzle-outcome{border-color:#d6bf94;color:#926423}.puzzle-outcome.is-upgrade{color:#5d773d}.puzzle-card .puzzle-reward-note{color:#9b7134}
.inventory-row,.pending-reward-row{background:#fff4dc;border-color:#d7bb8b}.inventory-row h3,.pending-reward-row h3{color:#745028}.inventory-row p,.pending-reward-row p{color:#937952}.pending-reward-row strong{color:#a07332}
.invitation-banner{background:#e7efd7;color:#627a40;border-color:#b5c393}
.shop-row{border-color:#ddc9a2}.shop-row h3{color:#755027}.shop-row p{color:#9b7034}.shop-row img{filter:drop-shadow(0 3px 3px #7b592926)}
.inbox-item{background:#fff7e6;border-color:#d6bc8b;color:#684926}.inbox-item.unread{background:#fff0cc;border-color:#c89e52}.inbox-item small,.inbox-item span,.inbox-detail small,.support-count{color:#94774e}.inbox-detail h2{color:#6e491f}.inbox-detail{background:#fff8e9;border:1px solid #d8bf94;border-radius:17px;padding:16px}.inbox-body{color:#735839;line-height:1.7}.inbox-detail button{margin-bottom:15px}
.admin-page{color:#604525}.admin-page h1,.admin-page h2,.admin-page h3{color:#6d481f}
.admin-stats>div{background:#fff4dc;border:1px solid #d9bd8d;color:#916021}.admin-stats small{color:#9b7e54;font-size:11px}
.admin-person{background:#fff7e7;border-color:#d3b889;color:#755128;border-radius:15px}.admin-person small{color:#987b53;font-size:11px}.admin-person:hover{background:#fbeccc}
.admin-note,.admin-tree-row>small{color:#95774b}.admin-tree-row{border-color:#c39e58}
.admin-bonus-row{background:#fff7e6;border-color:#d8c09a;border-radius:13px;color:#73522c}.admin-bonus-row small{color:#987d59}.admin-bonus-row p{color:#856b49}
.sandbox-admin{border-color:#d6bf99}.sandbox-warning{background:#f9e9bd;border-color:#d4b36e;color:#87602a!important}.sandbox-verified{color:#8c6a3c}.sandbox-verified input{accent-color:#a5762f}
.guide-entry button{font-weight:700}.guide-dialog{color:#5f4120}.guide-block{border-color:#ddc89d}.guide-block h3,.guide-content h4{color:#90652b}.guide-content p,.guide-content li{color:#826743}.guide-note{background:#f5e4bb;border-color:#c2994e;color:#87652f}
.guide-tabs button{background:#f4e6ca;border-color:#cdb38a;color:#8a693c}.guide-tabs button[aria-pressed=true]{background:#f4d795;color:#785019}
.guide-content figure{background:linear-gradient(#fff6e5,#eddbb7);border-color:#d1b580}.guide-content figcaption{color:#8b6b3d}
.guide-days span{background:#f3e5c9;color:#8a6b40}.guide-days b,.guide-stages small{color:#9b6b27}.guide-steps li:before{background:#eddbb3;color:#8b5c23}
.guide-flow span{background:#fff4dc;border-color:#d7bc8e;color:#8d7046}.guide-flow b{color:#a2742f}
.guide-table th{color:#95692c}.guide-table td{color:#896f49}.guide-table th,.guide-table td{border-color:#dac49c}.guide-table caption{color:#9b8159}
.guide-envelope svg{stroke:#b08743}.guide-nest{background:radial-gradient(ellipse,#e4d1a4,transparent 70%)}

/* Forms and dialogs retain their original behaviour and validation. */
.field>span{color:#82633e;font-size:12px}
.field input,.field select,.field textarea,.admin-page input,.admin-page select{background:#fffaf0;color:#60401f;border:1px solid #cbb189;border-radius:12px;box-shadow:inset 0 2px 3px #8b66380b;font-size:15px}
.field input::placeholder,.field textarea::placeholder{color:#ad9775}
.field input:focus{border-color:#af7e38}
.field-hint,.privacy-note{color:#9c815b}.form-error{background:#f9e2cf;color:#a45c3b;border:1px solid #dfb697}
.auth-heading h1{color:#5f3d1a;font-size:29px}.auth-heading p{color:#967650}.auth-art{height:100px;width:100px;filter:drop-shadow(0 4px 4px #b0884435)}
dialog.sheet,.sheet{background:#fff5e0;color:#60401e;border:7px solid transparent;border-image:url('/assets/wheat-frame.svg') 24/7px/0 round;border-radius:22px;width:min(calc(100% - 14px),506px);max-width:506px;padding:29px 21px 25px;margin:auto auto max(7px,env(safe-area-inset-bottom));box-shadow:0 10px 50px #38260d44;max-height:calc(100dvh - 24px);background-clip:padding-box;overflow-x:hidden}
.sheet::backdrop{background:#3c2d17a8;backdrop-filter:blur(5px)}
.sheet h2{color:#6b421c;font-size:25px}.sheet p{color:#8b704b;font-size:13px}
.sheet-art{background:radial-gradient(ellipse,#f1d99866,transparent 69%);height:270px}
.detail-tag,.detail-footer,.egg-price-label{color:#9c793f}.detail-footer{font-size:10px}
.install-steps li{color:#8a7049}.install-steps li::before{background:#f3dfaf;border-color:#cdb279;color:#946a27}
.egg-prize{color:#66421f}.prize-amount{color:#805020!important}.prize-amount>span{color:#a47739}.prize-confirmation,.prize-feed small{color:#977b54!important}.prize-feed{background:#f3e5c3;border-color:#cfb278;color:#8a6027}.prize-feed strong{color:#94662a}.prize-copy>.eyebrow{color:#a77b37}

@media(min-width:600px){body{background:radial-gradient(ellipse at 50% 30%,#fff9e8aa,transparent 65%),#e5dfd1}.app{box-shadow:0 0 70px #57402a1f;border-inline:1px solid #cfbc96}}
@media(max-width:389px){.page,.auth-page,.welcome{padding-inline:20px}.language-picker{padding-left:20px}.language-picker+#screen .guide-entry{right:18px}.language-brand strong{font-size:21px}.language-brand>img{width:29px}.language-picker details{margin-left:36px}.guide-entry button{font-size:9px;padding:7px;gap:4px}.game-stage,.game-stage.hen-farm,.game-stage.incubation-stage{height:411px;margin-inline:-10px}.game-stage .pet-button,.hen-farm .pet-button,.incubation-stage .pet-button{height:273px;width:268px}.game-stage .pet-button .farm-pet,.hen-farm .pet-button .farm-pet{width:266px;height:265px}.incubation-stage .pet-button .farm-pet{width:143px;height:196px}.game-stage .stage-caption{font-size:21px}.game-stage .stage-sub{font-size:10px}.collection-grid{gap:14px 10px;padding:12px 9px;margin-inline:-10px}.collection-card-art{min-height:151px;height:151px}.collection-card-art img{height:109px;width:117px}.collection-card-art.is-egg img{height:102px}.collection-card-text h3{font-size:12px}.collection-card-text{padding:11px 7px}.egg-price strong{font-size:16px}.tap-arena{height:320px}.wallet-scene{height:292px;padding-inline:10px}.wallet-grain-amount{height:69px}.wallet-sum{padding-inline:5px;border-width:5px}.wallet-actions{gap:8px;padding:12px 9px}.wallet-actions .button{font-size:12px;gap:4px;padding-inline:6px}.welcome h1{font-size:36px}.welcome .hero-art{height:322px}.welcome .hero-hen{width:228px;height:256px;top:28px}.welcome .hero-chick{width:83px;right:12px}.welcome .hero-egg{width:63px;left:15px}.hero-captions{padding-inline:12px}.app .bottom-nav{padding-inline:9px}.nav-item{font-size:9px}.nav-item svg{width:23px;height:23px}}
@media(max-width:339px){.page,.auth-page,.welcome{padding-inline:17px}.language-picker{padding-left:17px}.language-brand strong{font-size:19px}.language-picker+#screen .guide-entry{right:14px}.guide-entry button{font-size:8px;max-width:100px}.guide-entry span{width:14px;height:14px}.game-stage,.game-stage.hen-farm,.game-stage.incubation-stage{height:395px}.game-stage .pet-button,.hen-farm .pet-button,.incubation-stage .pet-button{height:264px;width:246px}.game-stage .pet-button .farm-pet{width:247px;height:252px}.incubation-stage .pet-button .farm-pet{width:136px;height:180px}.game-stage .stage-caption{font-size:20px}.game-stage .stage-sub{font-size:9px}.tap-arena{height:291px}.collection-card-art{min-height:141px;height:141px}.collection-card-art img{height:99px}.collection-card-art.is-egg img{height:91px}.collection-card-text h3{font-size:11px}.filter{padding:9px 11px;font-size:11px}.care-card{padding:15px}.wallet-actions .button{font-size:11px}.nav-item{font-size:8px}.page-title{font-size:28px}}
@media(prefers-reduced-motion:reduce){.living-hen .hen-pose,.living-egg,.living-chick,.tap-chicken img{animation:none!important;transition:none!important}.living-hen[data-motion=preview] .hen-standing{opacity:1}.living-hen[data-motion=preview] .hen-pecking,.living-hen[data-motion=preview] .hen-nesting{opacity:0}.living-hen[data-motion=lay] .living-laid-egg{animation:none;opacity:1}.living-flying-grain,.living-tap-value{display:none}}
body.living-motion-paused .hen-pose,body.living-motion-paused .living-chick,body.living-motion-paused .living-egg,body.living-motion-paused .living-tap-pet{animation-play-state:paused!important}
