/* Approved Storyland tones; the clay scene is bounded, the page chrome stays native. */
#library-forest-panel{margin-top:30px}.forest-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 15px}.forest-heading h2{font-size:clamp(26px,3vw,36px);color:#355e43;letter-spacing:-.06em;margin:8px 0}.forest-heading p:last-child{font-size:15px;color:#69573f;margin:8px 0}.forest-daily{background:#e9eedc;border-radius:16px;padding:12px 18px;font-weight:700;white-space:nowrap;color:#315d43}.forest-help{font-size:12px;line-height:1.9;color:#75806e;margin:12px 0 20px}#forest-status{color:#526e4e;font-size:13px;line-height:1.8}#forest-status:empty{display:none}.forest-garden{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:26px;overflow:hidden;background:#f9f0df}.forest-tree{position:relative;aspect-ratio:1;background-image:url('/assets/story-forest/garden-cotton-butter-v165.webp');background-size:300% 100%;background-repeat:no-repeat;isolation:isolate}.forest-tree.gru{--leaf:#78995d;--leaf-light:#b7ca8d;--leaf-dark:#567747;--tree-center:62%;background-position:0 0}.forest-tree.piki{--leaf:#efa374;--leaf-light:#ffd0a2;--leaf-dark:#cb8058;--tree-center:50%;background-position:50% 0}.forest-tree.pikong{--leaf:#f4d77d;--leaf-light:#fff0b5;--leaf-dark:#d7ad45;--tree-center:40%;background-position:100% 0}.forest-leaf{position:absolute;width:10%;height:6.5%;border-radius:78% 28% 75% 28%;background:linear-gradient(140deg,#fffdf1,#f6ebd1);border:1px solid color-mix(in srgb,var(--leaf),transparent 35%);box-shadow:inset 1px 1px 3px #fff9,0 2px 1px #82684125;transform:translate(-50%,-50%) rotate(var(--angle));z-index:2}.forest-leaf.filled{background:linear-gradient(135deg,var(--leaf-light),var(--leaf) 60%,var(--leaf-dark));border-color:transparent;box-shadow:inset 1px 1px 3px #fff6,0 2px 2px #4d5a3030}.forest-tree.changed .forest-leaf.filled{animation:forest-leaf-grow .5s ease-out both}.forest-tree-sign{position:absolute;z-index:3;left:var(--tree-center);bottom:5%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;width:max-content;max-width:90%}.forest-tree-sign strong{font-size:17px;background:#f3dab0;border:1px solid #ddbd86;padding:7px 13px;border-radius:11px;color:#67492d;box-shadow:0 3px 4px #654e2522;white-space:nowrap}.forest-tree-sign>span{border-radius:9px;background:#fff8e5;padding:4px 14px;font-weight:700;color:#315d43;font-size:15px}.forest-tree-select{font-size:11px;padding:6px 11px;border-radius:9px;background:#fff8e5;color:#315d43;min-height:32px}.forest-tree-select[aria-pressed=true]{background:#507650;color:#fff8eb;opacity:1}.forest-tree-select:disabled{opacity:1}.forest-rewards{margin-top:38px;text-align:center}.forest-rewards>h3{font-size:clamp(21px,2.7vw,30px);color:#355e43;letter-spacing:-.04em;margin:0 0 12px}.forest-rewards>p{font-size:14px;color:#7b6a52;line-height:1.8}.forest-reward-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}.forest-reward{border:1px solid #e5d7be;background:#fffcf5;border-radius:22px;padding:20px 16px;display:flex;flex-direction:column;align-items:center;min-width:0}.forest-reward-tag,.forest-condition{border-radius:20px;padding:7px 12px;background:#e8eedc;color:#4c6640;font-size:12px;font-weight:700}.forest-reward.piki .forest-reward-tag,.forest-reward.piki .forest-condition{background:#fae4cf;color:#885b3f}.forest-reward.pikong .forest-reward-tag,.forest-reward.pikong .forest-condition{background:#edf0cb;color:#65723c}.forest-product{aspect-ratio:1;width:70%;margin:20px auto 10px;justify-self:center;overflow:hidden;border-radius:12px;background:#fff}.forest-product img{width:100%;height:100%;object-fit:contain;display:block}.forest-reward h4{font-size:17px;color:#5b4630;line-height:1.5;margin:12px 0 6px;word-break:keep-all}.forest-reward p{font-size:13px;line-height:1.85;color:#796b58;margin:6px 0 16px;flex:1}.forest-reward>a{font-size:11px;color:#71806a;margin:12px 0;text-underline-offset:3px}.forest-claim{font-size:12px;padding:11px 8px;line-height:1.5;width:100%;border-radius:11px}.forest-claim:disabled{background:#edf0e5;color:#74826d;opacity:1}.forest-read-action{text-align:center;margin:30px 0}.forest-read-action a{padding:14px 32px}.forest-rules{padding:26px 28px;border-radius:22px;background:#edf0e2;margin-top:30px}.forest-rules>h3{text-align:center;color:#365e42;font-size:24px;letter-spacing:-.05em;margin:0 0 8px}.forest-rules>p{text-align:center;font-size:13px;color:#7a785f}.forest-rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:20px}.forest-rule-grid>div+div{border-left:1px solid #c6d0b6;padding-left:30px}.forest-rule-grid h4{color:#426345;font-size:15px;margin:0 0 12px}.forest-rule-grid ul{padding-left:19px;margin:0;font-size:12px;line-height:2;color:#676f5b}.forest-rule-grid li{padding:2px 0}.forest-rule-notes{border-top:1px solid #ccd4bc;margin-top:20px;padding-top:12px;color:#7a7d68;font-size:11px;line-height:1.9}.forest-claim-panel{background:#f0f3e6;border:1px solid #c9d4bb;border-radius:18px;padding:22px;margin-top:24px}.forest-claim-panel h3{color:#315d43}.forest-claim-panel p,.forest-claim-panel label{font-size:13px;line-height:1.9}.forest-claim-panel label{display:flex;align-items:center;gap:8px;margin:18px 0}.forest-claim-panel input{width:19px;height:19px;accent-color:#315d43}.forest-claim-panel button{margin-right:10px}.forest-complete-note{font-size:12px;color:#426345}.forest-admin-list{display:grid;gap:12px}.forest-admin-item{padding:18px;border:1px solid #dce3d3;border-radius:14px;background:#fffdf8}.forest-admin-item p{font-size:13px;line-height:1.7;margin:5px 0}.forest-admin-item button{margin-top:10px}.forest-admin{margin-top:30px;padding-top:24px;border-top:1px solid #dce3d7}.forest-admin>p{font-size:13px;line-height:1.8}.forest-admin h2{font-size:25px}
@keyframes forest-leaf-grow{from{opacity:.3;scale:.8}to{opacity:1;scale:1}}@media(prefers-reduced-motion:reduce){.forest-tree.changed .forest-leaf.filled{animation:none}}
@media(max-width:700px){.library-section-tabs{gap:5px}.library-section-tabs a{padding:13px 14px;font-size:12px;white-space:nowrap}.forest-heading{gap:10px;align-items:flex-start}.forest-daily{font-size:12px;padding:10px 12px;margin-top:32px}.forest-heading p:last-child{font-size:13px}.forest-garden{grid-template-columns:1fr;gap:12px;background:transparent;border-radius:0}.forest-tree{border-radius:22px;overflow:hidden;aspect-ratio:1.03;max-height:450px;min-height:280px}.forest-tree-sign strong{font-size:19px}.forest-tree-select{font-size:13px;min-height:40px}.forest-tree-sign>span{font-size:17px}.forest-reward-grid{grid-template-columns:1fr}.forest-reward{display:grid;grid-template-columns:110px 1fr;gap:7px 16px;padding:20px;text-align:left}.forest-reward-tag{grid-column:1/-1;width:max-content}.forest-product{grid-column:1;grid-row:2/6;align-self:center;margin:8px 0}.forest-reward h4,.forest-reward p,.forest-reward .forest-condition,.forest-reward>a{grid-column:2;margin:0}.forest-reward h4{font-size:15px;margin-top:8px}.forest-reward p{font-size:12px}.forest-reward .forest-condition{width:max-content;font-size:11px;padding:5px 10px}.forest-reward>a{margin-top:3px}.forest-claim{grid-column:1/-1;margin-top:12px}.forest-rules{padding:23px 20px}.forest-rules>h3{font-size:21px}.forest-rule-grid{grid-template-columns:1fr;gap:20px}.forest-rule-grid>div+div{border-left:0;border-top:1px solid #c6d0b6;padding:20px 0 0}.forest-rule-grid ul{font-size:12px}.forest-rewards>p{font-size:12px}.forest-claim-panel{padding:18px}.forest-reward p br{display:none}}
@media(max-width:360px){.library-section-tabs a{padding:12px 9px;font-size:11px}.forest-daily{padding:9px;font-size:11px}.forest-reward{grid-template-columns:86px 1fr;gap:7px 10px;padding:16px}.forest-heading h2{font-size:25px}}

.forest-leaf-bank{display:flex;align-items:center;gap:15px;padding:18px 22px;margin:16px 0 10px;border-radius:18px;background:#edf1e1;color:#3e6546}.forest-leaf-bank strong{font-size:17px}.forest-leaf-bank b{font-size:24px;color:#315d43;margin:0 4px}.forest-leaf-bank p{font-size:12px;line-height:1.7;margin:5px 0 0;color:#718168}.forest-bank-leaf{width:32px;height:23px;flex:0 0 32px;border-radius:80% 22% 75% 22%;background:linear-gradient(140deg,#c6d99a,#85a56b);box-shadow:inset 1px 1px 3px #fff5,0 2px 3px #52663c20;transform:rotate(-20deg)}.forest-tree-select:not(:disabled){background:#507650;color:#fff8eb}.forest-tree-select:disabled{background:#fff7e3;color:#69785d;opacity:1}@media(max-width:700px){.forest-product{width:70%;margin:8px auto}.forest-leaf-bank{padding:16px;gap:12px}.forest-leaf-bank strong{font-size:15px}.forest-leaf-bank b{font-size:21px}}

/* Approved cotton canopies: empty slots are small buds; earned leaves remain dynamic. */
.forest-leaf{width:4.7%;height:4.7%;border-radius:72% 7% 64% 48%;background:linear-gradient(140deg,#fffced 12%,#f5efcb 62%,#e1dca9);border:0;box-shadow:inset 2px 2px 3px #fff9,inset -1px -1px 2px #b7ae7633,1px 2px 3px #8b733b30;transform:translate(-50%,-50%) rotate(-45deg);}
.forest-leaf.filled{width:8%;height:6.7%;border-radius:78% 28% 75% 28%;transform:translate(-50%,-50%) rotate(var(--angle));background:linear-gradient(135deg,var(--leaf-light),var(--leaf) 62%,var(--leaf-dark));box-shadow:inset 1px 1px 3px #fff7,0 3px 4px #715e282b;}
.forest-tree.piki .forest-leaf:not(.filled){background:linear-gradient(140deg,#fff8ed 12%,#ffe6ce 62%,#efc9a3)}
.forest-tree.pikong .forest-leaf:not(.filled){background:linear-gradient(140deg,#fffbed 12%,#fff0c5 62%,#eacf87)}
.forest-tree-sign{bottom:4%;gap:4px}.forest-tree-sign strong{border-radius:15px;background:linear-gradient(#f9e6c1,#edcf98);box-shadow:inset 0 2px 2px #fff7,0 3px 4px #654e2522}
.forest-reward.pikong .forest-reward-tag,.forest-reward.pikong .forest-condition{background:#fff0bf;color:#80632b}

/* Fixed organic positions: no aligned rows; bud/leaf tilt and size vary gently. */
.forest-leaf{transform:translate(-50%,-50%) rotate(calc(-45deg + var(--bud-tilt,0deg))) scale(var(--leaf-scale,1))}
.forest-leaf.filled{transform:translate(-50%,-50%) rotate(var(--angle)) scale(var(--leaf-scale,1))}

/* Depth and quiet motion; approved garden, characters, positions and counts stay intact. */
.forest-garden{border:1px solid #fff9;box-shadow:0 16px 26px -16px #605b3566,0 5px 10px -7px #8d743b55,inset 0 2px 2px #fff9;position:relative}
.forest-tree::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(circle at 13% 62%,#fff5ba 0 2px,transparent 4px),radial-gradient(circle at 86% 31%,#fffbe7 0 1.5px,transparent 3.5px),radial-gradient(circle at 76% 77%,#fff6c2 0 2px,transparent 4px);animation:forest-garden-glimmer 7s ease-in-out infinite;opacity:.35}
.forest-tree.piki::after{animation-delay:-2.4s}.forest-tree.pikong::after{animation-delay:-4.8s}
.forest-leaf{box-shadow:inset 2px 2px 3px #fff9,inset -2px -2px 2px #b7ae7644,2px 4px 4px #6c5a3a38;transform-origin:50% 85%}
.forest-leaf::after{content:'';position:absolute;left:17%;top:12%;width:30%;height:32%;border-radius:70%;background:#fff9;filter:blur(.5px);pointer-events:none}
.forest-leaf.filled{background:linear-gradient(135deg,var(--leaf-light) 5%,var(--leaf) 48%,var(--leaf-dark) 94%);box-shadow:inset 2px 3px 3px #fff8,inset -2px -3px 3px #50602b30,3px 6px 5px #4c492d4a;animation:forest-leaf-breeze 5.5s ease-in-out infinite;animation-delay:var(--breeze-delay,0s)}
.forest-leaf.filled::before{content:'';position:absolute;left:48%;top:20%;height:64%;width:1px;background:#ffffff45;transform:rotate(28deg);border-radius:100%;pointer-events:none}
.forest-tree.changed .forest-leaf.filled{animation:forest-leaf-breeze 5.5s ease-in-out infinite;animation-delay:var(--breeze-delay,0s)}
.forest-tree .forest-leaf.fresh,.forest-tree.changed .forest-leaf.filled.fresh{z-index:4;animation:forest-leaf-arrive .7s cubic-bezier(.2,.8,.25,1) both,forest-leaf-breeze 5.5s .7s ease-in-out infinite}
.forest-tree-sign strong{box-shadow:inset 0 2px 2px #fff9,inset 0 -3px 1px #b58b4833,0 4px 0 #b7986155,0 7px 8px #654e2535}
.forest-tree-sign>span{box-shadow:0 3px 0 #d7c99b66,0 5px 6px #6e5b3020}
.forest-tree-select{transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.forest-tree-select:not(:disabled){box-shadow:inset 0 1px 1px #fff7,0 3px 0 #325632,0 5px 6px #40552d30}
.forest-tree-select:not(:disabled):active{transform:translateY(2px);box-shadow:inset 0 1px 1px #fff5,0 1px 0 #325632}
@media(hover:hover){.forest-tree-select:not(:disabled):hover{transform:translateY(-2px);filter:brightness(1.07);box-shadow:inset 0 1px 1px #fff7,0 5px 0 #325632,0 7px 9px #40552d35}}
@keyframes forest-leaf-breeze{0%,100%{rotate:-2deg;translate:0 0}50%{rotate:3deg;translate:0 -1.5px}}
@keyframes forest-leaf-arrive{0%{opacity:0;scale:.2;translate:0 -24px;rotate:-16deg}65%{opacity:1;scale:1.15;translate:0 2px;rotate:4deg}100%{opacity:1;scale:1;translate:0 0;rotate:0deg}}
@keyframes forest-garden-glimmer{0%,100%{opacity:.18;translate:0 3px}50%{opacity:.65;translate:0 -5px}}
#library-forest-panel[hidden] .forest-leaf,#library-forest-panel[hidden] .forest-tree::after{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.forest-leaf.filled,.forest-tree.changed .forest-leaf.filled,.forest-tree .forest-leaf.fresh,.forest-tree::after{animation:none!important;rotate:none;translate:none;scale:1}.forest-tree-select{transition:none}.forest-tree-select:not(:disabled):hover{transform:none}}
@media(max-width:700px){.forest-garden{border:0;box-shadow:none}.forest-tree{box-shadow:0 10px 18px -12px #605b3566;border:1px solid #fff8}}
@media(hover:hover){.forest-tree-select:not(:disabled):hover:active{transform:translateY(2px);box-shadow:inset 0 1px 1px #fff5,0 1px 0 #325632}}

/* Approved staggered clay stage. Art/actors/leaf ownership are separate layers. */
.forest-garden{display:block;aspect-ratio:2/1;background:#eee4c9 url('/assets/story-forest/stage-background-v170.webp') center/100% 100% no-repeat;overflow:hidden;isolation:isolate;container-type:inline-size}
.forest-tree{position:absolute;aspect-ratio:auto;min-height:0;max-height:none;background:none!important;border:0;border-radius:0;box-shadow:none;overflow:visible;isolation:auto;z-index:2}
.forest-tree.gru{left:10.6%;top:19.2%;width:28%;height:71%;--tree-center:70%;--crown-height:60%}
.forest-tree.piki{left:38.2%;top:3.7%;width:28.6%;height:53.4%;--tree-center:75%;--crown-height:74%}
.forest-tree.pikong{left:66.4%;top:15.3%;width:26.6%;height:59.4%;--tree-center:36%;--crown-height:64%}
.forest-tree::after{display:none}
.forest-crown{position:absolute;inset:0 0 auto;height:var(--crown-height);pointer-events:none}
.forest-tree-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none}
.forest-crown .forest-leaf{width:4.5%;height:7%;box-shadow:inset 1px 1px 2px #fff5,1px 2px 2px #806b3933}
.forest-crown .forest-leaf.filled{width:8%;height:9.5%;box-shadow:inset 1px 1px 2px #ffffff30,inset -1px -2px 2px #52602b28,1px 3px 3px #4c492d40}
.forest-leaf::after,.forest-leaf.filled::before{display:none;content:none}
.forest-tree-sign{bottom:-1%;z-index:5;gap:3px}
.forest-tree-sign strong{font-size:clamp(12px,1.45cqw,17px);padding:5px 10px}
.forest-tree-sign>span{font-size:clamp(12px,1.3cqw,15px);padding:3px 12px}
.forest-tree-select{font-size:clamp(11px,1cqw,13px);min-height:32px;padding:5px 9px}
.forest-tree.piki .forest-tree-sign{bottom:-19%}
.forest-tree.pikong .forest-tree-sign{bottom:-14%}
.forest-actor{position:absolute;z-index:4;pointer-events:none;transform-origin:50% 95%;filter:drop-shadow(0 3px 2px #5b482b25)}
.forest-actor img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;user-select:none}
.forest-actor.gru{left:13.4%;top:63.7%;width:10.7%;height:28.1%;animation:forest-gru-care 6s ease-in-out infinite}
.forest-actor.gru .forest-actor-art{clip-path:polygon(0 48%,100% 48%,100% 100%,0 100%)}
.forest-actor-head{clip-path:polygon(0 0,100% 0,100% 51%,0 51%);transform-origin:51% 49%;animation:forest-gru-nod 6s ease-in-out infinite}
.forest-actor.piki{left:42%;top:37.5%;width:16%;height:21%;animation:forest-piki-greet 3.2s ease-in-out infinite;transform-origin:54% 88%}
.forest-actor.pikong{left:81.7%;top:53.7%;width:8.9%;height:21.8%;animation:forest-pikong-pull 8s ease-in-out infinite}
.forest-tree.pikong .forest-tree-art,.forest-tree.pikong .forest-crown{transform-origin:50% 156.25%;animation:forest-pikong-shake 8s ease-in-out infinite}
.forest-tree.pikong .forest-tree-art{transform-origin:50% 100%}
@keyframes forest-gru-care{0%,32%,65%,100%{transform:rotate(0)}42%,54%{transform:rotate(2deg) translateY(1px)}}
@keyframes forest-gru-nod{0%,30%,65%,100%{transform:rotate(0)}41%,55%{transform:rotate(7deg)}}
@keyframes forest-piki-greet{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-1px) rotate(-.6deg)}50%{transform:translateY(0) rotate(0)}75%{transform:translateY(-1px) rotate(.6deg)}}
@keyframes forest-pikong-pull{0%,18%,57%,100%{transform:translateX(0) rotate(0)}24%,36%,48%{transform:translateX(4%) rotate(5deg)}30%,42%,54%{transform:translateX(-3%) rotate(-4deg)}}
@keyframes forest-pikong-shake{0%,18%,60%,100%{transform:rotate(0)}24%,36%,48%{transform:rotate(2deg)}30%,42%,54%{transform:rotate(-2deg)}}
.forest-motion-controls{display:flex;justify-content:flex-end;margin:10px 0}
.forest-motion-toggle{border:1px solid #d8dfc9;border-radius:20px;padding:8px 14px;background:#f1f3e6;color:#4b6545;font-size:12px}
.forest-motion-paused .forest-garden *{animation-play-state:paused!important}
#library-forest-panel[hidden] .forest-garden *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){#library-forest-panel:not(.forest-motion-enabled) .forest-garden *{animation:none!important}}
@media(max-width:700px){.forest-garden{display:block;aspect-ratio:2/1;border:1px solid #fff8;border-radius:22px;overflow:visible;margin-bottom:100px}.forest-tree{border:0;border-radius:0;box-shadow:none;min-height:0;max-height:none;overflow:visible}.forest-tree-sign{position:absolute;top:calc(100% + 16px);bottom:auto!important;left:50%;width:95px;gap:3px}.forest-tree.gru .forest-tree-sign{top:calc(100% + 14px);left:55%}.forest-tree.piki .forest-tree-sign{top:calc(100% + 83px)}.forest-tree.pikong .forest-tree-sign{top:calc(100% + 51px);left:65%}.forest-tree-sign strong{font-size:13px;padding:5px 8px}.forest-tree-sign>span{font-size:13px}.forest-tree-select{min-height:36px;font-size:11px;padding:5px 8px}.forest-motion-controls{margin-top:112px}}

@media(max-width:700px){.forest-tree.gru .forest-tree-sign{top:calc(113.8% + 14px)}.forest-tree.piki .forest-tree-sign{top:calc(180.3% + 14px)}.forest-tree.pikong .forest-tree-sign{top:calc(142.6% + 14px)}.forest-motion-controls{margin-top:0}}
