*{box-sizing:border-box}:root{font-family:'Microsoft YaHei','PingFang SC',sans-serif;color:#36533b;background:#f5f1e5;font-synthesis:none}body{margin:0;background:radial-gradient(ellipse at 15% 0,#e8ecd9,transparent 60%),#f5f1e5}.sprites{position:absolute;width:0;height:0;overflow:hidden}button{font:inherit;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #d49343;outline-offset:2px}button:disabled{cursor:default;opacity:.5}.app{max-width:1240px;padding:24px max(24px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));margin:auto}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.brand{display:flex;gap:12px;align-items:center}.sun-logo{font-size:46px;color:#d5a54e}.brand small{font-size:9px;letter-spacing:3px;color:#81906b}h1{font-size:26px;letter-spacing:4px;margin:4px 0 0}.header-actions{display:flex;align-items:center;gap:8px}.header-actions>span{font-size:10px;color:#8d957d;margin-right:12px}.header-actions button{width:44px;height:44px;border:1px solid #dce1ce;border-radius:50%;background:#fffdf4;color:#537044;font-size:20px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);background:#fffdf5;border:1px solid #e1e4d3;border-radius:17px;padding:16px 25px;margin-bottom:20px;box-shadow:0 5px 0 #e9e7d7}.metrics>div{padding-left:20px;border-left:1px solid #e8eadb}.metrics>div:first-child{padding:0;border:0}small{font-size:11px;color:#869173}.metrics b{display:block;font-size:27px;font-variant-numeric:tabular-nums;margin-top:5px}.metrics em{font-size:12px;color:#9ca383;font-style:normal}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:22px}.farm-scene{background:#b5c78c;border:7px solid #fffdf4;border-radius:20px;overflow:hidden;box-shadow:0 10px 25px #44553710}.landscape{height:143px;background:linear-gradient(#c5dccc,#e2e9c9);position:relative;overflow:hidden}.sun{position:absolute;width:51px;height:51px;background:#f3ce71;border:7px solid #f6dda0;border-radius:50%;top:18px;left:20%}.cloud{position:absolute;top:20px;width:55px;height:14px;border-radius:30px;background:#f3f2df;opacity:.8}.cloud:before{content:'';position:absolute;width:25px;height:25px;background:inherit;border-radius:50%;left:10px;bottom:2px}.c1{left:36%;top:30px}.c2{left:76%;top:22px;transform:scale(.7)}.hill{position:absolute;width:90%;height:160px;border-radius:50% 50% 0 0;bottom:-90px;background:#a0b881;left:-20%}.h2{left:35%;bottom:-105px;background:#8fa76d}.barn{position:absolute;bottom:10px;left:9%;width:100px;height:65px;background:#b87254;border:4px solid #e2be86;box-shadow:0 4px 0 #77915f;background-image:repeating-linear-gradient(90deg,transparent 0 17px,#a9654a 18px 19px)}.roof{position:absolute;top:-36px;left:-13px;width:120px;height:38px;background:#66765a;clip-path:polygon(50% 0,100% 100%,0 100%)}.barn span{position:absolute;bottom:0;left:30px;width:35px;height:44px;background:#79613f;border:3px solid #e4c99b}.barn span:before,.barn span:after{content:'';height:3px;width:38px;background:#d5b989;position:absolute;top:18px;left:-4px;transform:rotate(53deg)}.barn span:after{transform:rotate(-53deg)}.barn i{position:absolute;top:7px;left:8px;width:15px;height:18px;background:#e4dcae;border:2px solid #f4e6c2}.scene-title{position:absolute;left:35%;bottom:31px}.scene-title small{font-size:8px;letter-spacing:2px;color:#5e784d}.scene-title b{display:block;font-size:16px;letter-spacing:2px;margin-top:7px;color:#385333}.tree{position:absolute;right:8%;bottom:12px;width:10px;height:65px;background:#8c7950}.tree i{position:absolute;width:46px;height:51px;border-radius:50%;background:#6e8b4c;top:-10px;left:-17px}.tree i:nth-child(2){left:-28px;top:7px;width:40px;background:#7b9955}.tree i:nth-child(3){left:0;top:8px;width:35px;background:#78934f}.fence{height:16px;background:repeating-linear-gradient(90deg,#e9d6a7 0 12px,transparent 12px 47px);border-top:4px solid #eedcb0;border-bottom:4px solid #d5c393;margin-top:-2px;position:relative}.field{padding:16px 22px;background-color:#b4c88d;background-image:radial-gradient(#9eb87a 1px,transparent 1px);background-size:13px 13px}.field-title{display:flex;justify-content:space-between;font-size:10px;color:#667e4e;margin-bottom:13px}.field-title b{margin-left:7px;font-weight:400}.plots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px}.plot{position:relative;min-height:145px;border:0;border-radius:16px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:7px 4px;isolation:isolate;color:#435c35}.soil{position:absolute;inset:22px 4px 29px;border:5px solid #c19d6c;border-radius:18px;transform:perspective(300px) rotateX(16deg);background:repeating-linear-gradient(170deg,#8d6b45 0 11px,#9f7d53 12px 21px);box-shadow:0 6px 0 #8e784d,0 10px 0 #8aa267;z-index:-1}.plot.locked .soil{background:repeating-linear-gradient(170deg,#a1b67c 0 16px,#a9bd83 17px 28px);border-color:#b9c990;box-shadow:0 5px 0 #8fa368}.plants{display:flex;justify-content:center;align-items:center;width:100%;height:82px;gap:0;position:relative}.plants svg{width:53px;height:68px;filter:drop-shadow(0 3px 0 #674f3920)}.plants svg:nth-child(2){transform:translateY(-8px)}.plot .lock{font-size:28px;line-height:70px;color:#7c925b;font-weight:300}.plot .label{border-radius:15px;background:#f7f1d8;padding:6px 12px;box-shadow:0 2px 0 #8a9c6a;font-size:12px;white-space:nowrap;font-weight:600;min-width:90px}.plot.ready .label{background:#3e6a43;color:#fff7d9}.plot.ready .plants{animation:sway 1.2s ease-in-out infinite alternate}.plot .timer{position:absolute;top:5px;left:50%;transform:translateX(-50%);background:#edf3dc;color:#637a4c;font-size:10px;padding:3px 8px;border-radius:8px;white-space:nowrap}.plot .number{position:absolute;left:12px;top:26px;font-size:9px;color:#f4e6bc;z-index:1}.plot.locked .number{color:#718754}.seed-shelf{margin-top:18px;border:1px solid #d4ddae;background:#e6e9ca;border-radius:12px;padding:12px;display:flex;gap:12px;align-items:center}.shelf-label{font-size:11px;writing-mode:vertical-rl;letter-spacing:3px;color:#7f8e63}#seeds{display:flex;gap:9px;flex:1}.seed{min-height:61px;flex:1;display:flex;align-items:center;justify-content:center;border:1px solid #d1d7b0;border-radius:10px;background:#f4f1d9;color:#677b4b;padding:4px;gap:3px}.seed.active{border:2px solid #7c935c;background:#fcf5d8;box-shadow:0 3px 0 #bbc69d}.seed svg{width:37px;height:42px}.seed b{font-size:11px;display:block}.seed small{font-size:9px;color:#9b9b70}.seed-info{text-align:left}aside{display:flex;flex-direction:column;gap:15px}.order-card,.market{background:#fffcf1;padding:20px;border:1px solid #e1e5ce;border-radius:16px}.card-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#839068}.card-head b{font-size:10px;font-weight:400}.order-card h2{font-size:20px;letter-spacing:1px;margin:13px 0}.needs{display:flex;gap:9px;min-height:78px;margin-bottom:10px}.need{background:#efefda;flex:1;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:5px}.need svg{width:42px;height:40px}.need b{font-size:12px;color:#a09b76}.need.fulfilled b{color:#487447}.primary{background:#426b45;color:#fffbe9;border:0;border-radius:10px;padding:13px 12px;width:100%;min-height:44px;font-weight:600;font-size:12px}.order-note{font-size:9px;display:block;margin-top:9px;text-align:center}.market{padding:16px 18px}.stock-row{display:flex;align-items:center;gap:9px;padding-top:10px}.stock-row svg{width:33px;height:37px}.stock-row>div{flex:1}.stock-row b{font-size:12px}.stock-row small{display:block;font-size:9px;margin-top:3px}.sell{min-height:44px;border:1px solid #d8ddbe;background:#efefdb;border-radius:9px;color:#718052;font-size:11px;padding:7px 10px}.tools{display:flex;align-items:center;text-align:left;border:1px solid #d1d9b9;background:#dfe6cb;border-radius:13px;padding:10px 13px;gap:10px;color:#5e774b}.tools svg{width:43px;height:43px}.tools>span:nth-child(2){flex:1}.tools b{display:block;font-size:13px}.tools small{display:block;font-size:10px;margin-top:5px}.tools>span:last-child{font-size:22px}footer{display:flex;justify-content:space-between;font-size:11px;color:#7c8d66;gap:16px;margin-top:16px}footer small{font-size:9px;letter-spacing:1px;color:#9da58b}dialog{background:#fffbee;color:#3e5b3b;border:1px solid #dfdfc5;border-radius:22px;width:min(460px,calc(100% - 24px));max-height:90dvh;overflow:auto;padding:28px;box-shadow:0 20px 100px #31482750}dialog::backdrop{background:#3b51329c;backdrop-filter:blur(4px)}dialog h2{font-size:28px;letter-spacing:2px;margin:12px 0}dialog p{font-size:12px;color:#83906d;line-height:1.9}.eyebrow{font-size:9px;letter-spacing:3px;color:#b29a5b}.emblem{display:flex;justify-content:center}.emblem svg{height:76px;width:76px}.rules{background:#eeefdc;border-radius:12px;padding:14px;font-size:12px;line-height:2}.primary.large{margin-top:13px;font-size:14px}.secondary,.upgrade{min-height:44px;border:1px solid #dbe0c4;background:#eef0db;color:#667e4d;border-radius:10px;padding:12px;width:100%;margin-top:10px;font:inherit;font-size:12px}.text-btn{display:block;min-height:40px;background:none;border:0;text-decoration:underline;font-size:11px;color:#919b7f;margin:10px auto 0}.upgrade{text-align:left}.upgrade small{display:block;margin-top:5px;font-size:10px}.upgrade span{float:right}.result-stats{display:flex;justify-content:space-around;margin:20px 0}.result-stats b{display:block;font-size:29px;margin-top:7px}.result-stats small{font-size:10px}.modal-tip{padding:10px;background:#f4ead1;border-radius:8px;font-size:11px;color:#a58a53}@keyframes sway{to{transform:translateY(-3px)}}
@media(max-width:760px){.app{padding:12px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}header{margin-bottom:12px}.sun-logo{font-size:35px}.brand{gap:8px}.brand small{font-size:8px;letter-spacing:2px}h1{font-size:22px;letter-spacing:3px}.header-actions>span{display:none}.metrics{padding:12px 16px;margin-bottom:14px;grid-template-columns:repeat(3,1fr)}.metrics>div{padding-left:14px}.metrics .best{display:none}.metrics b{font-size:23px}.game-layout{grid-template-columns:1fr;gap:13px}.farm-scene{border-width:5px}.landscape{height:95px}.sun{width:39px;height:39px;top:10px;left:25%;border-width:5px}.barn{transform:scale(.64);transform-origin:bottom left;left:6%;bottom:4px}.tree{transform:scale(.6);transform-origin:bottom;right:8%;bottom:5px}.scene-title{left:35%;bottom:23px}.scene-title small{font-size:6px;letter-spacing:1px}.scene-title b{font-size:10px;letter-spacing:1px}.hill{bottom:-115px}.h2{bottom:-130px}.field{padding:11px 9px}.field-title{font-size:8px;margin-bottom:8px}.plots{gap:10px 5px}.plot{min-height:112px;padding:5px 1px}.soil{inset:19px 1px 24px;border-width:4px;border-radius:13px}.plants{height:66px}.plants svg{width:32px;height:48px}.plot .label{font-size:10px;min-width:78px;padding:5px 8px}.plot .timer{font-size:8px;top:2px;padding:2px 5px}.plot .number{top:24px;left:8px;font-size:8px}.seed-shelf{margin-top:10px;padding:7px;gap:6px}.shelf-label{font-size:9px;letter-spacing:2px}#seeds{gap:5px}.seed{min-height:50px;gap:0}.seed svg{width:26px;height:32px}.seed b{font-size:10px}.seed small{font-size:8px}aside{display:grid;grid-template-columns:1fr 1fr;gap:10px}.order-card{padding:12px}.card-head{font-size:10px}.order-card h2{font-size:14px;margin:9px 0}.needs{min-height:54px;gap:5px;margin-bottom:8px}.need svg{width:30px;height:30px}.need b{font-size:10px}.primary{font-size:11px;padding:10px 5px}.order-note{font-size:8px;line-height:1.5;margin-top:7px}.market{padding:12px}.market .card-head small{display:none}.stock-row{gap:4px;padding-top:6px}.stock-row svg{width:24px;height:28px}.stock-row b{font-size:10px}.stock-row small{font-size:8px}.sell{font-size:10px;padding:6px;min-height:39px}.tools{grid-column:1/-1;justify-content:space-between;padding:6px 12px}.tools svg{width:33px;height:33px}.tools>span:nth-child(2){display:flex;align-items:center;justify-content:space-between}.tools b{font-size:11px}.tools small{font-size:9px;margin:0}.tools>span:last-child{font-size:19px}footer{margin-top:10px;font-size:10px}footer small{display:none}}
@media(orientation:portrait) and (max-width:760px) and (max-height:900px){.app{padding-top:8px}header{margin-bottom:8px}.metrics{padding:8px 12px;margin-bottom:10px}.metrics b{font-size:20px;margin-top:3px}.metrics small{font-size:10px}.landscape{height:60px}.sun{width:28px;height:28px;top:8px}.barn{transform:scale(.5)}.scene-title small{display:none}.scene-title{bottom:20px;left:32%}.scene-title b{font-size:10px}.tree{transform:scale(.45)}.fence{height:10px;border-width:3px}.field{padding:8px}.field-title{margin-bottom:6px}.plot{min-height:96px}.plants{height:52px}.plants svg{height:42px;width:30px}.plots{gap:7px 5px}.soil{inset:16px 1px 21px;border-width:3px}.plot .label{font-size:10px;padding:4px 6px;min-width:75px}.plot .number{top:19px}.seed-shelf{margin-top:8px;padding:5px}.seed{min-height:44px}.game-layout{gap:10px}.order-card,.market{padding:10px}.order-card h2{margin:7px 0}.needs{min-height:48px;margin-bottom:6px}.need svg{width:26px;height:25px}.order-note{display:none}.stock-row{padding-top:4px}.stock-row small{display:none}.sell{min-height:38px}.tools{padding:4px 10px}.tools svg{width:29px;height:29px}footer{margin-top:7px}}
@media(orientation:portrait) and (max-width:350px){.brand small{font-size:7px}h1{font-size:20px}.seed svg{width:20px}.seed b{font-size:9px}.seed small{font-size:7px}.shelf-label{display:none}.field-title{font-size:7px}.plants svg{width:25px}.plot .label{font-size:9px;min-width:65px}.stock-row svg{width:21px}.stock-row{gap:2px}.stock-row b{font-size:9px}.sell{font-size:9px;padding:5px}.order-card h2{font-size:12px}.primary{font-size:10px}.tools small{font-size:8px}.scene-title b{font-size:9px;letter-spacing:0}.scene-title{left:34%}.need b{font-size:9px}}
@media(orientation:landscape) and (max-height:560px){.app{display:grid;grid-template-columns:185px 1fr;gap:9px 13px;padding-top:8px;padding-bottom:8px}header{margin:0}.brand{gap:5px}.brand small,.header-actions>span{display:none}.sun-logo{font-size:27px}h1{font-size:18px;letter-spacing:1px}.header-actions{gap:4px}.header-actions button{width:32px;height:38px;font-size:16px}.metrics{margin:0;padding:7px 12px;grid-template-columns:repeat(4,1fr)}.metrics .best{display:block}.metrics>div{padding-left:12px}.metrics b{font-size:17px;margin-top:2px}.metrics small{font-size:9px}.metrics em{font-size:10px}.game-layout{grid-column:1/-1;grid-template-columns:minmax(0,1fr) 240px;gap:12px}.farm-scene{border-width:5px}.landscape{height:38px}.barn{transform:scale(.34);transform-origin:bottom left;bottom:2px;left:10%}.sun{width:23px;height:23px;top:4px;border-width:4px}.tree{transform:scale(.3);transform-origin:bottom;bottom:2px}.hill{bottom:-145px}.h2{bottom:-150px}.scene-title{bottom:11px;left:35%}.scene-title small{display:none}.scene-title b{font-size:10px;margin:0;letter-spacing:1px}.fence{height:8px;border-width:2px}.field{padding:7px 9px}.field-title{font-size:8px;margin-bottom:5px}.plots{gap:5px 8px}.plot{min-height:78px;padding:3px}.plants{height:44px}.plants svg{width:34px;height:42px}.soil{inset:13px 2px 18px;border-width:3px;border-radius:12px}.plot .number{top:17px;left:8px;font-size:7px}.plot .label{font-size:10px;min-width:74px;padding:4px 8px}.plot .timer{top:0;font-size:8px;padding:2px 5px}.plot .lock{font-size:23px;line-height:40px}.seed-shelf{margin-top:7px;padding:4px;gap:5px}.shelf-label{font-size:8px;letter-spacing:1px}#seeds{gap:6px}.seed{min-height:42px;gap:2px}.seed svg{width:26px;height:30px}.seed b{font-size:10px}.seed small{font-size:8px}aside{display:grid;grid-template-columns:1fr;gap:6px}.order-card{padding:9px 11px}.card-head{font-size:10px}.order-card h2{font-size:13px;margin:6px 0}.needs{min-height:38px;margin-bottom:6px;gap:5px}.need{flex-direction:row;gap:5px;padding:3px}.need svg{height:28px;width:28px}.need b{font-size:10px}.primary{font-size:11px;min-height:38px;padding:9px}.order-note{display:none}.market{padding:7px 10px}.market .card-head{display:none}#stock{display:flex;gap:4px}.stock-row{padding:0;gap:2px;flex:1;flex-direction:column}.stock-row svg{width:22px;height:22px}.stock-row b{font-size:9px}.stock-row small{display:none}.sell{font-size:9px;min-height:30px;padding:5px 7px}.tools{padding:3px 9px;min-height:38px;gap:6px}.tools svg{width:29px;height:29px}.tools b{font-size:10px}.tools small{font-size:8px;margin:2px 0 0}.tools>span:last-child{font-size:17px}footer{grid-column:1/-1;margin:0;font-size:9px}footer small{display:none}}
@media(orientation:landscape) and (max-height:350px){.app{gap:6px 10px;grid-template-columns:175px 1fr}.game-layout{grid-template-columns:minmax(0,1fr) 218px;gap:9px}.landscape,.field-title{display:none}.field{padding:5px 7px}.plot{min-height:74px}.plants{height:40px}.seed-shelf{margin-top:5px}.seed{min-height:38px}.seed small{font-size:7px}.seed b{font-size:9px}.seed svg{width:22px}.order-card{padding:7px 9px}.order-card h2{margin:4px 0}.needs{min-height:33px;margin-bottom:4px}.tools small{display:none}.tools{min-height:33px}.market{padding:5px 7px}.primary{min-height:35px;padding:7px}footer{display:none}.metrics{padding:6px 10px}.metrics>div{padding-left:9px}.metrics .best{display:none}.metrics{grid-template-columns:repeat(3,1fr)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important}}
@media(orientation:portrait) and (max-width:350px){.landscape{height:44px}.scene-title{bottom:13px}.plot .label{font-size:10px}.seed b{font-size:10px}.stock-row b{font-size:10px}}
@media(orientation:landscape) and (max-height:350px){.stock-row svg{display:none}.order-card h2{margin:3px 0}.stock-row{gap:3px}.market{padding:6px 7px}}
@media(min-width:761px) and (min-height:561px){.landscape{height:128px}}
@media(orientation:portrait) and (max-width:350px){.landscape{height:36px}.plot{min-height:92px}.plots{gap:5px}.app{padding-bottom:6px}}
@media(orientation:landscape) and (min-height:351px) and (max-height:560px){.landscape{height:30px}.plot{min-height:74px}.field-title{display:none}}
@media(orientation:landscape) and (max-height:350px){.app{padding-bottom:4px}}
@media(max-width:760px), (orientation:landscape) and (max-height:560px){.app{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(3px,env(safe-area-inset-bottom))}}
/* Content-stage accessibility: compact layout for short portrait devices. */
@media(orientation:portrait) and (max-width:400px) and (max-height:620px){.app{padding-top:max(5px,env(safe-area-inset-top));padding-bottom:max(3px,env(safe-area-inset-bottom))}header{margin-bottom:6px}.sun-logo{font-size:26px}h1{font-size:18px}.brand small{font-size:7px}.header-actions button{height:38px;width:38px}.metrics{padding:6px 10px;margin-bottom:8px}.metrics b{font-size:18px}.metrics small{font-size:9px}.landscape{display:none}.fence{height:5px}.field{padding:6px}.field-title{font-size:7px;margin-bottom:4px}.plot{min-height:74px}.plants{height:36px}.plants svg{height:34px;width:24px}.soil{inset:12px 1px 19px}.plot .number{top:14px}.plot .timer{font-size:7px}.plot .label{font-size:9px;padding:4px 5px}.plots{gap:5px}.seed-shelf{margin-top:6px;padding:4px}.seed{min-height:40px}.seed svg{height:25px;width:20px}.seed small{font-size:7px}.order-card,.market{padding:8px}.order-card h2{font-size:12px;margin:6px 0}.needs{min-height:39px}.need svg{height:22px}.stock-row{padding-top:3px}.sell{min-height:35px}.tools{padding:3px 8px}.tools svg{width:25px;height:25px}aside{gap:7px}.game-layout{gap:8px}footer{font-size:9px;margin-top:5px}}
@media(orientation:portrait) and (max-width:400px) and (max-height:620px){.plot{min-height:64px}.plants{height:29px}.plants svg{height:28px}.soil{inset:10px 1px 18px}.plot .number{top:11px}}
