/* A new, original cartoon game world: broad shapes, chunky edges and direct play. */
:root{--ink:#3f4324;--green:#628b32;--green-dark:#3d6122;--paper:#fff3cd;--serif:"PingFang SC","Microsoft YaHei",sans-serif;--outline:#554326}
body{font-family:"PingFang SC","Microsoft YaHei",sans-serif}
.icon{stroke-width:2.2}
body[data-view="farm"]{overflow:hidden;background:#8bbd48}
body[data-view="farm"] .sidebar,body[data-view="farm"] footer{display:none}
body[data-view="farm"] .desktop-only{display:none}
body[data-view="farm"] .mobile-only{display:inline}
body[data-view="farm"] .app-shell{margin:0;padding:0;height:100dvh;min-height:560px;position:relative}
body[data-view="farm"] main{padding:0;margin:0;width:100%;max-width:none;height:100%;position:relative}
body[data-view="farm"] .farm-grid{height:100%;display:block;margin:0}
body[data-view="farm"] .farm-card{height:100%;min-height:560px;position:relative;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:#8bbd48}
body[data-view="farm"] .scene{height:100%;min-height:560px;border-radius:0;overflow:hidden}
body[data-view="farm"] .scene-image{background-image:url('./assets/farm-orchard-wide-v6.webp');background-size:cover;background-position:center 43%;filter:none}
body[data-view="farm"] .scene-shade{background:linear-gradient(180deg,#fff4c40a,transparent 20%,transparent 76%,#37592135)}
body[data-view="farm"] .is-dusk .scene-image{filter:brightness(.65) saturate(.85)}
body[data-view="farm"] .topbar{position:absolute;inset:0 0 auto;height:82px;padding:14px 28px;border:0;background:none;z-index:20;pointer-events:none}
body[data-view="farm"] .topbar button,body[data-view="farm"] .topbar a{pointer-events:auto}
body[data-view="farm"] .wordmark{font-family:var(--serif);font-size:29px;font-weight:900;color:#fff2ad;letter-spacing:.025em;text-shadow:2px 2px 0 #4e5227,-1px -1px 0 #4e5227,1px -1px 0 #4e5227,-1px 1px 0 #4e5227,0 4px 0 #4e5227;rotate:-3deg}
body[data-view="farm"] .wordmark small,body[data-view="farm"] .wordmark>.icon{display:none}
body[data-view="farm"] .top-actions{gap:10px}
body[data-view="farm"] .tools-button,body[data-view="farm"] .avatar{display:none}
body[data-view="farm"] .demo-badge{background:#f9edbb;border:2px solid #7d713f;color:#6e653b;padding:4px 7px;font-size:9px;border-radius:7px;rotate:-3deg;font-weight:600}
body[data-view="farm"] .demo-badge i{display:none}
body[data-view="farm"] .sound-button,body[data-view="farm"] .mobile-menu-button{display:grid;place-items:center;width:42px;height:42px;background:#fae8ad;border:2px solid #68572d;border-radius:14px 12px 15px 13px;color:#67552c;box-shadow:inset 0 3px 0 #fff8d2,0 3px 0 #57482a}
body[data-view="farm"] .sound-button .icon,body[data-view="farm"] .mobile-menu-button .icon{width:23px;height:23px}
body[data-view="farm"] .stats{position:absolute;top:92px;left:27px;width:322px;max-width:none;z-index:15;display:grid;grid-template-columns:1.12fr 1fr;gap:10px;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
body[data-view="farm"] .stat{min-height:44px;height:44px;border:2px solid #6d542b!important;background:#fff0b9!important;border-radius:13px 12px 13px 10px;box-shadow:inset 0 3px 0 #fff9d8,0 3px 0 #77582e!important;padding:7px 11px;gap:8px;display:flex;flex-direction:row;align-items:center}
body[data-view="farm"] .stat:before,body[data-view="farm"] .stat[data-stat="points"],body[data-view="farm"] .stat-label,body[data-view="farm"] .stat-note,body[data-view="farm"] .stat-arrow{display:none}
body[data-view="farm"] .stat-icon{position:static;display:grid;place-items:center;width:25px;height:25px;flex-shrink:0;background:none!important;color:#a67420}
body[data-view="farm"] .stat-icon .icon{width:25px;height:25px}
body[data-view="farm"] .stat strong{display:flex;align-items:baseline;font-size:21px;font-weight:800;line-height:1;color:#65471e;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
body[data-view="farm"] .stat strong small{font-size:10px;margin-left:4px;color:#89703d;font-weight:600}
body[data-view="farm"] .scene-top{inset:0;z-index:14;pointer-events:none}
body[data-view="farm"] .scene-top button{pointer-events:auto}
body[data-view="farm"] .farm-chip{position:absolute;left:28px;top:154px;min-height:37px;padding:6px 11px;gap:7px;rotate:-2deg;border:2px solid #576b2e;border-radius:12px;background:#e5ecaa;box-shadow:inset 0 2px 0 #f6f8c5,0 3px 0 #526429;color:#4d612e}
body[data-view="farm"] .farm-chip-title{display:none}
body[data-view="farm"] .farm-chip b{font-size:13px;border:0;margin:0;padding:0;color:#4d612e;font-weight:800}
body[data-view="farm"] .farm-chip .icon{width:19px;height:19px}
body[data-view="farm"] .weather{position:absolute;right:28px;top:92px;min-height:40px;padding:7px 12px;gap:7px;font-size:12px;font-weight:700;background:#fff0b9;border:2px solid #786232;border-radius:12px;box-shadow:inset 0 3px 0 #fff9d8,0 3px 0 #795d31;color:#85702e}
body[data-view="farm"] .weather .icon{width:20px;height:20px}
body[data-view="farm"] .scene-toggle,body[data-view="farm"] .scene-note{display:none}
body[data-view="farm"] .is-dusk .weather{background:#555979;border-color:#343c4b;color:#ffe8a0}
body[data-view="farm"] .scene-hen{top:auto;width:190px;height:214px;transform-origin:bottom center}
body[data-view="farm"] .scene-hen .hen-art{width:190px;height:190px}
body[data-view="farm"] .hen-position-0{left:calc(50% - 95px);bottom:32%;z-index:4;transform:none}
body[data-view="farm"] .hen-position-1{left:calc(29% - 95px);bottom:25%;z-index:5;transform:scale(.93)}
body[data-view="farm"] .hen-position-2{left:calc(71% - 95px);right:auto;bottom:27%;z-index:5;transform:scale(.96)}
body[data-view="farm"] .hen-bubble{font-size:12px;font-weight:800;padding:7px 11px;top:2px;border:2px solid #766039;border-radius:12px 13px 10px 13px;color:#786032;background:#fff4cb;box-shadow:0 3px 0 #6d623833}
body[data-view="farm"] .hen-bubble:after{width:8px;height:8px;border-right:2px solid #766039;border-bottom:2px solid #766039;bottom:-6px}
body[data-view="farm"] .hen-bubble .icon{width:15px;height:15px;color:#a9812f}
body[data-view="farm"] .scene-hen.ready .hen-bubble{background:#ffe075;color:#71461c;border-color:#8b6029}
body[data-view="farm"] .hen-name{font-size:12px;font-weight:800;padding:4px 12px;border:1.5px solid #7a753b;border-radius:14px;background:#f9f0bdeb;color:#5f5e2e;backdrop-filter:none;box-shadow:0 2px 0 #56632d30}
body[data-view="farm"] .scene-sign{top:auto;bottom:39%;right:9%;padding:10px 16px;min-height:47px;border:3px solid #81502a;border-top-width:3px;border-radius:7px 4px 6px 5px;background:linear-gradient(#f3cf83 48%,#ddac61 49%,#e9bd6f 54%);box-shadow:inset 0 3px 0 #ffe2a0,0 4px 0 #624128;font-size:16px;font-weight:900;color:#714722;rotate:-5deg;z-index:7;gap:7px}
body[data-view="farm"] .scene-sign .icon:first-child{width:22px;height:22px}
body[data-view="farm"] .scene-sign .icon:last-child{display:none}
body[data-view="farm"] .scene-sign:after{width:11px;height:34px;background:#a1743b;border:2px solid #754e2e;border-top:0}
body[data-view="farm"] .mobile-game-hint{display:flex;align-items:center;justify-content:center;gap:7px;position:absolute;left:50%;bottom:157px;translate:-50% 0;padding:7px 14px;border:1.5px solid #6c7337;border-radius:16px;background:#f4edb9ed;color:#5c652d;font-size:12px;font-weight:600;z-index:9;white-space:nowrap;box-shadow:0 2px 0 #47632d50}
body[data-view="farm"] .mobile-game-hint .icon{width:15px;height:15px}
body[data-view="farm"] .action-bar{position:absolute;bottom:22px;left:50%;right:auto;translate:-50% 0;z-index:12;display:grid;grid-template-columns:repeat(3,104px);gap:25px;margin:0;padding:0;border:0;background:none;pointer-events:none}
body[data-view="farm"] .farm-action{pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;padding:0;min-height:106px;min-width:0;border:0;background:none;box-shadow:none;border-radius:20px;color:#fff8cd;translate:none;transform:none!important}
body[data-view="farm"] .farm-action .action-icon{width:78px;height:73px;display:grid;place-items:center;border:3px solid #4e6127;border-radius:23px 19px 24px 20px;background:#8bb743;box-shadow:inset 0 5px 0 #b8d86a,inset 0 -6px 0 #6c9a33,0 5px 0 #405321,0 8px 0 #324b2529;transition:translate .12s,filter .12s;rotate:-3deg}
body[data-view="farm"] .farm-action .action-icon .icon{width:37px;height:37px;color:#fff6be;stroke-width:2.4;filter:drop-shadow(0 2px 0 #44622b)}
body[data-view="farm"] .farm-action b{font-size:16px;font-weight:900;letter-spacing:.09em;text-shadow:1px 2px 0 #435525,-1px -1px 0 #435525,1px -1px 0 #435525,-1px 1px 0 #435525;color:#fff5b7}
body[data-view="farm"] .farm-action small,body[data-view="farm"] .farm-action kbd{display:none}
body[data-view="farm"] .harvest-action .action-icon{background:#edbc43;border-color:#805b26;box-shadow:inset 0 5px 0 #ffe380,inset 0 -6px 0 #ce912d,0 5px 0 #795228,0 8px 0 #324b2529;rotate:2deg}
body[data-view="farm"] .harvest-action .action-icon .icon{color:#fff0ae;filter:drop-shadow(0 2px 0 #936121)}
body[data-view="farm"] .sell-action .action-icon{background:#e8984c;border-color:#80532b;box-shadow:inset 0 5px 0 #ffc577,inset 0 -6px 0 #c77b35,0 5px 0 #77502c,0 8px 0 #324b2529;rotate:-2deg}
body[data-view="farm"] .sell-action .action-icon .icon{color:#fff1b9;filter:drop-shadow(0 2px 0 #9e6029)}
body[data-view="farm"] .farm-action:not(:disabled):hover{background:none;box-shadow:none;translate:none}
body[data-view="farm"] .farm-action:not(:disabled):hover .action-icon{translate:0 -3px;filter:brightness(1.04)}
body[data-view="farm"] .farm-action:not(:disabled):active .action-icon{translate:0 4px;filter:brightness(.97)}
body[data-view="farm"] .farm-action:disabled{background:none;border:0;box-shadow:none;opacity:1}
body[data-view="farm"] .farm-action:disabled .action-icon{filter:saturate(.38);opacity:.72;animation:none}
body[data-view="farm"] .farm-action:disabled b{opacity:.66}
body[data-view="farm"] .butterfly{left:74%;top:33%;width:40px;height:40px}
body[data-view="farm"] #toast{left:50%;bottom:201px;padding:12px 17px;border:2px solid #746337;border-radius:12px;background:#fff3cc;color:#62612e;font-weight:600;box-shadow:0 4px 0 #51452236;backdrop-filter:none}
dialog,body[data-view="farm"] dialog{background:#fff1c8;border:3px solid #79572f;border-radius:25px 20px 24px 22px;box-shadow:0 7px 0 #57452570,0 20px 80px #1f382c55;color:#57512e}
dialog::backdrop{background:#23472476;backdrop-filter:blur(2px)}
.dialog-content h2{font-weight:900;color:#604a24;letter-spacing:.04em}
.dialog-close,body[data-view="farm"] .dialog-close{background:#edce8c;border:2px solid #8d6c34;border-radius:10px;color:#6b5129;box-shadow:0 2px 0 #966e38}
.primary-button{background:#84a93e;color:#fff7cf;border:2px solid #52662a;border-radius:13px;box-shadow:inset 0 3px 0 #abc861,0 4px 0 #52662a;font-weight:800}
.primary-button:hover:not(:disabled){background:#90b647}.primary-button:disabled{background:#d0cba2;border-color:#b6ae81;color:#8b8666}
.secondary-button{background:#f3dea4;border:2px solid #ad9153;border-radius:12px;color:#776035;font-weight:700}
.quick-product h3,.flock-row b{font-weight:800}.quick-note{color:#83713d}.quick-shop-status{border-color:#d2bc7e;color:#887444}.quick-footnote{color:#9d8854}
.game-menu-links>button{font-weight:700;color:#766036;border-color:#dfc98d}.game-menu-links>button>.icon:first-child{color:#75953d}.game-menu-links button:hover{background:#f2e2ac;border-radius:8px}
.game-menu-foot{color:#8a7848}.flock-row{border-color:#dfcf98}.flock-row small{color:#8b7d4f}.flock-row>button{background:#dfe3a0;border:2px solid #9aab57;color:#6b8237}
.ledger-total{display:flex;justify-content:space-between;padding:12px 0 17px;border-bottom:2px dashed #d4be7b;color:#89713a;font-size:13px}.ledger-total b{font-size:20px;color:#735424}
.ledger-rows{max-height:54vh;overflow-y:auto}.ledger-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid #e2ce94;padding:15px 0}.ledger-row>.icon{width:25px;height:25px;flex-shrink:0;color:#9a7c37}.ledger-row b{font-size:12px}.ledger-row small{display:block;font-size:10px;color:#9c8754;line-height:1.7;margin-top:5px}
@media(max-width:700px){
 body[data-view="farm"] .scene-image{background-image:url('./assets/farm-orchard-mobile-v6.webp');background-size:auto 100%;background-position:40% center}
 body[data-view="farm"] .topbar{height:64px;padding:12px 15px 3px}
 body[data-view="farm"] .wordmark{font-size:24px}
 body[data-view="farm"] .top-actions{gap:8px}
 body[data-view="farm"] .sound-button,body[data-view="farm"] .mobile-menu-button{width:35px;height:35px;border-radius:12px}
 body[data-view="farm"] .sound-button .icon,body[data-view="farm"] .mobile-menu-button .icon{width:20px;height:20px}
 body[data-view="farm"] .demo-badge{font-size:8px;padding:3px 4px;border-width:1.5px}
 body[data-view="farm"] .stats{top:76px;left:14px;width:calc(100% - 109px);gap:8px}
 body[data-view="farm"] .stat{min-height:37px;height:37px;padding:6px 7px;gap:5px;border-radius:10px}
 body[data-view="farm"] .stat strong{font-size:17px}
 body[data-view="farm"] .stat-icon,body[data-view="farm"] .stat-icon .icon{width:20px;height:20px}
 body[data-view="farm"] .stat strong small{font-size:9px;margin-left:2px}
 body[data-view="farm"] .weather{top:76px;right:13px;min-width:72px;min-height:37px;height:37px;padding:5px 7px;gap:4px;font-size:10px;justify-content:center}
 body[data-view="farm"] .weather .icon{width:17px;height:17px}
 body[data-view="farm"] .farm-chip{top:133px;left:15px;min-height:33px;padding:5px 8px;gap:5px}
 body[data-view="farm"] .farm-chip b{font-size:11px}
 body[data-view="farm"] .farm-chip .icon{width:16px;height:16px}
 body[data-view="farm"] .scene-hen{width:146px;height:172px}
 body[data-view="farm"] .scene-hen .hen-art{width:146px;height:146px}
 body[data-view="farm"] .hen-position-0{left:calc(50% - 73px);bottom:clamp(250px,34dvh,335px)}
 body[data-view="farm"] .hen-position-1{left:2%;bottom:clamp(190px,26dvh,250px);transform:scale(.89)}
 body[data-view="farm"] .hen-position-2{left:auto;right:1%;bottom:clamp(215px,29dvh,280px);transform:scale(.91)}
 body[data-view="farm"] .hen-bubble{font-size:10px;padding:5px 9px;top:1px;border-width:1.5px;box-shadow:0 2px 0 #73643440}
 body[data-view="farm"] .hen-bubble .icon{width:12px;height:12px}
 body[data-view="farm"] .hen-name{font-size:11px;padding:4px 10px}
 body[data-view="farm"] .scene-sign{top:33%;bottom:auto;right:16px;min-height:38px;font-size:13px;padding:7px 10px;border-width:2px;rotate:-5deg}
 body[data-view="farm"] .scene-sign .icon:first-child{width:17px;height:17px}
 body[data-view="farm"] .scene-sign:after{height:25px;width:9px}
 body[data-view="farm"] .action-bar{left:0;right:0;bottom:0;translate:none;grid-template-columns:repeat(3,1fr);gap:10px;padding:17px 22px calc(21px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#3f6a2426)}
 body[data-view="farm"] .farm-action{min-height:94px;gap:8px}
 body[data-view="farm"] .farm-action .action-icon{width:67px;height:64px;border-radius:20px 17px 21px 18px}
 body[data-view="farm"] .farm-action .action-icon .icon{width:31px;height:31px}
 body[data-view="farm"] .farm-action b{font-size:15px}
 body[data-view="farm"] .mobile-game-hint{bottom:calc(143px + env(safe-area-inset-bottom));font-size:11px;padding:6px 10px}
 body[data-view="farm"] #toast{bottom:calc(185px + env(safe-area-inset-bottom));font-size:11px;max-width:calc(100% - 32px)}
 body[data-view="farm"] dialog{margin:auto 0 0;width:100%;max-width:none;max-height:85dvh;border-radius:24px 22px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}
 body[data-view="farm"] dialog:before{background:#c3a15e}.dialog-content{padding:20px 23px 26px}
 body[data-view="farm"] .butterfly{left:62%;top:27%;width:33px;height:33px}
}
@media(max-width:370px){
 body[data-view="farm"] .wordmark{font-size:23px}
 body[data-view="farm"] .demo-badge{display:none}
 body[data-view="farm"] .stats{left:11px;width:calc(100% - 102px);gap:6px}
 body[data-view="farm"] .stat{padding:5px;gap:3px}
 body[data-view="farm"] .stat strong{font-size:15px}
 body[data-view="farm"] .stat-icon,body[data-view="farm"] .stat-icon .icon{width:17px;height:17px}
 body[data-view="farm"] .weather{right:10px;min-width:70px}
 body[data-view="farm"] .scene-hen{width:132px;height:157px}
 body[data-view="farm"] .scene-hen .hen-art{width:132px;height:132px}
 body[data-view="farm"] .hen-position-0{left:calc(50% - 66px)}
 body[data-view="farm"] .hen-position-1{left:0}.hen-position-2{right:0}
 body[data-view="farm"] .farm-action .action-icon{width:60px;height:59px}
}
@media(max-width:700px) and (max-height:690px){
 body[data-view="farm"] .hen-position-0{bottom:230px}
 body[data-view="farm"] .hen-position-1{bottom:176px}
 body[data-view="farm"] .hen-position-2{bottom:191px}
 body[data-view="farm"] .scene-sign{top:30%}
 body[data-view="farm"] .action-bar{padding-bottom:calc(13px + env(safe-area-inset-bottom))}
 body[data-view="farm"] .farm-action{min-height:86px;gap:6px}
 body[data-view="farm"] .farm-action .action-icon{width:59px;height:57px}
 body[data-view="farm"] .mobile-game-hint{bottom:calc(122px + env(safe-area-inset-bottom));font-size:10px}
 body[data-view="farm"] .farm-chip{top:128px}
}
@media(max-height:559px){body[data-view="farm"]{overflow-y:auto}body[data-view="farm"] .app-shell,body[data-view="farm"] .farm-card,body[data-view="farm"] .scene{height:560px;min-height:560px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Play polish: painted props, legible states, compact sheets and softer chrome. */
.game-prop{width:44px;height:44px;display:block;flex:none;overflow:visible}
body[data-view="farm"] .topbar{padding-top:max(14px,env(safe-area-inset-top));height:80px}
body[data-view="farm"] .wordmark{font-size:27px;text-shadow:1px 2px 0 #455028,-1px -1px 0 #455028,1px -1px 0 #455028,-1px 1px 0 #455028,0 4px 0 #455028}
body[data-view="farm"] .stat{background:linear-gradient(#fff8da,#f5e5b2)!important;border-color:#866737!important;border-radius:20px!important;padding-left:36px;overflow:visible;position:relative;box-shadow:inset 0 2px 0 #fffde8,0 3px 0 #70552b55!important}
body[data-view="farm"] .stat-icon{position:absolute;left:-7px;top:50%;translate:0 -50%;width:43px;height:43px;filter:drop-shadow(0 2px 0 #73522635)}
body[data-view="farm"] .stat-icon .game-prop{width:43px;height:43px}
body[data-view="farm"] .stat strong{font-size:20px}
body[data-view="farm"] .stat strong small{margin-left:4px}
body[data-view="farm"] .farm-chip{min-height:44px;border-radius:12px;gap:7px;padding:4px 10px 4px 4px;background:#eff1b9}
body[data-view="farm"] .farm-chip .game-prop{width:31px;height:31px}
body[data-view="farm"] .weather{border-radius:18px;background:#fff6cb;box-shadow:0 3px 0 #795d3133}
body[data-view="farm"] .scene-sign{gap:6px;padding:6px 12px 6px 7px;font-size:14px}
body[data-view="farm"] .scene-sign .game-prop{height:30px;width:30px}
.sign-plus{display:grid;place-items:center;position:absolute;top:-10px;right:-7px;background:#89ae49;border:2px solid #586d2c;color:#ffface;border-radius:50%;font-size:19px;width:24px;height:24px;font-style:normal;box-shadow:0 2px 0 #514b2930}
body[data-view="farm"] .scene-hen .hen-bubble{padding:7px 10px;border-width:1.5px;box-shadow:0 3px 0 #6d623825;top:0}
body[data-view="farm"] .scene-hen.laying .hen-bubble{padding-bottom:12px;color:#63733e;background:#f7f4d2;border-color:#788647}
.hen-timer{position:absolute;bottom:4px;left:10px;right:10px;height:3px;border-radius:3px;background:#d3d6a6;overflow:hidden}
.hen-timer>i{height:100%;display:block;border-radius:3px;background:#7eab46;transition:width .25s linear}
body[data-view="farm"] .scene-hen.ready .hen-bubble{background:#ffe59b;border-color:#a27833;box-shadow:0 3px 0 #97652644,0 0 0 4px #ffecad45}
body[data-view="farm"] .hen-name{background:#f9f4d1d9;border-color:#93965d7d;padding:3px 10px;box-shadow:none;font-weight:700}
body[data-view="farm"] .action-bar{gap:28px;bottom:19px}
body[data-view="farm"] .farm-action{position:relative;gap:10px}
body[data-view="farm"] .farm-action .action-icon{position:relative;border-radius:50%;width:82px;height:78px;border-width:2.5px;background:linear-gradient(#f8e9bb,#e6c987);border-color:#856334;box-shadow:inset 0 4px 0 #fff8dc,inset 0 -5px 0 #c7a365,0 5px 0 #72512e,0 8px 9px #2b491f35;rotate:-4deg}
body[data-view="farm"] .farm-action .action-icon>.game-prop{width:62px;height:62px;filter:drop-shadow(0 2px 0 #7e5a2826);transition:transform .2s}
body[data-view="farm"] .harvest-action .action-icon{rotate:3deg;background:linear-gradient(#ffe8a5,#f0cc6e);border-color:#997338;box-shadow:inset 0 4px 0 #fff6cb,inset 0 -5px 0 #d0a54b,0 5px 0 #806033,0 8px 9px #2b491f35}
body[data-view="farm"] .sell-action .action-icon{rotate:-2deg;background:linear-gradient(#ffe4aa,#edbc78)}
body[data-view="farm"] .farm-action:disabled .action-icon{filter:saturate(.55);opacity:.76}
body[data-view="farm"] .farm-action:disabled b{opacity:.8}
body[data-view="farm"] .farm-action b{font-size:15px;letter-spacing:.13em}
body[data-view="farm"] .farm-action.is-available:hover .game-prop{transform:rotate(-8deg) translateY(-3px)}
body[data-view="farm"] .ready-action .action-icon{outline:3px solid #fff5be;outline-offset:3px;animation:harvest-nudge 3.8s ease-in-out infinite}
.action-count{position:absolute;right:-3px;top:-3px;display:grid;place-items:center;min-width:24px;height:24px;border-radius:50%;border:2px solid #fff0bb;background:#719444;color:#fffce1;box-shadow:0 2px 0 #49692f;font-size:12px;font-weight:800;rotate:4deg}
.harvest-action .action-count{background:#dd9544;box-shadow:0 2px 0 #92602c}
.sale-dot{position:absolute;right:2px;top:4px;width:12px;height:12px;border:2px solid #fff0c3;border-radius:50%;background:#ecac49;box-shadow:0 1px 0 #92602c}
body[data-view="farm"] .mobile-game-hint{bottom:151px;border:0;background:#f9f5d4de;box-shadow:0 2px 0 #52633e27;font-size:12px;padding:7px 13px;color:#586334}
body[data-view="farm"] .first-cycle-guide{gap:8px;padding:8px 13px;border:1px solid #9aa36785;background:#fff6dce8;min-height:40px}
.guide-stop{display:flex;align-items:center;gap:5px;color:#929675;font-size:11px}
.guide-stop i{font-style:normal;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e4dfbf;font-weight:800;font-size:10px}
.guide-stop.current{color:#5e753b;font-weight:800}.guide-stop.current i{background:#7f9f48;color:#fff8cd}.guide-stop.done i{background:#dce4b8;color:#698241}
.guide-link{width:13px;height:1px;background:#c9cba8}
.ground-ring{width:31px;height:14px;border:2px solid #fff2a7;border-radius:50%;box-shadow:0 0 0 2px #5b7c3520;pointer-events:none}
body[data-view="farm"] #toast{bottom:202px;border-width:1.5px;font-size:12px;max-width:calc(100% - 36px);width:max-content;line-height:1.6;box-shadow:0 4px 0 #53472322,0 8px 18px #33482520}
body[data-view="farm"] dialog{width:430px;max-width:calc(100% - 32px);border:2px solid #977442;border-radius:25px;background:#fff6dd;box-shadow:0 5px 0 #77522f,0 18px 70px #213d3355;overscroll-behavior:contain}
body[data-view="farm"] dialog::backdrop{background:#253e2c80;backdrop-filter:blur(3px)}
body[data-view="farm"] .dialog-content{padding:26px 27px 25px}
body[data-view="farm"] .dialog-content h2{font-size:23px;letter-spacing:0;line-height:1.5;padding-right:30px;margin:0 0 13px}
body[data-view="farm"] .dialog-close{width:40px;height:40px;top:15px;right:15px;background:#f5e4bc;border:1px solid #bf9e66;box-shadow:0 2px 0 #b3935c;border-radius:50%;z-index:2}
.primary-button{min-height:50px;background:linear-gradient(#92b857,#779d3e);border-color:#5e7833;box-shadow:inset 0 2px 0 #c4d58c,0 4px 0 #526a2e;border-radius:14px;font-size:14px;display:flex;justify-content:center;align-items:center;gap:7px}
.primary-button .game-prop{width:30px;height:30px}
.primary-button:active:not(:disabled){translate:0 2px;box-shadow:inset 0 2px 0 #c4d58c,0 2px 0 #526a2e}
.primary-button:disabled{box-shadow:0 3px 0 #b0a47d;background:#e4d8b8;border-color:#c6b88f;color:#8c805f}
.sheet-text-button{display:block;margin:17px auto 0;font-size:12px;text-decoration:underline;text-underline-offset:4px;min-height:32px;color:#7a794b}
.basket-display{height:145px;position:relative;display:grid;place-items:center;isolation:isolate}
.basket-display>.game-prop{width:132px;height:132px;rotate:-8deg;filter:drop-shadow(0 7px 0 #ab874218);z-index:1;animation:basket-hello .45s cubic-bezier(.2,.8,.3,1.4)}
.basket-halo{position:absolute;inset:5px 50%;translate:-50% 0;width:180px;height:140px;border-radius:50%;background:radial-gradient(ellipse,#f6e5a7 0%,#f6e5a700 70%)}
.basket-stamp{position:absolute;bottom:8px;left:calc(50% + 26px);z-index:2;white-space:nowrap;rotate:-8deg;font-size:10px;background:#e6e9bb;color:#778744;padding:4px 9px;border:1px solid #abb66b;border-radius:5px}
.basket-display.is-empty>.game-prop{opacity:.5;filter:saturate(.35)}
.basket-tally{text-align:center;display:flex;flex-direction:column;gap:4px;margin:0 0 20px}.basket-tally strong{font-size:35px;color:#69512e;font-variant-numeric:tabular-nums}.basket-tally small{font-size:13px;font-weight:500}.basket-tally>span{font-size:12px;color:#9a865d}
.sale-receipt{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed #d8c69b;padding:16px 0;margin-bottom:8px;font-size:12px;color:#97845d}.sale-receipt b{font-size:24px;color:#887034}.sale-receipt small{font-size:12px}
.empty-basket-note{text-align:center;color:#94835e;font-size:12px;margin-bottom:23px}
.shop-meadow{position:relative;height:168px;border-radius:75% 75% 25px 25px;background:linear-gradient(transparent 5%,#e9efc7 75%,#d2de9c 76%);isolation:isolate;margin:5px 18px 0}
.shop-meadow:after{content:'';position:absolute;bottom:21px;left:25%;right:25%;height:16px;border-radius:50%;background:#92a65d30;z-index:-1}
.shop-meadow .quick-hen{height:160px}.shop-meadow .hen-art{width:175px;height:175px;animation:painted-breathe 3.8s infinite}
.shop-sun{position:absolute;width:33px;height:33px;border-radius:50%;background:#f6d57e;top:13px;right:39px;border:5px solid #fae9ab;z-index:-1}
.shop-tag{position:absolute;bottom:7px;left:50%;translate:-50% 0;white-space:nowrap;border:1px solid #beab70;border-radius:6px;background:#fff4cc;color:#78653e;font-size:11px;font-weight:700;padding:4px 12px;rotate:-3deg}
.shop-perks{display:flex;justify-content:center;gap:20px;margin:17px 0;color:#8b815a;font-size:11px}.shop-perks span{display:flex;gap:4px;align-items:center}.shop-perks .icon{width:15px;height:15px;color:#9ba363}
.coop-slots{display:flex;align-items:center;justify-content:center;gap:8px;padding-bottom:14px;border-bottom:1px dashed #d8c69b}
.coop-slots>span{width:36px;height:36px;display:grid;place-items:center;border:1px dashed #cbbd8a;border-radius:9px;color:#c6b98c;background:#faf0d2}.coop-slots .occupied{background:#e6ebc2;border:1px solid #b7c58a}.coop-slots .game-prop{width:30px;height:30px}.coop-slots .icon{width:14px;height:14px}.coop-slots small{font-size:10px;color:#988561;margin-left:5px}
.shop-price{display:flex;justify-content:space-between;margin:17px 0 21px;color:#95805b;font-size:11px}.shop-price>span{display:flex;flex-direction:column;gap:5px}.shop-price>span:last-child{text-align:right}.shop-price b{font-size:23px;color:#786238}.shop-price small{font-size:11px;font-weight:500}.shop-price>span:last-child b{font-size:18px;color:#9a855a}
.quick-footnote{color:#9c8b68;line-height:1.6;font-size:10px;margin-top:16px}
body[data-view="farm"] .flock-portrait{background:linear-gradient(#f5edcb,#e7e6b6);border-radius:50%;width:68px;height:68px}
body[data-view="farm"] .flock-portrait .hen-art{width:68px;height:68px}
.game-menu-links>button{padding:13px 4px;min-height:49px}.game-menu-foot{flex-wrap:wrap;line-height:1.6}
body[data-view="farm"] button:focus-visible,body[data-view="farm"] a:focus-visible{outline:3px solid #fff0a9;outline-offset:5px}
body[data-view="farm"] dialog button:focus-visible{outline:3px solid #779e47;outline-offset:4px}
body[data-view="farm"] .scene-hen:focus-visible{outline:none}
body[data-view="farm"] .scene-hen:focus-visible .hen-name{outline:3px solid #fff3ad;outline-offset:3px;background:#f8edbe}
@keyframes harvest-nudge{0%,82%,100%{transform:rotate(0)}87%{transform:rotate(-6deg)}92%{transform:rotate(5deg)}97%{transform:rotate(-2deg)}}
@keyframes basket-hello{from{opacity:0;transform:translateY(12px) rotate(-8deg) scale(.85)}to{opacity:1;transform:none}}
@media(max-width:700px){
 body[data-view="farm"] .topbar{padding: max(12px,env(safe-area-inset-top)) 16px 3px;height:65px}
 body[data-view="farm"] .wordmark{font-size:24px}
 body[data-view="farm"] .sound-button,body[data-view="farm"] .mobile-menu-button{width:40px;height:40px}
 body[data-view="farm"] .top-actions{gap:7px}
 body[data-view="farm"] .stats{left:22px;top:80px;width:calc(100% - 115px);gap:15px}
 body[data-view="farm"] .stat{height:36px;min-height:36px;padding:5px 7px 5px 30px;gap:0}
 body[data-view="farm"] .stat strong{font-size:16px}.stat strong small{font-size:9px}
 body[data-view="farm"] .stat-icon,body[data-view="farm"] .stat-icon .game-prop{width:36px;height:36px}
 body[data-view="farm"] .weather{top:80px;right:12px;width:67px;min-width:0;height:36px;min-height:36px;font-size:10px;gap:3px;padding:4px}
 body[data-view="farm"] .farm-chip{top:132px;left:15px;min-height:38px;font-size:11px;padding:2px 8px 2px 3px}
 body[data-view="farm"] .farm-chip .game-prop{width:28px;height:28px}
 body[data-view="farm"] .scene-sign{font-size:12px;padding:5px 9px 5px 5px;right:16px;top:33%}
 body[data-view="farm"] .scene-sign .game-prop{height:26px;width:26px}
 body[data-view="farm"] .scene-hen .hen-bubble{font-size:10px;padding:6px 9px}
 body[data-view="farm"] .scene-hen.laying .hen-bubble{padding-bottom:12px}
 body[data-view="farm"] .action-bar{bottom:0;gap:16px;padding:16px 27px calc(24px + env(safe-area-inset-bottom))}
 body[data-view="farm"] .farm-action{gap:10px;min-height:91px}
 body[data-view="farm"] .farm-action .action-icon{width:71px;height:68px}
 body[data-view="farm"] .farm-action .action-icon>.game-prop{width:54px;height:54px}
 body[data-view="farm"] .farm-action b{font-size:14px}
 body[data-view="farm"] .mobile-game-hint{bottom:calc(143px + env(safe-area-inset-bottom));font-size:11px}
 body[data-view="farm"] #toast{bottom:calc(192px + env(safe-area-inset-bottom));font-size:11px}
 body[data-view="farm"] dialog{width:100%;max-width:none;max-height:88dvh;border-radius:26px 26px 0 0;border-bottom:0;margin:auto 0 0;padding-bottom:env(safe-area-inset-bottom)}
 body[data-view="farm"] dialog:before{width:33px;height:4px;margin:9px auto 0;background:#d9c694}
 body[data-view="farm"] .dialog-content{padding:14px 24px 25px}
 body[data-view="farm"] .dialog-content h2{font-size:22px;margin-bottom:12px}
 body[data-view="farm"] .dialog-close{top:19px;right:17px}
}
@media(max-width:370px){
 body[data-view="farm"] .demo-badge{display:inline-flex;font-size:7px;padding:3px;white-space:nowrap}
 body[data-view="farm"] .stats{left:18px;width:calc(100% - 105px);gap:12px}
 body[data-view="farm"] .stat{padding-left:26px;padding-right:3px}
 body[data-view="farm"] .stat strong{font-size:14px}
 body[data-view="farm"] .stat-icon,body[data-view="farm"] .stat-icon .game-prop{width:32px;height:32px}
 body[data-view="farm"] .weather{right:10px;width:64px}
 body[data-view="farm"] .scene-sign{right:12px;font-size:11px}
 body[data-view="farm"] .action-bar{padding-left:23px;padding-right:23px;gap:11px}
 body[data-view="farm"] .farm-action .action-icon{width:63px;height:61px}
 body[data-view="farm"] .farm-action .action-icon>.game-prop{width:49px;height:49px}
 body[data-view="farm"] .dialog-content{padding-left:20px;padding-right:20px}
}
@media(max-width:700px) and (max-height:690px){
 body[data-view="farm"] .action-bar{padding-bottom:calc(15px + env(safe-area-inset-bottom))}
 body[data-view="farm"] .farm-action{min-height:81px;gap:7px}
 body[data-view="farm"] .farm-action .action-icon{width:60px;height:58px}
 body[data-view="farm"] .farm-action .action-icon>.game-prop{width:46px;height:46px}
 body[data-view="farm"] .mobile-game-hint{bottom:calc(120px + env(safe-area-inset-bottom));font-size:10px}
 body[data-view="farm"] .scene-sign{top:30%}
 .shop-meadow{height:126px}.shop-meadow .quick-hen{height:126px}.shop-meadow .hen-art{width:137px;height:137px}
 .shop-perks{margin:12px 0}.shop-price{margin:12px 0 16px}
 body[data-view="farm"] .dialog-content h2{font-size:20px}
 body[data-view="farm"] #toast{bottom:calc(169px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.game-prop,.action-icon,.shop-meadow .hen-art{animation:none!important}.hen-timer>i{transition:none}}

/* A shared meadow replaces the three fixed, overlapping roaming slots. */
body[data-view="farm"] .scene-hen[data-roaming]{left:0;top:0;right:auto;bottom:auto;transform:none}
body[data-view="farm"] .scene-hen[data-roaming] .hen-sprite{transition:scale .2s ease-in-out}
@media(max-width:700px) and (max-height:690px){
 body[data-view="farm"] .scene-hen[data-roaming]{width:108px;height:134px}
 body[data-view="farm"] .scene-hen[data-roaming] .hen-art{width:108px;height:108px}
}

/* Distance changes the whole bird and its ground shadow around the planted feet. */
body[data-view="farm"] .scene-hen[data-roaming] .hen-wander{scale:var(--hen-depth-scale,1);transform-origin:50% 84%;filter:saturate(var(--hen-depth-saturation,1)) brightness(var(--hen-depth-light,1))}
body[data-view="farm"] .scene-hen[data-roaming] .hen-art:before{opacity:var(--hen-depth-shadow,1)}
body[data-view="farm"] .scene-hen[data-roaming] .hen-bubble{translate:0 var(--hen-bubble-offset,0px)}
body[data-view="farm"] .scene-hen[data-roaming] .hen-name{scale:var(--hen-label-scale,1);transform-origin:bottom center}

/* Grain stays on the ground while each bird approaches at its own pace. */
.feed-patch{position:absolute;pointer-events:none;width:1px;height:1px;z-index:2;transform-origin:center}
.feed-patch:before{content:'';position:absolute;width:46px;height:13px;left:-23px;top:-6px;background:#7961261c;border-radius:50%}
.feed-patch i{position:absolute;left:var(--grain-x);top:var(--grain-y);width:5px;height:3px;background:#edc46a;border:1px solid #ac7937;border-radius:60% 30% 55% 35%;rotate:var(--grain-turn);box-shadow:0 1px 0 #65501b30;transition:opacity .25s;animation:grain-settle .45s var(--grain-delay) both}
.feed-patch[data-phase="digest"]:before,.feed-patch[data-phase="done"]:before{opacity:0;transition:opacity .4s}
body[data-view="farm"] .scene-hen[data-feeding]:not([data-feeding=""]) .ground-grain{display:none}
@keyframes grain-settle{from{transform:translate(-8px,-38px)}75%{transform:translate(0,1px)}to{transform:translate(0,0)}}
@media(prefers-reduced-motion:reduce){.feed-patch{display:none}}

/* The collection basket absorbs the landing; effects never intercept a tap. */
body[data-view="farm"] .farm-action.is-catching .action-icon{filter:none;opacity:1;animation:none}
.egg-particle{background:radial-gradient(ellipse at 35% 25%,#fff9e5,#eed7a6 75%,#c8a875);box-shadow:inset -2px -2px 2px #b8975d35,0 2px 3px #5c4e2c30;border-color:#c8ae7a;transform-origin:center}
