/* PlayNest V4.1 — clean UI system.
 * All illustrated sprites, button frames and icons are pre-existing third-party
 * assets from user-provided Side_Farming and Chicken Sprite Sheet packs.
 * Source button sprites are nine-sliced, never distorted as stretched backgrounds.
 */
:root{--forest:#304d39;--forest2:#244332;--ink:#29392b;--muted:#67735e;--page:#e4ead8;--card:#f8f4e8;--stroke:#b5c4aa;--wood:#9c7856;--soft:#eaf0dc;color-scheme:light}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#b2c6aa;color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:2px solid #2862b6;outline-offset:2px}
button:disabled{cursor:not-allowed}
h1,h2,h3,p{margin:0}img{display:block}b,strong{font-weight:800} [hidden]{display:none!important}
.app{position:relative;display:flex;flex-direction:column;height:100dvh;min-height:390px;max-width:460px;margin:auto;overflow:hidden;background:var(--page);border-inline:1px solid #7f9b7c}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 55px;height:55px;padding:0 14px;background:var(--forest);color:#fff8e7;z-index:10}
.brand{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:850;letter-spacing:-.8px;line-height:1}
.brand-badge{width:31px;height:31px;display:grid;place-items:center;overflow:hidden;background:#41654a;border:1px solid #8bac89;border-radius:8px}
.brand-badge img{width:27px;height:27px;object-fit:contain;image-rendering:pixelated}
.brand-accent{color:#eaca81}
.top-right{display:flex;gap:8px;align-items:center}
.balance{display:flex;gap:6px;align-items:center;padding:6px 10px;min-width:76px;justify-content:center;border:1px solid #9fb393;border-radius:15px;background:#3c6047;color:#ffedc6;font-size:12px}
.balance img{width:19px;height:19px;object-fit:contain;image-rendering:pixelated}
.profile-mini{width:31px;height:31px;padding:0;border:1px solid #b6c0a0;border-radius:50%;background:#e7d9b7 url('assets/pixel-ui/profile.png') center/90% no-repeat;font-size:0;box-shadow:none}
.notice{display:flex;justify-content:center;align-items:center;gap:5px;flex:0 0 22px;min-height:22px;padding:1px 8px;background:#dbcca5;color:#604826;border-bottom:1px solid #c8b58a;font-size:10px;font-weight:750;white-space:nowrap}
.notice span{font-weight:550}
.viewport{position:relative;flex:1;min-height:0;overflow:hidden}
.screen{position:absolute;inset:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:14px 15px 16px;scrollbar-width:thin;scrollbar-color:#adc2a6 transparent;opacity:0;visibility:hidden;pointer-events:none;transform:translate3d(7px,0,0);transition:opacity .17s ease,transform .2s ease,visibility 0s linear .2s}
.screen.active{opacity:1;visibility:visible;pointer-events:auto;transform:translateZ(0);transition:opacity .18s ease,transform .18s ease,visibility 0s}
.eyebrow{display:block;color:#657a5d;font-size:10px;letter-spacing:1.25px;font-weight:850;margin-bottom:4px}
.dot{color:#a47a40}
.welcome{margin-bottom:11px}
.welcome h1,.compact-head h1{font-size:25px;line-height:1.14;letter-spacing:-.9px;font-weight:850;color:#254b35}
.welcome p{font-size:12px;color:#687767;margin-top:5px;line-height:1.35}
/* Primary game card keeps existing uploaded art, not a synthetic illustration. */
.game-hero{display:flex;position:relative;width:100%;min-height:160px;text-align:left;padding:13px 14px;overflow:hidden;isolation:isolate;background:#28533b;border:1px solid #688c65;border-radius:14px;box-shadow:none;color:#f9f5e7}
.game-hero:active{filter:brightness(.94)}
.game-hero .hero-text{position:relative;z-index:2;max-width:66%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px}
.live-tag{display:flex;align-items:center;gap:5px;color:#c2e3b8;font-size:9px;font-weight:850;letter-spacing:.45px;white-space:nowrap}
.live-dot{width:6px;height:6px;border-radius:50%;background:#b9dda5}
.game-hero h2{font-size:21px;color:#fff8e7;line-height:1.15;font-weight:850;letter-spacing:-.5px}
.game-hero p{font-size:11px;color:#d0e2c8;line-height:1.3}
.hero-art{position:absolute;right:-6px;top:6px;bottom:3px;width:44%;pointer-events:none}
.hero-chicken{position:absolute;right:0;top:0;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 5px 0 #132d2188)}
.hero-egg-art{position:absolute;right:5px;bottom:14px;width:20px;height:25px;object-fit:contain;image-rendering:pixelated}
/* Actual source sprite: Side_Farming/Resources/UI, 9-slice border to avoid distortion. */
.hero-cta,.btn,.buy-button,.copy-btn,.segmented button.selected{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:4px 12px;border:10px solid transparent;border-image-source:url('assets/ui-farm/wood-button-light.png');border-image-slice:11 12 11 12 fill;border-image-width:10px;border-image-repeat:stretch;background-color:transparent;color:#2b201b;font-size:11px;font-weight:850;line-height:1.12;text-align:center;text-shadow:none;border-radius:0;box-shadow:none}
.hero-cta{min-height:39px;margin-top:8px;padding:0 9px;font-size:11px;white-space:nowrap}
.hero-cta .pn-solid-arrow{width:17px;height:17px;object-fit:contain;transform:rotate(180deg);filter:brightness(0);flex-shrink:0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:16px 0 7px}
.section-head h3{font-size:14px;color:#284431;line-height:1.2}
.section-head>span{color:#738269;font-size:10px}
.daily-strip{display:flex;align-items:center;gap:10px;padding:9px 12px;width:100%;text-align:left;min-height:62px;background:var(--card);border:1px solid #b6c9a9;border-radius:12px;box-shadow:none;color:var(--ink)}
.daily-strip:active{background:#eae1c5}
.strip-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;background:#dce5ce;border-radius:8px}
.strip-icon img{width:31px;height:31px;object-fit:contain;image-rendering:pixelated}
.strip-text{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}
.strip-text b{font-size:12px;color:#28382b}
.strip-text small{font-size:10px;color:#63745b;white-space:normal;line-height:1.3}
.strip-arrow{display:flex;align-items:center;gap:5px;color:#45633c;font-size:10px;font-weight:800}
.strip-arrow img{width:15px;height:15px;object-fit:contain}
.strip-arrow .claim-arrow{transform:rotate(180deg);filter:brightness(.26)}
.strip-arrow .pn-claimed-icon{display:none}
.strip-arrow.is-claimed .claim-arrow{display:none}
.strip-arrow.is-claimed .pn-claimed-icon{display:block}
.upcoming{display:flex;justify-content:space-between;align-items:center;min-height:47px;padding:9px 12px;background:#eef0e4;border:1px solid #c4d0b9;border-radius:9px;margin-bottom:6px;color:#344b37}
.upcoming>div{display:flex;align-items:center;gap:10px;font-size:12px}.upcoming>span{font-size:9px;color:#82907a;font-weight:750;letter-spacing:.4px}.muted-mini{color:#a47d50;font-weight:800;font-size:10px}
/* Farm is a compact vertical board. Space is driven by available screen height. */
#screenFarm{display:flex;flex-direction:column;gap:8px;padding:10px 12px 9px}
.farm-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex:0 0 auto;min-height:27px}
.farm-heading h1{font-size:19px;line-height:1.1;font-weight:850;color:#294934}
.farm-heading-label{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:20px;background:#d7e7c7;color:#3c6137;font-size:9px;font-weight:800;white-space:nowrap}
.farm-status-dot{width:6px;height:6px;border-radius:50%;background:#5d9854}
.farm-stats{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0}
.farm-stats>div{display:flex;align-items:center;gap:5px;min-width:0;height:42px;padding:6px 8px;background:#f8f3df;border:1px solid #c2c7a9;border-radius:9px}
.farm-stats .stat-sprite{width:25px;height:25px;flex:0 0 25px;object-fit:contain;image-rendering:pixelated}
.farm-stats .stat-value{font-size:16px;line-height:1;font-weight:850;color:#334b32;font-variant-numeric:tabular-nums}
.farm-stats small{min-width:0;margin-left:auto;color:#6f7c65;font-size:9px}
.farm-scene-v25{position:relative;flex:1 1 180px;height:auto;min-height:156px;max-height:335px;overflow:hidden;isolation:isolate;border:1px solid #6c8d63;border-radius:12px;background:#518e57}
.farm-orchard{position:absolute;left:0;right:0;top:0;height:58%;background:url('assets/sidefarm/orchard.png') center bottom/cover no-repeat;image-rendering:pixelated;z-index:0}
.farm-yard{position:absolute;left:0;right:0;bottom:0;height:42%;border-top:4px solid #3e7d48;background:#57925d url('assets/sidefarm/grass-pattern.png') repeat;background-size:96px 96px;image-rendering:pixelated;z-index:1}
.farm-prop{position:absolute;object-fit:contain;display:block;height:auto;image-rendering:pixelated;pointer-events:none}
.farm-coop{right:-13%;bottom:9%;height:61%;width:auto;max-height:none;z-index:4}
.farm-hay{right:8%;bottom:11%;width:13%;max-height:22%;z-index:5}
.farm-shrubs{left:1%;bottom:27%;width:13%;z-index:2}
.hen-sprite-stage{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:6}
.hen-agent{position:absolute;left:0;bottom:9%;width:72px;height:72px;border:0;background:transparent;padding:0;display:grid;place-items:center;pointer-events:auto;cursor:pointer;transform-origin:center bottom;image-rendering:pixelated}
.hen-agent img.hen-body{position:relative;z-index:2;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;filter:none;transform:scaleX(1);transform-origin:center center}
.hen-agent[data-facing="right"] img.hen-body{transform:scaleX(-1)}
.hen-agent[data-facing="left"] img.hen-body{transform:scaleX(1)}
.hen-agent img.hen-egg{position:absolute!important;z-index:7!important;width:clamp(10px,3.4vw,14px)!important;height:auto!important;top:-16%!important;left:22%!important;object-fit:contain;image-rendering:pixelated;pointer-events:none;animation:eggFloat 2.6s ease-in-out infinite}
.hen-agent[data-facing="right"] img.hen-egg{left:69%!important}
@keyframes eggFloat{50%{translate:0 -4px}}
.hen-agent[data-egg-ready="true"]{cursor:pointer}
.hen-sprite-stage[data-count="1"] .hen-agent{width:63px;height:63px}
.hen-sprite-stage[data-count="2"] .hen-agent{width:60px;height:60px}
.hen-sprite-stage[data-count="3"] .hen-agent{width:58px;height:58px}
.hen-sprite-stage[data-count="4"] .hen-agent,.hen-sprite-stage[data-count="5"] .hen-agent{width:52px;height:52px}
.scene-status{position:absolute;top:9px;left:9px;z-index:10;max-width:75%;font-size:10px;line-height:1.2;padding:6px 9px;background:#28523e;color:#fff0d6;border:1px solid #89a77d;border-radius:7px;font-weight:750}
.scene-status[data-ready="true"]{background:#edf0c4;color:#31512c}
.farm-control-panel{display:flex;flex-direction:column;gap:8px;flex:0 0 auto;padding:10px;background:var(--card);border:1px solid #c6c9af;border-radius:12px}
.production{padding:0}
.progress-head{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:11px;margin:0 0 7px;color:#344938}
.progress-head span{color:#728268;font-size:10px;white-space:nowrap}
.progress-track{position:relative;height:13px;border:5px solid transparent;border-image-source:url('assets/ui-farm/wood-progress-track.png');border-image-slice:6 10 6 10 fill;border-image-width:5px;border-image-repeat:stretch;overflow:hidden;background:#43342b}
.progress-bar{width:0;height:100%;background:#93bd67;transition:width .3s linear}
.actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;align-items:stretch}
.actions .btn{width:100%;height:47px;min-height:47px;padding:0 4px;font-size:11px;white-space:normal}
.actions #collectBtn{grid-column:1;grid-row:1}
.actions #eggX2Btn{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:1px}
.actions #sellBtn{grid-column:1/-1;grid-row:2;min-height:38px;height:38px;display:flex;flex-direction:row;gap:7px}
.btn:disabled{border-image-source:url('assets/ui-farm/wood-button-dark.png');color:#e8cfb5;opacity:1}
#sellBtn{border-image-source:url('assets/ui-farm/wood-button-dark.png');color:#f0d5ab}
#sellBtn:disabled{color:#c6b09a}
#eggX2Btn:disabled{border-image-source:url('assets/ui-farm/wood-button-dark.png');color:#dbc5ab}
.sell-x2-heading{font-size:10px;font-weight:850}
.sell-x2-counter,.sell-counter{font-size:9px;color:inherit;opacity:.89;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%}
.farm-bottom-strip{display:flex;align-items:center;justify-content:space-between;gap:5px;flex:0 0 auto;min-height:29px;padding:4px 9px;background:#f7e8c8;border:1px solid #d5bc90;border-radius:8px;font-size:10px;color:#6b5538}
.farm-sale-note{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-weight:750}
.farm-sale-note img{width:13px;height:18px;object-fit:contain;image-rendering:pixelated}
.farm-bottom-strip button{border:0;background:transparent;display:flex;align-items:center;gap:4px;white-space:nowrap;color:#47633d;font-size:11px;font-weight:850;padding:3px}
.farm-bottom-strip button .pn-solid-arrow{width:14px;height:14px;object-fit:contain;transform:rotate(180deg);filter:brightness(.3)}
/* Screens sharing clean, consistent card layout. */
.compact-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.compact-head .tag{font-size:9px;font-weight:850;background:#dae6c8;color:#45663c;padding:5px 8px;border-radius:20px}
.shop-wallet{background:#f9f4e7;border:1px solid #c7c9b0;border-radius:12px;padding:11px 13px;margin-bottom:11px;color:#364e35}
.shop-wallet>span{font-size:10px;font-weight:850;color:#7c836b;letter-spacing:.7px}
.shop-wallet>div{display:flex;align-items:center;gap:7px;margin-top:3px}
.shop-wallet img{width:23px;height:23px;image-rendering:pixelated}
.shop-wallet strong{font-size:24px;line-height:1.1}
.segmented{display:flex;gap:5px;margin-bottom:11px}
.segmented button{flex:1;min-height:39px;border:1px solid #b7c5a9;background:#edf0e1;color:#6c7564;border-radius:9px;font-size:11px;font-weight:800}
.segmented button.selected{color:#352519;border-radius:0;min-height:39px}
.soon-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#c39c61;vertical-align:middle}
.shop-item,.gift-item{display:flex;align-items:center;gap:9px;padding:10px;background:#f9f4e7;border:1px solid #c3cbb4;border-radius:11px;margin-bottom:7px;min-height:65px}
.item-icon,.gift-symbol{display:grid;place-items:center;flex:0 0 41px;width:41px;height:41px;background:#e8ebd8;border-radius:8px}
.item-icon img{width:37px;height:37px;object-fit:contain;image-rendering:pixelated}
.shop-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.shop-copy b{font-size:12px;color:#354735}
.shop-copy small{font-size:10px;line-height:1.35;color:#727867}
.buy-button{font-size:11px;min-height:38px;padding:0 10px;white-space:nowrap}
.buy-button:disabled{border-image-source:url('assets/ui-farm/wood-button-dark.png');color:#ddc9ac;opacity:1}
.micro-note,.legal-note{font-size:10px;line-height:1.45;color:#667564;margin:9px 3px}
.gift-warning{display:flex;flex-direction:column;gap:5px;padding:11px 12px;background:#f4e5ca;border:1px solid #c5a874;border-radius:10px;font-size:11px;color:#5b462c;line-height:1.45;margin-bottom:9px}
.gift-warning span{font-size:10px}
.gift-symbol.netflix{background:#f1e0d2;color:#b12a20;font-size:22px;font-weight:900}
.gift-symbol.games,.gift-symbol.store{font-size:19px}
.locked{font-size:9px;font-weight:850;color:#88766a;padding:5px;border:1px solid #c7bca7;border-radius:5px}
.bonus-card{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;column-gap:10px;row-gap:3px;background:#f9f4e7;border:1px solid #c6c8ae;border-radius:12px;padding:12px;margin-bottom:9px;color:#354734}
.bonus-icon{grid-column:1;grid-row:1/3;display:grid;place-items:center;align-self:center;width:40px;height:40px;background:#e6e9d6;border-radius:9px}
.bonus-icon img{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}
.bonus-card b{grid-column:2;font-size:13px;line-height:1.2}
.bonus-card p{grid-column:2;font-size:10px;line-height:1.35;color:#77816d}
.bonus-card .btn{grid-column:1/-1;width:100%;margin-top:6px;min-height:40px}
.bonus-card.subtle{background:#f2f0e5}
.how-steps{background:#f9f4e7;border:1px solid #c7cab1;border-radius:12px;padding:12px;margin-top:10px;color:#374a36}
.how-steps h3{font-size:13px;margin-bottom:7px}
.how-steps>div{display:flex;align-items:center;gap:10px;border-top:1px solid #e5e7d5;padding:8px 0;font-size:11px;color:#5f725a}
.how-steps>div span{font-size:10px;color:#a87c42;font-weight:850}
.how-steps>div:last-child{padding-bottom:0}
.how-steps p{font-size:11px;line-height:1.45;color:#61735c}
.player-line{display:flex;align-items:center;gap:11px;padding:12px;background:#f9f4e7;border:1px solid #c7cab1;border-radius:12px}
.player-avatar{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:10px;background:#dce6ce;color:#456439;font-size:21px;font-weight:850}
.player-line>div:last-child{display:flex;flex-direction:column;gap:4px}
.player-line b{font-size:14px}
.player-line span{font-size:10px;color:#78846d}
.profile-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:9px}
.profile-grid>div{display:flex;flex-direction:column;gap:3px;padding:11px;background:#f9f4e7;border:1px solid #c7cab1;border-radius:11px}
.profile-grid small{font-size:9px;color:#7e846c;font-weight:850;letter-spacing:.4px}
.profile-grid strong{font-size:21px;color:#324c35}
.copy-btn{width:100%;display:flex;justify-content:space-between;align-items:center;margin-top:10px}
.copy-btn img{width:18px;height:18px;object-fit:contain}
.reset{margin:7px 0 4px;text-align:center}
.reset button{padding:6px;border:0;background:transparent;color:#7e8674;font-size:10px;text-decoration:underline}
/* Navigation: existing source pixel-icons, but no artificial frames or overlapping outlines. */
.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex:0 0 calc(67px + env(safe-area-inset-bottom,0px));height:calc(67px + env(safe-area-inset-bottom,0px));padding:3px 5px env(safe-area-inset-bottom,0px);background:#e8ddc4;border-top:1px solid #c2ab86;z-index:8;box-shadow:none}
.nav-link{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;min-width:0;min-height:0;padding:2px 1px;background:transparent;border:0;color:#6c6952;text-align:center;font-size:10px;font-weight:750}
.nav-link.active{background:#f9eed5;border-radius:10px;color:#29533d;box-shadow:inset 0 0 0 1px #b5a477}
.nav-link img,.nav-link img:not(.pn-farm-nav-icon),.nav-link img.pn-farm-nav-icon{display:block;width:30px;height:30px;object-fit:contain;image-rendering:pixelated;filter:none;opacity:1}
.nav-link span{font-size:10px;font-weight:800;line-height:1.12;color:inherit}
.nav-link:active{transform:scale(.97)}
.toast{position:absolute;left:12px;right:12px;bottom:calc(77px + env(safe-area-inset-bottom,0px));padding:10px 13px;background:#2b4735;color:#fff3d9;border:1px solid #9dae85;border-radius:10px;box-shadow:0 6px 16px #172a1d4d;font-size:11px;line-height:1.3;text-align:center;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s;z-index:20}
.toast.show{opacity:1;transform:translateY(0)}
/* Responsive */
@media(max-width:350px){.screen{padding:10px 10px 12px}.farm-stats>div{padding:5px 5px;gap:3px}.farm-stats .stat-sprite{width:21px;height:21px;flex-basis:21px}.farm-stats small{font-size:9px}.farm-scene-v25{min-height:125px}.hen-sprite-stage[data-count="1"] .hen-agent{width:57px;height:57px}.actions .btn{font-size:9px}.sell-x2-counter,.sell-counter{font-size:8px}}
@media(max-height:650px){#screenFarm{gap:5px;padding:6px 10px} .farm-heading{min-height:23px}.farm-heading h1{font-size:17px}.farm-stats>div{height:36px}.farm-scene-v25{min-height:118px;max-height:210px}.farm-control-panel{gap:5px;padding:7px}.progress-head{margin-bottom:5px}.actions .btn{height:38px;min-height:38px;font-size:10px}.actions #sellBtn{height:32px;min-height:32px}.farm-bottom-strip{min-height:24px;padding:2px 7px}.bottom-nav{height:calc(61px + env(safe-area-inset-bottom,0px));flex-basis:calc(61px + env(safe-area-inset-bottom,0px))}.nav-link img,.nav-link img:not(.pn-farm-nav-icon),.nav-link img.pn-farm-nav-icon{width:26px;height:26px}.nav-link span{font-size:9px}}
@media(min-width:700px){body{display:grid;place-items:center;min-height:100vh;background:#adbea2}.app{height:min(850px,96vh);width:430px;border:1px solid #849d7d;border-radius:21px;box-shadow:0 16px 60px #27422b30}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}.hen-agent img.hen-egg{animation:none!important}}

/* V4.2 — single source-asset button language. Buttons use the user's original
   Side_Farming wood-button-light 9-slice, not hand-painted alternatives. */
.hero-cta,.btn,.buy-button,.copy-btn,.segmented button.selected,
.rank-tabs button.selected,.rank-refresh{
 border:10px solid transparent;
 border-image-source:url('assets/ui-farm/wood-button-light.png');
 border-image-slice:11 12 11 12 fill;
 border-image-width:10px;
 border-image-repeat:stretch;
 background:transparent;color:#342619;border-radius:0;
 font-weight:850;box-shadow:none;text-shadow:none;
}
.btn:disabled,.buy-button:disabled,.rank-refresh:disabled{opacity:.52;filter:saturate(.6);color:#4b3d31}
#sellBtn,#eggX2Btn,#sellBtn:disabled,#eggX2Btn:disabled{border-image-source:url('assets/ui-farm/wood-button-light.png');color:#342619}
#sellBtn:disabled,#eggX2Btn:disabled{opacity:.55}
.segmented button:not(.selected),.rank-tabs button:not(.selected){border:1px solid #b6c4a5;background:#edf0e1;color:#50644d;border-radius:9px}
.rank-refresh{display:flex;justify-content:center;align-items:center;width:100%;margin-top:10px;min-height:40px;font-size:12px}
/* Verified-player leaderboard */
.ranks-intro{font-size:11px;line-height:1.4;color:#66775f;margin:-2px 0 12px}
.rank-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:10px}
.rank-tabs button{min-height:40px;padding:3px 5px;font-size:11px;font-weight:850;cursor:pointer}
.rank-self{display:flex;align-items:center;gap:10px;min-height:53px;padding:10px 12px;background:#f8f4e8;border:1px solid #c2cbb4;border-radius:12px}
.rank-self-label{font-weight:800;font-size:10px;letter-spacing:.5px;color:#607654}
.rank-self>b{font-size:18px;line-height:1.1;margin-left:auto;color:#314b31;white-space:nowrap}
.rank-self-score{font-size:10px;color:#778469;white-space:nowrap;display:flex;flex-direction:column;align-items:end}
.rank-self-score strong{font-size:15px;color:#344a36}
.ranks-section-title{display:flex;align-items:center;justify-content:space-between;font-weight:800;color:#364c36;margin:14px 0 8px;font-size:13px}
.ranks-section-title span{font-size:10px;color:#78876d;font-weight:500}
.rank-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:12px}
.rank-podium-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:110px;background:#f9f5e9;border:1px solid #c6cbb2;border-radius:11px;padding:10px 5px;text-align:center}
.rank-podium-1{background:#f6edcf;border-color:#cbb577}
.rank-podium-card .rank-medal{font-size:18px;line-height:1.25}
.rank-podium-card .rank-avatar{width:30px;height:30px;font-size:15px}
.rank-podium-card b{font-size:10px;color:#324a35;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-podium-card strong{font-size:13px;color:#795825;font-variant-numeric:tabular-nums}
.rank-list{display:flex;flex-direction:column;gap:6px}
.rank-row{display:flex;align-items:center;gap:8px;padding:7px 9px;background:#f9f5e9;border:1px solid #c9cfb9;border-radius:10px;min-height:53px}
.rank-row.is-you{border-color:#8baf70;background:#e5eed6}
.rank-position{font-size:11px;font-weight:850;color:#5d704e;flex:0 0 26px}
.rank-avatar{display:grid;place-items:center;flex:0 0 33px;width:33px;height:33px;background:#dce8ce;border:1px solid #becaab;border-radius:9px;font-weight:850;color:#385637}
.rank-player{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.rank-player b{font-size:11px;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.rank-player small{font-size:9px;color:#7b8a71}
.rank-score{font-size:13px;color:#425d38;font-variant-numeric:tabular-nums;white-space:nowrap}
.rank-message{font-size:11px;line-height:1.4;color:#74826a;background:#f2f2e8;border:1px solid #d1d5c1;padding:10px 12px;border-radius:10px}
@media(max-width:350px){.rank-row{gap:5px}.rank-avatar{width:28px;height:28px;flex-basis:28px}.rank-podium-card{min-height:101px}}


/* V4.3 — automatic farm layout. Only existing provided sprite assets are used. */
.game-hero{min-height:143px;padding:12px 15px;background:linear-gradient(106deg,#234c34 0%,#315e4d 55%,#478478 100%);border:1px solid #799d70;}
/* V6.8: one seamless card background. The old cropped meadow started at 59%
   and left a visible vertical cut behind the chicken. */
.game-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 82% 65%,rgba(156,218,175,.18),transparent 66%);opacity:1;pointer-events:none}
.game-hero .hero-text{max-width:70%;gap:4px}
.game-hero h2{font-size:19px}
.hero-art{right:10px;top:auto;bottom:4px;width:30%;height:117px}
.hero-chicken{top:auto;right:4px;bottom:4px;width:104px;height:104px;object-fit:contain}
.hero-egg-art{display:none}
.farm-orchard{background-position:center bottom}
.farm-stats .farm-next-stat{justify-content:space-between}
.farm-next-stat .stat-value{font-size:15px;font-variant-numeric:tabular-nums}
.farm-control-panel{background:#f7f2e6}
.actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.actions #collectBtn{grid-column:1;grid-row:1}
.actions #eggX2Btn{grid-column:2;grid-row:1}
.actions #sellBtn{grid-column:1/-1;grid-row:2}
#screenFarm .farm-scene-v25{border-color:#85a17a}
@media(max-width:355px){.game-hero .hero-text{max-width:71%}.hero-art{right:0;width:30%}.hero-chicken{width:86px;height:96px}.farm-next-stat .stat-value{font-size:13px}}

/* Farm horizon: original Side_Farming ground sprite, seamless behind chicken pen. */


/* Disabled controls remain readable while clearly unavailable. */
.actions .btn:disabled{color:#5a4939!important;border-image-source:url('assets/ui-farm/wood-button-light.png')!important;opacity:.68}
.actions #eggX2Btn:disabled .sell-x2-counter,.actions #sellBtn:disabled .sell-counter{color:#524638;opacity:1}

/* V4.6: exact original forest orchard scene restored (V4.2 assets); no meadow sky or overlay strip. */
#screenFarm .farm-orchard{background-image:url("assets/sidefarm/orchard.png")!important;animation:none!important;transform:none!important}
#screenFarm .farm-yard::before{content:none!important;display:none!important}
#screenFarm .farm-hay,#screenFarm .farm-shrubs{display:block!important}

/* V4.7 — single-source shop layout; no decorative redesign */
.farm-hay{display:none!important}
.hen-market-intro{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:3px 2px 10px;color:#315138;font-size:13px}
.hen-market-intro span{font-size:11px;font-weight:750;color:#79866f}
.hen-market-card .shop-copy{min-width:0}
.hen-market-card .shop-copy b{font-size:12px}
.hen-market-card .shop-copy small{font-size:10px}
.tier-mark{display:inline-block;font-size:9px;vertical-align:1px;border-radius:4px;padding:2px 4px;background:#d6e5b9;color:#38603d;line-height:1}
.flock-summary{background:#eff1e2;border:1px solid #c9d4b7;padding:8px 11px;border-radius:10px;margin-top:10px;font-size:11px;font-weight:750;color:#36523a}
.hen-sprite-stage[data-count="6"] .hen-agent,.hen-sprite-stage[data-count="7"] .hen-agent,.hen-sprite-stage[data-count="8"] .hen-agent{width:43px;height:43px}
@media(max-width:355px){.hen-sprite-stage[data-count="6"] .hen-agent,.hen-sprite-stage[data-count="7"] .hen-agent,.hen-sprite-stage[data-count="8"] .hen-agent{width:39px;height:39px}.hen-market-card .buy-button{padding-left:5px;padding-right:5px}}

/* V4.8 Golden Hen journey and optional TON wallet */
.economy-hint{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;margin:0 0 8px;border:1px solid #d2c7ab;border-radius:9px;background:#f4edda;color:#516347;font-size:10px}
.economy-hint b{color:#765c33;font-size:10px}
.gold-quest{display:flex;flex-direction:column;gap:8px;background:#fbf1cc;border:1px solid #d0b56d;border-radius:12px;padding:12px;margin:11px 0 6px;color:#59431d}
.gold-quest-top,.gold-quest-bottom{display:flex;align-items:center;justify-content:space-between;gap:9px}
.gold-quest-top>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.gold-quest-top strong{font-size:14px;color:#745219}
.gold-quest-top small,.gold-quest-bottom small{font-size:10px;line-height:1.35;color:#7b6a43}
.gold-quest-top>b{flex:none;font-size:10px}
.gold-day-track{height:8px;border:1px solid #c5aa6c;background:#e4d4a8;border-radius:5px;overflow:hidden}
.gold-day-track>div{height:100%;width:0;background:#aa852d;transition:width .3s}
.gold-quest-bottom>.buy-button{flex:0 0 auto;min-height:36px;padding:3px 9px;white-space:nowrap}
.economy-profile{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0}
.economy-profile>span{display:flex;flex-direction:column;gap:4px;border:1px solid #c6cdb5;border-radius:10px;background:#faf4e8;padding:9px}
.economy-profile b{font-size:10px;color:#687660}.economy-profile strong{font-size:14px;color:#324c38}
.wallet-panel{background:#f7f2e6;border:1px solid #c3cbb4;border-radius:12px;padding:11px;margin:12px 0}
.wallet-heading{display:flex;flex-direction:column;gap:4px}.wallet-heading strong{font-size:13px;color:#34523c}.wallet-heading small{font-size:10px;color:#687660}
.wallet-controls{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.wallet-controls button{flex:1 1 auto;min-width:120px;min-height:36px}
.wallet-controls button:disabled{opacity:.62;cursor:not-allowed}.wallet-controls button[hidden]{display:none}
.wallet-status{margin-top:8px;font-size:10px;line-height:1.4;color:#6e735f;overflow-wrap:anywhere}
.wallet-controls .btn-quiet{background:#e6dfca;color:#4c5d48;border:1px solid #b5b79e;border-radius:8px;border-image:none}
@media(max-width:350px){.gold-quest-top,.gold-quest-bottom{align-items:flex-start;flex-direction:column}.economy-hint{flex-wrap:wrap}}

/* Gold uses the existing licensed pixel chicken sprite with a subtle gold highlight. */
.hen-agent[data-tier="gold"] .hen-body{filter:sepia(.65) saturate(1.5) brightness(1.12)}


/* V4.9: Use the original Font Awesome Free 6.7.2 circle-play.svg. Icon is not redrawn. */
.actions #eggX2Btn .sell-x2-heading{display:inline-flex;align-items:center;justify-content:center;gap:5px;max-width:100%;white-space:nowrap;line-height:1.1}
.actions #eggX2Btn .ad-ready-icon{display:block;flex:0 0 16px;width:16px;height:16px;object-fit:contain;filter:brightness(0) saturate(100%) invert(13%) sepia(16%) saturate(1189%) hue-rotate(342deg) brightness(91%) contrast(88%)}
.actions #eggX2Btn .sell-x2-counter{font-size:9px;text-align:center;line-height:1.2}
.ton-cashout-info{margin-top:11px;padding:10px;border:1px solid #d5c6a2;border-radius:10px;background:#f6edda;color:#3a5139}
.cashout-info-top{display:flex;align-items:center;gap:7px}
.cashout-info-top img{width:19px;height:19px;object-fit:contain;image-rendering:pixelated}
.cashout-info-top strong{font-size:12px}
.cashout-info-top span{margin-left:auto;border-radius:5px;background:#e8dfcb;color:#74694d;padding:3px 5px;font-size:9px;font-weight:850;letter-spacing:.02em}
.ton-cashout-info p{margin:7px 0 8px;font-size:10px;line-height:1.5;color:#66725d}
.ton-cashout-info .cashout-disabled{display:block;width:100%;min-height:35px;border:1px solid #c7c0ae;border-radius:7px;background:#e4e1d5;color:#767568;font-size:11px;font-weight:800;cursor:not-allowed;opacity:1}
@media(max-width:350px){.actions #eggX2Btn .ad-ready-icon{width:14px;height:14px;flex-basis:14px}.actions #eggX2Btn .sell-x2-heading{gap:3px;font-size:9px}}


/* V5.0 REWARDED-EGGS BUTTON: the approved full-color icon is a local optimized asset.
   Button maintains existing working click events and dynamic ad/demo messages. */
#screenFarm .actions #eggX2Btn{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:29px minmax(0,1fr);
  grid-template-rows:1fr;
  align-items:center;
  column-gap:5px;
  padding:5px 7px;
  min-width:0;
  min-height:54px;
  height:54px;
  background:linear-gradient(165deg,#ffe8ab 0%,#f5bf66 52%,#df9751 100%);
  border:2px solid #a66b36;
  border-image:none!important;
  border-radius:9px;
  box-shadow:inset 0 1px 1px #fff9d2, inset 0 -2px 2px #87491d55, 0 1px 3px #7a531b55;
  color:#44250e;
  text-align:left;
  overflow:hidden;
  transform:translateZ(0);
  transition:filter .2s ease,box-shadow .22s ease,transform .16s ease;
}
#screenFarm .actions #eggX2Btn::before{
  content:"";position:absolute;inset:2px;border:1px solid #fff3ce90;border-radius:6px;
  pointer-events:none;z-index:0;
}
#screenFarm .actions #eggX2Btn::after{
  content:"";position:absolute;left:-70%;top:-40%;height:200%;width:35%;
  background:linear-gradient(90deg, transparent, #fff9d780, transparent);
  transform:skewX(-22deg) translateX(0);
  pointer-events:none;z-index:1;opacity:0;
}
#screenFarm .actions #eggX2Btn .ad-ready-icon{
  width:29px;height:29px;object-fit:contain;display:block;min-width:0;
  filter:none!important;flex:none;position:relative;z-index:2;
  background:transparent;
}
#screenFarm .actions #eggX2Btn .egg-x2-copy{
  display:flex;flex-direction:column;align-items:flex-start;
  justify-content:center;min-width:0;gap:2px;position:relative;z-index:2;
}
#screenFarm .actions #eggX2Btn .sell-x2-heading{
  font-size:10px;line-height:1.14;font-weight:900;white-space:normal;
  overflow-wrap:normal;text-align:left;max-width:100%;
  color:#44240c;letter-spacing:-.1px;display:block;
}
#screenFarm .actions #eggX2Btn .sell-x2-counter{
  font-size:8.5px;font-weight:750;line-height:1.1;max-width:100%;
  color:#70461f;opacity:1;white-space:normal;text-overflow:clip;
  overflow:hidden;text-align:left;
}
#screenFarm .actions #eggX2Btn.reward-available:not(:disabled){
  box-shadow:inset 0 1px 2px #fff9d7, 0 0 0 1px #eecc7e, 0 0 11px #e7ad5966;
  animation:pnRewardGlow 2.9s ease-in-out infinite;
}
#screenFarm .actions #eggX2Btn.reward-available:not(:disabled)::after{
  opacity:1;animation:pnRewardSheen 5.5s ease-in-out infinite;
}
#screenFarm .actions #eggX2Btn:active:not(:disabled){transform:translateY(1px) scale(.99);filter:brightness(.98)}
#screenFarm .actions #eggX2Btn:disabled{
  opacity:1!important;filter:saturate(.63) brightness(.94);
  box-shadow:inset 0 1px 1px #fff8d29c;color:#695339;
}
#screenFarm .actions #eggX2Btn:disabled .ad-ready-icon{opacity:.79}
#screenFarm .actions #eggX2Btn:disabled .sell-x2-counter{color:#67543f;opacity:1}
@keyframes pnRewardGlow{
  0%,100%{box-shadow:inset 0 1px 2px #fff9d7,0 0 0 1px #edca80,0 0 5px #e7a65850}
  50%{box-shadow:inset 0 1px 2px #fff9d7,0 0 0 1px #f2cc78,0 0 12px #f6b84d99}
}
@keyframes pnRewardSheen{0%,14%,100%{transform:skewX(-22deg) translateX(0)} 36%{transform:skewX(-22deg) translateX(700%)} 37%{transform:skewX(-22deg) translateX(700%)}}
@media(max-width:350px){
 #screenFarm .actions #eggX2Btn{grid-template-columns:24px minmax(0,1fr);column-gap:4px;padding:4px 5px;min-height:52px;height:52px}
 #screenFarm .actions #eggX2Btn .ad-ready-icon{width:24px;height:24px}
 #screenFarm .actions #eggX2Btn .sell-x2-heading{font-size:9px}
 #screenFarm .actions #eggX2Btn .sell-x2-counter{font-size:8px}
}
@media(prefers-reduced-motion:reduce){
 #screenFarm .actions #eggX2Btn.reward-available:not(:disabled),
 #screenFarm .actions #eggX2Btn.reward-available:not(:disabled)::after{animation:none!important}
}


/* V5.1 — Match rewarded-ad and collect button outlines exactly on the first row.
   Previous CSS gave 47px to collect and 54px to ad; shorter breakpoints diverged.
   Both buttons now share an identical CSS grid track and border-box dimensions. */
#screenFarm .farm-control-panel .actions{
  --pn-action-row-height:52px;
  grid-template-rows:var(--pn-action-row-height) auto;
  align-items:stretch;
}
#screenFarm .farm-control-panel .actions > #collectBtn,
#screenFarm .farm-control-panel .actions > #eggX2Btn{
  box-sizing:border-box;
  margin:0;
  width:100%;
  height:var(--pn-action-row-height)!important;
  min-height:var(--pn-action-row-height)!important;
  max-height:var(--pn-action-row-height)!important;
  align-self:stretch;
  justify-self:stretch;
}
#screenFarm .farm-control-panel .actions > #collectBtn{
  display:flex;
  align-items:center;
  justify-content:center;
}
#screenFarm .farm-control-panel .actions > #eggX2Btn{
  padding:4px 7px;
  grid-template-columns:28px minmax(0,1fr);
  column-gap:5px;
}
#screenFarm .farm-control-panel .actions > #eggX2Btn .ad-ready-icon{
  width:28px;height:28px;
}
@media (max-width:350px){
  #screenFarm .farm-control-panel .actions{--pn-action-row-height:50px}
  #screenFarm .farm-control-panel .actions > #eggX2Btn{padding:4px 5px;grid-template-columns:24px minmax(0,1fr);column-gap:4px}
  #screenFarm .farm-control-panel .actions > #eggX2Btn .ad-ready-icon{width:24px;height:24px}
}
@media (max-height:650px){
  #screenFarm .farm-control-panel .actions{--pn-action-row-height:44px}
  #screenFarm .farm-control-panel .actions > #eggX2Btn{padding:3px 5px;grid-template-columns:23px minmax(0,1fr);column-gap:4px}
  #screenFarm .farm-control-panel .actions > #eggX2Btn .ad-ready-icon{width:23px;height:23px}
}


/* V5.2 — subtle per-hen hop + tiny feather particles; independent of walking transforms. */
#screenFarm .hen-agent .hen-motion{
  position:relative;display:grid;place-items:center;width:100%;height:100%;
  z-index:2;transform-origin:50% 85%;will-change:transform;pointer-events:none;
}
#screenFarm .hen-agent .hen-motion .hen-body{width:100%;height:100%;}
#screenFarm .hen-sprite-stage .pn-hen-feather{
  position:absolute;z-index:2500;display:block;width:7px;height:4px;
  border:1px solid rgba(54,64,43,.2);border-radius:85% 15% 70% 25%;
  box-sizing:border-box;pointer-events:none;opacity:0;will-change:transform,opacity;
  filter:drop-shadow(0 1px 0 rgba(20,35,17,.12));
}
@media(prefers-reduced-motion:reduce){
  #screenFarm .hen-agent .hen-motion{will-change:auto;}
  #screenFarm .hen-sprite-stage .pn-hen-feather{display:none!important;}
}

/* V5.3 — ground wheat feed & independent 2D chicken navigation */
#screenFarm .farm-scene-v25 .pn-ground-feed{position:absolute;inset:0;overflow:hidden;z-index:5;pointer-events:none}
#screenFarm .farm-scene-v25 .pn-ground-feed-pile{position:absolute;width:13px;height:13px;object-fit:contain;image-rendering:pixelated;transform:translate(-50%,-70%);filter:drop-shadow(0 2px 0 #244c1c45)}
#screenFarm .farm-scene-v25 .pn-ground-feed-pile[hidden]{display:none!important}
#screenFarm .hen-sprite-stage .hen-agent{bottom:auto!important;left:0;top:0;transform:none}
#screenFarm .hen-sprite-stage .hen-agent img.hen-body{image-rendering:pixelated}
@media(max-width:350px){#screenFarm .farm-scene-v25 .pn-ground-feed-pile{width:12px;height:12px}}

/* V5.8 — quiet farm: retain screen-reader state but remove overlay text from the yard. */
#screenFarm .farm-scene-v25 .scene-status{display:none!important}
/* No accidental easing or bouncing on position changes; only sprite frames animate. */
#screenFarm .hen-sprite-stage .hen-agent{transition:none!important;animation:none!important;will-change:auto}
#screenFarm .hen-sprite-stage .hen-agent .hen-body{transition:none!important;animation:none!important}

/* V6.1: compact flock management, no visual noise in the farm scene. */
.flock-manager{margin:14px 0 4px;background:#f2f3e9;border:1px solid #d0d9c8;border-radius:15px;color:#294c35;overflow:hidden}
.flock-manager>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;font-size:13px;font-weight:800;cursor:pointer}
.flock-manager>summary::-webkit-details-marker{display:none}
.flock-manager>summary::after{content:'⌄';color:#5b7e63;font-size:16px;order:2;transition:transform .18s}
.flock-manager[open]>summary::after{transform:rotate(180deg)}
.flock-manager>summary span{margin-left:auto;color:#6b816d;font-size:10px;font-weight:700}
.flock-manager-note{padding:0 14px 12px;margin:0;color:#698071;font-size:11px;line-height:1.5}
.flock-manager-list{padding:0 11px 12px;display:grid;gap:8px}
.flock-hen-row{display:flex;align-items:center;gap:9px;padding:9px 8px;background:#fff;border:1px solid #e2e9de;border-radius:12px;min-width:0;flex-wrap:wrap}
.flock-hen-row>img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated;flex:0 0 38px}
.flock-hen-info{flex:1;min-width:94px;display:flex;flex-direction:column;gap:2px}
.flock-hen-info b{font-size:11px;color:#244a34}
.flock-hen-info small{font-size:10px;color:#778779}
.flock-hen-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.flock-action{border:1px solid #c5d7bf;border-radius:8px;background:#ebf5e7;color:#275634;padding:8px 9px;font-size:10px;font-weight:800;min-height:35px}
.flock-action.flock-remove{background:#fff7f4;color:#96544e;border-color:#ead4d0}
.flock-action:disabled{opacity:.44;cursor:not-allowed}
.flock-protected{color:#7a8a78;font-size:10px;font-weight:700;padding:4px 7px}
.hen-confirm-overlay{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;background:#0e2118aa;backdrop-filter:blur(4px)}
.hen-confirm-overlay[hidden]{display:none!important}
.hen-confirm-card{width:100%;max-width:365px;padding:19px;background:#fffdf5;color:#254932;border:1px solid #ccd8c5;border-radius:18px;box-shadow:0 20px 50px #10281855}
.hen-confirm-card h2{font-size:17px;margin:0 0 10px}
.hen-confirm-card p{font-size:12px;line-height:1.6;color:#5b7060;margin:0 0 18px}
.hen-confirm-actions{display:flex;gap:9px}
.hen-confirm-actions button{flex:1;border-radius:10px;font-size:12px;min-height:44px;font-weight:800}
.hen-modal-cancel{border:1px solid #d1d7cd;background:#f5f5ec;color:#395640}
.hen-modal-apply{border:1px solid #29784d;background:#2e8154;color:#fff}
@media(max-width:355px){.flock-hen-actions{width:100%;justify-content:flex-end}.flock-hen-row{gap:7px}}


/* V6.4 — one stable and crisp pixel-art shadow per bird.
   No duplicate body drop shadows or time-based alpha/size transitions. */
#screenFarm .farm-scene-v25 .pn-hen-shadow-layer{
  position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  contain:layout style paint;
}
#screenFarm .farm-scene-v25 .pn-hen-ground-shadow{
  position:absolute;display:block;pointer-events:none;
  background:rgba(27,70,37,.43);border:0;border-radius:0;
  clip-path:polygon(0 43%,10% 43%,10% 18%,22% 18%,22% 0,78% 0,78% 18%,90% 18%,90% 43%,100% 43%,100% 72%,85% 72%,85% 100%,15% 100%,15% 72%,0 72%);
  opacity:1;filter:none;box-shadow:none;image-rendering:pixelated;
  transform:none;animation:none;transition:none;
}
#screenFarm .farm-scene-v25 .hen-sprite-stage .hen-agent img.hen-body{
  filter:none!important;transition:none!important;
}
#screenFarm .farm-scene-v25 .hen-sprite-stage .hen-agent[data-tier="gold"] img.hen-body{
  filter:sepia(.65) saturate(1.5) brightness(1.12)!important;
}


/* V6.5 — supplied 12-frame animated 2X egg icon. Keep the user GIF untouched.
   Cover crops transparent top/bottom only; icon colors and motion remain original.
   No extra text or image layers; existing rewarded button logic is unchanged. */
#screenFarm .farm-control-panel .actions > #eggX2Btn{
  grid-template-columns:33px minmax(0,1fr);column-gap:5px;
}
#screenFarm .farm-control-panel .actions > #eggX2Btn .ad-ready-icon.ad-egg-gif{
  display:block;width:33px;height:33px;min-width:33px;
  object-fit:cover;object-position:center 43%;
  filter:none!important;background:transparent;
  flex:none;image-rendering:auto;
}
@media(max-width:350px){
  #screenFarm .farm-control-panel .actions > #eggX2Btn{grid-template-columns:28px minmax(0,1fr);column-gap:4px}
  #screenFarm .farm-control-panel .actions > #eggX2Btn .ad-ready-icon.ad-egg-gif{width:28px;height:28px;min-width:28px}
}
@media(max-height:650px){
  #screenFarm .farm-control-panel .actions > #eggX2Btn{grid-template-columns:25px minmax(0,1fr);column-gap:4px}
  #screenFarm .farm-control-panel .actions > #eggX2Btn .ad-ready-icon.ad-egg-gif{width:25px;height:25px;min-width:25px}
}
