/* Layered garden pieces share a single transparent atlas, bundled for offline play. */
.illustrated-garden{position:relative;aspect-ratio:3/2;width:100%;height:auto;isolation:isolate;overflow:hidden;border-radius:18px;background:#244b3b url('assets/garden-base-v1.jpg') center/cover no-repeat;box-shadow:inset 0 0 0 1px #f2ddaa42,0 12px 25px #163b3422;margin:16px auto}
.garden-sprite{display:block;aspect-ratio:1;background-image:url('assets/garden-pieces-v1.png');background-size:400% 400%;background-position:var(--sprite-x) var(--sprite-y);background-repeat:no-repeat;pointer-events:none}
.illustrated-garden>.garden-sprite{position:absolute;filter:drop-shadow(2px 6px 3px #172c2850);transform-origin:50% 90%}
.illustrated-garden .garden-tree{width:43%;left:10%;top:5%;z-index:2;animation:garden-breeze 7s ease-in-out infinite alternate}
.illustrated-garden .garden-detail{width:29%;left:63%;top:28%;z-index:3}
.illustrated-garden .garden-water{width:46%;left:35%;top:38%;z-index:1}
.illustrated-garden .garden-flowers{width:26%;left:10%;top:56%;z-index:4}
.illustrated-garden .just-planted{animation:piece-planted .9s cubic-bezier(.2,.7,.2,1) both}
.pond-ripple{position:absolute;width:12%;height:3%;border:1px solid #f6e7a160;border-radius:50%;left:53%;top:81%;z-index:2;animation:pond-ripple 4s ease-out infinite;pointer-events:none}
.lantern-glow{position:absolute;left:70%;top:45%;width:14%;height:15%;border-radius:50%;background:radial-gradient(#ffdd7c55,transparent 70%);mix-blend-mode:screen;z-index:4;animation:lantern-glow 3s ease-in-out infinite alternate;pointer-events:none}
.garden-firefly{position:absolute;z-index:5;width:3px;height:3px;border-radius:50%;background:#ffe8a4;box-shadow:0 0 8px 3px #f3c84e70;animation:firefly-drift 6s ease-in-out infinite alternate}.firefly-one{left:54%;top:31%}.firefly-two{left:26%;top:66%;animation-delay:-3s}
.garden-collection{display:flex;justify-content:space-between;font-size:12px;color:#697557;margin:8px 0 12px;gap:10px}.garden-instruction{margin:8px 0!important;font-size:13px!important}.garden-item-preview{width:82px;height:82px;flex:none;padding:0;background:radial-gradient(#dde1bd,#edead4);box-shadow:none;border:1px solid #d6ceb2;border-radius:15px;overflow:hidden}.garden-item-preview .garden-sprite{width:100%;height:100%}.garden-option{background:#fffbeb99;border-color:#d7cba9;box-shadow:0 4px 12px #3b56320a}.garden-option.equipped{border-color:#91a279;background:#e4ebd4}.garden-option .reward-button{border-radius:8px;background:linear-gradient(#e8d6a6,#d1b77a);color:#3d4930;border:1px solid #c4ab73}.garden-option.equipped .reward-button{border-color:transparent}.garden-tabs{position:sticky;top:-2px;z-index:6;padding:8px 0;background:#f5efdfed;backdrop-filter:blur(6px);border-radius:10px}.garden-tabs button{box-shadow:inset 0 1px #fff7e5;border:1px solid #c6c5a15c}.garden-tabs button[aria-pressed=true]{background:linear-gradient(#547653,#31553c);border-color:#73865d;box-shadow:inset 0 1px #b7d39b44}.garden-modal-head h2{font-size:30px}
.garden-card .illustrated-garden{border-radius:12px;margin:17px 0}.win-rewards+.win-garden{max-height:none;overflow:visible}.win-garden .illustrated-garden{width:180px;height:120px;max-height:none;margin:10px auto}.planting-guide .planting-scene .illustrated-garden{width:270px;max-width:100%;height:auto;max-height:none;aspect-ratio:3/2;margin:12px auto}.native-app .planting-guide .planting-scene .illustrated-garden{width:210px;height:auto}.garden-scene-light{position:absolute;inset:0;background:linear-gradient(135deg,#ffe9a70c,transparent 45%);pointer-events:none}
.journey-title h2{margin-bottom:8px}.journey-title p{margin-top:8px}.region-shortcuts{display:flex;gap:8px;margin:18px 0}.region-shortcuts button{flex:1;min-height:44px;border-radius:12px;background:#dedfc4;border:1px solid #b4bf96;color:#3c543b}.region-shortcuts button.current{background:#365b40;color:#ffedbd;border-color:#9fac72}.journey-atlas{display:grid;gap:20px}.journey-region{position:relative;isolation:isolate;overflow:hidden;border:1px solid #d0bf87;border-radius:20px;background-image:url('assets/journey-regions-v1.jpg');background-size:200% 300%;background-position:var(--region-x) var(--region-y);color:#fff4d3;box-shadow:0 6px 18px #1c3b2826;scroll-margin-top:12px}.journey-region:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#092c24d9,transparent 43%,#103b2440 75%,#092c24d4)}.region-heading{padding:20px 22px 0}.region-heading>span{font-size:10px;letter-spacing:1.3px;color:#e8d28c}.region-heading h3{font:29px var(--serif);margin:6px 0 3px;color:#fff3cf;text-shadow:0 2px 6px #092f22}.region-heading p{font-size:12px!important;color:#e3e6c5!important;margin:0!important}.region-trail{position:relative;height:260px;margin:0 14px}.region-trail>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none}.trail-shadow{stroke:#2f482d80;stroke-width:14;stroke-linecap:round}.trail-line{stroke:#efcf85;stroke-width:4;stroke-dasharray:2 11;stroke-linecap:round}.path-node{position:absolute;transform:translate(-50%,-50%);width:62px;height:80px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:none;padding:0;overflow:visible;opacity:1!important}.node-disc{width:50px;height:50px;display:grid;place-items:center;font-size:22px;font-weight:700;background:linear-gradient(145deg,#fcf1c9,#c3a25b);border:2px solid #ffebae;border-radius:50%;color:#345135;box-shadow:inset 0 2px #fff9d9,0 4px #7a6738,0 8px 10px #163e2955}.node-stars{min-height:19px;font-size:11px;line-height:19px;font-weight:700;letter-spacing:1px;color:#fff1bc;text-shadow:0 2px 3px #163c20;background:#24442f9c;border-radius:12px;margin-top:7px;padding:0 6px;white-space:nowrap}.path-node.current .node-disc{outline:2px solid #fff4bc;outline-offset:5px;box-shadow:inset 0 2px #fff9d9,0 4px #7a6738,0 0 24px #ffe995bd}.path-node.complete .node-disc{background:linear-gradient(#7b9b62,#345940);color:#fff0bd;border-color:#bdd393;box-shadow:inset 0 2px #c4dc8f80,0 4px #1f432c,0 8px 10px #163e2955}.path-node.locked .node-disc{background:linear-gradient(#77886c,#465b47);border-color:#899a79;color:#c8cdae;box-shadow:inset 0 2px #b3b89750,0 4px #274233}.node-lock{display:block;position:relative;width:16px;height:14px;border-radius:3px;background:#c4caa4;margin-top:7px}.node-lock:before{content:'';position:absolute;left:3px;top:-9px;width:10px;height:12px;border:2px solid #c4caa4;border-radius:8px}.node-firefly{position:absolute;top:2px;right:0;width:22px;height:22px;border-radius:50%;background:#fcdf83;color:#82571c;box-shadow:0 0 8px #ffe7a8;line-height:22px}.region-reward{padding:0 20px 17px;text-align:center;color:#f6dfa2;font-size:11px;letter-spacing:.3px}.journey-play{position:sticky;bottom:-10px;z-index:8;box-shadow:0 -5px 20px #f6efdc90!important}
@keyframes garden-breeze{from{transform:rotate(-.35deg)}to{transform:rotate(.35deg)}}@keyframes piece-planted{0%{opacity:0;transform:scale(.45) translateY(15px)}65%{opacity:1;transform:scale(1.05) translateY(-3px)}100%{transform:scale(1)}}@keyframes firefly-drift{from{opacity:.25;transform:translate(0,0)}to{opacity:1;transform:translate(9px,-14px)}}@keyframes pond-ripple{from{opacity:.7;transform:scale(.3)}to{opacity:0;transform:scale(1.5)}}@keyframes lantern-glow{from{opacity:.5}to{opacity:1}}
@media(max-width:650px){.region-heading{padding:16px 16px 0}.region-heading h3{font-size:25px}.region-trail{height:240px;margin-inline:12px}.garden-item-preview{width:72px;height:72px}.garden-option{gap:14px}.garden-tabs{gap:4px}.garden-modal-head h2{font-size:27px}.illustrated-garden{border-radius:15px}}
@media(prefers-reduced-motion:reduce){.illustrated-garden *{animation:none!important}}
.reduce-motion .illustrated-garden *{animation:none!important}
.rescue-objective{flex:none;display:flex;align-items:center;gap:9px;width:100%;padding:8px 12px;margin:0 0 7px;background:linear-gradient(115deg,#3c6044,#254c3e);border:1px solid #c4aa63;border-radius:12px;text-align:left;color:#fce6ae;box-shadow:inset 0 1px #f5dfa425;min-height:48px}.rescue-emblem{font-size:26px;text-shadow:0 0 13px #e9c461}.rescue-objective>span:nth-child(2){flex:1}.rescue-objective strong{display:block;font-size:12px;font-weight:600}.rescue-objective small{display:block;font-size:11px;color:#d7dfbd;margin-top:2px}.rescue-objective>span:last-child{border:1px solid #d3c38b7a;border-radius:50%;height:20px;width:20px;text-align:center;font-size:12px;line-height:18px}.rescue-objective[data-state=missed]{border-color:#94a58a;color:#e1e7d1}.rescue-objective[data-state=rescued]{background:linear-gradient(115deg,#657746,#355d41);border-color:#e3ca7e}.firefly-marker{position:absolute;top:-6px;right:-5px;width:20px;height:20px;border-radius:50%;background:radial-gradient(#fff2bb,#dfaf41);color:#77531c;text-align:center;line-height:20px;font-size:15px;border:1px solid #fff5ca;z-index:4;box-shadow:0 0 9px #f5d57399;pointer-events:none}.moonlit .tile.rescue-tile:before{border:2px dotted #b88b24}.rescue-result{font-size:12px!important;color:#6e702f!important}.native-app .rescue-objective{padding:5px 10px;min-height:44px;margin-bottom:5px}.native-app .rescue-emblem{font-size:24px}.native-app.large-text .rescue-objective strong{font-size:13px}.native-app.large-text .rescue-objective small{font-size:12px}

/* Crop each wide painted region to its card without stretching the artwork. */
.journey-region{background-image:none;background-color:#254b39}.journey-region:after{content:"";position:absolute;top:0;left:50%;height:100%;width:auto;aspect-ratio:9/4;transform:translateX(-50%);z-index:-2;background-image:url("assets/journey-regions-v1.jpg");background-size:200% 300%;background-position:var(--region-x) var(--region-y);pointer-events:none}
