
:root{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#244b3e;background:#e8eee5;font-synthesis:none;--ink:#244b3e;--muted:#718174;--paper:#fffdf6;--line:#dfe7d7;--green:#34835d;--gold:#eab557;--mint:#8dd8be;--yellow:#f6ce82;--coral:#efab9e;--lilac:#bbb5e3}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:radial-gradient(ellipse at 15% 20%,#c0d4bb,transparent 50%),radial-gradient(ellipse at 80% 80%,#dae1ce,transparent 60%),#eaf0e5}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #317b59;outline-offset:3px}button{border:0;background:none}button:active:not(:disabled){filter:brightness(.95)}[hidden]{display:none!important}.icon{width:24px;height:24px;flex-shrink:0;vertical-align:middle}.flipped{transform:rotate(180deg)}.shell{position:relative;max-width:480px;height:100dvh;margin:auto;background:var(--paper);overflow:hidden;box-shadow:0 0 70px #284b3d2b}.brand-small{font:700 11px "Trebuchet MS",sans-serif;letter-spacing:1px;opacity:.65}h1,h2,h3,p{margin:0}h1{font-size:25px;line-height:1.4}h2{font-size:23px;line-height:1.45}h3{font-size:17px}small{font-size:11px}.star{width:22px;height:22px;fill:#d9dfd1;stroke:#c7cfbf;stroke-width:1.3}.star.on{fill:#f6c760;stroke:#c28d32}.money{background:#fffdf0;border:1px solid #e2d6aa;border-radius:30px;display:flex;align-items:center;gap:6px;min-height:44px;padding:6px 13px;font-size:15px;box-shadow:0 3px 0 #294a3320}.money .icon{color:#d59b36;width:22px}.round-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7e2cf;border-radius:50%;background:#fffff1e8;box-shadow:0 3px 0 #243e2c18}.round-button .icon{width:21px}.primary,.secondary{border-radius:15px;min-height:47px;padding:12px 19px;font-size:14px;font-weight:700}.primary{background:linear-gradient(#438e64,#2a7450);color:#fffdf1;border:1px solid #28633e;box-shadow:0 4px 0 #20543b}.secondary{background:#f0f4e8;border:1px solid #d4dfc7;box-shadow:0 3px 0 #d8e2cf;color:#42664c}.wide{width:100%;margin:7px 0}.text-button{font-size:12px;min-height:42px;padding:10px 8px;color:#6f8171;text-decoration:underline;text-underline-offset:4px}.fine-print{font-size:11px;line-height:1.9;color:var(--muted);text-align:center;padding:14px 4px}.subtle{color:var(--muted);font-size:13px;line-height:1.8}.eyebrow{display:block;font-size:12px;color:#5f7057;line-height:2.2}.bottom-nav{height:calc(72px + env(safe-area-inset-bottom));padding:5px 10px calc(5px + env(safe-area-inset-bottom));position:absolute;bottom:0;left:0;right:0;background:#fffdf5f5;border-top:1px solid #d5decc;display:grid;grid-template-columns:repeat(4,1fr);z-index:25;backdrop-filter:blur(16px)}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative;color:#97a18b;font-size:11px;border-radius:16px}.bottom-nav .icon{width:23px;height:23px}.bottom-nav button.active{color:#2e7451;background:#e9f1df}.bottom-nav button.active .icon{stroke-width:2.3}.dot{width:7px;height:7px;background:#df946b;border:1px solid #fff;position:absolute;top:5px;right:30%}.world-art{background-image:url('./assets/worlds-2c6fddac6565.webp');background-size:300% 200%;background-position:calc(var(--col)*50%) calc(var(--row)*100%);background-repeat:no-repeat}.map-page{background:#9fb77c}.map-top{position:absolute;top:0;left:0;right:0;height:calc(86px + env(safe-area-inset-top));padding:calc(10px + env(safe-area-inset-top)) 18px 10px;display:flex;align-items:center;gap:10px;background:linear-gradient(#fdfcf0f5,#fdfcf0e8);z-index:24;border-bottom:1px solid #c4d4b6;backdrop-filter:blur(12px)}.map-brand{flex:1}.map-brand h1{font-weight:850;font-size:25px;letter-spacing:1px}.map-ribbon{position:absolute;top:calc(97px + env(safe-area-inset-top));left:14px;right:14px;display:flex;justify-content:space-between;gap:10px;z-index:21;pointer-events:none}.map-ribbon button{pointer-events:auto;display:flex;align-items:center;gap:5px;border:1px solid #fff8;border-radius:14px;background:#fffdefee;box-shadow:0 4px 12px #2e4f3320;padding:9px;font-size:11px;flex-wrap:wrap;max-width:58%}.map-ribbon .icon{width:19px;height:19px;color:#4c8557}.map-ribbon button span{font-size:9px;color:#6e8361}.map-ribbon button:first-child span{flex-basis:100%;padding-left:23px;line-height:.9}.map-scroll{position:absolute;inset:calc(86px + env(safe-area-inset-top)) 0 calc(72px + env(safe-area-inset-bottom));overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}.map-scroll::-webkit-scrollbar{display:none}.map-world{height:2340px;position:relative;isolation:isolate}.art-strips{position:absolute;inset:0;z-index:-3;display:grid;grid-template-rows:repeat(4,1fr)}.art-strips .world-art{width:100%;height:100%}.world-dim{position:absolute;inset:0;z-index:-2;background:#416b3b10;pointer-events:none}.map-world.unexplored .world-dim{background:#e1e7dd87;backdrop-filter:saturate(.55)}.chapter-sign{position:absolute;top:80px;left:12%;right:12%;text-align:center;color:#fffdf0;background:linear-gradient(#315d40ef,#294e38ed);padding:18px 10px 20px;border-radius:8px 8px 35px 35px;border:2px solid #e6d19c;box-shadow:0 6px 0 #25463355;z-index:3}.chapter-sign small{color:#ead8b6;font-size:11px}.chapter-sign h2{font-size:29px;letter-spacing:2px}.chapter-sign p{font-size:11px;opacity:.8;margin-top:5px}.road{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible}.road path{fill:none;stroke-linecap:round;stroke-linejoin:round}.road-edge{stroke:#b7a168;stroke-width:63;opacity:.5}.road-fill{stroke:#f3e6bb;stroke-width:56}.road-center{stroke:#fff8dc;stroke-width:2;stroke-dasharray:4 14;opacity:.45}.level-node{position:absolute;width:66px;height:64px;transform:translate(-50%,-50%);background:linear-gradient(#fff9df,#dfd7b3);border:3px solid #fffff0;border-radius:50%;box-shadow:0 5px 0 #998d65,0 7px 12px #2e4f3945;display:flex;align-items:center;justify-content:center;z-index:4}.level-node>span{font:800 24px "Trebuchet MS",sans-serif;color:#6a7750;text-shadow:0 1px #fff}.level-node.locked{background:linear-gradient(#bdc4b6,#9eaa98);border-color:#d7dfd0;box-shadow:0 4px 0 #7f8d79,0 5px 12px #2e4f392b}.level-node.locked>span{color:#dde5d5;opacity:.85}.level-node.locked .icon{width:20px}.level-node.cleared{background:linear-gradient(#f7d77b,#deb354);border-color:#fff3c9;box-shadow:0 5px 0 #b28c43,0 7px 12px #2e4f3945}.level-node.cleared>span{color:#685027}.level-node.current{width:78px;height:74px;background:linear-gradient(#91cd81,#4d9a5e);border:4px solid #fff4bb;box-shadow:0 5px 0 #34734a,0 0 0 5px #e4cc6d88,0 8px 20px #264c3b80}.level-node.current>span{color:white;text-shadow:0 2px #36774a;font-size:29px}.node-stars{position:absolute;bottom:-12px;left:-5px;right:-5px;display:flex;justify-content:center;gap:0;filter:drop-shadow(0 2px 1px #74572a77)}.node-stars .star{width:21px;height:21px}.you-marker{position:absolute;top:-35px;white-space:nowrap;background:#fffdf0;border-radius:9px;padding:5px 9px;font:700 11px "Microsoft YaHei",sans-serif;color:#35633e;box-shadow:0 2px 5px #31593244}.you-marker:after{content:'';position:absolute;bottom:-5px;left:45%;border:5px solid transparent;border-top-color:#fffdf0;border-bottom:0}.cap-leaf{position:absolute;right:-10px;top:-15px;border-radius:50%;background:#fff2b7;color:#966b26;padding:5px;box-shadow:0 2px 4px #463e2520}.cap-leaf .icon{width:17px;height:17px}.challenge-node:not(.locked){border-color:#efb8a3}.map-garden-sign{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fffbeadd;border:1px solid #fff9;border-radius:12px;padding:9px 13px;font-size:11px;box-shadow:0 3px 5px #31593222}.map-garden-sign .icon{width:18px;height:18px;color:#4c8557}.map-tail{height:230px;background:linear-gradient(#a3be7d,#87aa68)}.map-actions{position:absolute;bottom:calc(83px + env(safe-area-inset-bottom));left:24px;right:24px;z-index:22;pointer-events:none}.map-actions>*{pointer-events:auto}.play-button{margin:auto;max-width:340px;width:100%;min-height:78px;border-radius:24px;border:3px solid #fff3c5;background:linear-gradient(#75b86a,#3c8a53);box-shadow:0 6px 0 #28633f,0 0 0 2px #355b3944,0 12px 25px #28442e50;color:white;display:flex;align-items:center;justify-content:center;gap:12px;text-shadow:0 2px #2b6544;font-size:24px;font-weight:850;letter-spacing:1px}.play-button .icon{width:27px;height:27px;fill:#fff6d6;stroke-width:1;filter:drop-shadow(0 2px #326447)}.play-button small{display:block;font-size:10px;letter-spacing:0;opacity:.85;font-weight:400;text-shadow:none;margin-top:3px}.map-foot{display:flex;justify-content:space-between;align-items:center;padding:10px 4px 0;font-size:10px;color:#fff8dd;text-shadow:0 1px 3px #28442e}.map-foot button{font-size:11px;background:#2e5138ac;border-radius:10px;min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;color:#fff8dd}.page-header{height:104px;padding:18px 22px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e8d8;background:var(--paper);position:absolute;top:0;left:0;right:0;z-index:5}.page-header p{font-size:10px;color:#7b8977;margin-top:3px}.page-scroll{position:absolute;inset:104px 0 calc(72px + env(safe-area-inset-bottom));overflow-y:auto;padding:18px 18px 24px;overscroll-behavior:contain}.section-block{margin:22px 0 6px}.section-heading{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:13px;gap:10px}.section-heading h2{font-size:17px;white-space:nowrap}.section-heading>span{font-size:9px;color:#8a9681;text-align:right;line-height:1.5}.daily-hero{height:178px;border-radius:24px;overflow:hidden;position:relative;isolation:isolate;box-shadow:0 4px 0 #d9e3d1}.daily-hero .world-art{position:absolute;inset:0;z-index:-2}.daily-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#254b3ddd,#254b3d10);z-index:-1}.daily-hero>div:last-child{position:absolute;bottom:18px;left:19px;right:16px;color:#fff9df}.daily-hero small{font-size:10px;opacity:.8}.daily-hero h2{font-size:23px;margin:5px 0 8px;max-width:260px}.daily-hero p{font-size:10px;opacity:.85}.daily-days{display:flex;gap:5px;margin:18px 0 14px}.daily-days button{flex:1;border-radius:11px;min-height:45px;background:#eef2e6;font-size:10px;padding:5px 1px;color:#849075}.daily-days small{display:block;font-size:8px}.daily-days button.active{background:#3b7b54;color:#fff}.daily-list{display:flex;flex-direction:column;gap:12px}.daily-card{display:flex;align-items:center;border:1px solid #e3e8d9;background:#fffefa;border-radius:19px;overflow:hidden;text-align:left;padding:0;box-shadow:0 3px 0 #e3e8d9;min-height:116px}.daily-art{position:relative;width:90px;height:118px;overflow:hidden;flex-shrink:0}.daily-art .world-art{position:absolute;inset:0}.daily-card-copy{padding:12px 8px 12px 14px;flex:1;display:flex;flex-direction:column;gap:5px}.daily-card-copy>small{font-size:9px;color:#81916f}.daily-card-copy>b{font-size:16px}.daily-card-copy em{font-style:normal;font-size:9px;color:#8a9681}.tiny-stars{display:flex}.tiny-stars .star{width:15px;height:15px}.card-arrow{width:25px;align-self:stretch;display:flex;align-items:center;color:#82a26b;padding-right:6px}.card-arrow .icon{width:17px}.rank-entry{display:flex;align-items:center;gap:12px;width:100%;margin:20px 0 26px;padding:17px 14px;background:#edeedb;border-radius:17px;border:1px solid #dbdfc5;text-align:left}.rank-entry>span{flex:1}.rank-entry b{font-size:14px}.rank-entry small{display:block;font-size:9px;color:#889276;margin-top:4px}.rank-entry>.icon:first-child{color:#b29049}.rank-entry>.icon:last-child{width:18px;color:#91a17c}.signin-row{display:flex;gap:4px;margin-bottom:12px}.signin-day{flex:1;text-align:center;padding:9px 2px;background:#f4f1e2;border:1px solid #e8e2ca;border-radius:11px}.signin-day small{display:block;font-size:8px;color:#92886c}.signin-day .icon{color:#d3a24c;width:22px;height:22px;margin:6px 0}.signin-day b{display:block;font:700 12px "Trebuchet MS",sans-serif}.signin-day.done{background:#e3efdf;border-color:#c7ddc1}.signin-day.done .icon{color:#53855b}.task-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid #e6eadf}.task-row b{font-size:12px}.task-row small{display:block;margin-top:6px;font-size:10px;color:#889276}.task-row button{font-size:11px;min-height:35px;padding:8px 13px;box-shadow:none}.locked-feature{min-height:450px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.locked-feature>.icon{width:55px;height:55px;color:#b1bf9b;margin-bottom:20px}.locked-feature p{font-size:12px;color:#89947d;line-height:2;margin:15px 0 24px}.chapter-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:11px;scrollbar-width:none}.chapter-tabs button{flex-shrink:0;font-size:10px;padding:9px 12px;border-radius:13px;background:#edf1e4;color:#859176;min-height:37px}.chapter-tabs button.active{background:#3d7b55;color:#fff}.garden-hero{position:relative;height:280px;overflow:hidden;border-radius:24px;margin:6px 0 20px}.garden-hero>.world-art{position:absolute;inset:0}.garden-overlay{position:absolute;inset:0;padding:18px;color:#fffcef;background:linear-gradient(180deg,#243d3a04 30%,#233e36d9);display:flex;flex-direction:column;justify-content:flex-end}.garden-overlay h2{font-size:27px}.garden-overlay p{font-size:10px;margin-top:5px;opacity:.9}.leaf-balance{position:absolute;right:14px;top:14px;background:#fffbe9ed;border-radius:15px;color:#4e7752;padding:8px 11px;font-size:11px}.leaf-balance .icon{width:17px;height:17px}.scene-list{display:flex;flex-direction:column;gap:14px}.scene-card{display:flex;gap:15px;min-height:160px;padding-bottom:13px;border-bottom:1px solid #e1e6d5}.scene-window{width:43%;max-width:170px;min-height:150px;border-radius:20px;overflow:hidden;position:relative;background:#e3e7d6;flex-shrink:0}.scene-window>.world-art{position:absolute;width:100%;height:300%;top:calc(var(--slice)*-100%);left:0}.scene-card.unbuilt .scene-window{filter:saturate(.25);opacity:.55}.scene-card.built .scene-window{border:2px solid #e6cf91;box-shadow:0 3px 0 #d8cfb0}.scene-window.alternate{filter:sepia(.25) saturate(1.2);box-shadow:inset 0 0 20px #f7d17a}.scene-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;flex:1}.scene-copy>small{color:#9aa58a;font-size:9px}.scene-copy h3{margin:5px 0}.scene-copy p{font-size:10px;color:#8b967d;line-height:1.7;margin-bottom:12px}.scene-copy button{font-size:10px;min-height:35px;padding:8px 12px;border-radius:12px;line-height:1.5}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.shop-item{min-height:155px;background:#f5f2e7;border:1px solid #e6e1cf;border-radius:18px;padding:10px 6px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.shop-item>b{font-size:11px}.shop-item>small{font-size:9px;color:#8b967b}.shop-item.equipped{border:2px solid #6d9b70;background:#e9f1df}.shop-preview{display:flex;align-items:center;justify-content:center;width:65px;height:65px;background:#e5edda;color:#668751;border-radius:17px}.shop-preview.board{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:7px;transform:rotate(-5deg);box-shadow:0 4px 0 #c5d2b6}.shop-preview.board>i{display:flex;justify-content:center;align-items:center;background:#8dd8be;border-radius:6px;font:700 17px "Trebuchet MS",sans-serif;font-style:normal;color:#315e49}.shop-preview.board>i:nth-child(2){background:#f6ce82;color:#805e2b}.shop-preview.board>i:nth-child(3){background:#efab9e;color:#865046}.shop-preview.board>i:nth-child(4){background:#bbb5e3;color:#60517e}.shop-preview.frame{border:5px double #94b485;border-radius:50%;background:#dce9cf}.shop-preview.trail{border-radius:50% 50% 15px 15px;background:#e4dcc4;color:#a58855}.shop-preview .icon{width:34px;height:34px}.honey{--accessory:#c29a4d}.berry{--accessory:#ca8e88}.night{--accessory:#807bb1}.blue{--accessory:#669aaf}.shop-preview.honey,.honey .shop-preview{filter:sepia(.25)}.shop-preview.berry,.berry .shop-preview{background:#eededb}.shop-preview.night,.night .shop-preview{background:#dcdced;color:#807bb1}.profile-card{display:flex;align-items:center;gap:18px;padding:7px 3px 20px}.avatar{width:77px;height:77px;border-radius:50%;background:#e6eed9;border:5px double var(--accessory,#a7ba88);box-shadow:0 4px 0 #d5dec7;display:flex;align-items:center;justify-content:center;color:#79945e}.avatar .icon{width:42px;height:42px}.profile-card h2{font-size:23px}.profile-card .text-button{font-size:10px;min-height:25px;padding:4px 0}.profile-card small{display:block;font-size:9px;color:#8d9881;line-height:1.8}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);background:#eef2e5;border:1px solid #e1e7d5;border-radius:20px;padding:20px 3px}.profile-stats>div{text-align:center;border-right:1px solid #d6dfc9}.profile-stats>div:last-child{border:0}.profile-stats strong{display:block;font:800 27px "Trebuchet MS",sans-serif}.profile-stats span{display:block;font-size:9px;color:#8b977b;margin-top:5px}.achievements{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 5px}.achievement{text-align:center;opacity:.38}.achievement>.icon{width:44px;height:44px;border:1px solid #c8d3bd;background:#edf1e4;padding:9px;border-radius:50%;color:#748c60}.achievement span{display:block;font-size:8px;color:#82906f;margin-top:7px}.achievement.earned{opacity:1}.achievement.earned>.icon{background:#f5e6bc;border-color:#d7b26a;color:#ab7d31;box-shadow:0 3px 0 #e5d3a8}.postcards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.postcard{height:156px;position:relative;overflow:hidden;border:5px solid white;box-shadow:0 3px 12px #3b51361a;border-radius:5px;isolation:isolate;text-align:left;filter:saturate(.2);opacity:.65}.postcard>.world-art{position:absolute;inset:0;z-index:-2}.postcard>span{position:absolute;left:0;right:0;bottom:0;padding:18px 8px 8px;background:linear-gradient(transparent,#254733d9);color:white}.postcard b{font-size:13px;display:block}.postcard small{font-size:8px;line-height:1.7}.postcard.collected{filter:none;opacity:1}.settings-links{margin-top:25px;border-top:1px solid #e1e7d5}.settings-links>button{display:flex;align-items:center;gap:12px;width:100%;padding:17px 3px;border-bottom:1px solid #e3e8d9;font-size:12px;text-align:left}.settings-links>button>.icon{width:20px;color:#8b9e79}.settings-links>button>.icon:last-child{margin-left:auto;width:15px}.game-page{background:radial-gradient(ellipse at 50% 50%,#fffefa,#f5f5e9);display:flex;flex-direction:column;padding-top:env(safe-area-inset-top)}.game-header{height:84px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:8px 18px;gap:10px}.game-header>div{text-align:center;flex:1}.game-header small{font-size:10px;color:#93a084}.game-header h1{font-size:17px;margin-top:4px;white-space:nowrap}.game-header .round-button{width:36px;height:36px;flex-shrink:0;box-shadow:none}.game-header .icon{width:19px}.score-area{margin:8px 25px 10px;display:flex;align-items:center;justify-content:space-between;position:relative;padding-bottom:47px;flex-shrink:0}.score-area>div:first-child>small{font-size:10px;color:#8b967f}.score-area strong{display:block;font:800 41px/1.2 "Trebuchet MS",sans-serif;letter-spacing:-1px;color:#387950}.score-targets{text-align:right}.score-targets .star{width:24px;height:24px}.score-targets>small{font-size:9px;color:#939e84;display:block;max-width:180px;line-height:1.7}.star-track{position:absolute;bottom:22px;left:0;right:0;height:8px;border-radius:5px;background:#e5ead9;box-shadow:inset 0 1px 1px #cad2bb;overflow:visible}.star-track>i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#93bd78,#e7c76b);max-width:100%;transition:width .25s}.milestone{position:absolute;top:-7px;display:flex;flex-direction:column;align-items:center;transform:translateX(-50%)}.milestone.one{left:6%}.milestone.two{left:68%}.milestone.three{left:97%}.milestone .star{width:21px;height:21px}.milestone em{font:10px "Trebuchet MS",sans-serif;color:#8b987b;margin-top:4px}.game-body{margin:auto 18px;flex-shrink:0;position:relative}.tutorial-note{font-size:12px;text-align:center;color:#78916b;line-height:1.7;min-height:22px;margin-bottom:9px}.tutorial-note:empty{min-height:8px;margin:0}.board-meta{display:flex;justify-content:space-between;align-items:center;font-size:10px;padding:0 4px 8px;gap:6px}.board-meta>b{color:#7c916e}.board-meta>span{font-size:10px;color:#9ca489;text-align:right}.board-shell{position:relative;border-radius:26px;padding:13px;background:linear-gradient(135deg,#dce6cd,#e5eadb);border:1px solid #c4d1b5;box-shadow:inset 0 2px 3px #fff8,0 6px 0 #cad6ba,0 12px 25px #50683c14}#board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;touch-action:manipulation}.piece{border:1px solid #ffffff80;border-bottom:4px solid #00000019;border-radius:12px;font:800 30px "Trebuchet MS",sans-serif;aspect-ratio:1;min-width:0;padding:0;position:relative;touch-action:manipulation;box-shadow:inset 0 1px 1px #ffffff88,0 1px 1px #35552e15}.piece[data-value="1"],.ghost-piece[data-value="1"],.challenge-mini>[data-value="1"],.rules-example>span[data-value="1"]{background:#8dd8be;color:#27604d}.piece[data-value="2"],.ghost-piece[data-value="2"],.challenge-mini>[data-value="2"]{background:#f6ce82;color:#7d5a25}.piece[data-value="3"],.ghost-piece[data-value="3"],.challenge-mini>[data-value="3"]{background:#efab9e;color:#844c43}.piece[data-value="4"],.ghost-piece[data-value="4"],.challenge-mini>[data-value="4"]{background:#bbb5e3;color:#5e4e83}.piece[data-value="0"]{background:#d7e1c922;border-color:transparent;box-shadow:inset 0 1px 2px #76896005;cursor:default}.piece:disabled{opacity:1}.piece.connected{box-shadow:0 0 0 2px #346d4a,0 4px 0 #2b54352a;filter:brightness(1.06);z-index:1}.piece.hinted{outline:3px dashed #2b754a;outline-offset:2px}.piece:active:not([data-value="0"]){transform:scale(.93)}.gain-burst{position:absolute;top:35%;left:0;right:0;text-align:center;pointer-events:none;z-index:10;color:#306a43;font:800 32px "Trebuchet MS",sans-serif;text-shadow:0 2px #fff,-2px 0 #fff,2px 0 #fff,0 -2px #fff;opacity:0}.game-message{min-height:53px;max-width:370px;margin:14px auto 0;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1.8;text-align:center;color:#819273;padding:0 10px}.game-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;flex-shrink:0;margin:13px 40px 10px}.game-tools>button{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10px;color:#889779}.game-tools>button>.icon{width:45px;height:45px;background:#eff3e5;border:1px solid #d4dfc4;border-radius:16px;padding:10px;box-shadow:0 3px 0 #d5dfc7;color:#779460}.game-tools>button.selected>.icon{background:#dbeacd;border-color:#78a56c;color:#417d4e}.game-save{text-align:center;font-size:9px;color:#a3ac93;min-height:26px;flex-shrink:0;margin-bottom:calc(5px + env(safe-area-inset-bottom));padding:0 14px}.preview-layer{position:absolute;inset:13px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;z-index:4;pointer-events:none;background:#eff2e2ad;backdrop-filter:blur(1px)}.ghost-piece{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:12px;font:800 25px "Trebuchet MS",sans-serif;opacity:.78;border:2px dashed #3c6e4844}.ghost-piece[data-value="0"]{opacity:0}.preview-actions{display:flex;justify-content:center;gap:10px;margin:0 0 6px}.preview-actions>button{min-height:35px;font-size:11px;padding:8px 14px}.high-contrast .piece:not([data-value="0"]){border:2px solid #305d42;border-bottom-width:4px;font-weight:900;text-shadow:0 1px #ffffff90}.high-contrast .game-message,.high-contrast .subtle{color:#435c3a}body[data-skin="honey"] .board-shell{background:#e9dfbc;border-color:#c6b67d}body[data-skin="berry"] .board-shell{background:#e7d6d2;border-color:#cda99f}body[data-skin="night"] .board-shell{background:#4f5674;border-color:#3e4562}body[data-skin="night"] .piece[data-value="0"]{background:#68719055}
.modal{border:1px solid #d5dfc7;border-radius:28px;padding:30px 25px 24px;width:calc(100% - 38px);max-width:400px;max-height:calc(100dvh - 55px);overflow-y:auto;color:var(--ink);background:#fffdf5;box-shadow:0 20px 70px #173a3660;text-align:center}.modal::backdrop{background:#24443872;backdrop-filter:blur(5px)}.modal.large{max-width:450px}.modal-x{position:absolute;right:10px;top:10px;width:32px;height:32px;border-radius:50%;color:#97a48b;background:#eff3e6;display:flex;align-items:center;justify-content:center}.modal-x .icon{width:17px;height:17px}.modal h2{font-size:23px;margin:7px 0 13px}.modal>p{font-size:12px;line-height:1.9;color:#65755e;margin:12px 0 18px}.modal>p b{color:#526e45}.modal-symbol{height:67px;width:67px;margin:4px auto 14px;border-radius:24px;background:#e8f0dd;display:flex;align-items:center;justify-content:center;color:#75965a}.modal-symbol .icon{width:33px;height:33px}.modal-symbol.gold{background:#f4e7c4;color:#b38b44}.modal-links{display:flex;align-items:center;justify-content:center;gap:15px;margin:13px 0 0}.modal-links>button{font-size:11px;min-height:37px;color:#809474;padding:6px}.large-stars,.ending-stars{display:flex;justify-content:center;gap:7px;margin:17px 0}.large-stars .star{width:41px;height:41px}.ending-stars{margin:20px 0 9px;gap:9px}.ending-stars .star{width:57px;height:57px;filter:drop-shadow(0 4px 0 #dcb45c33)}.ending-stars .star:nth-child(2){transform:translateY(-10px)}.ending .ending-sprig{display:flex;justify-content:center;margin-top:6px;color:#8ca974}.ending-sprig .icon{width:32px;height:32px;transform:rotate(-12deg)}.ending h2{font-size:27px;margin:4px 0 0}.ending-score strong{font:800 48px "Trebuchet MS",sans-serif;color:#3c7f53;display:block}.ending-score span{font-size:10px;color:#9aa688}.reward-line{font-size:11px;background:#f5edd7;color:#aa8a4c;border:1px solid #eee1be;border-radius:13px;display:flex;justify-content:center;align-items:center;padding:11px 8px;margin:15px 0}.reward-line .icon{width:17px;height:17px;margin-right:4px}.leaf-line{display:flex;align-items:center;justify-content:center;font-size:11px;color:#7c9469;gap:5px;margin:15px 0}.leaf-line .icon{width:18px}.chapter-grid{display:grid;gap:10px;grid-template-columns:1fr 1fr}.chapter-choice{height:175px;position:relative;overflow:hidden;border-radius:18px;text-align:left;isolation:isolate}.chapter-choice>.world-art{position:absolute;inset:0;z-index:-1}.chapter-choice>span{position:absolute;bottom:0;left:0;right:0;padding:30px 9px 11px;background:linear-gradient(transparent,#244a38e8);color:white}.chapter-choice b{display:block;font-size:16px}.chapter-choice small{font-size:8px;opacity:.8}.modal-preview{margin:6px auto 18px;width:95px;height:95px;border-radius:23px}.modal-preview.board{grid-template-columns:1fr 1fr;gap:6px;padding:10px}.modal-preview.board>i{font-size:23px}.modal-preview .icon{width:54px;height:54px}.modal-preview.frame{border:6px double #9eb786;border-radius:50%}.preference-list{border-top:1px solid #e3e8d8;margin-top:18px}.preference-list>label{display:flex;align-items:center;justify-content:space-between;padding:15px 2px;border-bottom:1px solid #e3e8d8;font-size:13px}.preference-list input{accent-color:#44825a;width:22px;height:22px}.input{width:100%;border:1px solid #d7dfc9;background:#f5f6ed;border-radius:13px;padding:13px;margin:10px 0;font-size:13px;resize:vertical}.rank-tabs{display:flex;gap:10px;margin:10px 0}.rank-tabs button{flex:1;padding:10px 5px;border-radius:12px;background:#edf1e3;color:#849475;font-size:12px}.rank-tabs button.active{background:#3d7f55;color:#fff}.rank-content{min-height:120px}.rank-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e7ebdd;text-align:left;padding:14px 5px}.rank-row>strong{font:700 22px "Trebuchet MS",sans-serif;color:#b79a5f;min-width:23px;text-align:center}.rank-row>div{flex:1}.rank-row b{font-size:12px}.rank-row small{display:block;font-size:9px;color:#929e82;margin-top:4px}.rank-row> b{font:700 20px "Trebuchet MS",sans-serif;color:#47734c}.rank-row.self{background:#edf3e3;border-radius:12px}.empty-rank{text-align:center;padding:20px 8px}.empty-rank>.icon{width:43px;height:43px;color:#99af83;margin-bottom:12px}.empty-rank h3{font-size:17px;margin-bottom:8px}.empty-rank p{font-size:11px;color:#909b80;line-height:1.8}.rules-example{display:flex;gap:5px;align-items:center;justify-content:center;flex-wrap:wrap;margin:15px 0}.rules-example>span{width:29px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;font:700 18px "Trebuchet MS",sans-serif}.rules-example>b{font-size:11px;color:#8b967d;margin-right:3px}.challenge-mini{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;max-width:220px;margin:15px auto 20px;padding:8px;background:#e5ebdc;border-radius:16px}.challenge-mini>i{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font:700 16px "Trebuchet MS",sans-serif;border-radius:6px}.challenge-mini>i[data-value="0"]{opacity:0}#toast{position:fixed;bottom:110px;left:50%;max-width:380px;width:max-content;max-width:calc(100% - 44px);transform:translate(-50%,20px);background:#284d3bef;color:#fffbed;padding:13px 20px;border-radius:15px;font-size:12px;line-height:1.7;opacity:0;pointer-events:none;z-index:1000;transition:opacity .16s,transform .16s;text-align:center;box-shadow:0 6px 20px #244e3433}#toast.show{opacity:1;transform:translate(-50%,0)}.boot{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f5f7ec;gap:14px}.boot>.icon{width:60px;height:60px;color:#81a663}.boot h1{font-size:24px}.boot p{color:#98a288;font-size:12px}@media(min-width:700px){.shell{height:min(980px,100dvh);border-left:1px solid #ffffff70;border-right:1px solid #ffffff70}.map-world{height:2340px}.modal{margin:auto}}@media(max-height:760px){.game-header{height:68px}.score-area{margin:3px 22px 4px;padding-bottom:42px}.score-area strong{font-size:35px}.game-body{margin:3px 24px}.tutorial-note{font-size:11px;min-height:18px;margin-bottom:5px}.game-message{min-height:42px;margin-top:10px;font-size:11px}.game-tools{margin:10px 40px 7px;gap:10px}.game-tools>button>.icon{width:39px;height:39px;padding:8px}.game-save{min-height:20px;font-size:8px;margin-bottom:3px}.board-shell{padding:11px;border-radius:22px}#board{gap:6px}.preview-layer{inset:11px;gap:6px}}@media(max-width:360px){.map-top{padding-left:14px;padding-right:14px;gap:8px}.map-brand h1{font-size:22px}.money{padding:5px 10px;font-size:13px}.round-button{width:36px;height:36px}.map-ribbon{left:10px;right:10px}.map-ribbon button{font-size:10px;padding:8px}.map-ribbon button span{font-size:8px}.map-actions{left:21px;right:21px}.play-button{min-height:72px;font-size:22px}.page-header{padding-left:17px;padding-right:17px}.page-header h1{font-size:23px}.page-scroll{padding-left:13px;padding-right:13px}.daily-art{width:76px}.daily-card-copy{padding-left:10px}.daily-card-copy>b{font-size:14px}.daily-hero h2{font-size:21px}.game-header{padding:8px 12px}.game-header h1{font-size:15px}.game-body{margin-left:13px;margin-right:13px}.score-area{margin-left:19px;margin-right:19px}.piece{font-size:25px;border-radius:9px}.board-shell{padding:10px;border-radius:19px}#board{gap:5px}.preview-layer{inset:10px;gap:5px}.ghost-piece{font-size:23px;border-radius:9px}.game-tools{margin-left:25px;margin-right:25px}.scene-card{gap:12px}.scene-window{width:41%;min-height:136px}.scene-copy p{font-size:9px}.scene-copy button{font-size:9px;padding:8px 9px}.scene-copy h3{font-size:16px}.shop-grid{gap:7px}.shop-item{min-height:143px}.shop-item>b{font-size:10px}.section-heading>span{font-size:8px}.modal{padding:28px 20px 21px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:360px){.game-body{margin-left:8px;margin-right:8px}.board-shell{padding:8px}#board{gap:4px}.preview-layer{inset:8px;gap:4px}}
@media(max-height:740px){.game-page{overflow-y:auto}.game-body{margin-top:4px;margin-bottom:3px}.game-tools{margin-top:10px}.game-save{padding-bottom:8px}}
.garden-hero>.world-art,.daily-hero>.world-art,.postcard>.world-art,.chapter-choice>.world-art{background-size:300% auto}.scene-window>.world-art{height:150%;top:calc(var(--slice)*-25%)}
.map-landmark{position:absolute;width:78px;height:82px;border:2px solid #fff4cb;border-radius:18px;background:#f8f4d9df;box-shadow:0 4px 0 #6a7e4344;overflow:hidden;z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#819761}.map-landmark>.icon{width:31px;height:31px;opacity:.55}.map-landmark>.world-art{position:absolute;inset:0;background-size:300% auto}.map-landmark>small{position:absolute;bottom:0;left:0;right:0;padding:5px 1px;text-align:center;font-size:9px;background:#fff9e4e8;color:#5d7850}.map-landmark.site{border-style:dashed;border-color:#f9f4d1a0;background:#eff1d5a3;box-shadow:none}.map-landmark.landmark-built{border-color:#ffedab;box-shadow:0 0 0 3px #f2d36a44,0 5px 0 #7e986766}.level-node.locked>span{font-size:22px;color:#e9efdf}
body[data-trail="berry"] .road-center{stroke:#d99198;stroke-width:8;stroke-dasharray:1 23;opacity:.75}body[data-trail="blue"] .road-center{stroke:#88adb1;stroke-width:10;stroke-dasharray:8 17;opacity:.75}body[data-trail="honey"] .road-center{stroke:#c5a456;stroke-width:9;stroke-dasharray:1 21;opacity:.8}body[data-trail="night"] .road-center{stroke:#a39ad4;stroke-width:9;stroke-dasharray:1 20;opacity:.8}body[data-skin="mint"] .board-shell{background:#cde4d9;border-color:#9fbfb0;box-shadow:inset 0 2px 6px #ffffffe0,0 6px 0 #a9c6b7,0 12px 25px #50683c14}.avatar{border-width:3px;border-style:solid}.avatar:not(.natural){border-width:5px;border-style:double}.avatar.mint{border-color:#82ad83;background:#dfedcf}.avatar.blue{border-color:#669aaf}.avatar.honey{border-color:#c29a4d}.avatar.night{border-color:#807bb1}

/* New-player readability and comfortable touch targets */
.tutorial-note{color:#496c4a;line-height:1.65}.game-message{color:#56724c}.round-button{min-width:44px;min-height:44px}.modal-links button,.text-button{min-height:44px}.game-tools>button{min-height:60px}.build-reminder{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:12px;font-size:12px}.build-reminder .icon{width:20px;height:20px}

/* Keep the complete tool labels inside short screens. */
.milestone.three{left:100%}
@media(max-height:740px){
 .game-header{height:60px}
 .score-area{margin-top:0;margin-bottom:0;padding-bottom:36px}
 .score-area strong{font-size:30px}
 .game-body{width:calc(100% - 16px);max-width:min(360px,calc(100dvh - 290px));margin:3px auto}
 .game-tools{margin:6px 24px 3px}
 .game-tools>button{min-height:54px;gap:4px}
 .game-tools>button>.icon{width:36px;height:36px;padding:7px}
 .game-save{padding-bottom:4px}
}
