@charset "UTF-8";
:root{--pine:#244c39;--green:#397653;--ink:#294437;--muted:#728174;--cream:#fcfcf2;--line:#e0e6d8;--gold:#d49b38;--shadow:0 10px 40px #294b3820;font-family:"Noto Sans TC","Microsoft JhengHei","PingFang TC",sans-serif;color:var(--ink);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#dfebdf}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.53}button:focus-visible{outline:3px solid #dfa84c;outline-offset:3px}button svg{pointer-events:none}svg{width:24px;height:24px;display:block;flex-shrink:0}button{touch-action:manipulation}h1,h2,h3,p{margin:0}button,aside{user-select:none}button{border:0}strong{font-weight:700}small{font-size:.875rem} [hidden]{display:none!important}
#farm-app{height:100%;height:100dvh;position:relative;overflow:hidden}#farm-canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 120px #466b3010}
.brand{position:absolute;top:max(28px,env(safe-area-inset-top));left:32px;display:flex;align-items:center;gap:12px;pointer-events:none}.brand-mark{height:48px;width:48px;background:var(--pine);border-radius:16px;display:grid;place-items:center;box-shadow:0 5px 15px #163b3520;color:#edf1bb}.brand-mark svg{height:29px;width:29px}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:700;color:#69806c;line-height:1.6}.brand h1{font-family:"Noto Serif TC","PMingLiU",serif;font-size:25px;letter-spacing:3px;line-height:1.3;font-weight:800}.edition{margin-left:2px;border:1px solid #6e846b40;border-radius:20px;padding:4px 8px;font-size:11px;color:#627764;letter-spacing:1px}
.wallet{position:absolute;right:32px;top:max(32px,env(safe-area-inset-top));display:flex;align-items:center;gap:9px;background:#fffff0e8;border:1px solid #fff9;border-radius:25px;padding:9px 16px;box-shadow:0 5px 20px #2e482a0b;font-size:14px}.wallet strong{font-variant-numeric:tabular-nums;font-size:18px;min-width:24px}.coin-icon{width:25px;height:25px;background:#e8b657;box-shadow:inset 0 0 0 2px #f5cf77;border:1px solid #c98d29;border-radius:50%;color:#886019;font-size:14px;font-family:Georgia,serif;font-weight:bold;display:grid;place-items:center}.wallet-divider{height:20px;width:1px;background:#dce2cf;margin:0 5px}.wallet svg{color:#b68b37;width:20px;height:20px}.weather-label{font-size:13px}
.objective{position:absolute;top:109px;left:32px;width:304px;padding:15px 17px 12px;border-radius:19px;background:#fffff2ee;border:1px solid #fff9;box-shadow:var(--shadow);backdrop-filter:blur(10px)}.objective-top{display:flex;align-items:center;gap:7px;font-size:11px;color:#819078;letter-spacing:1px}.tiny-leaf svg{width:14px;height:14px}.objective-step{margin-left:auto;font-size:10px;letter-spacing:.3px}.objective-action{background:none;text-align:left;padding:10px 0 11px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}.objective-action strong{display:block;font-size:16px;line-height:1.5}.objective-action small{display:block;margin-top:3px;font-size:12px;color:#71816d;line-height:1.65}.go-icon{width:31px;height:31px;flex-shrink:0;background:#e8eddb;border-radius:50%;display:grid;place-items:center}.go-icon svg{width:17px;height:17px}.journey{display:flex;gap:5px}.journey span{height:4px;background:#e2e8d8;flex:1;border-radius:4px}.journey span.done{background:#6f9970}
.camera-tools{position:absolute;right:30px;bottom:132px;display:flex;flex-direction:column;gap:2px;padding:5px;background:#fffff2ed;border:1px solid #fff9;border-radius:17px;box-shadow:var(--shadow)}.camera-tools button{width:42px;height:42px;border-radius:12px;background:transparent;display:grid;place-items:center}.camera-tools button:hover{background:#e6eddf}.camera-tools svg{width:20px;height:20px}.tool-divider{height:1px;background:var(--line);margin:3px 9px}
.dock{position:absolute;bottom:max(33px,calc(env(safe-area-inset-bottom) + 14px));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:5px;background:#fcfcf2f2;padding:9px 14px;border:1px solid #fff;border-radius:25px;box-shadow:0 10px 35px #31523d2b;backdrop-filter:blur(12px)}.dock button{background:transparent;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:72px;height:65px;border-radius:17px;font-size:12px;font-weight:600;color:#72816c;transition:background .18s,color .18s}.dock button:hover{background:#e9efdf;color:#315a40}.dock button.active{background:var(--pine);color:#f5f5df}.dock button.active::after{content:"";height:3px;width:13px;border-radius:3px;background:#d3df9e;position:absolute;bottom:4px}.dock svg{height:24px;width:24px}.dock-divider{width:1px;height:32px;background:var(--line);margin:0 5px}.dock i{position:absolute;width:7px;height:7px;border:2px solid var(--cream);background:#dda042;border-radius:50%;top:8px;right:18px}.control-hint{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);font-size:11px;letter-spacing:.6px;color:#678167;white-space:nowrap;pointer-events:none}.save-hint{position:absolute;bottom:27px;left:32px;color:#728974;font-size:10px;letter-spacing:.7px;pointer-events:none}
.world-labels{position:absolute;inset:0;pointer-events:none}.world-pin{position:absolute;transform:translate(-50%,-100%);display:flex;align-items:center;gap:5px;background:#fffff0ef;color:#345742;box-shadow:0 3px 8px #314d301a;border:1px solid #fff8;border-radius:9px;padding:5px 9px;font-size:11px;font-weight:600;white-space:nowrap;pointer-events:auto;min-height:30px}.world-pin::after{content:"";position:absolute;width:5px;height:5px;background:inherit;bottom:-3px;left:calc(50% - 2px);transform:rotate(45deg)}.world-pin svg{width:13px;height:13px}.world-pin.ready{background:#47754e;color:#fffce9;border-color:#658e56}.world-pin.selected{box-shadow:0 0 0 2px #e1b153}.world-pin.building{font-size:11px;letter-spacing:1px}
.panel{position:absolute;right:28px;top:100px;width:330px;max-height:calc(100dvh - 235px);border-radius:23px;background:#fffef5f7;border:1px solid #ffffffe0;box-shadow:0 16px 55px #244d3929;z-index:12;overflow:hidden;display:flex;flex-direction:column;backdrop-filter:blur(18px);animation:panel-in .18s ease-out}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:22px 23px 13px}.panel h2{font-size:22px;letter-spacing:1px;font-family:"Noto Serif TC","PMingLiU",serif}.icon-button{background:#eaf0e3;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}.icon-button svg{width:17px;height:17px}.panel-body{padding:0 23px 23px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.panel-handle{display:none}.panel-intro{font-size:13px;line-height:1.8;color:#7a8771;margin-bottom:16px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.field-choice{border:1px solid var(--line);background:#f4f5e8;border-radius:13px;text-align:left;display:flex;align-items:center;gap:9px;padding:12px 10px;font-size:13px;min-height:64px}.field-choice svg{color:#67945c}.field-choice small{display:block;color:#839078;font-size:11px;margin-top:3px}.field-choice.ready{border-color:#81a66b;background:#eaf1da}.primary,.secondary,.danger{min-height:46px;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:13px;padding:12px 14px;font-weight:700;font-size:14px}.primary{background:var(--green);color:#ffffec;box-shadow:0 4px 10px #315b3720}.primary:hover:not(:disabled){background:#2e6446}.secondary{background:#eaf0df;color:#3e6545;margin-top:9px}.danger{background:#f4e7de;color:#9b6045;margin-top:9px}.primary svg,.secondary svg{width:19px;height:19px}.seed-card{border:1px solid var(--line);background:#f6f7eb;padding:13px;border-radius:15px;margin:9px 0;display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:center}.seed-card h3{font-size:15px}.seed-card p{font-size:12px;color:#869078;line-height:1.9}.seed-card button{grid-column:1/-1;min-height:42px}.item-art{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#e8eed7}.item-art svg{width:31px;height:31px;color:#6d8b45}.item-art.carrot{background:#f4e6cc;color:#ca7c40}.item-art.carrot svg{color:#ca7c40}.item-art.egg{background:#f5edda}.item-art.basket{background:#e7e5c9}.panel-hero{height:86px;border-radius:15px;background:linear-gradient(135deg,#eef1df,#e3ead3);display:flex;align-items:center;justify-content:center;margin:0 0 15px;position:relative;overflow:hidden}.panel-hero svg{height:62px;width:62px;color:#77995f}.panel-hero::after{content:"";height:90px;width:90px;border:1px solid #fff8;border-radius:50%;position:absolute;right:40px;top:35px}.phase-label{font-size:12px;color:#829174;display:flex;justify-content:space-between;margin:12px 0 7px}.progress-track{height:7px;background:#e3e9d7;border-radius:7px;overflow:hidden;margin-bottom:15px}.progress-fill{height:100%;background:#83a66a;transition:width .3s linear;border-radius:7px}.resource-row{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #e5eadb;font-size:13px}.resource-row .name{flex:1}.resource-row svg{width:22px;height:22px;color:#87996e}.resource-row strong{font-variant-numeric:tabular-nums;font-size:14px}.resource-row .enough{color:#4d8054}.resource-row .missing{color:#aa7448}.ingredients{margin:8px 0 16px}.note{font-size:12px;color:#849078;line-height:1.8;margin:12px 0}.reward{display:flex;align-items:center;justify-content:space-between;background:#f2edda;padding:12px 13px;border-radius:12px;font-size:12px;color:#8b784a;margin:15px 0}.reward strong{font-size:19px;color:#a27c2d}.inventory-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.inventory-item{background:#f0f3e5;border-radius:15px;display:flex;align-items:center;flex-direction:column;padding:17px 10px;gap:7px}.inventory-item svg{height:33px;width:33px;color:#8d9d64}.inventory-item strong{font-size:24px}.inventory-item span{font-size:12px;color:#7c896f}.instruction-list{padding:0;list-style:none;font-size:13px;line-height:1.8;color:#6e806a}.instruction-list li{padding:8px 0;border-bottom:1px solid var(--line)}.setting-row{display:flex;align-items:center;justify-content:space-between;margin:14px 0;font-size:14px}.toggle{background:#e7eddd;border-radius:9px;padding:7px 11px;font-size:13px;min-height:40px}.settings-muted{font-size:11px;color:#849178;line-height:1.8;margin-top:16px}.toast{position:absolute;left:50%;bottom:136px;transform:translate(-50%,10px);opacity:0;pointer-events:none;background:#234d3eea;color:#fffde8;padding:12px 20px;border-radius:16px;box-shadow:var(--shadow);font-size:14px;max-width:min(480px,85vw);z-index:30;text-align:center;transition:opacity .2s,transform .2s;line-height:1.6}.toast.show{opacity:1;transform:translate(-50%,0)}.celebration{position:absolute;inset:0;pointer-events:none;z-index:20}.confetti{position:absolute;width:8px;height:13px;top:20%;left:50%;border-radius:2px;animation:confetti 1.7s ease-out forwards}.boot,.render-error{position:absolute;inset:0;background:#e8eee2;z-index:40;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px;text-align:center;gap:17px}.boot h2,.render-error h2{font-family:"PMingLiU",serif;letter-spacing:2px;font-size:24px}.boot p,.render-error p{font-size:14px;color:#6d8169;line-height:1.8}.boot-leaf{width:72px;height:72px;border-radius:24px;background:#355e44;color:#e7edb5;display:grid;place-items:center;animation:breathe 1.8s infinite}.boot-leaf svg{width:40px;height:40px}.render-error button{max-width:280px}.finished-note{padding:13px;border:1px solid #d7e2c9;border-radius:12px;background:#eef3e1;color:#5b7a4d;font-size:13px;line-height:1.8;margin-bottom:14px}.keyboard-note{font-size:11px;color:#829079;margin-top:10px}.back-link{background:none;font-size:12px;color:#6e8963;padding:0 0 12px;min-height:34px}
@keyframes panel-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes breathe{50%{transform:translateY(-5px)}}@keyframes confetti{to{transform:translate(var(--dx),var(--dy)) rotate(var(--rot));opacity:0}}
@media(max-width:1000px){.save-hint{display:none}.objective{width:270px}.panel{width:304px;right:20px}.brand{left:22px}.objective{left:22px}.wallet{right:22px}.camera-tools{right:20px}}
@media(max-width:650px){.brand{top:max(17px,env(safe-area-inset-top));left:17px;gap:8px}.brand-mark{width:37px;height:37px;border-radius:12px}.brand-mark svg{width:23px;height:23px}.brand h1{font-size:20px;letter-spacing:2px}.brand .eyebrow{font-size:8px;letter-spacing:1.8px}.edition{display:none}.wallet{top:max(19px,env(safe-area-inset-top));right:16px;padding:7px 11px;gap:6px}.wallet strong{font-size:16px}.coin-icon{width:22px;height:22px;font-size:12px}.wallet-divider,.wallet #weather-icon,.weather-label{display:none}.objective{top:74px;left:16px;width:calc(100% - 32px);padding:10px 13px 9px;border-radius:15px}.objective-top{font-size:10px}.objective-step{font-size:10px}.objective-action{padding:5px 0 8px}.objective-action strong{font-size:14px}.objective-action small{font-size:11px;margin-top:1px;max-width:calc(100vw - 100px);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.go-icon{width:28px;height:28px}.journey span{height:3px}.camera-tools{right:13px;bottom:calc(116px + env(safe-area-inset-bottom));border-radius:14px;padding:3px}.camera-tools button{width:37px;height:37px}.camera-tools svg{width:18px;height:18px}.dock{bottom:max(26px,calc(env(safe-area-inset-bottom) + 11px));gap:1px;padding:6px 8px;border-radius:21px;max-width:calc(100% - 24px)}.dock button{width:clamp(49px,14.9vw,66px);height:57px;font-size:11px;border-radius:14px;gap:4px}.dock svg{width:22px;height:22px}.dock-divider{margin:0 3px;height:27px}.control-hint{bottom:max(8px,calc(env(safe-area-inset-bottom) - 7px));font-size:9px;letter-spacing:.2px}.panel{left:10px;right:10px;top:auto;bottom:calc(104px + env(safe-area-inset-bottom));width:auto;max-height:min(47dvh,400px);border-radius:22px;backdrop-filter:blur(16px)}.panel-handle{display:block;height:4px;width:34px;min-height:4px;background:#d6dec9;border-radius:3px;margin:9px auto 0}.panel-head{padding:10px 18px 10px}.panel h2{font-size:21px}.panel .eyebrow{font-size:9px}.panel-body{padding:0 18px 18px}.panel-intro{font-size:12px;margin-bottom:10px}.seed-card{display:grid;grid-template-columns:38px 1fr auto;padding:10px;gap:8px}.seed-card .item-art{width:36px;height:36px}.seed-card .item-art svg{width:25px;height:25px}.seed-card button{grid-column:auto;width:94px;font-size:12px;min-height:42px;padding:8px}.seed-card h3{font-size:14px}.seed-card p{font-size:11px}.panel-hero{height:55px;margin-bottom:9px}.panel-hero svg{height:44px;width:44px}.toast{bottom:calc(115px + env(safe-area-inset-bottom));font-size:13px;width:max-content;max-width:90vw}.panel:not([hidden])~.dock{z-index:15}.world-pin{font-size:10px;padding:5px 7px;min-height:28px}.world-pin.building{font-size:10px}.panel-open .camera-tools{opacity:0;pointer-events:none}.phase-label{margin:8px 0 5px}.progress-track{margin-bottom:10px}.ingredients{margin:5px 0 10px}.resource-row{padding:8px 0}.reward{margin:10px 0;padding:10px}.note{margin:9px 0}.inventory-item{padding:12px 8px}.field-choice{min-height:53px;padding:9px 10px}}
@media(max-height:550px) and (min-width:651px){.objective{top:81px;width:245px;padding:10px 13px}.brand{top:17px}.wallet{top:20px}.brand-mark{width:38px;height:38px}.brand h1{font-size:21px}.panel{top:78px;bottom:20px;max-height:none;width:290px}.panel-head{padding:14px 18px 10px}.panel-body{padding:0 18px 18px}.dock{left:23px;transform:none;bottom:22px;padding:5px 7px}.dock button{width:52px;height:54px;font-size:10px}.dock svg{width:21px;height:21px}.control-hint{left:24px;transform:none;bottom:6px;font-size:9px}.camera-tools{right:17px;bottom:26px}.panel-open .camera-tools{display:none}.toast{bottom:100px}.save-hint{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

@media(max-width:650px){.world-pin:not(.building){font-size:10px;min-height:22px;padding:3px 6px;gap:0;border-radius:7px}.world-pin:not(.building) svg{display:none}}

.brand,.wallet,.objective{z-index:3}.world-labels{z-index:1}.camera-tools,.dock{z-index:5}

@media(max-height:550px) and (min-width:651px){.objective{width:215px}.objective-action small,.objective-step{display:none}.panel-open .objective{display:none}}
