:root{--green:#5caf3a;--green-dark:#31762b;--cream:#fff5d8;--brown:#72451f;--gold:#f1ba37;--line:#d0ae6a;--shadow:0 7px 16px rgba(83,52,17,.18)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-rounded,"Arial Rounded MT Bold",system-ui,-apple-system,sans-serif;color:#46341d;background:#88d9f4}button,input,select{font:inherit}button{cursor:pointer}.app-shell{width:min(760px,100%);min-height:100dvh;margin:auto;background:#f7e2aa;position:relative;overflow:hidden;padding-bottom:96px}.screen{display:none}.screen.active{display:block}
.topbar{height:108px;background:linear-gradient(#78d1f3,#58b8e4);display:grid;grid-template-columns:minmax(0,1fr) auto 48px;gap:9px;align-items:center;padding:12px 14px;border-bottom:4px solid rgba(255,255,255,.55);position:relative;z-index:40;box-shadow:0 4px 12px rgba(27,94,120,.18)}.profile-card{border:0;background:rgba(255,255,255,.86);border-radius:19px;padding:7px 10px;display:flex;gap:9px;align-items:center;min-width:0;box-shadow:var(--shadow);color:#47331c}.avatar{width:58px;height:58px;object-fit:cover;border-radius:16px;border:2px solid #d8ae58}.profile-meta{min-width:0;flex:1;text-align:left}.brand{font-weight:1000;font-size:19px;white-space:nowrap}.level-row{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:900;color:#5b6c37}.level-row small{font-size:10px;opacity:.8}.xp-track{height:8px;background:#ded1ad;border-radius:999px;overflow:hidden;margin-top:5px}.xp-track span{height:100%;display:block;background:linear-gradient(90deg,#74c63f,#3b9631);width:0}.currency-strip{display:flex;gap:7px}.currency-pill{height:45px;min-width:116px;border:2px solid rgba(90,70,38,.2);background:#fff8df;border-radius:16px;display:flex;align-items:center;gap:6px;padding:4px 6px;box-shadow:var(--shadow);color:#48351e}.currency-pill.cash{background:#e8ffe1}.coin-icon,.cash-icon{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#f2c04b;font-weight:900}.cash-icon{background:#5eb65b;color:white}.currency-pill strong{font-size:17px;min-width:34px}.plus{margin-left:auto;width:27px;height:27px;border-radius:9px;background:#5cb545;color:white;display:grid;place-items:center;font-size:19px}.gear{width:44px;height:44px;border:0;border-radius:15px;background:#fff3cf;box-shadow:var(--shadow);font-size:25px;color:#5d431f}
.sky-scene{min-height:880px;position:relative;overflow:hidden;background:linear-gradient(#80d6f3 0 35%,#b4e596 35% 52%,#8fce63 52%);border-bottom:4px solid #9c672f}.sky-scene:after{content:"";position:absolute;left:-10%;right:-10%;bottom:-70px;height:420px;background:repeating-linear-gradient(90deg,rgba(75,135,50,.08) 0 2px,transparent 2px 61px),repeating-linear-gradient(0deg,rgba(75,135,50,.07) 0 2px,transparent 2px 61px);transform:skewY(-1.5deg);pointer-events:none}.cloud{position:absolute;width:110px;height:34px;background:rgba(255,255,255,.9);border-radius:999px;box-shadow:35px -18px 0 3px rgba(255,255,255,.9),72px -3px 0 -4px rgba(255,255,255,.9)}.c1{top:50px;left:-20px;transform:scale(.75)}.c2{top:102px;right:80px;transform:scale(.55)}.c3{top:20px;right:-10px;transform:scale(.85)}.hill{position:absolute;border-radius:50% 50% 0 0;background:#72be5c}.h1{width:500px;height:210px;left:-180px;top:245px}.h2{width:600px;height:220px;right:-300px;top:220px;background:#6eb654}.farm-buildings{position:absolute;left:0;right:0;top:165px;height:310px;z-index:2}.market-art{position:absolute;left:4%;bottom:15px;width:42%;max-height:280px;object-fit:contain}.house-art{position:absolute;right:3%;bottom:0;width:48%;max-height:300px;object-fit:contain}.chest-card{position:absolute;left:12px;top:42px;z-index:5;width:215px;border:2px solid #c69145;background:rgba(255,248,222,.94);border-radius:20px;padding:8px 10px;display:flex;align-items:center;gap:8px;box-shadow:var(--shadow);color:#483318;text-align:left}.chest-card img{width:70px;height:70px;object-fit:contain}.chest-card div{display:grid;min-width:0}.chest-card b{font-size:15px}.chest-card strong{font-size:18px;color:#417f35}.chest-card span{font-size:11px;color:#7c633f}.right-actions{position:absolute;right:10px;top:48px;z-index:6;display:grid;gap:8px}.side-action{width:76px;border:0;background:rgba(255,249,226,.95);border:2px solid #d0a459;border-radius:17px;padding:5px 4px;display:grid;place-items:center;box-shadow:var(--shadow);color:#5b3f1f;font-weight:900}.side-action img{width:52px;height:52px;object-fit:contain}.side-action span{font-size:11px}.field-zone{position:absolute;z-index:8;left:14px;right:14px;top:465px;background:rgba(250,235,181,.96);border:4px solid #8e5a2d;border-radius:25px;padding:12px;box-shadow:0 14px 24px rgba(83,54,22,.27)}.field-zone:before{content:"";position:absolute;inset:8px;border-radius:17px;background:rgba(176,112,49,.18);pointer-events:none}.field-head{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:2px 2px 10px}.field-head .eyebrow{display:block;text-transform:uppercase;font-size:10px;letter-spacing:.08em;font-weight:1000;color:#7b663f}.field-head strong{font-size:17px}.mode-chip{background:#fff8dc;border:2px solid #cda65c;padding:6px 10px;border-radius:999px;font-size:13px;font-weight:900}.plot-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.plot{aspect-ratio:1/1;border:3px solid #8b572b;border-radius:13px;background:url('assets/soil_tile.png') center/cover no-repeat;position:relative;overflow:hidden;box-shadow:inset 0 -6px 0 rgba(111,59,24,.14),0 3px 0 rgba(88,49,21,.14);padding:0}.plot.selected:after{content:"";position:absolute;inset:4px;border:2px dashed rgba(105,200,78,.8);border-radius:9px}.empty-seed{position:absolute;inset:0;display:grid;place-items:center;font-size:30px;color:rgba(255,255,255,.55)}.crop-sprite{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);font-size:44px;filter:drop-shadow(0 5px 3px rgba(63,39,16,.24));transition:.2s}.crop-sprite.stage-1{font-size:28px}.crop-sprite.stage-2{font-size:37px}.plot-name{position:absolute;left:4px;right:4px;top:4px;color:white;font-size:9px;font-weight:1000;text-shadow:0 1px 3px #3b2b13;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.plot-timer{position:absolute;left:4px;right:4px;bottom:4px;background:rgba(55,42,24,.76);color:white;border-radius:7px;padding:2px;font-size:9px;font-weight:900}.plot-timer.ready{background:rgba(66,142,53,.88)}.water-badge{position:absolute;right:4px;top:4px;z-index:3;background:#65b6ef;color:white;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;font-size:12px}
.tool-panel{background:linear-gradient(#f5d58c,#e7b85b);padding:12px 14px 10px;display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:10px;border-top:4px solid #9c672f}.hint-card{background:#fff4cf;border:2px solid #d2a258;border-radius:18px;padding:10px 12px;display:flex;align-items:center;gap:10px;box-shadow:var(--shadow)}.hint-card>div{display:grid}.hint-card b{font-size:17px}.hint-card span:not(.seed-bag){font-size:13px;color:#6b5a3e}.seed-bag{font-size:34px}.help-btn{margin-left:auto;border:2px solid #b88430;background:#f6d374;border-radius:50%;width:36px;height:36px;font-weight:900}.tool-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tool-btn{border:2px solid #c7a568;border-radius:15px;background:#fff8e5;padding:4px;color:#4b361b;display:grid;place-items:center;font-weight:900;box-shadow:var(--shadow);min-width:0}.tool-btn.active{outline:4px solid #56b13e;background:#f2ffe9}.tool-btn img{width:53px;height:43px;object-fit:contain}.tool-emoji{font-size:31px;line-height:43px}.tool-btn b{font-size:12px}.seed-strip-wrap{background:linear-gradient(#b97832,#8d531f);padding:10px 12px 8px;border-top:4px solid #6c3f19}.seed-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(96px,1fr);gap:8px;overflow-x:auto;scrollbar-width:none}.seed-card{border:2px solid #d2a552;background:#fff2c8;border-radius:16px;min-width:98px;padding:7px 6px;text-align:center;color:#483016;position:relative;min-height:118px}.seed-card.selected{outline:4px solid #55b63b;background:#f9ffe8}.seed-card b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seed-fruit{height:55px;display:grid;place-items:center;font-size:42px;filter:drop-shadow(0 4px 2px rgba(54,31,13,.15))}.seed-fruit.muted{filter:grayscale(.5);opacity:.6}.seed-card .qty{font-weight:1000}.seed-card small{display:block;font-size:9px;color:#795e36}.seed-card.locked{filter:saturate(.5);opacity:.8}.lock-mark{position:absolute;right:7px;top:7px}.dots{text-align:center;padding-top:7px}.dots i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#d7c9b0;margin:0 4px}.dots i.active{background:#fff}
.panel-screen{min-height:calc(100dvh - 202px);padding:16px 16px 115px;background:linear-gradient(#e8f7cf,#f8e6b4)}.section-title{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.84);border:2px solid #d7c887;border-radius:20px;padding:13px 15px;box-shadow:var(--shadow);margin-bottom:14px}.section-title .eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:.08em;color:#6d7e3c;font-weight:900}.section-title h2{margin:2px 0 0;font-size:22px}.close-screen{border:0;background:#efc65b;width:40px;height:40px;border-radius:14px;font-size:28px;color:#5b390c}.shop-ad-card{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff9e9;border:2px solid #dbbd78;border-radius:18px;padding:10px 12px;margin-bottom:12px;box-shadow:var(--shadow)}.shop-ad-card>div{display:grid}.shop-ad-card>div span{font-size:12px;color:#7a6443}.shop-ad-card button{border:0;background:#55a947;color:white;border-radius:13px;padding:5px 10px;display:flex;align-items:center;gap:5px;font-weight:900}.shop-ad-card button img{width:42px;height:42px;object-fit:contain}.shop-grid,.inventory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-item,.inventory-item,.task-item{background:#fff9e9;border:2px solid #dbc48f;border-radius:18px;padding:12px;box-shadow:var(--shadow)}.shop-item{display:grid;grid-template-columns:72px 1fr;gap:10px;align-items:center}.shop-fruit,.inventory-fruit{width:70px;height:70px;display:grid;place-items:center;font-size:52px;background:#f4e7bd;border-radius:16px}.shop-item h3,.inventory-item h3{margin:0 0 3px}.shop-item .meta,.inventory-item .meta{font-size:12px;color:#786446}.shop-item button,.inventory-item button{margin-top:8px;border:0;border-radius:11px;background:#54a938;color:white;padding:8px 10px;font-weight:900}.shop-item button:disabled,.inventory-item button:disabled{filter:grayscale(1);opacity:.5}.storage-summary,.task-summary{background:#eef9d8;border:2px solid #bdd58a;border-radius:16px;padding:11px 13px;margin-bottom:12px;display:flex;justify-content:space-between;gap:10px;align-items:center}.storage-summary span,.task-summary span{font-size:12px}.inventory-item{display:flex;gap:10px;align-items:center}.inventory-item>div:last-child{flex:1}.inventory-actions{display:flex;gap:7px;flex-wrap:wrap}.task-list{display:grid;gap:10px}.task-item{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center}.task-icon{width:52px;height:52px;border-radius:15px;background:#e6f4d4;display:grid;place-items:center;font-size:27px}.task-item h3{margin:0 0 4px}.task-progress{height:9px;background:#e6dcc4;border-radius:999px;overflow:hidden}.task-progress i{display:block;height:100%;background:#5caf3a}.task-item button{border:0;background:#f2b92d;color:#523600;border-radius:11px;padding:8px 10px;font-weight:900}.task-item button:disabled{filter:grayscale(1);opacity:.55}.wallet-hero{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wallet-hero>div{background:#fff8e2;border:2px solid #d7c18b;border-radius:18px;padding:15px;box-shadow:var(--shadow)}.wallet-hero span{font-size:12px;color:#7d6b4d;display:block}.wallet-hero strong{font-size:28px}.wallet-rate{background:#eaf7d4;border:2px solid #b5d38b;border-radius:16px;padding:13px;margin:12px 0;display:grid;gap:4px}.wallet-rate span{font-size:12px;color:#5e7149}.wallet-actions{display:grid;gap:10px}.primary-btn,.secondary-btn{border:0;border-radius:14px;padding:13px 15px;font-weight:900}.primary-btn{background:#49a63c;color:white}.secondary-btn{background:#f3bd35;color:#4c330d}.primary-btn:disabled{filter:grayscale(1);opacity:.5}.withdraw-history{margin-top:18px}.withdraw-history h3{margin-bottom:8px}.withdraw-row{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 0;border-bottom:1px dashed #cdbb8d;font-size:13px}.status{font-weight:900}.status.pending{color:#a46b0c}.status.paid{color:#2f8b3c}.status.rejected{color:#b13c35}
.bottom-nav{position:fixed;z-index:50;left:50%;bottom:0;transform:translateX(-50%);width:min(760px,100%);height:94px;background:linear-gradient(#9b612b,#6d3d18);border-top:4px solid #c98a42;padding:5px 8px calc(5px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);gap:4px;box-shadow:0 -8px 18px rgba(51,34,16,.25)}.nav-btn{border:0;background:transparent;border-radius:14px;padding:1px;display:grid;place-items:center;min-width:0}.nav-btn.active{background:#5cab38;box-shadow:inset 0 0 0 2px #8ed763}.nav-btn img{height:78px;max-width:100%;object-fit:contain}.nav-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.toast{position:fixed;z-index:140;left:50%;bottom:112px;transform:translate(-50%,18px);opacity:0;background:#2d4b29;color:#fff;padding:10px 15px;border-radius:14px;max-width:90%;transition:.2s;pointer-events:none;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.modal{position:fixed;z-index:120;inset:0;background:rgba(35,27,16,.5);display:grid;place-items:center;padding:18px}.modal.hidden{display:none}.modal-card{width:min(500px,100%);max-height:84dvh;overflow:auto;background:#fff7df;border:3px solid #c49752;border-radius:22px;padding:18px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.25)}.modal-card h3{margin:0 45px 12px 0}.modal-close{position:absolute;right:10px;top:10px;border:0;background:#edbd4c;width:36px;height:36px;border-radius:12px;font-size:24px}.form-grid{display:grid;gap:10px}.form-grid label{font-size:13px;font-weight:800}.form-grid input,.form-grid select{width:100%;border:2px solid #d3bf8c;border-radius:12px;padding:11px;background:white;margin-top:4px}.ad-progress{height:14px;background:#e1d3b1;border-radius:999px;overflow:hidden;margin:14px 0}.ad-progress i{display:block;width:0;height:100%;background:#5caf3a;transition:width .3s}.ad-demo{text-align:center}.ad-demo>img{width:120px;height:120px;object-fit:contain}.ad-demo small{display:block;color:#8b7756;margin-top:7px}.reward-offer{text-align:center;display:grid;gap:10px}.offer-crop{font-size:84px}.ad-cta{border:0;border-radius:16px;background:#55a946;color:white;padding:7px 12px;display:flex;justify-content:center;align-items:center;gap:7px;font-weight:1000}.ad-cta img{width:52px;height:52px;object-fit:contain}.ghost-btn{border:2px solid #cfb982;background:#fffdf5;border-radius:14px;padding:10px;font-weight:900;color:#6b5532}.modal-chest,.modal-tool{width:150px;height:150px;object-fit:contain;margin:auto}.chest-result{display:grid;place-items:center;gap:10px;padding:20px;font-size:18px}.chest-result b{font-size:29px;color:#3f8d35}.crop-info{display:grid;gap:4px}.settings-list{display:grid;gap:10px}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;border-radius:14px;background:#f5e8c5}.settings-row select{border:1px solid #c8ad73;border-radius:10px;padding:7px}.switch input{display:none}.switch i{display:block;width:48px;height:27px;border-radius:999px;background:#c9bda0;position:relative}.switch i:after{content:"";position:absolute;left:3px;top:3px;width:21px;height:21px;border-radius:50%;background:white;transition:.2s}.switch input:checked+i{background:#5caf3a}.switch input:checked+i:after{left:24px}.profile-modal{display:grid;gap:12px}.level-card,.ref-card,.milestone-list{background:#f5e8c5;border:2px solid #d5bd80;border-radius:17px;padding:12px}.level-card>div:first-child{display:flex;justify-content:space-between;align-items:center}.level-card>div:first-child b{font-size:24px}.level-card>div:first-child span{font-size:12px}.mini-progress{height:10px;background:#e1d4b6;border-radius:999px;overflow:hidden;margin:8px 0}.mini-progress i{display:block;height:100%;background:#5caf3a}.level-card small{display:block;margin-bottom:8px}.resource-row{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;background:#fff9e9;border-radius:14px}.ref-card h4,.milestone-list h4{margin:0 0 7px}.ref-card p{font-size:12px;line-height:1.45}.ref-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}.ref-stats span{background:#fff7df;border-radius:12px;padding:9px;display:grid}.ref-stats small{font-size:10px;color:#806d4e}.ref-stats b{font-size:20px}.invite-link{margin-top:8px;padding:8px;border-radius:10px;background:#fffdf7;font-size:10px;word-break:break-all;color:#7a6747}.milestone-list{display:grid;gap:7px}.milestone-row{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fff9e9;border-radius:12px;padding:8px 10px}.milestone-row span{display:grid}.milestone-row small{font-size:11px;color:#7b6849}.milestone-row button{border:0;border-radius:10px;background:#f1b93a;padding:7px 10px;font-weight:900}.milestone-row button:disabled{filter:grayscale(1);opacity:.5}.server-note{font-size:10px;color:#876f4c;line-height:1.4}
@media(max-width:640px){.app-shell{max-width:none}.topbar{height:103px;padding:10px;grid-template-columns:minmax(0,1fr) auto 42px}.avatar{width:50px;height:50px}.brand{font-size:16px}.currency-strip{gap:4px}.currency-pill{min-width:88px;padding:3px 5px}.currency-pill strong{font-size:15px}.coin-icon,.cash-icon{width:28px;height:28px}.plus{width:24px;height:24px;font-size:16px}.gear{width:40px;height:40px;font-size:22px}.sky-scene{min-height:845px}.chest-card{top:40px;width:184px;padding:6px}.chest-card img{width:60px;height:60px}.chest-card b{font-size:13px}.chest-card strong{font-size:15px}.chest-card span{font-size:10px}.right-actions{right:7px;top:40px}.side-action{width:64px}.side-action img{width:44px;height:44px}.side-action span{font-size:10px}.farm-buildings{top:150px;height:280px}.market-art{width:43%;left:1%}.house-art{width:49%;right:0}.field-zone{top:430px;left:9px;right:9px;padding:9px}.plot-grid{gap:5px}.plot{border-width:2px;border-radius:10px}.crop-sprite{font-size:35px}.crop-sprite.stage-1{font-size:24px}.crop-sprite.stage-2{font-size:30px}.field-head{padding-bottom:7px}.field-head strong{font-size:14px}.mode-chip{font-size:11px;padding:5px 8px}.tool-panel{grid-template-columns:1fr 160px;padding:9px 8px;gap:7px}.hint-card{padding:8px;gap:7px}.hint-card b{font-size:13px}.hint-card span:not(.seed-bag){font-size:11px}.seed-bag{font-size:25px}.help-btn{display:none}.tool-buttons{gap:4px}.tool-btn{padding:2px}.tool-btn img{width:40px;height:35px}.tool-emoji{font-size:24px;line-height:35px}.tool-btn b{font-size:9px}.seed-strip-wrap{padding:8px}.seed-strip{grid-auto-columns:90px;gap:6px}.seed-card{min-width:90px;min-height:108px}.seed-fruit{font-size:38px;height:49px}.bottom-nav{height:88px;padding-left:3px;padding-right:3px}.nav-btn img{height:72px}.panel-screen{padding:10px 10px 106px}.shop-grid,.inventory-grid{grid-template-columns:1fr}.section-title h2{font-size:20px}.shop-ad-card{align-items:stretch}.shop-ad-card button{max-width:165px}.task-item{grid-template-columns:46px minmax(0,1fr) auto;padding:9px}.task-icon{width:46px;height:46px}.task-item h3{font-size:14px}.task-item small{font-size:10px}.task-item button{padding:7px 8px;font-size:11px}}
@media(max-width:390px){.topbar{grid-template-columns:minmax(0,1fr) auto 38px}.profile-meta .brand{font-size:14px}.level-row small{display:none}.currency-strip{display:grid}.currency-pill{min-width:76px;height:34px}.currency-pill .plus{display:none}.gear{width:36px;height:36px}.sky-scene{min-height:790px}.chest-card{width:165px}.right-actions{top:38px}.side-action{width:56px}.side-action img{width:39px;height:39px}.farm-buildings{top:155px;height:245px}.field-zone{top:395px}.tool-panel{grid-template-columns:1fr 142px}.seed-strip{grid-auto-columns:84px}.nav-btn img{height:68px}.shop-ad-card{display:grid}.shop-ad-card button{max-width:none}.task-summary{align-items:flex-start;flex-direction:column}}


/* --- V4 fruit asset + 50 plots compact layout overrides --- */
.app-shell{background:#f3efd9}
.sky-scene{min-height:980px;background:linear-gradient(180deg,#f7f3e6 0%,#f1f7df 100%);border-bottom:0}
.sky-scene:after,.cloud,.hill,.farm-buildings{display:none !important}
.field-zone{top:145px;bottom:14px;left:12px;right:12px;padding:10px;display:flex;flex-direction:column;background:rgba(250,242,215,.96)}
.field-zone:before{inset:7px}
.field-head{padding-bottom:8px}
.plot-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;overflow:auto;padding-right:2px;align-content:start;flex:1}
.plot{border-width:2px;border-radius:10px;min-height:62px}
.empty-seed{font-size:22px}
.growth-stage{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);filter:drop-shadow(0 3px 2px rgba(63,39,16,.18));line-height:1}
.growth-stage.stage-1{font-size:22px}
.growth-stage.stage-2{font-size:28px}
.crop-sprite{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:66%;height:66%;object-fit:contain;filter:drop-shadow(0 5px 3px rgba(63,39,16,.24));transition:.2s}
.plot-name{left:3px;right:3px;top:3px;font-size:8px;line-height:1.15}
.plot-timer{left:3px;right:3px;bottom:3px;padding:2px 3px;font-size:8px;line-height:1.15}
.water-badge{right:3px;top:3px;width:18px;height:18px;font-size:10px}
.seed-fruit{width:52px;height:52px;object-fit:contain;display:block;margin:6px auto 4px;filter:drop-shadow(0 4px 2px rgba(54,31,13,.15))}
.seed-fruit.muted{filter:grayscale(.45) opacity(.7)}
.seed-card{min-height:122px}
.shop-fruit,.inventory-fruit{background:#f4e7bd;display:grid;place-items:center}
.shop-fruit-img,.inventory-fruit-img{width:58px;height:58px;object-fit:contain;display:block}
.offer-crop{width:120px;height:120px;display:grid;place-items:center;margin:auto}
.offer-crop-img{width:100%;height:100%;object-fit:contain;display:block}
#fieldStatus{font-size:15px}
@media(max-width:640px){
  .sky-scene{min-height:860px}
  .field-zone{top:128px;bottom:10px;left:8px;right:8px;padding:8px}
  .plot-grid{gap:4px}
  .plot{min-height:54px}
  .crop-sprite{width:62%;height:62%}
  .growth-stage.stage-1{font-size:18px}
  .growth-stage.stage-2{font-size:23px}
  .plot-name{font-size:7px}
  .plot-timer{font-size:7px}
  .seed-fruit{width:44px;height:44px}
}
@media(max-width:390px){
  .sky-scene{min-height:810px}
  .field-zone{top:122px}
  .plot{min-height:48px}
  .crop-sprite{width:60%;height:60%}
}

/* --- V5 spacing + square brown soil + visible action buttons --- */
.sky-scene{min-height:1120px}
.right-actions{
  right:12px;
  top:42px;
  z-index:18;
  display:flex;
  flex-direction:row;
  gap:8px;
  align-items:flex-start;
}
.side-action{width:68px;min-width:68px}
.field-zone{top:158px;bottom:14px;z-index:8}
.plot-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
  grid-auto-rows:auto;
  gap:12px;
  padding:4px 5px 10px;
  overflow-y:auto;
  overflow-x:hidden;
  align-content:start;
}
.plot{
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:1 / 1;
  border:2px solid #704018;
  border-radius:9px;
  background:#9b6335;
  background-image:linear-gradient(145deg,#ad7846 0%,#92592d 52%,#7c4723 100%);
  box-shadow:inset 0 0 0 2px rgba(255,220,150,.14),0 3px 0 rgba(83,46,18,.2);
}
.plot.selected:after{inset:5px;border-radius:5px;border-color:rgba(186,244,118,.9)}
.empty-seed{font-size:24px;color:rgba(255,245,220,.72)}
.crop-sprite{width:70%;height:70%;top:47%}
.growth-stage{top:47%}
.plot-name{top:5px;font-size:8px}
.plot-timer{left:5px;right:5px;bottom:5px;font-size:8px;padding:3px 2px}

@media(max-width:640px){
  .sky-scene{min-height:1030px}
  .right-actions{right:7px;top:40px;gap:5px;display:flex}
  .side-action{width:54px;min-width:54px;padding:4px 2px}
  .side-action img{width:38px;height:38px}
  .side-action span{font-size:8px}
  .field-zone{top:145px;bottom:10px}
  .plot-grid{gap:8px;padding:3px 3px 8px}
  .plot{min-height:0;border-radius:8px}
  .plot-name{font-size:6px}
  .plot-timer{font-size:6.5px;left:3px;right:3px;bottom:3px}
}

@media(max-width:390px){
  .sky-scene{min-height:990px}
  .chest-card{width:148px}
  .right-actions{right:5px;gap:3px}
  .side-action{width:48px;min-width:48px}
  .side-action img{width:34px;height:34px}
  .side-action span{font-size:7px}
  .field-zone{top:140px}
  .plot-grid{gap:6px}
}

/* --- V5: seed bag assets + strict square plot sizing (no overlap) --- */
.plot-grid{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  grid-auto-rows:var(--plot-size,120px) !important;
  column-gap:10px !important;
  row-gap:10px !important;
  align-items:start !important;
  align-content:start !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:5px 6px 14px !important;
}
.plot{
  width:100% !important;
  height:var(--plot-size,120px) !important;
  min-width:0 !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  margin:0 !important;
  align-self:start !important;
  flex:none !important;
  border:2px solid #704018 !important;
  border-radius:9px !important;
  background:#986033 !important;
  background-image:linear-gradient(145deg,#aa7543 0%,#925a30 52%,#7d4825 100%) !important;
  box-shadow:inset 0 0 0 2px rgba(255,220,150,.13),0 3px 0 rgba(83,46,18,.18) !important;
}
.plot.selected:after{inset:5px !important;border-radius:5px !important}
.seed-fruit{
  width:54px !important;
  height:76px !important;
  object-fit:contain !important;
  display:block !important;
  margin:3px auto 2px !important;
  filter:drop-shadow(0 3px 2px rgba(54,31,13,.14));
}
.seed-fruit.muted{filter:grayscale(.45) opacity(.65) !important}
.seed-card{min-height:142px !important;padding:5px 5px 6px !important}
.seed-card b{font-size:11px !important}
.seed-card .qty{font-size:12px}
.seed-card small{font-size:8px !important}

@media(max-width:640px){
  .plot-grid{column-gap:7px !important;row-gap:7px !important;padding:4px 4px 12px !important}
  .plot{border-radius:7px !important}
  .seed-fruit{width:46px !important;height:66px !important}
  .seed-card{min-height:130px !important}
}
@media(max-width:390px){
  .plot-grid{column-gap:6px !important;row-gap:6px !important}
}

/* --- V6 crop growth assets --- */
.plant-sprite{
  position:absolute;
  left:50%;
  top:48%;
  transform:translate(-50%,-50%);
  object-fit:contain;
  pointer-events:none;
  z-index:1;
  filter:drop-shadow(0 4px 3px rgba(57,34,14,.28));
}
.seedling-stage{
  width:58%;
  height:58%;
}
.growing-stage{
  width:70%;
  height:70%;
  transform:translate(-50%,-48%) scale(.82);
  opacity:.92;
}
.mature-stage{
  width:88%;
  height:88%;
  transform:translate(-50%,-49%);
}
.plot-name,.plot-timer,.water-badge{z-index:4}
@media(max-width:640px){
  .seedling-stage{width:55%;height:55%}
  .growing-stage{width:68%;height:68%}
  .mature-stage{width:86%;height:86%}
}

/* --- V7 Shop seed bag assets --- */
.seed-shop-art{width:70px;height:92px;background:#f7edcf !important;border-radius:14px;overflow:hidden}
.shop-seed-img{width:66px;height:88px;object-fit:contain;display:block;margin:auto;filter:drop-shadow(0 3px 2px rgba(54,31,13,.12))}
@media(max-width:640px){.seed-shop-art{width:70px;height:88px}.shop-seed-img{width:64px;height:82px}}


/* --- V9 loader + premium header icons --- */
.currency-pill{gap:8px;padding:5px 7px;border-radius:18px;box-shadow:0 8px 18px rgba(74,56,25,.16)}
.currency-pill strong{font-size:18px;font-weight:1000;color:#5b3811;letter-spacing:.01em}
.coin-icon,.cash-icon{width:34px;height:34px;display:block;border-radius:50%;background:transparent;box-shadow:0 3px 8px rgba(40,24,7,.14)}
.currency-pill .plus{box-shadow:inset 0 -2px 0 rgba(0,0,0,.12),0 4px 10px rgba(50,112,40,.18)}

.loader-screen{position:fixed;inset:0;z-index:220;display:grid;place-items:center;overflow:hidden;background:linear-gradient(180deg,#77d4f3 0%,#a1e4fb 28%,#f0e9d0 74%,#e7dfbe 100%);transition:opacity .35s ease,visibility .35s ease}
.loader-screen.hidden{opacity:0;visibility:hidden;pointer-events:none}
.loader-screen.is-done .loader-card{transform:translateY(-8px) scale(.98);opacity:.96}
.loader-card{position:relative;width:min(420px,calc(100vw - 28px));padding:28px 22px 24px;border-radius:32px;background:rgba(255,248,230,.95);border:3px solid rgba(255,255,255,.7);box-shadow:0 24px 70px rgba(43,76,93,.18), inset 0 0 0 2px rgba(199,165,97,.28);text-align:center;backdrop-filter: blur(6px)}
.loader-logo{width:min(210px,60vw);height:auto;display:block;margin:0 auto 6px;filter:drop-shadow(0 10px 22px rgba(93,68,20,.18))}
.loader-brand{font-size:31px;line-height:1;font-weight:1000;color:#5a3a14;letter-spacing:.01em}
.loader-subtitle{margin-top:10px;font-size:16px;font-weight:800;color:#628738}
.loader-progress{margin:18px auto 12px;width:100%;height:14px;border-radius:999px;background:#e7d6a8;overflow:hidden;box-shadow:inset 0 3px 7px rgba(92,63,17,.12)}
.loader-progress i{display:block;width:8%;height:100%;border-radius:999px;background:linear-gradient(90deg,#79d544 0%,#4ca639 55%,#f0cf57 100%);position:relative;transition:width .35s ease}
.loader-progress i:after{content:'';position:absolute;top:0;bottom:0;left:-40%;width:36%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent);animation:loaderShine 1.6s linear infinite}
.loader-tip{font-size:12px;line-height:1.5;color:#876b42;max-width:300px;margin:0 auto}
.loader-ring{position:absolute;right:16px;top:16px;width:54px;height:54px;border-radius:50%;border:4px solid rgba(110,193,64,.18);border-top-color:#6fcf43;border-right-color:#f0c54c;animation:loaderSpin 1.8s linear infinite}
.loader-decor{position:absolute;border-radius:999px;background:rgba(255,255,255,.28);filter:blur(2px);animation:loaderFloat 8s ease-in-out infinite}
.loader-deco,.deco-1{width:120px;height:120px;left:-24px;top:18%}
.deco-2{width:88px;height:88px;right:9%;top:12%;animation-delay:-2s}
.deco-3{width:150px;height:150px;right:-34px;bottom:11%;animation-delay:-4.5s}
@keyframes loaderSpin{to{transform:rotate(360deg)}}
@keyframes loaderShine{to{left:118%}}
@keyframes loaderFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@media(max-width:640px){
  .loader-card{padding:24px 18px 20px;border-radius:26px}
  .loader-brand{font-size:28px}
  .loader-subtitle{font-size:15px}
  .loader-progress{height:12px}
  .loader-ring{width:46px;height:46px}
  .coin-icon,.cash-icon{width:30px;height:30px}
}


/* --- V11: mobile header fix + cleaner loader --- */
.topbar{
  padding-left:max(14px, env(safe-area-inset-left));
  padding-right:max(14px, env(safe-area-inset-right));
}
.profile-card{min-width:0;overflow:hidden}
.profile-meta{overflow:hidden}
.brand,#levelText,#activeDaysText{overflow:hidden;text-overflow:ellipsis}
.currency-strip{min-width:0}
.currency-pill{min-width:108px;justify-content:flex-start}
.coin-icon,.cash-icon{flex:0 0 auto}

.loader-screen{
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.7) 0, rgba(255,255,255,0) 18%),
    radial-gradient(circle at 84% 20%, rgba(255,255,255,.55) 0, rgba(255,255,255,0) 15%),
    linear-gradient(180deg,#8ad9ff 0%,#bcecff 34%,#f8f2df 70%,#eedca9 100%);
}
.loader-card{
  width:min(390px, calc(100vw - 28px));
  padding:22px 20px 20px;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,251,240,.98) 0%, rgba(255,245,222,.97) 100%);
  border:2px solid rgba(219,188,115,.72);
  box-shadow:0 18px 45px rgba(61,86,100,.18), inset 0 1px 0 rgba(255,255,255,.95);
}
.loader-ring{display:none}
.loader-logo{width:min(176px,52vw);margin-bottom:10px}
.loader-brand{font-size:28px;color:#4d3317}
.loader-subtitle{margin-top:6px;font-size:15px;color:#688835;font-weight:900}
.loader-progress{height:12px;margin:15px auto 10px;background:#ecdba9;border:1px solid rgba(132,95,37,.12)}
.loader-progress i{background:linear-gradient(90deg,#79cc47 0%,#5aad3d 45%,#f5cf59 100%)}
.loader-tip{font-size:12px;line-height:1.45;color:#8a6b3e;max-width:290px}
.loader-decor{opacity:.8}
.loader-card:before{
  content:'🍉  🍌  🍋';
  display:block;
  font-size:26px;
  letter-spacing:8px;
  margin:0 0 12px;
  animation:loaderBounce 1.6s ease-in-out infinite;
}
@keyframes loaderBounce{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

@media(max-width:640px){
  .topbar{
    height:auto;
    grid-template-columns:minmax(0,1fr) 44px;
    grid-template-areas:
      'profile gear'
      'currency currency';
    gap:8px;
    padding-top:10px;
    padding-bottom:10px;
    align-items:start;
  }
  .profile-card{grid-area:profile; min-height:66px; padding:7px 8px; gap:8px}
  .avatar{width:46px;height:46px;border-radius:14px}
  .brand{font-size:15px}
  .level-row{font-size:11px; gap:6px}
  .level-row small{display:block; font-size:10px}
  .xp-track{margin-top:4px}
  .currency-strip{grid-area:currency; display:grid; grid-template-columns:1fr 1fr; gap:6px; width:100%}
  .currency-pill{min-width:0; width:100%; height:42px; padding:4px 6px; border-radius:15px}
  .currency-pill strong{font-size:16px; min-width:0}
  .coin-icon,.cash-icon{width:30px;height:30px}
  .plus{width:24px;height:24px;border-radius:8px;font-size:16px}
  .gear{grid-area:gear; width:44px; height:44px; align-self:start; justify-self:end}
}

@media(max-width:390px){
  .profile-card{padding:6px 7px}
  .avatar{width:42px;height:42px}
  .brand{font-size:14px}
  .currency-pill{height:40px}
  .coin-icon,.cash-icon{width:28px;height:28px}
  .loader-card{padding:18px 16px 18px; border-radius:24px}
  .loader-brand{font-size:24px}
  .loader-subtitle{font-size:14px}
  .loader-card:before{font-size:22px; letter-spacing:5px}
}
